vendor: 3,972 bytes, line 1
1!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date}
vendor: 3,521 bytes, line 1
1,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}
vendor: 9,959 bytes, line 1
1function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)}
vendor: 79,642 bytes, lines 1-4
1,input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0; 2}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/<tbody/i;function ia(a){Z.test(a.type)&&(a.defaultChecked=a.checked)}function ja(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ca(b),q=[],r=0;o>r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?"<table>"!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ma.test(f)?this.mouseHooks:la.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ra()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ra()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?pa:qa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:qa,isPropagationStopped:qa,isImmediatePropagationStopped:qa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=pa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=pa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=pa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){return ka.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ka.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!ka.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return sa(this,a,b,c,d)},one:function(a,b,c,d){return sa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=qa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ta=/ jQuery\d+="(?:null|\d+)"/g,ua=new RegExp("<(?:"+ba+")[\\s/>]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/<script|<style|<link/i,xa=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/^true\/(.*)/,za=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ja[0].contentWindow||Ja[0].contentDocument).document,b.write(),b.close(),c=La(a,b),Ja.detach()),Ka[a]=c),c}var Na=/^margin/,Oa=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Pa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Qa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");if(j.style){j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}});function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",f=0===k[0].offsetHeight,f&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}}}();var Ra,Sa,Ta=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Oa.test(g)&&Na.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Qa.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Oa.test(g)&&!Ta.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ua(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Va=/alpha\([^)]*\)/i,Wa=/opacity\s*=\s*([^)]*)/i,Xa=/^(none|table(?!-c[ea]).+)/,Ya=new RegExp("^("+T+")(.*)$","i"),Za={position:"absolute",visibility:"hidden",display:"block"},$a={letterSpacing:"0",fontWeight:"400"},_a=["Webkit","O","Moz","ms"],ab=d.createElement("div").style;function bb(a){if(a in ab)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=_a.length;while(c--)if(a=_a[c]+b,a in ab)return a}function cb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&W(d)&&(f[g]=n._data(d,"olddisplay",Ma(d.nodeName)))):(e=W(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function db(a,b,c){var d=Ya.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function eb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+V[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+V[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+V[f]+"Width",!0,e))):(g+=n.css(a,"padding"+V[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+V[f]+"Width",!0,e)));return g}function fb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Sa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Oa.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+eb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},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":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=U.exec(c))&&e[1]&&(c=X(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Sa(a,b,d)),"normal"===f&&b in $a&&(f=$a[b]),""===c||c?(e=parseFloat(f),c===!0||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Xa.test(n.css(a,"display"))&&0===a.offsetWidth?Pa(a,Za,function(){return fb(a,b,d)}):fb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return db(a,c,d?eb(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Wa.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Va,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Va.test(f)?f.replace(Va,e):f+" "+e)}}),n.cssHooks.marginRight=Ua(l.reliableMarginRight,function(a,b){return b?Pa(a,{display:"inline-block"},Sa,[a,"marginRight"]):void 0}),n.cssHooks.marginLeft=Ua(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{ 3marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],jb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(pb(k,j.opts.specialEasing);g>f;f++)if(d=qb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,nb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(qb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return X(c.elem,a,U.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],qb.tweeners[c]=qb.tweeners[c]||[],qb.tweeners[c].unshift(b)},prefilters:[ob],prefilter:function(a,b){b?qb.prefilters.unshift(a):qb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(W).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=qb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&kb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(mb(b,!0),a,d,e)}}),n.each({slideDown:mb("show"),slideUp:mb("hide"),slideToggle:mb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(hb=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),hb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ib||(ib=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(ib),ib=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var rb=/\r/g,sb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(sb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var tb,ub,vb=n.expr.attrHandle,wb=/^(?:checked|selected)$/i,xb=l.getSetAttribute,yb=l.input;n.fn.extend({attr:function(a,b){return Y(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ub:tb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?yb&&xb||!wb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(xb?c:d)}}),ub={set:function(a,b,c){return b===!1?n.removeAttr(a,c):yb&&xb||!wb.test(c)?a.setAttribute(!xb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=vb[b]||n.find.attr;yb&&xb||!wb.test(b)?vb[b]=function(a,b,d){var e,f;return d||(f=vb[b],vb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,vb[b]=f),e}:vb[b]=function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),yb&&xb||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):tb&&tb.set(a,b,c)}}),xb||(tb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},vb.id=vb.name=vb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:tb.set},n.attrHooks.contenteditable={set:function(a,b,c){tb.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var zb=/^(?:input|select|textarea|button|object)$/i,Ab=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return Y(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Bb=/[\t\r\n\f]/g;function Cb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Cb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Cb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Cb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Cb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||a===!1?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Cb(c)+" ").replace(Bb," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Db=a.location,Eb=n.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Hb=/#.*$/,Ib=/([?&])_=[^&]*/,Jb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lb=/^(?:GET|HEAD)$/,Mb=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Pb={},Qb="*/".concat("*"),Rb=Db.href,Sb=Nb.exec(Rb.toLowerCase())||[];function Tb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Ub(a,b,c,d){var e={},f=a===Pb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Vb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Wb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Xb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rb,type:"GET",isLocal:Kb.test(Sb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qb,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":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,n.ajaxSettings),b):Vb(n.ajaxSettings,a)},ajaxPrefilter:Tb(Ob),ajaxTransport:Tb(Pb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Jb.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),y(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Rb)+"").replace(Hb,"").replace(Mb,Sb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(G)||[""],null==l.crossDomain&&(d=Nb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Sb[1]&&d[2]===Sb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Sb[3]||("http:"===Sb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Ub(Ob,l,c,w),2===u)return w;i=n.event&&l.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Lb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ib.test(f)?f.replace(Ib,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Qb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,w,l)===!1||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Ub(Pb,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,y)}catch(x){if(!(2>u))throw x;y(-1,x)}}else y(-1,"No Transport");function y(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&300>b||304===b,d&&(v=Wb(l,w,d)),v=Xb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),x=w.getResponseHeader("etag"),x&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Yb(a){return a.style&&a.style.display||n.css(a,"display")}function Zb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Yb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Zb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var $b=/%20/g,_b=/\[\]$/,ac=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;function dc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||_b.test(a)?d(a,e):dc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)dc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)dc(c,a[c],b,e);return d.join("&").replace($b,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(a)&&(this.checked||!Z.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(ac,"\r\n")}}):{name:b.name,value:c.replace(ac,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?ic():d.documentMode>8?hc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&hc()||ic()}:hc;var ec=0,fc={},gc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in fc)fc[a](void 0,!0)}),l.cors=!!gc&&"withCredentials"in gc,gc=l.ajax=!!gc,gc&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++ec;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=mc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({ 4padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n});
5"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("<input/>",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*</,u=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,v=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,w=/^([^<]*)(<[\w\W]+>)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(
5a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g<e.length;)e[g++].guid=f;return this.click(h)},a.fn.live=function(b,c,e){return d("jQuery.fn.live() is deprecated"),F?F.apply(this,arguments):(a(this.context).on(b,this.selector,c,e),this)},a.fn.die=function(b,c){return d("jQuery.fn.die() is deprecated"),G?G.apply(this,arguments):(a(this.context).off(b,this.selector||"**",c),this)},a.event.trigger=function(a,b,c,e){return c||J.test(a)||d("Global events are undocumented and deprecated"),D.call(this,a,b,c||document,e)},a.each(I.split("|"),function(b,c){a.event.special[c]={setup:function(){var b=this;return b!==document&&(a.event.add(document,c+"."+a.guid,function(){a.event.trigger(c,Array.prototype.slice.call(arguments,1),b,!0)}),a._data(this,c,a.guid++)),!1},teardown:function(){return this!==document&&a.event.remove(document,c+"."+a._data(this,c)),!1}}}),a.event.special.ready={setup:function(){this===document&&d("'ready' event is deprecated")}};var M=a.fn.andSelf||a.fn.addBack,N=a.fn.find;if(a.fn.andSelf=function(){return d("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),M.apply(this,arguments)},a.fn.find=function(a){var b=N.apply(this,arguments);return b.context=this.context,b.selector=this.selector?this.selector+" "+a:a,b},a.Callbacks){var O=a.Deferred,P=[["resolve","done",a.Callbacks("once memory"),a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory"),a.Callbacks("memory")]];a.Deferred=function(b){var c=O(),e=c.promise();return c.pipe=e.pipe=function(){var b=arguments;return d("deferred.pipe() is deprecated"),a.Deferred(function(d){a.each(P,function(f,g){var h=a.isFunction(b[f])&&b[f];c[g[1]](function(){var b=h&&h.apply(this,arguments);b&&a.isFunction(b.promise)?b.promise().done(d.resolve).fail(d.reject).progress(d.notify):d[g[0]+"With"](this===e?d.promise():this,h?[b]:arguments)})}),b=null}).promise()},c.isResolved=function(){return d("deferred.isResolved is deprecated"),"resolved"===c.state()},c.isRejected=function(){return d("deferred.isRejected is deprecated"),"rejected"===c.state()},b&&b.call(c,c),c}}}(jQuery,window); 6(function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,t,n,r){function T(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=T(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;d<v;d++)l=u[d],t[l]=h[l]}return t}function C(t){var n={},r,s;while(t){r=e.data(t,i);for(s in r)r[s]&&(n[s]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function k(t,n){var r;while(t){r=e.data(t,i);if(r&&(!n||r[n]))return t;t=t.parentNode}return null}function L(){g=!1}function A(){g=!0}function O(){E=0,v.length=0,m=!1,A()}function M(){L()}function _(){D(),c=setTimeout(function(){c=0,O()},e.vmouse.resetTimerDuration)}function D(){c&&(clearTimeout(c),c=0)}function P(t,n,r){var i;if(r&&r[t]||!r&&k(n.target,t))i=N(n,t),e(n.target).trigger(i);return i}function H(t){var n=e.data(t.target,s),r;!m&&(!E||E!==n)&&(r=P("v"+t.type,t),r&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function B(t){var n=T(t).touches,r,i,o;n&&n.length===1&&(r=t.target,i=C(r),i.hasVirtualBinding&&(E=w++,e.data(r,s,E),D(),M(),d=!1,o=T(t).touches[0],h=o.pageX,p=o.pageY,P("vmouseover",t,i),P("vmousedown",t,i)))}function j(e){if(g)return;
vendor: 4,463 bytes, line 6
6d||P("vmousecancel",e,C(e.target)),d=!0,_()}function F(t){if(g)return;var n=T(t).touches[0],r=d,i=e.vmouse.moveDistanceThreshold,s=C(t.target);d=d||Math.abs(n.pageX-h)>i||Math.abs(n.pageY-p)>i,d&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}function I(e){if(g)return;A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t),n&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0)),P("vmouseout",e,t),d=!1,_()}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){q(this)||e.data(this,i,{});var r=e.data(this,i);r[t]=!0,l[t]=(l[t]||0)+1,l[t]===1&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,l.touchstart===1&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=e.event.props.concat(a),l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(x=0;x<o.length;x++)e.event.special[o[x]]=U(o[x]);y&&n.addEventListener("click",function(t){var n=v.length,r=t.target,i,o,u,a,f,l;if(n){i=t.clientX,o=t.clientY,S=e.vmouse.clickDistanceThreshold,u=r;while(u){for(a=0;a<n;a++){f=v[a],l=0;if(u===r&&Math.abs(f.x-i)<S&&Math.abs(f.y-o)<S||e.data(u,s)===f.touchID){t.preventDefault(),t.stopPropagation();return}}u=u.parentNode}}},!0)})(e,t,n),function(e){e.mobile={}}(e),function(e,t){var r={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,t,r){function l(t,n,i,s){var o=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=o}var i=e(n),s=e.mobile.support.touch,o="touchmove scroll",u=s?"touchstart":"mousedown",a=s?"touchend":"mouseup",f=s?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.scrollstart={enabled:!0,setup:function(){function s(e,n){r=n,l(t,r?"scrollstart":"scrollstop",e)}var t=this,n=e(t),r,i;n.bind(o,function(t){if(!e.event.special.scrollstart.enabled)return;r||s(t,!0),clearTimeout(i),i=setTimeout(function(){s(t,!1)},50)})},teardown:function(){e(this).unbind(o)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",function(s){function a(){clearTimeout(u)}function f(){a(),n.unbind("vclick",c).unbind("vmouseup",a),i.unbind("vmousecancel",f)}function c(e){f(),!r&&o===e.target?l(t,"tap",e):r&&e.preventDefault()}r=!1;if(s.which&&s.which!==1)return!1;var o=s.target,u;n.bind("vmouseup",a).bind("vclick",c),i.bind("vmousecancel",f),u=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(r=!0),l(t,"taphold",e.Event("taphold",{target:o}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),i.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;if(e.pageY===0&&Math.floor(s)>Math.floor(e.pageY)||e.pageX===0&&Math.floor(i)>Math.floor(e.pageX))i-=n,s-=r;else if(s<e.pageY-r||i<e.pageX-n)i=e.pageX-n,s=e.pageY-r;return{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,i){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.
6coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var s=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(e.event.special.swipe.eventInProgress)return;e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){if(!o||t.isDefaultPrevented())return;r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)},r.on(u,s.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,t.length===0&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)}); 7(function() { 8 var supportTouch = $.support.touch, 9 scrollEvent = "touchmove scroll", 10 touchStartEvent = supportTouch ? "touchstart" : "mousedown", 11 touchStopEvent = supportTouch ? "touchend" : "mouseup", 12 touchMoveEvent = supportTouch ? "touchmove" : "mousemove"; 13 $.event.special.swipeupdown = { 14 setup: function() { 15 var thisObject = this; 16 var $this = $(thisObject); 17 $this.bind(touchStartEvent, function(event) { 18 var data = event.originalEvent.touches ? 19 event.originalEvent.touches[ 0 ] : 20 event, 21 start = { 22 time: (new Date).getTime(), 23 coords: [ data.pageX, data.pageY ], 24 origin: $(event.target) 25 }, 26 stop; 27 function moveHandler(event) { 28 if (!start) { 29 return; 30 } 31 var data = event.originalEvent.touches ? 32 event.originalEvent.touches[ 0 ] : 33 event; 34 stop = { 35 time: (new Date).getTime(), 36 coords: [ data.pageX, data.pageY ] 37 }; 38 if (Math.abs(start.coords[1] - stop.coords[1]) > 10) { 39 event.preventDefault(); 40 } 41 } 42 $this 43 .bind(touchMoveEvent, moveHandler) 44 .one(touchStopEvent, function(event) { 45 $this.unbind(touchMoveEvent, moveHandler); 46 if (start && stop) { 47 if (stop.time - start.time < 1000 && 48 Math.abs(start.coords[1] - stop.coords[1]) > 30 && 49 Math.abs(start.coords[0] - stop.coords[0]) < 75) { 50 start.origin 51 .trigger("swipeupdown") 52 .trigger(start.coords[1] > stop.coords[1] ? "swipeup" : "swipedown"); 53 } 54 } 55 start = stop = undefined; 56 }); 57 }); 58 } 59 }; 60 $.each({ 61 swipedown: "swipeupdown", 62 swipeup: "swipeupdown" 63 }, function(event, sourceEvent){ 64 $.event.special[event] = { 65 setup: function(){ 66 $(this).bind(sourceEvent, $.noop); 67 } 68 }; 69 }); 70})(); 71(function($) { 72 $.isDefinedGlobal = function(varname) { 73 return eval('typeof(' + varname + ') != "undefined"'); 74 }; 75 $.isDefinedLocal = function(variable) { 76 return typeof(variable) != "undefined"; 77 }; 78 $.serialize = function(object) { 79 var query = ''; 80 $.each(object, function(key, value) { 81 query = query + (query ? '&' : '') + key + '=' + value; 82 }); 83 return query; 84 }; 85 $.fn.tag = function() { 86 return this[0].tagName.toLowerCase(); 87 }; 88 $.fn.name = function() { 89 return $(this).prop('name').replace(/\[.*\]/g, ''); 90 }; 91 $.fn.center = function() { 92 this.css('position', 'absolute'); 93 this.css('top', (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop() + 'px'); 94 this.css('left', (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + 'px'); 95 return this; 96 }; 97 $.fn.stripTags = function() { 98 return $(this).text().replace(/(\r\n|\n|\r)/gm, '').replace(/ +(?= )/g, '').replace(/\t/g, ' ').trim(); 99 }; 100 $.fn.isOnScreen = function() { 101 var win = $(window); 102 var viewport = { 103 top : win.scrollTop(), 104 left : win.scrollLeft() 105 }; 106 viewport.right = viewport.left + win.width(); 107 viewport.bottom = viewport.top + win.height(); 108 var bounds = this.offset(); 109 bounds.right = bounds.left + this.outerWidth(); 110 bounds.bottom = bounds.top + this.outerHeight(); 111 return (!(viewport.right < bounds.left || viewport.left >
vendor: 13,867 bytes, lines 111-114
111 bounds.right || viewport.bottom < bounds.top || viewport.top > bounds.bottom)); 112 }; 113})(jQuery); 114!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(w){w.ui=w.ui||{};w.ui.version="1.12.1";var n,i=0,r=Array.prototype.slice;w.cleanData=(n=w.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)try{(e=w._data(i,"events"))&&e.remove&&w(i).triggerHandler("remove")}catch(t){}n(t)}),w.widget=function(t,i,e){var s,n,a,o={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=i,i=w.Widget),w.isArray(e)&&(e=w.extend.apply(null,[{}].concat(e))),w.expr[":"][l.toLowerCase()]=function(t){return!!w.data(t,l)},w[r]=w[r]||{},s=w[r][t],n=w[r][t]=function(t,e){if(!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},w.extend(n,s,{version:e.version,_proto:w.extend({},e),_childConstructors:[]}),(a=new i).options=w.widget.extend({},a.options),w.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function a(t){return i.prototype[e].apply(this,t)}w.isFunction(s)?o[e]=function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=a,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:o[e]=s}),n.prototype=w.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||t},o,{constructor:n,namespace:r,widgetName:t,widgetFullName:l}),s?(w.each(s._childConstructors,function(t,e){var i=e.prototype;w.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),w.widget.bridge(t,n),n},w.widget.extend=function(t){for(var e,i,s=r.call(arguments,1),n=0,a=s.length;n<a;n++)for(e in s[n])i=s[n][e],s[n].hasOwnProperty(e)&&void 0!==i&&(w.isPlainObject(i)?t[e]=w.isPlainObject(t[e])?w.widget.extend({},t[e],i):w.widget.extend({},i):t[e]=i);return t},w.widget.bridge=function(a,e){var o=e.prototype.widgetFullName||a;w.fn[a]=function(i){var t="string"==typeof i,s=r.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=w.data(this,o);return"instance"===i?(n=e,!1):e?w.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:w.error("no such method '"+i+"' for "+a+" widget instance"):w.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=w.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=w.data(this,o);t?(t.option(i||{}),t._init&&t._init()):w.data(this,o,new e(i,this))})),n}},w.Widget=function(){},w.Widget._childConstructors=[],w.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=w(e||this.defaultElement||this)[0],this.element=w(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=w(),this.hoverable=w(),this.focusable=w(),this.classesElementLookup={},e!==this&&(w.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=w(e.style?e.ownerDocument:e.document||e),this.window=w(this.document[0].defaultView||this.document[0].parentWindow)),this.options=w.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:w.noop,_create:w.noop,_init:w.noop,destroy:function(){var i=this;this._destroy(),w.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:w.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,a=t;if(0===arguments.length)return w.widget.extend({},this.options);if("string"==typeof t)if(a={},t=(i=t.split(".")).shift(),i.length){for(s=a[t]=w.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=e}return this._setOptions(a),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=w(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var a=[],o=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=o.classesElementLookup[t[s]]||w(),i=n.add?w(w.unique(i.get().concat(n.element.get()))):w(i.not(n.element).get()),o.classesElementLookup[t[s]]=i,a.push(t[s]),e&&n.classes[t[s]]&&a.push(n.classes[t[s]])}return n=w.extend({element:this.element,classes:this.options.classes||{}},n),this._on(n.element,{remove:"_untrackClassesElement"}),n.keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),a.join(" ")},_untrackClassesElement:function(i){var s=this;w.each(s.classesElementLookup,function(t,e){-1!==w.inArray(i.target,e)&&(s.classesElementLookup[t]=w(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,t={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return t.element.toggleClass(this._classes(t),s),this},_on:function(n,a,t){var o,r=this;"boolean"!=typeof n&&(t=a,a=n,n=!1),t?(a=o=w(a),this.bindings=this.bindings.add(a)):(t=a,a=this.element,o=this.widget()),w.each(t,function(t,e){function i(){if(n||!0!==r.options.disabled&&!w(this).hasClass("ui-state-disabled"))return("string"==typeof e?r[e]:e).apply(r,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||w.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+r.eventNamespace,s=s[2];s?o.on(t,s,i):a.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=w(this.bindings.not(t).get()),this.focusable=w(this.focusable.not(t).get()),this.hoverable=w(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(w(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(w(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(w(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(w(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,a=this.options[t];if(i=i||{},(e=w.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!(w.isFunction(a)&&!1===a.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},w.each({show:"fadeIn",hide:"fadeOut"},function(a,o){w.Widget.prototype["_"+a]=function(e,t,i){var s;"string"==typeof t&&(t={effect:t});var n=t?!0!==t&&"number"!=typeof t&&t.effect||o:a;"number"==typeof(t=t||{})&&(t={duration:t}),s=!w.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&w.effects&&w.effects.effect[n]?e[a](t):n!==a&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){w(this)[a](),i&&i.call(e[0]),t()})}});var s,D,x,a,o,l,h,c,C;w.widget;function M(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function I(t,e){return parseInt(w.css(t,e),10)||0}D=Math.max,x=Math.abs,a=/left|center|right/,o=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,C=w.fn.position,w.position={scrollbarWidth:function(){if(void 0!==s)return s;var t,e=w("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=e.children()[0];return w("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?w.position.scrollbarWidth():0,height:e?w.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=w(t||window),i=w.isWindow(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?w(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},w.fn.position=function(d){if(!d||!d.of)return C.apply(this,arguments);d=w.extend({},d);var u,p,f,g,m,t,_=w(d.of),v=w.position.getWithinInfo(d.within),y=w.position.getScrollInfo(v),b=(d.collision||"flip").split(" "),k={},e=9===(t=(e=_)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:w.isWindow(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return _[0].preventDefault&&(d.at="left top"),p=e.width,f=e.height,g=e.offset,m=w.extend({},g),w.each(["my","at"],function(){var t,e,i=(d[this]||"").split(" ");1===i.length&&(i=a.test(i[0])?i.concat(["center"]):o.test(i[0])?["center"].concat(i):["center","center"]),i[0]=a.test(i[0])?i[0]:"center",i[1]=o.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],d[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===d.at[0]?m.left+=p:"center"===d.at[0]&&(m.left+=p/2),"bottom"===d.at[1]?m.top+=f:"center"===d.at[1]&&(m.top+=f/2),u=M(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var i,t,o=w(this),r=o.outerWidth(),l=o.outerHeight(),e=I(this,"marginLeft"),s=I(this,"marginTop"),n=r+e+I(this,"marginRight")+y.width,a=l+s+I(this,"marginBottom")+y.height,h=w.extend({},m),c=M(k.my,o.outerWidth(),o.outerHeight());"right"===d.my[0]?h.left-=r:"center"===d.my[0]&&(h.left-=r/2),"bottom"===d.my[1]?h.top-=l:"center"===d.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:s},w.each(["left","top"],function(t,e){w.ui.position[b[t]]&&w.ui.position[b[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:a,offset:[u[0]+c[0],u[1]+c[1]],my:d.my,at:d.at,within:v,elem:o})}),d.using&&(t=function(t){var e=g.left-h.left,i=e+p-r,s=g.top-h.top,n=s+f-l,a={target:{element:_,left:g.left,top:g.top,width:p,height:f},element:{element:o,left:h.left,top:h.top,width:r,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};p<r&&x(e+i)<p&&(a.horizontal="center"),f<l&&x(s+n)<f&&(a.vertical="middle"),D(x(e),x(i))>D(x(s),x(n))?a.important="horizontal":a.important="vertical",d.using.call(this,t,a)}),o.offset(w.extend(h,{using:t}))})},w.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,a=t.left-e.collisionPosition.marginLeft,o=s-a,r=a+e.collisionWidth-n-s;e.collisionWidth>n?0<o&&r<=0?(i=t.left+o+e.collisionWidth-n-s,t.left+=o-i):t.left=!(0<r&&o<=0)&&r<o?s+n-e.collisionWidth:s:0<o?t.left+=o:0<r?t.left-=r:t.left=D(t.left-a,t.left)},top:function(t,e){var i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,a=t.top-e.collisionPosition.marginTop,o=s-a,r=a+e.collisionHeight-n-s;e.collisionHeight>n?0<o&&r<=0?(i=t.top+o+e.collisionHeight-n-s,t.top+=o-i):t.top=!(0<r&&o<=0)&&r<o?s+n-e.collisionHeight:s:0<o?t.top+=o:0<r?t.top-=r:t.top=D(t.top-a,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,a=i.isWindow?i.scrollLeft:i.offset.left,o=t.left-e.collisionPosition.marginLeft,r=o-a,l=o+e.collisionWidth-n-a,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,o=-2*e.offset[0];r<0?((s=t.left+h+i+o+e.collisionWidth-n-s)<0||s<x(r))&&(t.left+=h+i+o):0<l&&(0<(a=t.left-e.collisionPosition.marginLeft+h+i+o-a)||x(a)<l)&&(t.left+=h+i+o)},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,a=i.isWindow?i.scrollTop:i.offset.top,o=t.top-e.collisionPosition.marginTop,r=o-a,l=o+e.collisionHeight-n-a,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,o=-2*e.offset[1];r<0?((s=t.top+h+i+o+e.collisionHeight-n-s)<0||s<x(r))&&(t.top+=h+i+o):0<l&&(0<(a=t.top-e.collisionPosition.marginTop+h+i+o-a)||x(a)<l)&&(t.top+=h+i+o)}},flipfit:{left:function(){w.ui.position.flip.left.apply(this,arguments),w.ui.position.fit.left.apply(this,arguments)},top:function(){w.ui.position.flip.top.apply(this,arguments),w.ui.position.fit.top.apply(this,arguments)}}};var t;w.ui.position,w.extend(w.expr[":"],{data:w.expr.createPseudo?w.expr.createPseudo(function(e){return function(t){return!!w.data(t,e)}}
114):function(t,e,i){return!!w.data(t,i[3])}}),w.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});w.ui.focusable=function(t,e){var i,s,n,a,o=t.nodeName.toLowerCase();return"area"===o?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(0<(s=w("img[usemap='#"+s+"']")).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(o)?(n=!t.disabled)&&(a=w(t).closest("fieldset")[0])&&(n=!a.disabled):n="a"===o&&t.href||e,n&&w(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}(w(t)))},w.extend(w.expr[":"],{focusable:function(t){return w.ui.focusable(t,null!=w.attr(t,"tabindex"))}});w.ui.focusable,w.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):w(this[0].form)},w.ui.formResetMixin={_formResetHandler:function(){var e=w(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");w.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(w.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};"1.7"===w.fn.jquery.substring(0,3)&&(w.each(["Width","Height"],function(t,i){var n="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),a={innerWidth:w.fn.innerWidth,innerHeight:w.fn.innerHeight,outerWidth:w.fn.outerWidth,outerHeight:w.fn.outerHeight};function o(t,e,i,s){return w.each(n,function(){e-=parseFloat(w.css(t,"padding"+this))||0,i&&(e-=parseFloat(w.css(t,"border"+this+"Width"))||0),s&&(e-=parseFloat(w.css(t,"margin"+this))||0)}),e}w.fn["inner"+i]=function(t){return void 0===t?a["inner"+i].call(this):this.each(function(){w(this).css(s,o(this,t)+"px")})},w.fn["outer"+i]=function(t,e){return"number"!=typeof t?a["outer"+i].call(this,t):this.each(function(){w(this).css(s,o(this,t,!0,e)+"px")})}}),w.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))});w.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},w.ui.escapeSelector=(e=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(e,"\\$1")}),w.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+w.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},w.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=w(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:w(this[0].ownerDocument||document)},w.extend(w.expr[":"],{tabbable:function(t){var e=w.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&w.ui.focusable(t,i)}}),w.fn.extend({uniqueId:(d=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++d)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&w(this).removeAttr("id")})}}),w.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var e,d,u=!1;w(document).on("mouseup",function(){u=!1});w.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===w.data(t.target,e.widgetName+".preventClickEvent"))return w.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!u){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&w(t.target).closest(this.options.cancel).length;return i&&!s&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===w.data(t.target,this.widgetName+".preventClickEvent")&&w.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),u=!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(w.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&w.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,u=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}
vendor: 5,868 bytes, line 114
114),w.ui.plugin={add:function(t,e,i){var s,n=w.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,a=t.plugins[e];if(a&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n<a.length;n++)t.options[a[n][0]]&&a[n][1].apply(t.element,i)}},w.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return(i=i||e.body).nodeName||(i=e.body),i},w.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&w(t).trigger("blur")};w.widget("ui.draggable",w.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<w(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=w(this);return w("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=w.ui.safeActiveElement(this.document[0]);w(t.target).closest(e).length||w.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),w.ui.ddmanager&&(w.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===w(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),w.ui.ddmanager&&!e.dropBehaviour&&w.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),w.ui.ddmanager&&w.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new w.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",w.ui.ddmanager&&w.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return w.ui.ddmanager&&!this.options.dropBehaviour&&(i=w.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||w.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?w(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),w.ui.ddmanager&&w.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),w.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new w.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!w(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,i=w.isFunction(e.helper),t=i?w(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),w.isArray(t)&&(t={left:+t[0],top:+t[1]||0}
vendor: 4,264 bytes, line 114
114),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&w.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,s=this.options,n=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(i=(e=w(s.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=s.containment:this.containment=[0,0,w(n).width()-this.helperProportions.width-this.margins.left,(w(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[w(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,w(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,w(window).scrollLeft()+w(window).width()-this.helperProportions.width-this.margins.left,w(window).scrollTop()+(w(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),a=t.pageX,o=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(a=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(a=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>
vendor: 1,246 bytes, line 114
114i[3]&&(o=i[3]+this.offset.click.top)),s.grid&&(t=s.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,o=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-s.grid[1]:t+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,a=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(a=this.originalPageX),"x"===s.axis&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),w.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop
vendor: 4,487 bytes, line 114
114)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),w.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),w.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=w.extend({},t,{item:i.element});i.sortables=[],w(i.options.connectToSortable).each(function(){var t=w(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=w.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,w.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,n){w.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,w.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==e&&this._intersectsWith(this.containerCache)&&w.contains(e.element[0],this.element[0])&&(t=!1),t})),t?(e.isOver||(e.isOver=1,n._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,w.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,w.each(n.sortables,function(){this.refreshPositions()}))})}}),w.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=w("body"),i=i.options;s.css("cursor")&&(i._cursor=s.css("cursor")),s.css("cursor",i.cursor)},stop:function(t,e,i){i=i.options;i._cursor&&w("body").css("cursor",i._cursor)}}),w.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=w(e.helper),i=i.options;e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){i=i.options;i._opacity&&w(e.helper).css("opacity",i._opacity)}}),w.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,n=!1,a=i.scrollParentNotHidden[0],o=i.document[0];a!==o&&"HTML"!==a.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+a.offsetHeight-t.pageY<s.scrollSensitivity?a.scrollTop=n=a.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(a.scrollTop=n=a.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+a.offsetWidth-t.pageX<s.scrollSensitivity?a.scrollLeft=n=a.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(a.scrollLeft=n=a.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-w(o).scrollTop()<s.scrollSensitivity?n=w(o).scrollTop(w(o).scrollTop()-s.scrollSpeed):w(window).height()-(t.pageY-w(o).scrollTop())<s.scrollSensitivity&&(n=w(o).scrollTop(w(o).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-w(o).scrollLeft()<s.scrollSensitivity?n=w(o).scrollLeft(w(o).scrollLeft()-s.scrollSpeed):w(window).width()-(t.pageX-w(o).scrollLeft())<s.scrollSensitivity&&(n=w(o).scrollLeft(w(o).scrollLeft()+s.scrollSpeed)))),!1!==n&&w.ui.ddmanager&&!s.dropBehaviour&&w.ui.ddmanager.prepareOffsets(i,t)}}
vendor: 18,198 bytes, line 114
114),w.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],w(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=w(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var s,n,a,o,r,l,h,c,d,u=i.options,p=u.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,_=m+i.helperProportions.height,v=i.snapElements.length-1;0<=v;v--)l=(r=i.snapElements[v].left-i.margins.left)+i.snapElements[v].width,c=(h=i.snapElements[v].top-i.margins.top)+i.snapElements[v].height,g<r-p||l+p<f||_<h-p||c+p<m||!w.contains(i.snapElements[v].item.ownerDocument,i.snapElements[v].item)?(i.snapElements[v].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,w.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=!1):("inner"!==u.snapMode&&(s=Math.abs(h-_)<=p,n=Math.abs(c-m)<=p,a=Math.abs(r-g)<=p,o=Math.abs(l-f)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),d=s||n||a||o,"outer"!==u.snapMode&&(s=Math.abs(h-m)<=p,n=Math.abs(c-_)<=p,a=Math.abs(r-f)<=p,o=Math.abs(l-g)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[v].snapping&&(s||n||a||o||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,w.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=s||n||a||o||d)}}),w.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options,i=w.makeArray(w(i.stack)).sort(function(t,e){return(parseInt(w(t).css("zIndex"),10)||0)-(parseInt(w(e).css("zIndex"),10)||0)});i.length&&(s=parseInt(w(i[0]).css("zIndex"),10)||0,w(i).each(function(t){w(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),w.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=w(e.helper),i=i.options;e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){i=i.options;i._zIndex&&w(e.helper).css("zIndex",i._zIndex)}});w.ui.draggable;w.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=w.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){w.ui.ddmanager.droppables[t]=w.ui.ddmanager.droppables[t]||[],w.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=w.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept=w.isFunction(e)?e:function(t){return t.is(e)}:"scope"===t&&(i=w.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=w.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=w.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=w.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=w.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||w.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=w(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&p(i,w.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(s=!0)}),!s&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var p=w.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,a=(t.positionAbs||t.position.absolute).top+t.margins.top,o=n+t.helperProportions.width,r=a+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,d=h+e.proportions().height;switch(i){case"fit":return l<=n&&o<=c&&h<=a&&r<=d;case"intersect":return l<n+t.helperProportions.width/2&&o-t.helperProportions.width/2<c&&h<a+t.helperProportions.height/2&&r-t.helperProportions.height/2<d;case"pointer":return f(s.pageY,h,e.proportions().height)&&f(s.pageX,l,e.proportions().width);case"touch":return(h<=a&&a<=d||h<=r&&r<=d||a<h&&d<r)&&(l<=n&&n<=c||l<=o&&o<=c||n<l&&c<o);default:return!1}};function f(t,e,i){return e<=t&&t<e+i}!(w.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,s,n=w.ui.ddmanager.droppables[t.options.scope]||[],a=e?e.type:null,o=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<n.length;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;s<o.length;s++)if(o[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===a&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return w.each((w.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&p(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e)))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||w.ui.ddmanager.prepareOffsets(t,e)})},drag:function(n,a){n.options.refreshPositions&&w.ui.ddmanager.prepareOffsets(n,a),w.each(w.ui.ddmanager.droppables[n.options.scope]||[],function(){var t,e,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(i=p(n,this,this.options.tolerance,a))&&this.isover?"isout":i&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return w(this).droppable("instance").options.scope===e})).length&&((t=w(i[0]).droppable("instance")).greedyChild="isover"===s)),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,a)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,a),t&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,a)))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||w.ui.ddmanager.prepareOffsets(t,e)}})!==w.uiBackCompat&&w.widget("ui.droppable",w.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});var g;w.ui.droppable,w.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=w(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():w()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=w("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=w.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(w(t.target).attr("tabIndex",-1),w(n).attr("tabIndex",0),w(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===w.ui.keyCode.UP&&t.ctrlKey&&w(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=w()):!1===t.active?this._activate(0):this.active.length&&!w.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=w()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=w(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=w(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=w(this).outerHeight(!0)}),this.headers.next().each(function(){w(this).height(Math.max(0,i-w(this).innerHeight()+w(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=w(this).is(":visible");t||w(this).show(),i=Math.max(i,w(this).css("height","").height()),t||w(this).hide()}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:w.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):w()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&w.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,s=w(t.currentTarget),n=s[0]===i[0],a=n&&e.collapsible,o=a?w():s.next(),r=i.next(),o={oldHeader:i,oldPanel:r,newHeader:a?w():s,newPanel:o};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,o)||(e.active=!a&&this.headers.index(s),this.active=n?w():s,this._toggle(o),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(i=i.children(".ui-accordion-header-icon"),this._removeClass(i,null,e.icons.activeHeader)._addClass(i,null,e.icons.header)),n||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),e.icons&&(n=s.children(".ui-accordion-header-icon"),this._removeClass(n,null,e.icons.header)._addClass(n,null,e.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(w(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){var s,n,a,o=this,r=0,l=t.css("box-sizing"),h=t.length&&(!i.length||t.index()<i.index()),c=this.options.animate||{},d=h&&c.down||c,h=function(){o._toggleComplete(e)};return"number"==typeof d&&(a=d),"string"==typeof d&&(n=d),n=n||d.easing||c.easing,a=a||d.duration||c.duration,i.length?t.length?(s=t.show().outerHeight(),i.animate(this.hideProps,{duration:a,easing:n,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:a,easing:n,complete:h,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===l&&(r+=e.now):"content"!==o.options.heightStyle&&(e.now=Math.round(s-i.outerHeight()-r),r=0)}})):i.animate(this.hideProps,a,n,h):t.animate(this.showProps,a,n,h)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}});function m(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
114ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},w.extend(this._defaults,this.regional[""]),this.regional.en=w.extend(!0,{},this.regional[""]),this.regional["en-US"]=w.extend(!0,{},this.regional.en),this.dpDiv=_(w("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function _(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){w(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&w(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&w(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,v)}function v(){w.datepicker._isDisabledDatepicker((g.inline?g.dpDiv.parent():g.input)[0])||(w(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),w(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&w(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&w(this).addClass("ui-datepicker-next-hover"))}function y(t,e){for(var i in w.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}w.extend(w.ui,{datepicker:{version:"1.12.1"}}),w.extend(m.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return y(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(w(t),n)).settings=w.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?_(w("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=w(t);e.append=w([]),e.trigger=w([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),w.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=w("<span class='"+this._appendClass+"'>"+s+"</span>"),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),e.trigger=w(this._get(e,"buttonImageOnly")?w("<img/>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):w("<button type='button'></button>").addClass(this._triggerClass).html(i?w("<img/>").attr({src:i,alt:s,title:s}):s)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return w.datepicker._datepickerShowing&&w.datepicker._lastInput===t[0]?w.datepicker._hideDatepicker():(w.datepicker._datepickerShowing&&w.datepicker._lastInput!==t[0]&&w.datepicker._hideDatepicker(),w.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,a,o;this._get(t,"autoSize")&&!t.inline&&(a=new Date(2009,11,20),(o=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(n=s=i=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,s=n);return s},a.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length))},_inlineDatepicker:function(t,e){var i=w(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),w.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))}
vendor: 13,236 bytes, line 114
114,_dialogDatepicker:function(t,e,i,s,n){var a,o=this._dialogInst;return o||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=w("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),w("body").append(this._dialogInput),(o=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},w.data(this._dialogInput[0],"datepicker",o)),y(o.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(o,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(a=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),w.blockUI&&w.blockUI(this.dpDiv),w.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(t){var e,i=w(t),s=w.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),w.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),g===s&&(g=null))},_enableDatepicker:function(e){var t,i=w(e),s=w.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=w.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=w(e),s=w.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=w.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return w.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,a,o,r=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?w.extend({},w.datepicker._defaults):r?"all"===e?w.extend({},r.settings):this._get(r,e):null;s=e||{},"string"==typeof e&&((s={})[e]=i),r&&(this._curInst===r&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),a=this._getMinMaxDate(r,"min"),o=this._getMinMaxDate(r,"max"),y(r.settings,s),null!==a&&void 0!==s.dateFormat&&void 0===s.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==o&&void 0!==s.dateFormat&&void 0===s.maxDate&&(r.settings.maxDate=this._formatDate(r,o)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(w(t),r),this._autoSize(r),this._setDate(r,n),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,s=w.datepicker._getInst(t.target),n=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,w.datepicker._datepickerShowing)switch(t.keyCode){case 9:w.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=w("td."+w.datepicker._dayOverClass+":not(."+w.datepicker._currentClass+")",s.dpDiv))[0]&&w.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(e=w.datepicker._get(s,"onSelect"))?(i=w.datepicker._formatDate(s),e.apply(s.input?s.input[0]:null,[i,s])):w.datepicker._hideDatepicker(),!1;case 27:w.datepicker._hideDatepicker();break;case 33:w.datepicker._adjustDate(t.target,t.ctrlKey?-w.datepicker._get(s,"stepBigMonths"):-w.datepicker._get(s,"stepMonths"),"M");break;case 34:w.datepicker._adjustDate(t.target,t.ctrlKey?+w.datepicker._get(s,"stepBigMonths"):+w.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&w.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&w.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,a?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&w.datepicker._adjustDate(t.target,t.ctrlKey?-w.datepicker._get(s,"stepBigMonths"):-w.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,a?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&w.datepicker._adjustDate(t.target,t.ctrlKey?+w.datepicker._get(s,"stepBigMonths"):+w.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&w.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?w.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=w.datepicker._getInst(t.target);if(w.datepicker._get(i,"constrainInput"))return e=w.datepicker._possibleChars(w.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){var e=w.datepicker._getInst(t.target);if(e.input.val()!==e.lastVal)try{w.datepicker.parseDate(w.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,w.datepicker._getFormatConfig(e))&&(w.datepicker._setDateFromField(e),w.datepicker._updateAlternate(e),w.datepicker._updateDatepicker(e))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=w("input",t.parentNode)[0]),w.datepicker._isDisabledDatepicker(t)||w.datepicker._lastInput===t||(n=w.datepicker._getInst(t),w.datepicker._curInst&&w.datepicker._curInst!==n&&(w.datepicker._curInst.dpDiv.stop(!0,!0),n&&w.datepicker._datepickerShowing&&w.datepicker._hideDatepicker(w.datepicker._curInst.input[0])),!1!==(i=(s=w.datepicker._get(n,"beforeShow"))?s.apply(t,[t,n]):{})&&(y(n.settings,i),n.lastVal=null,w.datepicker._lastInput=t,w.datepicker._setDateFromField(n),w.datepicker._inDialog&&(t.value=""),w.datepicker._pos||(w.datepicker._pos=w.datepicker._findPos(t),w.datepicker._pos[1]+=t.offsetHeight),e=!1,w(t).parents().each(function(){return!(e|="fixed"===w(this).css("position"))}),s={left:w.datepicker._pos[0],top:w.datepicker._pos[1]},w.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),w.datepicker._updateDatepicker(n),s=w.datepicker._checkOffset(n,s,e),n.dpDiv.css({position:w.datepicker._inDialog&&w.blockUI?"static":e?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),n.inline||(i=w.datepicker._get(n,"showAnim"),s=w.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(w(t))+1),w.datepicker._datepickerShowing=!0,w.effects&&w.effects.effect[i]?n.dpDiv.show(i,w.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),w.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),w.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,(g=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a");0<n.length&&v.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===w.datepicker._curInst&&w.datepicker._datepickerShowing&&w.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:w(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:w(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-a:0,e.left-=i&&e.left===t.input.offset().left?w(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+o?w(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>r&&s<r?Math.abs(e.left+s-r):0),e.top-=Math.min(e.top,e.top+n>l&&n<l?Math.abs(n+o):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||w.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=w(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==w.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(s,"showAnim"),i=this._get(s,"duration"),t=function(){w.datepicker._tidyDialog(s)},w.effects&&(w.effects.effect[e]||w.effects[e])?s.dpDiv.hide(e,w.datepicker._get(s,"showOptions"),i,t):s.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(s,"onClose"))&&t.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),w.blockUI&&(w.unblockUI(),w("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;w.datepicker._curInst&&(e=w(t.target),t=w.datepicker._getInst(e[0]),(e[0].id===w.datepicker._mainDivId||0!==e.parents("#"+w.datepicker._mainDivId).length||e.hasClass(w.datepicker.markerClassName)||e.closest("."+w.datepicker._triggerClass).length||!w.datepicker._datepickerShowing||w.datepicker._inDialog&&w.blockUI)&&(!e.hasClass(w.datepicker.markerClassName)||w.datepicker._curInst===t)||w.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var s=w(t),t=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(t,e+("M"===i?this._get(t,"showCurrentAtPos"):0),i),this._updateDatepicker(t))},_gotoToday:function(t){var e=w(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var s=w(t),t=this._getInst(s[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(s)},_selectDay:function(t,e,i,s){var n=w(t);w(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=w("a",s).html(),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=w(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=w(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,s=this._get(t,"altField");s&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),w(s).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]}
vendor: 5,735 bytes, line 114
114,iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;function a(t){return(t=k+1<e.length&&e.charAt(k+1)===t)&&k++,t}function i(t){var e=a(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(!(e=n.substring(c).match(e)))throw"Missing number at position "+c;return c+=e[0].length,parseInt(e[0],10)}function s(t,e,i){var s=-1,e=w.map(a(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(w.each(e,function(t,e){var i=e[1];if(n.substr(c,i.length).toLowerCase()===i.toLowerCase())return s=e[0],c+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+c}function o(){if(n.charAt(c)!==e.charAt(k))throw"Unexpected literal at position "+c;c++}for(var r,l,h,c=0,d=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof d?d:(new Date).getFullYear()%100+parseInt(d,10),u=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,p=(t?t.dayNames:null)||this._defaults.dayNames,f=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,g=(t?t.monthNames:null)||this._defaults.monthNames,m=-1,_=-1,v=-1,y=-1,b=!1,k=0;k<e.length;k++)if(b)"'"!==e.charAt(k)||a("'")?o():b=!1;else switch(e.charAt(k)){case"d":v=i("d");break;case"D":s("D",u,p);break;case"o":y=i("o");break;case"m":_=i("m");break;case"M":_=s("M",f,g);break;case"y":m=i("y");break;case"@":m=(h=new Date(i("@"))).getFullYear(),_=h.getMonth()+1,v=h.getDate();break;case"!":m=(h=new Date((i("!")-this._ticksTo1970)/1e4)).getFullYear(),_=h.getMonth()+1,v=h.getDate();break;case"'":a("'")?o():b=!0;break;default:o()}if(c<n.length&&(l=n.substr(c),!/^\s+/.test(l)))throw"Extra/unparsed characters found in date: "+l;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=d?0:-100)),-1<y)for(_=1,v=y;;){if(v<=(r=this._getDaysInMonth(m,_-1)))break;_++,v-=r}if((h=this._daylightSavingAdjust(new Date(m,_-1,v))).getFullYear()!==m||h.getMonth()+1!==_||h.getDate()!==v)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function n(t){return(t=o+1<e.length&&e.charAt(o+1)===t)&&o++,t}function s(t,e,i){var s=""+e;if(n(t))for(;s.length<i;)s="0"+s;return s}function a(t,e,i,s){return(n(t)?s:i)[e]}var o,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,l=(i?i.dayNames:null)||this._defaults.dayNames,h=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,c=(i?i.monthNames:null)||this._defaults.monthNames,d="",u=!1;if(t)for(o=0;o<e.length;o++)if(u)"'"!==e.charAt(o)||n("'")?d+=e.charAt(o):u=!1;else switch(e.charAt(o)){case"d":d+=s("d",t.getDate(),2);break;case"D":d+=a("D",t.getDay(),r,l);break;case"o":d+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=s("m",t.getMonth()+1,2);break;case"M":d+=a("M",t.getMonth(),h,c);break;case"y":d+=n("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":n("'")?d+="'":u=!0;break;default:d+=e.charAt(o)}return d},_possibleChars:function(e){function t(t){return(t=n+1<e.length&&e.charAt(n+1)===t)&&n++,t}for(var i="",s=!1,n=0;n<e.length;n++)if(s)"'"!==e.charAt(n)||t("'")?i+=e.charAt(n):s=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":t("'")?i+="'":s=!0;break;default:i+=e.charAt(n)}return i},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),a=n,o=this._getFormatConfig(t);try{a=this.parseDate(i,s,o)||n}catch(t){s=e?"":s}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=s?a.getDate():0,t.currentMonth=s?a.getMonth():0,t.currentYear=s?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var i,s,t=null==t||""===t?e:"string"==typeof t?function(t){try{return w.datepicker.parseDate(w.datepicker._get(r,"dateFormat"),t,w.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?w.datepicker._getDate(r):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=a.exec(t);o;){switch(o[2]||"d"){case"d":case"D":n+=parseInt(o[1],10);break;case"w":case"W":n+=7*parseInt(o[1],10);break;case"m":case"M":s+=parseInt(o[1],10),n=Math.min(n,w.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(o[1],10),n=Math.min(n,w.datepicker._getDaysInMonth(i,s))}o=a.exec(t)}return new Date(i,s,n)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(s=new Date).setDate(s.getDate()+i),s):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null}
vendor: 5,150 bytes, line 114
114,_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,a=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&a===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){w.datepicker._adjustDate(i,-e,"M")},next:function(){w.datepicker._adjustDate(i,+e,"M")},hide:function(){w.datepicker._hideDatepicker()},today:function(){w.datepicker._gotoToday(i)},selectDay:function(){return w.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return w.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return w.datepicker._selectMonthYear(i,this,"Y"),!1}};w(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,a,o,r,l,h,c,d,u,p,f,g,m,_,v,y,b,k,w,D,x,C,M,I,T,S,P,N,H=new Date,A=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),O=this._get(t,"isRTL"),F=this._get(t,"showButtonPanel"),W=this._get(t,"hideIfNoPrevNext"),E=this._get(t,"navigationAsDateFormat"),Y=this._getNumberOfMonths(t),L=this._get(t,"showCurrentAtPos"),H=this._get(t,"stepMonths"),R=1!==Y[0]||1!==Y[1],j=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),B=this._getMinMaxDate(t,"min"),z=this._getMinMaxDate(t,"max"),K=t.drawMonth-L,q=t.drawYear;if(K<0&&(K+=12,q--),z)for(e=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth()-Y[0]*Y[1]+1,z.getDate())),e=B&&e<B?B:e;this._daylightSavingAdjust(new Date(q,K,1))>e;)--K<0&&(K=11,q--);for(t.drawMonth=K,t.drawYear=q,L=this._get(t,"prevText"),L=E?this.formatDate(L,this._daylightSavingAdjust(new Date(q,K-H,1)),this._getFormatConfig(t)):L,i=this._canAdjustMonth(t,-1,q,K)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+L+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"e":"w")+"'>"+L+"</span></a>":W?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+L+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"e":"w")+"'>"+L+"</span></a>",L=this._get(t,"nextText"),L=E?this.formatDate(L,this._daylightSavingAdjust(new Date(q,K+H,1)),this._getFormatConfig(t)):L,s=this._canAdjustMonth(t,1,q,K)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+L+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"w":"e")+"'>"+L+"</span></a>":W?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+L+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"w":"e")+"'>"+L+"</span></a>",W=this._get(t,"currentText"),L=this._get(t,"gotoCurrent")&&t.currentDay?j:A,W=E?this.formatDate(W,L,this._getFormatConfig(t)):W,E=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",E=F?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(O?E:"")+(this._isInRange(t,L)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+W+"</button>":"")+(O?"":E)+"</div>":"",n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,a=this._get(t,"showWeek"),o=this._get(t,"dayNames"),r=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),h=this._get(t,"monthNamesShort"),c=this._get(t,"beforeShowDay"),d=this._get(t,"showOtherMonths"),u=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),f="",m=0;m<Y[0];m++){for(_="",this.maxRows=4,v=0;v<Y[1];v++){if(y=this._daylightSavingAdjust(new Date(q,K,t.selectedDay)),D=" ui-corner-all",b="",R){if(b+="<div class='ui-datepicker-group",1<Y[1])switch(v){case 0:b+=" ui-datepicker-group-first",D=" ui-corner-"+(O?"right":"left");break;case Y[1]-1:b+=" ui-datepicker-group-last",D=" ui-corner-"+(O?"left":"right");break;default:b+=" ui-datepicker-group-middle",D=""}b+="'>"}for(b+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===m?O?s:i:"")+(/all|right/.test(D)&&0===m?O?i:s:"")+this._generateMonthYearHeader(t,K,q,B,z,0<m||0<v,l,h)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=a?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",g=0;g<7;g++)k+="<th scope='col'"+(5<=(g+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+o[w=(g+n)%7]+"'>"+r[w]+"</span></th>";for(b+=k+"</tr></thead><tbody>",x=this._getDaysInMonth(q,K),q===t.selectedYear&&K===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,x)),D=(this._getFirstDayOfMonth(q,K)-n+7
vendor: 4,776 bytes, line 114
114)%7,x=Math.ceil((D+x)/7),C=R&&this.maxRows>x?this.maxRows:x,this.maxRows=C,M=this._daylightSavingAdjust(new Date(q,K,1-D)),I=0;I<C;I++){for(b+="<tr>",T=a?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(M)+"</td>":"",g=0;g<7;g++)S=c?c.apply(t.input?t.input[0]:null,[M]):[!0,""],N=(P=M.getMonth()!==K)&&!u||!S[0]||B&&M<B||z&&z<M,T+="<td class='"+(5<=(g+n+6)%7?" ui-datepicker-week-end":"")+(P?" ui-datepicker-other-month":"")+(M.getTime()===y.getTime()&&K===t.selectedMonth&&t._keyEvent||p.getTime()===M.getTime()&&p.getTime()===y.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(P&&!d?"":" "+S[1]+(M.getTime()===j.getTime()?" "+this._currentClass:"")+(M.getTime()===A.getTime()?" ui-datepicker-today":""))+"'"+(P&&!d||!S[2]?"":" title='"+S[2].replace(/'/g,"'")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+M.getMonth()+"' data-year='"+M.getFullYear()+"'")+">"+(P&&!d?" ":N?"<span class='ui-state-default'>"+M.getDate()+"</span>":"<a class='ui-state-default"+(M.getTime()===A.getTime()?" ui-state-highlight":"")+(M.getTime()===j.getTime()?" ui-state-active":"")+(P?" ui-priority-secondary":"")+"' href='#'>"+M.getDate()+"</a>")+"</td>",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);b+=T+"</tr>"}11<++K&&(K=0,q++),_+=b+="</tbody></table>"+(R?"</div>"+(0<Y[0]&&v===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}f+=_}return f+=E,t._keyEvent=!1,f},_generateMonthYearHeader:function(t,e,i,s,n,a,o,r){var l,h,c,d,u,p,f,g=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),v="<div class='ui-datepicker-title'>",y="";if(a||!g)y+="<span class='ui-datepicker-month'>"+o[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||c<=n.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(_||(v+=y+(!a&&g&&m?"":" ")),!t.yearshtml)if(t.yearshtml="",a||!m)v+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),p=(o=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(t)?u:t})(d[0]),f=Math.max(p,o(d[1]||"")),p=s?Math.max(p,s.getFullYear()):p,f=n?Math.min(f,n.getFullYear()):f,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=f;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",v+=t.yearshtml,t.yearshtml=null}return v+=this._get(t,"yearSuffix"),_&&(v+=(!a&&g&&m?"":" ")+y),v+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=null,a=null,o=this._get(t,"yearRange");return o&&(t=o.split(":"),o=(new Date).getFullYear(),n=parseInt(t[0],10),a=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(n+=o),t[1].match(/[+\-].*/)&&(a+=o)),(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())&&(!n||e.getFullYear()>=n)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}}
vendor: 5,140 bytes, line 114
114,_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),w.fn.datepicker=function(t){if(!this.length)return this;w.datepicker.initialized||(w(document).on("mousedown",w.datepicker._checkExternalClick),w.datepicker.initialized=!0),0===w("#"+w.datepicker._mainDivId).length&&w("body").append(w.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?w.datepicker["_"+t+"Datepicker"].apply(w.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?w.datepicker["_"+t+"Datepicker"].apply(w.datepicker,[this].concat(e)):w.datepicker._attachDatepicker(this,t)})},w.datepicker=new m,w.datepicker.initialized=!1,w.datepicker.uuid=(new Date).getTime(),w.datepicker.version="1.12.1";w.datepicker,w.widget("ui.slider",w.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=i.add(w(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){w(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:w.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=w("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,a,e,o,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),o={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(o),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-r.values(t));(e<s||s===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(s=e,n=w(this),a=t)}),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),e=n.offset(),o=!w(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=o?{left:0,top:0}:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return 1<t&&(t=1),t<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)}
vendor: 4,213 bytes, line 114
114,_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n=this.value(),a=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(s,i):Math.max(s,i)),a[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,a))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,s,n;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!w.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=t,n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),w.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e,t=t-i;return 2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,s,n,a=this.options.range,o=this.options,r=this,l=!this._animateOff&&o.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,h["horizontal"===r.orientation?"left":"bottom"]=i+"%",w(this).stop(1,1)[l?"animate":"css"](h,o.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,
vendor: 4,812 bytes, line 114
1141)[l?"animate":"css"]({left:i+"%"},o.animate),1===t&&r.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:o.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},o.animate),1===t&&r.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:o.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,o.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},o.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},o.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},o.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},o.animate))},_handleEvents:{keydown:function(t){var e,i,s,n=w(t.target).data("ui-slider-handle-index");switch(t.keyCode){case w.ui.keyCode.HOME:case w.ui.keyCode.END:case w.ui.keyCode.PAGE_UP:case w.ui.keyCode.PAGE_DOWN:case w.ui.keyCode.UP:case w.ui.keyCode.RIGHT:case w.ui.keyCode.DOWN:case w.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(w(t.target),null,"ui-state-active"),!1===this._start(t,n)))return}switch(s=this.options.step,e=i=this._hasMultipleValues()?this.values(n):this.value(),t.keyCode){case w.ui.keyCode.HOME:i=this._valueMin();break;case w.ui.keyCode.END:i=this._valueMax();break;case w.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case w.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case w.ui.keyCode.UP:case w.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case w.ui.keyCode.DOWN:case w.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=w(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(w(t.target),null,"ui-state-active"))}}});var b,k,T,S,P,N,H,A,O,F,W,E,Y,L,R,j,B,z,K,q,U="ui-effects-",V="ui-effects-style",X="ui-effects-animated",G=w;function $(t,e,i){var s=A[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:t<0?0:s.max<t?s.max:t)}function J(s){var n=N(),a=n._rgba=[];return s=s.toLowerCase(),F(P,function(t,e){var i=e.re.exec(s),i=i&&e.parse(i),e=e.space||"rgba";if(i)return i=n[e](i),n[H[e].cache]=i[H[e].cache],a=n._rgba=i._rgba,!1}),a.length?("0,0,0,0"===a.join()&&b.extend(a,T.transparent),n):T[s]}function Q(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function Z(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(n[w.camelCase(e)]=s[e]);else for(e in s)"string"==typeof s[e]&&(n[e]=s[e]);return n}function tt(t,e,i,s){return w.isPlainObject(t)&&(t=(e=t).effect),t={effect:t},null==e&&(e={}),w.isFunction(e)&&(s=e,i=null,e={}),"number"!=typeof e&&!w.fx.speeds[e]||(s=i,i=e,e={}),w.isFunction(i)&&(s=i,i=null),e&&w.extend(t,e),i=i||e.duration,t.duration=w.fx.off?0:"number"==typeof i?i:i in w.fx.speeds?w.fx.speeds[i]:w.fx.speeds._default,t.complete=s||e.complete,t}function et(t){return!t||"number"==typeof t||w.fx.speeds[t]||("string"==typeof t&&!w.effects.effect[t]||(w.isFunction(t)||"object"==typeof t&&!t.effect))}function it(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}w.effects={effect:{}},S=/^([\-+])=\s*(\d+\.?\d*)/,P=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}
vendor: 4,791 bytes, line 114
114],N=(b=G).Color=function(t,e,i,s){return new b.Color.fn.parse(t,e,i,s)},H={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},A={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},O=N.support={},st=b("<p>")[0],F=b.each,st.style.cssText="background-color:rgba(1,1,1,.5)",O.rgba=-1<st.style.backgroundColor.indexOf("rgba"),F(H,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),N.fn=b.extend(N.prototype,{parse:function(n,t,e,i){if(n===k)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=b(n).css(t),t=k);var a=this,s=b.type(n),o=this._rgba=[];return t!==k&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(J(n)||T._default):"array"===s?(F(H.rgba.props,function(t,e){o[e.idx]=$(n[e.idx],e)}),this):"object"===s?(F(H,n instanceof N?function(t,e){n[e.cache]&&(a[e.cache]=n[e.cache].slice())}:function(t,i){var s=i.cache;F(i.props,function(t,e){if(!a[s]&&i.to){if("alpha"===t||null==n[t])return;a[s]=i.to(a._rgba)}a[s][e.idx]=$(n[t],e,!0)}),a[s]&&b.inArray(null,a[s].slice(0,3))<0&&(a[s][3]=1,i.from&&(a._rgba=i.from(a[s])))}),this):void 0},is:function(t){var n=N(t),a=!0,o=this;return F(H,function(t,e){var i,s=n[e.cache];return s&&(i=o[e.cache]||e.to&&e.to(o._rgba)||[],F(e.props,function(t,e){if(null!=s[e.idx])return a=s[e.idx]===i[e.idx]})),a}),a},_space:function(){var i=[],s=this;return F(H,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,o){var e=(h=N(t))._space(),i=H[e],t=0===this.alpha()?N("transparent"):this,r=t[i.cache]||i.to(t._rgba),l=r.slice(),h=h[i.cache];return F(i.props,function(t,e){var i=e.idx,s=r[i],n=h[i],a=A[e.type]||{};null!==n&&(null===s?l[i]=n:(a.mod&&(a.mod/2<n-s?s+=a.mod:a.mod/2<s-n&&(s-=a.mod)),l[i]=$((n-s)*o+s,e)))}),this[e](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=N(t)._rgba;return N(b.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=b.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=b.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+b.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),N.fn.parse.prototype=N.fn,H.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,s=t[2]/255,n=t[3],a=Math.max(e,i,s),o=Math.min(e,i,s),r=a-o,l=a+o,t=.5*l,i=o===a?0:e===a?60*(i-s)/r+360:i===a?60*(s-e)/r+120:60*(e-i)/r+240,l=0==r?0:t<=.5?r/l:r/(2-l);return[Math.round(i)%360,l,t,null==n?1:n]},H.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],t=t[3],i=s<=.5?s*(1+i):s+i-s*i,s=2*s-i;return[Math.round(255*Q(s,i,e+1/3)),Math.round(255*Q(s,i,e)),Math.round(255*Q(s,i,e-1/3)),t]},F(H,function(l,t){var a=t.props,o=t.cache,r=t.to,h=t.from;N.fn[l]=function(t){if(r&&!this[o]&&(this[o]=r(this._rgba)),t===k)return this[o].slice();var e,i=b.type(t),s="array"===i||"object"===i?t:arguments,n=this[o].slice();return F(a,function(t,e){t=s["object"===i?t:e.idx];null==t&&(t=n[e.idx]),n[e.idx]=$(t,e)}),h?((e=N(h(n)))[o]=n,e):N(n)},F(a,function(o,r){N.fn[o]||(N.fn[o]=function(t){var e,i=b.type(t),s="alpha"===o?this._hsla?"hsla":"rgba":l,n=this[s](),a=n[r.idx];return"undefined"===i?a:("function"===i&&(t=t.call(this,a),i=b.type(t)),null==t&&r.empty?this:("string"===i&&(e=S.exec(t))&&(t=a+parseFloat(e[2])*("+"===e[1]?1:-1)),n[r.idx]=t,this[s](n)))})})}),N.hook=function(t){t=t.split(" ");F(t,function(t,a){b.cssHooks[a]={set:function(t,e){var i,s,n="";if("transparent"!==e&&("string"!==b.type(e)||(i=J(e)))){if(e=N(i||e),!O.rgba&&1!==e._rgba[3]){for(s="backgroundColor"===a?t.parentNode:t;(""===n||"transparent"===n)&&s&&s.style;)try{n=b.css(s,"backgroundColor"),s=s.parentNode}catch(t){}e=e.blend(n&&"transparent"!==n?n:"_default")}e=e.toRgbaString()}try{t.style[a]=e}catch(t){}}},b.fx.step[a]=function(t){t.colorInit||(t.start=N(t.elem,a),t.end=N(t.end),t.colorInit=!0),b.cssHooks[a].set(t.elem,t.start.transition(t.end,t.pos))}})},N.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),b.cssHooks.borderColor={expand:function(i){var s={};return F(["Top","Right","Bottom","Left"],function(t,e){s["border"+e+"Color"]=i}),s}}
vendor: 10,090 bytes, line 114
114,T=b.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},L=["add","remove","toggle"],R={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},w.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){w.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(G.style(t.elem,e,t.end),t.setAttr=!0)}}),w.fn.addBack||(w.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),w.effects.animateClass=function(n,t,e,i){var a=w.speed(t,e,i);return this.queue(function(){var i=w(this),t=i.attr("class")||"",e=(e=a.children?i.find("*").addBack():i).map(function(){return{el:w(this),start:Z(this)}}),s=function(){w.each(L,function(t,e){n[e]&&i[e+"Class"](n[e])})};s(),e=e.map(function(){return this.end=Z(this.el[0]),this.diff=function(t,e){var i,s,n={};for(i in e)s=e[i],t[i]!==s&&(R[i]||!w.fx.step[i]&&isNaN(parseFloat(s))||(n[i]=s));return n}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=w.Deferred(),i=w.extend({},a,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),w.when.apply(w,e.get()).done(function(){s(),w.each(arguments,function(){var e=this.el;w.each(this.diff,function(t){e.css(t,"")})}),a.complete.call(i[0])})})},w.fn.extend({addClass:(Y=w.fn.addClass,function(t,e,i,s){return e?w.effects.animateClass.call(this,{add:t},e,i,s):Y.apply(this,arguments)}),removeClass:(E=w.fn.removeClass,function(t,e,i,s){return 1<arguments.length?w.effects.animateClass.call(this,{remove:t},e,i,s):E.apply(this,arguments)}),toggleClass:(W=w.fn.toggleClass,function(t,e,i,s,n){return"boolean"==typeof e||void 0===e?i?w.effects.animateClass.call(this,e?{add:t}:{remove:t},i,s,n):W.apply(this,arguments):w.effects.animateClass.call(this,{toggle:t},e,i,s)}),switchClass:function(t,e,i,s,n){return w.effects.animateClass.call(this,{add:e,remove:t},i,s,n)}}),w.expr&&w.expr.filters&&w.expr.filters.animated&&(w.expr.filters.animated=(j=w.expr.filters.animated,function(t){return!!w(t).data(X)||j(t)})),!1!==w.uiBackCompat&&w.extend(w.effects,{save:function(t,e){for(var i=0,s=e.length;i<s;i++)null!==e[i]&&t.data(U+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;s<n;s++)null!==e[s]&&(i=t.data(U+e[s]),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=w("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!w.contains(i[0],n)||w(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(w.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),w.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!w.contains(t[0],e)||w(e).trigger("focus")),t}}),w.extend(w.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),w.effects.effect[t]=i,w.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*s,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1<e&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(V,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(V)||"",t.removeData(V)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=w("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(U+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=U+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){w.effects.restoreStyle(t),w.effects.removePlaceholder(t)},setTransition:function(s,t,n,a){return a=a||{},w.each(t,function(t,e){var i=s.cssUnit(e);0<i[0]&&(a[e]=i[0]*n+i[1])}),a}}),w.fn.extend({effect:function(){function t(t){var e=w(this),i=w.effects.mode(e,r)||a;e.data(X,!0),l.push(i),a&&("show"===i||i===a&&"hide"===i)&&e.show(),a&&"none"===i||w.effects.saveStyle(e),w.isFunction(t)&&t()}var s=tt.apply(this,arguments),n=w.effects.effect[s.effect],a=n.mode,e=s.queue,i=e||"fx",o=s.complete,r=s.mode,l=[];return w.fx.off||!n?r?this[r](s.duration,o):this.each(function(){o&&o.call(this)}):!1===e?this.each(t).each(h):this.queue(i,t).queue(i,h);function h(t){var e=w(this);function i(){w.isFunction(o)&&o.call(e[0]),w.isFunction(t)&&t()}s.mode=l.shift(),!1===w.uiBackCompat||a?"none"===s.mode?(e[r](),i()):n.call(e[0],s,function(){e.removeData(X),w.effects.cleanUp(e),"hide"===s.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===r:"show"===r)?(e[r](),i()):n.call(e[0],s,i)}},show:(K=w.fn.show,function(t){if(et(t))return K.apply(this,arguments);var e=tt.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:(z=w.fn.hide,function(t){if(et(t))return z.apply(this,arguments);var e=tt.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(B=w.fn.toggle,function(t){if(et(t)||"boolean"==typeof t)return B.apply(this,arguments);var e=tt.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(t){var i=this.css(t),s=[];return w.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):it(this.css("clip"),this)},transfer:function(t,e){var i=w(this),s=w(t.to),n="fixed"===s.css("position"),a=w("body"),o=n?a.scrollTop():0,r=n?a.scrollLeft():0,a=s.offset(),a={top:a.top-o,left:a.left-r,height:s.innerHeight(),width:s.innerWidth()},s=i.offset(),l=w("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:s.top-o,left:s.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),w.isFunction(e)&&e()})}}),w.fx.step.clip=function(t){t.clipInit||(t.start=w(t.elem).cssClip(),"string"==typeof t.end&&(t.end=it(t.end,t.elem)),t.clipInit=!0),w(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},q={},w.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){q[t]=function(t){return Math.pow(t,e+2)}}),w.extend(q,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),w.each(q,function(t,e){w.easing["easeIn"+t]=e,w.easing["easeOut"+t]=function(t){return 1-e(1-t)},w.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var st=w.effects;w.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=w(this),n=t.direction||"up",a=s.cssClip(),o={clip:w.extend({},a)},r=w.effects.createPlaceholder(s);o.clip[i[n][0]]=o.clip[i[n][1]],"show"===t.mode&&(s.cssClip(o.clip),r&&r.css(w.effects.clipToBox(o)),o.clip=a),r&&r.animate(w.effects.clipToBox(o),t.duration,t.easing),s.animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),w.effects.define("bounce",function(t,e){var i,s,n=w(this),a=t.mode,o="hide"===a,r="show"===a,l=t.direction||"up",h=t.distance,c=t.times||5,a=2*c+(r||o?1:0),d=t.duration/a,u=t.easing,p="up"===l||"down"===l?"top":"left",f="up"===l||"left"===l,g=0,t=n.queue().length;for(w.effects.createPlaceholder(n),l=n.css(p),h=h||n["top"==p?"outerHeight":"outerWidth"]()/3,r&&((s={opacity:1})[p]=l,n.css("opacity",0).css(p,f?2*-h:2*h).animate(s,d,u)),o&&(h/=Math.pow(2,c-1)),(s={})[p]=l;g<c;g++)(i={})[p]=(f?"-=":"+=")+h,n.animate(i,d,u).animate(s,d,u),h=o?2*h:h/2;o&&((i={opacity:0}
114)[p]=(f?"-=":"+=")+h,n.animate(i,d,u)),n.queue(e),w.effects.unshift(n,t,1+a)}),w.effects.define("clip","hide",function(t,e){var i={},s=w(this),n=t.direction||"vertical",a="both"===n,o=a||"horizontal"===n,a=a||"vertical"===n,n=s.cssClip();i.clip={top:a?(n.bottom-n.top)/2:n.top,right:o?(n.right-n.left)/2:n.right,bottom:a?(n.bottom-n.top)/2:n.bottom,left:o?(n.right-n.left)/2:n.left},w.effects.createPlaceholder(s),"show"===t.mode&&(s.cssClip(i.clip),i.clip=n),s.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),w.effects.define("drop","hide",function(t,e){var i=w(this),s="show"===t.mode,n=t.direction||"left",a="up"===n||"down"===n?"top":"left",o="up"===n||"left"===n?"-=":"+=",r="+="==o?"-=":"+=",l={opacity:0};w.effects.createPlaceholder(i),n=t.distance||i["top"==a?"outerHeight":"outerWidth"](!0)/2,l[a]=o+n,s&&(i.css(l),l[a]=r+n,l.opacity=1),i.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),w.effects.define("explode","hide",function(t,e){var i,s,n,a,o,r,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=w(this),d="show"===t.mode,u=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),g=[];function m(){g.push(this),g.length===l*h&&(c.css({visibility:"visible"}),w(g).remove(),e())}for(i=0;i<l;i++)for(a=u.top+i*f,r=i-(l-1)/2,s=0;s<h;s++)n=u.left+s*p,o=s-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:n+(d?o*p:0),top:a+(d?r*f:0),opacity:d?0:1}).animate({left:n+(d?0:o*p),top:a+(d?0:r*f),opacity:d?1:0},t.duration||500,t.easing,m)}),w.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;w(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),w.effects.define("fold","hide",function(e,t){var i=w(this),s=e.mode,n="show"===s,a="hide"===s,o=e.size||15,r=/([0-9]+)%/.exec(o),l=!!e.horizFirst?["right","bottom"]:["bottom","right"],h=e.duration/2,c=w.effects.createPlaceholder(i),d=i.cssClip(),u={clip:w.extend({},d)},p={clip:w.extend({},d)},f=[d[l[0]],d[l[1]]],s=i.queue().length;r&&(o=parseInt(r[1],10)/100*f[a?0:1]),u.clip[l[0]]=o,p.clip[l[0]]=o,p.clip[l[1]]=0,n&&(i.cssClip(p.clip),c&&c.css(w.effects.clipToBox(p)),p.clip=d),i.queue(function(t){c&&c.animate(w.effects.clipToBox(u),h,e.easing).animate(w.effects.clipToBox(p),h,e.easing),t()}).animate(u,h,e.easing).animate(p,h,e.easing).queue(t),w.effects.unshift(i,s,4)}),w.effects.define("highlight","show",function(t,e){var i=w(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),w.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),w.effects.define("size",function(s,e){var n,i=w(this),t=["fontSize"],a=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=s.mode,l="effect"!==r,h=s.scale||"both",c=s.origin||["middle","center"],d=i.css("position"),u=i.position(),p=w.effects.scaledDimensions(i),f=s.from||p,g=s.to||w.effects.scaledDimensions(i,0);w.effects.createPlaceholder(i),"show"===r&&(r=f,f=g,g=r),n={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==h&&"both"!==h||(n.from.y!==n.to.y&&(f=w.effects.setTransition(i,a,n.from.y,f),g=w.effects.setTransition(i,a,n.to.y,g)),n.from.x!==n.to.x&&(f=w.effects.setTransition(i,o,n.from.x,f),g=w.effects.setTransition(i,o,n.to.x,g))),"content"!==h&&"both"!==h||n.from.y!==n.to.y&&(f=w.effects.setTransition(i,t,n.from.y,f),g=w.effects.setTransition(i,t,n.to.y,g)),c&&(c=w.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*c.y+u.top,f.left=(p.outerWidth-f.outerWidth)*c.x+u.left,g.top=(p.outerHeight-g.outerHeight)*c.y+u.top,g.left=(p.outerWidth-g.outerWidth)*c.x+u.left),i.css(f),"content"!==h&&"both"!==h||(a=a.concat(["marginTop","marginBottom"]).concat(t),o=o.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=w(this),e=w.effects.scaledDimensions(t),i={height:e.height*n.from.y,width:e.width*n.from.x,outerHeight:e.outerHeight*n.from.y,outerWidth:e.outerWidth*n.from.x},e={height:e.height*n.to.y,width:e.width*n.to.x,outerHeight:e.height*n.to.y,outerWidth:e.width*n.to.x};n.from.y!==n.to.y&&(i=w.effects.setTransition(t,a,n.from.y,i),e=w.effects.setTransition(t,a,n.to.y,e)),n.from.x!==n.to.x&&(i=w.effects.setTransition(t,o,n.from.x,i),e=w.effects.setTransition(t,o,n.to.x,e)),l&&w.effects.saveStyle(t),t.css(i),t.animate(e,s.duration,s.easing,function(){l&&w.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===d?"relative":d).offset(t),w.effects.saveStyle(i)),e()}})}),w.effects.define("scale",function(t,e){var i=w(this),s=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),s=w.extend(!0,{from:w.effects.scaledDimensions(i),to:w.effects.scaledDimensions(i,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(s.from.opacity=1,s.to.opacity=0),w.effects.effect.size.call(this,s,e)}),w.effects.define("puff","hide",function(t,e){t=w.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});w.effects.effect.scale.call(this,t,e)}),w.effects.define("pulsate","show",function(t,e){var i=w(this),s=t.mode,n="show"===s,s=n||"hide"===s,a=2*(t.times||5)+(s?1:0),o=t.duration/a,r=0,l=1,s=i.queue().length;for(!n&&i.is(":visible")||(i.css("opacity",0).show(),r=1);l<a;l++)i.animate({opacity:r},o,t.easing),r=1-r;i.animate({opacity:r},o,t.easing),i.queue(e),w.effects.unshift(i,s,1+a)}),w.effects.define("shake",function(t,e){var i=1,s=w(this),n=t.direction||"left",a=t.distance||20,o=t.times||3,r=2*o+1,l=Math.round(t.duration/r),h="up"===n||"down"===n?"top":"left",c="up"===n||"left"===n,d={},u={},p={},n=s.queue().length;for(w.effects.createPlaceholder(s),d[h]=(c?"-=":"+=")+a,u[h]=(c?"+=":"-=")+2*a,p[h]=(c?"-=":"+=")+2*a,s.animate(d,l,t.easing);i<o;i++)s.animate(u,l,t.easing).animate(p,l,t.easing);s.animate(u,l,t.easing).animate(d,l/2,t.easing).queue(e),w.effects.unshift(s,n,1+r)}),w.effects.define("slide","show",function(t,e){var i,s,n=w(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},o=t.mode,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r,c=t.distance||n["top"==l?"outerHeight":"outerWidth"](!0),d={};w.effects.createPlaceholder(n),i=n.cssClip(),s=n.position()[l],d[l]=(h?-1:1)*c+s,d.clip=n.cssClip(),d.clip[a[r][1]]=d.clip[a[r][0]],"show"===o&&(n.cssClip(d.clip),n.css(l,d[l]),d.clip=i,d[l]=s),n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:e})});!1!==w.uiBackCompat&&(st=w.effects.define("transfer",function(t,e){w(this).transfer(t,e)}))}); 115!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery); 116(function(a){a.tools=a.tools||{version:"v1.2.7"},a.tools.overlay={addEffect:function(a,b,d){c[a]=[b,d]},conf:{close:null,closeOnClick:!0,closeOnEsc:!0,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:!1,mask:null,oneInstance:!0,speed:"normal",target:null,top:"10%"}};var b=[],c={};a.tools.overlay.addEffect("default",function(b,c){var d=this.getConf(),e=a(window);d.fixed||(b.top+=e.scrollTop(),b.left+=e.scrollLeft()),b.position=d.fixed?"fixed":"absolute",this.getOverlay().css(b).fadeIn(d.speed,c)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});function d(d,e){var f=this,g=d.add(f),h=a(window),i,j,k,l=a.tools.expose&&(e.mask||e.expose),m=Math.random().toString().slice(10);l&&(typeof l=="string"&&(l={color:l}),l.closeOnClick=l.closeOnEsc=!1);var n=e.target||d.attr("rel");j=n?a(n):null||d;if(!j.length)throw"Could not find Overlay: "+n;d&&d.index(j)==-1&&d.click(function(a){f.load(a);return a.preventDefault()}),a.extend(f,{load:function(d){if(f.isOpened())return f;var i=c[e.effect];if(!i)throw"Overlay: cannot find effect : \""+e.effect+"\"";e.oneInstance&&a.each(b,function(){this.close(d)}),d=d||a.Event(),d.type="onBeforeLoad",g.trigger(d);if(d.isDefaultPrevented())return f;k=!0,l&&a(j).expose(l);var n=e.top,o=e.left,p=j.outerWidth({margin:!0}
116),q=j.outerHeight({margin:!0});typeof n=="string"&&(n=n=="center"?Math.max((h.height()-q)/2,0):parseInt(n,10)/100*h.height()),o=="center"&&(o=Math.max((h.width()-p)/2,0)),i[0].call(f,{top:n,left:o},function(){k&&(d.type="onLoad",g.trigger(d))}),l&&e.closeOnClick&&a.mask.getMask().one("click",f.close),e.closeOnClick&&a(document).on("click."+m,function(b){a(b.target).parents(j).length||f.close(b)}),e.closeOnEsc&&a(document).on("keydown."+m,function(a){a.keyCode==27&&f.close(a)});return f},close:function(b){if(!f.isOpened())return f;b=b||a.Event(),b.type="onBeforeClose",g.trigger(b);if(!b.isDefaultPrevented()){k=!1,c[e.effect][1].call(f,function(){b.type="onClose",g.trigger(b)}),a(document).off("click."+m+" keydown."+m),l&&a.mask.close();return f}},getOverlay:function(){return j},getTrigger:function(){return d},getClosers:function(){return i},isOpened:function(){return k},getConf:function(){return e}}),a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){b&&a(f).on(c,b);return f}}),i=j.find(e.close||".close"),!i.length&&!e.close&&(i=a("<a class=\"close\"></a>"),j.prepend(i)),i.click(function(a){f.close(a)}),e.load&&f.load()}a.fn.overlay=function(c){var e=this.data("overlay");if(e)return e;a.isFunction(c)&&(c={onBeforeLoad:c}),c=a.extend(!0,{},a.tools.overlay.conf,c),this.each(function(){e=new d(a(this),c),b.push(e),a(this).data("overlay",e)});return c.api?e:this}})(jQuery); 117(function(a){a.tools=a.tools||{version:"v1.2.7"},a.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:"> *",items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",size:1,speed:400,vertical:!1,touch:!0,wheelSpeed:0}};function b(a,b){var c=parseInt(a.css(b),10);if(c)return c;var d=a[0].currentStyle;return d&&d.width&&parseInt(d.width,10)}function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}var d;function e(b,e){var f=this,g=b.add(f),h=b.children(),i=0,j=e.vertical;d||(d=f),h.length>1&&(h=a(e.items,b)),e.size>1&&(e.circular=!1),a.extend(f,{getConf:function(){return e},getIndex:function(){return i},getSize:function(){return f.getItems().size()},getNaviButtons:function(){return n.add(o)},getRoot:function(){return b},getItemWrap:function(){return h},getItems:function(){return h.find(e.item).not("."+e.clonedClass)},move:function(a,b){return f.seekTo(i+a,b)},next:function(a){return f.move(e.size,a)},prev:function(a){return f.move(-e.size,a)},begin:function(a){return f.seekTo(0,a)},end:function(a){return f.seekTo(f.getSize()-1,a)},focus:function(){d=f;return f},addItem:function(b){b=a(b),e.circular?(h.children().last().before(b),h.children().first().replaceWith(b.clone().addClass(e.clonedClass))):(h.append(b),o.removeClass("disabled")),g.trigger("onAddItem",[b]);return f},seekTo:function(b,c,k){b.jquery||(b*=1);if(e.circular&&b===0&&i==-1&&c!==0)return f;if(!e.circular&&b<0||b>f.getSize()||b<-1)return f;var l=b;b.jquery?b=f.getItems().index(b):l=f.getItems().eq(b);var m=a.Event("onBeforeSeek");if(!k){g.trigger(m,[b,c]);if(m.isDefaultPrevented()||!l.length)return f}var n=j?{top:-l.position().top}:{left:-l.position().left};i=b,d=f,c===undefined&&(c=e.speed),h.animate(n,c,e.easing,k||function(){g.trigger("onSeek",[b])});return f}}),a.each(["onBeforeSeek","onSeek","onAddItem"],function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){b&&a(f).on(c,b);return f}});if(e.circular){var k=f.getItems().slice(-1).clone().prependTo(h),l=f.getItems().eq(1).clone().appendTo(h);k.add(l).addClass(e.clonedClass),f.onBeforeSeek(function(a,b,c){if(!a.isDefaultPrevented()){if(b==-1){f.seekTo(k,c,function(){f.end(0)});return a.preventDefault()}b==f.getSize()&&f.seekTo(l,c,function(){f.begin(0)})}});var m=b.parents().add(b).filter(function(){if(a(this).css("display")==="none")return!0});m.length?(m.show(),f.seekTo(0,0,function(){}),m.hide()):f.seekTo(0,0,function(){})}var n=c(b,e.prev).click(function(a){a.stopPropagation(),f.prev()}),o=c(b,e.next).click(function(a){a.stopPropagation(),f.next()});e.circular||(f.onBeforeSeek(function(a,b){setTimeout(function(){a.isDefaultPrevented()||(n.toggleClass(e.disabledClass,b<=0),o.toggleClass(e.disabledClass,b>=f.getSize()-1))},1)}
117),e.initialIndex||n.addClass(e.disabledClass)),f.getSize()<2&&n.add(o).addClass(e.disabledClass),e.mousewheel&&a.fn.mousewheel&&b.mousewheel(function(a,b){if(e.mousewheel){f.move(b<0?1:-1,e.wheelSpeed||50);return!1}});if(e.touch){var p={};h[0].ontouchstart=function(a){var b=a.touches[0];p.x=b.clientX,p.y=b.clientY},h[0].ontouchmove=function(a){if(a.touches.length==1&&!h.is(":animated")){var b=a.touches[0],c=p.x-b.clientX,d=p.y-b.clientY;f[j&&d>0||!j&&c>0?"next":"prev"](),a.preventDefault()}}}e.keyboard&&a(document).on("keydown.scrollable",function(b){if(!(!e.keyboard||b.altKey||b.ctrlKey||b.metaKey||a(b.target).is(":input"))){if(e.keyboard!="static"&&d!=f)return;var c=b.keyCode;if(j&&(c==38||c==40)){f.move(c==38?-1:1);return b.preventDefault()}if(!j&&(c==37||c==39)){f.move(c==37?-1:1);return b.preventDefault()}}}),e.initialIndex&&f.seekTo(e.initialIndex,0,function(){})}a.fn.scrollable=function(b){var c=this.data("scrollable");if(c)return c;b=a.extend({},a.tools.scrollable.conf,b),this.each(function(){c=new e(a(this),b),a(this).data("scrollable",c)});return b.api?c:this}})(jQuery); 118(function(a){var b=a.tools.scrollable;b.autoscroll={conf:{autoplay:!0,interval:3e3,autopause:!0}},a.fn.autoscroll=function(c){typeof c=="number"&&(c={interval:c});var d=a.extend({},b.autoscroll.conf,c),e;this.each(function(){var b=a(this).data("scrollable"),c=b.getRoot(),f,g=!1;function h(){f&&clearTimeout(f),f=setTimeout(function(){b.next()},d.interval)}b&&(e=b),b.play=function(){f||(g=!1,c.on("onSeek",h),h())},b.pause=function(){f=clearTimeout(f),c.off("onSeek",h)},b.resume=function(){g||b.play()},b.stop=function(){g=!0,b.pause()},d.autopause&&c.add(b.getNaviButtons()).hover(b.pause,b.resume),d.autoplay&&b.play()});return d.api?e:this}})(jQuery); 119(function(a){var b=a.tools.scrollable;b.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,idPrefix:null,history:!1}};function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}a.fn.navigator=function(d){typeof d=="string"&&(d={navi:d}),d=a.extend({},b.navigator.conf,d);var e;this.each(function(){var b=a(this).data("scrollable"),f=d.navi.jquery?d.navi:c(b.getRoot(),d.navi),g=b.getNaviButtons(),h=d.activeClass,i=d.history&&history.pushState,j=b.getConf().size;b&&(e=b),b.getNaviButtons=function(){return g.add(f)},i&&(history.pushState({i:0},""),a(window).on("popstate",function(a){var c=a.originalEvent.state;c&&b.seekTo(c.i)}));function k(a,c,d){b.seekTo(c),d.preventDefault(),i&&history.pushState({i:c},"")}function l(){return f.find(d.naviItem||"> *")}function m(b){var c=a("<"+(d.naviItem||"a")+"/>").click(function(c){k(a(this),b,c)});b===0&&c.addClass(h),d.indexed&&c.text(b+1),d.idPrefix&&c.attr("id",d.idPrefix+b);return c.appendTo(f)}l().length?l().each(function(b){a(this).click(function(c){k(a(this),b,c)})}):a.each(b.getItems(),function(a){a%j==0&&m(a)}),b.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var c=b/j,d=l().eq(c);d.length&&l().removeClass(h).eq(c).addClass(h)}},1)}),b.onAddItem(function(a,c){var d=b.getItems().index(c);d%j==0&&m(d)})});return d.api?e:this}})(jQuery); 120(function(a){a.tools=a.tools||{version:"v1.2.7"},a.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialEffect:!1,initialIndex:0,event:"click",rotate:!1,slideUpSpeed:400,slideDownSpeed:400,history:!1},addEffect:function(a,c){b[a]=c}};var b={"default":function(a,b){this.getPanes().hide().eq(a).show(),b.call()},fade:function(a,b){var c=this.getConf(),d=c.fadeOutSpeed,e=this.getPanes();d?e.fadeOut(d):e.hide(),e.eq(a).fadeIn(c.fadeInSpeed,b)},slide:function(a,b){var c=this.getConf();this.getPanes().slideUp(c.slideUpSpeed),this.getPanes().eq(a).slideDown(c.slideDownSpeed,b)},ajax:function(a,b){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),b)}},c,d;a.tools.tabs.addEffect("horizontal",function(b,e){if(!c){var f=this.getPanes().eq(b),g=this.getCurrentPane();d||(d=this.getPanes().eq(0).width()),c=!0,f.show(),g.animate({width:0},{step:function(a){f.css("width",d-a)},complete:function(){a(this).hide(),e.call(),c=!1}}),g.length||(e.call(),c=!1)}});function e(c,d,e){var f=this,g=c.add(this),h=c.find(e.tabs),i=d.jquery?d:c.children(d),j;h.length||(h=c.children()),i.length||(i=c.parent().find(d)),i.length||(i=a(d)),a.extend(this,{click:function(d,i){var k=h.eq(d),l=!c.data("tabs");
120typeof d=="string"&&d.replace("#","")&&(k=h.filter("[href*=\""+d.replace("#","")+"\"]"),d=Math.max(h.index(k),0));if(e.rotate){var m=h.length-1;if(d<0)return f.click(m,i);if(d>m)return f.click(0,i)}if(!k.length){if(j>=0)return f;d=e.initialIndex,k=h.eq(d)}if(d===j)return f;i=i||a.Event(),i.type="onBeforeClick",g.trigger(i,[d]);if(!i.isDefaultPrevented()){var n=l?e.initialEffect&&e.effect||"default":e.effect;b[n].call(f,d,function(){j=d,i.type="onClick",g.trigger(i,[d])}),h.removeClass(e.current),k.addClass(e.current);return f}},getConf:function(){return e},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return f.click(j+1)},prev:function(){return f.click(j-1)},destroy:function(){h.off(e.event).removeClass(e.current),i.find("a[href^=\"#\"]").off("click.T");return f}}),a.each("onBeforeClick,onClick".split(","),function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){b&&a(f).on(c,b);return f}}),e.history&&a.fn.history&&(a.tools.history.init(h),e.event="history"),h.each(function(b){a(this).on(e.event,function(a){f.click(b,a);return a.preventDefault()})}),i.find("a[href^=\"#\"]").on("click.T",function(b){f.click(a(this).attr("href"),b)}),location.hash&&e.tabs=="a"&&c.find("[href=\""+location.hash+"\"]").length?f.click(location.hash):(e.initialIndex===0||e.initialIndex>0)&&f.click(e.initialIndex)}a.fn.tabs=function(b,c){var d=this.data("tabs");d&&(d.destroy(),this.removeData("tabs")),a.isFunction(c)&&(c={onBeforeClick:c}),c=a.extend({},a.tools.tabs.conf,c),this.each(function(){d=new e(a(this),b,c),a(this).data("tabs",d)});return c.api?d:this}})(jQuery); 121(function(a){a.tools=a.tools||{version:"v1.2.7"};var b;b=a.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:!0,closeOnEsc:!0,zIndex:9998,opacity:.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};function c(){if(a.browser.msie){var b=a(document).height(),c=a(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b-c<20?c:b]}return[a(document).width(),a(document).height()]}function d(b){if(b)return b.call(a.mask)}var e,f,g,h,i;a.mask={load:function(j,k){if(g)return this;typeof j=="string"&&(j={color:j}),j=j||h,h=j=a.extend(a.extend({},b.conf),j),e=a("#"+j.maskId),e.length||(e=a("<div/>").attr("id",j.maskId),a("body").append(e));var l=c();e.css({position:"absolute",top:0,left:0,width:l[0],height:l[1],display:"none",opacity:j.startOpacity,zIndex:j.zIndex}),j.color&&e.css("backgroundColor",j.color);if(d(j.onBeforeLoad)===!1)return this;j.closeOnEsc&&a(document).on("keydown.mask",function(b){b.keyCode==27&&a.mask.close(b)}),j.closeOnClick&&e.on("click.mask",function(b){a.mask.close(b)}),a(window).on("resize.mask",function(){a.mask.fit()}),k&&k.length&&(i=k.eq(0).css("zIndex"),a.each(k,function(){var b=a(this);/relative|absolute|fixed/i.test(b.css("position"))||b.css("position","relative")}),f=k.css({zIndex:Math.max(j.zIndex+1,i=="auto"?0:i)})),e.css({display:"block"}).fadeTo(j.loadSpeed,j.opacity,function(){a.mask.fit(),d(j.onLoad),g="full"}),g=!0;return this},close:function(){if(g){if(d(h.onBeforeClose)===!1)return this;e.fadeOut(h.closeSpeed,function(){d(h.onClose),f&&f.css({zIndex:i}),g=!1}),a(document).off("keydown.mask"),e.off("click.mask"),a(window).off("resize.mask")}return this},fit:function(){if(g){var a=c();e.css({width:a[0],height:a[1]})}},getMask:function(){return e},isLoaded:function(a){return a?g=="full":g},getConf:function(){return h},getExposed:function(){return f}},a.fn.mask=function(b){a.mask.load(b);return this},a.fn.expose=function(b){a.mask.load(b,this);return this}})(jQuery); 122(function(c){c.tools=c.tools||{};c.tools.tooltip={version:"1.1.0",conf:{effect:"slide",direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!c.browser.msie,fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],cancelDefault:true,offset:[0,0],api:false,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout"}},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf();this.getTip().css({opacity:f.opacity}).show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};var d={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};c.tools.tooltip.addEffect("slide",function(e){var g=this.getConf(),h=this.getTip(),i=g.slideFade?{opacity:g.opacity}:{},f=d[g.direction]||d.up;i[f[1]]=f[0]+"="+g.slideOffset;if(g.slideFade){h.css({opacity:0}
122)}h.show().animate(i,g.slideInSpeed,e)},function(f){var h=this.getConf(),j=h.slideOffset,i=h.slideFade?{opacity:0}:{},g=d[h.direction]||d.up;var e=""+g[0];if(h.bounce){e=e=="+"?"-":"+"}i[g[1]]=e+"="+j;this.getTip().animate(i,h.slideOutSpeed,function(){c(this).hide();f.call()})});function a(f,g){var p=this;f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function h(q,r){c(p).bind(q,function(t,s){if(r&&r.call(this,s?s.position:undefined)===false&&s){s.proceed=false}});return p}function o(){var t=f.position().top-l.outerHeight();var q=l.outerHeight()+f.outerHeight();var u=g.position[0];if(u=="center"){t+=q/2}if(u=="bottom"){t+=q}var r=f.outerWidth()+l.outerWidth();var s=f.position().left+f.outerWidth();u=g.position[1];if(u=="center"){s-=r/2}if(u=="left"){s-=r}t+=g.offset[0];s+=g.offset[1];return{top:t,left:s}}c.each(g,function(q,r){if(c.isFunction(r)){h(q,r)}});var j=f.is(":input"),e=j&&f.is(":checkbox, :radio, select, :button"),i=f.attr("type"),n=g.events[i]||g.events[j?(e?"widget":"input"):"def"];n=n.split(/,\s*/);f.bind(n[0],function(r){var q=l.data("trigger");if(q&&q[0]!=this){l.hide()}r.target=this;p.show(r);l.hover(p.show,function(s){p.hide()})});f.bind(n[1],function(){p.hide()});if(!c.browser.msie&&!j){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,k=f.attr("title");if(k&&g.cancelDefault){f.removeAttr("title");f.data("title",k)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o();if(g.tip&&k){l.html(k)}var s={proceed:true,position:t};c(p).trigger("onBeforeShow",s);if(s.proceed===false){return p}t=o();l.css({position:"absolute",top:t.top,left:t.left});b[g.effect][0].call(p,function(){c(p).trigger("onShow")})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){var r={proceed:true};c(p).trigger("onBeforeHide",r);if(r.proceed===false){return}b[g.effect][1].call(p,function(){c(p).trigger("onHide")})}if(g.delay){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},onBeforeShow:function(q){return h("onBeforeShow",q)},onShow:function(q){return h("onShow",q)},onBeforeHide:function(q){return h("onBeforeHide",q)},onHide:function(q){return h("onHide",q)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}c.extend(true,g,e);
122if(typeof g.position=="string"){g.position=g.position.split(/,?\s/)}if(g.lazy!==false&&(g.lazy===true||this.length>20)){this.one("mouseover",function(){f=new a(c(this),g);f.show()})}else{this.each(function(){f=new a(c(this),g)})}return g.api?f:this}})(jQuery); 123(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.substring(0,q)||"*";var o=s.substring(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).substring(2,10)}var h=function(t,r,s){var q=this;var p={};var u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.substring(0,v.length-1);var w="onBefore"+v.substring(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var s={};var o=this;var u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var y=q._api().fp_getPlugin(p);if(!y){return}i(o,y);delete o.methods;if(!u){m(y.methods,function(){var A=""+this;o[A]=function(){var B=[].slice.call(arguments);var C=q._api().fp_invoke(p,A,B);return C==="undefined"||C===undefined?o:C}});u=true}}var z=s[w];if(z){z.apply(o,v);if(w.substring(0,1)=="_"){delete s[w]}}}})};function b(o,t,z){var E=this,y=null,x,u,p=[],s={},B={},r,v,w,D,A,q;i(E,{id:function(){return r},isLoaded:function(){return(y!==null)},getParent:function(){return o},hide:function(F){if(F){o.style.height="0px"}if(y){y.style.height="0px"}return E},show:function(){o.style.height=q+"px";if(y){y.style.height=A+"px"}return E},isHidden:function(){return y&&parseInt(y.style.height,10)===0},load:function(F){if(!y&&E._fireEvent("onBeforeLoad")!==false){m(a,function(){this.unload()});x=o.innerHTML;if(x&&!flashembed.isSupported(t.version)){o.innerHTML=""}flashembed(o,t,{config:z});if(F){F.cached=true;j(B,"onLoad",F)}}return E},unload:function(){if(x.replace(/\s/g,"")!==""){if(E._fireEvent("onBeforeUnload")===false){return E}try{if(y){y.fp_close()}}catch(F){}y=null;o.innerHTML=x;E._fireEvent("onUnload")}return E},getClip:function(F){if(F===undefined){F=D}return p[F]},getCommonClip:function(){return u},getPlaylist:function(){return p},getPlugin:function(F){var H=s[F];if(!H&&E.isLoaded()){var G=E._api().fp_getPlugin(F);if(G){H=new l(F,G,E);s[F]=H}}return H},getScreen:function(){return E.getPlugin("screen")}
123,getControls:function(){return E.getPlugin("controls")},getConfig:function(F){return F?k(z):z},getFlashParams:function(){return t},loadPlugin:function(I,H,K,J){if(typeof K=="function"){J=K;K={}}var G=J?e():"_";E._api().fp_loadPlugin(I,H,K,G);var F={};F[G]=J;var L=new l(I,null,E,F);s[I]=L;return L},getState:function(){return y?y.fp_getState():-1},play:function(G,F){function H(){if(G!==undefined){E._api().fp_play(G,F)}else{E._api().fp_play()}}if(y){H()}else{E.load(function(){H()})}return E},getVersion:function(){var G="flowplayer.js 3.1.4";if(y){var F=y.fp_getVersion();F.push(G);return F}return G},_api:function(){if(!y){throw"Flowplayer "+E.id()+" not loaded when calling an API method"}return y},setClip:function(F){E.setPlaylist([F]);return E},getIndex:function(){return w}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var F="on"+this;if(F.indexOf("*")!=-1){F=F.substring(0,F.length-1);var G="onBefore"+F.substring(2);E[G]=function(H){j(B,G,H);return E}}E[F]=function(H){j(B,F,H);return E}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffer
123ing,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed").split(","),function(){var F=this;E[F]=function(H,G){if(!y){return E}var I=null;if(H!==undefined&&G!==undefined){I=y["fp_"+F](H,G)}else{I=(H===undefined)?y["fp_"+F]():y["fp_"+F](H)}return I==="undefined"||I===undefined?E:I}});E._fireEvent=function(O){if(typeof O=="string"){O=[O]}var P=O[0],M=O[1],K=O[2],J=O[3],I=0;if(z.debug){g(O)}if(!y&&P=="onLoad"&&M=="player"){y=y||c(v);A=y.clientHeight;m(p,function(){this._fireEvent("onLoad")});m(s,function(Q,R){R._fireEvent("onUpdate")});u._fireEvent("onLoad")}if(P=="onLoad"&&M!="player"){return}if(P=="onError"){if(typeof M=="string"||(typeof M=="number"&&typeof K=="number")){M=K;K=J}}if(P=="onContextMenu"){m(z.contextMenu[M],function(Q,R){R.call(E)});return}if(P=="onPluginEvent"){var F=M.name||M;var G=s[F];if(G){G._fireEvent("onUpdate",M);G._fireEvent(K,O.slice(3))}return}if(P=="onPlaylistReplace"){p=[];var L=0;m(M,function(){p.push(new h(this,L++,E))})}if(P=="onClipAdd"){if(M.isInStream){return}M=new h(M,K,E);p.splice(K,0,M);for(I=K+1;I<p.length;I++){p[I].index++}}var N=true;if(typeof M=="number"&&M<p.length){D=M;var H=p[M];if(H){N=H._fireEvent(P,K,J)}if(!H||N!==false){N=u._fireEvent(P,K,J,H)}}m(B[P],function(){N=this.call(E,M,K);if(this.cached){B[P].splice(I,1)}if(N===false){return false}I++});return N};function C(){if($f(o)){$f(o).getParent().innerHTML="";w=$f(o).getIndex();a[w]=E}else{a.push(E);w=a.length-1}q=parseInt(o.style.height,10)||o.clientHeight;if(typeof t=="string"){t={src:t}}r=o.id||"fp"+e();v=t.id||r+"_api";t.id=v;t.cachebusting=true;z.playerId=r;if(typeof z=="string"){z={clip:{url:z}}}if(typeof z.clip=="string"){z.clip={url:z.clip}}z.clip=z.clip||{};if(o.getAttribute("href",2)&&!z.clip.url){z.clip.url=o.getAttribute("href",2)}u=new h(z.clip,-1,E);z.playlist=z.playlist||[z.clip];var F=0;m(z.playlist,function(){var H=this;if(typeof H=="object"&&H.length){H={url:""+H}}m(z.clip,function(I,J){if(J!==undefined&&H[I]===undefined&&typeof J!="function"){H[I]=J}});z.playlist[F]=H;H=new h(H,F,E);p.push(H);F++});m(z,function(H,I){if(typeof I=="function"){if(u[H]){u[H](I)}else{j(B,H,I)}delete z[H]}});m(z.plugins,function(H,I){if(I){s[H]=new l(H,I,E)}});if(!z.plugins||z.plugins.controls===undefined){s.controls=new l("controls",null,E)}s.canvas=new l("canvas",null,E);t.bgcolor=t.bgcolor||"#000000";t.version=t.version||[9,0];t.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function G(H){if(!E.isLoaded()&&E._fireEvent("onBeforeClick")!==false){E.load()}return f(H)}x=o.innerHTML;if(x.replace(/\s/g,"")!==""){if(o.addEventListener){o.addEventListener("click",G,false)}else{if(o.attachEvent){o.attachEvent("onclick",G)}}}else{if(o.addEventListener){o.addEventListener("click",f,false)}E.load()}}if(typeof o=="string"){flashembed.domReady(function(){var F=c(o);if(!F){throw"Flowplayer cannot access element: "+o}else{o=F;C()}})}else{C()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var r=arguments[1];var q=(arguments.length==3)?arguments[2]:{};if(typeof o=="string"){if(o.indexOf(".")!=-1){var t=[];m(n(o),function(){t.push(new b(this,k(r),k(q)))});return new d(t)}else{var s=c(o);return new b(s!==null?s:o,r,q)}}else{if(o){return new b(o,r,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};
123function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})(); 124;(function (define) { 125 'use strict'; 126 define(['jquery'], function ($) { 127 var $scrollTo = $.scrollTo = function( target, duration, settings ) { 128 return $(window).scrollTo( target, duration, settings ); 129 }; 130 $scrollTo.defaults = { 131 axis:'xy', 132 duration: 0, 133 limit:true 134 }; 135 $scrollTo.window = function( scope ) { 136 return $(window)._scrollable(); 137 }; 138 $.fn._scrollable = function() { 139 return this.map(function() { 140 var elem = this, 141 isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1; 142 if (!isWin) 143 return elem; 144 var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem; 145 return /webkit/i.test(navigator.userAgent) || doc.compatMode == 'BackCompat' ? 146 doc.body : 147 doc.documentElement; 148 }); 149 }; 150 $.fn.scrollTo = function( target, duration, settings ) { 151 if (typeof duration == 'object') { 152 settings = duration; 153 duration = 0; 154 } 155 if (typeof settings == 'function') 156 settings = { onAfter:settings }; 157 if (target == 'max') 158 target = 9e9; 159 settings = $.extend( {}, $scrollTo.defaults, settings ); 160 duration = duration || settings.duration; 161 settings.queue = settings.queue && settings.axis.length > 1; 162 if (settings.queue) 163 duration /= 2; 164 settings.offset = both( settings.offset ); 165 settings.over = both( settings.over ); 166 return this._scrollable().each(function() { 167 if (target == null) return; 168 var elem = this, 169 $elem = $(elem), 170 targ = target, toff, attr = {}, 171 win = $elem.is('html,body'); 172 switch (typeof targ) { 173 case 'number': 174 case 'string': 175 if (/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)) { 176 targ = both( targ ); 177 break; 178 } 179 targ = win ? $(targ) : $(targ, this); 180 if (!targ.length) return; 181 case 'object': 182 if (targ.is || targ.style) 183 toff = (targ = $(targ)).offset(); 184 } 185 var offset = $.isFunction(settings.offset) && settings.offset(elem, targ) || settings.offset; 186 $.each( settings.axis.split(''), function( i, axis ) {
187 var Pos = axis == 'x' ? 'Left' : 'Top', 188 pos = Pos.toLowerCase(), 189 key = 'scroll' + Pos, 190 old = elem[key], 191 max = $scrollTo.max(elem, axis); 192 if (toff) {// jQuery / DOMElement 193 attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] ); 194 if (settings.margin) { 195 attr[key] -= parseInt(targ.css('margin'+Pos)) || 0; 196 attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0; 197 } 198 attr[key] += offset[pos] || 0; 199 if(settings.over[pos]) 200 attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos]; 201 } else { 202 var val = targ[pos]; 203 attr[key] = val.slice && val.slice(-1) == '%' ? 204 parseFloat(val) / 100 * max 205 : val; 206 } 207 if (settings.limit && /^\d+$/.test(attr[key])) 208 attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max ); 209 if (!i && settings.queue) { 210 if (old != attr[key]) 211 animate( settings.onAfterFirst ); 212 delete attr[key]; 213 } 214 }); 215 animate( settings.onAfter ); 216 function animate( callback ) { 217 $('body,html').animate( attr, duration, settings.easing, callback && function() { 218 callback.call(this, targ, settings); 219 }); 220 } 221 }).end(); 222 }; 223 $scrollTo.max = function( elem, axis ) { 224 var Dim = axis == 'x' ? 'Width' : 'Height', 225 scroll = 'scroll'+Dim; 226 if (!$(elem).is('html,body')) 227 return elem[scroll] - $(elem)[Dim.toLowerCase()](); 228 var size = 'client' + Dim, 229 html = elem.ownerDocument.documentElement, 230 body = elem.ownerDocument.body; 231 return Math.max( html[scroll], body[scroll] ) - Math.min( html[size] , body[size] ); 232 }; 233 function both( val ) { 234 return $.isFunction(val) || $.isPlainObject(val) ? val : { top:val, left:val }; 235 } 236 return $scrollTo; 237 }) 238}(typeof define === 'function' && define.amd ? define : function (deps, factory) { 239 if (typeof module !== 'undefined' && module.exports) { 240 module.exports = factory(require('jquery')); 241 } else { 242 factory(jQuery); 243 } 244})); 245(function(A){A.marquee={version:"1.0.01"};A.fn.marquee=function(E){var F=typeof arguments[0]=="string"&&arguments[0];var D=F&&Array.prototype.slice.call(arguments,1)||arguments;var C=(this.length==0)?null:A.data(this[0],"marquee");if(C&&F&&this.length){if(F.toLowerCase()=="object"){return C}else{if(C[F]){var B;this.each(function(G){var H=A.data(this,"marquee")[F].apply(C,D);if(G==0&&H){if(!!H.jquery){B=A([]).add(H)}else{B=H;return false}}else{if(!!H&&!!H.jquery){B=B.add(H)}}});return B||this}else{return this}}}else{return this.each(function(){new A.Marquee(this,E)})}};A.Marquee=function(E,Q){Q=A.extend({},A.Marquee.defaults,Q);var O=this,M=A(E),F=M.find("> li"),H=-1,G=false,L=false,N=0;A.data(M[0],"marquee",O);this.pause=function(){G=true;P()};this.resume=function(){G=false;D()};this.update=function(){var R=F.length;F=M.find("> li");if(R<=1){D()}};function K(R){if(F.filter("."+Q.cssShowing).length>0){return false}var T=F.eq(R);if(A.isFunction(Q.beforeshow)){Q.beforeshow.apply(O,[M,T])}var S={top:(Q.yScroll=="top"?"-":"+")+T.outerHeight()+"px",left:0};M.data("marquee.showing",true);T.addClass(Q.cssShowing);T.css(S).animate({top:"0px"},Q.showSpeed,Q.fxEasingShow,function(){if(A.isFunction(Q.show)){Q.show.apply(O,[M,T])}M.data("marquee.showing",false);J(T)})}function J(S,R){if(L==true){return false}R=R||Q.pauseSpeed;if(C(S)){setTimeout(function(){if(L==true){return false}var V=S.outerWidth(),T=V*-1,U=parseInt(S.css("left"),10);S.animate({left:T+"px"},((V+U)*Q.scrollSpeed),Q.fxEasingScroll,function(){I(S)})},R)}else{if(F.length>1){setTimeout(function(){if(L==true){return false}S.animate({top:(Q.yScroll=="top"?"+":"-")+M.innerHeight()+"px"},Q.showSpeed,Q.fxEasingScroll);I(S)},R)}}}function I(R){if(A.isFunction(Q.aftershow)){Q.aftershow.apply(O,[M,R])}R.removeClass(Q.cssShowing);B()}function P(){L=true;if(M.data("marquee.showing")!=true){F.filter("."+Q.cssShowing).dequeue().stop()}}function D(){L=false;if(M.data("marquee.showing")!=true){J(F.filter("."+Q.cssShowing),1)}}if(Q.pauseOnHover){M.hover(function(){if(G){return false}P()},function(){if(G){return false}D()})}function C(R){return(R.outerWidth()>M.innerWidth())}function B(){H++;if(H>=F.length){if(!isNaN(Q.loop)&&Q.loop>0&&(++N>=Q.loop)){return false}H=0}K(H)}if(A.isFunction(Q.init)){Q.init.apply(O,[M,Q])}B()};A.Marquee.defaults={yScroll:"top",showSpeed:850,scrollSpeed:12,pauseSpeed:5000,pauseOnHover:true,loop:-1,fxEasingShow:"swing",fxEasingScroll:"linear",cssShowing:"marquee-showing",init:null,beforeshow:null,show:null,aftershow:null}})(jQuery); 246(function ($) { 247 var defaults = { 248 url: false, 249 callback: false, 250 target: false, 251 duration: 120, 252 on: 'mouseover' 253 }; 254 $.zoom = function(target, source, img) { 255 var outerWidth, 256 outerHeight, 257 xRatio, 258 yRatio, 259 offset, 260 position = $(target).css('position'); 261 $(target).css({ 262 position: /(absolute|fixed)/.test() ? position : 'relative', 263 overflow: 'hidden' 264 }); 265 $(img) 266 .addClass('zoomImg') 267 .css({ 268 position: 'absolute', 269 top: 0, 270 left: 0, 271 opacity: 0, 272 width: img.width, 273 height: 'auto', 274 border: 'none', 275 maxWidth: 'none' 276 }) 277 .appendTo(target); 278 return { 279 init: function() { 280 outerWidth = $(target).outerWidth(); 281 outerHeight = $(target).outerHeight(); 282 xRatio = (img.width - outerWidth) / $(source).outerWidth(); 283 yRatio = (img.height - outerHeight) / $(source).outerHeight(); 284 offset = $(source).offset(); 285 }, 286 move: function (e) { 287 var left = (e.pageX - offset.left), 288 top = (e.pageY - offset.top); 289 top = Math.max(Math.min(top, outerHeight), 0); 290 left = Math.max(Math.min(left, outerWidth), 0); 291 img.style.left = (left * -xRatio) + 'px'; 292 img.style.top = (top * -yRatio) + 'px'; 293 } 294 }; 295 }; 296 $.fn.zoom = function (options) { 297 return this.each(function () { 298 var 299 settings = $.extend({}, defaults, options || {}), 300 target = settings.target || this, 301 source = this, 302 img = new Image(), 303 $img = $(img), 304 mousemove = 'mousemove', 305 clicked = false;
306 if (!settings.url) { 307 settings.url = $(source).find('img').attr('src'); 308 if (!settings.url) { 309 return; 310 } 311 } 312 img.onload = function () { 313 var zoom = $.zoom(target, source, img); 314 function start(e) { 315 zoom.init(); 316 zoom.move(e); 317 $img.stop() 318 .fadeTo($.support.opacity ? settings.duration : 0, 1); 319 } 320 function stop() { 321 $img.stop() 322 .fadeTo(settings.duration, 0); 323 } 324 if (settings.on === 'grab') { 325 $(source).on('mousedown', 326 function (e) { 327 $(document).one('mouseup', 328 function () { 329 stop(); 330 $(document).off(mousemove, zoom.move); 331 } 332 ); 333 start(e); 334 $(document).on(mousemove, zoom.move); 335 e.preventDefault(); 336 } 337 ); 338 } else if (settings.on === 'click') { 339 $(source).on('click', 340 function (e) { 341 if (clicked) { 342 return; 343 } else { 344 clicked = true; 345 start(e); 346 $(document).on(mousemove, zoom.move); 347 $(document).one('click', 348 function () { 349 stop(); 350 clicked = false; 351 $(document).off(mousemove, zoom.move); 352 } 353 ); 354 return false; 355 } 356 } 357 ); 358 } else if (settings.on === 'toggle') { 359 $(source).on('click', 360 function (e) { 361 if (clicked) { 362 stop(); 363 } else { 364 start(e); 365 } 366 clicked = !clicked; 367 } 368 ); 369 } else { 370 zoom.init(); 371 $(source) 372 .on('mouseenter', start) 373 .on('mouseleave', stop) 374 .on(mousemove, zoom.move); 375 } 376 if ($.isFunction(settings.callback)) { 377 settings.callback.call(img); 378 } 379 }; 380 img.src = settings.url; 381 }); 382 }; 383 $.fn.zoom.defaults = defaults; 384}(window.jQuery)); 385function run(variable) { 386 jQuery(function($) { 387 variable.run(); 388 }); 389} 390Object.size = function(obj) { 391 var size = 0, key; 392 for (key in obj) { 393 if (obj.hasOwnProperty(key)) size++; 394 } 395 return size; 396}; 397var Events = { 398 registry : [], 399 register: function(method) 400 { 401 Events.registry[Events.registry.length] = method; 402 }, 403 init: function() 404 { 405 Events.bind($('body')); 406 }, 407 bind: function(elements) 408 { 409 if (!elements.length) { 410 return elements; 411 } 412 $.each(Events.registry, function() { 413 this(elements); 414 }); 415 return elements; 416 } 417} 418$(Events.init); 419var Utils = { 420 uniqueInts: new Object(), 421 getUrl: function(url) 422 { 423 if (!url) { 424 var url = window.location.href; 425 } 426 var hash = url.indexOf('#'); 427 if (hash != -1) { 428 return url.substring(0, hash); 429 } else { 430 return url; 431 } 432 }, 433 getAnchor: function(url) 434 { 435 if (!url) { 436 var url = window.location.href; 437 } 438 var hash = url.indexOf('#'); 439 if (hash != -1) { 440 return url.substring(hash); 441 } 442 return ''; 443 }, 444 getUrlParam: function(name) 445 { 446 name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); 447 var regexS = "[\\?&]"+name+"=([^&#]*)"; 448 var regex = new RegExp(regexS); 449 var results = regex.exec(window.location.href); 450 return results == null ? '' : results[1]; 451 }, 452 uniqueInt: function(n) 453 { 454 if (!n) { 455 var n = 1000; 456 } 457 do { 458 var i = Math.floor(Math.random() * n + 1); 459 } while (Utils.uniqueInts[i]); 460 Utils.uniqueInts[i] = true; 461 return i; 462 }, 463 scrollTo: function(element) 464 { 465 var offset = $('#top').height(); 466 if (offset) { 467 offset += 40; 468 } else { 469 offset = 100; 470 } 471 $.scrollTo(element, { 472 offset: {top: -offset}, 473 duration: 500 474 }); 475 } 476} 477var ConfirmLink = { 478 bind: function(elements) 479 { 480 $('a.confirm', elements).click(ConfirmLink.open); 481 }, 482 open: function() 483 { 484 var a = $(this); 485 if (confirm(a.attr('title'))) { 486 if (a.is('[href^="http"],[href^="ftp"],[rel*="external"]')) { 487 a.each(ExternalLink.open); 488 return false; 489 } 490 Tracking.send(a); 491 return true; 492 } 493 return false; 494 } 495} 496Events.register(ConfirmLink.bind); 497var ExternalLink = { 498 bind: function(elements) 499 { 500 var external = 501 'a[href^="http"]:not(.confirm,.hs,.lang,.popup_window),' + 502 'a[href^="ftp"]:not(.confirm,.hs,.lang,.popup_window),' + 503 'a[rel*="external"]:not(.confirm,.hs,.lang,.popup_window)' 504 ; 505 var contact = 506 'a[href^="mailto:"],' + 507 'a[href^="tel:"],' + 508 'a[href^="skype:"]' 509 ; 510 $(external, elements).click(ExternalLink.open); 511 $(contact, elements).click(ExternalLink.track); 512 }, 513 open: function() 514 { 515 var a = $(this); 516 open(a.attr('href')); 517 Tracking.send(a); 518 return false; 519 }, 520 track: function() 521 { 522 var a = $(this); 523 Tracking.send(a); 524 return true; 525 } 526} 527Events.register(ExternalLink.bind); 528var Tracking = { 529 send: function(a) 530 { 531 try { 532 var url = new URL(a.attr('href')); 533 } catch (error) { 534 var url = new URL(window.location.protocol + '//' + window.location.hostname + a.attr('href')); 535 } 536 var category = url.protocol.slice(0, -1); 537 var label = (url.origin === 'null' ? '' : url.origin) + url.pathname; 538 gtag('event', 'click', {'event_category': category, 'event_label': label}); 539 fbq('trackCustom', 'Click', {'content_category': category, 'content_name': label}); 540 return true; 541 } 542} 543var PopupWindow = { 544 bind: function(elements) 545 { 546 $('a.popup_window', elements).click(PopupWindow.open); 547 }, 548 open: function() 549 { 550 var a = $(this); 551 var width = a.data('width') ? parseInt(a.data('width')) : 640; 552 if ((width + 20) > screen.width) { 553 width = screen.width - 20; 554 } 555 var height = a.data('height') ? parseInt(a.data('height')) : 560; 556 var left = parseInt((screen.width - width) / 2); 557 var top = parseInt((screen.height - height) / 2); 558 var item = window.open(a.attr('href'), a.attr('class'), 'width=' + width + ',height=' + height + ',scrollbars=1,menubar=0,location=0,left=' + left + ',top=' + top); 559 return false;
560 } 561} 562Events.register(PopupWindow.bind); 563var Loader = { 564 run: function() 565 { 566 $('body').prepend('<div id="loading"></div>'); 567 }, 568 show: function(element) 569 { 570 if (element.target) { 571 element = $(element.target); 572 } 573 $('body > #loading').removeClass('inline'); 574 if (element && element.offset()) { 575 var position = element.offset(); 576 var x = position.left + (element.width() / 2) - ($('body > #loading').width() / 2); 577 var y = position.top + (element.height() / 2) - ($('body > #loading').height() / 2); 578 $('body > #loading').addClass('inline').css('left', x).css('top', y); 579 } 580 $('body > #loading').addClass('active'); 581 }, 582 hide: function() 583 { 584 $('body > #loading').removeClass('active'); 585 } 586} 587run(Loader); 588var DropDownMenu = { 589 hideTimeout: null, 590 clickTimeout: null, 591 run: function() 592 { 593 $('.dropdown ul a').removeAttr('title'); 594 $('.dropdown ul li,.dropdown.megamenu li').mouseenter(DropDownMenu.hoverOver); 595 $('.dropdown ul li:has(ul) > a,.dropdown.megamenu li > a').click(DropDownMenu.click).focus(DropDownMenu.focus); 596 $('.dropdown ul li').mouseleave(DropDownMenu.hoverOut); 597 }, 598 hoverOver: function() 599 { 600 var li = $(this); 601 if (DropDownMenu.hideTimeout) { 602 clearTimeout(DropDownMenu.hideTimeout); 603 } 604 if (!li.find('> ul:visible').length) { 605 DropDownMenu.clickTimeout = setTimeout(function() { 606 DropDownMenu.clickTimeout = null; 607 }, 50); 608 } 609 setTimeout(function() { 610 li.siblings('.hover').each(function() { 611 var li = $(this); 612 $('ul:first', li).hide().removeClass('active'); 613 li.removeClass('hover').find('a:first').removeClass('hover'); 614 }); 615 li.addClass('hover').find('li:first').addClass('hover'); 616 }, 50); 617 $('ul:first', li).fadeIn(250, function() { 618 $(this).addClass('active'); 619 }); 620 }, 621 hoverOut: function() 622 { 623 var li = $(this); 624 if (!li.hasClass('hover') && !li.parents().hasClass('hover')) { 625 return; 626 } 627 if (DropDownMenu.hideTimeout) { 628 clearTimeout(DropDownMenu.hideTimeout); 629 } 630 DropDownMenu.hideTimeout = setTimeout(function() { 631 DropDownMenu.hide(li); 632 }, 500); 633 }, 634 hide: function(li) 635 { 636 var child = $('ul:first', li); 637 if (child.size()) { 638 child.fadeOut(150, function(){ 639 li.removeClass('hover'); 640 }); 641 } else { 642 li.removeClass('hover'); 643 } 644 li.find('ul.active').removeClass('active'); 645 }, 646 click: function() 647 { 648 if (DropDownMenu.clickTimeout) { 649 return false; 650 } else { 651 return true; 652 } 653 }, 654 focus: function() 655 { 656 $(this).parent().mouseenter(); 657 } 658} 659run(DropDownMenu); 660var GoogleMap = { 661 inits: [], 662 initialized: false, 663 register: function(callback) 664 { 665 GoogleMap.inits.push(callback); 666 Events.register(callback); 667 }, 668 initialize: function() 669 { 670 GoogleMap.initialized = true; 671 $.each(GoogleMap.inits, function(index, callback){ 672 callback($('body')); 673 }); 674 }, 675 bind: function(elements) 676 { 677 if (!GoogleMap.initialized) { 678 return; 679 } 680 var items = $('.google_map:not(.initialized)', elements); 681 if (items.size()) { 682 callback = function() { 683 items.each(function() { 684 if ($(this).isOnScreen()) { 685 $(this).each(GoogleMap.show).addClass('initialized'); 686 items = $('.google_map:not(.initialized)', elements); 687 if (!items.size()) { 688 $(window).unbind('scroll', callback); 689 } 690 } 691 }); 692 } 693 $(window).scroll(callback); 694 callback(); 695 } 696 }, 697 show: function() 698 { 699 var container = $(this); 700 var x = container.data('x'); 701 var y = container.data('y'); 702 var zoom = parseInt(container.data('zoom')); 703 var width = parseInt(container.css('width')); 704 var height = parseInt(container.css('height')); 705 var lang = $('html').prop('lang'); 706 var icon = $.isDefinedGlobal('mapIcon') ? mapIcon : null; 707 var styles = $.isDefinedGlobal('mapStyles') ? mapStyles : null; 708 container.empty(); 709 if (!$(this).hasClass('directions') && !icon && !styles) { 710 container.html('<iframe width="' + width + '" height="' + height + '" src="https://maps.google.com/maps?q=' + x + ',' + y + '&t=m&z=' + zoom + '&iwloc=&hl=' + lang + '&output=embed" frameborder="0" scrolling="no"></iframe>'); 711 } else { 712 var mapLatlng = new google.maps.LatLng(x, y); 713 var mapOptions = { 714 center: mapLatlng, 715 zoom: zoom, 716 mapTypeId: google.maps.MapTypeId.ROADMAP, 717 disableDefaultUI: true, 718 zoomControl: true, 719 styles: styles 720 }; 721 if (width > 400) { 722 mapOptions.mapTypeControl = true; 723 } 724 var map = new google.maps.Map(container.get(0), mapOptions); 725 var marker = new google.maps.Marker({ 726 map: map, 727 position: mapLatlng, 728 icon: icon 729 }); 730 var directionsService = new google.maps.DirectionsService(); 731 var directionsDisplay = new google.maps.DirectionsRenderer();
732 directionsDisplay.setMap(map); 733 directionsDisplay.setPanel($(this).siblings('div.panel').get(0)); 734 var hsForm = $(this).siblings('form'); 735 var dirHolder = $(this).closest('div.google_map_directions'); 736 var getDirectionRequest = function(start) { 737 var request = { 738 origin: start, 739 destination: mapLatlng, 740 provideRouteAlternatives: true, 741 travelMode: google.maps.DirectionsTravelMode.DRIVING 742 }; 743 directionsService.route(request, function(response, status) { 744 if (status == google.maps.DirectionsStatus.OK) { 745 directionsDisplay.setDirections(response); 746 } 747 }); 748 } 749 var exposeApi = null; 750 var doHsExpand = function(event) { 751 exposeApi = dirHolder.find('div.highslide').expose({ 752 maskId: 'mask', 753 api: true, 754 color: '#000', 755 onBeforeLoad: function() { 756 dirHolder.find('div.highslide').center(); 757 }, 758 onBeforeClose: function() { 759 dirHolder.find('div.highslide').css('left','-10000px'); 760 } 761 }).load(); 762 var start = $(this).closest('form').find('input[type="text"]').val(); 763 if (start) { 764 hsForm.find('input[type="text"]').val(start); 765 } 766 getDirectionRequest(start); 767 event.preventDefault(); 768 } 769 var doGetDirections = function(event) { 770 event.preventDefault(); 771 getDirectionRequest($(this).closest('form').find('input[type="text"]').val()); 772 } 773 dirHolder.find('input[type="text"]').unbind('click').unbind('blur').click(function() { 774 var input = $(this); 775 if (input.val() == input.data('title')) { 776 input.val(''); 777 } else { 778 return; 779 } 780 Geolocation.getLocation(function(result) { 781 if (!result.address) { 782 Loader.show(input); 783 var geocoder = new google.maps.Geocoder(); 784 var latLng = new google.maps.LatLng(result.lat, result.lng); 785 geocoder.geocode({'latLng': latLng}, function(results, status) { 786 result.address = results[0].formatted_address; 787 input.val(result.address); 788 Loader.hide(); 789 }); 790 return; 791 } 792 input.val(result.address); 793 }); 794 return false; 795 }); 796 hsForm.find('input.close').bind('click', function(event) { 797 event.preventDefault(); 798 exposeApi.close(); 799 }); 800 dirHolder.find('> form input[type="submit"]').bind('click', doHsExpand); 801 dirHolder.find('> form').bind('submit', doHsExpand); 802 hsForm.find('input[type="submit"]').bind('click', doGetDirections); 803 hsForm.bind('submit', doGetDirections); 804 } 805 } 806} 807GoogleMap.register(GoogleMap.bind); 808var Geolocation = { 809 getLocation: function(callback) 810 { 811 if (!navigator.geolocation) { 812 return; 813 } 814 navigator.geolocation.getCurrentPosition(function(position) { 815 var result = { 816 address : position.address, 817 lat : position.coords.latitude, 818 lng : position.coords.longitude 819 } 820 return callback.call({}, result); 821 }); 822 } 823}; 824var Tabs = { 825 run: function() 826 { 827 $('.tabbed .tabs a').bind('click', Tabs.onClick); 828 setTimeout(function() { 829 $('form li.error:first:has(:input)').each(Tabs.showError); 830 }, 50); 831 }, 832 onClick: function(event) 833 { 834 event.preventDefault(); 835 var link = $(this); 836 var result = link.attr('id').match(/^tab_link(.+)$/); 837 if (result && result[1]) { 838 var parent = link.closest('.tabbed'); 839 var current = parent.find('.active_tab'); 840 var next = $('#tab' + result[1]); 841 if (!next.hasClass('active_tab')) { 842 next.show().addClass('active_tab'); 843 current.hide().removeClass('active_tab'); 844 parent.find('.tabs li,.tabs li a').removeClass('active'); 845 link.addClass('active').closest('li').addClass('active'); 846 } 847 } 848 return false; 849 }, 850 showError: function() 851 { 852 var error = $(this); 853 error.parents('.tab').each(function() { 854 $('#tab_link' + $(this).attr('id').substring(3)).click(); 855 }); 856 $.scrollTo(error, { 857 offset: {top: -$('#top').height() - 40}, 858 duration: 500 859 }); 860 } 861} 862run(Tabs); 863var MultiCheckboxSelect = { 864 bind: function(elements) 865 { 866 $('input.multi_select[type="checkbox"][value]', elements).click(MultiCheckboxSelect.onClick); 867 }, 868 onClick: function(event) 869 { 870 var checkbox = $(this); 871 var inputs = $('input.'+ checkbox.attr('value')+'[type="checkbox"]', checkbox.closest('.plugin')); 872 if (checkbox.attr('checked')) { 873 inputs.attr('checked', 'checked'); 874 } else { 875 inputs.removeAttr('checked'); 876 } 877 } 878} 879Events.register(MultiCheckboxSelect.bind); 880var VerticalHeightAlign = { 881 items: null, 882 bind: function(elements) 883 { 884 setTimeout(function(){ 885 VerticalHeightAlign.items = new Object; 886 $('.vha', elements).each(VerticalHeightAlign.each); 887 VerticalHeightAlign.setHeights(); 888 }, 100); 889 }, 890 each: function() 891 { 892 var item = $(this); 893 var classNames = item.attr('class').split(' '); 894 jQuery.each(classNames, function(i, n) { 895 var temp = n.split('_'); 896 if (temp[0] == 'vhag') { 897 if (!VerticalHeightAlign.items[n]) { 898 VerticalHeightAlign.items[n] = new Object; 899 } 900 var nextI = Object.size(VerticalHeightAlign.items[n]); 901 VerticalHeightAlign.items[n][nextI] = item; 902 return false;
903 } 904 }); 905 }, 906 setHeights: function() 907 { 908 jQuery.each(VerticalHeightAlign.items, function(key, array) { 909 if (Object.size(array) < 2) { 910 return; 911 } 912 var maxHeight = 0; 913 jQuery.each(array, function(i, item) { 914 var currentHeight = item.height(); 915 if (maxHeight < currentHeight) { 916 maxHeight = currentHeight; 917 } 918 }); 919 if (maxHeight < 50) { 920 return; 921 } 922 jQuery.each(array, function(i, item) { 923 if(maxHeight) { 924 item.css('height', maxHeight + 'px'); 925 } 926 }); 927 }); 928 } 929} 930Events.register(VerticalHeightAlign.bind); 931var SideContentPull = { 932 left: 0, 933 right: 0, 934 speed: 400, 935 bind: function(elements) 936 { 937 SideContentPull.left = Math.abs(parseInt($('.plugins.position_side_left .box_content', elements).width())); 938 SideContentPull.right = Math.abs(parseInt($('.plugins.position_side_right .box_content', elements).width())); 939 $('.plugins.position_side_left .box_content .m_picture img, .plugins.position_side_right .box_content .m_picture img',elements).each(SideContentPull.picAsTab); 940 $('.plugins.position_side_left .box_title, .plugins.position_side_right .box_title',elements).show(SideContentPull.speed); 941 $('.plugins.position_side_left .plugin', elements).hover(SideContentPull.slideLeft, SideContentPull.slideLeft); 942 $('.plugins.position_side_right .plugin', elements).hover(SideContentPull.slideRight, SideContentPull.slideRight); 943 $('.plugins.position_side_left .plugin .box_title', elements).click(SideContentPull.slideLeft); 944 $('.plugins.position_side_right .plugin .box_title', elements).click(SideContentPull.slideRight); 945 }, 946 picAsTab: function() 947 { 948 var src = $(this).attr('src'); 949 if(src) { 950 $(this).closest('.box_top').find('.box_title .box_title_center').html('<img src="' + src + '" />'); 951 } 952 }, 953 slideLeft: function() 954 { 955 var title, content; 956 if($(this).hasClass('box_title')) { 957 title = $(this); 958 content = $(this).closest('.plugin').find('.box_content'); 959 } else { 960 title = $(this).find('.box_title'); 961 content = $(this).find('.box_content'); 962 } 963 SideContentPull.left = Math.abs(parseInt(content.width())); 964 if(title.hasClass('opened')) { 965 content.stop(true).animate({marginLeft: -SideContentPull.left},SideContentPull.speed); 966 title.stop(true).animate({marginLeft: 0},SideContentPull.speed, 'swing', function(){ 967 title.removeClass('opened'); 968 }); 969 } else { 970 content.stop(true).animate({marginLeft: 0}, SideContentPull.speed); 971 title.stop(true).animate({marginLeft: SideContentPull.left},SideContentPull.speed, 'swing', function(){ 972 title.addClass('opened'); 973 }); 974 } 975 }, 976 slideRight: function() 977 { 978 var title, content; 979 if($(this).hasClass('box_title')) { 980 title = $(this); 981 content = $(this).closest('.plugin').find('.box_content'); 982 } else { 983 title = $(this).find('.box_title'); 984 content = $(this).find('.box_content'); 985 } 986 SideContentPull.right = Math.abs(content.width()); 987 if(title.hasClass('opened')) { 988 content.stop(true).animate({marginLeft: 0},SideContentPull.speed); 989 title.stop(true).animate({marginRight: 0},SideContentPull.speed, 'swing', function(){ 990 title.removeClass('opened'); 991 }); 992 } else { 993 content.stop(true).animate({marginLeft: -SideContentPull.right},SideContentPull.speed); 994 title.stop(true).animate({marginRight: SideContentPull.right},SideContentPull.speed, 'swing', function(){ 995 title.addClass('opened'); 996 }); 997 } 998 } 999}; 1000Events.register(SideContentPull.bind); 1001var Zoom = { 1002 bind: function(elements) 1003 { 1004 $('.m_picture a.zoom', elements).each(function(){ 1005 $(this).zoom({url: $(this).attr('href')}); 1006 }); 1007 } 1008}; 1009Events.register(Zoom.bind); 1010var FCKBcomplete = { 1011 bind: function(elements) 1012 { 1013 $('select.fcbkcomplete', elements).each(function(){ 1014 var input = $(this); 1015 var post_data = '?ajax_plugin=' + ajax_plugin[input.attr('id')] + '&ajax_action=' + ajax_action[input.attr('id')]; 1016 if (typeof(ajax_params)!="undefined" && typeof(ajax_params[input.attr('id')])!="undefined") { 1017 post_data = post_data + '&' + ajax_params[input.attr('id')]; 1018 } 1019 var params = { 1020 complete_text: complete_text[input.attr('id')], 1021 json_url: Utils.getUrl(input.parents('form.form').attr('action')) + post_data, 1022 cache: false, 1023 filter_hide: false, 1024 firstselected: true, 1025 filter_selected: false, 1026 maxshownitems: 100, 1027 maxitems: 1, 1028 newel: false 1029 }; 1030 if (typeof(fcbk_params)!="undefined" && typeof(fcbk_params[input.attr('id')])!="undefined") { 1031 $.extend(params, fcbk_params[input.attr('id')]); 1032 } 1033 $(this).fcbkcomplete(params); 1034 }); 1035 } 1036}; 1037Events.register(FCKBcomplete.bind); 1038var SkipToContent = { 1039 bind: function(elements) 1040 { 1041 $('#skip_to_content', elements).click(function() { 1042 var anchor = $(this).attr('href'); 1043 window.location.hash = anchor; 1044 Utils.scrollTo(anchor); 1045 return false;
1046 }); 1047 } 1048}; 1049Events.register(SkipToContent.bind); 1050window.addEventListener('message', function(event) { 1051 try { 1052 var object = JSON.parse(event.data); 1053 if (object.event === 'resize') { 1054 $('.box_content_center iframe').height(object.height); 1055 } 1056 } catch (e) { 1057 } 1058}, false); 1059$(function(){ 1060 $('body.preload').removeClass('preload'); 1061}); 1062$(window).load(function() { 1063 setTimeout(function() { 1064 [].forEach.call(document.querySelectorAll('source[data-srcset]'), function(source) { 1065 source.setAttribute('srcset', source.getAttribute('data-srcset')); 1066 source.removeAttribute('data-srcset'); 1067 }); 1068 [].forEach.call(document.querySelectorAll('img[data-src]'), function(img) { 1069 img.setAttribute('src', img.getAttribute('data-src')); 1070 img.removeAttribute('data-src'); 1071 img.onload = function() { 1072 img.setAttribute('alt', img.getAttribute('data-alt')); 1073 img.removeAttribute('data-alt'); 1074 }; 1075 }); 1076 }, 100); 1077}); 1078$(window).load(function() { 1079 if (typeof window.FB != 'undefined') { 1080 FB.init({ 1081 xfbml : true, 1082 version : 'v2.7' 1083 }); 1084 } 1085}); 1086var Form = { 1087 bind: function(elements) 1088 { 1089 $('form.form', elements).find('input[type=hidden].form_token[value=""]').each(Form.token); 1090 $('form.form', elements).find('input[type=text],input[type=number],input[type=tel],input[type=password],textarea,select').each(Form.focus); 1091 $('form.form', elements).find('input[type=text],input[type=number],input[type=tel],input[type=password],textarea,select,input[type=checkbox],input[type=radio]').change(Form.validate); 1092 $('form label', elements).filter(function() { 1093 return $(this).css('opacity') == 0 || !$(this).is(':visible'); 1094 }).each(Form.attachInputHints); 1095 $('form.form', elements).each(Form.fetchSettings); 1096 $('form.form .optionsYN input[type="checkbox"]').bind('changeStatus', Form.optionsYNchange).change(Form.optionsYN).trigger('changeStatus'); 1097 $('form.form', elements).find('[autocomplete=off]').bind('animationstart', Form.disableAutofill); 1098 Form.helpTooltips(elements); 1099 FormCheckbox.bind(elements); 1100 FormRadio.bind(elements); 1101 FormSubmit.bind(elements); 1102 }, 1103 token: function() 1104 { 1105 var updated; 1106 var input = $(this); 1107 var form = input.parents('form'); 1108 var setToken = function(event) { 1109 $(this).unbind(event); 1110 if (updated || input.val()) { 1111 return; 1112 } 1113 var data = 'ajax_content_id=' + formContent[form.attr('id')] + '&form_token=' + input.attr('name'); 1114 updated = $.ajax({ 1115 url : Utils.getUrl(), 1116 type : 'POST', 1117 dataType : 'json', 1118 data : data, 1119 success : function(response) { 1120 if (response && !input.val()) { 1121 setTimeout(function() { 1122 input.val(response.token); 1123 }, 1500); 1124 } 1125 } 1126 }); 1127 }; 1128 form.click(setToken).touchstart(setToken).mouseover(setToken); 1129 }, 1130 focus: function() 1131 { 1132 var li = $(this).parents('li:first'); 1133 $(this).focus(function() { 1134 li.addClass('focus'); 1135 li.addClass('current'); 1136 }); 1137 $(this).blur(function() { 1138 if (!$(this).val()) li.removeClass('focus'); 1139 li.removeClass('current'); 1140 }); 1141 if ($(this).val()) li.addClass('focus'); 1142 }, 1143 activeValidators: [], 1144 validate: function(e) 1145 { 1146 var input = $(this); 1147 if (input.hasClass('skip_validation')) { 1148 return; 1149 } 1150 var form = input.closest('form'); 1151 var data = 'ajax_content_id=' + formContent[form.attr('id')] + '&' + form.serialize(); 1152 if (Form.activeValidators[input.name()]) { 1153 Form.activeValidators[input.name()].abort(); 1154 } 1155 Form.activeValidators[input.name()] = $.ajax({ 1156 url : Utils.getUrl(), 1157 type : 'POST', 1158 dataType : 'json', 1159 data : data, 1160 success : function(data) { 1161 var name = input.attr('name').split('[')[0]; 1162 if (name in data.errors) { 1163 Form.setError(input, data.errors[name]); 1164 } else { 1165 Form.setValid(input); 1166 } 1167 Form.activeValidators[input.name()] = null; 1168 form.find('.error:input').each(function() { 1169 var name = $(this).attr('name').split('[')[0]; 1170 if (!(name in data.errors)) { 1171 Form.setValid($(this)); 1172 } 1173 }); 1174 } 1175 }); 1176 }, 1177 setError: function(input, error) 1178 { 1179 if (!error) { 1180 error = ''; 1181 } 1182 Form.getFamily(input).removeClass('valid').addClass('error'); 1183 Form.removeErrorMessage(input); 1184 input.parents('li:first,td:first').find('>div').append('<strong>' + error + '</strong>'); 1185 input.trigger('error'); 1186 }, 1187 setValid: function(input) 1188 { 1189 Form.getFamily(input).removeClass('error').addClass('valid'); 1190 Form.removeErrorMessage(input); 1191 input.trigger('valid'); 1192 }, 1193 removeErrorMessage: function(input) 1194 { 1195 input.parents('li:first,td:first').find('>div').find('strong').remove(); 1196 }, 1197 getFamily: function(input) 1198 { 1199 return input.add(input.parents('li:first,td:first'), input.parents('li:first,td:first').find('>div:not(.tooltip)')); 1200 }, 1201 attachInputHints: function() 1202 { 1203 var label = $(this); 1204 var labelFor = label.attr('for'); 1205 if (!labelFor || label.parents('.tab').size()) { 1206 return; 1207 } 1208 var input = $('#' + label.attr('for'), label.closest('form')); 1209 if (!input.length || input.attr('type') == 'file') { 1210 return; 1211 } 1212 var title = label.text(); 1213 if (!input.val()) { 1214 input.val(title); 1215 } 1216 input 1217 .data('hint', title) 1218 .click(Form.clearHint) 1219 .blur(Form.resetHint) 1220 .closest('form') 1221 .bind('submit', {input: input}, Form.removeHint) 1222 .bind('customSubmit', {input: input}, Form.removeHint) 1223 ; 1224 }, 1225 clearHint: function(event) 1226 { 1227 var input = $(this); 1228 if (input.val() == input.data('hint')) { 1229 input.val(''); 1230 } 1231 }, 1232 resetHint: function(event) 1233 { 1234 var input = $(this); 1235 if (!input.val()) { 1236 input.val(input.data('hint')); 1237 } 1238 }, 1239 removeHint: function(event) 1240 { 1241 var input = event.data.input; 1242 if (input.val() == input.data('hint')) { 1243 input.val(''); 1244 } 1245 }, 1246 fetchSettings: function() 1247 { 1248 var form = $(this); 1249 if (!form.attr('id')) { 1250 return; 1251 } 1252 var data = null; 1253 eval("if (typeof(_"+ form.attr('id') +") != 'undefined') { data = _"+ form.attr('id') +"; }"); 1254 if (!data) { 1255 return; 1256 } 1257 $.each(data, function(key, value) { 1258 var result = key.split('=', 2); 1259 form.find(':input[name="'+ result[0] +'"]').data(result[1], value); 1260 }); 1261 }, 1262 helpTooltips: function(elements) 1263 { 1264 $('form.form :input[title]', elements).each(function(){ 1265 $(this).closest('li').append('<div class="toolTipText"> '+ $(this).attr('title') +' </div>'); 1266 $(this).removeAttr('title'); 1267 }); 1268 }, 1269 optionsYN: function() 1270 { 1271 $(this).trigger('changeStatus'); 1272 }, 1273 optionsYNchange: function() 1274 { 1275 var input = $(this); 1276 var label = input.nextAll('label:first'); 1277 label.find('span').hide(); 1278 label.find('span.' + (input.attr('checked') ? 'yes' : 'no')).show(); 1279 }, 1280 disableAutofill: function() 1281 { 1282 $(this).val(''); 1283 } 1284} 1285Events.register(Form.bind); 1286var FormCheckbox = { 1287 classMain : 'customCheckbox', 1288 classOn : 'customCheckboxOn', 1289 classOnDisabled : 'customCheckboxOnDisabled', 1290 classOff : 'customCheckboxOff', 1291 classOffDisabled : 'customCheckboxOffDisabled', 1292 bind: function(elements) 1293 { 1294 $('form.form input[type="checkbox"]', elements).each(FormCheckbox.replace); 1295 }, 1296 replace: function() 1297 { 1298 var input = $(this); 1299 var label = $('label[for="' + input.attr('id') + '"]');
1300 var overlay = $("<a style='" + (input.attr('style') ? input.attr('style') : '') + "'" + ' title="' + label.stripTags() + '" class="' + FormCheckbox.classMain + '" href="#"></a>'); 1301 input 1302 .change(FormCheckbox.onInputChange) 1303 .bind('customChange', FormCheckbox.onInputCustomChange) 1304 .css('display', 'none') 1305 ; 1306 overlay 1307 .click(FormCheckbox.onOverlayClick) 1308 .keydown(FormCheckbox.onOverlayKeyDown) 1309 ; 1310 input.before(overlay); 1311 FormCheckbox.synchronize(input, overlay); 1312 }, 1313 synchronize: function(input, overlay) 1314 { 1315 overlay.removeClass().addClass(FormCheckbox.classMain); 1316 if (input.attr('disabled')) { 1317 if (input.attr('checked')) { 1318 overlay.addClass(FormCheckbox.classOnDisabled); 1319 } else { 1320 overlay.addClass(FormCheckbox.classOffDisabled); 1321 } 1322 } else if (input.attr('checked')) { 1323 overlay.addClass(FormCheckbox.classOn).parent().addClass('checked'); 1324 } else { 1325 overlay.addClass(FormCheckbox.classOff).parent().removeClass('checked'); 1326 } 1327 }, 1328 onInputChange: function(event) 1329 { 1330 event.preventDefault(); 1331 $(this).trigger('customChange'); 1332 return false; 1333 }, 1334 onInputCustomChange: function(event) 1335 { 1336 var input = $(this); 1337 var overlay = input.parent().find('a.' + FormCheckbox.classMain); 1338 FormCheckbox.synchronize(input, overlay); 1339 }, 1340 onLabelClick: function(event) 1341 { 1342 event.preventDefault(); 1343 $('input#'+ $(this).attr('for')).trigger('click'); 1344 return false; 1345 }, 1346 onOverlayClick: function(event) 1347 { 1348 event.preventDefault(); 1349 var overlay = $(this); 1350 var input = overlay.parent().find('input[type="checkbox"]:eq(0)'); 1351 if (!input.attr('disabled')) { 1352 input.trigger('click'); 1353 FormCheckbox.synchronize(input, overlay); 1354 } 1355 }, 1356 onOverlayKeyDown: function(event) 1357 { 1358 if (event.keyCode == 32) { 1359 $(event.currentTarget).trigger('click'); 1360 return false; 1361 } 1362 if (event.keyCode == 13) { 1363 $(event.currentTarget).closest('form').submit(); 1364 return false; 1365 } 1366 } 1367} 1368var FormRadio = { 1369 classMain : 'customRadio', 1370 classOn : 'customRadioOn', 1371 classOnDisabled : 'customRadioOnDisabled', 1372 classOff : 'customRadioOff', 1373 classOffDisabled : 'customRadioOffDisabled', 1374 bind: function(elements) 1375 { 1376 var inputs = $('form.form input[type="radio"]', elements); 1377 inputs.each(FormRadio.replace); 1378 FormRadio.synchronization(inputs); 1379 }, 1380 replace: function() 1381 { 1382 var input = $(this); 1383 var label = $('label[for="' + input.attr('id') + '"]'); 1384 var overlay = $("<a style='" + (input.attr('style') ? input.attr('style') : '') + "'" + ' title="' + label.stripTags() + '" class="' + FormRadio.classMain + '" href="#"></a>'); 1385 input.before(overlay); 1386 input.click(FormRadio.onInputClick).css('display', 'none'); 1387 label.click(FormRadio.onLabelClick); 1388 overlay.click(FormRadio.onOverlayClick).keydown(FormRadio.onOverlayKeyDown); 1389 }, 1390 synchronization: function(inputs) 1391 { 1392 inputs.each(function() { 1393 var input = $(this); 1394 var overlay = input.parent().find('a.' + FormRadio.classMain); 1395 overlay.removeClass().addClass(FormRadio.classMain); 1396 if (input.attr('disabled')) { 1397 if (input.attr('checked')) { 1398 overlay.addClass(FormRadio.classOnDisabled); 1399 } else { 1400 overlay.addClass(FormRadio.classOffDisabled); 1401 } 1402 } else if (input.attr('checked')) { 1403 overlay.addClass(FormRadio.classOn).parent().addClass('checked'); 1404 } else { 1405 overlay.addClass(FormRadio.classOff).parent().removeClass('checked'); 1406 } 1407 }); 1408 }, 1409 onInputClick: function(event) 1410 { 1411 var input = $(this); 1412 var inputs = input.closest('form').find('input[type="radio"][name="' + input.attr('name') + '"]'); 1413 FormRadio.synchronization(inputs); 1414 }, 1415 onLabelClick: function(event) 1416 { 1417 event.preventDefault(); 1418 var label = $(this); 1419 var input = $('input#' + label.attr('for')); 1420 input.attr('checked', true); 1421 input.trigger('change'); 1422 var inputs = input.closest('form').find('input[type="radio"][name="' + input.attr('name') + '"]'); 1423 FormRadio.synchronization(inputs); 1424 }, 1425 onOverlayClick: function(event) 1426 { 1427 event.preventDefault(); 1428 var overlay = $(this); 1429 var input = overlay.parent().find('input[type="radio"]:eq(0)'); 1430 var inputs = input.closest('form').find('input[type="radio"][name="' + input.attr('name') + '"]'); 1431 if (!input.attr('disabled')) { 1432 input.attr('checked', true); 1433 FormRadio.synchronization(inputs); 1434 input.trigger('change'); 1435 } 1436 }, 1437 onOverlayKeyDown: function(event) 1438 { 1439 if (event.keyCode == 32) { 1440 $(event.currentTarget).trigger('click'); 1441 } 1442 if (event.keyCode == 32) { 1443 return false;
1444 } 1445 } 1446} 1447var FormSubmit = { 1448 classMain: 'customSubmit', 1449 bind: function(elements) 1450 { 1451 $('form.form input[type="submit"],form.form input[type="button"]', elements).each(FormSubmit.replace); 1452 }, 1453 replace: function() 1454 { 1455 var input = $(this); 1456 var aClasses = FormSubmit.classMain + ' ' + input.attr('class'); 1457 var overlay = $('<a class="' + aClasses + '" title="'+ input.val() +'" href="#"><span>'+ input.val() +'</span></a>'); 1458 input.before(overlay).css({ 'visibility': 'hidden', 'position': 'absolute', 'left': '-9999px' }); 1459 overlay.click(FormSubmit.onOverlayClick); 1460 }, 1461 onOverlayClick: function(event) 1462 { 1463 event.preventDefault(); 1464 $(this).closest('form').trigger('customSubmit'); 1465 $(this).parent().find('input').trigger('click'); 1466 } 1467} 1468var Cookies = { 1469 timeout: false, 1470 init: function() 1471 { 1472 Cookies.toggle(0); 1473 $('#cookies').each(Cookies.notice); 1474 $('.cookies_confirm').click(Cookies.confirm); 1475 $('.cookies_decline').click(Cookies.decline); 1476 $('.cookies_remove').click(Cookies.remove); 1477 }, 1478 notice: function() 1479 { 1480 if (getCookie('cookies_confirm')) { 1481 $(this).remove(); 1482 } 1483 }, 1484 confirm: function() 1485 { 1486 Cookies.consent(true); 1487 gtag('consent', 'update', { 1488 'ad_storage' : 'granted', 1489 'ad_user_data' : 'granted', 1490 'ad_personalization': 'granted', 1491 'analytics_storage' : 'granted' 1492 }); 1493 gtag('event', 'cookie_consent'); 1494 fbq('consent', 'grant'); 1495 fbq('trackCustom', 'CookieConsent'); 1496 $('#cookies').hide('fade', 250, function() { 1497 $(this).remove(); 1498 }); 1499 return false; 1500 }, 1501 decline: function() 1502 { 1503 Cookies.consent(false); 1504 gtag('consent', 'update', { 1505 'ad_storage' : 'denied', 1506 'ad_user_data' : 'denied', 1507 'ad_personalization': 'denied', 1508 'analytics_storage' : 'denied' 1509 }); 1510 gtag('event', 'cookie_decline'); 1511 fbq('consent', 'revoke'); 1512 fbq('trackCustom', 'CookieDecline'); 1513 $('#cookies').hide('fade', 250, function() { 1514 $(this).remove(); 1515 }); 1516 return false; 1517 }, 1518 consent: function(state) 1519 { 1520 $.ajax({ 1521 type: 'POST', 1522 data: { 1523 ajax_plugin : 'User', 1524 ajax_action : 'AjaxConsent', 1525 consent : state ? 1 : 0 1526 } 1527 }); 1528 }, 1529 remove: function() 1530 { 1531 deleteCookies(); 1532 alert($(this).data('notice') ? $(this).data('notice') : 'OK'); 1533 return false; 1534 }, 1535 toggle: function(delay) 1536 { 1537 clearTimeout(Cookies.timeout); 1538 Cookies.timeout = setTimeout(function() { 1539 if (!$('#cookies:hover').length) { 1540 $('#cookies').attr('class', $('#page').attr('class') ? $('#page').attr('class') : ''); 1541 } 1542 }, delay); 1543 } 1544}; 1545$(Cookies.init); 1546function setCookie(name, value, days) { 1547 if (days) { 1548 var date = new Date(); 1549 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 1550 var expires = "; expires=" + date.toGMTString(); 1551 } else var expires = ""; 1552 document.cookie = escape(name) + "=" + escape(value) + expires + ";path=/"; 1553} 1554function getCookie(name) { 1555 var nameEQ = escape(name) + "="; 1556 var ca = document.cookie.split(';'); 1557 for (var i = 0; i < ca.length; i++) { 1558 var c = ca[i]; 1559 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 1560 if (c.indexOf(nameEQ) == 0) return unescape(c.substring(nameEQ.length, c.length)); 1561 } 1562 return null; 1563} 1564function deleteCookies() { 1565 var cookies = document.cookie.split(";"); 1566 for (var i = 0; i < cookies.length; i++) { 1567 var cookie = cookies[i]; 1568 var eqPos = cookie.indexOf("="); 1569 var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; 1570 document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;"; 1571 document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=" + document.domain + ";path=/;"; 1572 document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=" + document.domain.replace("www.", "") + ";path=/;"; 1573 } 1574} 1575var StickyNav = { 1576 offset: 0, 1577 direction: null, 1578 wait: false, 1579 disabled: false, 1580 init: function() 1581 { 1582 $(document).on('wheel', StickyNav.scroll).on('scroll', StickyNav.scroll).scroll(); 1583 if (!$('form li.error:first:has(:input)').size()) { 1584 setTimeout(function() { 1585 StickyNav.anchor(Utils.getAnchor()); 1586 }, 10); 1587 } 1588 }, 1589 bind: function(elements) 1590 { 1591 $('a[href*="#"]', elements.find('#menu,.box_content,.title_lead')).click(function() { 1592 var url = Utils.getUrl($(this).attr('href')); 1593 if (!url || (url == window.location.pathname)) { 1594 return StickyNav.anchor(Utils.getAnchor($(this).attr('href'))); 1595 } 1596 }); 1597 }, 1598 scroll: function(e) 1599 { 1600 if (StickyNav.disabled) { 1601 return; 1602 } 1603 if ($(this).scrollTop() > 0) { 1604 $('#page').addClass('scrolled'); 1605 } else { 1606 $('#page').removeClass('scrolled'); 1607 } 1608 var offset = Math.round((document.documentElement.scrollTop + document.body.scrollTop) / (document.documentElement.scrollHeight - document.documentElement.clientHeight) * 100); 1609 if (StickyNav.wait) { 1610 return; 1611 } 1612 if (offset == StickyNav.offset) { 1613 return; 1614 } 1615 var direction = offset < StickyNav.offset ? 'up' : 'down'; 1616 if (StickyNav.direction != direction) { 1617 StickyNav.wait = true; 1618 setTimeout(function(){ 1619 StickyNav.wait = false;
1620 }, 500); 1621 } else { 1622 StickyNav.offset = offset; 1623 return; 1624 } 1625 if (direction == 'up') { 1626 $('#page').removeClass('sticky'); 1627 } else { 1628 $('#page').addClass('sticky'); 1629 } 1630 if (!$('#page').hasClass('scrolled')) { 1631 $('#page').removeClass('sticky'); 1632 } 1633 StickyNav.offset = offset; 1634 StickyNav.direction = direction; 1635 Cookies.toggle(750); 1636 }, 1637 anchor: function(anchor) 1638 { 1639 if (anchor && anchor != '#' && anchor.indexOf('&') == -1) { 1640 var selector = anchor.replace(/[!"$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\\\$&"); 1641 var content = $(selector + ',a[name=' + selector.substring(1) + ']'); 1642 if (!content.length) { 1643 return; 1644 } 1645 var scrollTime = 500 * Math.abs((window.scrollY - content.offset().top) / window.innerHeight); 1646 if (scrollTime > 1000){ 1647 scrollTime = 1000; 1648 } 1649 if (scrollTime < 500){ 1650 scrollTime = 500; 1651 } 1652 if (content.size()) { 1653 StickyNav.disabled = true; 1654 Pagination.disable(true); 1655 var offset = $('#top').height() + parseInt($('#top').css('marginTop')) + 10; 1656 $.scrollTo(content, scrollTime, {offset:{top: -offset}, onAfter: function(){ 1657 StickyNav.disabled = false; 1658 setTimeout(function(){ 1659 Pagination.disable(false); 1660 }, 5000); 1661 }}); 1662 window.history.replaceState(null, null, anchor); 1663 return false; 1664 } 1665 } 1666 } 1667} 1668$(StickyNav.init); 1669Events.register(StickyNav.bind); 1670var HamburgerMenuStatus = { 1671 bind: function(elements) 1672 { 1673 $('#menu input[type="checkbox"]', elements).click(HamburgerMenuStatus.onClick); 1674 }, 1675 onClick: function(event) 1676 { 1677 var checkbox = $(this); 1678 if (checkbox.attr('checked')) { 1679 $('#page').addClass('hamburger_opened'); 1680 } else { 1681 $('#page').removeClass('hamburger_opened'); 1682 } 1683 } 1684} 1685Events.register(HamburgerMenuStatus.bind); 1686var SearchForm = { 1687 close: null, 1688 init: function () { 1689 var inputField = $('.position_top .SearchForm form input.text'); 1690 inputField.attr('placeholder', inputField.parent().prev().text()); 1691 inputField.blur(function() { 1692 SearchForm.close = setTimeout(SearchForm.toggleForm, 500); 1693 }); 1694 inputField.focus(function() { 1695 setTimeout(function() { 1696 if (inputField.val()) { 1697 inputField.keyup(); 1698 $('.position_top .SearchForm #results').fadeIn(); 1699 } 1700 }, 250); 1701 }); 1702 $('#form-toggle').on('click', SearchForm.toggleForm); 1703 }, 1704 toggleForm: function () { 1705 clearTimeout(SearchForm.close); 1706 if ($('.position_top .SearchForm .box').is(':hidden')) { 1707 setTimeout(function() { 1708 var inputField = $('.position_top .SearchForm form input.text'); 1709 inputField.get(0).selectionStart = inputField.get(0).selectionEnd = 10000; 1710 inputField.click().focus().keyup(); 1711 }, 50); 1712 } 1713 $('.position_top .SearchForm .box').slideToggle(); 1714 $('body').toggleClass('activeSearch'); 1715 return false; 1716 } 1717}; 1718$(SearchForm.init); 1719var StickyBasket = { 1720 summary: null, 1721 init: function() 1722 { 1723 StickyBasket.summary = $('#basket .recommendations_and_summary'); 1724 if (!StickyBasket.summary.size()) { 1725 return; 1726 } 1727 $(document).on('scroll', function() { 1728 var summary = StickyBasket.summary; 1729 var prev = summary.prev(); 1730 var parent = summary.parent(); 1731 var scroll = $(this).scrollTop(); 1732 var start = prev.offset().top + prev.outerHeight(); 1733 var end = parent.offset().top + parent.outerHeight() - parseInt(parent.css('padding-bottom')) - summary.outerHeight(); 1734 if (scroll > end) { 1735 summary.addClass('fixed').css({'top' : end - scroll}) 1736 } else if (scroll > start) { 1737 summary.addClass('fixed').css({'top' : 0}); 1738 } else { 1739 summary.removeClass('fixed'); 1740 } 1741 }); 1742 }, 1743 bind: function(elements) 1744 { 1745 var summary = $('.recommendations_and_summary', elements); 1746 if (summary.size()) { 1747 StickyBasket.summary = summary; 1748 } 1749 } 1750} 1751$(StickyBasket.init); 1752Events.register(StickyBasket.bind); 1753var StickyFilter = { 1754 bind: function(elements) 1755 { 1756 $('.filterItems.fixed, .closeFilter.fixed', elements).click(function() { 1757 $('.ProductFilter').toggleClass('filters-on'); 1758 return false; 1759 }); 1760 } 1761} 1762Events.register(StickyFilter.bind); 1763var ExtendedBasket = { 1764 init: function() 1765 { 1766 $(document).click(function(e) { 1767 if (!$(e.target).parents('.BasketSummary').length) { 1768 ExtendedBasket.hide(); 1769 } 1770 }); 1771 }, 1772 bind: function(elements) 1773 { 1774 $('#extended_summary .continue', elements).click(function() { 1775 if (!$('body').hasClass('basket-open')) { 1776 ExtendedBasket.show(); 1777 } else { 1778 ExtendedBasket.hide(); 1779 } 1780 return false;
1781 }); 1782 $('#extended_summary .basket-title-trigger', elements).click(function() { 1783 ExtendedBasket.hide(); 1784 }); 1785 }, 1786 show: function() 1787 { 1788 $('body').addClass('basket-open'); 1789 $('#extended_summary .summary').addClass('active'); 1790 }, 1791 hide: function() 1792 { 1793 $('body').removeClass('basket-open'); 1794 $('#extended_summary .summary').removeClass('active').removeClass('updated'); 1795 } 1796} 1797ExtendedBasket.init(); 1798Events.register(ExtendedBasket.bind); 1799$(document).ready(function() { 1800 $('.sub #center .plugin > :not(.Basket) .box_content_center table:not(.nowrap)').wrap('<div class="table_wrapper"></div>'); 1801}); 1802var Animate = { 1803 init: function() 1804 { 1805 $(window).scroll(Animate.scroll); 1806 }, 1807 bind: function(elements) 1808 { 1809 $('.animate', elements).each(function() { 1810 var item = $(this); 1811 var config = { 1812 animation: item.data('animation') ? item.data('animation') : '', 1813 pause: item.data('pause') ? item.data('pause') : 0, 1814 duration: item.data('duration') ? item.data('duration') : null, 1815 delay: item.data('delay') ? item.data('delay') : 0, 1816 offset: item.data('offset') ? item.data('offset') : .333, 1817 revert: item.data('revert') ? item.data('revert') : false, 1818 parallax: item.data('parallax') ? item.data('parallax') : null 1819 }; 1820 config.id = [item.tag(), item.parents().length, item.parents('.plugin').attr('id')].join('-') + Object.values(config).join('-'); 1821 item.data('config', config); 1822 }); 1823 Animate.scroll(); 1824 }, 1825 timeout: null, 1826 scroll: function() 1827 { 1828 if (Animate.timeout) { 1829 return; 1830 } 1831 Animate.timeout = window.setTimeout(function() { 1832 Animate.timeout = null; 1833 var items = $('.animate:not(.buy,.submit,.complete),.animate.revert,.animate.parallax'); 1834 if (!items.length) { 1835 return; 1836 } 1837 var windowHeight = $(window).height(); 1838 var windowWidth = $(window).width(); 1839 var count = {}; 1840 var update = function() { 1841 var item = $(this); 1842 var config = item.data('config'); 1843 if (!count[config.id]) { 1844 count[config.id] = 0; 1845 } 1846 var position = item.get(0).getBoundingClientRect(); 1847 var diff = position.height * config.offset; 1848 if (!item.hasClass('complete') && ((position.top + diff) < windowHeight && ((position.bottom - diff) > 0))) { 1849 if (config.duration) { 1850 item.css('animationDuration', config.duration + 'ms'); 1851 } 1852 item.addClass('complete'); 1853 window.setTimeout(function() { 1854 if (typeof(config.animation) === 'function') { 1855 return config.animation.call(item.get(0)); 1856 } 1857 var funct = 'Animate._' + config.animation; 1858 if (typeof(eval(funct)) === 'function') { 1859 eval(funct + '.call(item.get(0));'); 1860 } else { 1861 item.addClass('animated ' + config.animation).trigger('animated'); 1862 } 1863 if (config.revert) { 1864 item.addClass('revert'); 1865 } 1866 if (config.parallax) { 1867 item.addClass('parallax').each(update); 1868 } 1869 }, (count[config.id]++ * config.delay) + config.pause); 1870 } else if (item.hasClass('revert') && (position.top > windowHeight || position.bottom < 0)) { 1871 item.removeClass('revert parallax complete animated ' + config.animation).trigger('reverted'); 1872 } else if (item.hasClass('parallax') && (position.top < windowHeight && position.bottom > 0)) { 1873 var relative = 1 - (position.top + position.height) / (windowHeight + position.height); 1874 if (typeof(config.parallax) === 'function') { 1875 config.parallax.call(item.get(0), relative); 1876 } else { 1877 var translate = $.extend({x:0, y:0, z:0}, config.parallax); 1878 translate.x *= windowWidth * relative; 1879 translate.y *= windowHeight * relative; 1880 translate.z *= windowHeight * relative; 1881 item.css('transform', (translate.z ? 'perspective(' + windowWidth + 'px)' : '') + 'translate3d(' + translate.x + 'px,' + translate.y + 'px,' + translate.z + 'px)'); 1882 } 1883 } 1884 }; 1885 items.each(update); 1886 }, 100); 1887 }, 1888 _count: function() 1889 { 1890 var element = $(this); 1891 if (element.data('count') === parseInt(element.data('count'), 10)) { 1892 var count = element.data('count'); 1893 } else { 1894 var count = parseFloat(element.data('count').replace('.', '').replace(',', '.')); 1895 } 1896 if (element.data('decimals') != undefined) { 1897 var decimals = element.data('decimals'); 1898 } else { 1899 var decimals = count > 10 ? 0 : 2; 1900 } 1901 $({count: 0}).animate({count: count}, { 1902 duration: 1500, 1903 easing: 'easeOutCubic', 1904 step: function () { 1905 element.text(Animate.formatNumber(this.count, decimals)); 1906 }, 1907 complete: function() { 1908 element.text(Animate.formatNumber(count, decimals)); 1909 } 1910 }); 1911 }, 1912 _src: function() 1913 { 1914 var element = $(this); 1915 element.attr('src', element.data('src')); 1916 }, 1917 formatNumber: function(value, n) { 1918 var re = '\\d(?=(\\d{3})+' + (n > 0 ? '\\D' : '$') + ')'; 1919 var num = value.toFixed(Math.max(0, ~~n)); 1920 return num.replace('.', ',').replace(new RegExp(re, 'g'), '$&' + ('.')); 1921 } 1922} 1923$(Animate.init); 1924Events.register(Animate.bind); 1925(function(factory) { 1926 if (typeof module === 'object' && typeof module.exports === 'object') { 1927 factory(require('jquery')); 1928 } else if (typeof define === 'function' && define.amd) { 1929 define([], factory(window.jQuery)); 1930 } else { 1931 factory(window.jQuery); 1932 } 1933}(function($) { 1934 if(!$) { 1935 return console.warn('Unslider needs jQuery'); 1936 } 1937 $.Unslider = function(context, options) { 1938 var self = this; 1939 self._ = 'unslider'; 1940 self.defaults = { 1941 autoplay: false, 1942 delay: 3000, 1943 speed: 750, 1944 easing: 'swing', 1945 keys: { 1946 prev: 37, 1947 next: 39 1948 }, 1949 nav: true, 1950 arrows: { 1951 prev: '<span class="' + self._ + '-arrow prev"></span>', 1952 next: '<span class="' + self._ + '-arrow next"></span>' 1953 }, 1954 animation: 'horizontal', 1955 selectors: { 1956 container: 'ul:first', 1957 slides: 'li' 1958 }, 1959 animateHeight: false, 1960 activeClass: self._ + '-active', 1961 swipe: true, 1962 swipeThreshold: 0.2 1963 }; 1964 self.$context = context; 1965 self.options = {}; 1966 self.$parent = null; 1967 self.$container = null; 1968 self.$slides = null; 1969 self.$nav = null; 1970 self.$arrows = []; 1971 self.total = 0; 1972 self.current = 0; 1973 self.prefix = self._ + '-'; 1974 self.eventSuffix = '.' + self.prefix + ~~(Math.random() * 2e3); 1975 self.interval = null; 1976 self.init = function(options) { 1977 self.options = $.extend({}, self.defaults, options); 1978 self.$container = self.$context.find(self.options.selectors.container).addClass(self.prefix + 'wrap'); 1979 self.$slides = self.$container.children(self.options.selectors.slides); 1980 self.setup();
1981 $.each(['nav', 'arrows', 'keys', 'infinite'], function(index, module) { 1982 self.options[module] && self['init' + $._ucfirst(module)](); 1983 }); 1984 if(jQuery.event.special.swipe && self.options.swipe) { 1985 self.initSwipe(); 1986 } 1987 self.options.autoplay && self.start(); 1988 self.calculateSlides(); 1989 self.$context.trigger(self._ + '.ready'); 1990 return self.animate(self.options.index || self.current, 'init'); 1991 }; 1992 self.setup = function() { 1993 self.$context.addClass(self.prefix + self.options.animation).wrap('<div class="' + self._ + '" />'); 1994 self.$parent = self.$context.parent('.' + self._); 1995 var position = self.$context.css('position'); 1996 if(position === 'static') { 1997 self.$context.css('position', 'relative'); 1998 } 1999 self.$context.css('overflow', 'hidden'); 2000 }; 2001 self.calculateSlides = function() { 2002 self.$slides = self.$container.children(self.options.selectors.slides); 2003 self.total = self.$slides.length; 2004 if(self.options.animation !== 'fade') { 2005 var prop = 'width'; 2006 if(self.options.animation === 'vertical') { 2007 prop = 'height'; 2008 } 2009 self.$container.css(prop, (self.total * 100) + '%').addClass(self.prefix + 'carousel'); 2010 self.$slides.css(prop, (100 / self.total) + '%'); 2011 } 2012 }; 2013 self.start = function() { 2014 self.interval = setTimeout(function() { 2015 self.next(); 2016 }, self.options.delay); 2017 return self; 2018 }; 2019 self.stop = function() { 2020 clearTimeout(self.interval); 2021 return self; 2022 }; 2023 self.initNav = function() { 2024 var $nav = $('<nav class="' + self.prefix + 'nav"><ol /></nav>'); 2025 self.$slides.each(function(key) { 2026 var label = this.getAttribute('data-nav') || key + 1; 2027 if($.isFunction(self.options.nav)) { 2028 label = self.options.nav.call(self.$slides.eq(key), key, label); 2029 } 2030 $nav.children('ol').append('<li data-slide="' + key + '">' + label + '</li>'); 2031 }); 2032 self.$nav = $nav.insertAfter(self.$context); 2033 self.$nav.find('li').on('click' + self.eventSuffix, function() { 2034 var $me = $(this).addClass(self.options.activeClass); 2035 $me.siblings().removeClass(self.options.activeClass); 2036 self.animate($me.attr('data-slide')); 2037 }); 2038 }; 2039 self.initArrows = function() { 2040 if(self.options.arrows === true) { 2041 self.options.arrows = self.defaults.arrows; 2042 } 2043 $.each(self.options.arrows, function(key, val) { 2044 self.$arrows.push( 2045 $(val).insertAfter(self.$context).on('click' + self.eventSuffix, self[key]) 2046 ); 2047 }); 2048 }; 2049 self.initKeys = function() { 2050 if(self.options.keys === true) { 2051 self.options.keys = self.defaults.keys; 2052 } 2053 $(document).on('keyup' + self.eventSuffix, function(e) { 2054 $.each(self.options.keys, function(key, val) { 2055 if(e.which === val) { 2056 $.isFunction(self[key]) && self[key].call(self); 2057 } 2058 }); 2059 }); 2060 }; 2061 self.initSwipe = function() { 2062 var width = self.$slides.width(); 2063 if(self.options.animation !== 'fade') { 2064 self.$container.on({ 2065 movestart: function(e) { 2066 if((e.distX > e.distY && e.distX < -e.distY) || (e.distX < e.distY && e.distX > -e.distY)) { 2067 return !!e.preventDefault(); 2068 } 2069 self.$container.css('position', 'relative'); 2070 }, 2071 move: function(e) { 2072 self.$container.css('left', -(100 * self.current) + (100 * e.distX / width) + '%'); 2073 }, 2074 moveend: function(e) { 2075 if((Math.abs(e.distX) / width) > self.options.swipeThreshold) { 2076 self[e.distX < 0 ? 'next' : 'prev'](); 2077 } 2078 else { 2079 self.$container.animate({left: -(100 * self.current) + '%' }, self.options.speed / 2 ); 2080 } 2081 } 2082 }); 2083 } 2084 }; 2085 self.initInfinite = function() { 2086 var pos = ['first', 'last']; 2087 $.each(pos, function(index, item) { 2088 self.$slides.push.apply( 2089 self.$slides, 2090 self.$slides.filter(':not(".' + self._ + '-clone")')[item]() 2091 .clone().addClass(self._ + '-clone') 2092 ['insert' + (index === 0 ? 'After' : 'Before')]( 2093 self.$slides[pos[~~!index]]() 2094 ) 2095 ); 2096 }); 2097 }; 2098 self.destroyArrows = function() { 2099 $.each(self.$arrows, function(i, $arrow) { 2100 $arrow.remove(); 2101 }); 2102 }; 2103 self.destroySwipe = function() { 2104 self.$container.off('movestart move moveend'); 2105 }; 2106 self.destroyKeys = function() { 2107 $(document).off('keyup' + self.eventSuffix); 2108 }; 2109 self.setIndex = function(to) { 2110 if(to < 0) { 2111 to = self.total - 1; 2112 } 2113 self.current = Math.min(Math.max(0, to), self.total - 1); 2114 if(self.options.nav) { 2115 self.$nav.find('[data-slide="' + self.current + '"]')._active(self.options.activeClass); 2116 } 2117 self.$slides.eq(self.current)._active(self.options.activeClass); 2118 return self; 2119 }; 2120 self.animate = function(to, dir) { 2121 if(to === 'first') to = 0; 2122 if(to === 'last') to = self.total; 2123 if(isNaN(to)) { 2124 return self; 2125 } 2126 if(self.options.autoplay) { 2127 self.stop().start(); 2128 } 2129 self.setIndex(to); 2130 self.$context.trigger(self._ + '.change', [to, self.$slides.eq(to)]); 2131 var fn = 'animate' + $._ucfirst(self.options.animation);
2132 if($.isFunction(self[fn])) { 2133 self[fn](self.current, dir); 2134 } 2135 return self; 2136 }; 2137 self.next = function() { 2138 var target = self.current + 1; 2139 if(target >= self.total) { 2140 target = 0; 2141 } 2142 return self.animate(target, 'next'); 2143 }; 2144 self.prev = function() { 2145 return self.animate(self.current - 1, 'prev'); 2146 }; 2147 self.animateHorizontal = function(to) { 2148 var prop = 'left'; 2149 if(self.$context.attr('dir') === 'rtl') { 2150 prop = 'right'; 2151 } 2152 if(self.options.infinite) { 2153 self.$container.css('margin-' + prop, '-100%'); 2154 } 2155 return self.slide(prop, to); 2156 }; 2157 self.animateVertical = function(to) { 2158 self.options.animateHeight = true; 2159 if(self.options.infinite) { 2160 self.$container.css('margin-top', -self.$slides.outerHeight()); 2161 } 2162 return self.slide('top', to); 2163 }; 2164 self.slide = function(prop, to) { 2165 self.animateHeight(to); 2166 if(self.options.infinite) { 2167 var dummy; 2168 if(to === self.total - 1) { 2169 dummy = self.total - 3; 2170 to = -1; 2171 } 2172 if(to === self.total - 2) { 2173 dummy = 0; 2174 to = self.total - 2; 2175 } 2176 if(typeof dummy === 'number') { 2177 self.setIndex(dummy); 2178 self.$context.on(self._ + '.moved', function() { 2179 if(self.current === dummy) { 2180 self.$container.css(prop, -(100 * dummy) + '%').off(self._ + '.moved'); 2181 } 2182 }); 2183 } 2184 } 2185 var obj = {}; 2186 obj[prop] = -(100 * to) + '%'; 2187 return self._move(self.$container, obj); 2188 }; 2189 self.animateFade = function(to) { 2190 self.animateHeight(to); 2191 var $active = self.$slides.eq(to).addClass(self.options.activeClass); 2192 self._move($active.siblings().removeClass(self.options.activeClass), {opacity: 0}); 2193 self._move($active, {opacity: 1}, false); 2194 }; 2195 self.animateHeight = function(to) { 2196 if (self.options.animateHeight) { 2197 self._move(self.$context, {height: self.$slides.eq(to).outerHeight()}, false); 2198 } 2199 };
2200 self._move = function($el, obj, callback, speed) { 2201 if(callback !== false) { 2202 callback = function() { 2203 self.$context.trigger(self._ + '.moved'); 2204 }; 2205 } 2206 return $el._move(obj, speed || self.options.speed, self.options.easing, callback); 2207 }; 2208 return self.init(options); 2209 }; 2210 $.fn._active = function(className) { 2211 return this.addClass(className).siblings().removeClass(className); 2212 }; 2213 $._ucfirst = function(str) { 2214 return (str + '').toLowerCase().replace(/^./, function(match) { 2215 return match.toUpperCase(); 2216 }); 2217 }; 2218 $.fn._move = function() { 2219 this.stop(true, true); 2220 return $.fn[$.fn.velocity ? 'velocity' : 'animate'].apply(this, arguments); 2221 }; 2222 $.fn.unslider = function(opts) { 2223 return this.each(function() { 2224 var $this = $(this); 2225 if(typeof opts === 'string' && $this.data('unslider')) { 2226 opts = opts.split(':'); 2227 var call = $this.data('unslider')[opts[0]]; 2228 if($.isFunction(call)) { 2229 return call.apply($this, opts[1] ? opts[1].split(',') : null); 2230 } 2231 } 2232 return $this.data('unslider', new $.Unslider($this, opts)); 2233 }); 2234 }; 2235})); 2236var SliderSetup = { 2237 bind: function(elements) 2238 { 2239 $('.slider > .scrollable', elements).each(SliderSetup.init); 2240 $('.slider > .scrollable .item img[data-alt]', elements).each(SliderSetup.hover); 2241 }, 2242 init: function() 2243 { 2244 var hidden = $(this).parents('.tab:hidden').show(); 2245 var items = $(this).find('.items'); 2246 var parent = items.parent(); 2247 items.each(SliderSetup.regroup); 2248 if (parent.find('.items').children().length < 2) { 2249 hidden.hide(); 2250 return; 2251 } 2252 var slider = $(this).unslider({ 2253 autoplay : $(this).data('autoplay') ? parseInt($(this).data('autoplay')) : false, 2254 delay : $(this).data('interval') ? parseInt($(this).data('interval')) : 6000, 2255 speed : 500, 2256 infinite : true, 2257 swipe : false 2258 }); 2259 var options = $('<div class="options">'); 2260 options.append($(this).siblings('.prev')); 2261 options.append($(this).siblings('nav')); 2262 options.append($(this).siblings('.next')); 2263 $(this).parent().parent().append(options); 2264 $(this).parent().swipeleft(function(){ 2265 slider.unslider('next') 2266 }); 2267 $(this).parent().swiperight(function(){ 2268 slider.unslider('prev') 2269 }); 2270 hidden.hide(); 2271 }, 2272 regroup: function() 2273 { 2274 var container = $(this); 2275 var items = container.children(); 2276 var perPage = Math.floor(items.width() / items.find('.item').outerWidth()); 2277 var pages = Math.ceil(items.length / perPage); 2278 var groups = []; 2279 items.each(function(index){ 2280 var group = Math.floor(index / perPage); 2281 if (!(group in groups)) { 2282 groups[group] = []; 2283 } 2284 groups[group].push($(this).find('.item')); 2285 }); 2286 var clone = container.clone().empty(); 2287 var blank = items.first().clone().empty(); 2288 $.each(groups, function(index, list) { 2289 var group = blank.clone(); 2290 clone.append(group); 2291 $.each(list, function() { 2292 group.append($(this)); 2293 }); 2294 }); 2295 container.replaceWith(clone); 2296 }, 2297 hover: function() 2298 { 2299 $(this).hover(function() { 2300 $(this).data('tmp', $(this).attr('src')); 2301 $(this).attr('src', $(this).data('alt')); 2302 }, function(){ 2303 $(this).data('alt', $(this).attr('src')); 2304 $(this).attr('src', $(this).data('tmp')); 2305 }) 2306 } 2307}; 2308Events.register(SliderSetup.bind); 2309var Pagination = { 2310 2311 init: function() 2312 { 2313 $('.paginate:has(.pagination)').each(Pagination.activate); 2314 }, 2315 2316 activate: function() 2317 { 2318 var paginate = $(this); 2319 var pagination = paginate.find('.pagination').css('visibility', 'hidden'); 2320 var more = paginate.find('.pagination_more'); 2321 var loading = $('<div id="loading"></div>'); 2322 pagination.before(loading); 2323 var container = paginate.find('ul.items'); 2324 if (more.length) { 2325 paginate.data({ 2326 active : true 2327 }); 2328 more.click(function() { 2329 $(this).addClass('active'); 2330 Pagination.load(paginate, container, loading); 2331 return false; 2332 }); 2333 } else { 2334 paginate.data({ 2335 active : false 2336 }); 2337 } 2338 $(window).scroll(function() { 2339 if (paginate.data('active')) { 2340 return; 2341 } 2342 var windowTop = $(window).scrollTop(); 2343 var windowHeight = $(window).height(); 2344 var itemTop = pagination.offset().top; 2345 var itemHeight = pagination.height(); 2346 if ((itemTop + itemHeight) < (windowTop + windowHeight) && (itemTop > (windowTop - itemHeight))) { 2347 Pagination.load(paginate, container, loading); 2348 } 2349 }); 2350 }, 2351 2352 load: function(paginate, container, loading) 2353 { 2354 var page = paginate.data('page') + 1; 2355 var url = paginate.data('url').replace('%25', page); 2356 paginate.data('page', page); 2357 paginate.data('active', true); 2358 if (page == 1) { 2359 return; 2360 } 2361 loading.show(); 2362 $.ajax({ 2363 url : url, 2364 type : 'GET', 2365 data : { 2366 ajax_content_id: paginate.data('content') 2367 }, 2368 success : function(data) { 2369 var items = $(data).find('.paginate ul.items > li'); 2370 if (items.size()) { 2371 window.history.replaceState(null, null, url); 2372 } 2373 container.find('li.last').removeClass('last'); 2374 container.find('li.spacer_last').removeClass('spacer_last'); 2375 container.find('li.clear').remove(); 2376 container.append(items.removeClass('first')); 2377 Events.bind(items); 2378 loading.hide(); 2379 container.trigger('pagination_after'); 2380 if (paginate.data('count') > items.size()) { 2381 return; 2382 } 2383 paginate.data('active', false); 2384 }, 2385 error : function(data) { 2386 loading.hide(); 2387 } 2388 }); 2389 }, 2390 2391 disable: function(disable) 2392 { 2393 $('.paginate:has(.pagination)').each(function() { 2394 if (disable) { 2395 $(this).data('reset', $(this).data('active')); 2396 $(this).data('active', true); 2397 } else { 2398 $(this).data('active', $(this).data('reset')) 2399 } 2400 }); 2401 } 2402 2403}; 2404$(Pagination.init); 2405!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipe=b()}(this,function(){"use strict";var a=function(a,b,c,d){var e={features:null,bind:function(a,b,c,d){var e=(d?"remove":"add")+"EventListener";b=b.split(" ");for(var f=0;f<b.length;f++)b[f]&&a[e](b[f],c,!1)},isArray:function(a){return a instanceof Array},createEl:function(a,b){var c=document.createElement(b||"div");return a&&(c.className=a),c},getScrollY:function(){var a=window.pageYOffset;return void 0!==a?a:document.documentElement.scrollTop},unbind:function(a,b,c){e.bind(a,b,c,!0)},removeClass:function(a,b){var c=new RegExp("(\\s|^)"+b+"(\\s|$)");a.className=a.className.replace(c," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(a,b){e.hasClass(a,b)||(a.className+=(a.className?" ":"")+b)},hasClass:function(a,b){return a.className&&new RegExp("(^|\\s)"+b+"(\\s|$)").test(a.className)},getChildByClass:function(a,b){for(var c=a.firstChild;c;){if(e.hasClass(c,b))return c;c=c.nextSibling}},arraySearch:function(a,b,c){for(var d=a.length;d--;)if(a[d][c]===b)return d;return-1},extend:function(a,b,c){for(var d in b)if(b.hasOwnProperty(d)){if(c&&a.hasOwnProperty(d))continue;a[d]=b[d]}},easing:{sine:{out:function(a){return Math.sin(a*(Math.PI/2))},inOut:function(a){return-(Math.cos(Math.PI*a)-1)/2}},cubic:{out:function(a){return--a*a*a+1}}},detectFeatures:function(){if(e.features)return e.features;var a=e.createEl(),b=a.style,c="",d={};if(d.oldIE=document.all&&!document.addEventListener,d.touch="ontouchstart"in window,window.requestAnimationFrame&&(d.raf=window.requestAnimationFrame,d.caf=window.cancelAnimationFrame),d.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!d.pointerEvent){var f=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var g=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);g&&g.length>0&&(g=parseInt(g[1],10),g>=1&&g<8&&(d.isOldIOSPhone=!0))}var h=f.match(/Android\s([0-9\.]*)/),i=h?h[1]:0;i=parseFloat(i),i>=1&&(i<4.4&&(d.isOldAndroid=!0),d.androidVersion=i),d.isMobileOpera=/opera mini|o
2405pera mobi/i.test(f)}for(var j,k,l=["transform","perspective","animationName"],m=["","webkit","Moz","ms","O"],n=0;n<4;n++){c=m[n];for(var o=0;o<3;o++)j=l[o],k=c+(c?j.charAt(0).toUpperCase()+j.slice(1):j),!d[j]&&k in b&&(d[j]=k);c&&!d.raf&&(c=c.toLowerCase(),d.raf=window[c+"RequestAnimationFrame"],d.raf&&(d.caf=window[c+"CancelAnimationFrame"]||window[c+"CancelRequestAnimationFrame"]))}if(!d.raf){var p=0;d.raf=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-p)),d=window.setTimeout(function(){a(b+c)},c);return p=b+c,d},d.caf=function(a){clearTimeout(a)}}return d.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,e.features=d,d}};e.detectFeatures(),e.features.oldIE&&(e.bind=function(a,b,c,d){b=b.split(" ");for(var e,f=(d?"detach":"attach")+"Event",g=function(){c.handleEvent.call(c)},h=0;h<b.length;h++)if(e=b[h])if("object"==typeof c&&c.handleEvent){if(d){if(!c["oldIE"+e])return!1}else c["oldIE"+e]=g;a[f]("on"+e,c["oldIE"+e])}else a[f]("on"+e,c)});var f=this,g=25,h=3,i={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(a){return"A"===a.tagName},getDoubleTapZoom:function(a,b){return a?1:b.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};e.extend(i,d);var j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma=function(){return{x:0,y:0}},na=ma(),oa=ma(),pa=ma(),qa={},ra=0,sa={},ta=ma(),ua=0,va=!0,wa=[],xa={},ya=!1,za=function(a,b){e.extend(f,b.publicMethods),wa.push(a)},Aa=function(a){var b=ac();return a>b-1?a-b:a<0?b+a:a},Ba={},Ca=function(a,b){return Ba[a]||(Ba[a]=[]),Ba[a].push(b)},Da=function(a){var b=Ba[a];if(b){var c=Array.prototype.slice.call(arguments);c.shift();for(var d=0;d<b.length;d++)b[d].apply(f,c)}},Ea=function(){return(new Date).getTime()},Fa=function(a){ja=a,f.bg.style.opacity=a*i.bgOpacity},Ga=function(a,b,c,d,e){(!ya||e&&e!==f.currItem)&&(d/=e?e.fitRatio:f.currItem.fitRatio),a[E]=u+b+"px, "+c+"px"+v+" scale("+d+")"},Ha=function(a){ea&&(a&&(s>f.currItem.fitRatio?ya||(mc(f.currItem,!1,!0),ya=!0):ya&&(mc(f.currItem),ya=!1)),Ga(ea,pa.x,pa.y,s))},Ia=function(a){a.container&&Ga(a.container.style,a.initialPosition.x,a.initialPosition.y,a.initialZoomLevel,a)},Ja=function(a,b){b[E]=u+a+"px, 0px"+v},Ka=function(a,b){if(!i.loop&&b){var c=m+(ta.x*ra-a)/ta.x,d=Math.round(a-tb.x);(c<0&&d>0||c>=ac()-1&&d<0)&&(a=tb.x+d*i.mainScrollEndFriction)}tb.x=a,Ja(a,n)},La=function(a,b){var c=ub[a]-sa[a];return oa[a]+na[a]+c-c*(b/t)},Ma=function(a,b){a.x=b.x,a.y=b.y,b.id&&(a.id=b.id)},Na=function(a){a.x=Math.round(a.x),a.y=Math.round(a.y)},Oa=null,Pa=function(){Oa&&(e.unbind(document,"mousemove",Pa),e.addClass(a,"pswp--has_mouse"),i.mouseUsed=!0,Da("mouseUsed")),Oa=setTimeout(function(){Oa=null},100)},Qa=function(){e.bind(document,"keydown",f),N.transform&&e.bind(f.scrollWrap,"click",f),i.mouseUsed||e.bind(document,"mousemove",Pa),e.bind(window,"resize scroll orientationchange",f),Da("bindEvents")},Ra=function(){e.unbind(window,"resize scroll orientationchange",f),e.unbind(window,"scroll",r.scroll),e.unbind(document,"keydown",f),e.unbind(document,"mousemove",Pa),N.transform&&e.unbind(f.scrollWrap,"click",f),V&&e.unbind(window,p,f),clearTimeout(O),Da("unbindEvents")},Sa=function(a,b){var c=ic(f.currItem,qa,a);return b&&(da=c),c},Ta=function(a){return a||(a=f.currItem),a.initialZoomLevel},Ua=function(a){return a||(a=f.currItem),a.w>0?i.maxSpreadZoom:1},Va=function(a,b,c,d){return d===f.currItem.initialZoomLevel?(c[a]=f.currItem.initialPosition[a],!0):(c[a]=La(a,d),c[a]>b.min[a]?(c[a]=b.min[a],!0):c[a]<b.max[a]&&(c[a]=b.max[a],!0))},Wa=function(){if(E){var b=N.perspective&&!G;return u="translate"+(b?"3d(":"("),void(v=N.perspective?", 0px)":")")}E="left",e.addClass(a,"pswp--ie"),Ja=function(a,b){b.left=a+"px"},Ia=function(a){var b=a.fitRatio>1?1:a.fitRatio,c=a.container.style,d=b*a.w,e=b*a.h;c.width=d+"px",c.height=e+"px",c.left=a.initialPosition.x+"px",c.top=a.initialPosition.y+"px"},Ha=function(){if(ea){var a=ea,b=f.currItem,c=b.fitRatio>1?1:b.fitRatio,d=c*b.w,e=c*b.h;a.width=d+"px",a.height=e+"px",a.left=pa.x+"px",a.top=pa.y+"px"}}},Xa=function(a){var b="";i.escKey&&27===a.keyCode?b="close":i.arrowKeys&&(37===a.keyCode?b="prev":39===a.keyCode&&(b="next")),b&&(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||(a.preventDefault?a.preventDefault():a.returnValue=!1,f[b]()))},Ya=function(a){a&&(Y||X||fa||T)&&(a.preventDefault(),a.stopPropagation())},Za=function(){f.setScrollOffset(0,e.getScrollY())},$a={},_a=0,ab=function(a){$a[a]&&($a[a].raf&&I($a[a].raf),_a--,delete $a[a])},bb=function(a){$a[a]&&ab(a),$a[a]||(_a++,$a[a]={})},cb=function(){for(var a in $a)$a.hasOwnProperty(a)&&ab(a)},db=function(a,b,c,d,e,f,g){var h,i=Ea();
2405bb(a);var j=function(){if($a[a]){if(h=Ea()-i,h>=d)return ab(a),f(c),void(g&&g());f((c-b)*e(h/d)+b),$a[a].raf=H(j)}};j()},eb={shout:Da,listen:Ca,viewportSize:qa,options:i,isMainScrollAnimating:function(){return fa},getZoomLevel:function(){return s},getCurrentIndex:function(){return m},isDragging:function(){return V},isZooming:function(){return aa},setScrollOffset:function(a,b){sa.x=a,M=sa.y=b,Da("updateScrollOffset",sa)},applyZoomPan:function(a,b,c,d){pa.x=b,pa.y=c,s=a,Ha(d)},init:function(){if(!j&&!k){var c;f.framework=e,f.template=a,f.bg=e.getChildByClass(a,"pswp__bg"),J=a.className,j=!0,N=e.detectFeatures(),H=N.raf,I=N.caf,E=N.transform,L=N.oldIE,f.scrollWrap=e.getChildByClass(a,"pswp__scroll-wrap"),f.container=e.getChildByClass(f.scrollWrap,"pswp__container"),n=f.container.style,f.itemHolders=y=[{el:f.container.children[0],wrap:0,index:-1},{el:f.container.children[1],wrap:0,index:-1},{el:f.container.children[2],wrap:0,index:-1}],y[0].el.style.display=y[2].el.style.display="none",Wa(),r={resize:f.updateSize,orientationchange:function(){clearTimeout(O),O=setTimeout(function(){qa.x!==f.scrollWrap.clientWidth&&f.updateSize()},500)},scroll:Za,keydown:Xa,click:Ya};var d=N.isOldIOSPhone||N.isOldAndroid||N.isMobileOpera;for(N.animationName&&N.transform&&!d||(i.showAnimationDuration=i.hideAnimationDuration=0),c=0;c<wa.length;c++)f["init"+wa[c]]();if(b){var g=f.ui=new b(f,e);g.init()}Da("firstUpdate"),m=m||i.index||0,(isNaN(m)||m<0||m>=ac())&&(m=0),f.currItem=_b(m),(N.isOldIOSPhone||N.isOldAndroid)&&(va=!1),a.setAttribute("aria-hidden","false"),i.modal&&(va?a.style.position="fixed":(a.style.position="absolute",a.style.top=e.getScrollY()+"px")),void 0===M&&(Da("initialLayout"),M=K=e.getScrollY());var l="pswp--open ";for(i.mainClass&&(l+=i.mainClass+" "),i.showHideOpacity&&(l+="pswp--animate_opacity "),l+=G?"pswp--touch":"pswp--notouch",l+=N.animationName?" pswp--css_animation":"",l+=N.svg?" pswp--svg":"",e.addClass(a,l),f.updateSize(),o=-1,ua=null,c=0;c<h;c++)Ja((c+o)*ta.x,y[c].el.style);L||e.bind(f.scrollWrap,q,f),Ca("initialZoomInEnd",function(){f.setContent(y[0],m-1),f.setContent(y[2],m+1),y[0].el.style.display=y[2].el.style.display="block",i.focus&&a.focus(),Qa()}),f.setContent(y[1],m),f.updateCurrItem(),Da("afterInit"),va||(w=setInterval(function(){_a||V||aa||s!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),e.addClass(a,"pswp--visible")}},close:function(){j&&(j=!1,k=!0,Da("close"),Ra(),cc(f.currItem,null,!0,f.destroy))},destroy:function(){Da("destroy"),Xb&&clearTimeout(Xb),a.setAttribute("aria-hidden","true"),a.className=J,w&&clearInterval(w),e.unbind(f.scrollWrap,q,f),e.unbind(window,"scroll",f),zb(),cb(),Ba=null},panTo:function(a,b,c){c||(a>da.min.x?a=da.min.x:a<da.max.x&&(a=da.max.x),b>da.min.y?b=da.min.y:b<da.max.y&&(b=da.max.y)),pa.x=a,pa.y=b,Ha()},handleEvent:function(a){a=a||window.event,r[a.type]&&r[a.type](a)},goTo:function(a){a=Aa(a);var b=a-m;ua=b,m=a,f.currItem=_b(m),ra-=b,Ka(ta.x*ra),cb(),fa=!1,f.updateCurrItem()},next:function(){f.goTo(m+1)},prev:function(){f.goTo(m-1)},updateCurrZoomItem:function(a){if(a&&Da("beforeChange",0),y[1].el.children.length){var b=y[1].el.children[0];ea=e.hasClass(b,"pswp__zoom-wrap")?b.style:null}else ea=null;da=f.currItem.bounds,t=s=f.currItem.initialZoomLevel,pa.x=da.center.x,pa.y=da.center.y,a&&Da("afterChange")},invalidateCurrItems:function(){x=!0;for(var a=0;a<h;a++)y[a].item&&(y[a].item.needsUpdate=!0)},updateCurrItem:function(a){if(0!==ua){var b,c=Math.abs(ua);if(!(a&&c<2)){f.currItem=_b(m),ya=!1,Da("beforeChange",ua),c>=h&&(o+=ua+(ua>0?-h:h),c=h);for(var d=0;d<c;d++)ua>0?(b=y.shift(),y[h-1]=b,o++,Ja((o+2)*ta.x,b.el.style),f.setContent(b,m-c+d+1+1)):(b=y.pop(),y.unshift(b),o--,Ja(o*ta.x,b.el.style),f.setContent(b,m+c-d-1-1));if(ea&&1===Math.abs(ua)){var e=_b(z);e.initialZoomLevel!==s&&(ic(e,qa),mc(e),Ia(e))}ua=0,f.updateCurrZoomItem(),z=m,Da("afterChange")}}},updateSize:function(b){if(!va&&i.modal){var c=e.getScrollY();if(M!==c&&(a.style.top=c+"px",M=c),!b&&xa.x===window.innerWidth&&xa.y===window.innerHeight)return;xa.x=window.innerWidth,xa.y=window.innerHeight,a.style.height=xa.y+"px"}if(qa.x=f.scrollWrap.clientWidth,qa.y=f.scrollWrap.clientHeight,Za(),ta.x=qa.x+Math.round(qa.x*i.spacing),ta.y=qa.y,Ka(ta.x*ra),Da("beforeResize"),void 0!==o){for(var d,g,j,k=0;k<h;k++)d=y[k],Ja((k+o)*ta.x,d.el.style),j=m+k-1,i.loop&&ac()>2&&(j=Aa(j)),g=_b(j),g&&(x||g.needsUpdate||!g.bounds)?(f.cleanSlide(g),f.setContent(d,j),1===k&&(f.currItem=g,f.updateCurrZoomItem(!0)),g.needsUpdate=!1):d.index===-1&&j>=0&&f.setContent(d,j),g&&g.container&&(ic(g,qa),mc(g),Ia(g));x=!1}
2405t=s=f.currItem.initialZoomLevel,da=f.currItem.bounds,da&&(pa.x=da.center.x,pa.y=da.center.y,Ha(!0)),Da("resize")},zoomTo:function(a,b,c,d,f){b&&(t=s,ub.x=Math.abs(b.x)-pa.x,ub.y=Math.abs(b.y)-pa.y,Ma(oa,pa));var g=Sa(a,!1),h={};Va("x",g,h,a),Va("y",g,h,a);var i=s,j={x:pa.x,y:pa.y};Na(h);var k=function(b){1===b?(s=a,pa.x=h.x,pa.y=h.y):(s=(a-i)*b+i,pa.x=(h.x-j.x)*b+j.x,pa.y=(h.y-j.y)*b+j.y),f&&f(b),Ha(1===b)};c?db("customZoomTo",0,1,c,d||e.easing.sine.inOut,k):k(1)}},fb=30,gb=10,hb={},ib={},jb={},kb={},lb={},mb=[],nb={},ob=[],pb={},qb=0,rb=ma(),sb=0,tb=ma(),ub=ma(),vb=ma(),wb=function(a,b){return a.x===b.x&&a.y===b.y},xb=function(a,b){return Math.abs(a.x-b.x)<g&&Math.abs(a.y-b.y)<g},yb=function(a,b){return pb.x=Math.abs(a.x-b.x),pb.y=Math.abs(a.y-b.y),Math.sqrt(pb.x*pb.x+pb.y*pb.y)},zb=function(){Z&&(I(Z),Z=null)},Ab=function(){V&&(Z=H(Ab),Qb())},Bb=function(){return!("fit"===i.scaleMode&&s===f.currItem.initialZoomLevel)},Cb=function(a,b){return!(!a||a===document)&&(!(a.getAttribute("class")&&a.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(b(a)?a:Cb(a.parentNode,b)))},Db={},Eb=function(a,b){return Db.prevent=!Cb(a.target,i.isClickableElement),Da("preventDragEvent",a,b,Db),Db.prevent},Fb=function(a,b){return b.x=a.pageX,b.y=a.pageY,b.id=a.identifier,b},Gb=function(a,b,c){c.x=.5*(a.x+b.x),c.y=.5*(a.y+b.y)},Hb=function(a,b,c){if(a-Q>50){var d=ob.length>2?ob.shift():{};d.x=b,d.y=c,ob.push(d),Q=a}},Ib=function(){var a=pa.y-f.currItem.initialPosition.y;return 1-Math.abs(a/(qa.y/2))},Jb={},Kb={},Lb=[],Mb=function(a){for(;Lb.length>0;)Lb.pop();return F?(la=0,mb.forEach(function(a){0===la?Lb[0]=a:1===la&&(Lb[1]=a),la++})):a.type.indexOf("touch")>-1?a.touches&&a.touches.length>0&&(Lb[0]=Fb(a.touches[0],Jb),a.touches.length>1&&(Lb[1]=Fb(a.touches[1],Kb))):(Jb.x=a.pageX,Jb.y=a.pageY,Jb.id="",Lb[0]=Jb),Lb},Nb=function(a,b){var c,d,e,g,h=0,j=pa[a]+b[a],k=b[a]>0,l=tb.x+b.x,m=tb.x-nb.x;return c=j>da.min[a]||j<da.max[a]?i.panEndFriction:1,j=pa[a]+b[a]*c,!i.allowPanToNext&&s!==f.currItem.initialZoomLevel||(ea?"h"!==ga||"x"!==a||X||(k?(j>da.min[a]&&(c=i.panEndFriction,h=da.min[a]-j,d=da.min[a]-oa[a]),(d<=0||m<0)&&ac()>1?(g=l,m<0&&l>nb.x&&(g=nb.x)):da.min.x!==da.max.x&&(e=j)):(j<da.max[a]&&(c=i.panEndFriction,h=j-da.max[a],d=oa[a]-da.max[a]),(d<=0||m>0)&&ac()>1?(g=l,m>0&&l<nb.x&&(g=nb.x)):da.min.x!==da.max.x&&(e=j))):g=l,"x"!==a)?void(fa||$||s>f.currItem.fitRatio&&(pa[a]+=b[a]*c)):(void 0!==g&&(Ka(g,!0),$=g!==nb.x),da.min.x!==da.max.x&&(void 0!==e?pa.x=e:$||(pa.x+=b.x*c)),void 0!==g)},Ob=function(a){if(!("mousedown"===a.type&&a.button>0)){if($b)return void a.preventDefault();if(!U||"mousedown"!==a.type){if(Eb(a,!0)&&a.preventDefault(),Da("pointerDown"),F){var b=e.arraySearch(mb,a.pointerId,"id");b<0&&(b=mb.length),mb[b]={x:a.pageX,y:a.pageY,id:a.pointerId}}var c=Mb(a),d=c.length;_=null,cb(),V&&1!==d||(V=ha=!0,e.bind(window,p,f),S=ka=ia=T=$=Y=W=X=!1,ga=null,Da("firstTouchStart",c),Ma(oa,pa),na.x=na.y=0,Ma(kb,c[0]),Ma(lb,kb),nb.x=ta.x*ra,ob=[{x:kb.x,y:kb.y}],Q=P=Ea(),Sa(s,!0),zb(),Ab()),!aa&&d>1&&!fa&&!$&&(t=s,X=!1,aa=W=!0,na.y=na.x=0,Ma(oa,pa),Ma(hb,c[0]),Ma(ib,c[1]),Gb(hb,ib,vb),ub.x=Math.abs(vb.x)-pa.x,ub.y=Math.abs(vb.y)-pa.y,ba=ca=yb(hb,ib))}}},Pb=function(a){if(a.preventDefault(),F){var b=e.arraySearch(mb,a.pointerId,"id");if(b>-1){var c=mb[b];c.x=a.pageX,c.y=a.pageY}}if(V){var d=Mb(a);if(ga||Y||aa)_=d;else if(tb.x!==ta.x*ra)ga="h";else{var f=Math.abs(d[0].x-kb.x)-Math.abs(d[0].y-kb.y);Math.abs(f)>=gb&&(ga=f>0?"h":"v",_=d)}}},Qb=function(){if(_){var a=_.length;if(0!==a)if(Ma(hb,_[0]),jb.x=hb.x-kb.x,jb.y=hb.y-kb.y,aa&&a>1){if(kb.x=hb.x,kb.y=hb.y,!jb.x&&!jb.y&&wb(_[1],ib))return;Ma(ib,_[1]),X||(X=!0,Da("zoomGestureStarted"));var b=yb(hb,ib),c=Vb(b);c>f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(ka=!0);var d=1,e=Ta(),g=Ua();if(c<e)if(i.pinchToClose&&!ka&&t<=f.currItem.initialZoomLevel){var h=e-c,j=1-h/(e/1.2);Fa(j),Da("onPinchClose",j),ia=!0}else d=(e-c)/e,d>1&&(d=1),c=e-d*(e/3);else c>g&&(d=(c-g)/(6*e),d>1&&(d=1),c=g+d*e);d<0&&(d=0),ba=b,Gb(hb,ib,rb),na.x+=rb.x-vb.x,na.y+=rb.y-vb.y,Ma(vb,rb),pa.x=La("x",c),pa.y=La("y",c),S=c>s,s=c,Ha()}else{if(!ga)return;if(ha&&(ha=!1,Math.abs(jb.x)>=gb&&(jb.x-=_[0].x-lb.x),Math.abs(jb.y)>=gb&&(jb.y-=_[0].y-lb.y)),kb.x=hb.x,kb.y=hb.y,0===jb.x&&0===jb.y)return;if("v"===ga&&i.closeOnVerticalDrag&&!Bb()){na.y+=jb.y,pa.y+=jb.y;var k=Ib();return T=!0,Da("onVerticalDrag",k),Fa(k),void Ha()}Hb(Ea(),hb.x,hb.y),Y=!0,da=f.currItem.bounds;var l=Nb("x",jb);l||(Nb("y",jb),Na(pa),Ha())}}}
2405,Rb=function(a){if(N.isOldAndroid){if(U&&"mouseup"===a.type)return;a.type.indexOf("touch")>-1&&(clearTimeout(U),U=setTimeout(function(){U=0},600))}Da("pointerUp"),Eb(a,!1)&&a.preventDefault();var b;if(F){var c=e.arraySearch(mb,a.pointerId,"id");if(c>-1)if(b=mb.splice(c,1)[0],navigator.msPointerEnabled){var d={4:"mouse",2:"touch",3:"pen"};b.type=d[a.pointerType],b.type||(b.type=a.pointerType||"mouse")}else b.type=a.pointerType||"mouse"}var g,h=Mb(a),j=h.length;if("mouseup"===a.type&&(j=0),2===j)return _=null,!0;1===j&&Ma(lb,h[0]),0!==j||ga||fa||(b||("mouseup"===a.type?b={x:a.pageX,y:a.pageY,type:"mouse"}:a.changedTouches&&a.changedTouches[0]&&(b={x:a.changedTouches[0].pageX,y:a.changedTouches[0].pageY,type:"touch"})),Da("touchRelease",a,b));var k=-1;if(0===j&&(V=!1,e.unbind(window,p,f),zb(),aa?k=0:sb!==-1&&(k=Ea()-sb)),sb=1===j?Ea():-1,g=k!==-1&&k<150?"zoom":"swipe",aa&&j<2&&(aa=!1,1===j&&(g="zoomPointerUp"),Da("zoomGestureEnded")),_=null,Y||X||fa||T)if(cb(),R||(R=Sb()),R.calculateSwipeSpeed("x"),T){var l=Ib();if(l<i.verticalDragRange)f.close();else{var m=pa.y,n=ja;db("verticalDrag",0,1,300,e.easing.cubic.out,function(a){pa.y=(f.currItem.initialPosition.y-m)*a+m,Fa((1-n)*a+n),Ha()}),Da("onVerticalDrag",1)}}else{if(($||fa)&&0===j){var o=Ub(g,R);if(o)return;g="zoomPointerUp"}if(!fa)return"swipe"!==g?void Wb():void(!$&&s>f.currItem.fitRatio&&Tb(R))}},Sb=function(){var a,b,c={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(d){ob.length>1?(a=Ea()-Q+50,b=ob[ob.length-2][d]):(a=Ea()-P,b=lb[d]),c.lastFlickOffset[d]=kb[d]-b,c.lastFlickDist[d]=Math.abs(c.lastFlickOffset[d]),c.lastFlickDist[d]>20?c.lastFlickSpeed[d]=c.lastFlickOffset[d]/a:c.lastFlickSpeed[d]=0,Math.abs(c.lastFlickSpeed[d])<.1&&(c.lastFlickSpeed[d]=0),c.slowDownRatio[d]=.95,c.slowDownRatioReverse[d]=1-c.slowDownRatio[d],c.speedDecelerationRatio[d]=1},calculateOverBoundsAnimOffset:function(a,b){c.backAnimStarted[a]||(pa[a]>da.min[a]?c.backAnimDestination[a]=da.min[a]:pa[a]<da.max[a]&&(c.backA
2405nimDestination[a]=da.max[a]),void 0!==c.backAnimDestination[a]&&(c.slowDownRatio[a]=.7,c.slowDownRatioReverse[a]=1-c.slowDownRatio[a],c.speedDecelerationRatioAbs[a]<.05&&(c.lastFlickSpeed[a]=0,c.backAnimStarted[a]=!0,db("bounceZoomPan"+a,pa[a],c.backAnimDestination[a],b||300,e.easing.sine.out,function(b){pa[a]=b,Ha()}))))},calculateAnimOffset:function(a){c.backAnimStarted[a]||(c.speedDecelerationRatio[a]=c.speedDecelerationRatio[a]*(c.slowDownRatio[a]+c.slowDownRatioReverse[a]-c.slowDownRatioReverse[a]*c.timeDiff/10),c.speedDecelerationRatioAbs[a]=Math.abs(c.lastFlickSpeed[a]*c.speedDecelerationRatio[a]),c.distanceOffset[a]=c.lastFlickSpeed[a]*c.speedDecelerationRatio[a]*c.timeDiff,pa[a]+=c.distanceOffset[a])},panAnimLoop:function(){if($a.zoomPan&&($a.zoomPan.raf=H(c.panAnimLoop),c.now=Ea(),c.timeDiff=c.now-c.lastNow,c.lastNow=c.now,c.calculateAnimOffset("x"),c.calculateAnimOffset("y"),Ha(),c.calculateOverBoundsAnimOffset("x"),c.calculateOverBoundsAnimOffset("y"),c.speedDecelerationRatioAbs.x<.05&&c.speedDecelerationRatioAbs.y<.05))return pa.x=Math.round(pa.x),pa.y=Math.round(pa.y),Ha(),void ab("zoomPan")}};return c},Tb=function(a){return a.calculateSwipeSpeed("y"),da=f.currItem.bounds,a.backAnimDestination={},a.backAnimStarted={},Math.abs(a.lastFlickSpeed.x)<=.05&&Math.abs(a.lastFlickSpeed.y)<=.05?(a.speedDecelerationRatioAbs.x=a.speedDecelerationRatioAbs.y=0,a.calculateOverBoundsAnimOffset("x"),a.calculateOverBoundsAnimOffset("y"),!0):(bb("zoomPan"),a.lastNow=Ea(),void a.panAnimLoop())},Ub=function(a,b){var c;fa||(qb=m);var d;if("swipe"===a){var g=kb.x-lb.x,h=b.lastFlickDist.x<10;g>fb&&(h||b.lastFlickOffset.x>20)?d=-1:g<-fb&&(h||b.lastFlickOffset.x<-20)&&(d=1)}var j;d&&(m+=d,m<0?(m=i.loop?ac()-1:0,j=!0):m>=ac()&&(m=i.loop?0:ac()-1,j=!0),j&&!i.loop||(ua+=d,ra-=d,c=!0));var k,l=ta.x*ra,n=Math.abs(l-tb.x);return c||l>tb.x==b.lastFlickSpeed.x>0?(k=Math.abs(b.lastFlickSpeed.x)>0?n/Math.abs(b.lastFlickSpeed.x):333,k=Math.min(k,400),k=Math.max(k,250)):k=333,qb===m&&(c=!1),fa=!0,Da("mainScrollAnimStart"),db("mainScroll",tb.x,l,k,e.easing.cubic.out,Ka,function(){cb(),fa=!1,qb=-1,(c||qb!==m)&&f.updateCurrItem(),Da("mainScrollAnimComplete")}),c&&f.updateCurrItem(!0),c},Vb=function(a){return 1/ca*a*t},Wb=function(){var a=s,b=Ta(),c=Ua();s<b?a=b:s>c&&(a=c);var d,g=1,h=ja;return ia&&!S&&!ka&&s<b?(f.close(),!0):(ia&&(d=function(a){Fa((g-h)*a+h)}),f.zoomTo(a,0,200,e.easing.cubic.out,d),!0)};za("Gestures",{publicMethods:{initGestures:function(){var a=function(a,b,c,d,e){A=a+b,B=a+c,C=a+d,D=e?a+e:""};F=N.pointerEvent,F&&N.touch&&(N.touch=!1),F?navigator.msPointerEnabled?a("MSPointer","Down","Move","Up","Cancel"):a("pointer","down","move","up","cancel"):N.touch?(a("touch","start","move","end","cancel"),G=!0):a("mouse","down","move","up"),p=B+" "+C+" "+D,q=A,F&&!G&&(G=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),f.likelyTouchDevice=G,r[A]=Ob,r[B]=Pb,r[C]=Rb,D&&(r[D]=r[C]),N.touch&&(q+=" mousedown",p+=" mousemove mouseup",r.mousedown=r[A],r.mousemove=r[B],r.mouseup=r[C]),G||(i.allowPanToNext=!1)}}});var Xb,Yb,Zb,$b,_b,ac,bc,cc=function(b,c,d,g){Xb&&clearTimeout(Xb),$b=!0,Zb=!0;var h;b.initialLayout?(h=b.initialLayout,b.initialLayout=null):h=i.getThumbBoundsFn&&i.getThumbBoundsFn(m);var j=d?i.hideAnimationDuration:i.showAnimationDuration,k=function(){ab("initialZoom"),d?(f.template.removeAttribute("style"),f.bg.removeAttribute("style")):(Fa(1),c&&(c.style.display="block"),e.addClass(a,"pswp--animated-in"),Da("initialZoom"+(d?"OutEnd":"InEnd"))),g&&g(),$b=!1};if(!j||!h||void 0===h.x)return Da("initialZoom"+(d?"Out":"In")),s=b.initialZoomLevel,Ma(pa,b.initialPosition),Ha(),a.style.opacity=d?0:1,Fa(1),void(j?setTimeout(function(){k()},j):k());var n=function(){var c=l,g=!f.currItem.src||f.currItem.loadError||i.showHideOpacity;b.miniImg&&(b.miniImg.style.webkitBackfaceVisibility="hidden"),d||(s=h.w/b.w,pa.x=h.x,pa.y=h.y-K,f[g?"template":"bg"].style.opacity=.001,Ha()),bb("initialZoom"),d&&!c&&e.removeClass(a,"pswp--animated-in"),g&&(d?e[(c?"remove":"add")+"Class"](a,"pswp--animate_opacity"):setTimeout(function(){e.addClass(a,"pswp--animate_opacity")},30)),Xb=setTimeout(function(){if(Da("initialZoom"+(d?"Out":"In")),d){var f=h.w/b.w,i={x:pa.x,y:pa.y},l=s,m=ja,n=function(b){1===b?(s=f,pa.x=h.x,pa.y=h.y-M):(s=(f-l)*b+l,pa.x=(h.x-i.x)*b+i.x,pa.y=(h.y-M-i.y)*b+i.y),Ha(),g?a.style.opacity=1-b:Fa(m-b*m)};c?db("initialZoom",0,1,j,e.easing.cubic.out,n,k):(n(1),Xb=setTimeout(k,j+20))}else s=b.initialZoomLevel,Ma(pa,b.initialPosition),Ha(),Fa(1),g?a.style.opacity=1:Fa(1),Xb=setTimeout(k,j+20)},d?25:90)};n()},dc={},ec=[],fc={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Yb.length}},gc=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},hc=function(a,b,c){var d=a.bounds;d.center.x=Math.round((dc.x-b)/2),d.center.y=Math.round((dc.y-c)/2)+a.vGap.top,d.max.x=b>dc.x?Math.round(dc.x-b):d.center.x,d.max.y=c>dc.y?Math.round(dc.y-c)+a.vGap.top:d.center.y,d.min.x=b>dc.x?0:d.center.x,d.min.y=c>dc.y?a.vGap.top:d.center.y},ic=function(a,b,c){if(a.src&&!a.loadError){var d=!c;if(d&&(a.vGap||(a.vGap={top:0,bottom:0}),Da("parseVerticalMargin",a)),dc.x=b.x,dc.y=b.y-a.vGap.top-a.vGap.bottom,d){var e=dc.x/a.w,f=dc.y/a.h;a.fitRatio=e<f?e:f;var g=i.scaleMode;"orig"===g?c=1:"fit"===g&&(c=a.fitRatio),c>1&&(c=1),a.initialZoomLevel=c,a.bounds||(a.bounds=gc())}if(!c)return;return hc(a,a.w*c,a.h*c),d&&c===a.initialZoomLevel&&(a.initialPosition=a.bounds.center),a.bounds}return a.w=a.h=0,a.initialZoomLevel=a.fitRatio=1,a.bounds=gc(),a.initialPosition=a.bounds.center,a.bounds},jc=function(a,b,c,d,e,g){b.loadError||d&&(b.imageAppended=!0,mc(b,d,b===f.currItem&&ya),c.appendChild(d),g&&setTimeout(function(){b&&b.loaded&&b.placeholder&&(b.placeholder.style.display="none",b.placeholder=null)},500))},kc=function(a){a.loading=!0,a.loaded=!1;var b=a.img=e.createEl("pswp__img","img"),c=function(){a.loading=!1,a.loaded=!0,a.loadComplete?a.loadComplete(a):a.img=null,b.onload=b.onerror=null,b=null};
2405return b.onload=c,b.onerror=function(){a.loadError=!0,c()},b.src=a.src,b},lc=function(a,b){if(a.src&&a.loadError&&a.container)return b&&(a.container.innerHTML=""),a.container.innerHTML=i.errorMsg.replace("%url%",a.src),!0},mc=function(a,b,c){if(a.src){b||(b=a.container.lastChild);var d=c?a.w:Math.round(a.w*a.fitRatio),e=c?a.h:Math.round(a.h*a.fitRatio);a.placeholder&&!a.loaded&&(a.placeholder.style.width=d+"px",a.placeholder.style.height=e+"px"),b.style.width=d+"px",b.style.height=e+"px"}},nc=function(){if(ec.length){for(var a,b=0;b<ec.length;b++)a=ec[b],a.holder.index===a.index&&jc(a.index,a.item,a.baseDiv,a.img,!1,a.clearPlaceholder);ec=[]}};za("Controller",{publicMethods:{lazyLoadItem:function(a){a=Aa(a);var b=_b(a);b&&(!b.loaded&&!b.loading||x)&&(Da("gettingData",a,b),b.src&&kc(b))},initController:function(){e.extend(i,fc,!0),f.items=Yb=c,_b=f.getItemAt,ac=i.getNumItemsFn,bc=i.loop,ac()<3&&(i.loop=!1),Ca("beforeChange",function(a){var b,c=i.preload,d=null===a||a>=0,e=Math.min(c[0],ac()),g=Math.min(c[1],ac());for(b=1;b<=(d?g:e);b++)f.lazyLoadItem(m+b);for(b=1;b<=(d?e:g);b++)f.lazyLoadItem(m-b)}),Ca("initialLayout",function(){f.currItem.initialLayout=i.getThumbBoundsFn&&i.getThumbBoundsFn(m)}),Ca("mainScrollAnimComplete",nc),Ca("initialZoomInEnd",nc),Ca("destroy",function(){for(var a,b=0;b<Yb.length;b++)a=Yb[b],a.container&&(a.container=null),a.placeholder&&(a.placeholder=null),a.img&&(a.img=null),a.preloader&&(a.preloader=null),a.loadError&&(a.loaded=a.loadError=!1);ec=null})},getItemAt:function(a){return a>=0&&(void 0!==Yb[a]&&Yb[a])},allowProgressiveImg:function(){return i.forceProgressiveLoading||!G||i.mouseUsed||screen.width>1200},setContent:function(a,b){i.loop&&(b=Aa(b));var c=f.getItemAt(a.index);c&&(c.container=null);var d,g=f.getItemAt(b);if(!g)return void(a.el.innerHTML="");Da("gettingData",b,g),a.index=b,a.item=g;var h=g.container=e.createEl("pswp__zoom-wrap");if(!g.src&&g.html&&(g.html.tagName?h.appendChild(g.html):h.innerHTML=g.html),lc(g),ic(g,qa),!g.src||g.loadError||g.loaded)g.src&&!g.loadError&&(d=e.createEl("pswp__img","img"),d.style.opacity=1,d.src=g.src,mc(g,d),jc(b,g,h,d,!0));else{if(g.loadComplete=function(c){if(j){if(a&&a.index===b){if(lc(c,!0))return c.loadComplete=c.img=null,ic(c,qa),Ia(c),void(a.index===m&&f.updateCurrZoomItem());c.imageAppended?!$b&&c.placeholder&&(c.placeholder.style.display="none",c.placeholder=null):N.transform&&(fa||$b)?ec.push({item:c,baseDiv:h,img:c.img,index:b,holder:a,clearPlaceholder:!0}):jc(b,c,h,c.img,fa||$b,!0)}c.loadComplete=null,c.img=null,Da("imageLoadComplete",b,c)}},e.features.transform){var k="pswp__img pswp__img--placeholder";k+=g.msrc?"":" pswp__img--placeholder--blank";var l=e.createEl(k,g.msrc?"img":"");g.msrc&&(l.src=g.msrc),mc(g,l),h.appendChild(l),g.placeholder=l}g.loading||kc(g),f.allowProgressiveImg()&&(!Zb&&N.transform?ec.push({item:g,baseDiv:h,img:g.img,index:b,holder:a}):jc(b,g,h,g.img,!0,!0))}Zb||b!==m?Ia(g):(ea=h.style,cc(g,d||g.img)),a.el.innerHTML="",a.el.appendChild(h)},cleanSlide:function(a){a.img&&(a.img.onload=a.img.onerror=null),a.loaded=a.loading=a.img=a.imageAppended=!1}}});var oc,pc={},qc=function(a,b,c){var d=document.createEvent("CustomEvent"),e={origEvent:a,target:a.target,releasePoint:b,pointerType:c||"touch"};d.initCustomEvent("pswpTap",!0,!0,e),a.target.dispatchEvent(d)};za("Tap",{publicMethods:{initTap:function(){Ca("firstTouchStart",f.onTapStart),Ca("touchRelease",f.onTapRelease),Ca("destroy",function(){pc={},oc=null})},onTapStart:function(a){a.length>1&&(clearTimeout(oc),oc=null)},onTapRelease:function(a,b){if(b&&!Y&&!W&&!_a){var c=b;if(oc&&(clearTimeout(oc),oc=null,xb(c,pc)))return void Da("doubleTap",c);if("mouse"===b.type)return void qc(a,b,"mouse");var d=a.target.tagName.toUpperCase();if("BUTTON"===d||e.hasClass(a.target,"pswp__single-tap"))return void qc(a,b);Ma(pc,c),oc=setTimeout(function(){qc(a,b),oc=null},300)}}}});var rc;za("DesktopZoom",{publicMethods:{initDesktopZoom:function(){L||(G?Ca("mouseUsed",function(){f.setupDesktopZoom()}):f.setupDesktopZoom(!0))},setupDesktopZoom:function(b){rc={};var c="wheel mousewheel DOMMouseScroll";Ca("bindEvents",function(){e.bind(a,c,f.handleMouseWheel)}),Ca("unbindEvents",function(){rc&&e.unbind(a,c,f.handleMouseWheel)}),f.mouseZoomedIn=!1;var d,g=function(){f.mouseZoomedIn&&(e.removeClass(a,"pswp--zoomed-in"),f.mouseZoomedIn=!1),s<1?e.addClass(a,"pswp--zoom-allowed"):e.removeClass(a,"pswp--zoom-allowed"),h()},h=function(){d&&(e.removeClass(a,"pswp--dragging"),d=!1)};Ca("resize",g),Ca("afterChange",g),Ca("pointerDown",function(){f.mouseZoomedIn&&(d=!0,e.addClass(a,"pswp--dragging"))}),Ca("pointerUp",h),b||g()}
2405,handleMouseWheel:function(a){if(s<=f.currItem.fitRatio)return i.modal&&(!i.closeOnScroll||_a||V?a.preventDefault():E&&Math.abs(a.deltaY)>2&&(l=!0,f.close())),!0;if(a.stopPropagation(),rc.x=0,"deltaX"in a)1===a.deltaMode?(rc.x=18*a.deltaX,rc.y=18*a.deltaY):(rc.x=a.deltaX,rc.y=a.deltaY);else if("wheelDelta"in a)a.wheelDeltaX&&(rc.x=-.16*a.wheelDeltaX),a.wheelDeltaY?rc.y=-.16*a.wheelDeltaY:rc.y=-.16*a.wheelDelta;else{if(!("detail"in a))return;rc.y=a.detail}Sa(s,!0);var b=pa.x-rc.x,c=pa.y-rc.y;(i.modal||b<=da.min.x&&b>=da.max.x&&c<=da.min.y&&c>=da.max.y)&&a.preventDefault(),f.panTo(b,c)},toggleDesktopZoom:function(b){b=b||{x:qa.x/2+sa.x,y:qa.y/2+sa.y};var c=i.getDoubleTapZoom(!0,f.currItem),d=s===c;f.mouseZoomedIn=!d,f.zoomTo(d?f.currItem.initialZoomLevel:c,b,333),e[(d?"remove":"add")+"Class"](a,"pswp--zoomed-in")}}});var sc,tc,uc,vc,wc,xc,yc,zc,Ac,Bc,Cc,Dc,Ec={history:!0,galleryUID:1},Fc=function(){return Cc.hash.substring(1)},Gc=function(){sc&&clearTimeout(sc),uc&&clearTimeout(uc)},Hc=function(){var a=Fc(),b={};if(a.length<5)return b;var c,d=a.split("&");for(c=0;c<d.length;c++)if(d[c]){var e=d[c].split("=");e.length<2||(b[e[0]]=e[1])}if(i.galleryPIDs){var f=b.pid;for(b.pid=0,c=0;c<Yb.length;c++)if(Yb[c].pid===f){b.pid=c;break}}else b.pid=parseInt(b.pid,10)-1;return b.pid<0&&(b.pid=0),b},Ic=function(){if(uc&&clearTimeout(uc),_a||V)return void(uc=setTimeout(Ic,500));vc?clearTimeout(tc):vc=!0;var a=m+1,b=_b(m);b.hasOwnProperty("pid")&&(a=b.pid);var c=yc+"&gid="+i.galleryUID+"&pid="+a;zc||Cc.hash.indexOf(c)===-1&&(Bc=!0);var d=Cc.href.split("#")[0]+"#"+c;Dc?"#"+c!==window.location.hash&&history[zc?"replaceState":"pushState"]("",document.title,d):zc?Cc.replace(d):Cc.hash=c,zc=!0,tc=setTimeout(function(){vc=!1},60)};za("History",{publicMethods:{initHistory:function(){if(e.extend(i,Ec,!0),i.history){Cc=window.location,Bc=!1,Ac=!1,zc=!1,yc=Fc(),Dc="pushState"in history,yc.indexOf("gid=")>-1&&(yc=yc.split("&gid=")[0],yc=yc.split("?gid=")[0]),Ca("afterChange",f.updateURL),Ca("unbindEvents",function(){e.unbind(window,"hashchange",f.onHashChange)});var a=function(){xc=!0,Ac||(Bc?history.back():yc?Cc.hash=yc:Dc?history.pushState("",document.title,Cc.pathname+Cc.search):Cc.hash=""),Gc()};Ca("unbindEvents",function(){l&&a()}),Ca("destroy",function(){xc||a()}),Ca("firstUpdate",function(){m=Hc().pid});var b=yc.indexOf("pid=");b>-1&&(yc=yc.substring(0,b),"&"===yc.slice(-1)&&(yc=yc.slice(0,-1))),setTimeout(function(){j&&e.bind(window,"hashchange",f.onHashChange)},40)}},onHashChange:function(){return Fc()===yc?(Ac=!0,void f.close()):void(vc||(wc=!0,f.goTo(Hc().pid),wc=!1))},updateURL:function(){Gc(),wc||(zc?sc=setTimeout(Ic,800):Ic())}}}),e.extend(f,eb)};return a}); 2406!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipeUI_Default=b()}(this,function(){"use strict";var a=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=this,w=!1,x=!0,y=!0,z={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(a,b){return a.title?(b.children[0].innerHTML=a.title,!0):(b.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return a.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return a.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},A=function(a){if(r)return!0;a=a||window.event,q.timeToIdle&&q.mouseUsed&&!k&&K();for(var c,d,e=a.target||a.srcElement,f=e.getAttribute("class")||"",g=0;g<S.length;g++)c=S[g],c.onTap&&f.indexOf("pswp__"+c.name)>-1&&(c.onTap(),d=!0);if(d){a.stopPropagation&&a.stopPropagation(),r=!0;var h=b.features.isOldAndroid?600:30;s=setTimeout(function(){r=!1},h)}},B=function(){return!a.likelyTouchDevice||q.mouseUsed||screen.width>q.fitControlsWidth},C=function(a,c,d){b[(d?"add":"remove")+"Class"](a,"pswp__"+c)},D=function(){var a=1===q.getNumItemsFn();a!==p&&(C(d,"ui--one-slide",a),p=a)},E=function(){C(i,"share-modal--hidden",y)},F=function(){return y=!y,y?(b.removeClass(i,"pswp__share-modal--fade-in"),setTimeout(function(){y&&E()},300)):(E(),setTimeout(function(){y||b.addClass(i,"pswp__share-modal--fade-in")},30)),y||H(),!1},G=function(b){b=b||window.event;var c=b.target||b.srcElement;return a.shout("shareLinkClick",b,c),!!c.href&&(!!c.hasAttribute("download")||(window.open(c.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),y||F(),!1))},H=function(){for(var a,b,c,d,e,f="",g=0;g<q.shareButtons.length;g++)a=q.shareButtons[g],c=q.getImageURLForShare(a),d=q.getPageURLForShare(a),e=q.getTextForShare(a),b=a.url.replace("{{url}}",encodeURIComponent(d)).replace("{{image_url}}",encodeURIComponent(c)).replace("{{raw_image_url}}",c).replace("{{text}}",encodeURIComponent(e)),f+='<a href="'+b+'" target="_blank" class="pswp__share--'+a.id+'"'+(a.download?"download":"")+">"+a.label+"</a>",q.parseShareButtonOut&&(f=q.parseShareButtonOut(a,f));i.children[0].innerHTML=f,i.children[0].onclick=G},I=function(a){for(var c=0;c<q.closeElClasses.length;c++)if(b.hasClass(a,"pswp__"+q.closeElClasses[c]))return!0},J=0,K=function(){clearTimeout(u),J=0,k&&v.setIdle(!1)},L=function(a){a=a?a:window.event;var b=a.relatedTarget||a.toElement;b&&"HTML"!==b.nodeName||(clearTimeout(u),u=setTimeout(function(){v.setIdle(!0)},q.timeToIdleOutside))},M=function(){q.fullscreenEl&&!b.features.isOldAndroid&&(c||(c=v.getFullscreenAPI()),c?(b.bind(document,c.eventK,v.updateFullscreen),v.updateFullscreen(),b.addClass(a.template,"pswp--supports-fs")):b.removeClass(a.template,"pswp--supports-fs"))},N=function(){q.preloaderEl&&(O(!0),l("beforeChange",function(){clearTimeout(o),o=setTimeout(function(){a.currItem&&a.currItem.loading?(!a.allowProgressiveImg()||a.currItem.img&&!a.currItem.img.naturalWi
2406dth)&&O(!1):O(!0)},q.loadingIndicatorDelay)}),l("imageLoadComplete",function(b,c){a.currItem===c&&O(!0)}))},O=function(a){n!==a&&(C(m,"preloader--active",!a),n=a)},P=function(a){var c=a.vGap;if(B()){var g=q.barsSize;if(q.captionEl&&"auto"===g.bottom)if(f||(f=b.createEl("pswp__caption pswp__caption--fake"),f.appendChild(b.createEl("pswp__caption__center")),d.insertBefore(f,e),b.addClass(d,"pswp__ui--fit")),q.addCaptionHTMLFn(a,f,!0)){var h=f.clientHeight;c.bottom=parseInt(h,10)||44}else c.bottom=g.top;else c.bottom="auto"===g.bottom?0:g.bottom;c.top=g.top}else c.top=c.bottom=0},Q=function(){q.timeToIdle&&l("mouseUsed",function(){b.bind(document,"mousemove",K),b.bind(document,"mouseout",L),t=setInterval(function(){J++,2===J&&v.setIdle(!0)},q.timeToIdle/2)})},R=function(){l("onVerticalDrag",function(a){x&&a<.95?v.hideControls():!x&&a>=.95&&v.showControls()});var a;l("onPinchClose",function(b){x&&b<.9?(v.hideControls(),a=!0):a&&!x&&b>.9&&v.showControls()}),l("zoomGestureEnded",function(){a=!1,a&&!x&&v.showControls()})},S=[{name:"caption",option:"captionEl",onInit:function(a){e=a}},{name:"share-modal",option:"shareEl",onInit:function(a){i=a},onTap:function(){F()}},{name:"button--share",option:"shareEl",onInit:function(a){h=a},onTap:function(){F()}},{name:"button--zoom",option:"zoomEl",onTap:a.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(a){g=a}},{name:"button--close",option:"closeEl",onTap:a.close},{name:"button--arrow--left",option:"arrowEl",onTap:a.prev},{name:"button--arrow--right",option:"arrowEl",onTap:a.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){c.isFullscreen()?c.exit():c.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(a){m=a}}],T=function(){var a,c,e,f=function(d){if(d)for(var f=d.length,g=0;g<f;g++){a=d[g],c=a.className;for(var h=0;h<S.length;h++)e=S[h],c.indexOf("pswp__"+e.name)>-1&&(q[e.option]?(b.removeClass(a,"pswp__element--disabled"),e.onInit&&e.onInit(a)):b.addClass(a,"pswp__element--disabled"))}};f(d.children);var g=b.getChildByClass(d,"pswp__top-bar");g&&f(g.children)};v.init=function(){b.extend(a.options,z,!0),q=a.options,d=b.getChildByClass(a.scrollWrap,"pswp__ui"),l=a.listen,R(),l("beforeChange",v.update),l("doubleTap",function(b){var c=a.currItem.initialZoomLevel;a.getZoomLevel()!==c?a.zoomTo(c,b,333):a.zoomTo(q.getDoubleTapZoom(!1,a.currItem),b,333)}),l("preventDragEvent",function(a,b,c){var d=a.target||a.srcElement;d&&d.getAttribute("class")&&a.type.indexOf("mouse")>-1&&(d.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(d.tagName))&&(c.prevent=!1)}),l("bindEvents",function(){b.bind(d,"pswpTap click",A),b.bind(a.scrollWrap,"pswpTap",v.onGlobalTap),a.likelyTouchDevice||b.bind(a.scrollWrap,"mouseover",v.onMouseOver)}),l("unbindEvents",function(){y||F(),t&&clearInterval(t),b.unbind(document,"mouseout",L),b.unbind(document,"mousemove",K),b.unbind(d,"pswpTap click",A),b.unbind(a.scrollWrap,"pswpTap",v.onGlobalTap),b.unbind(a.scrollWrap,"mouseover",v.onMouseOver),c&&(b.unbind(document,c.eventK,v.updateFullscreen),c.isFullscreen()&&(q.hideAnimationDuration=0,c.exit()),c=null)}),l("destroy",function(){q.captionEl&&(f&&d.removeChild(f),b.removeClass(e,"pswp__caption--empty")),i&&(i.children[0].onclick=null),b.removeClass(d,"pswp__ui--over-close"),b.addClass(d,"pswp__ui--hidden"),v.setIdle(!1)}),q.showAnimationDuration||b.removeClass(d,"pswp__ui--hidden"),l("initialZoomIn",function(){q.showAnimationDuration&&b.removeClass(d,"pswp__ui--hidden")}),l("initialZoomOut",function(){b.addClass(d,"pswp__ui--hidden")}),l("parseVerticalMargin",P),T(),q.shareEl&&h&&i&&(y=!0),D(),Q(),M(),N()},v.setIdle=function(a){k=a,C(d,"ui--idle",a)},v.update=function(){x&&a.currItem?(v.updateIndexIndicator(),q.captionEl&&(q.addCaptionHTMLFn(a.currItem,e),C(e,"caption--empty",!a.currItem.title)),w=!0):w=!1,y||F(),D()},v.updateFullscreen=function(d){d&&setTimeout(function(){a.setScrollOffset(0,b.getScrollY())},50),b[(c.isFullscreen()?"add":"remove")+"Class"](a.template,"pswp--fs")},v.updateIndexIndicator=function(){q.counterEl&&(g.innerHTML=a.getCurrentIndex()+1+q.indexIndicatorSep+q.getNumItemsFn())},v.onGlobalTap=function(c){c=c||window.event;var d=c.target||c.srcElement;if(!r)if(c.detail&&"mouse"===c.detail.pointerType){if(I(d))return void a.close();b.hasClass(d,"pswp__img")&&(1===a.getZoomLevel()&&a.getZoomLevel()<=a.currItem.fitRatio?q.clickToCloseNonZoomable&&a.close():a.toggleDesktopZoom(c.detail.releasePoint))}else if(q.tapToToggleControls&&(x?v.hideControls():v.showControls()),q.tapToClose&&(b.hasClass(d,"pswp__img")||I(d)))return void a.close()},v.onMouseOver=function(a){a=a||window.event;var b=a.target||a.srcElement;C(d,"ui--over-close",I(b))},v.hideControls=function(){b.addClass(d,"pswp__ui--hidden"),x=!1}
2406,v.showControls=function(){x=!0,w||v.update(),b.removeClass(d,"pswp__ui--hidden")},v.supportsFullscreen=function(){var a=document;return!!(a.exitFullscreen||a.mozCancelFullScreen||a.webkitExitFullscreen||a.msExitFullscreen)},v.getFullscreenAPI=function(){var b,c=document.documentElement,d="fullscreenchange";return c.requestFullscreen?b={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:d}:c.mozRequestFullScreen?b={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+d}:c.webkitRequestFullscreen?b={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+d}:c.msRequestFullscreen&&(b={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),b&&(b.enter=function(){return j=q.closeOnScroll,q.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?a.template[this.enterK]():void a.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},b.exit=function(){return q.closeOnScroll=j,document[this.exitK]()},b.isFullscreen=function(){return document[this.elementK]}),b}};return a}); 2407var Photoswipe = { 2408 bind: function(elements) 2409 { 2410 var all = $('a.hs').filter(function() { 2411 return !$(this).parents('.unslider-clone').length && $(this).is('[class*=hs_slideshowGroup]'); 2412 }); 2413 var group = gid = pid = 0; 2414 all.each(function() { 2415 var a = $(this); 2416 var classList = a.attr('class').split(/\s+/); 2417 $.each(classList, function(index, className) { 2418 if (className.match(/\bhs_slideshowGroup/)) { 2419 if ($.contains(elements.get(0), a.get(0))) { 2420 a.click(function() { 2421 var items = []; 2422 $('a.hs.' + className).each(function() { 2423 if (!$(this).parents('.unslider-clone').length) { 2424 items.push($(this)); 2425 } 2426 }); 2427 Photoswipe.init_gallery(a, items); 2428 return false; 2429 }); 2430 } 2431 if (group != className) { 2432 group = className; 2433 gid++; 2434 pid = 1; 2435 } 2436 a.data('gid', gid); 2437 a.data('pid', pid); 2438 if (parseInt(Utils.getUrlParam('gid')) == gid && parseInt(Utils.getUrlParam('pid')) == pid) { 2439 a.click(); 2440 } 2441 pid++; 2442 } 2443 }); 2444 }); 2445 }, 2446 init_gallery: function(el, items) 2447 { 2448 var $pswp = $('.pswp')[0]; 2449 var gallery; 2450 var slides = Photoswipe.get_slides(items); 2451 var options = { 2452 galleryUID: parseInt(el.data('gid')), 2453 index: parseInt(el.data('pid')) - 1, 2454 bgOpacity: 0.7, 2455 showHideOpacity: true, 2456 tapToToggleControls: false, 2457 tapToClose: true 2458 } 2459 gallery = new PhotoSwipe($pswp, PhotoSwipeUI_Default, slides, options); 2460 gallery.listen('gettingData', function(index, slide) { 2461 if (slide.doGetSlideDimensions) { 2462 Photoswipe.get_slide_dimension(slide, gallery); 2463 } 2464 }); 2465 gallery.listen('imageLoadComplete', function(index, slide){ 2466 if (slide.doGetSlideDimensions) 2467 Photoswipe.get_slide_dimension(slide, gallery); 2468 }); 2469 gallery.init(); 2470 }, 2471 get_slides: function(items) 2472 { 2473 var slides = []; 2474 for (var j in items) { 2475 var el = items[j], 2476 $href = el.attr('href'), 2477 $size = (el.data('size') || '0x0').split('x'), 2478 $width = $size[0], 2479 $height = $size[1]; 2480 var slide = { 2481 src : $href, 2482 w : $width, 2483 h : $height, 2484 title : el.attr('title') 2485 } 2486 slide.doGetSlideDimensions = (slide.w == 0 || slide.h == 0); 2487 slides.push(slide); 2488 } 2489 return slides; 2490 }, 2491 get_slide_dimension: function(slide, photoSwipe) 2492 { 2493 if (!slide.doGetSlideDimensions) 2494 return; 2495 var isPrefetch = (typeof photoSwipe == 'undefined'); 2496 var img = new Image(); 2497 $(img).on('error', function(evt){ 2498 if (!isPrefetch) 2499 slide.doGetSlideDimensions = false; 2500 }); 2501 $(img).on('load', function(evt){ 2502 slide.doGetSlideDimensions = false; 2503 slide.w = img.naturalWidth; 2504 slide.h = img.naturalHeight; 2505 if (!isPrefetch) { 2506 photoSwipe.invalidateCurrItems(); 2507 photoSwipe.updateSize(true); 2508 } 2509 }); 2510 img.src = slide.src; 2511 } 2512} 2513Events.register(Photoswipe.bind); 2514var IframePopup = { 2515 bind: function(elements) 2516 { 2517 $('.hs.htmlExpand', elements).click(IframePopup.show); 2518 $('.iframe-wrapper', elements).click(IframePopup.hide); 2519 }, 2520 show: function() { 2521 var wrapper = $('.iframe-wrapper').addClass('active'); 2522 wrapper.find('iframe,.iframe-inline').hide(); 2523 if ($(this).attr('href')) { 2524 wrapper.find('iframe').show().attr('src', $(this).attr('href')); 2525 } else { 2526 wrapper.find('.iframe-inline').show().append($('#' + $(this).attr('rel')).show()); 2527 } 2528 if ($(this).data('width')) { 2529 wrapper.find('.iframe-direct').css('maxWidth', $(this).data('width') + 'px'); 2530 } 2531 return false;
2532 }, 2533 hide: function() { 2534 var wrapper = $(this).removeClass('active'); 2535 wrapper.find('iframe').attr('src', ''); 2536 wrapper.find('.iframe-inline').html(''); 2537 wrapper.find('.iframe-direct').css('maxWidth', ''); 2538 return false; 2539 } 2540} 2541Events.register(IframePopup.bind); 2542var FormSearch = { 2543 bind: function(elements) 2544 { 2545 $('#searchForm').submit(function() { 2546 if ($(this).find('[name=title]').val()) { 2547 return true; 2548 } 2549 return false; 2550 }); 2551 } 2552} 2553Events.register(FormSearch.bind); 2554(function($) { 2555 $.webAccessibility = function(args) { 2556 params = Object.assign(defaultParams, args); 2557 var lang = params.langId === "si" || params.langId === "sl" ? translations.si : translations.en; 2558 var accessibilityButton ='<a id="accessibility-button" aria-label="' + lang.showOptions + '" href="#accessibility">' + 2559 '<svg width="31px" height="31px" viewBox="0 0 31 31" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2560 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2561 '<g id="accesibility-copy-6" fill="#FFFFFF" fill-rule="nonzero">' + 2562 '<path d="M15.5,0 C6.93356323,0 0,6.93238069 0,15.5 C0,24.0664368 6.93238069,31 15.5,31 C24.0664368,31 31,24.0676193 31,15.5 C31,6.93356323 24.0676193,0 15.5,0 Z M10.0708847,27.4045563 L15.5,21.975441 L20.9291153,27.4045563 C17.5025406,28.9693146 13.5012436,28.9709701 10.0708847,27.4045563 L10.0708847,27.4045563 Z M23.0974503,26.1479721 L16.7109375,19.7614593 L16.7109375,16.3727264 L23.0274429,14.2673035 C23.6620026,14.0558625 24.0049438,13.3699798 23.7932663,12.7356567 C23.5818253,12.1010971 22.8959427,11.7583923 22.2616196,11.9698333 L15.5,14.2235489 L8.73838045,11.9695968 C8.1038208,11.7581558 7.41817473,12.1010971 7.20673372,12.7356567 C6.99529265,13.3699798 7.33799741,14.0558625 7.97255705,14.2673035 L14.2890625,16.3727264 L14.2890625,19.7614593 L7.90254973,26.1479721 C4.55993652,23.7521134 2.421875,19.8842087 2.421875,15.5 C2.421875,8.2719803 8.27103426,2.421875 15.5,2.421875 C22.7280197,2.421875 28.578125,8.27127075 28.578125,15.5 C28.578125,19.8905945 26.4348602,23.7558975 23.0974503,26.1479721 Z M15.5,4.76309969 C13.5189819,4.76309969 11.9076309,6.37445068 11.9076309,8.35546875 C11.9076309,10.3364868 13.5192184,11.9478378 15.5,11.9478378 C17.4807816,11.9478378 19.0923691,10.3364868 19.0923691,8.35546875 C19.0923691,6.37445068 17.4810181,4.76309969 15.5,4.76309969 Z M15.5,9.52596281 C14.8545609,9.52596281 14.3295059,9.00090788 14.3295059,8.35546875 C14.3295059,7.71002962 14.8545609,7.18497469 15.5,7.18497469 C16.1454391,7.18497469 16.6704941,7.71002962 16.6704941,8.35546875 C16.6704941,9.00090788 16.1454391,9.52596281 15.5,9.52596281 Z" id="Shape"></path>' + 2563 '</g>' + 2564 '</g>' + 2565 '</svg>' + 2566 '<span>Ctrl+U</span>' + 2567 '</a>'; 2568 var accessibilityPanel = '<div id="accessibility-panel">' + 2569 '<div class="panel-wrapper">' + 2570 '<button class="panel-close">' + 2571 '<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2572 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2573 '<g id="ADA_left" transform="translate(-526.000000, -31.000000)" fill="#000000" fill-rule="nonzero">' + 2574 '<g id="icon_close" transform="translate(526.000000, 31.000000)">' + 2575 '<path d="M1.13068408,21.934996 C0.841746795,21.934996 0.552809513,21.8250951 0.333283218,21.6039162 C-0.10742191,21.1632111 -0.10742191,20.4487179 0.333283218,20.0080128 L20.0107672,0.330528846 C20.4514723,-0.110176282 21.1659655,-0.110176282 21.6066707,0.330528846 C22.0473758,0.771233974 22.0473758,1.48572713 21.6066707,1.92670775 L1.92946212,21.6039162 C1.70828322,21.8237179 1.41934594,21.934996 1.13068408,21.934996 L1.13068408,21.934996 Z" id="Path"></path>' + 2576 '<path d="M20.8095453,21.934996 C20.520608,21.934996 20.2319461,21.8250951 20.0121444,21.6039162 L0.333283218,1.92670775 C-0.10742191,1.48572713 -0.10742191,0.771233974 0.333283218,0.330528846 C0.773988346,-0.110176282 1.48848157,-0.110176282 1.92946212,0.330528846 L21.6066707,20.0080128 C22.0473758,20.4487179 22.0473758,21.1632111 21.6066707,21.6039162 C21.3854918,21.8237179 21.0968299,21.934996 20.8095453,21.934996 Z" id="Path"></path>' + 2577 '</g>' + 2578 '</g>' + 2579 '</g>' + 2580 '</svg>' + 2581 '</button>' + 2582 '<div id="accessibility-actions">' + 2583 '<div class="panel-header">' + 2584 '<svg width="33px" height="33px" viewBox="0 0 33 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2585 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2586 '<g id="ADA_left" transform="translate(-47.000000, -88.000000)" fill="#313638" fill-rule="nonzero">' + 2587 '<g id="icon_accesibility" transform="translate(47.000000, 88.000000)">' + 2588 '<path d="M16.5,0 C7.38088989,0 0,7.37963106 0,16.5 C0,25.6191101 7.37963106,33 16.5,33 C25.6191101,33 33,25.6203689 33,16.5 C33,7.38088989 25.6203689,0 16.5,0 Z M10.7206192,29.1725922 L16.5,23.3932114 L22.2793808,29.1725922 C18.6317368,30.8383026 14.3722915,30.840065 10.7206192,29.1725922 L10.7206192,29.1725922 Z M24.5876084,27.834938 L17.7890625,21.0363922 L17.7890625,17.4290313 L24.5130844,15.1877747 C25.1885834,14.9626923 25.5536499,14.2325592 25.3283157,13.557312 C25.1032334,12.881813 24.3731003,12.5169983 23.6978531,12.7420807 L16.5,15.1411972 L9.30214693,12.7418289
2588C8.62664795,12.5167465 7.89676665,12.881813 7.67168428,13.557312 C7.44660185,14.2325592 7.81141659,14.9626923 8.48691557,15.1877747 L15.2109375,17.4290313 L15.2109375,21.0363922 L8.41239165,27.834938 C4.85412598,25.2845078 2.578125,21.1670608 2.578125,16.5 C2.578125,8.80565645 8.80464937,2.578125 16.5,2.578125 C24.1943436,2.578125 30.421875,8.80490112 30.421875,16.5 C30.421875,21.1738586 28.1403351,25.2885361 24.5876084,27.834938 Z M16.5,5.07039644 C14.3911743,5.07039644 12.6758652,6.78570557 12.6758652,8.89453125 C12.6758652,11.0033569 14.3914261,12.7186661 16.5,12.7186661 C18.6085739,12.7186661 20.3241348,11.0033569 20.3241348,8.89453125 C20.3241348,6.78570557 18.6088257,5.07039644 16.5,5.07039644 Z M16.5,10.1405411 C15.8129196,10.1405411 15.2539902,9.58161162 15.2539902,8.89453125 C15.2539902,8.20745088 15.8129196,7.64852144 16.5,7.64852144 C17.1870804,7.64852144 17.7460098,8.20745088 17.7460098,8.89453125 C17.7460098,9.58161162 17.1870804,10.1405411 16.5,10.1405411 Z" id="Shape"></path>' + 2589 '</g>' + 2590 '</g>' + 2591 '</g>' + 2592 '</svg>' + 2593 '<div class="panel-title">' + 2594 '<div>' + lang.title + '</div>' + 2595 '<div>CTRL+U</div>' + 2596 '</div>' + 2597 '</div>' + 2598 '<div class="panel-actions">' + 2599 '<div class="action">' + 2600 '<button id="accessibility-keyboard" class="accessibility-action" data-action="keyboard">' + 2601 '<svg width="59px" height="33px" viewBox="0 0 59 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2602 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2603 '<g id="ADA_left" transform="translate(-95.000000, -211.000000)" fill="#313638">' + 2604 '<g id="icon_keyboard" transform="translate(95.000000, 211.000000)">' + 2605 '<path d="M52.0384615,0 L6.34615385,0 C2.84126986,0 0,2.84126986 0,6.34615385 L0,26.6538462 C0,30.1587301 2.84126986,33 6.34615385,33 L52.0384615,33 C55.5433455,33 58.3846154,30.1587301 58.3846154,26.6538462 L58.3846154,6.34615385 C58.3846154,2.84126986 55.5433455,0 52.0384615,0 Z M6.34615385,2.53846154 L52.0384615,2.53846154 C54.1413919,2.53846154 55.8461538,4.24322345 55.8461538,6.34615385 L55.8461538,26.6538462 C55.8461538,28.7567765 54.1413919,30.4615385 52.0384615,30.4615385 L6.34615385,30.4615385 C4.24322345,30.4615385 2.53846154,28.7567765 2.53846154,26.6538462 L2.53846154,6.34615385 C2.53846154,4.24322345 4.24322345,2.53846154 6.34615385,2.53846154 Z" id="Rectangle" fill-rule="nonzero"></path>' + 2606 '<rect id="Rectangle" x="10.1538462" y="8.88461538" width="3.80769231" height="3.80769231" rx="1"></rect>' + 2607 '<rect id="Rectangle-Copy-27" x="10.1538462" y="20.3076923" width="3.80769231" height="3.80769231" rx="1"></rect>' + 2608 '<rect id="Rectangle-Copy-10" x="21.5769231" y="8.88461538" width="3.80769231" height="3.80769231" rx="1"></rect>' + 2609 '<rect id="Rectangle-Copy-28" x="21.5769231" y="20.3076923" width="16.5" height="3.80769231" rx="1"></rect>' + 2610 '<rect id="Rectangle-Copy-25" x="33" y="8.88461538" width="3.80769231" height="3.80769231" rx="1"></rect>' + 2611 '<rect id="Rectangle-Copy-26" x="44.4230769" y="8.88461538" width="3.80769231" height="3.80769231" rx="1"></rect>' + 2612 '<rect id="Rectangle-Copy-30" x="44.4230769" y="20.3076923" width="3.80769231" height="3.80769231" rx="1"></rect>' + 2613 '</g>' + 2614 '</g>' + 2615 '</g>' + 2616 '</svg>' + 2617 '<div class="action-title">' + lang.keyboard + '</div>' + 2618 '</button>' + 2619 '</div>' + 2620 '<div class="action">' + 2621 '<button id="accessibility-wcursor" class="accessibility-action" data-action="wcursor">' + 2622 '<svg width="24px" height="37px" viewBox="0 0 24 37" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2623 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2624 '<g id="ADA_left" transform="translate(-274.000000, -207.000000)" fill="#313638" fill-rule="nonzero">' + 2625 '<g id="icon_cursorW" transform="translate(274.000000, 207.000000)">' + 2626 '<path d="M13.4854067,37 C13.3344648,37 13.1846885,36.9723359 13.0416142,36.9167251 C12.7455582,36.802681 12.5101121,36.5776978 12.3859784,36.292305 L7.92037076,26.0418777 L2.61321825,30.5867081 C2.39030212,30.8085861 1.99080141,30.9675141 1.57702243,30.9675141 C0.708086605,30.9675141 0,30.2798614 0,29.4335632 L0,1.53395077 C0,0.687652588 0.708086605,0 1.57702243,0 C1.94476118,0 2.30113563,0.124771082 2.60360227,0.362175006 L23.4204732,20.8110886 C23.7453771,21.1978226 23.8709677,21.5385437 23.8709677,21.8930969 C23.8709677,22.7379837 23.1628811,23.4270478 22.2939453,23.4270478 L15.2232784,23.4270478 L19.5265798,33.3138886 C19.7809665,33.8982239 19.5026855,34.5703506 18.9027061,34.8232803 L13.9612525,36.9043045 C13.8100192,36.9675369 13.647713,37 13.4854067,37 L13.4854067,37 Z M8.37552768,22.9539337 C8.4646941,22.9539337 8.55211219,22.9632492 8.64127869,22.9832916 C9.01513668,23.0662842 9.3272193,23.3178024 9.47524727,23.6616287 L14.1171481,34.3174209 L16.8687783,33.1580658 L12.3253685,22.719635 C12.169473,22.3633881 12.2091025,21.9532242 12.4302703,21.631134 C12.6517294,21.3090439 13.0255875,21.1145478 13.4250882,21.1145478 L20.3873566,21.1145478 L2.38709677,3.43318173 L2.38709677,27.6974945 L7.58468528,23.2438431 C7.80410475,23.0555572 8.0873393,22.9539337 8.37552768,22.9539337 Z M1.10114944,28.8291855 C1.05496373,28.8677827 1.01359739,28.9090417 0.973837613,28.9525188 L1.10114944,28.8291855 Z M21.6540507,22.3643629 L21.6814028,22.3643629 L21.6540507,22.3643629 Z" id="Shape"></path>' + 2627 '</g>' + 2628 '</g>' + 2629 '</g>' + 2630 '</svg>' + 2631 '<div class="action-title">' + lang.wcursor + '</div>' + 2632 '</button>' + 2633 '</div>' + 2634 '<div class="action">' + 2635 '<button id="accessibility-bcursor" class="accessibility-action" data-action="bcurs
2635or">' + 2636 '<img alt="bcursor" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzN3B4IiB2aWV3Qm94PSIwIDAgMjQgMzciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl9jdXJzb3JCPC90aXRsZT4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBREFfbGVmdCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQzMy4wMDAwMDAsIC0yMDcuMDAwMDAwKSIgZmlsbD0iIzMxMzYzOCI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX2N1cnNvckIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQzMy4wMDAwMDAsIDIwNy4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJjdXJzb3IiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEzLjQ4NTQwNjcsMzcgQzEzLjMzNDQ2NDgsMzcgMTMuMTg0Njg4NSwzNi45NzIzMzU5IDEzLjA0MTYxNDIsMzYuOTE2NzI1MSBDMTIuNzQ1NTU4MiwzNi44MDI2ODEgMTIuNTEwMTEyMSwzNi41Nzc2OTc4IDEyLjM4NTk3ODQsMzYuMjkyMzA1IEw3LjkyMDM3MDc2LDI2LjA0MTg3NzcgTDIuNjEzMjE4MjUsMzAuNTg2NzA4MSBDMi4zOTAzMDIxMiwzMC44MDg1ODYxIDEuOTkwODAxNDEsMzAuOTY3NTE0MSAxLjU3NzAyMjQzLDMwLjk2NzUxNDEgQzAuNzA4MDg2NjA1LDMwLjk2NzUxNDEgMCwzMC4yNzk4NjE0IDAsMjkuNDMzNTYzMiBMMCwxLjUzMzk1MDc3IEMwLDAuNjg3NjUyNTg4IDAuNzA4MDg2NjA1LDAgMS41NzcwMjI0MywwIEMxLjk0NDc2MTE4LDAgMi4zMDExMzU2MywwLjEyNDc3MTA4MiAyLjYwMzYwMjI3LDAuMzYyMTc1MDA2IEwyMy40MjA0NzMyLDIwLjgxMTA4ODYgQzIzLjc0NTM3NzEsMjEuMTk3ODIyNiAyMy44NzA5Njc3LDIxLjUzODU0MzcgMjMuODcwOTY3NywyMS44OTMwOTY5IEMyMy44NzA5Njc3LDIyLjczNzk4MzcgMjMuMTYyODgxMSwyMy40MjcwNDc4IDIyLjI5Mzk0NTMsMjMuNDI3MDQ3OCBMMTUuMjIzMjc4NCwyMy40MjcwNDc4IEwxOS41MjY1Nzk4LDMzLjMxMzg4ODYgQzE5Ljc4MDk2NjUsMzMuODk4MjIzOSAxOS41MDI2ODU1LDM0LjU3MDM1MDYgMTguOTAyNzA2MSwzNC44MjMyODAzIEwxMy45NjEyNTI1LDM2LjkwNDMwNDUgQzEzLjgxMDAxOTIsMzYuOTY3NTM2OSAxMy42NDc3MTMsMzcgMTMuNDg1NDA2NywzNyBMMTMuNDg1NDA2NywzNyBaIE04LjM3NTUyNzY4LDIyLjk1MzkzMzcgQzguNDY0Njk0MSwyMi45NTM5MzM3IDguNTUyMTEyMTksMjIuOTYzMjQ5MiA4LjY0MTI3ODY5LDIyLjk4MzI5MTYgQzkuMDE1MTM2NjgsMjMuMDY2Mjg0MiA5LjMyNzIxOTMsMjMuMzE3ODAyNCA5LjQ3NTI0NzI3LDIzLjY2MTYyODcgTDE0LjExNzE0ODEsMzQuMzE3NDIwOSBMMTYuODY4Nzc4MywzMy4xNTgwNjU4IEwxMi4zMjUzNjg1LDIyLjcxOTYzNSBDMTIuMTY5NDczLDIyLjM2MzM4ODEgMTIuMjA5MTAyNSwyMS45NTMyMjQyIDEyLjQzMDI3MDMsMjEuNjMxMTM0IEMxMi42NTE3Mjk0LDIxLjMwOTA0MzkgMTMuMDI1NTg3NSwyMS4xMTQ1NDc4IDEzLjQyNTA4ODIsMjEuMTE0NTQ3OCBMMjAuMzg3MzU2NiwyMS4xMTQ1NDc4IEwyLjM4NzA5Njc3LDMuNDMzMTgxNzMgTDIuMzg3MDk2NzcsMjcuNjk3NDk0NSBMNy41ODQ2ODUyOCwyMy4yNDM4NDMxIEM3LjgwNDEwNDc1LDIzLjA1NTU1NzIgOC4wODczMzkzLDIyLjk1MzkzMzcgOC4zNzU1Mjc2OCwyMi45NTM5MzM3IFogTTEuMTAxMTQ5NDQsMjguODI5MTg1NSBDMS4wNTQ5NjM3MywyOC44Njc3ODI3IDEuMDEzNTk3MzksMjguOTA5MDQxNyAwLjk3MzgzNzYxMywyOC45NTI1MTg4IEwxLjEwMTE0OTQ0LDI4LjgyOTE4NTUgWiBNMjEuNjU0MDUwNywyMi4zNjQzNjI5IEwyMS42ODE0MDI4LDIyLjM2NDM2MjkgTDIxLjY1NDA1MDcsMjIuMzY0MzYyOSBaIiBpZD0iU2hhcGUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoLTQiIHN0cm9rZT0iIzMxMzYzOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjEuMTAxMTQ5NDQgMS43MTg1MTMyMSAxLjEwMTE0OTQ0IDI4Ljk1MjUxODggOC4yNDE0OTMxNCAyNC40NTY0NDU5IDEzLjIyOTE2ODcgMzUuNjc3NTEzNCAxOC41MTA4MzgxIDMzLjcxOTY1ODQgMTMuMjI5MTY4NyAyMi40MjYwMjk2IDIyLjczNTI3MTkgMjIuMzAyNjk2MiI+PC9wb2x5Z29uPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=" />' + 2637 '<div class="action-title">' + lang.bcursor + '</div>' + 2638 '</button>' + 2639 '</div>' + 2640 '<div class="action">' + 2641 '<button id="accessibility-font" class="accessibility-action" data-action="font">' + 2642 '<svg width="59px" height="23px" viewBox="0 0 59 23" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2643 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2644 '<g id="ADA_left" transform="translate(-97.000000, -379.000000)" fill="#313638" fill-rule="nonzero">' + 2645 '<path d="M100.634877,401.561308 L102.702997,396.673025 L112.918256,396.673025 L114.986376,401.561308 L118.621253,401.561308 L109.377384,380.566757 L106.243869,380.566757 L97,401.561308 L100.634877,401.561308 Z M111.60218,393.60218 L104.019074,393.60218 L107.810627,384.671662 L111.60218,393.60218 Z M130.152589,402 C134.226158,402 137.861035,398.709809 137.861035,393.790191 C137.861035,388.901907 134.226158,385.580381 130.152589,385.580381 C127.802452,385.580381 125.859673,386.395095 124.512262,387.805177 L124.512262,379 L121.253406,379 L121.253406,401.561308 L124.512262,401.561308 L124.512262,399.775204 C125.859673,401.185286 127.802452,402 130.152589,402 Z M129.61989
26451,399.117166 C127.050409,399.117166 124.512262,397.080381 124.512262,393.790191 C124.512262,390.531335 127.050409,388.463215 129.619891,388.463215 C132.47139,388.463215 134.696185,390.531335 134.696185,393.790191 C134.696185,397.080381 132.47139,399.117166 129.619891,399.117166 Z M148.326975,402 C151.930518,402 155.064033,399.86921 155.910082,396.516349 L152.901907,395.73297 C152.149864,397.989101 150.395095,398.991826 148.326975,398.991826 C145.444142,398.991826 143.313351,396.955041 143.313351,393.790191 C143.313351,390.719346 145.444142,388.588556 148.326975,388.588556 C150.395095,388.588556 152.181199,389.653951 152.776567,391.941417 L155.910082,391.032698 C154.938692,387.711172 151.836512,385.580381 148.326975,385.580381 C143.877384,385.580381 140.117166,388.933243 140.117166,393.790191 C140.117166,398.709809 143.877384,402 148.326975,402 Z" id="icon_abc"></path>' + 2646 '</g>' + 2647 '</g>' + 2648 '</svg>' + 2649 '<div class="action-title">' + lang.font + '</div>' + 2650 '</button>' + 2651 '</div>' + 2652 '<div class="action">' + 2653 '<button id="accessibility-bigger" class="accessibility-action" data-action="bigger">' + 2654 '<svg width="33px" height="28px" viewBox="0 0 33 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2655 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2656 '<g id="ADA_left" transform="translate(-269.000000, -374.000000)" fill="#313638" fill-rule="nonzero">' + 2657 '<path d="M276.961194,402 L276.961194,391.008955 L281.495522,391.008955 L281.495522,388 L269,388 L269,391.008955 L273.534328,391.008955 L273.534328,402 L276.961194,402 Z M291.985075,402 L291.985075,380.01791 L301.053731,380.01791 L301.053731,374 L276.062687,374 L276.062687,380.01791 L285.131343,380.01791 L285.131343,402 L291.985075,402 Z" id="icon_bigger-text"></path>' + 2658 '</g>' + 2659 '</g>' + 2660 '</svg>' + 2661 '<div class="action-title">' + lang.bigger + '</div>' + 2662 '</button>' + 2663 '</div>' + 2664 '<div class="action">' + 2665 '<button id="accessibility-bold" class="accessibility-action" data-action="bold">' + 2666 '<svg width="24px" height="28px" viewBox="0 0 24 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2667 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2668 '<g id="ADA_left" transform="translate(-433.000000, -374.000000)" fill="#313638" fill-rule="nonzero">' + 2669 '<path d="M447.543284,402 C453.644776,402 456.779104,398.78209 456.779104,394.143284 C456.779104,389.922388 453.979104,387.916418 451.38806,387.707463 L451.38806,387.540299 C453.268657,387.331343 455.985075,385.492537 455.985075,381.647761 C455.985075,377.050746 452.641791,374 447.501493,374 L433,374 L433,402 L447.543284,402 Z M445.913433,385.576119 L439.895522,385.576119 L439.895522,379.558209 L446.164179,379.558209 C447.919403,379.558209 449.298507,380.686567 449.298507,382.441791 C449.298507,384.322388 447.961194,385.576119 445.913433,385.576119 Z M446.331343,396.441791 L439.895522,396.441791 L439.895522,390.298507 L446.456716,390.298507 C448.420896,390.298507 449.758209,391.468657 449.758209,393.307463 C449.758209,395.229851 448.546269,396.441791 446.331343,396.441791 Z" id="icon_bold"></path>' + 2670 '</g>' + 2671 '</g>' + 2672 '</svg>' + 2673 '<div class="action-title">' + lang.bold + '</div>' + 2674 '</button>' + 2675 '</div>' + 2676 '<div class="action">' + 2677 '<button id="accessibility-contrast" class="accessibility-action" data-action="contrast">' + 2678 '<svg width="40px" height="41px" viewBox="0 0 40 41" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2679 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2680 '<g id="ADA_left" transform="translate(-107.000000, -521.000000)" fill="#313638">' + 2681 '<g id="icon_contrast" transform="translate(107.000000, 521.000000)">' + 2682 '<path d="M20.125,0 C9.35544738,0 0.625,8.954305 0.625,20 C0.625,31.045695 9.35544738,40 20.125,40 C30.8945526,40 39.625,31.045695 39.625,20 C39.625,8.954305 30.8945526,0 20.125,0 Z M20.125,2.73972603 C29.4192714,2.73972603 36.9537671,10.4674139 36.9537671,20 C36.9537671,29.5325861 29.4192714,37.260274 20.125,37.260274 C10.8307286,37.260274 3.29623288,29.5325861 3.29623288,20 C3.29623288,10.4674139 10.8307286,2.73972603 20.125,2.73972603 Z" id="Oval" fill-rule="nonzero"></path>' + 2683 '<polygon id="Line-2" fill-rule="nonzero" points="21.625 1 21.625 40 19.625 40 19.625 1"></polygon>' + 2684 '<path d="M25.7518591,2.30464355 C23.6304484,1.26810969 21.588162,0.849217205 19.625,1.04796608 L19.625,39 C28.4534609,36.1948354 33.4166492,33.6280312 34.5145649,31.2995873 C36.1614384,27.8069216 38.737774,20.3413455 37.1020019,15.4465085 C35.4662299,10.5516716 28.9339752,3.85944433 25.7518591,2.30464355 Z" id="Path-2"></path>' + 2685 '</g>' + 2686 '</g>' + 2687 '</g>' + 2688 '</svg>' + 2689 '<div class="action-title">' + lang.contrast + '</div>' + 2690 '</button>' + 2691 '</div>' + 2692 '<div class="action">' + 2693 '<button id="accessibility-grayscale" class="accessibility-action" data-action="grayscale">' + 2694 '<svg width="40px" height="41px" viewBox="0 0 40 41" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2695 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2696 '<g id="ADA_left" transform="translate(-266.000000, -521.000000)">' + 2697 '<g id="icon_grayscale" transform="translate(266.000000, 521.000000)">' + 2698 '<path d="M1.773631,17.5711654 L22.4885739,38.8463236 C21.7144567,38.9477277 20.9253935,39 20.1244424,39 L20.328,38.998 L1.62500036,19.7891612 C1.63294661,19.0385853 1.68327057,18.2984519 1.773631,17.5711654 Z M1.72423453,21.9909076 L18.1867075,38.8970309 C17.219858,38.7936833 16.2751424,38.6138614 15.3583962,38.3635584 L2.24341518,24.89401 C1.99985681,23.9530069 1.8248545,22.9833116 1.72423453,21.9909076 Z M2.58638467,13.9352279 L26.0295357,38.0116054 C25.4411805,38.2149738 24.8395984,38.3887889 24.2264627,38.5313324 L2.08048586,15.7860934 C2.21925527,15.1567107 2.38844519,14.5391835 2.58638467,13.9352279 Z M3.91667762,10.8311812 L29.0514457,36.6457642 C28.5496237,36.9302199 28.0335652,37.1914369 27.504646,37.4280025 L3.15483537,12.4199108 C3.3852322,11.8766511 3.63963839,11.3466034 3.91667762,10.8311812 Z M3.44368577,28.2275706 L12.1124158,37.
2698130711 C8.33085447,35.2618944 5.26321739,32.1113136 3.44368577,28.2275706 Z M5.66098317,8.151444 L31.6612661,34.8541422 C31.2312848,35.2068344 30.7856517,35.5402462 30.3256083,35.8531026 L4.6882693,9.52312032 C4.99290677,9.05067066 5.31755855,8.59302022 5.66098317,8.151444 Z M7.77526682,5.85222838 L33.8997882,32.6831629 C33.5362382,33.099347 33.1550665,33.4989628 32.7574785,33.8807724 L6.60868505,7.02576885 C6.98059732,6.61730378 7.36986015,6.22571052 7.77526682,5.85222838 Z M10.2540811,3.92709202 L35.7750992,30.1364186 C35.4790979,30.617444 35.1626513,31.0838778 34.8270133,31.5344323 L8.89301758,4.90066807 C9.33166531,4.55600957 9.78577096,4.23105515 10.2540811,3.92709202 Z M13.1258902,2.40652659 L37.2556054,27.1870853 C37.0354471,27.7399976 36.7906474,28.2798772 36.5226084,28.805284 L11.5507404,3.15908211 C12.0621741,2.8838993 12.5876909,2.63256796 13.1258902,2.40652659 Z M16.4700298,1.37060389 L38.2642119,23.7526882 C38.1390026,24.3945709 37.9822992,25.0247678 37.7958273,25.6415068 L14.6314503,1.85148707 C15.2317892,1.66004964 15.8452237,1.49916512 16.4700298,1.37060389 Z M20.1244424,1 C20.2388583,1 20.3530316,1.00106668 20.4669535,1.00319087 L38.6219155,19.649517 C38.6239689,19.7660913 38.625,19.882922 38.625,20 C38.625,20.650786 38.5931412,21.2939301 38.5309379,21.927877 L18.2475963,1.09656481 C18.8647645,1.03270639 19.4908843,1 20.1244424,1 Z M22.6828733,1.18020304 C23.7033503,1.32517787 24.6972359,1.55563221 25.657456,1.86430072 L37.7833682,14.3174511 C38.0840589,15.3040076 38.3085272,16.3251684 38.4496897,17.3736587 Z M29.2796536,3.48576936 C32.1619238,5.17472297 34.559231,7.63659317 36.2039714,10.5965519 Z" id="Combined-Shape" fill="#D8D8D8"></path>' + 2699 '<path d="M1.773631,17.5711654 L22.4885739,38.8463236 C21.7144567,38.9477277 20.9253935,39 20.1244424,39 L20.328,38.998 L1.62500036,19.7891612 C1.63294661,19.0385853 1.68327057,18.2984519 1.773631,17.5711654 Z M1.72423453,21.9909076 L18.1867075,38.8970309 C17.219858,38.7936833 16.2751424,38.6138614 15.3583962,38.3635584 L2.24341518,24.89401 C1.99985681,23.9530069 1.8248545,22.9833116 1.72423453,21.9909076 Z M2.58638467,13.9352279 L26.0295357,38.0116054 C25.4411805,38.2149738 24.8395984,38.3887889 24.2264627,38.5313324 L2.08048586,15.7860934 C2.21925527,15.1567107 2.38844519,14.5391835 2.58638467,13.9352279 Z M3.91667762,10.8311812 L29.0514457,36.6457642 C28.5496237,36.9302199 28.0335652,37.1914369 27.504646,37.4280025 L3.15483537,12.4199108 C3.3852322,11.8766511 3.63963839,11.3466034 3.91667762,10.8311812 Z M3.44368577,28.2275706 L12.1124158,37.130711 C8.33085447,35.2618944 5.26321739,32.1113136 3.44368577,28.2275706 Z M5.66098317,8.151444 L31.6612661,34.8541422 C31.2312848,35.2068344 30.7856517,35.5402462 30.3256083,35.8531026 L4.6882693,9.52312032 C4.99290677,9.05067066 5.31755855,8.59302022 5.66098317,8.151444 Z M7.77526682,5.85222838 L33.8997882,32.6831629 C33.5362382,33.099347 33.1550665,33.4989628 32.7574785,33.8807724 L6.60868505,7.02576885 C6.98059732,6.61730378 7.36986015,6.22571052 7.77526682,5.85222838 Z M10.2540811,3.92709202 L35.7750992,30.1364186 C35.4790979,30.617444 35.1626513,31.0838778 34.8270133,31.5344323 L8.89301758,4.90066807 C9.33166531,4.55600957 9.78577096,4.23105515 10.2540811,3.92709202 Z M13.1258902,2.40652659 L37.2556054,27.1870853 C37.0354471,27.7399976 36.7906474,28.2798772 36.5226084,28.805284 L11.5507404,3.15908211 C12.0621741,2.8838993 12.5876909,2.63256796 13.1258902,2.40652659 Z M16.4700298,1.37060389 L38.2642119,23.7526882 C38.1390026,24.3945709 37.9822992,25.0247678 37.7958273,25.6415068 L14.6314503,1.85148707 C15.2317892,1.66004964 15.8452237,1.49916512 16.4700298,1.37060389 Z M20.1244424,1 C20.2388583,1 20.3530316,1.00106668 20.4669535,1.00319087 L38.6219155,19.649517 C38.6239689,19.7660913 38.625,19.882922 38.625,20 C38.625,20.650786 38.5931412,21.2939301 38.5309379,21.927877 L18.2475963,1.09656481 C18.8647645,1.03270639 19.4908843,1 20.1244424,1 Z M22.6828733,1.18020304 C23.7033503,1.32517787 24.6972359,1.55563221 25.657456,1.86430072 L37.7833682,14.3174511 C38.0840589,15.3040076 38.3085272,16.3251684 38.4496897,17.3736587 Z M29.2796536,3.48576936 C32.1619238,5.17472297 34.559231,7.63659317 36.2039714,10.5965519 Z" id="Combined-Shape" fill="#313638"></path>' + 2700 '<path d="M38.5255644,22.0482026 C38.4247115,23.0436975 38.2492826,24.0164036 38.0051216,24.9603138 L38.0051216,24.9603138 L24.867869,38.4648531 C23.9494473,38.7159064 23.0030007,38.8962837 22.0343762,38.9999749 L22.0343762,38.9999749 Z M38.4760996,17.6162311 C38.5666238,18.3454956 38.617039,19.0876418 38.6249996,19.8402589 L38.6249996,19.8402589 L20.09,38.892 L20.09,36.515 Z M14.3972801,37.8836332 C14.9452841,38.1056946 15.5107733,38.3171022
270016.0937476,38.5178563 L15.9825695,38.6333999 C15.3681808,38.4904359 14.765372,38.3161006 14.1758204,38.1121185 L14.1758204,38.1121185 Z M11.4095,36.4732418 C11.9071376,36.7461041 12.4235485,37.007528 12.9587325,37.2575135 L12.6974452,37.5266223 C12.1676159,37.2893969 11.6506699,37.0274568 11.1479853,36.7422186 L11.1479853,36.7422186 Z M36.8029437,28.3017748 C34.97997,32.1962952 31.9064845,35.3555633 28.1177337,37.2293854 L28.1177337,37.2293854 Z M8.72170324,34.7534129 C9.16321286,35.0832826 9.62501167,35.4007902 10.1070997,35.7059356 L9.87236845,35.9478867 C9.41149115,35.6341795 8.96505027,35.2998609 8.53428962,34.9462095 L8.53428962,34.9462095 Z M37.6620669,13.9709987 C37.8603546,14.5766309 38.0298378,15.1958723 38.1688421,15.8270017 L38.1688421,15.8270017 L20.09,34.41 L20.09,32.032 Z M6.37336109,32.6858254 C6.75114491,33.0797813 7.15096544,33.4603103 7.57282268,33.8274124 L7.43509468,33.9692358 C7.03691291,33.5864537 6.65516994,33.1858269 6.29107248,32.7685959 L6.29107248,32.7685959 Z M36.3292494,10.8580682 C36.6066956,11.3747258 36.8614824,11.906039 37.0922324,12.4505917 L37.0922324,12.4505917 L20.09,29.927 L20.09,27.55 Z M34.5819252,8.17118088 C34.9258767,8.61385252 35.2510307,9.07263364 35.5561444,9.54624673 L35.5561444,9.54624673 L20.09,25.444 L20.09,23.067 Z M32.4635851,5.86542415 C32.8697266,6.23992199 33.259695,6.6325802 33.6322814,7.0421561 L33.6322814,7.0421561 L20.09,20.961 L2
27000.09,18.584 Z M29.9806017,3.93526289 C30.4496462,4.23999216 30.9044666,4.56575983 31.3438083,4.91127606 L31.3438083,4.91127606 L20.09,16.478 L20.09,14.102 Z M27.1029631,2.41022559 C27.6422918,2.63693496 28.1689082,2.88901736 28.6814081,3.16502921 L28.6814081,3.16502921 L20.09,11.996 L20.09,9.618 Z M10.4914015,3.75194719 L4.62316159,9.55361492 C6.13621188,7.20261622 8.14291403,5.21669112 10.4914015,3.75194719 Z M23.7537979,1.37176338 C24.3801781,1.50079243 24.9951489,1.66227864 25.5969796,1.85444298 L25.5969796,1.85444298 L20.09,7.514 L20.09,5.136 Z M20.0920252,1 C20.7264911,1 21.3535111,1.03277049 21.9715705,1.09675466 L21.9715705,1.09675466 L20.09,3.03 L20.0909079,1 L19.676,1.079 L19.7509014,1.00316218 C19.8076324,1.00210963 19.8644255,1.00131908 19.9212799,1.00079167 Z M17.5297718,1.18057722 L17.16,1.559 L14.317,2.102 L14.5479804,1.86697359 C15.3500861,1.60884681 16.1756434,1.40524817 17.0205435,1.26040132 L17.5297718,1.18057722 Z" id="Combined-Shape" fill="#313638"></path>' + 2701 '<path d="M20.125,0 C9.35544738,0 0.625,8.954305 0.625,20 C0.625,31.045695 9.35544738,40 20.125,40 C30.8945526,40 39.625,31.045695 39.625,20 C39.625,8.954305 30.8945526,0 20.125,0 Z M20.125,2.73972603 C29.4192714,2.73972603 36.9537671,10.4674139 36.9537671,20 C36.9537671,29.5325861 29.4192714,37.260274 20.125,37.260274 C10.8307286,37.260274 3.29623288,29.5325861 3.29623288,20 C3.29623288,10.4674139 10.8307286,2.73972603 20.125,2.73972603 Z" id="Oval-Copy-3" fill="#313638" fill-rule="nonzero"></path>' + 2702 '<polygon id="Line-2" fill="#313638" fill-rule="nonzero" points="21.625 1 21.625 40 19.625 40 19.625 1"></polygon>' + 2703 '</g>' + 2704 '</g>' + 2705 '</g>' + 2706 '</svg>' + 2707 '<div class="action-title">' + lang.grayscale + '</div>' + 2708 '</button>' + 2709 '</div>' + 2710 '<div class="action">' + 2711 '<button id="accessibility-inverted" class="accessibility-action" data-action="inverted">' + 2712 '<img alt="inverted" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNTVweCIgaGVpZ2h0PSI1NXB4IiB2aWV3Qm94PSIwIDAgNTUgNTUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl9iL3c8L3RpdGxlPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkFEQV9sZWZ0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDE3LjAwMDAwMCwgLTUwNi4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Imljb25fYi93IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MTguMDAwMDAwLCA1MDcuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBzdHJva2U9IiMzMTM2MzgiIHN0cm9rZS13aWR0aD0iMiIgeD0iMCIgeT0iMCIgd2lkdGg9IjUzIiBoZWlnaHQ9IjUzIj48L3JlY3Q+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUmVjdGFuZ2xlIiBmaWxsPSIjMzEzNjM4IiBwb2ludHM9IjAgMCAyNy42NTAwNjkzIDAgMjcuNjUwMDY5MyA1MyAwIDUzIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLUNvcHktNCIgc3Ryb2tlPSIjMzEzNjM4IiBmaWxsPSIjRkZGRkZGIiBjeD0iMjcuMDYzODI5OCIgY3k9IjI1LjkzNjE3MDIiIHI9IjE5LjE3MDIxMjgiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMzLjkwMDkwMjMsOC4wNTQxNjUxMSBDMzEuNzI4ODA2Niw2Ljk5MTYyNDQ5IDI5LjY0NTE5NTYsNi41NjIyMjE5MyAyNy42NTAwNjkzLDYuNzY1OTU3NDUgTDI3LjY1MDA2OTMsNDUuMTA2MzgzIEMzNi4zNDE5MTI0LDQzLjI3MTA0MjcgNDEuNTk1MDQ0OSw0MC4zNDMzMjMyIDQzLjQwOTQ2NjksMzYuMzIzMjI0NCBDNDYuMTMxMDk5OSwzMC4yOTMwNzYyIDQ3LjE1NzIwODksMjkuNzQ0MTk0MyA0NS41MjIyMjQxLDIxLjUyNTc2MTIgQzQzLjg4NzIzOTMsMTMuMzA3MzI4MSAzNy4xNTkwNDU5LDkuNjQ3OTc2MDUgMzMuOTAwOTAyMyw4LjA1NDE2NTExIFoiIGlkPSJQYXRoLTItQ29weS0yIiBmaWxsPSIjMzEzNjM4Ij48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==" />' + 2713 '<div class="action-title">' + lang.inverted + '</div>' + 2714 '</button>' + 2715 '</div>' + 2716 '<div class="action">' + 2717 '<button id="accessibility-titles" class="accessibility-action" data-action="titles">' + 2718 '<svg width="32px" height="35px" viewBox="0 0 32 35" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2719 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2720 '<g id="ADA_left" transform="translate(-111.000000, -686.000000)" fill="#313638" fill-rule="nonzero">' + 2721 '<g id="icon_bigger-titles" transform="translate(111.000000, 686.000000)">' + 2722 '<polygon id="H" opacity="0.2" points="8.64157119 34 8.64157119 20.5522388 23.410802 20.5522388 23.410802 34 32 34 32 0 23.410802 0 23.410802 13.2447761 8.64157119 13.2447761 8.64157119 0 0 0 0 34"></polygon>' + 2723 '<polygon id="H" points="4.95 34.1 4.95 26.15 13.41 26.15 13.41 34.1 18.33 34.1 18.33 14 13.41 14 13.41 21.83 4.95 21.83 4.95 14 -2.84217094e-14 14 -2.84217094e-14 34.1"></polygon>' + 2724 '</g>' + 2725 '</g>' + 2726 '</g>' + 2727 '</svg>' + 2728 '<div class="action-title">' + lang.titles + '</div>' + 2729 '</button>' + 2730 '</div>' + 2731 '<div class="action">' + 2732 '<button id="accessibility-links" class="accessibility-action" data-action="links">' + 2733 '<svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + 2734 '<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">' + 2735 '<g id="ADA_left" transform="translate(-271.000000, -691.000000)" fill="#313638" fill-rule="nonzero">' + 2736 '<g id="icon_links" transform="translate(271.000000, 691.000000)">' + 2737 '<path d="M12.4131579,22.8215205 L8.88502924,26.3496491 C7.42233918,27.8123392 5.05362573,27.8123392 3.59216374,26.3499415 C2.13040936,24.8881871 2.13040936,22.5192398 3.59187135,21.0577778 L10.6493567,14.0002924 C12.1108187,12.5387719 14.4797661,12.5387719 15.9412281,14.0002924 C16.4284211,14.4874854 17.2183626,14.4874854 17.7055556,14.0002924 C18.1927485,13.5130994 18.1927485,12.7231579 17.7055556,12.2359649 C15.2696491,9.80005848 11.3209357,9.80005848 8.88502924,12.2359649 L1.82760234,19.2934503 C-0.608304094,21.7293567 -0.608304094,25.6780702 1.82760234,28.1139766 C4.26321637,30.5511696 8.21222222,30.5511696 10.6494152,28.1139766 L14.1775439,24.585848 C14.6647368,24.098655 14.6647368,23.3087135 14.1775439,22.8215205 C13.6903509,22.3343275 12.9003509,22.3343275 12.4131579,22.8215205 Z" id="Path"></path>' + 2738 '<path d="M28.114386,10.6479532 C30.5502924,8.21204678 30.5502924,4.26333333 28.114386,1.8274269 C25.678538,-0.608421053 21.73,-0.608421053 19.2928655,1.8271345 L15.0595906,6.06040936 C14.5723977,6.54760234 14.5723977,7.33754386 15.0595906,7.82473684 C15.5467836,8.31192982 16.3367251,8.31192982 16.8239181,7.82473684 L21.0569006,3.59175439 C22.5193567,2.13023392 24.888538,2.13023392 26.3500585,3.59175439 C27.8115205,5.05321637 27.8115205,7.42216374 26.3500585,8.88362573 L18.5877193,16.6459649 C17.1261988,18.1074854 14.7573099,18.1074854 13.295848,16.6459649 C12.808655,16.1587719 12.0187135,16.1587719 11.5315205,16.6459649 C11.0443275,17.1331579 11.0443275,17.9230994 11.5315205,18.4102924 C13.9674269,20.8461988 17.9161404,20.8461988 20.3520468,18.4102924 L28.114386,10.6479532 Z" id="Path"></path>' + 2739 '<path d="M23.3391228,21.5746199 C22.8519298,21.0874269 22.0619883,21.0874269 21.5747953,21.5746199 C21.0876023,22.0618129 21.0876023,22.8517544 21.5747953,23.3389474 L25.3162573,27.0804094 C25.8034503,27.5676023 26.5933918,27.5676023 27.0805848,27.0804094 C27.5677778,26.5932164 27.5677778,25.8032749 27.0805848,25.3160819 L23.3391228,21.5746199 Z" id="Path"></path>' + 2740 '<path d="M6.60502924,8.36918129 C7.09222222,8.85637427 7.88216374,8.85637427 8.36935673,8.36918129 C8.85654971,7.8819883 8.85654971,7.09204678 8.36935673,6.6048538 L4.62415205,2.85964912
2740C4.13695906,2.37245614 3.34701754,2.37245614 2.85982456,2.85964912 C2.37263158,3.34684211 2.37263158,4.13678363 2.85982456,4.62397661 L6.60502924,8.36918129 Z" id="Path"></path>' + 2741 '<path d="M28.694152,18.7134503 L24.951462,18.7134503 C24.2624561,18.7134503 23.7039181,19.2719883 23.7039181,19.9609942 C23.7039181,20.65 24.2624561,21.208538 24.951462,21.208538 L28.694152,21.208538 C29.3831579,21.208538 29.9416959,20.65 29.9416959,19.9609942 C29.9416959,19.2719883 29.3831579,18.7134503 28.694152,18.7134503 Z" id="Path"></path>' + 2742 '<path d="M9.98070175,6.23783626 C10.6697076,6.23783626 11.2282456,5.67929825 11.2282456,4.9902924 L11.2282456,1.24760234 C11.2282456,0.558538012 10.6697076,0 9.98070175,0 C9.29169591,0 8.73315789,0.558538012 8.73315789,1.24754386 L8.73315789,4.99023392 C8.73309942,5.67923977 9.29169591,6.23783626 9.98070175,6.23783626 Z" id="Path"></path>' + 2743 '<path d="M1.2477193,11.2280702 L4.99040936,11.2280702 C5.6794152,11.2280702 6.23795322,10.6695322 6.23795322,9.98052632 C6.23795322,9.29152047 5.6794152,8.73298246 4.99040936,8.73298246 L1.2477193,8.73298246 C0.55871345,8.73298246 0.000175438596,9.29152047 0.000175438596,9.98052632 C0.000175438596,10.6695322 0.55871345,11.2280702 1.2477193,11.2280702 Z" id="Path"></path>' + 2744 '<path d="M19.9611696,23.7036842 C19.2721637,23.7036842 18.7136257,24.2622222 18.7136257,24.9512281 L18.7136257,28.6939181 C18.7136257,29.382924 19.2721637,29.941462 19.9611696,29.941462 C20.6501754,29.941462 21.2087135,29.382924 21.2087135,28.6939181 L21.2087135,24.9512281 C21.2087719,24.2622807 20.6501754,23.7036842 19.9611696,23.7036842 Z" id="Path"></path>' + 2745 '</g>' + 2746 '</g>' + 2747 '</g>' + 2748 '</svg>' + 2749 '<div class="action-title">' + lang.links + '</div>' + 2750 '</button>' + 2751 '</div>' + 2752 '</div>' + 2753 '<div class="panel-footer">' + 2754 '<div class="links">' + 2755 '<a id="shortcuts-link" href="#">' + lang.shortcuts.title + '</a>' + 2756 (params.sitemapLink ? '<a href="' + params.sitemapLink + '">' + lang.sitemap + '</a>' : '') + 2757 (params.statementLink ? '<a href="' + params.statementLink + '">' + lang.statement + '</a>' : '') + 2758 '</div>' + 2759 '<button id="accessibility-reset" class="button" data-action="reset" title="Ponastavi nastavitve dostopnosti">' + lang.reset + '</button>' + 2760 '</div>' + 2761 '</div>' + 2762 '<div id="accessibility-shortcuts">' + 2763 '<button class="panel-back">' + 2764 '<img alt="back" src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTS4zMTIgMTAuNTg4YS45MTguOTE4IDAgMDEwLTEuMjg1bDguMDctOC4wOTFhLjkwNi45MDYgMCAxMTEuMjgzIDEuMjg0bC03LjQzIDcuNDUgNy40MyA3LjQ1YS45MDYuOTA2IDAgMTEtMS4yODIgMS4yODVsLTguMDctOC4wOTR6IiBmaWxsPSIjMEUxMjIwIi8+PC9zdmc+" />' + 2765 '</button>' + 2766 '<div class="shortcuts-title">' + lang.shortcuts.title + '</div>' + 2767 '<ul class="shortcuts">' + 2768 '<li><span>Ctrl+U</span><span>' + lang.shortcuts.ctrlU + '</span></li>' + 2769 (params.sitemapLink ? '<li><span>Ctrl+Alt+K</span><span>' + lang.shortcuts.ctrlAltK + '</span></li>' : '') + 2770 '<li><span>Ctrl+Alt+D</span><span>' + lang.shortcuts.ctrlAltD + '</span></li>' + 2771 '<li><span>Esc</span><span>' + lang.shortcuts.esc + '</span></li>' + 2772 '<li><span>Tab</span><span>' + lang.shortcuts.tab + '</span></li>' + 2773 '<li><span>Shift+Tab</span><span>' + lang.shortcuts.shiftTab + '</span></li>' + 2774 '<li><span>Enter</span><span>' + lang.shortcuts.enter + '</span></li>' + 2775 '<li><span>Space</span><span>' + lang.shortcuts.space + '</span></li>' + 2776 '</ul>' + 2777 '</div>' + 2778 '</div>' + 2779 '</div>'; 2780 if ($('#skip_to_content').length) { 2781 $('#skip_to_content').after(accessibilityButton, accessibilityPanel); 2782 } else { 2783 $('body').prepend(accessibilityButton, accessibilityPanel); 2784 } 2785 initAccessibilityActions(); 2786 $('#accessibility-button').click(function (e) { 2787 e.preventDefault(); 2788 $('#accessibility-panel').toggleClass('active'); 2789 $(this).toggleClass('btn-hide'); 2790 if ($('#accessibility-panel').hasClass('active')) { 2791 window.location.hash = '#accessibility-panel'; 2792 } 2793 }); 2794 $('.panel-close').click(function (e) { 2795 e.preventDefault(); 2796 $('#accessibility-panel').removeClass('active'); 2797 $('#accessibility-button').removeClass('btn-hide'); 2798 }); 2799 $('.accessibility-action, #accessibility-reset').click(function (e) { 2800 e.preventDefault(); 2801 var $this = $(this), action = $this.data("action"); 2802 void 0 !== action && (doAccessibilityAction($this, action, $this.hasClass("active"))); 2803 e.stopPropagation(); 2804 }); 2805 $("#shortcuts-link").click(function (e) { 2806 e.preventDefault(); 2807 $("#accessibility-actions").addClass("hidden"); 2808 $("#accessibility-shortcuts").addClass("active"); 2809 }); 2810 $(".panel-back").click(function (e) { 2811 e.preventDefault(); 2812 $("#accessibility-shortcuts").removeClass("active"); 2813 $("#accessibility-actions").removeClass("hidden"); 2814 }); 2815 }; 2816 var accessibilityActions = { 2817 keyboard: "keyboard-nav", 2818 wcursor: "white-cursor", 2819 bcursor: "black-cursor", 2820 font: "basic-font", 2821 bigger: "bigger-font", 2822 bold: "bold-font", 2823 contrast: "high-contrast", 2824 grayscale: "grayscale", 2825 inverted: "inverted", 2826 titles: "uppercase-titles", 2827 links: "underline-links", 2828 reset: "keyboard-nav white-cursor black-cursor basic-font bigger-font bold-font high-contrast grayscale inverted uppercase-titles underline-links" 2829 }, accessibilityCookieName = "webAccessibility", cookieDuration = 365, accessibilityDefault = ["keyboard-nav"], accessibilityEnabled = [], $html = $("html"), 2830 defaultParams = { langId: 'si', homepageLink: '/', sitemapLink: null, statementLink: null }, params = {}; 2831 var translations = { 2832 si: { 2833 showOptions: "Prikaži možnosti dostopnosti", 2834 title: "NASTAVITVE DOSTOPNOSTI", 2835 keyboard: "Navigacija s tipkovnico", 2836 wcursor: "VeÄji bel kurzor", 2837 bcursor: "VeÄji Ärn kurzor", 2838 font: "Osnovna pisava", 2839 bigger: "VeÄja pisava", 2840 bold: "Odebeljena pisava", 2841 contrast: "PoveÄaj kontrast", 2842 grayscale: "Barve v sivinah", 2843 inverted: "Obrni kontrast", 2844 titles: "Veliki naslovi", 2845 links: "PodÄrtaj povezave", 2846 sitemap: "Kazalo strani", 2847 statement: "Izjava o dostopnosti", 2848 reset: "PONASTAVI", 2849 shortcuts: { 2850 title: "Bližnjice s tipkovnico", 2851 ctrlU: "Prikaži možnosti dostopnosti", 2852 ctrlAltK: "Prikaži kazalo strani", 2853 ctrlAltD: "Vrni se na domaÄo stran", 2854 esc: "Zapri pojavno okno / meni", 2855 tab: "Premakni fokus na naslednji element", 2856 shiftTab: "Premakni fokus na prejÅ¡nji element", 2857 enter: "Klikni fokusiran element", 2858 space: "OznaÄi / odznaÄi potrditveno polje", 2859 } 2860 }, 2861 en: { 2862 showOptions: "Show accessibility options", 2863 title: "ACCESSIBILITY SETTINGS",
2864 keyboard: "Keyboard navigation", 2865 wcursor: "Bigger white cursor", 2866 bcursor: "Bigger black cursor", 2867 font: "Basic font", 2868 bigger: "Bigger font", 2869 bold: "Bold font", 2870 contrast: "Increase contrast", 2871 grayscale: "Grayscale", 2872 inverted: "Invert contrast", 2873 titles: "Uppercase titles", 2874 links: "Underline links", 2875 sitemap: "Site Map", 2876 statement: "Accessibility statement", 2877 reset: "RESET", 2878 shortcuts: { 2879 title: "Keyboard shortcuts", 2880 ctrlU: "Show accessibility options", 2881 ctrlAltK: "Show site map", 2882 ctrlAltD: "Return to home page", 2883 esc: "Close pop-up / menu", 2884 tab: "Move focus to next item", 2885 shiftTab: "Move focus to previous item", 2886 enter: "Click the focused item", 2887 space: "Check / uncheck the box", 2888 } 2889 } 2890 }; 2891 function initAccessibilityActions() { 2892 var cookieValue = checkCookie(accessibilityCookieName), i; 2893 accessibilityEnabled = cookieValue ? JSON.parse(cookieValue) : []; 2894 for (i = 0; i < accessibilityEnabled.length; i++) { 2895 $html.addClass(accessibilityEnabled[i]); 2896 $("#accessibility-" + getKeyByValue(accessibilityEnabled[i], accessibilityActions)).addClass("active"); 2897 } 2898 } 2899 function doAccessibilityAction($el, action, revert) { 2900 void 0 === revert && (revert = isInArray(accessibilityActions[action], accessibilityEnabled)); 2901 if (action === "reset") { 2902 $html.removeClass(accessibilityActions[action]).addClass("keyboard-nav"); 2903 $(".accessibility-action").removeClass("active"); 2904 $("#accessibility-keyboard").addClass("active"); 2905 accessibilityEnabled = accessibilityDefault; 2906 } 2907 else { 2908 if (revert) { 2909 $html.removeClass(accessibilityActions[action]); 2910 accessibilityEnabled = removeFromArray(accessibilityActions[action], accessibilityEnabled); 2911 $el.removeClass("active"); 2912 } 2913 else { 2914 $html.addClass(accessibilityActions[action]); 2915 accessibilityEnabled = addToArray(accessibilityActions[action], accessibilityEnabled); 2916 $el.addClass("active"); 2917 if (action === "wcursor") { 2918 $html.removeClass(accessibilityActions.bcursor); 2919 accessibilityEnabled = removeFromArray(accessibilityActions.bcursor, accessibilityEnabled); 2920 $("#accessibility-bcursor").removeClass("active"); 2921 } 2922 else if (action === "bcursor") { 2923 $html.removeClass(accessibilityActions.wcursor); 2924 accessibilityEnabled = removeFromArray(accessibilityActions.wcursor, accessibilityEnabled); 2925 $("#accessibility-wcursor").removeClass("active"); 2926 } 2927 else if (action === "contrast") { 2928 $html.removeClass(accessibilityActions.inverted); 2929 $html.removeClass(accessibilityActions.grayscale); 2930 accessibilityEnabled = removeFromArray(accessibilityActions.inverted, accessibilityEnabled); 2931 accessibilityEnabled = removeFromArray(accessibilityActions.grayscale, accessibilityEnabled); 2932 $("#accessibility-inverted").removeClass("active"); 2933 $("#accessibility-grayscale").removeClass("active"); 2934 } 2935 else if (action === "grayscale") { 2936 $html.removeClass(accessibilityActions.contrast); 2937 $html.removeClass(accessibilityActions.inverted); 2938 accessibilityEnabled = removeFromArray(accessibilityActions.contrast, accessibilityEnabled); 2939 accessibilityEnabled = removeFromArray(accessibilityActions.inverted, accessibilityEnabled); 2940 $("#accessibility-contrast").removeClass("active"); 2941 $("#accessibility-inverted").removeClass("active"); 2942 } 2943 else if (action === "inverted") { 2944 $html.removeClass(accessibilityActions.contrast); 2945 $html.removeClass(accessibilityActions.grayscale); 2946 accessibilityEnabled = removeFromArray(accessibilityActions.contrast, accessibilityEnabled); 2947 accessibilityEnabled = removeFromArray(accessibilityActions.grayscale, accessibilityEnabled); 2948 $("#accessibility-contrast").removeClass("active"); 2949 $("#accessibility-grayscale").removeClass("active"); 2950 } 2951 } 2952 } 2953 createCookie(accessibilityCookieName, accessibilityEnabled, cookieDuration); 2954 } 2955 function createCookie(name, value, days) { 2956 var expires; 2957 if (days > 0) { 2958 var date = new Date; 2959 date.setTime(date.getTime() + 24 * days * 60 * 60 * 1e3); 2960 expires = "; expires=" + date.toUTCString(); 2961 } 2962 else { 2963 value = ""; 2964 expires = "; expires=Thu, 01 Jan 1970 00:00:00 UTC"; 2965 } 2966 document.cookie = name + "=" + JSON.stringify(value) + expires + "; path=/; samesite=lax;" 2967 } 2968 function checkCookie(name) { 2969 for (var cookieName = name + "=", cookies = document.cookie.split(";"), i = 0; i < cookies.length; i++) { 2970 for (var cookie = cookies[i]; " " == cookie.charAt(0); ) 2971 cookie = cookie.substring(1, cookie.length); 2972 if (0 == cookie.indexOf(cookieName)) 2973 return cookie.substring(cookieName.length, cookie.length) 2974 } 2975 return null 2976 } 2977 function deleteCookie(name) { 2978 createCookie(name, "", -1) 2979 } 2980 function removeFromArray(value, array) { 2981 var index = $.inArray(value, array); 2982 -1 !== index && array.splice(index, 1); 2983 return array; 2984 } 2985 function addToArray(value, array, allowDuplicates) { 2986 void 0 === allowDuplicates && (allowDuplicates = !1); 2987 (allowDuplicates || -1 === $.inArray(value, array)) && array.push(value); 2988 return array; 2989 } 2990 function isInArray(value, array) { 2991 return -1 !== $.inArray(value, array) 2992 } 2993 function getKeyByValue(val, array){ 2994 return Object.keys(array)[Object.values(array).indexOf(val)]; 2995 } 2996 document.onkeydown = (e) => { 2997 if (e.ctrlKey && e.key === 'u') { 2998 e.preventDefault(); 2999 $('#accessibility-panel').toggleClass('active'); 3000 if ($('#accessibility-panel').hasClass('active')) { 3001 window.location.hash = '#accessibility-panel'; 3002 } 3003 } 3004 else if (e.ctrlKey && e.altKey && (e.key === 'k' || e.key === 'Å') && params.sitemapLink) { 3005 e.preventDefault(); 3006 window.location.href = params.sitemapLink; 3007 } 3008 else if (e.ctrlKey && e.altKey && e.key === 'd') { 3009 e.preventDefault(); 3010 window.location.href = params.homepageLink; 3011 } 3012 else if (e.key === "Escape") { 3013 if ($('#accessibility-panel').hasClass('active')) { 3014 $('#accessibility-panel').removeClass('active'); 3015 $('#accessibility-button').removeClass('btn-hide'); 3016 } 3017 else { 3018 $('.modal').removeClass('is-active'); 3019 window.close(); 3020 } 3021 } 3022 }; 3023 var didScroll; 3024 var lastScrollTop = 0; 3025 var delta = 5; 3026 $(window).scroll(function(e){ 3027 didScroll = true; 3028 }); 3029 setInterval(function() { 3030 if (didScroll) { 3031 onScroll(); 3032 didScroll = false;
3033 } 3034 }, 250); 3035 function onScroll() { 3036 if($('#accessibility-panel').hasClass('active')) 3037 return; 3038 var st = $(this).scrollTop(); 3039 if(Math.abs(lastScrollTop - st) <= delta) 3040 return; 3041 if (st > lastScrollTop){ 3042 $('#accessibility-button').addClass('btn-hide'); 3043 } 3044 else { 3045 if(st + $(window).height() < $(document).height()) { 3046 $('#accessibility-button').removeClass('btn-hide'); 3047 } 3048 } 3049 lastScrollTop = st; 3050 } 3051})(jQuery); 3052var GenericList = { 3053 bind: function(elements) 3054 { 3055 $('.GenericList form.sortItems input[type="submit"]', elements).hide(); 3056 $('.GenericList form.sortItems select[name="sort"]', elements).change(GenericList.onSortChange); 3057 }, 3058 onSortChange: function(event) 3059 { 3060 $(this) 3061 .closest('form') 3062 .find('input[type="submit"]') 3063 .trigger('click') 3064 ; 3065 } 3066} 3067Events.register(GenericList.bind); 3068var GenericForm = { 3069 run: function() 3070 { 3071 var parent = $('.GenericForm'); 3072 GenericForm.relatedFields(); 3073 GenericForm.productFields(parent); 3074 GenericForm.productVersionFields(parent); 3075 }, 3076 relatedFields: function() 3077 { 3078 $('.GenericForm form li[class*="related_field_"]').hide(); 3079 var items = $('.GenericForm form li[class*="field_"]:not([class*="related_field_"])'); 3080 GenericForm.relatedFieldsLoop(items); 3081 $('.GenericForm form li[class*="field_"] :input,.GenericForm form li[class*="related_field_"] :input') 3082 .bind('change', GenericForm.relatedFieldsEvents) 3083 .bind('keyup', GenericForm.relatedFieldsEvents) 3084 .trigger('keyup') 3085 ; 3086 }, 3087 relatedFieldsLoop: function(items) 3088 { 3089 if (!items.length) { 3090 return; 3091 } 3092 items.each(function() { 3093 var li = $(this); 3094 var input = li.find(':input:eq(0)'); 3095 if (input.data('related_data_condition')) { 3096 var result = li.attr('class').match(/related_field_(\d+)/); 3097 if (result) { 3098 var parentInputs = $('.GenericForm form li.field_' + result[1] + ' :input[name^="field_' + result[1] + '"]'); 3099 var valid = 0; 3100 parentInputs.each(function() { 3101 var parentInput = $(this); 3102 if (parentInput.attr('type') == 'checkbox' || parentInput.attr('type') == 'radio') { 3103 var $value = parentInput.attr('checked') ? parentInput.val() : null; 3104 } else { 3105 var $value = parentInput.val(); 3106 } 3107 valid |= eval(input.data('related_data_condition')) ? 1 : 0; 3108 }); 3109 if (!valid) { 3110 return; 3111 } 3112 } 3113 } 3114 li.show(); 3115 if (li.hasClass('valid')) { 3116 var result = li.attr('class').match(/field_(\d+)/); 3117 if (result) { 3118 var itemChilds = $('.GenericForm form li.related_' + result[0]); 3119 GenericForm.relatedFieldsLoop(itemChilds); 3120 } 3121 } 3122 }); 3123 }, 3124 3125 relatedFieldsEvents: function(event) 3126 { 3127 var input = $(this); 3128 var liRelated = 'li.related_' + input.attr('name'); 3129 liRelated = liRelated.replace('[]', ''); 3130 var items = input.closest('form').find(liRelated).hide(); 3131 GenericForm.relatedFieldsLoop(items); 3132 }, 3133 productFields: function(parent) 3134 { 3135 $('select.product', parent).change(GenericForm.productFieldChanged); 3136 }, 3137 3138 productFieldChanged: function(event) 3139 { 3140 var select = $(this); 3141 var li = select.closest('li'); 3142 li.find('> ol').remove(); 3143 var formId = genericFormId[select.closest('form').attr('id')]; 3144 var dataObject = { 3145 ajax_plugin : 'GenericForm', 3146 ajax_action : 'AjaxFetchProductVersions', 3147 form_id : formId, 3148 field_name : select.attr('name') 3149 } 3150 dataObject[dataObject['field_name']] = select.val(); 3151 Loader.show(select); 3152 $.ajax({ 3153 dataType: 'html', 3154 type: 'POST', 3155 data: dataObject, 3156 success: function(data) { 3157 li.empty().html(data); 3158 GenericForm.productFields(li); 3159 GenericForm.productVersionFields(li); 3160 li.find('> ol > li').removeClass('valid').removeClass('error'); 3161 $('input[type=text],input[type=number],input[type=tel],input[type=password],textarea,select', li).change(Form.validate); 3162 }, 3163 complete: function() { 3164 Loader.hide(); 3165 } 3166 }); 3167 }, 3168 productVersionFields: function(parent) 3169 { 3170 $('select.productVersion', parent).change(function() { 3171 GenericForm.productVersionFieldsChange($(this).closest('li.product')); 3172 }); 3173 $('select.productVersion:first', parent).trigger('change'); 3174 }, 3175 3176 productVersionFieldsChange: function(li) 3177 { 3178 var productId = $('select.product:first', li).val(); 3179 var versions = new Array(); 3180 var i = 0; 3181 $('select.productVersion', li).each(function() { 3182 var val = parseInt($(this).val()); 3183 if (val) { 3184 versions[i++] = val; 3185 } 3186 }); 3187 versions = versions.join(','); 3188 Loader.show(li); 3189 $.ajax({ 3190 dataType: 'json', 3191 type: 'POST', 3192 data: { 3193 ajax_plugin : 'Product', 3194 ajax_action : 'AjaxSinglePrice', 3195 product_id : productId, 3196 versions : versions 3197 }, 3198 success: function(data) { 3199 $('.productPrice div', li).empty().html(data.price); 3200 }, 3201 complete: function() { 3202 Loader.hide(); 3203 } 3204 }); 3205 } 3206} 3207run(GenericForm); 3208var Evaluation = { 3209 bind: function(elements) 3210 { 3211 $('.evaluation a', elements).click(Evaluation.onClick); 3212 }, 3213 onClick: function(event) 3214 { 3215 event.preventDefault(); 3216 var link = $(this); 3217 var parent = link.closest('.evaluation'); 3218 Loader.show(event); 3219 $.ajax({ 3220 url: link.attr('href'), 3221 dataType: 'html', 3222 type: 'POST', 3223 data: { 3224 ajax_plugin: 'Evaluation', 3225 ajax_action: 'AjaxEvaluate' 3226 }, 3227 success: function(data) { 3228 parent.empty().html(data); 3229 Evaluation.bind(parent.parent()); 3230 }, 3231 complete: function() { 3232 Loader.hide(); 3233 } 3234 }); 3235 } 3236} 3237Events.register(Evaluation.bind); 3238var Media = { 3239 prevPage: 'prevPage', 3240 nextPage: 'nextPage', 3241 navi: 'navi', 3242 bind: function(elements) 3243 { 3244 $('.media,.document', elements).each(Media.init); 3245 }, 3246 init: function(i, element) 3247 { 3248 var item = $(element); 3249 item.data('pages', item.find('ul.page').length); 3250 Media.initItems(item); 3251 Media.initScroll(item); 3252 Media.initInline(item); 3253 }, 3254 initItems: function(item) 3255 { 3256 item.find('.items:first').wrap('<div class="scrollable"></div>'); 3257 var scrollable = item.find('.scrollable'); 3258 var scrollableWidth = scrollable.width(); 3259 if (scrollableWidth) { 3260 item.find('ul.page').css('width', scrollableWidth); 3261 } 3262 var scrollableHeight = item.find('.items:first').height(); 3263 if (scrollableHeight) { 3264 item.find('.scrollable:first').css('height', scrollableHeight); 3265 } 3266 item.trigger('scrollable'); 3267 }, 3268 initScroll: function(item) 3269 { 3270 if (item.data('pages') > 1) { 3271 var scrollable = item.find('.scrollable').scrollable({ 3272 size : 1, 3273 keyboard : false, 3274 prev : '.' + Media.prevPage, 3275 next : '.' + Media.nextPage, 3276 clickable : false, 3277 touch : false, 3278 vertical : item.hasClass('vertical') ? true : false 3279 }).navigator({ 3280 navi : '.' + Media.navi 3281 }); 3282 var navi = item.find('.' + Media.navi); 3283 var width = 0; 3284 var page = 1; 3285 navi.find('a').each(function() { 3286 var a = $(this); 3287 a.html('<span>' + page + '</span>'); 3288 page += 1; 3289 width += parseInt(a.css('width')) + parseInt(a.css('margin-left')) + parseInt(a.css('margin-right')); 3290 }); 3291 navi.css('width', width+'px'); 3292 var api = scrollable.data('scrollable'); 3293 scrollable.parent().swipeleft(function(e){ 3294 api.next(); 3295 return false;
3296 }); 3297 scrollable.parent().swiperight(function(){ 3298 api.prev(); 3299 return false; 3300 }); 3301 } 3302 }, 3303 initInline: function(item) 3304 { 3305 if (!item.hasClass('inline')) { 3306 return; 3307 } 3308 var pictureA = item.parent().find('.m_picture a'); 3309 Media.bindInlinePicture(pictureA); 3310 pictureA.attr({ 3311 rel : item.find('a.inline:first').attr('rel') 3312 }); 3313 item.find('a.inline').click(function() { 3314 var pictureA = item.parent().find('.m_picture a'); 3315 var pictureImg = pictureA.children('img'); 3316 var a = $(this); 3317 var img = $(this).children('img'); 3318 Media.bindInlinePicture(pictureA); 3319 pictureA.attr({ 3320 rel : a.attr('rel') 3321 }); 3322 pictureImg.attr({ 3323 src : a.data('inline'), 3324 alt : img.attr('alt'), 3325 width : null, 3326 height : null 3327 }); 3328 a.parents('.scrollable').find('.item').removeClass('active'); 3329 a.parent().addClass('active'); 3330 return false; 3331 }); 3332 }, 3333 bindInlinePicture: function(pictureA) 3334 { 3335 pictureA.get(0).onclick = null; 3336 pictureA.unbind('click').click(function(){ 3337 $('#' + $(this).attr('rel')).click(); 3338 return false; 3339 }); 3340 } 3341}; 3342Events.register(Media.bind); 3343var Upgrade = { 3344 3345 bind: function(elements) 3346 { 3347 }, 3348 animate: function() 3349 { 3350 $('.home .position_exposed_item .horizontal li').addClass('animate').data({ 3351 animation: 'slideInLeft', 3352 delay: 333 3353 }); 3354 $('.position_after_center .exposed_items li.item h4.title').each(function(){ 3355 $(this).width($(this).width()); 3356 $(this).addClass('animate').data({ 3357 animation: 'count', 3358 count: $(this).text(), 3359 delay: 0 3360 }).text(0); 3361 }); 3362 } 3363 3364} 3365Events.register(Upgrade.bind); 3366Upgrade.animate(); 3367var SearchForm = { 3368 run: function () { 3369 var winWidth = $(window).width(); 3370 $('#top .SearchForm form ol li input.text').attr('placeholder', $('#top .SearchForm form ol li input.text').val()); 3371 $('#top .position_top1').prepend('<span id="form-toggle"><span class="inner"></span></span>'); 3372 $('#top #form-toggle').on('click', SearchForm.toggleForm); 3373 }, 3374 toggleForm: function () { 3375 $('#top .SearchForm .box').slideToggle(); 3376 if ($('#top').toggleClass('search_opened').hasClass('search_opened')) { 3377 $('#top .SearchForm form ol li input.text').val('').focus(); 3378 } 3379 return false; 3380 } 3381}; 3382run(SearchForm); 3383var MapPoint = { 3384 3385 bind: function(elements) 3386 { 3387 $('#map .m_picture img').unwrap(); 3388 $('.exposed_item.map li.item', elements).mouseenter(MapPoint.show).eq(0).each(MapPoint.show); 3389 $('.exposed_item.map .point', elements).mouseenter(MapPoint.point); 3390 }, 3391 3392 show: function() 3393 { 3394 $(this).addClass('active').siblings().removeClass('active'); 3395 $('#map .point').removeClass('active'); 3396 $('#' + $(this).data('id')).addClass('active'); 3397 }, 3398 3399 point: function() 3400 { 3401 $('[data-id=' + $(this).attr('id') + ']').each(MapPoint.show); 3402 } 3403 3404} 3405Events.register(MapPoint.bind); 3406var History = { 3407 run: function () { 3408 $('.exposed_items .navigation a').bind('click', History.onClick); 3409 }, 3410 onClick: function (event) { 3411 event.preventDefault(); 3412 var link = $(this); 3413 var result = link.attr('id').match(/^history_link(.+)$/); 3414 if (result && result[1]) { 3415 var div_navi = link.closest('.exposed_items .navigation'); 3416 var parent = link.closest('.exposed_items'); 3417 var current = parent.find('.active_nav'); 3418 var next = $('#history' + parseInt(result[1])); 3419 next.addClass('active_nav'); 3420 current.removeClass('active_nav'); 3421 var ePos = next.offset(); 3422 var topPos = ePos.top - 100 - div_navi.height(); 3423 $('html, body').animate({ 3424 scrollTop: topPos 3425 }, 1000); 3426 parent.find('.navigation li,.navigation li a').removeClass('active'); 3427 link.addClass('active').closest('li').addClass('active'); 3428 } 3429 return false; 3430 }, 3431 onClickExposedItem: function (event) { 3432 event.preventDefault(); 3433 var link = $(this); 3434 var div_navi = link.closest('ul').children().removeClass('active'); 3435 var div_navi = link.closest('li').addClass('active'); 3436 return false; 3437 }, 3438 scrollToPO: function (event) { 3439 var next = $('#prodaja_obrtnikom'); 3440 $('html,body').animate({ 3441 scrollTop: next.offset().top - 133 3442 }, 300); 3443 } 3444} 3445run(History); 3446$(document).ready(function() { 3447 $('#center .GenericListIndex .itemList_vertical').closest('.box_content').find('.m_picture').hide(); 3448 $('#center .full_width .m_picture a img').unwrap(); 3449 function showPopUpAfterSeconds(sec){ 3450 setTimeout( 3451 function() 3452 {
3453 $('#page.show_top_news').addClass('top_news'); 3454 }, sec*1000); 3455 } 3456 function hidePopUpAfterSeconds(sec){ 3457 $('#page').removeClass('top_news'); 3458 } 3459 if(!getCookie('topNews')) { 3460 $('.position_top_news').append('<a class="close">Close</a>'); 3461 showPopUpAfterSeconds(2); 3462 $('.position_top_news .close').click(function () { 3463 hidePopUpAfterSeconds(0); 3464 setCookie('topNews', true, 7); 3465 return false; 3466 }); 3467 } 3468 $('.position_top_news').find('.index_1').parent().addClass('double'); 3469});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.