text: function countdownproduct(){$(".time_count_down").each(function(t){var e=$(this).find(".time_countdown").attr("data-date-y"),i=$(this).find(".time_countdown").attr("data-date-m"),n=$(this).find(".time_countdown").attr("data-date-d"),s=$(this).find(".time_countdown").attr("data-date-h"),o=$(this).find(".time_countdown").attr("data-date-mi"),r=$(this).find(".time_countdown").attr("data-date-s");$(this).children().countdown({until:new Date(e,i-1,n,s,o,r)})})}!function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={exports:{},id:n,loaded:!1};return t[n].call(s.exports,s,s.exports,i),s.loaded=!0,s.exports}i.m=t,i.c=e,i.p="",i(0)}([function(t,e,i){t.exports=i(1)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(2));i(3),i(5),i(9),i(10),i(11),i(13);var o=n(i(4)),r=n(i(14)),a=i(12);for(var l in window.$=s.default,window.jQuery=s.default,r.default.prototype)o.default[l]=r.default.prototype[l];(0,s.default)(document).ready(function(){(0,a.psShowHide)()})},function(t,e,i){var n,s,o;s="undefined"!=typeof window?window:void 0,o=function(i,s){var o=[],r=i.document,a=o.slice,l=o.concat,c=o.push,u=o.indexOf,h={},d=h.toString,p=h.hasOwnProperty,f={},m="2.2.4",g=function t(e,i){return new t.fn.init(e,i)},v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,b=/-([\da-z])/gi,_=function(t,e){return e.toUpperCase()};function w(t){var e=!!t&&"length"in t&&t.length,i=g.type(t);return"function"!==i&&!g.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}g.fn=g.prototype={jquery:m,constructor:g,selector:"",length:0,toArray:function(){return a.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:a.call(this)},pushStack:function(t){var e=g.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return g.each(this,t)},map:function(t){return this.pushStack(g.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},g.extend=g.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||g.isFunction(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=r[e],r!==(n=t[e])&&(c&&n&&(g.isPlainObject(n)||(s=g.isArray(n)))?(s?(s=!1,o=i&&g.isArray(i)?i:[]):o=i&&g.isPlainObject(i)?i:{},r[e]=g.extend(c,o,n)):void 0!==n&&(r[e]=n));return r},g.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===g.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!g.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==g.type(t)||t.nodeType||g.isWindow(t))return!1;if(t.constructor&&!p.call(t,"constructor")&&!p.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||p.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[d.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;(t=g.trim(t))&&(1===t.indexOf("use strict")?((e=r.createElement("script")).text=t,r.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(y,"ms-").replace(b,_)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(w(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(v,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(w(Object(t))?g.merge(i,"string"==typeof t?[t]:t):c.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:u.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=0,r=[];if(w(t))for(n=t.length;o<n;o++)null!=(s=e(t[o],o,i))&&r.push(s);else for(o in t)null!=(s=e(t[o],o,i))&&r.push(s);return l.apply([],r)},guid:1,proxy:function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),g.isFunction(t))return n=a.call(arguments,2),s=function(){return t.apply(e||this,n.concat(a.call(arguments)))},s.guid=t.guid=t.guid||g.guid++,s},now:Date.now,support:f}),"function"==typeof Symbol&&(g.fn[Symbol.iterator]=o[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){h["[object "+e+"]"]=e.toLowerCase()});var x=function(t){var e,i,n,s,o,r,a,l,c,u,h,d,p,f,m,g,v,y,b,_="sizzle"+1*new Date,w=t.document,x=0,C=0,S=ot(),k=ot(),T=ot(),D=function(t,e){return t===e&&(h=!0),0},E=1<<31,I={}.hasOwnProperty,A=[],P=A.pop,$=A.push,O=A.push,M=A.slice,N=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",z="\\["+j+"*("+L+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+j+"*\\]",F=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",W=new RegExp(j+"+","g"),R=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),B=new RegExp("^"+j+"*,"+j+"*"),q=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),U=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),V=new RegExp(F),Y=new RegExp("^"+L+"$"),Q={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,tt=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),it=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},nt=function(){d()};try{O.apply(A=M.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(t){O={apply:A.length?function(t,e){$.apply(t,M.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,n,s){var o,a,c,u,h,f,v,y,x=e&&e.ownerDocument,C=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==C&&9!==C&&11!==C)return n;if(!s&&((e?e.ownerDocument||e:w)!==p&&d(e),e=e||p,m)){if(11!==C&&(f=Z.exec(t)))if(o=f[1]){if(9===C){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(x&&(c=x.getElementById(o))&&b(e,c)&&c.id===o)return n.push(c),n}else{if(f[2])return O.apply(n,e.getElementsByTagName(t)),n;if((o=f[3])&&i.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!T[t+" "]&&(!g||!g.test(t))){if(1!==C)x=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(tt,"\\$&"):e.setAttribute("id",u=_),a=(v=r(t)).length,h=Y.test(u)?"#"+u:"[id='"+u+"']";a--;)v[a]=h+" "+mt(v[a]);y=v.join(","),x=J.test(t)&&pt(e.parentNode)||e}if(y)try{return O.apply(n,x.querySelectorAll(y)),n}catch(t){}finally{u===_&&e.removeAttribute("id")}}}return l(t.replace(R,"$1"),e,n,s)}function ot(){var t=[];return function e(i,s){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=s}}function rt(t){return t[_]=!0,t}function at(t){var e=p.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var i=t.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=e}function ct(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||E)-(~t.sourceIndex||E);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ht(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function dt(t){return rt(function(e){return e=+e,rt(function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))})})}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=st.support={},o=st.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=st.setDocument=function(t){var e,s,r=t?t.ownerDocument||t:w;return r!==p&&9===r.nodeType&&r.documentElement?(f=(p=r).documentElement,m=!o(p),(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",nt,!1):s.attachEvent&&s.attachEvent("onunload",nt)),i.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),i.getElementsByTagName=at(function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=G.test(p.getElementsByClassName),i.getById=at(function(t){return f.appendChild(t).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),i.getById?(n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i=e.getElementById(t);return i?[i]:[]}},n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}}):(delete n.find.ID,n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(i.qsa=G.test(p.querySelectorAll))&&(at(function(t){f.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+H+")"),t.querySelectorAll("[id~="+_+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),at(function(t){var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=G.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(t){i.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),v.push("!=",F)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=G.test(f.compareDocumentPosition),b=e||G.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},D=e?function(t,e){if(t===e)return h=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===p||t.ownerDocument===w&&b(w,t)?-1:e===p||e.ownerDocument===w&&b(w,e)?1:u?N(u,t)-N(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===p?-1:e===p?1:s?-1:o?1:u?N(u,t)-N(u,e):0;if(s===o)return ct(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ct(r[n],a[n]):r[n]===w?-1:a[n]===w?1:0},p):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(U,"='$1']"),i.matchesSelector&&m&&!T[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var s=n.attrHandle[e.toLowerCase()],o=s&&I.call(n.attrHandle,e.toLowerCase())?s(t,e,!m):void 0;return void 0!==o?o:i.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],s=0,o=0;if(h=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(D),h){for(;e=t[o++];)e===t[o]&&(s=n.push(o));for(;s--;)t.splice(n[s],1)}return u=null,t},s=st.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=s(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=s(e);return i},(n=st.selectors={cacheLength:50,createPseudo:rt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.test(i)&&(e=r(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var s=st.attr(n,t);return null==s?"!="===e:!e||(s+="","="===e?s===i:"!="===e?s!==i:"^="===e?i&&0===s.indexOf(i):"*="===e?i&&s.indexOf(i)>-1:"$="===e?i&&s.slice(-i.length)===i:"~="===e?(" "+s.replace(W," ")+" ").indexOf(i)>-1:"|="===e&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,u,h,d,p,f,m=o!==r?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(d=e;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?g.firstChild:g.lastChild],r&&y){for(b=(p=(c=(u=(h=(d=g)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===e){u[t]=[x,p,b];break}}else if(y&&(b=p=(c=(u=(h=(d=e)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===b)for(;(d=++p&&d&&d[m]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((u=(h=d[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[x,b]),d!==e)););return(b-=s)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,s=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return s[_]?s(e):s.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?rt(function(t,i){for(var n,o=s(t,e),r=o.length;r--;)t[n=N(t,o[r])]=!(i[n]=o[r])}):function(t){return s(t,0,i)}):s}},pseudos:{not:rt(function(t){var e=[],i=[],n=a(t.replace(R,"$1"));return n[_]?rt(function(t,e,i,s){for(var o,r=n(t,null,s,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,s,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}}),has:rt(function(t){return function(e){return st(t,e).length>0}}),contains:rt(function(t){return t=t.replace(et,it),function(e){return(e.textContent||e.innerText||s(e)).indexOf(t)>-1}}),lang:rt(function(t){return Y.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:dt(function(){return[0]}),last:dt(function(t,e){return[e-1]}),eq:dt(function(t,e,i){return[i<0?i+e:i]}),even:dt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:dt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:dt(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:dt(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ut(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ht(e);function ft(){}function mt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function gt(t,e,i){var n=e.dir,s=i&&"parentNode"===n,o=C++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,o)}:function(e,i,r){var a,l,c,u=[x,o];if(r){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,r))return!0}else for(;e=e[n];)if(1===e.nodeType||s){if((a=(l=(c=e[_]||(e[_]={}))[e.uniqueID]||(c[e.uniqueID]={}))[n])&&a[0]===x&&a[1]===o)return u[2]=a[2];if(l[n]=u,u[2]=t(e,i,r))return!0}}}function vt(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function yt(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),c&&e.push(a)));return r}function bt(t,e,i,n,s,o){return n&&!n[_]&&(n=bt(n)),s&&!s[_]&&(s=bt(s,o)),rt(function(o,r,a,l){var c,u,h,d=[],p=[],f=r.length,m=o||function(t,e,i){for(var n=0,s=e.length;n<s;n++)st(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),g=!t||!o&&e?m:yt(m,d,t,a,l),v=i?s||(o?t:f||n)?[]:r:g;if(i&&i(g,v,a,l),n)for(c=yt(v,p),n(c,[],a,l),u=c.length;u--;)(h=c[u])&&(v[p[u]]=!(g[p[u]]=h));if(o){if(s||t){if(s){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(g[u]=h);s(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=s?N(o,h):d[u])>-1&&(o[c]=!(r[c]=h))}}else v=yt(v===r?v.splice(f,v.length):v),s?s(null,r,v,l):O.apply(r,v)})}function _t(t){for(var e,i,s,o=t.length,r=n.relative[t[0].type],a=r||n.relative[" "],l=r?1:0,u=gt(function(t){return t===e},a,!0),h=gt(function(t){return N(e,t)>-1},a,!0),d=[function(t,i,n){var s=!r&&(n||i!==c)||((e=i).nodeType?u(t,i,n):h(t,i,n));return e=null,s}];l<o;l++)if(i=n.relative[t[l].type])d=[gt(vt(d),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[_]){for(s=++l;s<o&&!n.relative[t[s].type];s++);return bt(l>1&&vt(d),l>1&&mt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(R,"$1"),i,l<s&&_t(t.slice(l,s)),s<o&&_t(t=t.slice(s)),s<o&&mt(t))}d.push(i)}return vt(d)}return ft.prototype=n.filters=n.pseudos,n.setFilters=new ft,r=st.tokenize=function(t,e){var i,s,o,r,a,l,c,u=k[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=n.preFilter;a;){for(r in i&&!(s=B.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(o=[])),i=!1,(s=q.exec(a))&&(i=s.shift(),o.push({value:i,type:s[0].replace(R," ")}),a=a.slice(i.length)),n.filter)!(s=Q[r].exec(a))||c[r]&&!(s=c[r](s))||(i=s.shift(),o.push({value:i,type:r,matches:s}),a=a.slice(i.length));if(!i)break}return e?a.length:a?st.error(t):k(t,l).slice(0)},a=st.compile=function(t,e){var i,s,o,a,l,u,h=[],f=[],g=T[t+" "];if(!g){for(e||(e=r(t)),i=e.length;i--;)(g=_t(e[i]))[_]?h.push(g):f.push(g);(g=T(t,(s=f,a=(o=h).length>0,l=s.length>0,u=function(t,e,i,r,u){var h,f,g,v=0,y="0",b=t&&[],_=[],w=c,C=t||l&&n.find.TAG("*",u),S=x+=null==w?1:Math.random()||.1,k=C.length;for(u&&(c=e===p||e||u);y!==k&&null!=(h=C[y]);y++){if(l&&h){for(f=0,e||h.ownerDocument===p||(d(h),i=!m);g=s[f++];)if(g(h,e||p,i)){r.push(h);break}u&&(x=S)}a&&((h=!g&&h)&&v--,t&&b.push(h))}if(v+=y,a&&y!==v){for(f=0;g=o[f++];)g(b,_,e,i);if(t){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=P.call(r));_=yt(_)}O.apply(r,_),u&&!t&&_.length>0&&v+o.length>1&&st.uniqueSort(r)}return u&&(x=S,c=w),b},a?rt(u):u))).selector=t}return g},l=st.select=function(t,e,s,o){var l,c,u,h,d,p="function"==typeof t&&t,f=!o&&r(t=p.selector||t);if(s=s||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&i.getById&&9===e.nodeType&&m&&n.relative[c[1].type]){if(!(e=(n.find.ID(u.matches[0].replace(et,it),e)||[])[0]))return s;p&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(l=Q.needsContext.test(t)?0:c.length;l--&&(u=c[l],!n.relative[h=u.type]);)if((d=n.find[h])&&(o=d(u.matches[0].replace(et,it),J.test(c[0].type)&&pt(e.parentNode)||e))){if(c.splice(l,1),!(t=o.length&&mt(c)))return O.apply(s,o),s;break}}return(p||a(t,f))(o,e,!m,s,!e||J.test(t)&&pt(e.parentNode)||e),s},i.sortStable=_.split("").sort(D).join("")===_,i.detectDuplicates=!!h,d(),i.sortDetached=at(function(t){return 1&t.compareDocumentPosition(p.createElement("div"))}),at(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),i.attributes&&at(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),at(function(t){return null==t.getAttribute("disabled")})||lt(H,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),st}(i);g.find=x,g.expr=x.selectors,g.expr[":"]=g.expr.pseudos,g.uniqueSort=g.unique=x.uniqueSort,g.text=x.getText,g.isXMLDoc=x.isXML,g.contains=x.contains;var C=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&g(t).is(i))break;n.push(t)}return n},S=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},k=g.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,D=/^.[^:#\[\.,]*$/;function E(t,e,i){if(g.isFunction(e))return g.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return g.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(D.test(e))return g.filter(e,t,i);e=g.filter(e,t)}return g.grep(t,function(t){return u.call(e,t)>-1!==i})}g.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?g.find.matchesSelector(n,t)?[n]:[]:g.find.matches(t,g.grep(e,function(t){return 1===t.nodeType}))},g.fn.extend({find:function(t){var e,i=this.length,n=[],s=this;if("string"!=typeof t)return this.pushStack(g(t).filter(function(){for(e=0;e<i;e++)if(g.contains(s[e],this))return!0}));for(e=0;e<i;e++)g.find(t,s[e],n);return(n=this.pushStack(i>1?g.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(E(this,t||[],!1))},not:function(t){return this.pushStack(E(this,t||[],!0))},is:function(t){return!!E(this,"string"==typeof t&&k.test(t)?g(t):t||[],!1).length}});var I,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||I,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:A.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof g?e[0]:e,g.merge(this,g.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:r,!0)),T.test(n[1])&&g.isPlainObject(e))for(n in e)g.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=r.getElementById(n[2]))&&s.parentNode&&(this.length=1,this[0]=s),this.context=r,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):g.isFunction(t)?void 0!==i.ready?i.ready(t):t(g):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),g.makeArray(t,this))}).prototype=g.fn,I=g(r);var P=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}g.fn.extend({has:function(t){var e=g(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(g.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,s=this.length,o=[],r=k.test(t)||"string"!=typeof t?g(t,e||this.context):0;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&g.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?g.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(g(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),g.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C(t,"parentNode")},parentsUntil:function(t,e,i){return C(t,"parentNode",i)},next:function(t){return O(t,"nextSibling")},prev:function(t){return O(t,"previousSibling")},nextAll:function(t){return C(t,"nextSibling")},prevAll:function(t){return C(t,"previousSibling")},nextUntil:function(t,e,i){return C(t,"nextSibling",i)},prevUntil:function(t,e,i){return C(t,"previousSibling",i)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return t.contentDocument||g.merge([],t.childNodes)}},function(t,e){g.fn[t]=function(i,n){var s=g.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=g.filter(n,s)),this.length>1&&($[t]||g.uniqueSort(s),P.test(t)&&s.reverse()),this.pushStack(s)}});var M,N=/\S+/g;function H(){r.removeEventListener("DOMContentLoaded",H),i.removeEventListener("load",H),g.ready()}g.Callbacks=function(t){var e,i;t="string"==typeof t?(e=t,i={},g.each(e.match(N)||[],function(t,e){i[e]=!0}),i):g.extend({},t);var n,s,o,r,a=[],l=[],c=-1,u=function(){for(r=t.once,o=n=!0;l.length;c=-1)for(s=l.shift();++c<a.length;)!1===a[c].apply(s[0],s[1])&&t.stopOnFalse&&(c=a.length,s=!1);t.memory||(s=!1),n=!1,r&&(a=s?[]:"")},h={add:function(){return a&&(s&&!n&&(c=a.length-1,l.push(s)),function e(i){g.each(i,function(i,n){g.isFunction(n)?t.unique&&h.has(n)||a.push(n):n&&n.length&&"string"!==g.type(n)&&e(n)})}(arguments),s&&!n&&u()),this},remove:function(){return g.each(arguments,function(t,e){for(var i;(i=g.inArray(e,a,i))>-1;)a.splice(i,1),i<=c&&c--}),this},has:function(t){return t?g.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=l=[],a=s="",this},disabled:function(){return!a},lock:function(){return r=l=[],s||(a=s=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),n||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!o}};return h},g.extend({Deferred:function(t){var e=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return g.Deferred(function(i){g.each(e,function(e,o){var r=g.isFunction(t[e])&&t[e];s[o[1]](function(){var t=r&&r.apply(this,arguments);t&&g.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[o[0]+"With"](this===n?i.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?g.extend(t,n):n}},s={};return n.pipe=n.then,g.each(e,function(t,o){var r=o[2],a=o[3];n[o[1]]=r.add,a&&r.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),s[o[0]]=function(){return s[o[0]+"With"](this===s?n:this,arguments),this},s[o[0]+"With"]=r.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,o=a.call(arguments),r=o.length,l=1!==r||t&&g.isFunction(t.promise)?r:0,c=1===l?t:g.Deferred(),u=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?a.call(arguments):s,n===e?c.notifyWith(i,n):--l||c.resolveWith(i,n)}};if(r>1)for(e=new Array(r),i=new Array(r),n=new Array(r);s<r;s++)o[s]&&g.isFunction(o[s].promise)?o[s].promise().progress(u(s,i,e)).done(u(s,n,o)).fail(c.reject):--l;return l||c.resolveWith(n,o),c.promise()}}),g.fn.ready=function(t){return g.ready.promise().done(t),this},g.extend({isReady:!1,readyWait:1,holdReady:function(t){t?g.readyWait++:g.ready(!0)},ready:function(t){(!0===t?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==t&&--g.readyWait>0||(M.resolveWith(r,[g]),g.fn.triggerHandler&&(g(r).triggerHandler("ready"),g(r).off("ready"))))}}),g.ready.promise=function(t){return M||(M=g.Deferred(),"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?i.setTimeout(g.ready):(r.addEventListener("DOMContentLoaded",H),i.addEventListener("load",H))),M.promise(t)},g.ready.promise();var j=function t(e,i,n,s,o,r,a){var l=0,c=e.length,u=null==n;if("object"===g.type(n))for(l in o=!0,n)t(e,i,l,n[l],!0,r,a);else if(void 0!==s&&(o=!0,g.isFunction(s)||(a=!0),u&&(a?(i.call(e,s),i=null):(u=i,i=function(t,e,i){return u.call(g(t),i)})),i))for(;l<c;l++)i(e[l],n,a?s:s.call(e[l],l,i(e[l],n)));return o?e:u?i.call(e):c?i(e[0],n):r},L=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function z(){this.expando=g.expando+z.uid++}z.uid=1,z.prototype={register:function(t,e){var i=e||{};return t.nodeType?t[this.expando]=i:Object.defineProperty(t,this.expando,{value:i,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!L(t))return{};var e=t[this.expando];return e||(e={},L(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[e]=i;else for(n in e)s[n]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?void 0!==(n=this.get(t,e))?n:this.get(t,g.camelCase(e)):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,s,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{g.isArray(e)?n=e.concat(e.map(g.camelCase)):(s=g.camelCase(e),n=e in o?[e,s]:(n=s)in o?[n]:n.match(N)||[]),i=n.length;for(;i--;)delete o[n[i]]}(void 0===e||g.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!g.isEmptyObject(e)}};var F=new z,W=new z,R=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/[A-Z]/g;function q(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(B,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:R.test(i)?g.parseJSON(i):i)}catch(t){}W.set(t,e,i)}else i=void 0;return i}g.extend({hasData:function(t){return W.hasData(t)||F.hasData(t)},data:function(t,e,i){return W.access(t,e,i)},removeData:function(t,e){W.remove(t,e)},_data:function(t,e,i){return F.access(t,e,i)},_removeData:function(t,e){F.remove(t,e)}}),g.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=W.get(o),1===o.nodeType&&!F.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=g.camelCase(n.slice(5)),q(o,n,s[n]));F.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){W.set(this,t)}):j(this,function(e){var i,n;if(o&&void 0===e)return void 0!==(i=W.get(o,t)||W.get(o,t.replace(B,"-$&").toLowerCase()))?i:(n=g.camelCase(t),void 0!==(i=W.get(o,n))?i:void 0!==(i=q(o,n,void 0))?i:void 0);n=g.camelCase(t),this.each(function(){var i=W.get(this,n);W.set(this,n,e),t.indexOf("-")>-1&&void 0!==i&&W.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){W.remove(this,t)})}}),g.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=F.get(t,e),i&&(!n||g.isArray(i)?n=F.access(t,e,g.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=g.queue(t,e),n=i.length,s=i.shift(),o=g._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,function(){g.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return F.get(t,i)||F.access(t,i,{empty:g.Callbacks("once memory").add(function(){F.remove(t,[e+"queue",i])})})}}),g.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?g.queue(this[0],t):void 0===e?this:this.each(function(){var i=g.queue(this,t,e);g._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&g.dequeue(this,t)})},dequeue:function(t){return this.each(function(){g.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=g.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=F.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var U=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,V=new RegExp("^(?:([+-])=|)("+U+")([a-z%]*)$","i"),Y=["Top","Right","Bottom","Left"],Q=function(t,e){return t=e||t,"none"===g.css(t,"display")||!g.contains(t.ownerDocument,t)};function X(t,e,i,n){var s,o=1,r=20,a=n?function(){return n.cur()}:function(){return g.css(t,e,"")},l=a(),c=i&&i[3]||(g.cssNumber[e]?"":"px"),u=(g.cssNumber[e]||"px"!==c&&+l)&&V.exec(g.css(t,e));if(u&&u[3]!==c){c=c||u[3],i=i||[],u=+l||1;do{u/=o=o||".5",g.style(t,e,u+c)}while(o!==(o=a()/l)&&1!==o&&--r)}return i&&(u=+u||+l||0,s=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=s)),s}var K=/^(?:checkbox|radio)$/i,G=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,J={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function tt(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&g.nodeName(t,e)?g.merge([t],i):i}function et(t,e){for(var i=0,n=t.length;i<n;i++)F.set(t[i],"globalEval",!e||F.get(e[i],"globalEval"))}J.optgroup=J.option,J.tbody=J.tfoot=J.colgroup=J.caption=J.thead,J.th=J.td;var it,nt,st=/<|&#?\w+;/;function ot(t,e,i,n,s){for(var o,r,a,l,c,u,h=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===g.type(o))g.merge(d,o.nodeType?[o]:o);else if(st.test(o)){for(r=r||h.appendChild(e.createElement("div")),a=(G.exec(o)||["",""])[1].toLowerCase(),l=J[a]||J._default,r.innerHTML=l[1]+g.htmlPrefilter(o)+l[2],u=l[0];u--;)r=r.lastChild;g.merge(d,r.childNodes),(r=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",p=0;o=d[p++];)if(n&&g.inArray(o,n)>-1)s&&s.push(o);else if(c=g.contains(o.ownerDocument,o),r=tt(h.appendChild(o),"script"),c&&et(r),i)for(u=0;o=r[u++];)Z.test(o.type||"")&&i.push(o);return h}it=r.createDocumentFragment().appendChild(r.createElement("div")),(nt=r.createElement("input")).setAttribute("type","radio"),nt.setAttribute("checked","checked"),nt.setAttribute("name","t"),it.appendChild(nt),f.checkClone=it.cloneNode(!0).cloneNode(!0).lastChild.checked,it.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!it.cloneNode(!0).lastChild.defaultValue;var rt=/^key/,at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lt=/^([^.]*)(?:\.(.+)|)/;function ct(){return!0}function ut(){return!1}function ht(){try{return r.activeElement}catch(t){}}function dt(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)dt(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=ut;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return g().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=g.guid++)),t.each(function(){g.event.add(this,e,s,n,i)})}g.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,c,u,h,d,p,f,m,v=F.get(t);if(v)for(i.handler&&(i=(o=i).handler,s=o.selector),i.guid||(i.guid=g.guid++),(l=v.events)||(l=v.events={}),(r=v.handle)||(r=v.handle=function(e){return void 0!==g&&g.event.triggered!==e.type?g.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(N)||[""]).length;c--;)p=m=(a=lt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=g.event.special[p]||{},p=(s?h.delegateType:h.bindType)||p,h=g.event.special[p]||{},u=g.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&g.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,u):d.push(u),g.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,u,h,d,p,f,m,v=F.hasData(t)&&F.get(t);if(v&&(l=v.events)){for(c=(e=(e||"").match(N)||[""]).length;c--;)if(p=m=(a=lt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=g.event.special[p]||{},d=l[p=(n?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)u=d[o],!s&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));r&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,v.handle)||g.removeEvent(t,p,v.handle),delete l[p])}else for(p in l)g.event.remove(t,p+e[c],i,n,!0);g.isEmptyObject(l)&&F.remove(t,"handle events")}},dispatch:function(t){t=g.event.fix(t);var e,i,n,s,o,r,l=a.call(arguments),c=(F.get(this,"events")||{})[t.type]||[],u=g.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(r=g.event.handlers.call(this,t,c),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(n=((g.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,l))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i<a;i++)void 0===n[s=(o=e[i]).selector+" "]&&(n[s]=o.needsContext?g(s,this).index(l)>-1:g.find(s,this,null,[l]).length),n[s]&&n.push(o);n.length&&r.push({elem:l,handlers:n})}return a<e.length&&r.push({elem:this,handlers:e.slice(a)}),r},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(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,s,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=(i=t.target.ownerDocument||r).documentElement,s=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||s&&s.scrollLeft||0)-(n&&n.clientLeft||s&&s.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||s&&s.scrollTop||0)-(n&&n.clientTop||s&&s.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[g.expando])return t;var e,i,n,s=t.type,o=t,a=this.fixHooks[s];for(a||(this.fixHooks[s]=a=at.test(s)?this.mouseHooks:rt.test(s)?this.keyHooks:{}),n=a.props?this.props.concat(a.props):this.props,t=new g.Event(o),e=n.length;e--;)t[i=n[e]]=o[i];return t.target||(t.target=r),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ht()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ht()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&g.nodeName(this,"input"))return this.click(),!1},_default:function(t){return g.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},g.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},g.Event=function(t,e){if(!(this instanceof g.Event))return new g.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?ct:ut):this.type=t,e&&g.extend(this,e),this.timeStamp=t&&t.timeStamp||g.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:ut,isPropagationStopped:ut,isImmediatePropagationStopped:ut,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=ct,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=ct,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=ct,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){g.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,s=t.handleObj;return n&&(n===this||g.contains(this,n))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),g.fn.extend({on:function(t,e,i,n){return dt(this,t,e,i,n)},one:function(t,e,i,n){return dt(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,g(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=ut),this.each(function(){g.event.remove(this,t,i,e)})}});var pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ft=/<script|<style|<link/i,mt=/checked\s*(?:[^=]|=\s*.checked.)/i,gt=/^true\/(.*)/,vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function yt(t,e){return g.nodeName(t,"table")&&g.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function bt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _t(t){var e=gt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function wt(t,e){var i,n,s,o,r,a,l,c;if(1===e.nodeType){if(F.hasData(t)&&(o=F.access(t),r=F.set(e,o),c=o.events))for(s in delete r.handle,r.events={},c)for(i=0,n=c[s].length;i<n;i++)g.event.add(e,s,c[s][i]);W.hasData(t)&&(a=W.access(t),l=g.extend({},a),W.set(e,l))}}function xt(t,e,i,n){e=l.apply([],e);var s,o,r,a,c,u,h=0,d=t.length,p=d-1,m=e[0],v=g.isFunction(m);if(v||d>1&&"string"==typeof m&&!f.checkClone&&mt.test(m))return t.each(function(s){var o=t.eq(s);v&&(e[0]=m.call(this,s,o.html())),xt(o,e,i,n)});if(d&&(o=(s=ot(e,t[0].ownerDocument,!1,t,n)).firstChild,1===s.childNodes.length&&(s=o),o||n)){for(a=(r=g.map(tt(s,"script"),bt)).length;h<d;h++)c=s,h!==p&&(c=g.clone(c,!0,!0),a&&g.merge(r,tt(c,"script"))),i.call(t[h],c,h);if(a)for(u=r[r.length-1].ownerDocument,g.map(r,_t),h=0;h<a;h++)c=r[h],Z.test(c.type||"")&&!F.access(c,"globalEval")&&g.contains(u,c)&&(c.src?g._evalUrl&&g._evalUrl(c.src):g.globalEval(c.textContent.replace(vt,"")))}return t}function Ct(t,e,i){for(var n,s=e?g.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||g.cleanData(tt(n)),n.parentNode&&(i&&g.contains(n.ownerDocument,n)&&et(tt(n,"script")),n.parentNode.removeChild(n));return t}g.extend({htmlPrefilter:function(t){return t.replace(pt,"<$1></$2>")},clone:function(t,e,i){var n,s,o,r,a,l,c,u=t.cloneNode(!0),h=g.contains(t.ownerDocument,t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||g.isXMLDoc(t)))for(r=tt(u),n=0,s=(o=tt(t)).length;n<s;n++)a=o[n],l=r[n],void 0,"input"===(c=l.nodeName.toLowerCase())&&K.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(i)for(o=o||tt(t),r=r||tt(u),n=0,s=o.length;n<s;n++)wt(o[n],r[n]);else wt(t,u);return(r=tt(u,"script")).length>0&&et(r,!h&&tt(t,"script")),u},cleanData:function(t){for(var e,i,n,s=g.event.special,o=0;void 0!==(i=t[o]);o++)if(L(i)){if(e=i[F.expando]){if(e.events)for(n in e.events)s[n]?g.event.remove(i,n):g.removeEvent(i,n,e.handle);i[F.expando]=void 0}i[W.expando]&&(i[W.expando]=void 0)}}}),g.fn.extend({domManip:xt,detach:function(t){return Ct(this,t,!0)},remove:function(t){return Ct(this,t)},text:function(t){return j(this,function(t){return void 0===t?g.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return xt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||yt(this,t).appendChild(t)})},prepend:function(){return xt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=yt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return xt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return xt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(g.cleanData(tt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return g.clone(this,t,e)})},html:function(t){return j(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ft.test(t)&&!J[(G.exec(t)||["",""])[1].toLowerCase()]){t=g.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(g.cleanData(tt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return xt(this,arguments,function(e){var i=this.parentNode;g.inArray(this,t)<0&&(g.cleanData(tt(this)),i&&i.replaceChild(e,this))},t)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){g.fn[t]=function(t){for(var i,n=[],s=g(t),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),g(s[r])[e](i),c.apply(n,i.get());return this.pushStack(n)}});var St,kt={HTML:"block",BODY:"block"};function Tt(t,e){var i=g(e.createElement(t)).appendTo(e.body),n=g.css(i[0],"display");return i.detach(),n}function Dt(t){var e=r,i=kt[t];return i||("none"!==(i=Tt(t,e))&&i||((e=(St=(St||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),i=Tt(t,e),St.detach()),kt[t]=i),i}var Et=/^margin/,It=new RegExp("^("+U+")(?!px)[a-z%]+$","i"),At=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Pt=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s},$t=r.documentElement;function Ot(t,e,i){var n,s,o,r,a=t.style;return""!==(r=(i=i||At(t))?i.getPropertyValue(e)||i[e]:void 0)&&void 0!==r||g.contains(t.ownerDocument,t)||(r=g.style(t,e)),i&&!f.pixelMarginRight()&&It.test(r)&&Et.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o),void 0!==r?r+"":r}function Mt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){var t,e,n,s,o=r.createElement("div"),a=r.createElement("div");function l(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",$t.appendChild(o);var r=i.getComputedStyle(a);t="1%"!==r.top,s="2px"===r.marginLeft,e="4px"===r.width,a.style.marginRight="50%",n="4px"===r.marginRight,$t.removeChild(o)}a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),g.extend(f,{pixelPosition:function(){return l(),t},boxSizingReliable:function(){return null==e&&l(),e},pixelMarginRight:function(){return null==e&&l(),n},reliableMarginLeft:function(){return null==e&&l(),s},reliableMarginRight:function(){var t,e=a.appendChild(r.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",$t.appendChild(o),t=!parseFloat(i.getComputedStyle(e).marginRight),$t.removeChild(o),a.removeChild(e),t}}))}();var Nt=/^(none|table(?!-c[ea]).+)/,Ht={position:"absolute",visibility:"hidden",display:"block"},jt={letterSpacing:"0",fontWeight:"400"},Lt=["Webkit","O","Moz","ms"],zt=r.createElement("div").style;function Ft(t){if(t in zt)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Lt.length;i--;)if((t=Lt[i]+e)in zt)return t}function Wt(t,e,i){var n=V.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Rt(t,e,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,r=0;o<4;o+=2)"margin"===i&&(r+=g.css(t,i+Y[o],!0,s)),n?("content"===i&&(r-=g.css(t,"padding"+Y[o],!0,s)),"margin"!==i&&(r-=g.css(t,"border"+Y[o]+"Width",!0,s))):(r+=g.css(t,"padding"+Y[o],!0,s),"padding"!==i&&(r+=g.css(t,"border"+Y[o]+"Width",!0,s)));return r}function Bt(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,o=At(t),r="border-box"===g.css(t,"boxSizing",!1,o);if(s<=0||null==s){if(((s=Ot(t,e,o))<0||null==s)&&(s=t.style[e]),It.test(s))return s;n=r&&(f.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+Rt(t,e,i||(r?"border":"content"),n,o)+"px"}function qt(t,e){for(var i,n,s,o=[],r=0,a=t.length;r<a;r++)(n=t[r]).style&&(o[r]=F.get(n,"olddisplay"),i=n.style.display,e?(o[r]||"none"!==i||(n.style.display=""),""===n.style.display&&Q(n)&&(o[r]=F.access(n,"olddisplay",Dt(n.nodeName)))):(s=Q(n),"none"===i&&s||F.set(n,"olddisplay",s?i:g.css(n,"display"))));for(r=0;r<a;r++)(n=t[r]).style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[r]||"":"none"));return t}function Ut(t,e,i,n,s){return new Ut.prototype.init(t,e,i,n,s)}g.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ot(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=g.camelCase(e),l=t.style;if(e=g.cssProps[a]||(g.cssProps[a]=Ft(a)||a),r=g.cssHooks[e]||g.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:l[e];"string"===(o=typeof i)&&(s=V.exec(i))&&s[1]&&(i=X(t,e,s),o="number"),null!=i&&i==i&&("number"===o&&(i+=s&&s[3]||(g.cssNumber[a]?"":"px")),f.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l[e]=i))}},css:function(t,e,i,n){var s,o,r,a=g.camelCase(e);return e=g.cssProps[a]||(g.cssProps[a]=Ft(a)||a),(r=g.cssHooks[e]||g.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=Ot(t,e,n)),"normal"===s&&e in jt&&(s=jt[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),g.each(["height","width"],function(t,e){g.cssHooks[e]={get:function(t,i,n){if(i)return Nt.test(g.css(t,"display"))&&0===t.offsetWidth?Pt(t,Ht,function(){return Bt(t,e,n)}):Bt(t,e,n)},set:function(t,i,n){var s,o=n&&At(t),r=n&&Rt(t,e,n,"border-box"===g.css(t,"boxSizing",!1,o),o);return r&&(s=V.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=g.css(t,e)),Wt(0,i,r)}}}),g.cssHooks.marginLeft=Mt(f.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ot(t,"marginLeft"))||t.getBoundingClientRect().left-Pt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),g.cssHooks.marginRight=Mt(f.reliableMarginRight,function(t,e){if(e)return Pt(t,{display:"inline-block"},Ot,[t,"marginRight"])}),g.each({margin:"",padding:"",border:"Width"},function(t,e){g.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+Y[n]+e]=o[n]||o[n-2]||o[0];return s}},Et.test(t)||(g.cssHooks[t+e].set=Wt)}),g.fn.extend({css:function(t,e){return j(this,function(t,e,i){var n,s,o={},r=0;if(g.isArray(e)){for(n=At(t),s=e.length;r<s;r++)o[e[r]]=g.css(t,e[r],!1,n);return o}return void 0!==i?g.style(t,e,i):g.css(t,e)},t,e,arguments.length>1)},show:function(){return qt(this,!0)},hide:function(){return qt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Q(this)?g(this).show():g(this).hide()})}}),g.Tween=Ut,Ut.prototype={constructor:Ut,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||g.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(g.cssNumber[i]?"":"px")},cur:function(){var t=Ut.propHooks[this.prop];return t&&t.get?t.get(this):Ut.propHooks._default.get(this)},run:function(t){var e,i=Ut.propHooks[this.prop];return this.options.duration?this.pos=e=g.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Ut.propHooks._default.set(this),this}},Ut.prototype.init.prototype=Ut.prototype,Ut.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=g.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){g.fx.step[t.prop]?g.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[g.cssProps[t.prop]]&&!g.cssHooks[t.prop]?t.elem[t.prop]=t.now:g.style(t.elem,t.prop,t.now+t.unit)}}},Ut.propHooks.scrollTop=Ut.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},g.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},g.fx=Ut.prototype.init,g.fx.step={};var Vt,Yt,Qt,Xt,Kt,Gt=/^(?:toggle|show|hide)$/,Zt=/queueHooks$/;function Jt(){return i.setTimeout(function(){Vt=void 0}),Vt=g.now()}function te(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=Y[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function ee(t,e,i){for(var n,s=(ie.tweeners[e]||[]).concat(ie.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function ie(t,e,i){var n,s,o=0,r=ie.prefilters.length,a=g.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Vt||Jt(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),o=0,r=c.tweens.length;o<r;o++)c.tweens[o].run(n);return a.notifyWith(t,[c,n,i]),n<1&&r?i:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:g.extend({},e),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},i),originalProperties:e,originalOptions:i,startTime:Vt||Jt(),duration:i.duration,tweens:[],createTween:function(e,i){var n=g.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var i,n,s,o,r;for(i in t)if(s=e[n=g.camelCase(i)],o=t[i],g.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=g.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(u,c.opts.specialEasing);o<r;o++)if(n=ie.prefilters[o].call(c,t,u,c.opts))return g.isFunction(n.stop)&&(g._queueHooks(c.elem,c.opts.queue).stop=g.proxy(n.stop,n)),n;return g.map(u,ee,c),g.isFunction(c.opts.start)&&c.opts.start.call(t,c),g.fx.timer(g.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}g.Animation=g.extend(ie,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return X(i.elem,t,V.exec(e),i),i}]},tweener:function(t,e){g.isFunction(t)?(e=t,t=["*"]):t=t.match(N);for(var i,n=0,s=t.length;n<s;n++)i=t[n],ie.tweeners[i]=ie.tweeners[i]||[],ie.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,r,a,l,c,u=this,h={},d=t.style,p=t.nodeType&&Q(t),f=F.get(t,"fxshow");for(n in i.queue||(null==(a=g._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,g.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(c=g.css(t,"display"))?F.get(t,"olddisplay")||Dt(t.nodeName):c)&&"none"===g.css(t,"float")&&(d.display="inline-block")),i.overflow&&(d.overflow="hidden",u.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]})),e)if(s=e[n],Gt.exec(s)){if(delete e[n],o=o||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!f||void 0===f[n])continue;p=!0}h[n]=f&&f[n]||g.style(t,n)}else c=void 0;if(g.isEmptyObject(h))"inline"===("none"===c?Dt(t.nodeName):c)&&(d.display=c);else for(n in f?"hidden"in f&&(p=f.hidden):f=F.access(t,"fxshow",{}),o&&(f.hidden=!p),p?g(t).show():u.done(function(){g(t).hide()}),u.done(function(){var e;for(e in F.remove(t,"fxshow"),h)g.style(t,e,h[e])}),h)r=ee(p?f[n]:0,n,u),n in f||(f[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}],prefilter:function(t,e){e?ie.prefilters.unshift(t):ie.prefilters.push(t)}}),g.speed=function(t,e,i){var n=t&&"object"==typeof t?g.extend({},t):{complete:i||!i&&e||g.isFunction(t)&&t,duration:t,easing:i&&e||e&&!g.isFunction(e)&&e};return n.duration=g.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in g.fx.speeds?g.fx.speeds[n.duration]:g.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){g.isFunction(n.old)&&n.old.call(this),n.queue&&g.dequeue(this,n.queue)},n},g.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Q).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=g.isEmptyObject(t),o=g.speed(e,i,n),r=function(){var e=ie(this,g.extend({},t),o);(s||F.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",o=g.timers,r=F.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&Zt.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));!e&&i||g.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=F.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=g.timers,r=n?n.length:0;for(i.finish=!0,g.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),g.each(["toggle","show","hide"],function(t,e){var i=g.fn[e];g.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(te(e,!0),t,n,s)}}),g.each({slideDown:te("show"),slideUp:te("hide"),slideToggle:te("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){g.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),g.timers=[],g.fx.tick=function(){var t,e=0,i=g.timers;for(Vt=g.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||g.fx.stop(),Vt=void 0},g.fx.timer=function(t){g.timers.push(t),t()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){Yt||(Yt=i.setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){i.clearInterval(Yt),Yt=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(t,e){return t=g.fx&&g.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var s=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(s)}})},Qt=r.createElement("input"),Xt=r.createElement("select"),Kt=Xt.appendChild(r.createElement("option")),Qt.type="checkbox",f.checkOn=""!==Qt.value,f.optSelected=Kt.selected,Xt.disabled=!0,f.optDisabled=!Kt.disabled,(Qt=r.createElement("input")).value="t",Qt.type="radio",f.radioValue="t"===Qt.value;var ne,se=g.expr.attrHandle;g.fn.extend({attr:function(t,e){return j(this,g.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){g.removeAttr(this,t)})}}),g.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?g.prop(t,e,i):(1===o&&g.isXMLDoc(t)||(e=e.toLowerCase(),s=g.attrHooks[e]||(g.expr.match.bool.test(e)?ne:void 0)),void 0!==i?null===i?void g.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=g.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&g.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,s=0,o=e&&e.match(N);if(o&&1===t.nodeType)for(;i=o[s++];)n=g.propFix[i]||i,g.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)}}),ne={set:function(t,e,i){return!1===e?g.removeAttr(t,i):t.setAttribute(i,i),i}},g.each(g.expr.match.bool.source.match(/\w+/g),function(t,e){var i=se[e]||g.find.attr;se[e]=function(t,e,n){var s,o;return n||(o=se[e],se[e]=s,s=null!=i(t,e,n)?e.toLowerCase():null,se[e]=o),s}});var oe=/^(?:input|select|textarea|button)$/i,re=/^(?:a|area)$/i;g.fn.extend({prop:function(t,e){return j(this,g.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[g.propFix[t]||t]})}}),g.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&g.isXMLDoc(t)||(e=g.propFix[e]||e,s=g.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=g.find.attr(t,"tabindex");return e?parseInt(e,10):oe.test(t.nodeName)||re.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(g.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;function le(t){return t.getAttribute&&t.getAttribute("class")||""}g.fn.extend({addClass:function(t){var e,i,n,s,o,r,a,l=0;if(g.isFunction(t))return this.each(function(e){g(this).addClass(t.call(this,e,le(this)))});if("string"==typeof t&&t)for(e=t.match(N)||[];i=this[l++];)if(s=le(i),n=1===i.nodeType&&(" "+s+" ").replace(ae," ")){for(r=0;o=e[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s!==(a=g.trim(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,s,o,r,a,l=0;if(g.isFunction(t))return this.each(function(e){g(this).removeClass(t.call(this,e,le(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(N)||[];i=this[l++];)if(s=le(i),n=1===i.nodeType&&(" "+s+" ").replace(ae," ")){for(r=0;o=e[r++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s!==(a=g.trim(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):g.isFunction(t)?this.each(function(i){g(this).toggleClass(t.call(this,i,le(this),e),e)}):this.each(function(){var e,n,s,o;if("string"===i)for(n=0,s=g(this),o=t.match(N)||[];e=o[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==i||((e=le(this))&&F.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":F.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+le(i)+" ").replace(ae," ").indexOf(e)>-1)return!0;return!1}});var ce=/\r/g,ue=/[\x20\t\r\n\f]+/g;g.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=g.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(null==(s=n?t.call(this,i,g(this).val()):t)?s="":"number"==typeof s?s+="":g.isArray(s)&&(s=g.map(s,function(t){return null==t?"":t+""})),(e=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))})):s?(e=g.valHooks[s.type]||g.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(ce,""):null==i?"":i:void 0}}),g.extend({valHooks:{option:{get:function(t){var e=g.find.attr(t,"value");return null!=e?e:g.trim(g.text(t)).replace(ue," ")}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,o="select-one"===t.type||s<0,r=o?null:[],a=o?s+1:n.length,l=s<0?a:o?s:0;l<a;l++)if(((i=n[l]).selected||l===s)&&(f.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!g.nodeName(i.parentNode,"optgroup"))){if(e=g(i).val(),o)return e;r.push(e)}return r},set:function(t,e){for(var i,n,s=t.options,o=g.makeArray(e),r=s.length;r--;)((n=s[r]).selected=g.inArray(g.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(t,e){if(g.isArray(e))return t.checked=g.inArray(g(t).val(),e)>-1}},f.checkOn||(g.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var he=/^(?:focusinfocus|focusoutblur)$/;g.extend(g.event,{trigger:function(t,e,n,s){var o,a,l,c,u,h,d,f=[n||r],m=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(a=l=n=n||r,3!==n.nodeType&&8!==n.nodeType&&!he.test(m+g.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[g.expando]?t:new g.Event(m,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:g.makeArray(e,[t]),d=g.event.special[m]||{},s||!d.trigger||!1!==d.trigger.apply(n,e))){if(!s&&!d.noBubble&&!g.isWindow(n)){for(c=d.delegateType||m,he.test(c+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),l=a;l===(n.ownerDocument||r)&&f.push(l.defaultView||l.parentWindow||i)}for(o=0;(a=f[o++])&&!t.isPropagationStopped();)t.type=o>1?c:d.bindType||m,(h=(F.get(a,"events")||{})[t.type]&&F.get(a,"handle"))&&h.apply(a,e),(h=u&&a[u])&&h.apply&&L(a)&&(t.result=h.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,s||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!L(n)||u&&g.isFunction(n[m])&&!g.isWindow(n)&&((l=n[u])&&(n[u]=null),g.event.triggered=m,n[m](),g.event.triggered=void 0,l&&(n[u]=l)),t.result}},simulate:function(t,e,i){var n=g.extend(new g.Event,i,{type:t,isSimulated:!0});g.event.trigger(n,null,e)}}),g.fn.extend({trigger:function(t,e){return this.each(function(){g.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return g.event.trigger(t,e,i,!0)}}),g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){g.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),g.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),f.focusin="onfocusin"in i,f.focusin||g.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){g.event.simulate(e,t.target,g.event.fix(t))};g.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=F.access(n,e);s||n.addEventListener(t,i,!0),F.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=F.access(n,e)-1;s?F.access(n,e,s):(n.removeEventListener(t,i,!0),F.remove(n,e))}}});var de=i.location,pe=g.now(),fe=/\?/;g.parseJSON=function(t){return JSON.parse(t+"")},g.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+t),e};var me=/#.*$/,ge=/([?&])_=[^&]*/,ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,ye=/^(?:GET|HEAD)$/,be=/^\/\//,_e={},we={},xe="*/".concat("*"),Ce=r.createElement("a");function Se(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(N)||[];if(g.isFunction(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function ke(t,e,i,n){var s={},o=t===we;function r(a){var l;return s[a]=!0,g.each(t[a]||[],function(t,a){var c=a(e,i,n);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}return r(e.dataTypes[0])||!s["*"]&&r("*")}function Te(t,e){var i,n,s=g.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&g.extend(!0,t,n),t}Ce.href=de.href,g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:de.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(de.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Te(Te(t,g.ajaxSettings),e):Te(g.ajaxSettings,t)},ajaxPrefilter:Se(_e),ajaxTransport:Se(we),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,s,o,a,l,c,u,h,d=g.ajaxSetup({},e),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?g(p):g.event,m=g.Deferred(),v=g.Callbacks("once memory"),y=d.statusCode||{},b={},_={},w=0,x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!a)for(a={};e=ve.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?o:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return w||(t=_[i]=_[i]||t,b[t]=e),this},overrideMimeType:function(t){return w||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)y[e]=[y[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||x;return n&&n.abort(e),S(0,e),this}};if(m.promise(C).complete=v.add,C.success=C.done,C.error=C.fail,d.url=((t||d.url||de.href)+"").replace(me,"").replace(be,de.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=g.trim(d.dataType||"*").toLowerCase().match(N)||[""],null==d.crossDomain){c=r.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Ce.protocol+"//"+Ce.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=g.param(d.data,d.traditional)),ke(_e,d,e,C),2===w)return C;for(h in(u=g.event&&d.global)&&0==g.active++&&g.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!ye.test(d.type),s=d.url,d.hasContent||(d.data&&(s=d.url+=(fe.test(s)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=ge.test(s)?s.replace(ge,"$1_="+pe++):s+(fe.test(s)?"&":"?")+"_="+pe++)),d.ifModified&&(g.lastModified[s]&&C.setRequestHeader("If-Modified-Since",g.lastModified[s]),g.etag[s]&&C.setRequestHeader("If-None-Match",g.etag[s])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+xe+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(p,C,d)||2===w))return C.abort();for(h in x="abort",{success:1,error:1,complete:1})C[h](d[h]);if(n=ke(we,d,e,C)){if(C.readyState=1,u&&f.trigger("ajaxSend",[C,d]),2===w)return C;d.async&&d.timeout>0&&(l=i.setTimeout(function(){C.abort("timeout")},d.timeout));try{w=1,n.send(b,S)}catch(t){if(!(w<2))throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,r,a){var c,h,b,_,x,S=e;2!==w&&(w=2,l&&i.clearTimeout(l),n=void 0,o=a||"",C.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(_=function(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(d,C,r)),_=function(t,e,i,n){var s,o,r,a,l,c={},u=t.dataTypes.slice();if(u[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=u.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(d,_,C,c),c?(d.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(g.lastModified[s]=x),(x=C.getResponseHeader("etag"))&&(g.etag[s]=x)),204===t||"HEAD"===d.type?S="nocontent":304===t?S="notmodified":(S=_.state,h=_.data,c=!(b=_.error))):(b=S,!t&&S||(S="error",t<0&&(t=0))),C.status=t,C.statusText=(e||S)+"",c?m.resolveWith(p,[h,S,C]):m.rejectWith(p,[C,S,b]),C.statusCode(y),y=void 0,u&&f.trigger(c?"ajaxSuccess":"ajaxError",[C,d,c?h:b]),v.fireWith(p,[C,S]),u&&(f.trigger("ajaxComplete",[C,d]),--g.active||g.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,i){return g.get(t,e,i,"json")},getScript:function(t,e){return g.get(t,void 0,e,"script")}}),g.each(["get","post"],function(t,e){g[e]=function(t,i,n,s){return g.isFunction(i)&&(s=s||n,n=i,i=void 0),g.ajax(g.extend({url:t,type:e,dataType:s,data:i,success:n},g.isPlainObject(t)&&t))}}),g._evalUrl=function(t){return g.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(t){var e;return g.isFunction(t)?this.each(function(e){g(this).wrapAll(t.call(this,e))}):(this[0]&&(e=g(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return g.isFunction(t)?this.each(function(e){g(this).wrapInner(t.call(this,e))}):this.each(function(){var e=g(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=g.isFunction(t);return this.each(function(i){g(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()}}),g.expr.filters.hidden=function(t){return!g.expr.filters.visible(t)},g.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var De=/%20/g,Ee=/\[\]$/,Ie=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;function $e(t,e,i,n){var s;if(g.isArray(e))g.each(e,function(e,s){i||Ee.test(t)?n(t,s):$e(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)});else if(i||"object"!==g.type(e))n(t,e);else for(s in e)$e(t+"["+s+"]",e[s],i,n)}g.param=function(t,e){var i,n=[],s=function(t,e){e=g.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(t)||t.jquery&&!g.isPlainObject(t))g.each(t,function(){s(this.name,this.value)});else for(i in t)$e(i,t[i],e,s);return n.join("&").replace(De,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=g.prop(this,"elements");return t?g.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!g(this).is(":disabled")&&Pe.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!K.test(t))}).map(function(t,e){var i=g(this).val();return null==i?null:g.isArray(i)?g.map(i,function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}}):{name:e.name,value:i.replace(Ie,"\r\n")}}).get()}}),g.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Oe={0:200,1223:204},Me=g.ajaxSettings.xhr();f.cors=!!Me&&"withCredentials"in Me,f.ajax=Me=!!Me,g.ajaxTransport(function(t){var e,n;if(f.cors||Me&&!t.crossDomain)return{send:function(s,o){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];for(r in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Oe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return g.globalEval(t),t}}}),g.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),g.ajaxTransport("script",function(t){var e,i;if(t.crossDomain)return{send:function(n,s){e=g("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),r.head.appendChild(e[0])},abort:function(){i&&i()}}});var Ne=[],He=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ne.pop()||g.expando+"_"+pe++;return this[t]=!0,t}}),g.ajaxPrefilter("json jsonp",function(t,e,n){var s,o,r,a=!1!==t.jsonp&&(He.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=g.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(He,"$1"+s):!1!==t.jsonp&&(t.url+=(fe.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return r||g.error(s+" was not called"),r[0]},t.dataTypes[0]="json",o=i[s],i[s]=function(){r=arguments},n.always(function(){void 0===o?g(i).removeProp(s):i[s]=o,t[s]&&(t.jsonpCallback=e.jsonpCallback,Ne.push(s)),r&&g.isFunction(o)&&o(r[0]),r=o=void 0}),"script"}),g.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||r;var n=T.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=ot([t],e,s),s&&s.length&&g(s).remove(),g.merge([],n.childNodes))};var je=g.fn.load;function Le(t){return g.isWindow(t)?t:9===t.nodeType&&t.defaultView}g.fn.load=function(t,e,i){if("string"!=typeof t&&je)return je.apply(this,arguments);var n,s,o,r=this,a=t.indexOf(" ");return a>-1&&(n=g.trim(t.slice(a)),t=t.slice(0,a)),g.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&g.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?g("<div>").append(g.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){g.fn[e]=function(t){return this.on(e,t)}}),g.expr.filters.animated=function(t){return g.grep(g.timers,function(e){return t===e.elem}).length},g.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,c=g.css(t,"position"),u=g(t),h={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=g.css(t,"top"),l=g.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(r=(n=u.position()).top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),g.isFunction(e)&&(e=e.call(t,i,g.extend({},a))),null!=e.top&&(h.top=e.top-a.top+r),null!=e.left&&(h.left=e.left-a.left+s),"using"in e?e.using.call(t,h):u.css(h)}},g.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){g.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;return o?(e=o.documentElement,g.contains(e,n)?(s=n.getBoundingClientRect(),i=Le(o),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s):void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===g.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),g.nodeName(t[0],"html")||(n=t.offset()),n.top+=g.css(t[0],"borderTopWidth",!0),n.left+=g.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-g.css(i,"marginTop",!0),left:e.left-n.left-g.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===g.css(t,"position");)t=t.offsetParent;return t||$t})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;g.fn[t]=function(n){return j(this,function(t,n,s){var o=Le(t);if(void 0===s)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):t[n]=s},t,n,arguments.length)}}),g.each(["top","left"],function(t,e){g.cssHooks[e]=Mt(f.pixelPosition,function(t,i){if(i)return i=Ot(t,e),It.test(i)?g(t).position()[e]+"px":i})}),g.each({Height:"height",Width:"width"},function(t,e){g.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){g.fn[n]=function(n,s){var o=arguments.length&&(i||"boolean"!=typeof n),r=i||(!0===n||!0===s?"margin":"border");return j(this,function(e,i,n){var s;return g.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===n?g.css(e,i,r):g.style(e,i,n,r)},e,o?n:void 0,o,null)}})}),g.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},size:function(){return this.length}}),g.fn.andSelf=g.fn.addBack,void 0===(n=function(){return g}.apply(e,[]))||(t.exports=n);var ze=i.jQuery,Fe=i.$;return g.noConflict=function(t){return i.$===g&&(i.$=Fe),t&&i.jQuery===g&&(i.jQuery=ze),g},s||(i.jQuery=i.$=g),g},"object"==typeof t&&"object"==typeof t.exports?t.exports=s.document?o(s,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return o(t)}:o(s)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(2)),o=n(i(4));(0,s.default)(document).ready(function(){o.default.on("updateCart",function(t){o.default.cart=t.reason.cart;var e=(0,s.default)(".js-cart").data("refresh-url"),i={};t&&t.reason&&(i={id_product_attribute:t.reason.idProductAttribute,id_product:t.reason.idProduct}),s.default.post(e,i).then(function(t){(0,s.default)(".cart-detailed-totals").replaceWith(t.cart_detailed_totals),(0,s.default)(".cart-summary-items-subtotal").replaceWith(t.cart_summary_items_subtotal),(0,s.default)(".cart-summary-totals").replaceWith(t.cart_summary_totals),(0,s.default)(".cart-detailed-actions").replaceWith(t.cart_detailed_actions),(0,s.default)(".cart-voucher").replaceWith(t.cart_voucher),(0,s.default)(".cart-overview").replaceWith(t.cart_detailed),(0,s.default)("#product_customization_id").val(0),(0,s.default)(".js-cart-line-product-quantity").each(function(t,e){var i=(0,s.default)(e);i.attr("value",i.val())}),o.default.emit("updatedCart",{eventType:"updateCart",resp:t})}).fail(function(t){o.default.emit("handleError",{eventType:"updateCart",resp:t})})});var t=(0,s.default)("body");t.on("click",'[data-button-action="add-to-cart"]',function(t){if(t.preventDefault(),(0,s.default)("#quantity_wanted").val()>(0,s.default)("[data-stock]").data("stock")&&0===(0,s.default)("[data-allow-oosp]").data("allow-oosp").length)(0,s.default)('[data-button-action="add-to-cart"]').attr("disabled","disabled");else{var e=function(){var e,i=(0,s.default)(t.target).closest("form"),n=i.serialize()+"&add=1&action=update",r=i.attr("action"),a=function(t){t.parents(".product-add-to-cart").first().find(".product-minimal-quantity").addClass("error"),t.parent().find("label").addClass("error")},l=i.find("input[min]");if(e=!0,l.each(function(t,i){var n=(0,s.default)(i),o=parseInt(n.attr("min"),10);o&&n.val()<o&&(a(n),e=!1)}),!e)return a(l),{v:void 0};s.default.post(r,n,null,"json").then(function(t){o.default.emit("updateCart",{reason:{idProduct:t.id_product,idProductAttribute:t.id_product_attribute,linkAction:"add-to-cart",cart:t.cart},resp:t})}).fail(function(t){o.default.emit("handleError",{eventType:"addProductToCart",resp:t})})}();if("object"==typeof e)return e.v}}),t.on("submit",'[data-link-action="add-voucher"]',function(t){t.preventDefault();var e=(0,s.default)(t.currentTarget),i=e.attr("action");0===e.find("[name=action]").length&&e.append((0,s.default)("<input>",{type:"hidden",name:"ajax",value:1})),0===e.find("[name=action]").length&&e.append((0,s.default)("<input>",{type:"hidden",name:"action",value:"update"})),s.default.post(i,e.serialize(),null,"json").then(function(e){e.hasError?(0,s.default)(".js-error").show().find(".js-error-text").text(e.errors[0]):o.default.emit("updateCart",{reason:t.target.dataset,resp:e})}).fail(function(t){o.default.emit("handleError",{eventType:"updateCart",resp:t})})})})},function(t,e){t.exports=prestashop},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(2)),o=n(i(4)),r=n(i(6)),a=n(i(8));function l(){(0,r.default)(),(0,a.default)(),function(){(0,s.default)(".checkout-step").off("click");var t="js-current-step",e="."+t,i=(0,s.default)("#checkout-personal-information-step").nextAll();(0,s.default)(e).prevAll().add(i).on("click",function(i){var n=(0,s.default)(i.target).closest(".checkout-step");n.hasClass("-unreachable")||((0,s.default)(e+", .-current").removeClass(t+" -current"),n.toggleClass("-current"),n.toggleClass(t)),o.default.emit("changedCheckoutStep",{event:i})})}()}(0,s.default)(document).ready(function(){1===(0,s.default)("#checkout").length&&l()})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(i(2)),o=n(i(4));e.default=function(){(0,s.default)(".js-edit-addresses").on("click",function(t){t.stopPropagation(),(0,s.default)("#checkout-addresses-step").trigger("click"),o.default.emit("editAddress")}),(0,s.default)("#delivery-addresses, #invoice-addresses input[type=radio]").on("click",function(){(0,s.default)(".address-item").removeClass("selected"),(0,s.default)(".address-item:has(input[type=radio]:checked)").addClass("selected")})},t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(i(2));n(i(4));e.default=function(){(0,s.default)("body")},t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var s,o=i(2),r=(s=o)&&s.__esModule?s:{default:s},a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.confirmationSelector="#payment-confirmation",this.paymentSelector="#payment-section",this.conditionsSelector="#conditions-to-approve",this.conditionAlertSelector=".js-alert-payment-conditions",this.additionalInformatonSelector=".js-additional-information",this.optionsForm=".js-payment-option-form"}return n(t,[{key:"init",value:function(){(0,r.default)(this.paymentSelector+' input[type="checkbox"][disabled]').attr("disabled",!1);var t=(0,r.default)("body");t.on("change",this.conditionsSelector+' input[type="checkbox"]',r.default.proxy(this.toggleOrderButton,this)),t.on("change",'input[name="payment-option"]',r.default.proxy(this.toggleOrderButton,this)),t.on("click",this.confirmationSelector+" button",r.default.proxy(this.confirm,this)),this.collapseOptions()}},{key:"collapseOptions",value:function(){(0,r.default)(this.additionalInformatonSelector+", "+this.optionsForm).hide()}},{key:"getSelectedOption",value:function(){return(0,r.default)('input[name="payment-option"]:checked').attr("id")}},{key:"hideConfirmation",value:function(){(0,r.default)(this.confirmationSelector).hide()}},{key:"showConfirmation",value:function(){(0,r.default)(this.confirmationSelector).show()}},{key:"toggleOrderButton",value:function(){var t=!0;(0,r.default)(this.conditionsSelector+' input[type="checkbox"]').each(function(e,i){i.checked||(t=!1)}),this.collapseOptions();var e=this.getSelectedOption();if(e||(t=!1),(0,r.default)("#"+e+"-additional-information").show(),(0,r.default)("#pay-with-"+e+"-form").show(),(0,r.default)(".js-payment-binary").hide(),(0,r.default)("#"+e).hasClass("binary")){var i=this.getPaymentOptionSelector(e);this.hideConfirmation(),(0,r.default)(i).show(),t?(0,r.default)(i).removeClass("disabled"):(0,r.default)(i).addClass("disabled")}else this.showConfirmation(),(0,r.default)(this.confirmationSelector+" button").attr("disabled",!t),t?(0,r.default)(this.conditionAlertSelector).hide():(0,r.default)(this.conditionAlertSelector).show()}},{key:"getPaymentOptionSelector",value:function(t){return".js-payment-"+(0,r.default)("#"+t).data("module-name")}},{key:"confirm",value:function(){var t=this.getSelectedOption();t&&(0,r.default)("#pay-with-"+t+"-form form").submit()}}]),t}();e.default=function(){var t=new a;return t.init(),t},t.exports=e.default},function(t,e,i){"use strict";var n,s=i(2),o=(n=s)&&n.__esModule?n:{default:n},r=!1;function a(t){r=!1,prestashop.emit("updateProductList",t),window.history.pushState(t,void 0,t.current_url),window.scrollTo(0,0)}function l(){r=!1}(0,o.default)(document).ready(function(){prestashop.on("updateFacets",function(t){!function(t){if(r);else{var e=[t,t.indexOf("?")>=0?"&":"?","from-xhr"].join("");o.default.get(e,null,null,"json").then(a).fail(l)}}(t)})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}n(i(2)),n(i(4))},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(2)),o=n(i(4)),r=i(12);(0,s.default)(document).ready(function(){(0,s.default)("body").on("change",".product-variants [data-product-attribute]",function(){(0,s.default)("input[name$='refresh']").click()}),(0,s.default)("body").on("click",".product-refresh",function(t,e){var i=(0,s.default)(this);t.preventDefault();var n="updatedProductCombination";void 0!==e&&e.eventType&&(n=e.eventType);var a=(0,r.psGetRequestParameter)("preview");a=null!==a?"&preview="+a:"";var l=(0,s.default)(t.target.form).serialize()+"&ajax=1&action=productrefresh"+a,c=(0,s.default)(t.target.form).attr("action");s.default.post(c,l,null,"json").then(function(t){o.default.emit("updateProduct",{reason:{productUrl:t.productUrl},refreshUrl:i.data("url-update"),eventType:n,resp:t})})}),o.default.on("updateProduct",function(t){void 0===t.refreshUrl&&(t.refreshUrl=!0);var e=t.eventType;s.default.post(t.reason.productUrl,{ajax:"1",action:"refresh"},null,"json").then(function(i){(0,s.default)(".product-prices").replaceWith(i.product_prices),(0,s.default)(".product-customization").replaceWith(i.product_customization),(0,s.default)(".product-variants").replaceWith(i.product_variants),(0,s.default)(".product-discounts").replaceWith(i.product_discounts),(0,s.default)(".images-container").replaceWith(i.product_cover_thumbnails),(0,s.default)(".product-additional-info").replaceWith(i.product_additional_info),(0,s.default)("#product-details").replaceWith(i.product_details);var n=void 0;(0,s.default)(i.product_add_to_cart).each(function(t,e){(0,s.default)(e).hasClass("product-add-to-cart")&&(n=(0,s.default)(e))}),function(t){var e=(0,s.default)(t),i=(0,s.default)(".product-add-to-cart");function n(t){var e=t.$addToCartSnippet.find(t.targetSelector);(0,s.default)(t.$targetParent.find(t.targetSelector)).length>0&&(e.length>0?(0,s.default)(t.$targetParent.find(t.targetSelector)).replaceWith(e[0].outerHTML):(0,s.default)(t.$targetParent.find(t.targetSelector)).html(""))}n({$addToCartSnippet:e,$targetParent:i,targetSelector:".add"});n({$addToCartSnippet:e,$targetParent:i,targetSelector:"#product-availability"});n({$addToCartSnippet:e,$targetParent:i,targetSelector:".product-minimal-quantity"})}(n);var r=parseInt(i.product_minimal_quantity,10),a=(0,s.default)("#quantity_wanted"),l=a.val();!isNaN(r)&&l<r&&"updatedProductQuantity"!==e&&(a.attr("min",r),a.val(r)),t.refreshUrl&&window.history.pushState({id_product_attribute:i.id_product_attribute},void 0,i.product_url),o.default.emit("updatedProduct",i)})})})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.psShowHide=function(){(0,o.default)(".ps-shown-by-js").show(),(0,o.default)(".ps-hidden-by-js").hide()},e.psGetRequestParameter=function(t){var e={};if(window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,function(t,i,n){e[i]=void 0!==n?n:""}),t)return e[t]?e[t]:null;return e};var n,s=i(2),o=(n=s)&&n.__esModule?n:{default:n}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(2)),o=n(i(4));(0,s.default)(document).ready(function(){var t;t={country:".js-country",address:".js-address-form"},(0,s.default)("body").on("change",t.country,function(){var e={id_country:(0,s.default)(t.country).val(),id_address:(0,s.default)(t.address+" form").data("id-address")},i=(0,s.default)(t.address+" form").data("refresh-url"),n=t.address+" input";s.default.post(i,e).then(function(e){var i=[];(0,s.default)(n).each(function(){i[(0,s.default)(this).prop("name")]=(0,s.default)(this).val()}),(0,s.default)(t.address).replaceWith(e.address_form),(0,s.default)(n).each(function(){(0,s.default)(this).val(i[(0,s.default)(this).prop("name")])}),o.default.emit("updatedAddressForm",{target:(0,s.default)(t.address),resp:e})}).fail(function(t){o.default.emit("handleError",{eventType:"updateAddressForm",resp:t})})})})},function(t,e){"use strict";function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"==typeof t}function s(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},i.prototype.emit=function(t){var e,i,r,a,l,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(o(i=this._events[t]))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(s(i))for(a=Array.prototype.slice.call(arguments,1),r=(c=i.slice()).length,l=0;l<r;l++)c[l].apply(this,a);return!0},i.prototype.addListener=function(t,e){var r;if(!n(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned&&(r=o(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(t,e){if(!n(e))throw TypeError("listener must be a function");var i=!1;function s(){this.removeListener(t,s),i||(i=!0,e.apply(this,arguments))}return s.listener=e,this.on(t,s),this},i.prototype.removeListener=function(t,e){var i,o,r,a;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=(i=this._events[t]).length,o=-1,i===e||n(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(i)){for(a=r;a-- >0;)if(i[a]===e||i[a].listener&&i[a].listener===e){o=a;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n(i=this._events[t]))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},i.prototype.listeners=function(t){return this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},i.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(n(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}}]),function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=26)}([function(t,e){t.exports=jQuery},function(t,e){t.exports=prestashop},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=i(0),r=(n=o)&&n.__esModule?n:{default:n},a=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.el=e}return s(t,[{key:"init",value:function(){this.el.on("show.bs.dropdown",function(t,e){e?(0,r.default)("#"+e).find(".dropdown-menu").first().stop(!0,!0).slideDown():(0,r.default)(t.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),this.el.on("hide.bs.dropdown",function(t,e){e?(0,r.default)("#"+e).find(".dropdown-menu").first().stop(!0,!0).slideUp():(0,r.default)(t.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()}),this.el.find("select.link").each(function(t,e){(0,r.default)(e).on("change",function(t){window.location=(0,r.default)(this).val()})})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=i(0),r=(n=o)&&n.__esModule?n:{default:n},a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return s(t,[{key:"init",value:function(){(0,r.default)(".js-product-miniature").each(function(t,e){var i,n=(0,r.default)(e).find(".discount-percentage"),s=(0,r.default)(e).find(".on-sale"),o=(0,r.default)(e).find(".new");n.length&&(o.css("top",2*n.height()+10),n.css("top",-(0,r.default)(e).find(".thumbnail-container").height()+(0,r.default)(e).find(".product-description").height()+10)),s.length&&(n.css("top",parseFloat(n.css("top"))+s.height()+10),o.css("top",2*n.height()+s.height()+20)),(0,r.default)(e).find(".color").length>5&&(i=0,(0,r.default)(e).find(".color").each(function(t,e){t>4&&((0,r.default)(e).hide(),i++)}),(0,r.default)(e).find(".js-count").append("+"+i))})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";var n,s,o;!function(t){function e(t){var e=t.length,n=i.type(t);return"function"!==n&&!i.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}if(!t.jQuery){var i=function t(e,i){return new t.fn.init(e,i)};i.isWindow=function(t){return t&&t===t.window},i.type=function(t){return t?"object"==typeof t||"function"==typeof t?s[r.call(t)]||"object":typeof t:t+""},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||o.call(t,e)},i.each=function(t,i,n){var s=0,o=t.length,r=e(t);if(n){if(r)for(;s<o&&!1!==i.apply(t[s],n);s++);else for(s in t)if(t.hasOwnProperty(s)&&!1===i.apply(t[s],n))break}else if(r)for(;s<o&&!1!==i.call(t[s],s,t[s]);s++);else for(s in t)if(t.hasOwnProperty(s)&&!1===i.call(t[s],s,t[s]))break;return t},i.data=function(t,e,s){if(void 0===s){var o=t[i.expando],r=o&&n[o];if(void 0===e)return r;if(r&&e in r)return r[e]}else if(void 0!==e){var a=t[i.expando]||(t[i.expando]=++i.uuid);return n[a]=n[a]||{},n[a][e]=s,s}},i.removeData=function(t,e){var s=t[i.expando],o=s&&n[s];o&&(e?i.each(e,function(t,e){delete o[e]}):delete n[s])},i.extend=function(){var t,e,n,s,o,r,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[l]||{},l++),"object"!=typeof a&&"function"!==i.type(a)&&(a={}),l===c&&(a=this,l--);l<c;l++)if(o=arguments[l])for(s in o)o.hasOwnProperty(s)&&(t=a[s],a!==(n=o[s])&&(u&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,r=t&&i.isArray(t)?t:[]):r=t&&i.isPlainObject(t)?t:{},a[s]=i.extend(u,r,n)):void 0!==n&&(a[s]=n)));return a},i.queue=function(t,n,s){if(t){n=(n||"fx")+"queue";var o=i.data(t,n);return s?(!o||i.isArray(s)?o=i.data(t,n,(a=[],(r=s)&&(e(Object(r))?function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;)t[s++]=e[n++];if(i!=i)for(;void 0!==e[n];)t[s++]=e[n++];t.length=s}(a,"string"==typeof r?[r]:r):[].push.call(a,r)),a)):o.push(s),o):o||[]}var r,a},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var s=i.queue(n,e),o=s.shift();"inprogress"===o&&(o=s.shift()),o&&("fx"===e&&s.unshift("inprogress"),o.call(n,function(){i.dequeue(n,e)}))})},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var t=this[0],e=function(e){for(var i=t.offsetParent;i&&"html"!==i.nodeName.toLowerCase()&&i.style&&"static"===i.style.position;)i=i.offsetParent;return i||document}(),n=this.offset(),s=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:i(e).offset();return n.top-=parseFloat(t.style.marginTop)||0,n.left-=parseFloat(t.style.marginLeft)||0,e.style&&(s.top+=parseFloat(e.style.borderTopWidth)||0,s.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-s.top,left:n.left-s.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var s={},o=s.hasOwnProperty,r=s.toString,a="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<a.length;l++)s["[object "+a[l]+"]"]=a[l].toLowerCase();i.fn.init.prototype=i.fn,t.Velocity={Utilities:i}}}(window),o=function(){return function(t,e,i,n){function s(t){return b.isWrapped(t)?t=v.call(t):b.isNode(t)&&(t=[t]),t}function o(t){var e=d.data(t,"velocity");return null===e?n:e}function r(t,e){var i=o(t);i&&i.delayTimer&&!i.delayPaused&&(i.delayRemaining=i.delay-e+i.delayBegin,i.delayPaused=!0,clearTimeout(i.delayTimer.setTimeout))}function a(t,e){var i=o(t);i&&i.delayTimer&&i.delayPaused&&(i.delayPaused=!1,i.delayTimer.setTimeout=setTimeout(i.delayTimer.next,i.delayRemaining))}function l(t,i,n,s){function o(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function a(t){return 3*t}function l(t,e,i){return((o(e,i)*t+r(e,i))*t+a(e))*t}function c(t,e,i){return 3*o(e,i)*t*t+2*r(e,i)*t+a(e)}function u(e){for(var i=0,s=1,o=g-1;s!==o&&_[s]<=e;++s)i+=v;var r=i+(e-_[--s])/(_[s+1]-_[s])*v,a=c(r,t,n);return a>=p?function(e,i){for(var s=0;s<d;++s){var o=c(i,t,n);if(0===o)return i;i-=(l(i,t,n)-e)/o}return i}(e,r):0===a?r:function(e,i,s){var o,r,a=0;do{(o=l(r=i+(s-i)/2,t,n)-e)>0?s=r:i=r}while(Math.abs(o)>f&&++a<m);return r}(e,i,i+v)}function h(){w=!0,t===i&&n===s||function(){for(var e=0;e<g;++e)_[e]=l(e*v,t,n)}()}var d=4,p=.001,f=1e-7,m=10,g=11,v=1/(g-1),y="Float32Array"in e;if(4!==arguments.length)return!1;for(var b=0;b<4;++b)if("number"!=typeof arguments[b]||isNaN(arguments[b])||!isFinite(arguments[b]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var _=y?new Float32Array(g):new Array(g),w=!1,x=function(e){return w||h(),t===i&&n===s?e:0===e?0:1===e?1:l(u(e),i,s)};x.getControlPoints=function(){return[{x:t,y:i},{x:n,y:s}]};var C="generateBezier("+[t,i,n,s]+")";return x.toString=function(){return C},x}function c(t,e){var i=t;return b.isString(t)?C.Easings[t]||(i=!1):i=b.isArray(t)&&1===t.length?function(t){return function(e){return Math.round(e*t)*(1/t)}}.apply(null,t):b.isArray(t)&&2===t.length?S.apply(null,t.concat([e])):!(!b.isArray(t)||4!==t.length)&&l.apply(null,t),!1===i&&(i=C.Easings[C.defaults.easing]?C.defaults.easing:x),i}function u(t){if(t){var e=C.timestamp&&!0!==t?t:g.now(),i=C.State.calls.length;i>1e4&&(C.State.calls=function(t){for(var e=-1,i=t?t.length:0,n=[];++e<i;){var s=t[e];s&&n.push(s)}return n}(C.State.calls),i=C.State.calls.length);for(var s=0;s<i;s++)if(C.State.calls[s]){var r=C.State.calls[s],a=r[0],l=r[2],c=r[3],p=!!c,m=null,v=r[5],y=r[6];if(c||(c=C.State.calls[s][3]=e-16),v){if(!0!==v.resume)continue;c=r[3]=Math.round(e-y-16),r[5]=null}y=r[6]=e-c;for(var _=Math.min(y/l.duration,1),w=0,x=a.length;w<x;w++){var S=a[w],T=S.element;if(o(T)){var E=!1;if(l.display!==n&&null!==l.display&&"none"!==l.display){if("flex"===l.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(t,e){k.setPropertyValue(T,"display",e)})}k.setPropertyValue(T,"display",l.display)}for(var I in l.visibility!==n&&"hidden"!==l.visibility&&k.setPropertyValue(T,"visibility",l.visibility),S)if(S.hasOwnProperty(I)&&"element"!==I){var A,P=S[I],$=b.isString(P.easing)?C.Easings[P.easing]:P.easing;if(b.isString(P.pattern)){var O=1===_?function(t,e,i){var n=P.endValue[e];return i?Math.round(n):n}:function(t,e,i){var n=P.startValue[e],s=P.endValue[e]-n,o=n+s*$(_,l,s);return i?Math.round(o):o};A=P.pattern.replace(/{(\d+)(!)?}/g,O)}else if(1===_)A=P.endValue;else{var M=P.endValue-P.startValue;A=P.startValue+M*$(_,l,M)}if(!p&&A===P.currentValue)continue;if(P.currentValue=A,"tween"===I)m=A;else{var N;if(k.Hooks.registered[I]){N=k.Hooks.getRoot(I);var H=o(T).rootPropertyValueCache[N];H&&(P.rootPropertyValue=H)}var j=k.setPropertyValue(T,I,P.currentValue+(f<9&&0===parseFloat(A)?"":P.unitType),P.rootPropertyValue,P.scrollData);k.Hooks.registered[I]&&(k.Normalizations.registered[N]?o(T).rootPropertyValueCache[N]=k.Normalizations.registered[N]("extract",null,j[1]):o(T).rootPropertyValueCache[N]=j[1]),"transform"===j[0]&&(E=!0)}}l.mobileHA&&o(T).transformCache.translate3d===n&&(o(T).transformCache.translate3d="(0px, 0px, 0px)",E=!0),E&&k.flushTransformCache(T)}}l.display!==n&&"none"!==l.display&&(C.State.calls[s][2].display=!1),l.visibility!==n&&"hidden"!==l.visibility&&(C.State.calls[s][2].visibility=!1),l.progress&&l.progress.call(r[1],r[1],_,Math.max(0,c+l.duration-e),c,m),1===_&&h(s)}}C.State.isTicking&&D(u)}function h(t,e){if(!C.State.calls[t])return!1;for(var i=C.State.calls[t][0],s=C.State.calls[t][1],r=C.State.calls[t][2],a=C.State.calls[t][4],l=!1,c=0,u=i.length;c<u;c++){var h=i[c].element;e||r.loop||("none"===r.display&&k.setPropertyValue(h,"display",r.display),"hidden"===r.visibility&&k.setPropertyValue(h,"visibility",r.visibility));var p=o(h);if(!0!==r.loop&&(d.queue(h)[1]===n||!/\.velocityQueueEntryFlag/i.test(d.queue(h)[1]))&&p){p.isAnimating=!1,p.rootPropertyValueCache={};var f=!1;d.each(k.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,s=p.transformCache[e];p.transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(s)&&(f=!0,delete p.transformCache[e])}),r.mobileHA&&(f=!0,delete p.transformCache.translate3d),f&&k.flushTransformCache(h),k.Values.removeClass(h,"velocity-animating")}if(!e&&r.complete&&!r.loop&&c===u-1)try{r.complete.call(s,s)}catch(t){setTimeout(function(){throw t},1)}a&&!0!==r.loop&&a(s),p&&!0===r.loop&&!e&&(d.each(p.tweensContainer,function(t,e){if(/^rotate/.test(t)&&(parseFloat(e.startValue)-parseFloat(e.endValue))%360==0){var i=e.startValue;e.startValue=e.endValue,e.endValue=i}/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),C(h,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&d.dequeue(h,r.queue)}C.State.calls[t]=!1;for(var m=0,g=C.State.calls.length;m<g;m++)if(!1!==C.State.calls[m]){l=!0;break}!1===l&&(C.State.isTicking=!1,delete C.State.calls,C.State.calls=[])}var d,p,f=function(){if(i.documentMode)return i.documentMode;for(var t=7;t>4;t--){var e=i.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return n}(),m=(p=0,e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(t){var e,i=(new Date).getTime();return e=Math.max(0,16-(i-p)),p=i+e,setTimeout(function(){t(i+e)},e)}),g=function(){var t=e.performance||{};if("function"!=typeof t.now){var i=t.timing&&t.timing.navigationStart?t.timing.navigationStart:(new Date).getTime();t.now=function(){return(new Date).getTime()-i}}return t}(),v=function(){var t=Array.prototype.slice;try{return t.call(i.documentElement),t}catch(e){return function(e,i){var n=this.length;if("number"!=typeof e&&(e=0),"number"!=typeof i&&(i=n),this.slice)return t.call(this,e,i);var s,o=[],r=e>=0?e:Math.max(0,n+e),a=(i<0?n+i:Math.min(i,n))-r;if(a>0)if(o=new Array(a),this.charAt)for(s=0;s<a;s++)o[s]=this.charAt(r+s);else for(s=0;s<a;s++)o[s]=this[r+s];return o}}}(),y=function(){return Array.prototype.includes?function(t,e){return t.includes(e)}:Array.prototype.indexOf?function(t,e){return t.indexOf(e)>=0}:function(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1}},b={isNumber:function(t){return"number"==typeof t},isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isWrapped:function(t){return t&&t!==e&&b.isNumber(t.length)&&!b.isString(t)&&!b.isFunction(t)&&!b.isNode(t)&&(0===t.length||b.isNode(t[0]))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}},_=!1;if(t.fn&&t.fn.jquery?(d=t,_=!0):d=e.Velocity.Utilities,f<=8&&!_)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(f<=7)){var w=400,x="swing",C={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:w,easing:x,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(t){d.data(t,"velocity",{isSVG:b.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:0},debug:!1,timestamp:!0,pauseAll:function(t){var e=(new Date).getTime();d.each(C.State.calls,function(e,i){if(i){if(t!==n&&(i[2].queue!==t||!1===i[2].queue))return!0;i[5]={resume:!1}}}),d.each(C.State.delayedElements,function(t,i){i&&r(i,e)})},resumeAll:function(t){(new Date).getTime();d.each(C.State.calls,function(e,i){if(i){if(t!==n&&(i[2].queue!==t||!1===i[2].queue))return!0;i[5]&&(i[5].resume=!0)}}),d.each(C.State.delayedElements,function(t,e){e&&a(e)})}};e.pageYOffset!==n?(C.State.scrollAnchor=e,C.State.scrollPropertyLeft="pageXOffset",C.State.scrollPropertyTop="pageYOffset"):(C.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,C.State.scrollPropertyLeft="scrollLeft",C.State.scrollPropertyTop="scrollTop");var S=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,n){var s={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:s.v,dv:t(s)}}return function i(n,s,o){var r,a,l,c,u,h,d,p,f,m,g,v={x:-1,v:0,tension:null,friction:null},y=[0],b=0;for(n=parseFloat(n)||500,s=parseFloat(s)||20,o=o||null,v.tension=n,v.friction=s,(r=null!==o)?a=(b=i(n,s))/o*.016:a=.016;u=a,void 0,void 0,void 0,void 0,void 0,void 0,h={dx:(c=l||v).v,dv:t(c)},d=e(c,.5*u,h),p=e(c,.5*u,d),f=e(c,u,p),m=1/6*(h.dx+2*(d.dx+p.dx)+f.dx),g=1/6*(h.dv+2*(d.dv+p.dv)+f.dv),c.x=c.x+m*u,c.v=c.v+g*u,l=c,y.push(1+l.x),b+=16,Math.abs(l.x)>1e-4&&Math.abs(l.v)>1e-4;);return r?function(t){return y[t*(y.length-1)|0]}:b}}();C.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){C.Easings[e[0]]=l.apply(null,e[1])});var k=C.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<k.Lists.colors.length;t++){var e="color"===k.Lists.colors[t]?"0 0 0 1":"255 255 255 1";k.Hooks.templates[k.Lists.colors[t]]=["Red Green Blue Alpha",e]}var i,n,s;if(f)for(i in k.Hooks.templates)if(k.Hooks.templates.hasOwnProperty(i)){s=(n=k.Hooks.templates[i])[0].split(" ");var o=n[1].match(k.RegEx.valueSplit);"Color"===s[0]&&(s.push(s.shift()),o.push(o.shift()),k.Hooks.templates[i]=[s.join(" "),o.join(" ")])}for(i in k.Hooks.templates)if(k.Hooks.templates.hasOwnProperty(i))for(var r in s=(n=k.Hooks.templates[i])[0].split(" "))if(s.hasOwnProperty(r)){var a=i+s[r],l=r;k.Hooks.registered[a]=[i,l]}},getRoot:function(t){var e=k.Hooks.registered[t];return e?e[0]:t},getUnit:function(t,e){var i=(t.substr(e||0,5).match(/^[a-z%]+/)||[])[0]||"";return i&&y(k.Lists.units,i)?i:""},fixColors:function(t){return t.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(t,e,i){return k.Lists.colorNames.hasOwnProperty(i)?(e||"rgba(")+k.Lists.colorNames[i]+(e?"":",1)"):e+i})},cleanRootPropertyValue:function(t,e){return k.RegEx.valueUnwrap.test(e)&&(e=e.match(k.RegEx.valueUnwrap)[1]),k.Values.isCSSNullValue(e)&&(e=k.Hooks.templates[t][1]),e},extractValue:function(t,e){var i=k.Hooks.registered[t];if(i){var n=i[0],s=i[1];return(e=k.Hooks.cleanRootPropertyValue(n,e)).toString().match(k.RegEx.valueSplit)[s]}return e},injectValue:function(t,e,i){var n=k.Hooks.registered[t];if(n){var s,o=n[0],r=n[1];return(s=(i=k.Hooks.cleanRootPropertyValue(o,i)).toString().match(k.RegEx.valueSplit))[r]=e,s.join(" ")}return i}},Normalizations:{registered:{clip:function(t,e,i){switch(t){case"name":return"clip";case"extract":var n;return k.RegEx.wrappedValueAlreadyExtracted.test(i)?n=i:n=(n=i.toString().match(k.RegEx.valueUnwrap))?n[1].replace(/,(\s+)?/g," "):i,n;case"inject":return"rect("+i+")"}},blur:function(t,e,i){switch(t){case"name":return C.State.isFirefox?"filter":"-webkit-filter";case"extract":var n=parseFloat(i);if(!n&&0!==n){var s=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=s?s[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(f<=8)switch(t){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);return n?n[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return i}}},register:function(){function t(t,e,i){if("border-box"===k.getPropertyValue(e,"boxSizing").toString().toLowerCase()===(i||!1)){var n,s,o=0,r="width"===t?["Left","Right"]:["Top","Bottom"],a=["padding"+r[0],"padding"+r[1],"border"+r[0]+"Width","border"+r[1]+"Width"];for(n=0;n<a.length;n++)s=parseFloat(k.getPropertyValue(e,a[n])),isNaN(s)||(o+=s);return i?-o:o}return 0}function e(e,i){return function(n,s,o){switch(n){case"name":return e;case"extract":return parseFloat(o)+t(e,s,i);case"inject":return parseFloat(o)-t(e,s,i)+"px"}}}f&&!(f>9)||C.State.isGingerbread||(k.Lists.transformsBase=k.Lists.transformsBase.concat(k.Lists.transforms3D));for(var i=0;i<k.Lists.transformsBase.length;i++)!function(){var t=k.Lists.transformsBase[i];k.Normalizations.registered[t]=function(e,i,s){switch(e){case"name":return"transform";case"extract":return o(i)===n||o(i).transformCache[t]===n?/^scale/i.test(t)?1:0:o(i).transformCache[t].replace(/[()]/g,"");case"inject":var r=!1;switch(t.substr(0,t.length-1)){case"translate":r=!/(%|px|em|rem|vw|vh|\d)$/i.test(s);break;case"scal":case"scale":C.State.isAndroid&&o(i).transformCache[t]===n&&s<1&&(s=1),r=!/(\d)$/i.test(s);break;case"skew":case"rotate":r=!/(deg|\d)$/i.test(s)}return r||(o(i).transformCache[t]="("+s+")"),o(i).transformCache[t]}}}();for(var s=0;s<k.Lists.colors.length;s++)!function(){var t=k.Lists.colors[s];k.Normalizations.registered[t]=function(e,i,s){switch(e){case"name":return t;case"extract":var o;if(k.RegEx.wrappedValueAlreadyExtracted.test(s))o=s;else{var r,a={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(s)?r=a[s]!==n?a[s]:a.black:k.RegEx.isHex.test(s)?r="rgb("+k.Values.hexToRgb(s).join(" ")+")":/^rgba?\(/i.test(s)||(r=a.black),o=(r||s).toString().match(k.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!f||f>8)&&3===o.split(" ").length&&(o+=" 1"),o;case"inject":return/^rgb/.test(s)?s:(f<=8?4===s.split(" ").length&&(s=s.split(/\s+/).slice(0,3).join(" ")):3===s.split(" ").length&&(s+=" 1"),(f<=8?"rgb":"rgba")+"("+s.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();k.Normalizations.registered.innerWidth=e("width",!0),k.Normalizations.registered.innerHeight=e("height",!0),k.Normalizations.registered.outerWidth=e("width"),k.Normalizations.registered.outerHeight=e("height")}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||C.State.isAndroid&&!C.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(C.State.prefixMatches[t])return[C.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],i=0,n=e.length;i<n;i++){var s;if(s=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()}),b.isString(C.State.prefixElement.style[s]))return C.State.prefixMatches[t]=s,[s,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n}),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return!t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){if(t)if(t.classList)t.classList.add(e);else if(b.isString(t.className))t.className+=(t.className.length?" ":"")+e;else{var i=t.getAttribute(f<=7?"className":"class")||"";t.setAttribute("class",i+(i?" ":"")+e)}},removeClass:function(t,e){if(t)if(t.classList)t.classList.remove(e);else if(b.isString(t.className))t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ");else{var i=t.getAttribute(f<=7?"className":"class")||"";t.setAttribute("class",i.replace(new RegExp("(^|s)"+e.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(t,i,s,r){function a(t,i){var s=0;if(f<=8)s=d.css(t,i);else{var l=!1;/^(width|height)$/.test(i)&&0===k.getPropertyValue(t,"display")&&(l=!0,k.setPropertyValue(t,"display",k.Values.getDisplayType(t)));var c,u=function(){l&&k.setPropertyValue(t,"display","none")};if(!r){if("height"===i&&"border-box"!==k.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var h=t.offsetHeight-(parseFloat(k.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(k.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(k.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(k.getPropertyValue(t,"paddingBottom"))||0);return u(),h}if("width"===i&&"border-box"!==k.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var p=t.offsetWidth-(parseFloat(k.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(k.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(k.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(k.getPropertyValue(t,"paddingRight"))||0);return u(),p}}c=o(t)===n?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===i&&(i="borderTopColor"),""!==(s=9===f&&"filter"===i?c.getPropertyValue(i):c[i])&&null!==s||(s=t.style[i]),u()}if("auto"===s&&/^(top|right|bottom|left)$/i.test(i)){var m=a(t,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(i))&&(s=d(t).position()[i]+"px")}return s}var l;if(k.Hooks.registered[i]){var c=i,u=k.Hooks.getRoot(c);s===n&&(s=k.getPropertyValue(t,k.Names.prefixCheck(u)[0])),k.Normalizations.registered[u]&&(s=k.Normalizations.registered[u]("extract",t,s)),l=k.Hooks.extractValue(c,s)}else if(k.Normalizations.registered[i]){var h,p;"transform"!==(h=k.Normalizations.registered[i]("name",t))&&(p=a(t,k.Names.prefixCheck(h)[0]),k.Values.isCSSNullValue(p)&&k.Hooks.templates[i]&&(p=k.Hooks.templates[i][1])),l=k.Normalizations.registered[i]("extract",t,p)}if(!/^[\d-]/.test(l)){var m=o(t);if(m&&m.isSVG&&k.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=t.getBBox()[i]}catch(t){l=0}else l=t.getAttribute(i);else l=a(t,k.Names.prefixCheck(i)[0])}return k.Values.isCSSNullValue(l)&&(l=0),C.debug,l},setPropertyValue:function(t,i,n,s,r){var a=i;if("scroll"===i)r.container?r.container["scroll"+r.direction]=n:"Left"===r.direction?e.scrollTo(n,r.alternateValue):e.scrollTo(r.alternateValue,n);else if(k.Normalizations.registered[i]&&"transform"===k.Normalizations.registered[i]("name",t))k.Normalizations.registered[i]("inject",t,n),a="transform",n=o(t).transformCache[i];else{if(k.Hooks.registered[i]){var l=i,c=k.Hooks.getRoot(i);s=s||k.getPropertyValue(t,c),n=k.Hooks.injectValue(l,n,s),i=c}if(k.Normalizations.registered[i]&&(n=k.Normalizations.registered[i]("inject",t,n),i=k.Normalizations.registered[i]("name",t)),a=k.Names.prefixCheck(i)[0],f<=8)try{t.style[a]=n}catch(t){C.debug}else{var u=o(t);u&&u.isSVG&&k.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[a]=n}C.debug}return[a,n]},flushTransformCache:function(t){var e="",i=o(t);if((f||C.State.isAndroid&&!C.State.isChrome)&&i&&i.isSVG){var n=function(e){return parseFloat(k.getPropertyValue(t,e))},s={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]};d.each(o(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),s[t]&&(e+=t+"("+s[t].join(" ")+") ",delete s[t])})}else{var r,a;d.each(o(t).transformCache,function(i){if(r=o(t).transformCache[i],"transformPerspective"===i)return a=r,!0;9===f&&"rotateZ"===i&&(i="rotate"),e+=i+r+" "}),a&&(e="perspective"+a+" "+e)}k.setPropertyValue(t,"transform",e)}};k.Hooks.register(),k.Normalizations.register(),C.hook=function(t,e,i){var r;return t=s(t),d.each(t,function(t,s){if(o(s)===n&&C.init(s),i===n)r===n&&(r=k.getPropertyValue(s,e));else{var a=k.setPropertyValue(s,e,i);"transform"===a[0]&&C.CSS.flushTransformCache(s),r=a}}),r};var T=function t(){function l(){return f?T.promise||null:m}var p,f,m,g,v,_,x,S=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||b.isString(arguments[0].properties));b.isWrapped(this)?(f=!1,g=0,v=this,m=this):(f=!0,g=1,v=S?arguments[0].elements||arguments[0].e:arguments[0]);var T={promise:null,resolver:null,rejecter:null};if(f&&C.Promise&&(T.promise=new C.Promise(function(t,e){T.resolver=t,T.rejecter=e})),S?(_=arguments[0].properties||arguments[0].p,x=arguments[0].options||arguments[0].o):(_=arguments[g],x=arguments[g+1]),v=s(v)){var D,E=v.length,I=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(_)&&!d.isPlainObject(x)){x={};for(var A=g+1;A<arguments.length;A++)b.isArray(arguments[A])||!/^(fast|normal|slow)$/i.test(arguments[A])&&!/^\d/.test(arguments[A])?b.isString(arguments[A])||b.isArray(arguments[A])?x.easing=arguments[A]:b.isFunction(arguments[A])&&(x.complete=arguments[A]):x.duration=arguments[A]}switch(_){case"scroll":D="scroll";break;case"reverse":D="reverse";break;case"pause":var P=(new Date).getTime();return d.each(v,function(t,e){r(e,P)}),d.each(C.State.calls,function(t,e){var i=!1;e&&d.each(e[1],function(t,s){var o=x===n?"":x;return!0!==o&&e[2].queue!==o&&(x!==n||!1!==e[2].queue)||(d.each(v,function(t,n){if(n===s)return e[5]={resume:!1},i=!0,!1}),!i&&void 0)})}),l();case"resume":return d.each(v,function(t,e){a(e)}),d.each(C.State.calls,function(t,e){var i=!1;e&&d.each(e[1],function(t,s){var o=x===n?"":x;return!0!==o&&e[2].queue!==o&&(x!==n||!1!==e[2].queue)||!e[5]||(d.each(v,function(t,n){if(n===s)return e[5].resume=!0,i=!0,!1}),!i&&void 0)})}),l();case"finish":case"finishAll":case"stop":d.each(v,function(t,e){o(e)&&o(e).delayTimer&&(clearTimeout(o(e).delayTimer.setTimeout),o(e).delayTimer.next&&o(e).delayTimer.next(),delete o(e).delayTimer),"finishAll"!==_||!0!==x&&!b.isString(x)||(d.each(d.queue(e,b.isString(x)?x:""),function(t,e){b.isFunction(e)&&e()}),d.queue(e,b.isString(x)?x:"",[]))});var $=[];return d.each(C.State.calls,function(t,e){e&&d.each(e[1],function(i,s){var r=x===n?"":x;if(!0!==r&&e[2].queue!==r&&(x!==n||!1!==e[2].queue))return!0;d.each(v,function(i,n){if(n===s)if((!0===x||b.isString(x))&&(d.each(d.queue(n,b.isString(x)?x:""),function(t,e){b.isFunction(e)&&e(null,!0)}),d.queue(n,b.isString(x)?x:"",[])),"stop"===_){var a=o(n);a&&a.tweensContainer&&!1!==r&&d.each(a.tweensContainer,function(t,e){e.endValue=e.currentValue}),$.push(t)}else"finish"!==_&&"finishAll"!==_||(e[2].duration=1)})})}),"stop"===_&&(d.each($,function(t,e){h(e,!0)}),T.promise&&T.resolver(v)),l();default:if(!d.isPlainObject(_)||b.isEmptyObject(_)){if(b.isString(_)&&C.Redirects[_]){var O=(p=d.extend({},x)).duration,M=p.delay||0;return!0===p.backwards&&(v=d.extend(!0,[],v).reverse()),d.each(v,function(t,e){parseFloat(p.stagger)?p.delay=M+parseFloat(p.stagger)*t:b.isFunction(p.stagger)&&(p.delay=M+p.stagger.call(e,t,E)),p.drag&&(p.duration=parseFloat(O)||(/^(callout|transition)/.test(_)?1e3:w),p.duration=Math.max(p.duration*(p.backwards?1-t/E:(t+1)/E),.75*p.duration,200)),C.Redirects[_].call(e,e,p||{},t,E,v,T.promise?T:n)}),l()}var N="Velocity: First argument ("+_+") was not a property map, a known action, or a registered redirect. Aborting.";return T.promise?T.rejecter(new Error(N)):e.console,l()}D="start"}var H={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},j=[];d.each(v,function(t,s){b.isNode(s)&&function(t,s){function r(r){var l,f,m,g,w,S;if(h.begin&&0===I)try{h.begin.call(v,v)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===D){var A,P,$,O=/^x$/i.test(h.axis)?"Left":"Top",M=parseFloat(h.offset)||0;h.container?b.isWrapped(h.container)||b.isNode(h.container)?(h.container=h.container[0]||h.container,$=(A=h.container["scroll"+O])+d(t).position()[O.toLowerCase()]+M):h.container=null:(A=C.State.scrollAnchor[C.State["scrollProperty"+O]],P=C.State.scrollAnchor[C.State["scrollProperty"+("Left"===O?"Top":"Left")]],$=d(t).offset()[O.toLowerCase()]+M),p={scroll:{rootPropertyValue:!1,startValue:A,currentValue:A,endValue:$,unitType:"",easing:h.easing,scrollData:{container:h.container,direction:O,alternateValue:P}},element:t},C.debug}else if("reverse"===D){if(!(l=o(t)))return;if(!l.tweensContainer)return void d.dequeue(t,h.queue);for(var N in"none"===l.opts.display&&(l.opts.display="auto"),"hidden"===l.opts.visibility&&(l.opts.visibility="visible"),l.opts.loop=!1,l.opts.begin=null,l.opts.complete=null,x.easing||delete h.easing,x.duration||delete h.duration,h=d.extend({},l.opts,h),f=d.extend(!0,{},l?l.tweensContainer:null))if(f.hasOwnProperty(N)&&"element"!==N){var L=f[N].startValue;f[N].startValue=f[N].currentValue=f[N].endValue,f[N].endValue=L,b.isEmptyObject(x)||(f[N].easing=h.easing),C.debug}p=f}else if("start"===D){(l=o(t))&&l.tweensContainer&&!0===l.isAnimating&&(f=l.tweensContainer);var z=function(s,o){var r,c=k.Hooks.getRoot(s),u=!1,m=o[0],g=o[1],v=o[2];if(l&&l.isSVG||"tween"===c||!1!==k.Names.prefixCheck(c)[1]||k.Normalizations.registered[c]!==n){(h.display!==n&&null!==h.display&&"none"!==h.display||h.visibility!==n&&"hidden"!==h.visibility)&&/opacity|filter/.test(s)&&!v&&0!==m&&(v=0),h._cacheValues&&f&&f[s]?(v===n&&(v=f[s].endValue+f[s].unitType),u=l.rootPropertyValueCache[c]):k.Hooks.registered[s]?v===n?(u=k.getPropertyValue(t,c),v=k.getPropertyValue(t,s,u)):u=k.Hooks.templates[c][1]:v===n&&(v=k.getPropertyValue(t,s));var y,_,w,x=!1,S=function(t,e){var i,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i||(i=k.Values.getUnitType(t)),[n,i]};if(v!==m&&b.isString(v)&&b.isString(m)){r="";var T=0,D=0,E=[],I=[],A=0,P=0,$=0;for(v=k.Hooks.fixColors(v),m=k.Hooks.fixColors(m);T<v.length&&D<m.length;){var O=v[T],M=m[D];if(/[\d\.-]/.test(O)&&/[\d\.-]/.test(M)){for(var N=O,j=M,L=".",z=".";++T<v.length;){if((O=v[T])===L)L="..";else if(!/\d/.test(O))break;N+=O}for(;++D<m.length;){if((M=m[D])===z)z="..";else if(!/\d/.test(M))break;j+=M}var F=k.Hooks.getUnit(v,T),W=k.Hooks.getUnit(m,D);if(T+=F.length,D+=W.length,F===W)N===j?r+=N+F:(r+="{"+E.length+(P?"!":"")+"}"+F,E.push(parseFloat(N)),I.push(parseFloat(j)));else{var R=parseFloat(N),B=parseFloat(j);r+=(A<5?"calc":"")+"("+(R?"{"+E.length+(P?"!":"")+"}":"0")+F+" + "+(B?"{"+(E.length+(R?1:0))+(P?"!":"")+"}":"0")+W+")",R&&(E.push(R),I.push(0)),B&&(E.push(0),I.push(B))}}else{if(O!==M){A=0;break}r+=O,T++,D++,0===A&&"c"===O||1===A&&"a"===O||2===A&&"l"===O||3===A&&"c"===O||A>=4&&"("===O?A++:(A&&A<5||A>=4&&")"===O&&--A<5)&&(A=0),0===P&&"r"===O||1===P&&"g"===O||2===P&&"b"===O||3===P&&"a"===O||P>=3&&"("===O?(3===P&&"a"===O&&($=1),P++):$&&","===O?++$>3&&(P=$=0):($&&P<($?5:4)||P>=($?4:3)&&")"===O&&--P<($?5:4))&&(P=$=0)}}T===v.length&&D===m.length||(C.debug,r=n),r&&(E.length?(C.debug,v=E,m=I,_=w=""):r=n)}if(r||(v=(y=S(s,v))[0],w=y[1],m=(y=S(s,m))[0].replace(/^([+-\/*])=/,function(t,e){return x=e,""}),_=y[1],v=parseFloat(v)||0,m=parseFloat(m)||0,"%"===_&&(/^(fontSize|lineHeight)$/.test(s)?(m/=100,_="em"):/^scale/.test(s)?(m/=100,_=""):/(Red|Green|Blue)$/i.test(s)&&(m=m/100*255,_=""))),/[\/*]/.test(x))_=w;else if(w!==_&&0!==v)if(0===m)_=w;else{a=a||function(){var n={myParent:t.parentNode||i.body,position:k.getPropertyValue(t,"position"),fontSize:k.getPropertyValue(t,"fontSize")},s=n.position===H.lastPosition&&n.myParent===H.lastParent,o=n.fontSize===H.lastFontSize;H.lastParent=n.myParent,H.lastPosition=n.position,H.lastFontSize=n.fontSize;var r={};if(o&&s)r.emToPx=H.lastEmToPx,r.percentToPxWidth=H.lastPercentToPxWidth,r.percentToPxHeight=H.lastPercentToPxHeight;else{var a=l&&l.isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");C.init(a),n.myParent.appendChild(a),d.each(["overflow","overflowX","overflowY"],function(t,e){C.CSS.setPropertyValue(a,e,"hidden")}),C.CSS.setPropertyValue(a,"position",n.position),C.CSS.setPropertyValue(a,"fontSize",n.fontSize),C.CSS.setPropertyValue(a,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){C.CSS.setPropertyValue(a,e,"100%")}),C.CSS.setPropertyValue(a,"paddingLeft","100em"),r.percentToPxWidth=H.lastPercentToPxWidth=(parseFloat(k.getPropertyValue(a,"width",null,!0))||1)/100,r.percentToPxHeight=H.lastPercentToPxHeight=(parseFloat(k.getPropertyValue(a,"height",null,!0))||1)/100,r.emToPx=H.lastEmToPx=(parseFloat(k.getPropertyValue(a,"paddingLeft"))||1)/100,n.myParent.removeChild(a)}return null===H.remToPx&&(H.remToPx=parseFloat(k.getPropertyValue(i.body,"fontSize"))||16),null===H.vwToPx&&(H.vwToPx=parseFloat(e.innerWidth)/100,H.vhToPx=parseFloat(e.innerHeight)/100),r.remToPx=H.remToPx,r.vwToPx=H.vwToPx,r.vhToPx=H.vhToPx,C.debug,r}();var q=/margin|padding|left|right|width|text|word|letter/i.test(s)||/X$/.test(s)||"x"===s?"x":"y";switch(w){case"%":v*="x"===q?a.percentToPxWidth:a.percentToPxHeight;break;case"px":break;default:v*=a[w+"ToPx"]}switch(_){case"%":v*=1/("x"===q?a.percentToPxWidth:a.percentToPxHeight);break;case"px":break;default:v*=1/a[_+"ToPx"]}}switch(x){case"+":m=v+m;break;case"-":m=v-m;break;case"*":m*=v;break;case"/":m=v/m}p[s]={rootPropertyValue:u,startValue:v,currentValue:v,endValue:m,unitType:_,easing:g},r&&(p[s].pattern=r),C.debug}else C.debug};for(var F in _)if(_.hasOwnProperty(F)){var W=k.Names.camelCase(F),R=(m=_[F],g=void 0,w=void 0,S=void 0,b.isFunction(m)&&(m=m.call(t,s,E)),b.isArray(m)?(g=m[0],!b.isArray(m[1])&&/^[\d-]/.test(m[1])||b.isFunction(m[1])||k.RegEx.isHex.test(m[1])?S=m[1]:b.isString(m[1])&&!k.RegEx.isHex.test(m[1])&&C.Easings[m[1]]||b.isArray(m[1])?(w=c(m[1],h.duration),S=m[2]):S=m[1]||m[2]):g=m,w=w||h.easing,b.isFunction(g)&&(g=g.call(t,s,E)),b.isFunction(S)&&(S=S.call(t,s,E)),[g||0,w,S]);if(y(k.Lists.colors,W)){var B=R[0],q=R[1],U=R[2];if(k.RegEx.isHex.test(B)){for(var V=["Red","Green","Blue"],Y=k.Values.hexToRgb(B),Q=U?k.Values.hexToRgb(U):n,X=0;X<V.length;X++){var K=[Y[X]];q&&K.push(q),Q!==n&&K.push(Q[X]),z(W+V[X],K)}continue}}z(W,R)}p.element=t}p.element&&(k.Values.addClass(t,"velocity-animating"),j.push(p),(l=o(t))&&(""===h.queue&&(l.tweensContainer=p,l.opts=h),l.isAnimating=!0),I===E-1?(C.State.calls.push([j,v,h,null,T.resolver,null,0]),!1===C.State.isTicking&&(C.State.isTicking=!0,u())):I++)}var a,l,h=d.extend({},C.defaults,x),p={};switch(o(t)===n&&C.init(t),parseFloat(h.delay)&&!1!==h.queue&&d.queue(t,h.queue,function(e){C.velocityQueueEntryFlag=!0;var i=C.State.delayedElements.count++;C.State.delayedElements[i]=t;var n,s=(n=i,function(){C.State.delayedElements[n]=!1,e()});o(t).delayBegin=(new Date).getTime(),o(t).delay=parseFloat(h.delay),o(t).delayTimer={setTimeout:setTimeout(e,parseFloat(h.delay)),next:s}}),h.duration.toString().toLowerCase()){case"fast":h.duration=200;break;case"normal":h.duration=w;break;case"slow":h.duration=600;break;default:h.duration=parseFloat(h.duration)||1}if(!1!==C.mock&&(!0===C.mock?h.duration=h.delay=1:(h.duration*=parseFloat(C.mock)||1,h.delay*=parseFloat(C.mock)||1)),h.easing=c(h.easing,h.duration),h.begin&&!b.isFunction(h.begin)&&(h.begin=null),h.progress&&!b.isFunction(h.progress)&&(h.progress=null),h.complete&&!b.isFunction(h.complete)&&(h.complete=null),h.display!==n&&null!==h.display&&(h.display=h.display.toString().toLowerCase(),"auto"===h.display&&(h.display=C.CSS.Values.getDisplayType(t))),h.visibility!==n&&null!==h.visibility&&(h.visibility=h.visibility.toString().toLowerCase()),h.mobileHA=h.mobileHA&&C.State.isMobile&&!C.State.isGingerbread,!1===h.queue)if(h.delay){var f=C.State.delayedElements.count++;C.State.delayedElements[f]=t;var m=(l=f,function(){C.State.delayedElements[l]=!1,r()});o(t).delayBegin=(new Date).getTime(),o(t).delay=parseFloat(h.delay),o(t).delayTimer={setTimeout:setTimeout(r,parseFloat(h.delay)),next:m}}else r();else d.queue(t,h.queue,function(t,e){if(!0===e)return T.promise&&T.resolver(v),!0;C.velocityQueueEntryFlag=!0,r()});""!==h.queue&&"fx"!==h.queue||"inprogress"===d.queue(t)[0]||d.dequeue(t)}(s,t)}),(p=d.extend({},C.defaults,x)).loop=parseInt(p.loop,10);var L=2*p.loop-1;if(p.loop)for(var z=0;z<L;z++){var F={delay:p.delay,progress:p.progress};z===L-1&&(F.display=p.display,F.visibility=p.visibility,F.complete=p.complete),t(v,"reverse",F)}return l()}T.promise&&(_&&x&&!1===x.promiseRejectEmpty?T.resolver():T.rejecter())};(C=d.extend(T,C)).animate=T;var D=e.requestAnimationFrame||m;if(!C.State.isMobile&&i.hidden!==n){var E=function(){i.hidden?(D=function(t){return setTimeout(function(){t(!0)},16)},u()):D=e.requestAnimationFrame||m};E(),i.addEventListener("visibilitychange",E)}return t.Velocity=C,t!==e&&(t.fn.velocity=T,t.fn.velocity.defaults=C.defaults),d.each(["Down","Up"],function(t,e){C.Redirects["slide"+e]=function(t,i,s,o,r,a){var l=d.extend({},i),c=l.begin,u=l.complete,h={},p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===n&&(l.display="Down"===e?"inline"===C.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){for(var i in 0===s&&c&&c.call(r,r),p)if(p.hasOwnProperty(i)){h[i]=t.style[i];var n=k.getPropertyValue(t,i);p[i]="Down"===e?[n,0]:[0,n]}h.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in h)h.hasOwnProperty(e)&&(t.style[e]=h[e]);s===o-1&&(u&&u.call(r,r),a&&a.resolver(r))},C(t,p,l)}}),d.each(["In","Out"],function(t,e){C.Redirects["fade"+e]=function(t,i,s,o,r,a){var l=d.extend({},i),c=l.complete,u={opacity:"In"===e?1:0};0!==s&&(l.begin=null),l.complete=s!==o-1?null:function(){c&&c.call(r,r),a&&a.resolver(r)},l.display===n&&(l.display="In"===e?"auto":"none"),C(this,u,l)}}),C}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)},"object"==typeof t&&"object"==typeof t.exports?t.exports=o():void 0!==(s="function"==typeof(n=o)?n.call(e,i,e,t):n)&&(t.exports=s)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}i(25),i(20),i(22),i(19),i(18),i(8),i(13),i(16),i(17),i(7);var s=n(i(2)),o=n(i(10)),r=n(i(3)),a=n(i(11)),l=n(i(12)),c=n(i(1)),u=n(i(21));for(var h in i(14),i(15),i(9),u.default.prototype)c.default[h]=u.default.prototype[h];$(document).ready(function(){var t=$(".js-dropdown"),e=new o.default,i=$('.js-top-menu ul[data-depth="0"]'),n=new s.default(t),c=new l.default(i),u=new r.default,h=new a.default;n.init(),e.init(),c.init(),u.init(),h.init()})},function(t,e){},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function s(){o.default.each((0,o.default)(a),function(t,e){(0,o.default)(e).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:parseInt((0,o.default)(e).attr("min"),10),max:1e6})})}var o=n(i(0)),r=n(i(1));r.default.cart=r.default.cart||{},r.default.cart.active_inputs=null;var a='input[name="product-quantity-spin"]';(0,o.default)(document).ready(function(){function t(t,e){if("on.startupspin"!==(n=e)&&"on.startdownspin"!==n)return{url:t.attr("href"),type:function(t){var e=t.split("-"),i=void 0,n=void 0,s="";for(i=0;i<e.length;i++)n=e[i],0!==i&&(n=n.substring(0,1).toUpperCase()+n.substring(1)),s+=n;return s}(t.data("link-action"))};var n,s,o=(s=t.parents(".bootstrap-touchspin").find(i)).is(":focus")?null:s;return o?"on.startupspin"===e?{url:o.data("up-url"),type:"increaseProductQuantity"}:{url:o.data("down-url"),type:"decreaseProductQuantity"}:void 0}function e(t){var e=(0,o.default)(t.currentTarget),i=e.data("update-url"),s=e.attr("value"),a=e.val();if(a!=parseInt(a)||a<0||isNaN(a))e.val(s);else{var l,u,h,d,p,f=a-s;0!=f&&(l=i,d=f,u={ajax:"1",qty:Math.abs(d),action:"update",op:(p=d,p>0?"up":"down")},h=e,c(),o.default.ajax({url:l,method:"POST",data:u,dataType:"json",beforeSend:function(t){n.push(t)}}).then(function(t){var e;h.val(t.quantity),e=h&&h.dataset?h.dataset:t,r.default.emit("updateCart",{reason:e})}).fail(function(t){r.default.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})}))}}var i=".js-cart-line-product-quantity",n=[];r.default.on("updatedCart",function(){s()}),s();var l=(0,o.default)("body"),c=function(){for(;n.length>0;)n.pop().abort()},u=function(e){e.preventDefault();var i=(0,o.default)(e.currentTarget),s=e.currentTarget.dataset,a=t(i,e.namespace);void 0!==a&&(c(),o.default.ajax({url:a.url,method:"POST",data:{ajax:"1",action:"update"},dataType:"json",beforeSend:function(t){n.push(t)}}).then(function(t){var e;(e=i,(0,o.default)(e.parents(".bootstrap-touchspin").find("input"))).val(t.quantity),r.default.emit("updateCart",{reason:s})}).fail(function(t){r.default.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:a.type})}))};l.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',u),l.on("touchspin.on.startdownspin",a,u),l.on("touchspin.on.startupspin",a,u),l.on("focusout",i,function(t){e(t)}),l.on("keyup",i,function(t){13==t.keyCode&&e(t)}),l.on("click",".js-discount .code",function(t){t.stopPropagation();var e=(0,o.default)(t.currentTarget);return(0,o.default)("[name=discount_name]").val(e.text()),!1})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(0)),o=n(i(1));(0,s.default)(document).ready(function(){1===(0,s.default)("body#checkout").length&&(0!==(0,s.default)(".js-cancel-address").length&&(0,s.default)(".checkout-step:not(.js-current-step) .step-title").addClass("not-allowed"),(0,s.default)(".js-terms a").on("click",function(t){t.preventDefault();var e=(0,s.default)(t.target).attr("href");e&&(e+="?content_only=1",s.default.get(e,function(t){(0,s.default)("#modal").find(".js-modal-content").html((0,s.default)(t).find(".page-cms").contents())}).fail(function(t){o.default.emit("handleError",{eventType:"clickTerms",resp:t})})),(0,s.default)("#modal").modal("show")}),(0,s.default)(".js-gift-checkbox").on("click",function(t){(0,s.default)("#gift").collapse("toggle")})),o.default.on("updatedDeliveryForm",function(t){void 0!==t.deliveryOption&&0!==t.deliveryOption.length&&((0,s.default)(".carrier-extra-content").hide(),t.deliveryOption.next(".carrier-extra-content").slideDown())})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(1)),o=n(i(0));s.default.blockcart=s.default.blockcart||{},s.default.blockcart.showModal=function(t){function e(){return(0,o.default)("#blockcart-modal")}var i=e();i.length&&i.remove(),(0,o.default)("body").append(t),(i=e()).modal("show").on("hidden.bs.modal",function(t){s.default.emit("updateProduct",{reason:t.currentTarget.dataset})})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=i(0),r=(n=o)&&n.__esModule?n:{default:n},a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return s(t,[{key:"init",value:function(){this.parentFocus(),this.togglePasswordVisibility()}},{key:"parentFocus",value:function(){(0,r.default)(".js-child-focus").focus(function(){(0,r.default)(this).closest(".js-parent-focus").addClass("focus")}),(0,r.default)(".js-child-focus").focusout(function(){(0,r.default)(this).closest(".js-parent-focus").removeClass("focus")})}},{key:"togglePasswordVisibility",value:function(){(0,r.default)('button[data-action="show-password"]').on("click",function(){var t=(0,r.default)(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),(0,r.default)(this).text((0,r.default)(this).data("textHide"))):(t.attr("type","password"),(0,r.default)(this).text((0,r.default)(this).data("textShow")))})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=i(0),r=(n=o)&&n.__esModule?n:{default:n};i(4);var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return s(t,[{key:"init",value:function(){var t=this,e=(0,r.default)(".js-modal-arrows"),i=(0,r.default)(".js-modal-product-images"),n=(0,r.default)(".on-sale");(0,r.default)("body").on("click",".js-modal-thumb",function(t){(0,r.default)(".js-modal-thumb").hasClass("selected")&&(0,r.default)(".js-modal-thumb").removeClass("selected"),(0,r.default)(t.currentTarget).addClass("selected"),(0,r.default)(".js-modal-product-cover").attr("src",(0,r.default)(t.target).data("image-large-src")),(0,r.default)(".js-modal-product-cover").attr("title",(0,r.default)(t.target).attr("title")),(0,r.default)(".js-modal-product-cover").attr("alt",(0,r.default)(t.target).attr("alt"))}).on("click","aside#thumbnails",function(t){"thumbnails"==t.target.id&&(0,r.default)("#product-modal").modal("hide")}),n.length&&(0,r.default)("#product").length&&(0,r.default)(".new").css("top",n.height()+10),(0,r.default)(".js-modal-product-images li").length<=5?e.css("opacity",".2"):e.on("click",function(e){(0,r.default)(e.target).hasClass("arrow-up")&&i.position().top<0?(t.move("up"),(0,r.default)(".js-modal-arrow-down").css("opacity","1")):(0,r.default)(e.target).hasClass("arrow-down")&&i.position().top+i.height()>(0,r.default)(".js-modal-mask").height()&&(t.move("down"),(0,r.default)(".js-modal-arrow-up").css("opacity","1"))})}},{key:"move",value:function(t){var e=(0,r.default)(".js-modal-product-images"),i=(0,r.default)(".js-modal-product-images li img").height()+10,n=e.position().top;e.velocity({translateY:"up"===t?n+i:n-i},function(){e.position().top>=0?(0,r.default)(".js-modal-arrow-up").css("opacity",".2"):e.position().top+e.height()<=(0,r.default)(".js-modal-mask").height()&&(0,r.default)(".js-modal-arrow-down").css("opacity",".2")})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=function(t,e,i){for(var n=!0;n;){var s=t,o=e,r=i;n=!1,null===s&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,o);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(r)}var c=Object.getPrototypeOf(s);if(null===c)return;t=c,e=o,i=r,n=!0,a=c=void 0}},r=n(i(0)),a=n(i(2)),l=function(t){function e(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e),o(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.default),s(e,[{key:"init",value:function(){var t=this,i=void 0,n=this;this.el.find("li").hover(function(e){t.el.parent().hasClass("mobile")||(i!==(0,r.default)(e.currentTarget).attr("id")&&(0===(0,r.default)(e.target).data("depth")&&(0,r.default)("#"+i+" .js-sub-menu").hide(),i=(0,r.default)(e.currentTarget).attr("id")),i&&0===(0,r.default)(e.target).data("depth")&&(0,r.default)("#"+i+" .js-sub-menu").show().css({top:(0,r.default)("#"+i).height()+(0,r.default)("#"+i).position().top}))}),(0,r.default)("#menu-icon").on("click",function(){(0,r.default)("#mobile_top_menu_wrapper").toggle(),n.toggleMobileMenu()}),(0,r.default)(".js-top-menu").mouseleave(function(){t.el.parent().hasClass("mobile")||(0,r.default)("#"+i+" .js-sub-menu").hide()}),this.el.on("click",function(e){t.el.parent().hasClass("mobile")||e.stopPropagation()}),prestashop.on("responsive update",function(t){(0,r.default)(".js-sub-menu").removeAttr("style"),n.toggleMobileMenu()}),o(Object.getPrototypeOf(e.prototype),"init",this).call(this)}},{key:"toggleMobileMenu",value:function(){(0,r.default)("#mobile_top_menu_wrapper").is(":visible")?((0,r.default)("#notifications").hide(),(0,r.default)("#wrapper").hide(),(0,r.default)("#footer").hide()):((0,r.default)("#notifications").show(),(0,r.default)("#wrapper").show(),(0,r.default)("#footer").show())}}]),e}();e.default=l,t.exports=e.default},function(t,e,i){"use strict";var n,s=i(0),o=(n=s)&&n.__esModule?n:{default:n};(0,o.default)(document).ready(function(){(0,o.default)("body#order-detail")&&(0,o.default)("#order-return-form table thead input[type=checkbox]").on("click",function(){var t=(0,o.default)(this).prop("checked");(0,o.default)("#order-return-form table tbody input[type=checkbox]").each(function(e,i){(0,o.default)(i).prop("checked",t)})})})},function(t,e,i){"use strict";!function(t){var e=0,i=function(e,i){this.options=i,this.$elementFilestyle=[],this.$element=t(e)};i.prototype={clear:function(){this.$element.val(""),this.$elementFilestyle.find(":text").val(""),this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle"),this.$elementFilestyle.remove()},disabled:function(t){if(!0===t)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==t)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(t){if(!0===t)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==t)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(t){if(!0===t)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==t)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".icon-span-filestyle").remove())}},input:function(t){if(!0===t)this.options.input||(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),this.pushNameFiles(),this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"));else{if(!1!==t)return this.options.input;if(this.options.input){this.options.input=!1,this.$elementFilestyle.find(":text").remove();var e=this.pushNameFiles();e.length>0&&this.options.badge&&this.$elementFilestyle.find("label").append(' <span class="badge">'+e.length+"</span>"),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn")}}},size:function(t){if(void 0===t)return this.options.size;var e=this.$elementFilestyle.find("label"),i=this.$elementFilestyle.find("input");e.removeClass("btn-lg btn-sm"),i.removeClass("input-lg input-sm"),"nr"!=t&&(e.addClass("btn-"+t),i.addClass("input-"+t))},placeholder:function(t){if(void 0===t)return this.options.placeholder;this.options.placeholder=t,this.$elementFilestyle.find("input").attr("placeholder",t)},buttonText:function(t){if(void 0===t)return this.options.buttonText;this.options.buttonText=t,this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(t){if(void 0===t)return this.options.buttonName;this.options.buttonName=t,this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(t){if(void 0===t)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?'<span class="icon-span-filestyle '+this.options.iconName+'"></span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+("nr"==this.options.size?"":"input-"+this.options.size)+'" placeholder="'+this.options.placeholder+'" disabled> ':""},pushNameFiles:function(){var t="",e=[];void 0===this.$element[0].files?e[0]={name:this.$element[0]&&this.$element[0].value}:e=this.$element[0].files;for(var i=0;i<e.length;i++)t+=e[i].name.split("\\").pop()+", ";return""!==t?this.$elementFilestyle.find(":text").val(t.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val(""),e},constructor:function(){var i,n,s=this,o=s.$element.attr("id");""!==o&&o||(o="filestyle-"+e,s.$element.attr({id:o}),e++),n='<span class="group-span-filestyle '+(s.options.input?"input-group-btn":"")+'"><label for="'+o+'" class="btn '+s.options.buttonName+" "+("nr"==s.options.size?"":"btn-"+s.options.size)+'" '+(s.options.disabled?'disabled="true"':"")+">"+s.htmlIcon()+'<span class="buttonText">'+s.options.buttonText+"</span></label></span>",i=s.options.buttonBefore?n+s.htmlInput():s.htmlInput()+n,s.$elementFilestyle=t('<div class="bootstrap-filestyle input-group">'+i+"</div>"),s.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress(function(t){if(13===t.keyCode||32===t.charCode)return s.$elementFilestyle.find("label").click(),!1}),s.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(s.$elementFilestyle),s.options.disabled&&s.$element.attr("disabled","true"),s.$element.change(function(){var t=s.pushNameFiles();0==s.options.input&&s.options.badge?0==s.$elementFilestyle.find(".badge").length?s.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"</span>"):0==t.length?s.$elementFilestyle.find(".badge").remove():s.$elementFilestyle.find(".badge").html(t.length):s.$elementFilestyle.find(".badge").remove()}),window.navigator.userAgent.search(/firefox/i)>-1&&s.$elementFilestyle.find("label").click(function(){return s.$element.click(),!1})}};var n=t.fn.filestyle;t.fn.filestyle=function(e,n){var s="",o=this.each(function(){if("file"===t(this).attr("type")){var o=t(this),r=o.data("filestyle"),a=t.extend({},t.fn.filestyle.defaults,e,"object"==typeof e&&e);r||(o.data("filestyle",r=new i(this,a)),r.constructor()),"string"==typeof e&&(s=r[e](n))}});return void 0!==typeof s?s:o},t.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},t.fn.filestyle.noConflict=function(){return t.fn.filestyle=n,this},t(function(){t(".filestyle").each(function(){var e=t(this),i={input:"false"!==e.attr("data-input"),icon:"false"!==e.attr("data-icon"),buttonBefore:"true"===e.attr("data-buttonBefore"),disabled:"true"===e.attr("data-disabled"),size:e.attr("data-size"),buttonText:e.attr("data-buttonText"),buttonName:e.attr("data-buttonName"),iconName:e.attr("data-iconName"),badge:"false"!==e.attr("data-badge"),placeholder:e.attr("data-placeholder")};e.filestyle(i)})})}(window.jQuery)},function(t,e,i){"use strict";var n;(n=jQuery).fn.scrollbox=function(t){return(t=n.extend({linear:!1,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:!0,onMouseOverPause:!0,paused:!1,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:!0,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:!1},t)).scrollOffset="vertical"===t.direction?"scrollTop":"scrollLeft",t.queue&&(t.queue=n("#"+t.queue)),this.each(function(){var e,i,s,o,r,a,l,c,u,h=n(this),d=null,p=null,f=!1,m=0,g=0;t.onMouseOverPause&&(h.bind("mouseover",function(){f=!0}),h.bind("mouseout",function(){f=!1})),e=h.children(t.listElement+":first-child"),!1===t.infiniteLoop&&0===t.switchAmount&&(t.switchAmount=e.children().length),a=function(){var s,r,a,l,c;if(!f&&(s=e.children(t.listItemElement+":first-child"),l="auto"!==t.distance?t.distance:"vertical"===t.direction?s.outerHeight(!0):s.outerWidth(!0),t.linear?a=Math.min(h[0][t.scrollOffset]+t.step,l):(c=Math.max(3,parseInt(.3*(l-h[0][t.scrollOffset]),10)),a=Math.min(h[0][t.scrollOffset]+c,l)),h[0][t.scrollOffset]=a,a>=l)){for(r=0;r<t.switchItems;r++)t.queue&&t.queue.find(t.listItemElement).length>0?(e.append(t.queue.find(t.listItemElement)[0]),e.children(t.listItemElement+":first-child").remove()):e.append(e.children(t.listItemElement+":first-child")),++m;if(h[0][t.scrollOffset]=0,clearInterval(d),d=null,n.isFunction(t.afterForward)&&t.afterForward.call(h,{switchCount:m,currentFirstChild:e.children(t.listItemElement+":first-child")}),t.triggerStackable&&0!==g)return void i();if(!1===t.infiniteLoop&&m>=t.switchAmount)return;t.autoPlay&&(p=setTimeout(o,1e3*t.delay))}},l=function(){if(!f){var s,r,a,l,c;if(0===h[0][t.scrollOffset]){for(r=0;r<t.switchItems;r++)e.children(t.listItemElement+":last-child").insertBefore(e.children(t.listItemElement+":first-child"));s=e.children(t.listItemElement+":first-child"),l="auto"!==t.distance?t.distance:"vertical"===t.direction?s.height():s.width(),h[0][t.scrollOffset]=l}if(t.linear?a=Math.max(h[0][t.scrollOffset]-t.step,0):(c=Math.max(3,parseInt(.3*h[0][t.scrollOffset],10)),a=Math.max(h[0][t.scrollOffset]-c,0)),h[0][t.scrollOffset]=a,0===a){if(--m,clearInterval(d),d=null,n.isFunction(t.afterBackward)&&t.afterBackward.call(h,{switchCount:m,currentFirstChild:e.children(t.listItemElement+":first-child")}),t.triggerStackable&&0!==g)return void i();t.autoPlay&&(p=setTimeout(o,1e3*t.delay))}}},i=function(){0!==g&&(g>0?(g--,p=setTimeout(o,0)):(g++,p=setTimeout(s,0)))},o=function(){clearInterval(d),d=setInterval(a,t.speed)},s=function(){clearInterval(d),d=setInterval(l,t.speed)},c=function(){t.autoPlay=!0,f=!1,clearInterval(d),d=setInterval(a,t.speed)},u=function(){f=!0},r=function(e){t.delay=e||t.delay,clearTimeout(p),t.autoPlay&&(p=setTimeout(o,1e3*t.delay))},t.autoPlay&&(p=setTimeout(o,1e3*t.startDelay)),h.bind("resetClock",function(t){r(t)}),h.bind("forward",function(){t.triggerStackable?null!==d?g++:o():(clearTimeout(p),o())}),h.bind("backward",function(){t.triggerStackable?null!==d?g--:s():(clearTimeout(p),s())}),h.bind("pauseHover",function(){u()}),h.bind("forwardHover",function(){c()}),h.bind("speedUp",function(e,i){"undefined"===i&&(i=Math.max(1,parseInt(t.speed/2,10))),t.speed=i}),h.bind("speedDown",function(e,i){"undefined"===i&&(i=2*t.speed),t.speed=i}),h.bind("updateConfig",function(e,i){t=n.extend(t,i)})})}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var s=n(i(0)),o=n(i(1));i(4);var r=n(i(3));(0,s.default)(document).ready(function(){(0,s.default)("body").on("click","#search_filter_toggler",function(){(0,s.default)("#search_filters_wrapper").removeClass("hidden-sm-down"),(0,s.default)("#content-wrapper").addClass("hidden-sm-down"),(0,s.default)("#footer").addClass("hidden-sm-down")}),(0,s.default)("#search_filter_controls .clear").on("click",function(){(0,s.default)("#search_filters_wrapper").addClass("hidden-sm-down"),(0,s.default)("#content-wrapper").removeClass("hidden-sm-down"),(0,s.default)("#footer").removeClass("hidden-sm-down")}),(0,s.default)("#search_filter_controls .ok").on("click",function(){(0,s.default)("#search_filters_wrapper").addClass("hidden-sm-down"),(0,s.default)("#content-wrapper").removeClass("hidden-sm-down"),(0,s.default)("#footer").removeClass("hidden-sm-down")});var t=function(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===(0,s.default)(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return(0,s.default)(t.target).parent()[0].dataset.searchUrl};(0,s.default)("body").on("change","#search_filters input[data-search-url]",function(e){o.default.emit("updateFacets",t(e))}),(0,s.default)("body").on("click",".js-search-filters-clear-all",function(e){o.default.emit("updateFacets",t(e))}),(0,s.default)("body").on("click",".js-search-link",function(t){t.preventDefault(),o.default.emit("updateFacets",(0,s.default)(t.target).closest("a").get(0).href)}),(0,s.default)("body").on("change","#search_filters select",function(t){var e=(0,s.default)(t.target).closest("form");o.default.emit("updateFacets","?"+e.serialize())}),o.default.on("updateProductList",function(t){var e;e=t,(0,s.default)("#search_filters").replaceWith(e.rendered_facets),(0,s.default)("#js-active-search-filters").replaceWith(e.rendered_active_filters),(0,s.default)("#js-product-list-top").replaceWith(e.rendered_products_top),(0,s.default)("#js-product-list").replaceWith(e.rendered_products),(0,s.default)("#js-product-list-bottom").replaceWith(e.rendered_products_bottom),(new r.default).init()})})},function(t,e,i){"use strict";var n,s=i(0),o=(n=s)&&n.__esModule?n:{default:n};(0,o.default)(document).ready(function(){function t(){(0,o.default)(".js-thumb").on("click",function(t){(0,o.default)(".js-modal-product-cover").attr("src",(0,o.default)(t.target).data("image-large-src")),(0,o.default)(".selected").removeClass("selected"),(0,o.default)(t.target).addClass("selected"),(0,o.default)(".js-qv-product-cover").prop("src",(0,o.default)(t.currentTarget).data("image-large-src"))})}function e(){(0,o.default)("#main .js-qv-product-images li").length>2?((0,o.default)("#main .js-qv-mask").addClass("scroll"),(0,o.default)(".scroll-box-arrows").addClass("scroll"),(0,o.default)("#main .js-qv-mask").scrollbox({direction:"h",distance:113,autoPlay:!1}),(0,o.default)(".scroll-box-arrows .left").click(function(){(0,o.default)("#main .js-qv-mask").trigger("backward")}),(0,o.default)(".scroll-box-arrows .right").click(function(){(0,o.default)("#main .js-qv-mask").trigger("forward")})):((0,o.default)("#main .js-qv-mask").removeClass("scroll"),(0,o.default)(".scroll-box-arrows").removeClass("scroll"))}function i(){(0,o.default)(".js-file-input").on("change",function(t){var e,i=void 0;(e=(0,o.default)(t.currentTarget)[0])&&(i=e.files[0])&&(0,o.default)(e).prev().text(i.name)})}var n;(n=(0,o.default)("#quantity_wanted")).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(n.attr("min"),10),max:1e6}),n.on("change",function(t){var e=(0,o.default)(".product-refresh");return(0,o.default)(t.currentTarget).trigger("touchspin.stopspin"),e.trigger("click",{eventType:"updatedProductQuantity"}),t.preventDefault(),!1}),i(),t(),e(),prestashop.on("updatedProduct",function(n){if(i(),t(),n&&n.product_minimal_quantity){var s=parseInt(n.product_minimal_quantity,10);(0,o.default)("#quantity_wanted").trigger("touchspin.updatesettings",{min:s})}e(),(0,o.default)((0,o.default)(".tabs .nav-link.active").attr("href")).addClass("active").removeClass("fade"),(0,o.default)(".js-product-images-modal").replaceWith(n.product_images_modal)})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var i=e.children().detach();e.empty().append(t.children().detach()),t.append(i)}function o(){a.default.responsive.mobile?(0,r.default)("*[id^='_desktop_']").each(function(t,e){var i=(0,r.default)("#"+e.id.replace("_desktop_","_mobile_"));i.length&&s((0,r.default)(e),i)}):(0,r.default)("*[id^='_mobile_']").each(function(t,e){var i=(0,r.default)("#"+e.id.replace("_mobile_","_desktop_"));i.length&&s((0,r.default)(e),i)}),a.default.emit("responsive update",{mobile:a.default.responsive.mobile})}var r=n(i(0)),a=n(i(1));a.default.responsive=a.default.responsive||{},a.default.responsive.current_width=window.innerWidth,a.default.responsive.min_width=768,a.default.responsive.mobile=a.default.responsive.current_width<a.default.responsive.min_width,(0,r.default)(window).on("resize",function(){var t=a.default.responsive.current_width,e=a.default.responsive.min_width,i=window.innerWidth,n=t>=e&&i<e||t<e&&i>=e;a.default.responsive.current_width=i,a.default.responsive.mobile=a.default.responsive.current_width<a.default.responsive.min_width,n&&o()}),(0,r.default)(document).ready(function(){a.default.responsive.mobile&&o()})},function(t,e,i){"use strict";!function(t){function e(e,i){return t.map(e,function(t){return t+".touchspin_"+i})}var i=0;t.fn.TouchSpin=function(n){if("destroy"!==n){var s={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},o={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){function r(e){var i;i=e,g=t.extend({},g,i),c();var n=y.input.val();""!==n&&(n=Number(y.input.val()),y.input.val(n.toFixed(g.decimals)))}function a(){var e;g=t.extend({},s,k,(e={},t.each(o,function(t,i){var n="bts-"+i;S.is("[data-"+n+"]")&&(e[t]=S.data(n))}),e),n)}function l(){var e,i=S.val(),n=S.parent();""!==i&&(i=Number(i).toFixed(g.decimals)),S.data("initvalue",i).val(i),S.addClass("form-control"),n.hasClass("input-group")?function(e){e.addClass("bootstrap-touchspin");var i,n,s=S.prev(),o=S.next(),r='<span class="input-group-addon bootstrap-touchspin-prefix">'+g.prefix+"</span>",a='<span class="input-group-addon bootstrap-touchspin-postfix">'+g.postfix+"</span>";s.hasClass("input-group-btn")?(i='<button class="'+g.buttondown_class+' bootstrap-touchspin-down" type="button">'+g.buttondown_txt+"</button>",s.append(i)):(i='<span class="input-group-btn"><button class="'+g.buttondown_class+' bootstrap-touchspin-down" type="button">'+g.buttondown_txt+"</button></span>",t(i).insertBefore(S)),o.hasClass("input-group-btn")?(n='<button class="'+g.buttonup_class+' bootstrap-touchspin-up" type="button">'+g.buttonup_txt+"</button>",o.prepend(n)):(n='<span class="input-group-btn"><button class="'+g.buttonup_class+' bootstrap-touchspin-up" type="button">'+g.buttonup_txt+"</button></span>",t(n).insertAfter(S)),t(r).insertBefore(S),t(a).insertAfter(S),v=e}(n):(e=g.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+g.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+g.postfix+'</span><span class="input-group-btn-vertical"><button class="'+g.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+g.verticalupclass+'"></i></button><button class="'+g.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+g.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+g.buttondown_class+' bootstrap-touchspin-down" type="button">'+g.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+g.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+g.postfix+'</span><span class="input-group-btn"><button class="'+g.buttonup_class+' bootstrap-touchspin-up" type="button">'+g.buttonup_txt+"</button></span></div>",v=t(e).insertBefore(S),t(".bootstrap-touchspin-prefix",v).after(S),S.hasClass("input-sm")?v.addClass("input-group-sm"):S.hasClass("input-lg")&&v.addClass("input-group-lg"))}function c(){var t,e,i;""!==(t=S.val())?g.decimals>0&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==g.replacementval?g.replacementval:0),i=e,e.toString()!==t&&(i=e),e<g.min&&(i=g.min),e>g.max&&(i=g.max),i=function(t){switch(g.forcestepdivisibility){case"round":return(Math.round(t/g.step)*g.step).toFixed(g.decimals);case"floor":return(Math.floor(t/g.step)*g.step).toFixed(g.decimals);case"ceil":return(Math.ceil(t/g.step)*g.step).toFixed(g.decimals);default:return t}}(i),Number(t).toString()!==i.toString()&&(S.val(i),S.trigger("change"))):""!==g.replacementval&&(S.val(g.replacementval),S.trigger("change"))}function u(){if(g.booster){var t=Math.pow(2,Math.floor(T/g.boostat))*g.step;return g.maxboostedstep&&t>g.maxboostedstep&&(t=g.maxboostedstep,b=Math.round(b/t)*t),Math.max(g.step,t)}return g.step}function h(){c(),b=parseFloat(y.input.val()),isNaN(b)&&(b=0);var t=b,e=u();(b+=e)>g.max&&(b=g.max,S.trigger("touchspin.on.max"),m()),y.input.val(Number(b).toFixed(g.decimals)),t!==b&&S.trigger("change")}function d(){c(),b=parseFloat(y.input.val()),isNaN(b)&&(b=0);var t=b,e=u();(b-=e)<g.min&&(b=g.min,S.trigger("touchspin.on.min"),m()),y.input.val(b.toFixed(g.decimals)),t!==b&&S.trigger("change")}function p(){m(),T=0,D="down",S.trigger("touchspin.on.startspin"),S.trigger("touchspin.on.startdownspin"),x=setTimeout(function(){_=setInterval(function(){T++,d()},g.stepinterval)},g.stepintervaldelay)}function f(){m(),T=0,D="up",S.trigger("touchspin.on.startspin"),S.trigger("touchspin.on.startupspin"),C=setTimeout(function(){w=setInterval(function(){T++,h()},g.stepinterval)},g.stepintervaldelay)}function m(){switch(clearTimeout(x),clearTimeout(C),clearInterval(_),clearInterval(w),D){case"up":S.trigger("touchspin.on.stopupspin"),S.trigger("touchspin.on.stopspin");break;case"down":S.trigger("touchspin.on.stopdownspin"),S.trigger("touchspin.on.stopspin")}T=0,D=!1}var g,v,y,b,_,w,x,C,S=t(this),k=S.data(),T=0,D=!1;S.data("alreadyinitialized")||(S.data("alreadyinitialized",!0),i+=1,S.data("spinnerid",i),S.is("input")&&(a(),""!==g.initval&&""===S.val()&&S.val(g.initval),c(),l(),y={down:t(".bootstrap-touchspin-down",v),up:t(".bootstrap-touchspin-up",v),input:t("input",v),prefix:t(".bootstrap-touchspin-prefix",v).addClass(g.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",v).addClass(g.postfix_extraclass)},""===g.prefix&&y.prefix.hide(),""===g.postfix&&y.postfix.hide(),S.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==D&&(h(),f()),t.preventDefault()):40===e&&("down"!==D&&(d(),p()),t.preventDefault())}),S.on("keyup",function(t){var e=t.keyCode||t.which;38===e?m():40===e&&m()}),S.on("blur",function(){c()}),y.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==D&&(d(),p()),t.preventDefault())}),y.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||m()}),y.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==D&&(h(),f()),t.preventDefault())}),y.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||m()}),y.down.on("mousedown.touchspin",function(t){y.down.off("touchstart.touchspin"),S.is(":disabled")||(d(),p(),t.preventDefault(),t.stopPropagation())}),y.down.on("touchstart.touchspin",function(t){y.down.off("mousedown.touchspin"),S.is(":disabled")||(d(),p(),t.preventDefault(),t.stopPropagation())}),y.up.on("mousedown.touchspin",function(t){y.up.off("touchstart.touchspin"),S.is(":disabled")||(h(),f(),t.preventDefault(),t.stopPropagation())}),y.up.on("touchstart.touchspin",function(t){y.up.off("mousedown.touchspin"),S.is(":disabled")||(h(),f(),t.preventDefault(),t.stopPropagation())}),y.up.on("mouseout touchleave touchend touchcancel",function(t){D&&(t.stopPropagation(),m())}),y.down.on("mouseout touchleave touchend touchcancel",function(t){D&&(t.stopPropagation(),m())}),y.down.on("mousemove touchmove",function(t){D&&(t.stopPropagation(),t.preventDefault())}),y.up.on("mousemove touchmove",function(t){D&&(t.stopPropagation(),t.preventDefault())}),t(document).on(e(["mouseup","touchend","touchcancel"],i).join(" "),function(t){D&&(t.preventDefault(),m())}),t(document).on(e(["mousemove","touchmove","scroll","scrollstart"],i).join(" "),function(t){D&&(t.preventDefault(),m())}),S.on("mousewheel DOMMouseScroll",function(t){if(g.mousewheel&&S.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?d():h()}}),S.on("touchspin.uponce",function(){m(),h()}),S.on("touchspin.downonce",function(){m(),d()}),S.on("touchspin.startupspin",function(){f()}),S.on("touchspin.startdownspin",function(){p()}),S.on("touchspin.stopspin",function(){m()}),S.on("touchspin.updatesettings",function(t,e){r(e)}),y.input.css("display","block")))})}this.each(function(){var i=t(this).data();t(document).off(e(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],i.spinnerid).join(" "))})}}(jQuery)},function(t,e,i){"use strict";if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var e,i,n,s,o,r,a,l,c,u,h,d,p,f,m,g,v,y,b,_,w,x,C,S,k,T,D,E,I,A,P,$,O,M,N,H,j,L,z,F,W,R,B,q,U,V,Y,Q,X,K,G,Z,J,tt,et,it,nt,st,ot,rt,at,lt,ct,ut,ht,dt,pt,ft,mt,gt,vt,yt,bt,_t,wt,xt,Ct,St,kt,Tt,Dt,Et,It,At,Pt,$t,Ot,Mt,Nt,Ht,jt,Lt,zt,Ft,Wt,Rt,Bt,qt,Ut,Vt,Yt,Qt,Xt,Kt,Gt,Zt,Jt,te,ee,ie,ne,se,oe,re,ae,le,ce,ue,he,de,pe,fe,me,ge,ve,ye,be,_e,we,xe,Ce,Se,ke,Te,De,Ee,Ie,Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),$e=function(t){function e(e){var i=this,n=!1;return t(this).one(s.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||s.triggerTransitionEnd(i)},e),this}var i=!1,n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},s={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){new Function("bs","return bs")(t.offsetHeight)},triggerTransitionEnd:function(e){t(e).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},typeCheckConfig:function(t,e,i){for(var n in i)if(i.hasOwnProperty(n)){var s,o=i[n],r=e[n];if(s=r&&((l=r)[0]||l).nodeType?"element":(a=r,{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase()),!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+s+'" but expected type "'+o+'".')}var a,l}};return i=function(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in n)if(void 0!==t.style[e])return{end:n[e]};return!1}(),t.fn.emulateTransitionEnd=e,s.supportsTransitionEnd()&&(t.event.special[s.TRANSITION_END]={bindType:i.end,delegateType:i.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),s}(jQuery),Oe=(ae=jQuery,le="alert",ue="."+(ce="bs.alert"),he=ae.fn[le],de={CLOSE:"close"+ue,CLOSED:"closed"+ue,CLICK_DATA_API:"click"+ue+".data-api"},pe="alert",fe="fade",me="in",ge=function(){function e(i){t(this,e),this._element=i}return e.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.prototype.dispose=function(){ae.removeData(this._element,ce),this._element=null},e.prototype._getRootElement=function(t){var e=$e.getSelectorFromElement(t),i=!1;return e&&(i=ae(e)[0]),i||(i=ae(t).closest("."+pe)[0]),i},e.prototype._triggerCloseEvent=function(t){var e=ae.Event(de.CLOSE);return ae(t).trigger(e),e},e.prototype._removeElement=function(t){return ae(t).removeClass(me),$e.supportsTransitionEnd()&&ae(t).hasClass(fe)?void ae(t).one($e.TRANSITION_END,ae.proxy(this._destroyElement,this,t)).emulateTransitionEnd(150):void this._destroyElement(t)},e.prototype._destroyElement=function(t){ae(t).detach().trigger(de.CLOSED).remove()},e._jQueryInterface=function(t){return this.each(function(){var i=ae(this),n=i.data(ce);n||(n=new e(this),i.data(ce,n)),"close"===t&&n[t](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},Pe(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),e}(),ae(document).on(de.CLICK_DATA_API,'[data-dismiss="alert"]',ge._handleDismiss(new ge)),ae.fn[le]=ge._jQueryInterface,ae.fn[le].Constructor=ge,ae.fn[le].noConflict=function(){return ae.fn[le]=he,ge._jQueryInterface},Ut=jQuery,Vt="button",Qt="."+(Yt="bs.button"),Xt=".data-api",Kt=Ut.fn[Vt],Gt="active",Zt="btn",Jt="focus",te='[data-toggle^="button"]',ee='[data-toggle="buttons"]',ie="input",ne=".active",se=".btn",oe={CLICK_DATA_API:"click"+Qt+Xt,FOCUS_BLUR_DATA_API:"focus"+Qt+Xt+" blur"+Qt+Xt},re=function(){function e(i){t(this,e),this._element=i}return e.prototype.toggle=function(){var t=!0,e=Ut(this._element).closest(ee)[0];if(e){var i=Ut(this._element).find(ie)[0];if(i){if("radio"===i.type)if(i.checked&&Ut(this._element).hasClass(Gt))t=!1;else{var n=Ut(e).find(ne)[0];n&&Ut(n).removeClass(Gt)}t&&(i.checked=!Ut(this._element).hasClass(Gt),Ut(this._element).trigger("change")),i.focus()}}else this._element.setAttribute("aria-pressed",!Ut(this._element).hasClass(Gt));t&&Ut(this._element).toggleClass(Gt)},e.prototype.dispose=function(){Ut.removeData(this._element,Yt),this._element=null},e._jQueryInterface=function(t){return this.each(function(){var i=Ut(this).data(Yt);i||(i=new e(this),Ut(this).data(Yt,i)),"toggle"===t&&i[t]()})},Pe(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),e}(),Ut(document).on(oe.CLICK_DATA_API,te,function(t){t.preventDefault();var e=t.target;Ut(e).hasClass(Zt)||(e=Ut(e).closest(se)),re._jQueryInterface.call(Ut(e),"toggle")}).on(oe.FOCUS_BLUR_DATA_API,te,function(t){var e=Ut(t.target).closest(se)[0];Ut(e).toggleClass(Jt,/^focus(in)?$/.test(t.type))}),Ut.fn[Vt]=re._jQueryInterface,Ut.fn[Vt].Constructor=re,Ut.fn[Vt].noConflict=function(){return Ut.fn[Vt]=Kt,re._jQueryInterface},Et=jQuery,It="carousel",Pt="."+(At="bs.carousel"),$t=Et.fn[It],Ot={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},Mt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},Nt="next",Ht="prev",jt={SLIDE:"slide"+Pt,SLID:"slid"+Pt,KEYDOWN:"keydown"+Pt,MOUSEENTER:"mouseenter"+Pt,MOUSELEAVE:"mouseleave"+Pt,LOAD_DATA_API:"load"+Pt+".data-api",CLICK_DATA_API:"click"+Pt+".data-api"},Lt="carousel",zt="active",Ft="slide",Wt="right",Rt="left",Bt={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".next, .prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},qt=function(){function e(i,n){t(this,e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(n),this._element=Et(i)[0],this._indicatorsElement=Et(this._element).find(Bt.INDICATORS)[0],this._addEventListeners()}return e.prototype.next=function(){this._isSliding||this._slide(Nt)},e.prototype.nextWhenVisible=function(){document.hidden||this.next()},e.prototype.prev=function(){this._isSliding||this._slide(Ht)},e.prototype.pause=function(t){t||(this._isPaused=!0),Et(this._element).find(Bt.NEXT_PREV)[0]&&$e.supportsTransitionEnd()&&($e.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.prototype.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(Et.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))},e.prototype.to=function(t){var e=this;this._activeElement=Et(this._element).find(Bt.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)return void Et(this._element).one(jt.SLID,function(){return e.to(t)});if(i===t)return this.pause(),void this.cycle();var n=t>i?Nt:Ht;this._slide(n,this._items[t])}},e.prototype.dispose=function(){Et(this._element).off(Pt),Et.removeData(this._element,At),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e.prototype._getConfig=function(t){return t=Et.extend({},Ot,t),$e.typeCheckConfig(It,t,Mt),t},e.prototype._addEventListeners=function(){this._config.keyboard&&Et(this._element).on(jt.KEYDOWN,Et.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||Et(this._element).on(jt.MOUSEENTER,Et.proxy(this.pause,this)).on(jt.MOUSELEAVE,Et.proxy(this.cycle,this))},e.prototype._keydown=function(t){if(t.preventDefault(),!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}},e.prototype._getItemIndex=function(t){return this._items=Et.makeArray(Et(t).parent().find(Bt.ITEM)),this._items.indexOf(t)},e.prototype._getItemByDirection=function(t,e){var i=t===Nt,n=t===Ht,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;var r=(s+(t===Ht?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},e.prototype._triggerSlideEvent=function(t,e){var i=Et.Event(jt.SLIDE,{relatedTarget:t,direction:e});return Et(this._element).trigger(i),i},e.prototype._setActiveIndicatorElement=function(t){if(this._indicatorsElement){Et(this._indicatorsElement).find(Bt.ACTIVE).removeClass(zt);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&Et(e).addClass(zt)}},e.prototype._slide=function(t,e){var i=this,n=Et(this._element).find(Bt.ACTIVE_ITEM)[0],s=e||n&&this._getItemByDirection(t,n),o=Boolean(this._interval),r=t===Nt?Rt:Wt;if(s&&Et(s).hasClass(zt))this._isSliding=!1;else if(!this._triggerSlideEvent(s,r).isDefaultPrevented()&&n&&s){this._isSliding=!0,o&&this.pause(),this._setActiveIndicatorElement(s);var a=Et.Event(jt.SLID,{relatedTarget:s,direction:r});$e.supportsTransitionEnd()&&Et(this._element).hasClass(Ft)?(Et(s).addClass(t),$e.reflow(s),Et(n).addClass(r),Et(s).addClass(r),Et(n).one($e.TRANSITION_END,function(){Et(s).removeClass(r).removeClass(t),Et(s).addClass(zt),Et(n).removeClass(zt).removeClass(t).removeClass(r),i._isSliding=!1,setTimeout(function(){return Et(i._element).trigger(a)},0)}).emulateTransitionEnd(600)):(Et(n).removeClass(zt),Et(s).addClass(zt),this._isSliding=!1,Et(this._element).trigger(a)),o&&this.cycle()}},e._jQueryInterface=function(t){return this.each(function(){var i=Et(this).data(At),n=Et.extend({},Ot,Et(this).data());"object"===(void 0===t?"undefined":Ae(t))&&Et.extend(n,t);var s="string"==typeof t?t:n.slide;if(i||(i=new e(this,n),Et(this).data(At,i)),"number"==typeof t)i.to(t);else if("string"==typeof s){if(void 0===i[s])throw new Error('No method named "'+s+'"');i[s]()}else n.interval&&(i.pause(),i.cycle())})},e._dataApiClickHandler=function(t){var i=$e.getSelectorFromElement(this);if(i){var n=Et(i)[0];if(n&&Et(n).hasClass(Lt)){var s=Et.extend({},Et(n).data(),Et(this).data()),o=this.getAttribute("data-slide-to");o&&(s.interval=!1),e._jQueryInterface.call(Et(n),s),o&&Et(n).data(At).to(o),t.preventDefault()}}},Pe(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return Ot}}]),e}(),Et(document).on(jt.CLICK_DATA_API,Bt.DATA_SLIDE,qt._dataApiClickHandler),Et(window).on(jt.LOAD_DATA_API,function(){Et(Bt.DATA_RIDE).each(function(){var t=Et(this);qt._jQueryInterface.call(t,t.data())})}),Et.fn[It]=qt._jQueryInterface,Et.fn[It].Constructor=qt,Et.fn[It].noConflict=function(){return Et.fn[It]=$t,qt._jQueryInterface},ht=jQuery,dt="collapse",ft="."+(pt="bs.collapse"),mt=ht.fn[dt],gt={toggle:!0,parent:""},vt={toggle:"boolean",parent:"string"},yt={SHOW:"show"+ft,SHOWN:"shown"+ft,HIDE:"hide"+ft,HIDDEN:"hidden"+ft,CLICK_DATA_API:"click"+ft+".data-api"},bt="in",_t="collapse",wt="collapsing",xt="collapsed",Ct="width",St="height",kt=".card > .in, .card > .collapsing",Tt='[data-toggle="collapse"]',Dt=function(){function e(i,n){t(this,e),this._isTransitioning=!1,this._element=i,this._config=this._getConfig(n),this._triggerArray=ht.makeArray(ht('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return e.prototype.toggle=function(){ht(this._element).hasClass(bt)?this.hide():this.show()},e.prototype.show=function(){var t=this;if(!this._isTransitioning&&!ht(this._element).hasClass(bt)){var i=void 0,n=void 0;if(this._parent&&((i=ht.makeArray(ht(kt))).length||(i=null)),!(i&&(n=ht(i).data(pt))&&n._isTransitioning)){var s=ht.Event(yt.SHOW);if(ht(this._element).trigger(s),!s.isDefaultPrevented()){i&&(e._jQueryInterface.call(ht(i),"hide"),n||ht(i).data(pt,null));var o=this._getDimension();ht(this._element).removeClass(_t).addClass(wt),this._element.style[o]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&ht(this._triggerArray).removeClass(xt).attr("aria-expanded",!0),this.setTransitioning(!0);var r=function(){ht(t._element).removeClass(wt).addClass(_t).addClass(bt),t._element.style[o]="",t.setTransitioning(!1),ht(t._element).trigger(yt.SHOWN)};if(!$e.supportsTransitionEnd())return void r();var a="scroll"+(o[0].toUpperCase()+o.slice(1));ht(this._element).one($e.TRANSITION_END,r).emulateTransitionEnd(600),this._element.style[o]=this._element[a]+"px"}}}},e.prototype.hide=function(){var t=this;if(!this._isTransitioning&&ht(this._element).hasClass(bt)){var e=ht.Event(yt.HIDE);if(ht(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension(),n=i===Ct?"offsetWidth":"offsetHeight";this._element.style[i]=this._element[n]+"px",$e.reflow(this._element),ht(this._element).addClass(wt).removeClass(_t).removeClass(bt),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&ht(this._triggerArray).addClass(xt).attr("aria-expanded",!1),this.setTransitioning(!0);var s=function(){t.setTransitioning(!1),ht(t._element).removeClass(wt).addClass(_t).trigger(yt.HIDDEN)};return this._element.style[i]="",$e.supportsTransitionEnd()?void ht(this._element).one($e.TRANSITION_END,s).emulateTransitionEnd(600):void s()}}},e.prototype.setTransitioning=function(t){this._isTransitioning=t},e.prototype.dispose=function(){ht.removeData(this._element,pt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e.prototype._getConfig=function(t){return(t=ht.extend({},gt,t)).toggle=Boolean(t.toggle),$e.typeCheckConfig(dt,t,vt),t},e.prototype._getDimension=function(){return ht(this._element).hasClass(Ct)?Ct:St},e.prototype._getParent=function(){var t=this,i=ht(this._config.parent)[0],n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return ht(i).find(n).each(function(i,n){t._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])}),i},e.prototype._addAriaAndCollapsedClass=function(t,e){if(t){var i=ht(t).hasClass(bt);t.setAttribute("aria-expanded",i),e.length&&ht(e).toggleClass(xt,!i).attr("aria-expanded",i)}},e._getTargetFromElement=function(t){var e=$e.getSelectorFromElement(t);return e?ht(e)[0]:null},e._jQueryInterface=function(t){return this.each(function(){var i=ht(this),n=i.data(pt),s=ht.extend({},gt,i.data(),"object"===(void 0===t?"undefined":Ae(t))&&t);if(!n&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new e(this,s),i.data(pt,n)),"string"==typeof t){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t]()}})},Pe(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return gt}}]),e}(),ht(document).on(yt.CLICK_DATA_API,Tt,function(t){t.preventDefault();var e=Dt._getTargetFromElement(this),i=ht(e).data(pt)?"toggle":ht(this).data();Dt._jQueryInterface.call(ht(e),i)}),ht.fn[dt]=Dt._jQueryInterface,ht.fn[dt].Constructor=Dt,ht.fn[dt].noConflict=function(){return ht.fn[dt]=mt,Dt._jQueryInterface},Q=jQuery,X="dropdown",G="."+(K="bs.dropdown"),Z=Q.fn[X],J={HIDE:"hide"+G,HIDDEN:"hidden"+G,SHOW:"show"+G,SHOWN:"shown"+G,CLICK:"click"+G,CLICK_DATA_API:"click"+G+".data-api",KEYDOWN_DATA_API:"keydown"+G+".data-api"},tt="dropdown-backdrop",et="disabled",it="open",nt=".dropdown-backdrop",st='[data-toggle="dropdown"]',ot=".dropdown form",rt='[role="menu"]',at='[role="listbox"]',lt=".navbar-nav",ct='[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a',ut=function(){function e(i){t(this,e),this._element=i,this._addEventListeners()}return e.prototype.toggle=function(){if(this.disabled||Q(this).hasClass(et))return!1;var t=e._getParentFromElement(this),i=Q(t).hasClass(it);if(e._clearMenus(),i)return!1;if("ontouchstart"in document.documentElement&&!Q(t).closest(lt).length){var n=document.createElement("div");n.className=tt,Q(n).insertBefore(this),Q(n).on("click",e._clearMenus)}var s={relatedTarget:this},o=Q.Event(J.SHOW,s);return Q(t).trigger(o),!o.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),Q(t).toggleClass(it),Q(t).trigger(Q.Event(J.SHOWN,s)),!1)},e.prototype.dispose=function(){Q.removeData(this._element,K),Q(this._element).off(G),this._element=null},e.prototype._addEventListeners=function(){Q(this._element).on(J.CLICK,this.toggle)},e._jQueryInterface=function(t){return this.each(function(){var i=Q(this).data(K);if(i||Q(this).data(K,i=new e(this)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t].call(this)}})},e._clearMenus=function(t){if(!t||3!==t.which){var i=Q(nt)[0];i&&i.parentNode.removeChild(i);for(var n=Q.makeArray(Q(st)),s=0;s<n.length;s++){var o=e._getParentFromElement(n[s]),r={relatedTarget:n[s]};if(Q(o).hasClass(it)&&!(t&&"click"===t.type&&/input|textarea/i.test(t.target.tagName)&&Q.contains(o,t.target))){var a=Q.Event(J.HIDE,r);Q(o).trigger(a),a.isDefaultPrevented()||(n[s].setAttribute("aria-expanded","false"),Q(o).removeClass(it).trigger(Q.Event(J.HIDDEN,r)))}}}},e._getParentFromElement=function(t){var e=void 0,i=$e.getSelectorFromElement(t);return i&&(e=Q(i)[0]),e||t.parentNode},e._dataApiKeydownHandler=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!Q(this).hasClass(et))){var i=e._getParentFromElement(this),n=Q(i).hasClass(it);if(!n&&27!==t.which||n&&27===t.which){if(27===t.which){var s=Q(i).find(st)[0];Q(s).trigger("focus")}return void Q(this).trigger("click")}var o=Q.makeArray(Q(ct));if((o=o.filter(function(t){return t.offsetWidth||t.offsetHeight})).length){var r=o.indexOf(t.target);38===t.which&&r>0&&r--,40===t.which&&r<o.length-1&&r++,r<0&&(r=0),o[r].focus()}}},Pe(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),e}(),Q(document).on(J.KEYDOWN_DATA_API,st,ut._dataApiKeydownHandler).on(J.KEYDOWN_DATA_API,rt,ut._dataApiKeydownHandler).on(J.KEYDOWN_DATA_API,at,ut._dataApiKeydownHandler).on(J.CLICK_DATA_API,ut._clearMenus).on(J.CLICK_DATA_API,st,ut.prototype.toggle).on(J.CLICK_DATA_API,ot,function(t){t.stopPropagation()}),Q.fn[X]=ut._jQueryInterface,Q.fn[X].Constructor=ut,Q.fn[X].noConflict=function(){return Q.fn[X]=Z,ut._jQueryInterface},O=jQuery,M="modal",H="."+(N="bs.modal"),j=O.fn[M],L={backdrop:!0,keyboard:!0,focus:!0,show:!0},z={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},F={HIDE:"hide"+H,HIDDEN:"hidden"+H,SHOW:"show"+H,SHOWN:"shown"+H,FOCUSIN:"focusin"+H,RESIZE:"resize"+H,CLICK_DISMISS:"click.dismiss"+H,KEYDOWN_DISMISS:"keydown.dismiss"+H,MOUSEUP_DISMISS:"mouseup.dismiss"+H,MOUSEDOWN_DISMISS:"mousedown.dismiss"+H,CLICK_DATA_API:"click"+H+".data-api"},W="modal-scrollbar-measure",R="modal-backdrop",B="modal-open",q="fade",U="in",V={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed"},Y=function(){function e(i,n){t(this,e),this._config=this._getConfig(n),this._element=i,this._dialog=O(i).find(V.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return e.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.prototype.show=function(t){var e=this,i=O.Event(F.SHOW,{relatedTarget:t});O(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),O(document.body).addClass(B),this._setEscapeEvent(),this._setResizeEvent(),O(this._element).on(F.CLICK_DISMISS,V.DATA_DISMISS,O.proxy(this.hide,this)),O(this._dialog).on(F.MOUSEDOWN_DISMISS,function(){O(e._element).one(F.MOUSEUP_DISMISS,function(t){O(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(O.proxy(this._showElement,this,t)))},e.prototype.hide=function(t){t&&t.preventDefault();var e=O.Event(F.HIDE);O(this._element).trigger(e),this._isShown&&!e.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),O(document).off(F.FOCUSIN),O(this._element).removeClass(U),O(this._element).off(F.CLICK_DISMISS),O(this._dialog).off(F.MOUSEDOWN_DISMISS),$e.supportsTransitionEnd()&&O(this._element).hasClass(q)?O(this._element).one($e.TRANSITION_END,O.proxy(this._hideModal,this)).emulateTransitionEnd(300):this._hideModal())},e.prototype.dispose=function(){O.removeData(this._element,N),O(window).off(H),O(document).off(H),O(this._element).off(H),O(this._backdrop).off(H),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},e.prototype._getConfig=function(t){return t=O.extend({},L,t),$e.typeCheckConfig(M,t,z),t},e.prototype._showElement=function(t){var e=this,i=$e.supportsTransitionEnd()&&O(this._element).hasClass(q);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&$e.reflow(this._element),O(this._element).addClass(U),this._config.focus&&this._enforceFocus();var n=O.Event(F.SHOWN,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),O(e._element).trigger(n)};i?O(this._dialog).one($e.TRANSITION_END,s).emulateTransitionEnd(300):s()},e.prototype._enforceFocus=function(){var t=this;O(document).off(F.FOCUSIN).on(F.FOCUSIN,function(e){document===e.target||t._element===e.target||O(t._element).has(e.target).length||t._element.focus()})},e.prototype._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?O(this._element).on(F.KEYDOWN_DISMISS,function(e){27===e.which&&t.hide()}):this._isShown||O(this._element).off(F.KEYDOWN_DISMISS)},e.prototype._setResizeEvent=function(){this._isShown?O(window).on(F.RESIZE,O.proxy(this._handleUpdate,this)):O(window).off(F.RESIZE)},e.prototype._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._showBackdrop(function(){O(document.body).removeClass(B),t._resetAdjustments(),t._resetScrollbar(),O(t._element).trigger(F.HIDDEN)})},e.prototype._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},e.prototype._showBackdrop=function(t){var e=this,i=O(this._element).hasClass(q)?q:"";if(this._isShown&&this._config.backdrop){var n=$e.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=R,i&&O(this._backdrop).addClass(i),O(this._backdrop).appendTo(document.body),O(this._element).on(F.CLICK_DISMISS,function(t){return e._ignoreBackdropClick?void(e._ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide()))}),n&&$e.reflow(this._backdrop),O(this._backdrop).addClass(U),!t)return;if(!n)return void t();O(this._backdrop).one($e.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){O(this._backdrop).removeClass(U);var s=function(){e._removeBackdrop(),t&&t()};$e.supportsTransitionEnd()&&O(this._element).hasClass(q)?O(this._backdrop).one($e.TRANSITION_END,s).emulateTransitionEnd(150):s()}else t&&t()},e.prototype._handleUpdate=function(){this._adjustDialog()},e.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e.prototype._setScrollbar=function(){var t=parseInt(O(V.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=t+this._scrollbarWidth+"px")},e.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},e.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=W,document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},e._jQueryInterface=function(t,i){return this.each(function(){var n=O(this).data(N),s=O.extend({},e.Default,O(this).data(),"object"===(void 0===t?"undefined":Ae(t))&&t);if(n||(n=new e(this,s),O(this).data(N,n)),"string"==typeof t){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t](i)}else s.show&&n.show(i)})},Pe(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return L}}]),e}(),O(document).on(F.CLICK_DATA_API,V.DATA_TOGGLE,function(t){var e=this,i=void 0,n=$e.getSelectorFromElement(this);n&&(i=O(n)[0]);var s=O(i).data(N)?"toggle":O.extend({},O(i).data(),O(this).data());"A"===this.tagName&&t.preventDefault();var o=O(i).one(F.SHOW,function(t){t.isDefaultPrevented()||o.one(F.HIDDEN,function(){O(e).is(":visible")&&e.focus()})});Y._jQueryInterface.call(O(i),s,this)}),O.fn[M]=Y._jQueryInterface,O.fn[M].Constructor=Y,O.fn[M].noConflict=function(){return O.fn[M]=j,Y._jQueryInterface},b=jQuery,_="scrollspy",x="."+(w="bs.scrollspy"),C=b.fn[_],S={offset:10,method:"auto",target:""},k={offset:"number",method:"string",target:"(string|element)"},T={ACTIVATE:"activate"+x,SCROLL:"scroll"+x,LOAD_DATA_API:"load"+x+".data-api"},D="dropdown-item",E="active",I={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},A="offset",P="position",$=function(){function e(i,n){t(this,e),this._element=i,this._scrollElement="BODY"===i.tagName?window:i,this._config=this._getConfig(n),this._selector=this._config.target+" "+I.NAV_LINKS+","+this._config.target+" "+I.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,b(this._scrollElement).on(T.SCROLL,b.proxy(this._process,this)),this.refresh(),this._process()}return e.prototype.refresh=function(){var t=this,e=this._scrollElement!==this._scrollElement.window?P:A,i="auto"===this._config.method?e:this._config.method,n=i===P?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),b.makeArray(b(this._selector)).map(function(t){var e=void 0,s=$e.getSelectorFromElement(t);return s&&(e=b(s)[0]),e&&(e.offsetWidth||e.offsetHeight)?[b(e)[i]().top+n,s]:null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.prototype.dispose=function(){b.removeData(this._element,w),b(this._scrollElement).off(x),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e.prototype._getConfig=function(t){if("string"!=typeof(t=b.extend({},S,t)).target){var e=b(t.target).attr("id");e||(e=$e.getUID(_),b(t.target).attr("id",e)),t.target="#"+e}return $e.typeCheckConfig(_,t,k),t},e.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop},e.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._scrollElement.offsetHeight;if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}if(this._activeTarget&&t<this._offsets[0])return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])},e.prototype._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",");e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=b(e.join(","));i.hasClass(D)?(i.closest(I.DROPDOWN).find(I.DROPDOWN_TOGGLE).addClass(E),i.addClass(E)):i.parents(I.LI).find(I.NAV_LINKS).addClass(E),b(this._scrollElement).trigger(T.ACTIVATE,{relatedTarget:t})},e.prototype._clear=function(){b(this._selector).filter(I.ACTIVE).removeClass(E)},e._jQueryInterface=function(t){return this.each(function(){var i=b(this).data(w),n="object"===(void 0===t?"undefined":Ae(t))&&t||null;if(i||(i=new e(this,n),b(this).data(w,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},Pe(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return S}}]),e}(),b(window).on(T.LOAD_DATA_API,function(){for(var t=b.makeArray(b(I.DATA_SPY)),e=t.length;e--;){var i=b(t[e]);$._jQueryInterface.call(i,i.data())}}),b.fn[_]=$._jQueryInterface,b.fn[_].Constructor=$,b.fn[_].noConflict=function(){return b.fn[_]=C,$._jQueryInterface},e=jQuery,n="."+(i="bs.tab"),s=e.fn.tab,o={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK_DATA_API:"click.bs.tab.data-api"},r="dropdown-menu",a="active",l="fade",c="in",u=".dropdown",h="ul:not(.dropdown-menu)",d="> .nav-item .fade, > .fade",p=".active",f="> .nav-item > .active, > .active",m='[data-toggle="tab"], [data-toggle="pill"]',g=".dropdown-toggle",v="> .dropdown-menu .active",y=function(){function n(e){t(this,n),this._element=e}return n.prototype.show=function(){var t=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!e(this._element).hasClass(a)){var i=void 0,n=void 0,s=e(this._element).closest(h)[0],r=$e.getSelectorFromElement(this._element);s&&(n=(n=e.makeArray(e(s).find(p)))[n.length-1]);var l=e.Event(o.HIDE,{relatedTarget:this._element}),c=e.Event(o.SHOW,{relatedTarget:n});if(n&&e(n).trigger(l),e(this._element).trigger(c),!c.isDefaultPrevented()&&!l.isDefaultPrevented()){r&&(i=e(r)[0]),this._activate(this._element,s);var u=function(){var i=e.Event(o.HIDDEN,{relatedTarget:t._element}),s=e.Event(o.SHOWN,{relatedTarget:n});e(n).trigger(i),e(t._element).trigger(s)};i?this._activate(i,i.parentNode,u):u()}}},n.prototype.dispose=function(){e.removeClass(this._element,i),this._element=null},n.prototype._activate=function(t,i,n){var s=e(i).find(f)[0],o=n&&$e.supportsTransitionEnd()&&(s&&e(s).hasClass(l)||Boolean(e(i).find(d)[0])),r=e.proxy(this._transitionComplete,this,t,s,o,n);s&&o?e(s).one($e.TRANSITION_END,r).emulateTransitionEnd(150):r(),s&&e(s).removeClass(c)},n.prototype._transitionComplete=function(t,i,n,s){if(i){e(i).removeClass(a);var o=e(i).find(v)[0];o&&e(o).removeClass(a),i.setAttribute("aria-expanded",!1)}if(e(t).addClass(a),t.setAttribute("aria-expanded",!0),n?($e.reflow(t),e(t).addClass(c)):e(t).removeClass(l),t.parentNode&&e(t.parentNode).hasClass(r)){var h=e(t).closest(u)[0];h&&e(h).find(g).addClass(a),t.setAttribute("aria-expanded",!0)}s&&s()},n._jQueryInterface=function(t){return this.each(function(){var s=e(this),o=s.data(i);if(o||(o=o=new n(this),s.data(i,o)),"string"==typeof t){if(void 0===o[t])throw new Error('No method named "'+t+'"');o[t]()}})},Pe(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),n}(),e(document).on(o.CLICK_DATA_API,m,function(t){t.preventDefault(),y._jQueryInterface.call(e(this),"show")}),e.fn.tab=y._jQueryInterface,e.fn.tab.Constructor=y,e.fn.tab.noConflict=function(){return e.fn.tab=s,y._jQueryInterface},function(e){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var i="tooltip",n="bs.tooltip",s="."+n,o=e.fn[i],r={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},a={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},l={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},c="in",u="out",h={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},d="fade",p="in",f=".tooltip-inner",m={element:!1,enabled:!1},g="hover",v="focus",y="manual",b=function(){function o(e,i){t(this,o),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=e,this.config=this._getConfig(i),this.tip=null,this._setListeners()}return o.prototype.enable=function(){this._isEnabled=!0},o.prototype.disable=function(){this._isEnabled=!1},o.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.prototype.toggle=function(t){if(t){var i=this.constructor.DATA_KEY,n=e(t.currentTarget).data(i);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(e(this.getTipElement()).hasClass(p))return void this._leave(null,this);this._enter(null,this)}},o.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},o.prototype.show=function(){var t=this,i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var n=e.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!n)return;var s=this.getTipElement(),r=$e.getUID(this.constructor.NAME);s.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&e(s).addClass(d);var a="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,l=this._getAttachment(a);e(s).data(this.constructor.DATA_KEY,this).appendTo(document.body),e(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:l,element:s,target:this.element,classes:m,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),$e.reflow(s),this._tether.position(),e(s).addClass(p);var c=function(){var i=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),i===u&&t._leave(null,t)};if($e.supportsTransitionEnd()&&e(this.tip).hasClass(d))return void e(this.tip).one($e.TRANSITION_END,c).emulateTransitionEnd(o._TRANSITION_DURATION);c()}},o.prototype.hide=function(t){var i=this,n=this.getTipElement(),s=e.Event(this.constructor.Event.HIDE),o=function(){i._hoverState!==c&&n.parentNode&&n.parentNode.removeChild(n),i.element.removeAttribute("aria-describedby"),e(i.element).trigger(i.constructor.Event.HIDDEN),i.cleanupTether(),t&&t()};e(this.element).trigger(s),s.isDefaultPrevented()||(e(n).removeClass(p),$e.supportsTransitionEnd()&&e(this.tip).hasClass(d)?e(n).one($e.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},o.prototype.isWithContent=function(){return Boolean(this.getTitle())},o.prototype.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0]},o.prototype.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(f),this.getTitle()),t.removeClass(d).removeClass(p),this.cleanupTether()},o.prototype.setElementContent=function(t,i){var n=this.config.html;"object"===(void 0===i?"undefined":Ae(i))&&(i.nodeType||i.jquery)?n?e(i).parent().is(t)||t.empty().append(i):t.text(e(i).text()):t[n?"html":"text"](i)},o.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},o.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},o.prototype._getAttachment=function(t){return l[t.toUpperCase()]},o.prototype._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,e.proxy(t.toggle,t));else if(i!==y){var n=i===g?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,s=i===g?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(n,t.config.selector,e.proxy(t._enter,t)).on(s,t.config.selector,e.proxy(t._leave,t))}}),this.config.selector?this.config=e.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o.prototype._fixTitle=function(){var t=Ae(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o.prototype._enter=function(t,i){var n=this.constructor.DATA_KEY;return(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusin"===t.type?v:g]=!0),e(i.getTipElement()).hasClass(p)||i._hoverState===c?void(i._hoverState=c):(clearTimeout(i._timeout),i._hoverState=c,i.config.delay&&i.config.delay.show?void(i._timeout=setTimeout(function(){i._hoverState===c&&i.show()},i.config.delay.show)):void i.show())},o.prototype._leave=function(t,i){var n=this.constructor.DATA_KEY;if((i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusout"===t.type?v:g]=!1),!i._isWithActiveTrigger())return clearTimeout(i._timeout),i._hoverState=u,i.config.delay&&i.config.delay.hide?void(i._timeout=setTimeout(function(){i._hoverState===u&&i.hide()},i.config.delay.hide)):void i.hide()},o.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},o.prototype._getConfig=function(t){return(t=e.extend({},this.constructor.Default,e(this.element).data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),$e.typeCheckConfig(i,t,this.constructor.DefaultType),t},o.prototype._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},o._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(n),s="object"===(void 0===t?"undefined":Ae(t))?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new o(this,s),e(this).data(n,i)),"string"==typeof t)){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},Pe(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return r}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return a}}]),o}();return e.fn[i]=b._jQueryInterface,e.fn[i].Constructor=b,e.fn[i].noConflict=function(){return e.fn[i]=o,b._jQueryInterface},b}(jQuery));ve=jQuery,ye="popover",_e="."+(be="bs.popover"),we=ve.fn[ye],xe=ve.extend({},Oe.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),Ce=ve.extend({},Oe.DefaultType,{content:"(string|element|function)"}),Se="fade",ke="in",Te=".popover-title",De=".popover-content",Ee={HIDE:"hide"+_e,HIDDEN:"hidden"+_e,SHOW:"show"+_e,SHOWN:"shown"+_e,INSERTED:"inserted"+_e,CLICK:"click"+_e,FOCUSIN:"focusin"+_e,FOCUSOUT:"focusout"+_e,MOUSEENTER:"mouseenter"+_e,MOUSELEAVE:"mouseleave"+_e},Ie=function(e){function i(){return t(this,i),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(i,e),i.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},i.prototype.getTipElement=function(){return this.tip=this.tip||ve(this.config.template)[0]},i.prototype.setContent=function(){var t=ve(this.getTipElement());this.setElementContent(t.find(Te),this.getTitle()),this.setElementContent(t.find(De),this._getContent()),t.removeClass(Se).removeClass(ke),this.cleanupTether()},i.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},i._jQueryInterface=function(t){return this.each(function(){var e=ve(this).data(be),n="object"===(void 0===t?"undefined":Ae(t))?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new i(this,n),ve(this).data(be,e)),"string"==typeof t)){if(void 0===e[t])throw new Error('No method named "'+t+'"');e[t]()}})},Pe(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return xe}},{key:"NAME",get:function(){return ye}},{key:"DATA_KEY",get:function(){return be}},{key:"Event",get:function(){return Ee}},{key:"EVENT_KEY",get:function(){return _e}},{key:"DefaultType",get:function(){return Ce}}]),i}(Oe),ve.fn[ye]=Ie._jQueryInterface,ve.fn[ye].Constructor=Ie,ve.fn[ye].noConflict=function(){return ve.fn[ye]=we,Ie._jQueryInterface}}()},function(t,e,i){"use strict";function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function s(t){return"function"==typeof t}function o(t){return"object"==typeof t&&null!==t}function r(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,i,n,a,l,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(r(i=this._events[t]))return!1;if(s(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(o(i))for(a=Array.prototype.slice.call(arguments,1),n=(c=i.slice()).length,l=0;l<n;l++)c[l].apply(this,a);return!0},n.prototype.addListener=function(t,e){var i;if(!s(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,s(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=r(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}if(!s(e))throw TypeError("listener must be a function");var n=!1;return i.listener=e,this.on(t,i),this},n.prototype.removeListener=function(t,e){var i,n,r,a;if(!s(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=(i=this._events[t]).length,n=-1,i===e||s(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(i)){for(a=r;a-- >0;)if(i[a]===e||i[a].listener&&i[a].listener===e){n=a;break}if(n<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(s(i=this._events[t]))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?s(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(s(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,i){"use strict";var n;t.exports=function t(e,i,s){function o(a,l){if(!i[a]){if(!e[a]){var c="function"==typeof n&&n;if(!l&&c)return n(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=i[a]={exports:{}};e[a][0].call(h.exports,function(t){var i=e[a][1][t];return o(i||t)},h,h.exports,t,e,i,s)}return i[a].exports}for(var r="function"==typeof n&&n,a=0;a<s.length;a++)o(s[a]);return o}({1:[function(t,e,i){e.exports=function(t){var e,i,n,s=-1;if(t.lines.length>1&&"flex-start"===t.style.alignContent)for(e=0;n=t.lines[++s];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"flex-end"===t.style.alignContent)for(e=t.flexStyle.crossSpace;n=t.lines[++s];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"center"===t.style.alignContent)for(e=t.flexStyle.crossSpace/2;n=t.lines[++s];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"space-between"===t.style.alignContent)for(i=t.flexStyle.crossSpace/(t.lines.length-1),e=0;n=t.lines[++s];)n.crossStart=e,e+=n.cross+i;else if(t.lines.length>1&&"space-around"===t.style.alignContent)for(i=2*t.flexStyle.crossSpace/(2*t.lines.length),e=i/2;n=t.lines[++s];)n.crossStart=e,e+=n.cross+i;else for(i=t.flexStyle.crossSpace/t.lines.length,e=t.flexStyle.crossInnerBefore;n=t.lines[++s];)n.crossStart=e,n.cross+=i,e+=n.cross}},{}],2:[function(t,e,i){e.exports=function(t){for(var e,i=-1;line=t.lines[++i];)for(e=-1;child=line.children[++e];){var n=child.style.alignSelf;"auto"===n&&(n=t.style.alignItems),"flex-start"===n?child.flexStyle.crossStart=line.crossStart:"flex-end"===n?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===n?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(t,e,i){e.exports=function(t,e){var i="row"===e||"row-reverse"===e,n=t.mainAxis;n?i&&"inline"===n||!i&&"block"===n||(t.flexStyle={main:t.flexStyle.cross,cross:t.flexStyle.main,mainOffset:t.flexStyle.crossOffset,crossOffset:t.flexStyle.mainOffset,mainBefore:t.flexStyle.crossBefore,mainAfter:t.flexStyle.crossAfter,crossBefore:t.flexStyle.mainBefore,crossAfter:t.flexStyle.mainAfter,mainInnerBefore:t.flexStyle.crossInnerBefore,mainInnerAfter:t.flexStyle.crossInnerAfter,crossInnerBefore:t.flexStyle.mainInnerBefore,crossInnerAfter:t.flexStyle.mainInnerAfter,mainBorderBefore:t.flexStyle.crossBorderBefore,mainBorderAfter:t.flexStyle.crossBorderAfter,crossBorderBefore:t.flexStyle.mainBorderBefore,crossBorderAfter:t.flexStyle.mainBorderAfter}):(t.flexStyle=i?{main:t.style.width,cross:t.style.height,mainOffset:t.style.offsetWidth,crossOffset:t.style.offsetHeight,mainBefore:t.style.marginLeft,mainAfter:t.style.marginRight,crossBefore:t.style.marginTop,crossAfter:t.style.marginBottom,mainInnerBefore:t.style.paddingLeft,mainInnerAfter:t.style.paddingRight,crossInnerBefore:t.style.paddingTop,crossInnerAfter:t.style.paddingBottom,mainBorderBefore:t.style.borderLeftWidth,mainBorderAfter:t.style.borderRightWidth,crossBorderBefore:t.style.borderTopWidth,crossBorderAfter:t.style.borderBottomWidth}:{main:t.style.height,cross:t.style.width,mainOffset:t.style.offsetHeight,crossOffset:t.style.offsetWidth,mainBefore:t.style.marginTop,mainAfter:t.style.marginBottom,crossBefore:t.style.marginLeft,crossAfter:t.style.marginRight,mainInnerBefore:t.style.paddingTop,mainInnerAfter:t.style.paddingBottom,crossInnerBefore:t.style.paddingLeft,crossInnerAfter:t.style.paddingRight,mainBorderBefore:t.style.borderTopWidth,mainBorderAfter:t.style.borderBottomWidth,crossBorderBefore:t.style.borderLeftWidth,crossBorderAfter:t.style.borderRightWidth},"content-box"===t.style.boxSizing&&("number"==typeof t.flexStyle.main&&(t.flexStyle.main+=t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),"number"==typeof t.flexStyle.cross&&(t.flexStyle.cross+=t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter))),t.mainAxis=i?"inline":"block",t.crossAxis=i?"block":"inline","number"==typeof t.style.flexBasis&&(t.flexStyle.main=t.style.flexBasis+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),t.flexStyle.mainOuter=t.flexStyle.main,t.flexStyle.crossOuter=t.flexStyle.cross,"auto"===t.flexStyle.mainOuter&&(t.flexStyle.mainOuter=t.flexStyle.mainOffset),"auto"===t.flexStyle.crossOuter&&(t.flexStyle.crossOuter=t.flexStyle.crossOffset),"number"==typeof t.flexStyle.mainBefore&&(t.flexStyle.mainOuter+=t.flexStyle.mainBefore),"number"==typeof t.flexStyle.mainAfter&&(t.flexStyle.mainOuter+=t.flexStyle.mainAfter),"number"==typeof t.flexStyle.crossBefore&&(t.flexStyle.crossOuter+=t.flexStyle.crossBefore),"number"==typeof t.flexStyle.crossAfter&&(t.flexStyle.crossOuter+=t.flexStyle.crossAfter)}},{}],4:[function(t,e,i){var n=t("../reduce");e.exports=function(t){if(t.mainSpace>0){var e=n(t.children,function(t,e){return t+parseFloat(e.style.flexGrow)},0);e>0&&(t.main=n(t.children,function(i,n){return"auto"===n.flexStyle.main?n.flexStyle.main=n.flexStyle.mainOffset+parseFloat(n.style.flexGrow)/e*t.mainSpace:n.flexStyle.main+=parseFloat(n.style.flexGrow)/e*t.mainSpace,n.flexStyle.mainOuter=n.flexStyle.main+n.flexStyle.mainBefore+n.flexStyle.mainAfter,i+n.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],5:[function(t,e,i){var n=t("../reduce");e.exports=function(t){if(t.mainSpace<0){var e=n(t.children,function(t,e){return t+parseFloat(e.style.flexShrink)},0);e>0&&(t.main=n(t.children,function(i,n){return n.flexStyle.main+=parseFloat(n.style.flexShrink)/e*t.mainSpace,n.flexStyle.mainOuter=n.flexStyle.main+n.flexStyle.mainBefore+n.flexStyle.mainAfter,i+n.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],6:[function(t,e,i){var n=t("../reduce");e.exports=function(t){var e;t.lines=[e={main:0,cross:0,children:[]}];for(var i,s=-1;i=t.children[++s];)"nowrap"===t.style.flexWrap||0===e.children.length||"auto"===t.flexStyle.main||t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter>=e.main+i.flexStyle.mainOuter?(e.main+=i.flexStyle.mainOuter,e.cross=Math.max(e.cross,i.flexStyle.crossOuter)):t.lines.push(e={main:i.flexStyle.mainOuter,cross:i.flexStyle.crossOuter,children:[]}),e.children.push(i);t.flexStyle.mainLines=n(t.lines,function(t,e){return Math.max(t,e.main)},0),t.flexStyle.crossLines=n(t.lines,function(t,e){return t+e.cross},0),"auto"===t.flexStyle.main&&(t.flexStyle.main=Math.max(t.flexStyle.mainOffset,t.flexStyle.mainLines+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter)),"auto"===t.flexStyle.cross&&(t.flexStyle.cross=Math.max(t.flexStyle.crossOffset,t.flexStyle.crossLines+t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter)),t.flexStyle.crossSpace=t.flexStyle.cross-t.flexStyle.crossInnerBefore-t.flexStyle.crossInnerAfter-t.flexStyle.crossBorderBefore-t.flexStyle.crossBorderAfter-t.flexStyle.crossLines,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}},{"../reduce":12}],7:[function(t,e,i){e.exports=function(e){for(var i,n=-1;i=e.children[++n];)t("./flex-direction")(i,e.style.flexDirection);t("./flex-direction")(e,e.style.flexDirection),t("./order")(e),t("./flexbox-lines")(e),t("./align-content")(e),n=-1;for(var s;s=e.lines[++n];)s.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-s.main,t("./flex-grow")(s),t("./flex-shrink")(s),t("./margin-main")(s),t("./margin-cross")(s),t("./justify-content")(s,e.style.justifyContent,e);t("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(t,e,i){e.exports=function(t,e,i){var n,s,o,r=i.flexStyle.mainInnerBefore,a=-1;if("flex-end"===e)for(n=t.mainSpace,n+=r;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter;else if("center"===e)for(n=t.mainSpace/2,n+=r;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter;else if("space-between"===e)for(s=t.mainSpace/(t.children.length-1),n=0,n+=r;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter+s;else if("space-around"===e)for(s=2*t.mainSpace/(2*t.children.length),n=s/2,n+=r;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter+s;else for(n=0,n+=r;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter}},{}],9:[function(t,e,i){e.exports=function(t){for(var e,i=-1;e=t.children[++i];){var n=0;"auto"===e.flexStyle.crossBefore&&++n,"auto"===e.flexStyle.crossAfter&&++n;var s=t.cross-e.flexStyle.crossOuter;"auto"===e.flexStyle.crossBefore&&(e.flexStyle.crossBefore=s/n),"auto"===e.flexStyle.crossAfter&&(e.flexStyle.crossAfter=s/n),"auto"===e.flexStyle.cross?e.flexStyle.crossOuter=e.flexStyle.crossOffset+e.flexStyle.crossBefore+e.flexStyle.crossAfter:e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}}},{}],10:[function(t,e,i){e.exports=function(t){for(var e,i=0,n=-1;e=t.children[++n];)"auto"===e.flexStyle.mainBefore&&++i,"auto"===e.flexStyle.mainAfter&&++i;if(i>0){for(n=-1;e=t.children[++n];)"auto"===e.flexStyle.mainBefore&&(e.flexStyle.mainBefore=t.mainSpace/i),"auto"===e.flexStyle.mainAfter&&(e.flexStyle.mainAfter=t.mainSpace/i),"auto"===e.flexStyle.main?e.flexStyle.mainOuter=e.flexStyle.mainOffset+e.flexStyle.mainBefore+e.flexStyle.mainAfter:e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter;t.mainSpace=0}}},{}],11:[function(t,e,i){var n=/^(column|row)-reverse$/;e.exports=function(t){t.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),n.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(t,e,i){e.exports=function(t,e,i){for(var n=t.length,s=-1;++s<n;)s in t&&(i=e(i,t[s],s));return i}},{}],13:[function(t,e,i){var n=t("./read"),s=t("./write"),o=t("./readAll"),r=t("./writeAll");e.exports=function(t){r(o(t))},e.exports.read=n,e.exports.write=s,e.exports.readAll=o,e.exports.writeAll=r},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(t,e,i){e.exports=function(t,e){var i=String(t).match(n);if(!i)return t;var o=i[1],r=i[2];return"px"===r?1*o:"cm"===r?.3937*o*96:"in"===r?96*o:"mm"===r?.3937*o*96/10:"pc"===r?12*o*96/72:"pt"===r?96*o/72:"rem"===r?16*o:function(t,e){s.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+t+"!important",e.parentNode.insertBefore(s,e.nextSibling);var i=s.offsetWidth;return e.parentNode.removeChild(s),i}(t,e)};var n=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,s=document.createElement("div")},{}],15:[function(t,e,i){e.exports=function(t){var e={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(t instanceof Element){var i=t.hasAttribute("data-style"),o=i?t.getAttribute("data-style"):t.getAttribute("style")||"";for(var r in i||t.setAttribute("data-style",o),function(t,e){for(var i in t)i in e&&!/^(alignSelf|height|width)$/.test(i)&&(t[i]=e[i])}(e,window.getComputedStyle&&getComputedStyle(t)||{}),function(t,e){for(var i in t)if(i in e)t[i]=e[i];else{var n=i.replace(/[A-Z]/g,"-$&").toLowerCase();n in e&&(t[i]=e[n])}"-js-display"in e&&(t.display=e["-js-display"])}(e,t.currentStyle||{}),function(t,e){for(var i;i=n.exec(e);)t[i[1].toLowerCase().replace(/-[a-z]/g,function(t){return t.slice(1).toUpperCase()})]=i[2]}(e,o),e)e[r]=s(e[r],t);var a=t.getBoundingClientRect();e.offsetHeight=a.height||t.offsetHeight,e.offsetWidth=a.width||t.offsetWidth}return{element:t,style:e}};var n=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,s=t("./getComputedLength")},{"./getComputedLength":14}],16:[function(t,e,i){function n(t,e){for(var i,a=(m=void 0,g=void 0,v=void 0,m=(f=t)instanceof Element,g=m&&f.getAttribute("data-style"),v=m&&f.currentStyle&&f.currentStyle["-js-display"],o.test(g)||r.test(v)),l=[],c=-1;i=t.childNodes[++c];){var u=3===i.nodeType&&!/^\s*$/.test(i.nodeValue);if(a&&u){var h=i;(i=t.insertBefore(document.createElement("flex-item"),h)).appendChild(h)}if(i instanceof Element){var d=n(i,e);if(a){var p=i.style;p.display="inline-block",p.position="absolute",d.style=s(i).style,l.push(d)}}}var f,m,g,v,y={element:t,children:l};return a&&(y.style=s(t).style,e.push(y)),y}e.exports=function(t){var e=[];return n(t,e),e};var s=t("../read"),o=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,r=/^(inline-)?flex$/i},{"../read":15}],17:[function(t,e,i){function n(t){return"string"==typeof t?t:Math.max(t,0)+"px"}e.exports=function(t){s(t);var e=t.element.style,i="inline"===t.mainAxis?["main","cross"]:["cross","main"];e.boxSizing="content-box",e.display="block",e.position="relative",e.width=n(t.flexStyle[i[0]]-t.flexStyle[i[0]+"InnerBefore"]-t.flexStyle[i[0]+"InnerAfter"]-t.flexStyle[i[0]+"BorderBefore"]-t.flexStyle[i[0]+"BorderAfter"]),e.height=n(t.flexStyle[i[1]]-t.flexStyle[i[1]+"InnerBefore"]-t.flexStyle[i[1]+"InnerAfter"]-t.flexStyle[i[1]+"BorderBefore"]-t.flexStyle[i[1]+"BorderAfter"]);for(var o,r=-1;o=t.children[++r];){var a=o.element.style,l="inline"===o.mainAxis?["main","cross"]:["cross","main"];a.boxSizing="content-box",a.display="block",a.position="absolute","auto"!==o.flexStyle[l[0]]&&(a.width=n(o.flexStyle[l[0]]-o.flexStyle[l[0]+"InnerBefore"]-o.flexStyle[l[0]+"InnerAfter"]-o.flexStyle[l[0]+"BorderBefore"]-o.flexStyle[l[0]+"BorderAfter"])),"auto"!==o.flexStyle[l[1]]&&(a.height=n(o.flexStyle[l[1]]-o.flexStyle[l[1]+"InnerBefore"]-o.flexStyle[l[1]+"InnerAfter"]-o.flexStyle[l[1]+"BorderBefore"]-o.flexStyle[l[1]+"BorderAfter"])),a.top=n(o.flexStyle[l[1]+"Start"]),a.left=n(o.flexStyle[l[0]+"Start"]),a.marginTop=n(o.flexStyle[l[1]+"Before"]),a.marginRight=n(o.flexStyle[l[0]+"After"]),a.marginBottom=n(o.flexStyle[l[1]+"After"]),a.marginLeft=n(o.flexStyle[l[0]+"Before"])}};var s=t("../flexbox")},{"../flexbox":7}],18:[function(t,e,i){e.exports=function(t){for(var e,i=-1;e=t[++i];)n(e)};var n=t("../write")},{"../write":17}]},{},[13])(13)},function(t,e,i){"use strict";var n,s;void 0!==(s="function"==typeof(n=function(t,e,i){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t){var e=t.getBoundingClientRect(),i={};for(var n in e)i[n]=e[n];if(t.ownerDocument!==document){var o=t.ownerDocument.defaultView.frameElement;if(o){var r=s(o);i.top+=r.top,i.bottom+=r.top,i.left+=r.left,i.right+=r.left}}return i}function o(t){var e=getComputedStyle(t)||{},i=e.position,n=[];if("fixed"===i)return[t];for(var s=t;(s=s.parentNode)&&s&&1===s.nodeType;){var o=void 0;try{o=getComputedStyle(s)}catch(t){}if(null==o)return n.push(s),n;var r=o,a=r.overflow,l=r.overflowX;/(auto|scroll)/.test(a+r.overflowY+l)&&("absolute"!==i||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(s)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}function r(){S&&document.body.removeChild(S),S=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var i=e.documentElement,n=s(t),o=D();return n.top-=o.top,n.left-=o.left,void 0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void 0===n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-i.clientTop,n.left=n.left-i.clientLeft,n.right=e.body.clientWidth-n.width-n.left,n.bottom=e.body.clientHeight-n.height-n.top,n}function l(t){return t.offsetParent||document.documentElement}function c(){if(E)return E;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");u(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;i===n&&(n=e.clientWidth),document.body.removeChild(e);var s=i-n;return E={width:s,height:s}}function u(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}),t}function h(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var i=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),n=f(t).replace(i," ");m(t,n)}}function d(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{h(t,e);var i=f(t)+" "+e;m(t,i)}}function p(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=f(t);return new RegExp("(^| )"+e+"( |$)","gi").test(i)}function f(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function m(t,e){t.setAttribute("class",e)}function g(t,e,i){i.forEach(function(i){-1===e.indexOf(i)&&p(t,i)&&h(t,i)}),e.forEach(function(e){p(t,e)||d(t,e)})}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){var i=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+i>=e&&e>=t-i}function y(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function b(){for(var t={top:0,left:0},e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.forEach(function(e){var i=e.top,n=e.left;"string"==typeof i&&(i=parseFloat(i,10)),"string"==typeof n&&(n=parseFloat(n,10)),t.top+=i,t.left+=n}),t}function _(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}var w=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),x=void 0;void 0===x&&(x={modules:[]});var C,S=null,k=(C=0,function(){return++C}),T={},D=function(){var t=S;t&&document.body.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",k()),u(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),S=t);var e=t.getAttribute("data-tether-id");return void 0===T[e]&&(T[e]=s(t),A(function(){delete T[e]})),T[e]},E=null,I=[],A=function(t){I.push(t)},P=function(){for(var t=void 0;t=I.pop();)t()},$=function(){function t(){n(this,t)}return w(t,[{key:"on",value:function(t,e,i){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:n})}},{key:"once",value:function(t,e,i){this.on(t,e,i,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var i=0;i<this.bindings[t].length;)this.bindings[t][i].handler===e?this.bindings[t].splice(i,1):++i}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,i=arguments.length,n=Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];for(;e<this.bindings[t].length;){var o=this.bindings[t][e],r=o.handler,a=o.ctx,l=o.once,c=a;void 0===c&&(c=this),r.apply(c,n),l?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:s,getScrollParents:o,getBounds:a,getOffsetParent:l,extend:u,addClass:d,removeClass:h,hasClass:p,updateClasses:g,defer:A,flush:P,uniqueId:k,Evented:$,getScrollBarSize:c,removeUtilElements:r};var O=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){s=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(s)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),M=function(t,e,i){for(var n=!0;n;){var s=t,o=e,r=i;n=!1,null===s&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,o);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(r)}var c=Object.getPrototypeOf(s);if(null===c)return;t=c,e=o,i=r,n=!0,a=c=void 0}};if(void 0===x)throw new Error("You must include the utils.js file before tether.js");var N,H,j,L,o=(G=x.Utils).getScrollParents,a=G.getBounds,l=G.getOffsetParent,u=G.extend,d=G.addClass,h=G.removeClass,g=G.updateClasses,A=G.defer,P=G.flush,c=G.getScrollBarSize,r=G.removeUtilElements,z=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],i=0;i<e.length;++i){var n=e[i];if(void 0!==t.style[n])return n}}(),F=[],W=function(){F.forEach(function(t){t.position(!1)}),P()};N=null,H=null,j=null,L=function t(){if(void 0!==H&&H>16)return H=Math.min(H-16,250),void(j=setTimeout(t,250));void 0!==N&&y()-N<10||(null!=j&&(clearTimeout(j),j=null),N=y(),W(),H=y()-N)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,L)});var R={center:"center",left:"right",right:"left"},B={middle:"middle",top:"bottom",bottom:"top"},q={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t){var e=t.left,i=t.top;return void 0!==q[t.left]&&(e=q[t.left]),void 0!==q[t.top]&&(i=q[t.top]),{left:e,top:i}},V=function(t){var e=t.split(" "),i=O(e,2);return{top:i[0],left:i[1]}},Y=V,Q=function(t){function e(t){var i=this;n(this,e),M(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),F.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(i)}),this.position()}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),w(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,i=arguments.length<=1||void 0===arguments[1]||arguments[1];this.options=u({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},t);var n=this.options,s=n.element,r=n.target,a=n.targetModifier;if(this.element=s,this.target=r,this.targetModifier=a,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),d(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&d(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=Y(this.options.targetAttachment),this.attachment=Y(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=o(this.target),!1!==this.options.enabled&&this.enable(i)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,i=this.target;i===document.body?(i=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(i);var n=getComputedStyle(i),s=i.scrollWidth>i.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body,o=0;s&&(o=15);var r=t.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-o,e={width:15,height:.975*r*(r/i.scrollHeight),left:t.left+t.width-parseFloat(n.borderLeftWidth)-15},l=0;r<408&&this.target===document.body&&(l=-11e-5*Math.pow(r,2)-.00727*r+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var c=this.target.scrollTop/(i.scrollHeight-r);return e.top=c*(r-e.height-l)+t.top+parseFloat(n.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;h(this.target,this.getClass("enabled")),h(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),F.forEach(function(e,i){e===t&&F.splice(i,1)}),0===F.length&&r()}},{key:"updateAttachClasses",value:function(t,e){var i=this;t=t||this.attachment,e=e||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;t.top&&n.push(this.getClass("element-attached")+"-"+t.top),t.left&&n.push(this.getClass("element-attached")+"-"+t.left),e.top&&n.push(this.getClass("target-attached")+"-"+e.top),e.left&&n.push(this.getClass("target-attached")+"-"+e.left);var s=[];["left","top","bottom","right","middle","center"].forEach(function(t){s.push(i.getClass("element-attached")+"-"+t),s.push(i.getClass("target-attached")+"-"+t)}),A(function(){void 0!==i._addAttachClasses&&(g(i.element,i._addAttachClasses,s),!1!==i.options.addTargetClasses&&g(i.target,i._addAttachClasses,s),delete i._addAttachClasses)})}},{key:"position",value:function(){var t,e,i,n,s=this,o=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=(t=this.targetAttachment,e=this.attachment,i=t.left,n=t.top,"auto"===i&&(i=R[e.left]),"auto"===n&&(n=B[e.top]),{left:i,top:n});this.updateAttachClasses(this.attachment,r);var u=this.cache("element-bounds",function(){return a(s.element)}),h=u.width,d=u.height;if(0===h&&0===d&&void 0!==this.lastSize){var p=this.lastSize;h=p.width,d=p.height}else this.lastSize={width:h,height:d};var f=this.cache("target-bounds",function(){return s.getTargetBounds()}),m=f,g=_(U(this.attachment),{width:h,height:d}),v=_(U(r),m),y=_(this.offset,{width:h,height:d}),w=_(this.targetOffset,m);g=b(g,y),v=b(v,w);for(var C=f.left+v.left-g.left,S=f.top+v.top-g.top,k=0;k<x.modules.length;++k){var T=x.modules[k],D=T.position.call(this,{left:C,top:S,targetAttachment:r,targetPos:f,elementPos:u,offset:g,targetOffset:v,manualOffset:y,manualTargetOffset:w,scrollbarSize:$,attachment:this.attachment});if(!1===D)return!1;void 0!==D&&"object"==typeof D&&(S=D.top,C=D.left)}var E={page:{top:S,left:C},viewport:{top:S-pageYOffset,bottom:pageYOffset-S-d+innerHeight,left:C-pageXOffset,right:pageXOffset-C-h+innerWidth}},I=this.target.ownerDocument,A=I.defaultView,$=void 0;return A.innerHeight>I.documentElement.clientHeight&&($=this.cache("scrollbar-size",c),E.viewport.bottom-=$.height),A.innerWidth>I.documentElement.clientWidth&&($=this.cache("scrollbar-size",c),E.viewport.right-=$.width),-1!==["","static"].indexOf(I.body.style.position)&&-1!==["","static"].indexOf(I.body.parentElement.style.position)||(E.page.bottom=I.body.scrollHeight-S-d,E.page.right=I.body.scrollWidth-C-h),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=s.cache("target-offsetparent",function(){return l(s.target)}),e=s.cache("target-offsetparent-bounds",function(){return a(t)}),i=getComputedStyle(t),n=e,o={};if(["Top","Left","Bottom","Right"].forEach(function(t){o[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),e.right=I.body.scrollWidth-e.left-n.width+o.right,e.bottom=I.body.scrollHeight-e.top-n.height+o.bottom,E.page.top>=e.top+o.top&&E.page.bottom>=e.bottom&&E.page.left>=e.left+o.left&&E.page.right>=e.right){var r=t.scrollTop,c=t.scrollLeft;E.offset={top:E.page.top-e.top+r-o.top,left:E.page.left-e.left+c-o.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),o&&P(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var i={};for(var n in t)for(var s in i[n]={},t[n]){for(var o=!1,r=0;r<this.history.length;++r){var a=this.history[r];if(void 0!==a[n]&&!v(a[n][s],t[n][s])){o=!0;break}}o||(i[n][s]=!0)}var c={top:"",left:"",right:"",bottom:""},h=function(t,i){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var n=void 0,s=void 0;t.top?(c.top=0,n=i.top):(c.bottom=0,n=-i.bottom),t.left?(c.left=0,s=i.left):(c.right=0,s=-i.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(s=Math.round(s),n=Math.round(n))),c[z]="translateX("+s+"px) translateY("+n+"px)","msTransform"!==z&&(c[z]+=" translateZ(0)")}else t.top?c.top=i.top+"px":c.bottom=i.bottom+"px",t.left?c.left=i.left+"px":c.right=i.right+"px"},d=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(c.position="absolute",h(i.page,t.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(c.position="fixed",h(i.viewport,t.viewport)):void 0!==i.offset&&i.offset.top&&i.offset.left?function(){c.position="absolute";var n=e.cache("target-offsetparent",function(){return l(e.target)});l(e.element)!==n&&A(function(){e.element.parentNode.removeChild(e.element),n.appendChild(e.element)}),h(i.offset,t.offset),d=!0}():(c.position="absolute",h({top:!0,left:!0},t.page)),!d)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var p=!0,f=this.element.parentNode;f&&1===f.nodeType&&"BODY"!==f.tagName;){if("static"!==getComputedStyle(f).position){p=!1;break}f=f.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var m={},g=!1;for(var s in c){var y=c[s];this.element.style[s]!==y&&(g=!0,m[s]=y)}g&&A(function(){u(e.element.style,m),e.trigger("repositioned")})}}}]),e}($);Q.modules=[],x.position=W;var X=u(Q,x),O=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){s=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(s)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=(G=x.Utils).getBounds,u=G.extend,g=G.updateClasses,A=G.defer,K=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,i=t.top,n=t.left,s=t.targetAttachment;if(!this.options.constraints)return!0;var o=this.cache("element-bounds",function(){return a(e.element)}),r=o.height,l=o.width;if(0===l&&0===r&&void 0!==this.lastSize){var c=this.lastSize;l=c.width,r=c.height}var h=this.cache("target-bounds",function(){return e.getTargetBounds()}),d=h.height,p=h.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,i=t.pinnedClass;e&&f.push(e),i&&f.push(i)}),f.forEach(function(t){["left","top","right","bottom"].forEach(function(e){f.push(t+"-"+e)})});var m=[],v=u({},s),y=u({},this.attachment);return this.options.constraints.forEach(function(t){var o=t.to,c=t.attachment,u=t.pin;void 0===c&&(c="");var h=void 0,f=void 0;if(c.indexOf(" ")>=0){var g=c.split(" "),b=O(g,2);f=b[0],h=b[1]}else h=f=c;var _,w=("scrollParent"===(_=o)?_=e.scrollParents[0]:"window"===_&&(_=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),_===document&&(_=_.documentElement),void 0!==_.nodeType&&function(){var t=_,e=a(_),i=e,n=getComputedStyle(_);if(_=[i.left,i.top,e.width+i.left,e.height+i.top],t.ownerDocument!==document){var s=t.ownerDocument.defaultView;_[0]+=s.pageXOffset,_[1]+=s.pageYOffset,_[2]+=s.pageXOffset,_[3]+=s.pageYOffset}K.forEach(function(t,e){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?_[e]+=parseFloat(n["border"+t+"Width"]):_[e]-=parseFloat(n["border"+t+"Width"])})}(),_);"target"!==f&&"both"!==f||(i<w[1]&&"top"===v.top&&(i+=d,v.top="bottom"),i+r>w[3]&&"bottom"===v.top&&(i-=d,v.top="top")),"together"===f&&("top"===v.top&&("bottom"===y.top&&i<w[1]?(i+=d,v.top="bottom",i+=r,y.top="top"):"top"===y.top&&i+r>w[3]&&i-(r-d)>=w[1]&&(i-=r-d,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&i+r>w[3]?(i-=d,v.top="top",i-=r,y.top="bottom"):"bottom"===y.top&&i<w[1]&&i+(2*r-d)<=w[3]&&(i+=r-d,v.top="top",y.top="top")),"middle"===v.top&&(i+r>w[3]&&"top"===y.top?(i-=r,y.top="bottom"):i<w[1]&&"bottom"===y.top&&(i+=r,y.top="top"))),"target"!==h&&"both"!==h||(n<w[0]&&"left"===v.left&&(n+=p,v.left="right"),n+l>w[2]&&"right"===v.left&&(n-=p,v.left="left")),"together"===h&&(n<w[0]&&"left"===v.left?"right"===y.left?(n+=p,v.left="right",n+=l,y.left="left"):"left"===y.left&&(n+=p,v.left="right",n-=l,y.left="right"):n+l>w[2]&&"right"===v.left?"left"===y.left?(n-=p,v.left="left",n-=l,y.left="right"):"right"===y.left&&(n-=p,v.left="left",n+=l,y.left="left"):"center"===v.left&&(n+l>w[2]&&"left"===y.left?(n-=l,y.left="right"):n<w[0]&&"right"===y.left&&(n+=l,y.left="left"))),"element"!==f&&"both"!==f||(i<w[1]&&"bottom"===y.top&&(i+=r,y.top="top"),i+r>w[3]&&"top"===y.top&&(i-=r,y.top="bottom")),"element"!==h&&"both"!==h||(n<w[0]&&("right"===y.left?(n+=l,y.left="left"):"center"===y.left&&(n+=l/2,y.left="left")),n+l>w[2]&&("left"===y.left?(n-=l,y.left="right"):"center"===y.left&&(n-=l/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var x,C,S=[],k=[];i<w[1]&&(u.indexOf("top")>=0?(i=w[1],S.push("top")):k.push("top")),i+r>w[3]&&(u.indexOf("bottom")>=0?(i=w[3]-r,S.push("bottom")):k.push("bottom")),n<w[0]&&(u.indexOf("left")>=0?(n=w[0],S.push("left")):k.push("left")),n+l>w[2]&&(u.indexOf("right")>=0?(n=w[2]-l,S.push("right")):k.push("right")),S.length&&(C=void 0,C=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),m.push(C),S.forEach(function(t){m.push(C+"-"+t)})),k.length&&(x=void 0,x=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),m.push(x),k.forEach(function(t){m.push(x+"-"+t)})),(S.indexOf("left")>=0||S.indexOf("right")>=0)&&(y.left=v.left=!1),(S.indexOf("top")>=0||S.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===s.top&&v.left===s.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),A(function(){!1!==e.options.addTargetClasses&&g(e.target,m,f),g(e.element,m,f)}),{top:i,left:n}}});var G,a=(G=x.Utils).getBounds,g=G.updateClasses,A=G.defer;x.modules.push({position:function(t){var e=this,i=t.top,n=t.left,s=this.cache("element-bounds",function(){return a(e.element)}),o=s.height,r=s.width,l=this.getTargetBounds(),c=i+o,u=n+r,h=[];i<=l.bottom&&c>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==n&&e!==u||h.push(t)}),n<=l.right&&u>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==i&&e!==c||h.push(t)});var d=[],p=[];return d.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),h.length&&p.push(this.getClass("abutted")),h.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),A(function(){!1!==e.options.addTargetClasses&&g(e.target,p,d),g(e.element,p,d)}),!0}});var O=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){s=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(s)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};return x.modules.push({position:function(t){var e=t.top,i=t.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:e,left:i}));var s=void 0,o=void 0;if("string"==typeof n){(n=n.split(" "))[1]=n[1]||n[0];var r=n,a=O(r,2);s=a[0],o=a[1],s=parseFloat(s,10),o=parseFloat(o,10)}else s=n.top,o=n.left;return{top:e+=s,left:i+=o}}}}),X})?n.call(e,i,e,t):n)&&(t.exports=s)},function(t,e,i){"use strict";var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,i){(function(e){t.exports=e.Tether=i(23)}).call(e,i(24))},function(t,e,i){i(5),t.exports=i(6)}]),jQuery(document).ready(function(t){t(".blog_slider").owlCarousel({autoPlay:!0,smartSpeed:1e3,autoplayHoverPause:!0,nav:!0,dots:!1,responsive:{0:{items:1},480:{items:2},768:{items:2},992:{items:3},1200:{items:3}}})}),jQuery(document).ready(function(t){t(".logo-slider").owlCarousel({autoPlay:!1,smartSpeed:1e3,autoplayHoverPause:!0,nav:!0,dots:!1,responsive:{0:{items:2},480:{items:3},768:{items:4,nav:!1},992:{items:5},1200:{items:5}}})}),function(t){t.fn.extend({mobilemenu:function(){return this.each(function(){var e=t(this);if(e.data("accordiated"))return!1;t.each(e.find("ul, li>div"),function(){t(this).data("accordiated",!0),t(this).hide()}),t.each(e.find("span.grower"),function(){t(this).click(function(e){var i,n;t(i=this).toggleClass("active"),t(i).parent("li").toggleClass("active"),t(i).siblings("ul, div")[n||"slideToggle"](n?null:"fast")})})})}})}($),$(document).ready(function(){$("div.pt_custommenu_mobile ul.dhtml").hide(),$("ul.mobilemenu li").each(function(){$(this).children("ul").length>0&&$(this).append('<span class="grower"><a href="javascript:void(0)"></a></span>')}),$("ul.mobilemenu").mobilemenu(),$("#pt_custommenu_itemmobile").slideUp(),$("ul.mobilemenu li.active").each(function(){$(this).children().next("ul").css("display","block")}),$(".btn-navbar").click(function(){var t=0;$("#navbar-inner").hasClass("navbar-inactive")&&0==t&&($("#navbar-inner").removeClass("navbar-inactive"),$("#navbar-inner").addClass("navbar-active"),$("#pt_custommenu_itemmobile").slideDown(),t=1),$("#navbar-inner").hasClass("navbar-active")&&0==t&&($("#navbar-inner").removeClass("navbar-active"),$("#navbar-inner").addClass("navbar-inactive"),$("#pt_custommenu_itemmobile").slideUp(),t=1)})}),$(document).ready(function(){$("#pt_menu_link ul li").each(function(){var t=document.URL;$("#pt_menu_link ul li a").removeClass("act"),$('#pt_menu_link ul li a[href="'+t+'"]').addClass("act")}),$(".pt_menu_no_child").hover(function(){$(this).addClass("active")},function(){$(this).removeClass("active")}),$("#pt_custommenu .pt_menu").hover(function(){"pt_menu_link"!=$(this).attr("id")&&$(this).addClass("active")},function(){$(this).removeClass("active")}),$("#pt_custommenu .pt_menu").hover(function(){$(this).find(".popup").css("display","inline-block");var t;t=$(this).find(".popup").outerWidth(!0)-$(this).find(".popup").width();var e=$(this).find(".popup .block1").outerWidth(!0),i=$(this).find(".popup .block2").outerWidth(!0),n=0;e&&!i&&(n=e),!e&&i&&(n=i),e&&i&&(n=e);var s=n+t,o=$(".pt_custommenu"),r=o.outerWidth(),a=o.offset(),l=$(this).offset(),c=l.top-a.top+CUSTOMMENU_POPUP_TOP_OFFSET,u=l.left-a.left;u+s>r&&(u=r-s),$(this).find(".popup").css("top",c),$(this).find(".popup").css("left",u),$(this).find(".popup").css("width",n),$(this).find(".popup .block1").css("width",n),$(this).find(".popup").css("display","none"),0==CUSTOMMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).slideDown("slow"),1==CUSTOMMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).fadeIn("slow"),2==CUSTOMMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).show("slow")},function(){0==CUSTOMMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).slideUp(),1==CUSTOMMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).fadeOut("slow"),2==CUSTOMMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).hide("fast")}),$(".popup").hover(function(){$(this).show()},function(){$(this).hide()})}),$(document).ready(function(){$("#pt_menu_link ul li").each(function(){var t=document.URL;$("#pt_menu_link ul li a").removeClass("act"),$('#pt_menu_link ul li a[href="'+t+'"]').addClass("act")}),$(".pt_menu_no_child").hover(function(){$(this).addClass("active")},function(){$(this).removeClass("active")}),$(".pt_vegamenu .pt_menu").hover(function(){"pt_menu_link"!=$(this).attr("id")&&$(this).addClass("active")},function(){$(this).removeClass("active")}),$(".pt_vegamenu .pt_menu").hover(function(){$(this).find(".popup").css("display","inline-block");$(this).find(".popup").outerWidth(!0),$(this).find(".popup").width();var t=$(this).find(".popup .block1").outerWidth(!0),e=$(this).find(".popup .block2").outerWidth(!0);t&&e&&(t>=e&&t);$(this).find(".popup").css("display","none"),0==VMEGAMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).slideDown("slow"),1==VMEGAMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).fadeIn("slow"),2==VMEGAMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).show("slow")},function(){0==VMEGAMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).slideUp(),1==VMEGAMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).fadeOut("slow"),2==VMEGAMENU_POPUP_EFFECT&&$(this).find(".popup").stop(!0,!0).hide("fast")}),$(".pt_vegamenu .pt_vmegamenu_title").on("click",function(t){t.stopPropagation();var e=$(".pt_vegamenu .pt_vegamenu_cate");e.is(":hidden")?e.slideDown():e.slideUp(),t.preventDefault()}),$(".pt_ver_menu_link ul li").each(function(){var t=document.URL;$(".pt_ver_menu_link ul li a").removeClass("act"),$('.pt_ver_menu_link ul li a[href="'+t+'"]').addClass("act")});var t=$(".pt_vegamenu .pt_menu").length;if(t<9)return!1;$(".pt_vegamenu .pt_menu").each(function(t,e){9==t&&$(".pt_vegamenu_cate").append('<div class="pt_menu noSub"><div class="parentMenu"><a href="javascript:void(0)" class="view_more"><span><i class="material-icons">add_circle_outline</i>'+MORE+"</span></a></div></div>"),t>9&&$(this).addClass("hide_menu_block")}),$(".hide_menu_block").hide(),$(".view_more").click(function(){$(this).toggleClass("active"),$(this).hasClass("active")?($(this).addClass("open_menu"),$(this).html('<em class="closed-menu"><i class="material-icons">remove_circle_outline</i>'+CLOSE+"</em>"),$(".hide_menu_block").slideDown()):($(this).removeClass("open_menu").addClass("close_menu"),$(this).html('<em class="closed-menu"><i class="material-icons">add_circle_outline</i>'+MORE+"</em>"),$(".hide_menu_block").slideUp())})}),function(t){t.fn.nivoSlider=function(e){return this.each(function(i,n){var s=t(this);if(s.data("nivoslider"))return s.data("nivoslider");var o=new function(e,i){var n=t.extend({},t.fn.nivoSlider.defaults,i),s={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},o=t(e);o.data("nivo:vars",s).addClass("nivoSlider");var r=o.children();r.each(function(){var e=t(this),i="";e.is("img")||(e.is("a")&&(e.addClass("nivo-imageLink"),i=e),e=e.find("img:first"));var n=0===n?e.attr("width"):e.width(),o=0===o?e.attr("height"):e.height();""!==i&&i.css("display","none"),e.css("display","none"),s.totalSlides++}),n.randomStart&&(n.startSlide=Math.floor(Math.random()*s.totalSlides)),n.startSlide>0&&(n.startSlide>=s.totalSlides&&(n.startSlide=s.totalSlides-1),s.currentSlide=n.startSlide),t(r[s.currentSlide]).is("img")?s.currentImage=t(r[s.currentSlide]):s.currentImage=t(r[s.currentSlide]).find("img:first"),t(r[s.currentSlide]).is("a")&&t(r[s.currentSlide]).css("display","block");var a=t("<img/>").addClass("nivo-main-image");a.attr("src",s.currentImage.attr("src")).show(),o.append(a),t(window).resize(function(){o.children("img").width(o.width()),a.attr("src",s.currentImage.attr("src")),a.stop().height("auto"),t(".nivo-slice").remove(),t(".nivo-box").remove()}),o.append(t('<div class="nivo-caption"></div>'));var l=function(e){var i=t(".nivo-caption",o);if(""!=s.currentImage.attr("title")&&null!=s.currentImage.attr("title")){var n=s.currentImage.attr("title");"#"==n.substr(0,1)&&(n=t(n).html()),"block"==i.css("display")?setTimeout(function(){i.html(n)},e.animSpeed):(i.html(n),i.stop().fadeIn(e.animSpeed))}else i.stop().fadeOut(e.animSpeed)};l(n);var c=0;if(!n.manualAdvance&&r.length>1&&(c=setInterval(function(){f(o,r,n,!1)},n.pauseTime)),n.directionNav&&(o.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+n.prevText+'</a><a class="nivo-nextNav">'+n.nextText+"</a></div>"),t(o).on("click","a.nivo-prevNav",function(){if(s.running)return!1;clearInterval(c),c="",s.currentSlide-=2,f(o,r,n,"prev")}),t(o).on("click","a.nivo-nextNav",function(){if(s.running)return!1;clearInterval(c),c="",f(o,r,n,"next")})),n.controlNav){s.controlNavEl=t('<div class="nivo-controlNav"></div>'),o.after(s.controlNavEl);for(var u=0;u<r.length;u++)if(n.controlNavThumbs){s.controlNavEl.addClass("nivo-thumbs-enabled");var h=r.eq(u);h.is("img")||(h=h.find("img:first")),h.attr("data-thumb")&&s.controlNavEl.append('<a class="nivo-control" rel="'+u+'"><img src="'+h.attr("data-thumb")+'" alt="" /></a>')}else s.controlNavEl.append('<a class="nivo-control" rel="'+u+'">'+(u+1)+"</a>");t("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active"),t("a",s.controlNavEl).bind("click",function(){return!s.running&&!t(this).hasClass("active")&&(clearInterval(c),c="",a.attr("src",s.currentImage.attr("src")),s.currentSlide=t(this).attr("rel")-1,void f(o,r,n,"control"))})}n.pauseOnHover&&o.hover(function(){s.paused=!0,clearInterval(c),c=""},function(){s.paused=!1,""!==c||n.manualAdvance||(c=setInterval(function(){f(o,r,n,!1)},n.pauseTime))}),o.bind("nivo:animFinished",function(){a.attr("src",s.currentImage.attr("src")),s.running=!1,t(r).each(function(){t(this).is("a")&&t(this).css("display","none")}),t(r[s.currentSlide]).is("a")&&t(r[s.currentSlide]).css("display","block"),""!==c||s.paused||n.manualAdvance||(c=setInterval(function(){f(o,r,n,!1)},n.pauseTime)),n.afterChange.call(this)});var d=function(e,i,n){t(n.currentImage).parent().is("a")&&t(n.currentImage).parent().css("display","block"),t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show();for(var s=t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().is("a")?t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().height():t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height(),o=0;o<i.slices;o++){var r=Math.round(e.width()/i.slices);o===i.slices-1?e.append(t('<div class="nivo-slice" name="'+o+'"><img src="'+n.currentImage.attr("src")+'" style="position:absolute; width:'+e.width()+"px; height:auto; display:block !important; top:0; left:-"+(r+o*r-r)+'px;" /></div>').css({left:r*o+"px",width:e.width()-r*o+"px",height:s+"px",opacity:"0",overflow:"hidden"})):e.append(t('<div class="nivo-slice" name="'+o+'"><img src="'+n.currentImage.attr("src")+'" style="position:absolute; width:'+e.width()+"px; height:auto; display:block !important; top:0; left:-"+(r+o*r-r)+'px;" /></div>').css({left:r*o+"px",width:r+"px",height:s+"px",opacity:"0",overflow:"hidden"}))}t(".nivo-slice",e).height(s),a.stop().animate({height:t(n.currentImage).height()},i.animSpeed)},p=function(e,i,n){t(n.currentImage).parent().is("a")&&t(n.currentImage).parent().css("display","block"),t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show();for(var s=Math.round(e.width()/i.boxCols),o=Math.round(t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height()/i.boxRows),r=0;r<i.boxRows;r++)for(var l=0;l<i.boxCols;l++)l===i.boxCols-1?(e.append(t('<div class="nivo-box" name="'+l+'" rel="'+r+'"><img src="'+n.currentImage.attr("src")+'" style="position:absolute; width:'+e.width()+"px; height:auto; display:block; top:-"+o*r+"px; left:-"+s*l+'px;" /></div>').css({opacity:0,left:s*l+"px",top:o*r+"px",width:e.width()-s*l+"px"})),t('.nivo-box[name="'+l+'"]',e).height(t('.nivo-box[name="'+l+'"] img',e).height()+"px")):(e.append(t('<div class="nivo-box" name="'+l+'" rel="'+r+'"><img src="'+n.currentImage.attr("src")+'" style="position:absolute; width:'+e.width()+"px; height:auto; display:block; top:-"+o*r+"px; left:-"+s*l+'px;" /></div>').css({opacity:0,left:s*l+"px",top:o*r+"px",width:s+"px"})),t('.nivo-box[name="'+l+'"]',e).height(t('.nivo-box[name="'+l+'"] img',e).height()+"px"));a.stop().animate({height:t(n.currentImage).height()},i.animSpeed)},f=function(e,i,n,s){var o=e.data("nivo:vars");if(o&&o.currentSlide===o.totalSlides-1&&n.lastSlide.call(this),(!o||o.stop)&&!s)return!1;n.beforeChange.call(this),s?("prev"===s&&a.attr("src",o.currentImage.attr("src")),"next"===s&&a.attr("src",o.currentImage.attr("src"))):a.attr("src",o.currentImage.attr("src")),o.currentSlide++,o.currentSlide===o.totalSlides&&(o.currentSlide=0,n.slideshowEnd.call(this)),o.currentSlide<0&&(o.currentSlide=o.totalSlides-1),t(i[o.currentSlide]).is("img")?o.currentImage=t(i[o.currentSlide]):o.currentImage=t(i[o.currentSlide]).find("img:first"),n.controlNav&&(t("a",o.controlNavEl).removeClass("active"),t("a:eq("+o.currentSlide+")",o.controlNavEl).addClass("active")),l(n),t(".nivo-slice",e).remove(),t(".nivo-box",e).remove();var r=n.effect,c="";"random"===n.effect&&(c=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"),void 0===(r=c[Math.floor(Math.random()*(c.length+1))])&&(r="fade")),-1!==n.effect.indexOf(",")&&(c=n.effect.split(","),void 0===(r=c[Math.floor(Math.random()*c.length)])&&(r="fade")),o.currentImage.attr("data-transition")&&(r=o.currentImage.attr("data-transition")),o.running=!0;var u=0,h=0,f="",g="",v="",y="";if("sliceDown"===r||"sliceDownRight"===r||"sliceDownLeft"===r)d(e,n,o),u=0,h=0,f=t(".nivo-slice",e),"sliceDownLeft"===r&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);i.css({top:"0px"}),h===n.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed)},100+u),u+=50,h++});else if("sliceUp"===r||"sliceUpRight"===r||"sliceUpLeft"===r)d(e,n,o),u=0,h=0,f=t(".nivo-slice",e),"sliceUpLeft"===r&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);i.css({bottom:"0px"}),h===n.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed)},100+u),u+=50,h++});else if("sliceUpDown"===r||"sliceUpDownRight"===r||"sliceUpDownLeft"===r){d(e,n,o),u=0,h=0;var b=0;f=t(".nivo-slice",e),"sliceUpDownLeft"===r&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);0===h?(i.css("top","0px"),h++):(i.css("bottom","0px"),h=0),b===n.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed)},100+u),u+=50,b++})}else if("fold"===r)d(e,n,o),u=0,h=0,t(".nivo-slice",e).each(function(){var i=t(this),s=i.width();i.css({top:"0px",width:"0px"}),h===n.slices-1?setTimeout(function(){i.animate({width:s,opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){i.animate({width:s,opacity:"1.0"},n.animSpeed)},100+u),u+=50,h++});else if("fade"===r)d(e,n,o),(g=t(".nivo-slice:first",e)).css({width:e.width()+"px"}),g.animate({opacity:"1.0"},2*n.animSpeed,"",function(){e.trigger("nivo:animFinished")});else if("slideInRight"===r)d(e,n,o),(g=t(".nivo-slice:first",e)).css({width:"0px",opacity:"1"}),g.animate({width:e.width()+"px"},2*n.animSpeed,"",function(){e.trigger("nivo:animFinished")});else if("slideInLeft"===r)d(e,n,o),(g=t(".nivo-slice:first",e)).css({width:"0px",opacity:"1",left:"",right:"0px"}),g.animate({width:e.width()+"px"},2*n.animSpeed,"",function(){g.css({left:"0px",right:""}),e.trigger("nivo:animFinished")});else if("boxRandom"===r)p(e,n,o),v=n.boxCols*n.boxRows,h=0,u=0,(y=m(t(".nivo-box",e))).each(function(){var i=t(this);h===v-1?setTimeout(function(){i.animate({opacity:"1"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){i.animate({opacity:"1"},n.animSpeed)},100+u),u+=20,h++});else if("boxRain"===r||"boxRainReverse"===r||"boxRainGrow"===r||"boxRainGrowReverse"===r){p(e,n,o),v=n.boxCols*n.boxRows,h=0,u=0;var _=0,w=0,x=[];x[_]=[],y=t(".nivo-box",e),"boxRainReverse"!==r&&"boxRainGrowReverse"!==r||(y=t(".nivo-box",e)._reverse()),y.each(function(){x[_][w]=t(this),++w===n.boxCols&&(w=0,x[++_]=[])});for(var C=0;C<2*n.boxCols;C++){for(var S=C,k=0;k<n.boxRows;k++)S>=0&&S<n.boxCols&&(function(i,s,o,a,l){var c=t(x[k][s]),u=c.width(),h=c.height();"boxRainGrow"!==r&&"boxRainGrowReverse"!==r||c.width(0).height(0),a===l-1?setTimeout(function(){c.animate({opacity:"1",width:u,height:h},n.animSpeed/1.3,"",function(){e.trigger("nivo:animFinished")})},100+o):setTimeout(function(){c.animate({opacity:"1",width:u,height:h},n.animSpeed/1.3)},100+o)}(0,S,u,h,v),h++),S--;u+=100}}},m=function(t){for(var e,i,n=t.length;n;e=parseInt(Math.random()*n,10),i=t[--n],t[n]=t[e],t[e]=i);return t},g=function(t){this.console&&void 0!==console.log&&console.log(t)};return this.stop=function(){t(e).data("nivo:vars").stop||(t(e).data("nivo:vars").stop=!0,g("Stop Slider"))},this.start=function(){t(e).data("nivo:vars").stop&&(t(e).data("nivo:vars").stop=!1,g("Start Slider"))},n.afterLoad.call(this),this}(this,e);s.data("nivoslider",o)})},t.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:!0,controlNav:!0,controlNavThumbs:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next",randomStart:!1,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}},t.fn._reverse=[].reverse}(jQuery),jQuery(document).ready(function(t){t(document).off("mouseenter").on("mouseenter",".pos-slideshow",function(e){t(".pos-slideshow .timethai").addClass("pos_hover")}),t(document).off("mouseleave").on("mouseleave",".pos-slideshow",function(e){t(".pos-slideshow .timethai").removeClass("pos_hover")}),t("#pos-slideshow-home").nivoSlider({effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:600,pauseTime:POSSLIDESHOW_SPEED,startSlide:0,directionNav:!0,controlNav:!0,controlNavThumbs:!1,pauseOnHover:!0,manualAdvance:!1,prevText:'<i class="fa-angle-left"></i>',nextText:'<i class="fa-angle-right"></i>',afterLoad:function(){t(".pos-loading").css("display","none")},beforeChange:function(){t(".bannerSlideshow1").removeClass("pos_in"),t(".bannerSlideshow2").removeClass("pos_in"),t(".bannerSlideshow3").removeClass("pos_in")},afterChange:function(){t(".bannerSlideshow1").addClass("pos_in"),t(".bannerSlideshow2").addClass("pos_in"),t(".bannerSlideshow3").addClass("pos_in")}})}),function(t){"use strict";t.expr[":"].icontains=function(e,i,n){return t(e).text().toUpperCase().indexOf(n[3].toUpperCase())>=0};var e=function(i,n,s){s&&(s.stopPropagation(),s.preventDefault()),this.$element=t(i),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=t.extend({},t.fn.selectpicker.defaults,this.$element.data(),"object"==typeof n&&n),null===this.options.title&&(this.options.title=this.$element.attr("title")),this.val=e.prototype.val,this.render=e.prototype.render,this.refresh=e.prototype.refresh,this.setStyle=e.prototype.setStyle,this.selectAll=e.prototype.selectAll,this.deselectAll=e.prototype.deselectAll,this.init()};e.prototype={constructor:e,init:function(){var e=this,i=this.$element.attr("id");this.$element.hide(),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement),this.$menu=this.$newElement.find("> .dropdown-menu"),this.$button=this.$newElement.find("> button"),this.$searchbox=this.$newElement.find("input"),void 0!==i&&(this.$button.attr("data-id",i),t('label[for="'+i+'"]').click(function(t){t.preventDefault(),e.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.liHeight(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this)},createDropdown:function(){var e=this.multiple?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",n=this.autofocus?" autofocus":"",s=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>":"",o=this.options.liveSearch?'<div class="bootstrap-select-searchbox"><input type="text" class="input-block-level form-control" autocomplete="off" /></div>':"",r=this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-block"><button class="actions-btn bs-select-all btn btn-sm btn-default">Select All</button><button class="actions-btn bs-deselect-all btn btn-sm btn-default">Deselect All</button></div></div>':"";return t('<div class="btn-group bootstrap-select'+e+i+'"><button type="button" class="btn dropdown-toggle selectpicker" data-toggle="dropdown"'+n+'><span class="filter-option pull-left"></span>&nbsp;<span class="caret"></span></button><div class="dropdown-menu open">'+s+o+r+'<ul class="dropdown-menu inner selectpicker" role="menu"></ul></div></div>')},createView:function(){var t=this.createDropdown(),e=this.createLi();return t.find("ul").append(e),t},reloadLi:function(){this.destroyLi();var t=this.createLi();this.$menu.find("ul").append(t)},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var e=this,i=[],n="";return this.$element.find("option").each(function(){var n=t(this),s=n.attr("class")||"",o=n.attr("style")||"",r=n.data("content")?n.data("content"):n.html(),a=void 0!==n.data("subtext")?'<small class="muted text-muted">'+n.data("subtext")+"</small>":"",l=void 0!==n.data("icon")?'<i class="'+e.options.iconBase+" "+n.data("icon")+'"></i> ':"";if(""!==l&&(n.is(":disabled")||n.parent().is(":disabled"))&&(l="<span>"+l+"</span>"),n.data("content")||(r=l+'<span class="text">'+r+a+"</span>"),e.options.hideDisabled&&(n.is(":disabled")||n.parent().is(":disabled")))i.push('<a style="min-height: 0; padding: 0"></a>');else if(n.parent().is("optgroup")&&!0!==n.data("divider"))if(0===n.index()){var c=n.parent().attr("label"),u=void 0!==n.parent().data("subtext")?'<small class="muted text-muted">'+n.parent().data("subtext")+"</small>":"";c=(n.parent().data("icon")?'<i class="'+n.parent().data("icon")+'"></i> ':"")+'<span class="text">'+c+u+"</span>",0!==n[0].index?i.push('<div class="div-contain"><div class="divider"></div></div><dt>'+c+"</dt>"+e.createA(r,"opt "+s,o)):i.push("<dt>"+c+"</dt>"+e.createA(r,"opt "+s,o))}else i.push(e.createA(r,"opt "+s,o));else!0===n.data("divider")?i.push('<div class="div-contain"><div class="divider"></div></div>'):!0===t(this).data("hidden")?i.push("<a></a>"):i.push(e.createA(r,s,o))}),t.each(i,function(t,e){n+='<li rel="'+t+'"'+("<a></a>"===e?'class="hide is-hidden"':"")+">"+e+"</li>"}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),t(n)},createA:function(t,e,i){return'<a tabindex="0" class="'+e+'" style="'+i+'">'+t+'<i class="'+this.options.iconBase+" "+this.options.tickIcon+' icon-ok check-mark"></i></a>'},render:function(e){var i=this;!1!==e&&this.$element.find("option").each(function(e){i.setDisabled(e,t(this).is(":disabled")||t(this).parent().is(":disabled")),i.setSelected(e,t(this).is(":selected"))}),this.tabIndex();var n=this.$element.find("option:selected").map(function(){var e,n=t(this),s=n.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+n.data("icon")+'"></i> ':"";return e=i.options.showSubtext&&n.attr("data-subtext")&&!i.multiple?' <small class="muted text-muted">'+n.data("subtext")+"</small>":"",n.data("content")&&i.options.showContent?n.data("content"):void 0!==n.attr("title")?n.attr("title"):s+n.html()+e}).toArray(),s=this.multiple?n.join(this.options.multipleSeparator):n[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var o=this.options.selectedTextFormat.split(">"),r=this.options.hideDisabled?":not([disabled])":"";(o.length>1&&n.length>o[1]||1==o.length&&n.length>=2)&&(s=this.options.countSelectedText.replace("{0}",n.length).replace("{1}",this.$element.find('option:not([data-divider="true"]):not([data-hidden="true"])'+r).length))}this.options.title=this.$element.attr("title"),s||(s=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",t.trim(s)),this.$newElement.find(".filter-option").html(s)},setStyle:function(t,e){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|validate\[.*\]/gi,""));var i=t||this.options.style;"add"==e?this.$button.addClass(i):"remove"==e?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(){if(!1!==this.options.size){var t=this.$menu.parent().clone().find("> .dropdown-toggle").prop("autofocus",!1).end().appendTo("body"),e=t.addClass("open").find("> .dropdown-menu"),i=e.find("li > a").outerHeight(),n=this.options.header?e.find(".popover-title").outerHeight():0,s=this.options.liveSearch?e.find(".bootstrap-select-searchbox").outerHeight():0,o=this.options.actionsBox?e.find(".bs-actionsbox").outerHeight():0;t.remove(),this.$newElement.data("liHeight",i).data("headerHeight",n).data("searchHeight",s).data("actionsHeight",o)}},setSize:function(){var e,i,n,s=this,o=this.$menu,r=o.find(".inner"),a=this.$newElement.outerHeight(),l=this.$newElement.data("liHeight"),c=this.$newElement.data("headerHeight"),u=this.$newElement.data("searchHeight"),h=this.$newElement.data("actionsHeight"),d=o.find("li .divider").outerHeight(!0),p=parseInt(o.css("padding-top"))+parseInt(o.css("padding-bottom"))+parseInt(o.css("border-top-width"))+parseInt(o.css("border-bottom-width")),f=this.options.hideDisabled?":not(.disabled)":"",m=t(window),g=p+parseInt(o.css("margin-top"))+parseInt(o.css("margin-bottom"))+2,v=function(){i=s.$newElement.offset().top-m.scrollTop(),n=m.height()-i-a};if(v(),this.options.header&&o.css("padding-top",0),"auto"==this.options.size){var y=function(){var t,a=s.$lis.not(".hide");v(),e=n-g,s.options.dropupAuto&&s.$newElement.toggleClass("dropup",i>n&&e-g<o.height()),s.$newElement.hasClass("dropup")&&(e=i-g),t=a.length+a.find("dt").length>3?3*l+g-2:0,o.css({"max-height":e+"px",overflow:"hidden","min-height":t+c+u+h+"px"}),r.css({"max-height":e-c-u-h-p+"px","overflow-y":"auto","min-height":Math.max(t-p,0)+"px"})};y(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",y),t(window).off("resize.getSize").on("resize.getSize",y),t(window).off("scroll.getSize").on("scroll.getSize",y)}else if(this.options.size&&"auto"!=this.options.size&&o.find("li"+f).length>this.options.size){var b=o.find("li"+f+" > *").filter(":not(.div-contain)").slice(0,this.options.size).last().parent().index(),_=o.find("li").slice(0,b+1).find(".div-contain").length;e=l*this.options.size+_*d+p,s.options.dropupAuto&&this.$newElement.toggleClass("dropup",i>n&&e<o.height()),o.css({"max-height":e+c+u+h+"px",overflow:"hidden"}),r.css({"max-height":e-p+"px","overflow-y":"auto"})}},setWidth:function(){if("auto"==this.options.width){this.$menu.css("min-width","0");var t=this.$newElement.clone().appendTo("body"),e=t.find("> .dropdown-menu").css("width"),i=t.css("width","auto").find("> button").css("width");t.remove(),this.$newElement.css("width",Math.max(parseInt(e),parseInt(i))+"px")}else"fit"==this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){var e,i,n=this,s=t("<div />"),o=function(t){s.addClass(t.attr("class").replace(/form-control/gi,"")).toggleClass("dropup",t.hasClass("dropup")),e=t.offset(),i=t.hasClass("dropup")?0:t[0].offsetHeight,s.css({top:e.top+i,left:e.left,width:t[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",function(){n.isDisabled()||(o(t(this)),s.appendTo(n.options.container),s.toggleClass("open",!t(this).hasClass("open")),s.append(n.$menu))}),t(window).resize(function(){o(n.$newElement)}),t(window).on("scroll",function(){o(n.$newElement)}),t("html").on("click",function(e){t(e.target).closest(n.$newElement).length<1&&s.removeClass("open")})},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement),this.options.container&&this.$menu.hide()},refresh:function(){this.$lis=null,this.reloadLi(),this.render(),this.setWidth(),this.setStyle(),this.checkDisabled(),this.liHeight()},update:function(){this.reloadLi(),this.setWidth(),this.setStyle(),this.checkDisabled(),this.liHeight()},setSelected:function(e,i){null==this.$lis&&(this.$lis=this.$menu.find("li")),t(this.$lis[e]).toggleClass("selected",i)},setDisabled:function(e,i){null==this.$lis&&(this.$lis=this.$menu.find("li")),i?t(this.$lis[e]).addClass("disabled").find("a").attr("href","#").attr("tabindex",-1):t(this.$lis[e]).removeClass("disabled").find("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element.is(":disabled")},checkDisabled:function(){var t=this;this.isDisabled()?this.$button.addClass("disabled").attr("tabindex",-1):(this.$button.hasClass("disabled")&&this.$button.removeClass("disabled"),-1==this.$button.attr("tabindex")&&(this.$element.data("tabindex")||this.$button.removeAttr("tabindex"))),this.$button.click(function(){return!t.isDisabled()})},tabIndex:function(){this.$element.is("[tabindex]")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")))},clickListener:function(){var e=this;t("body").on("touchstart.dropdown",".dropdown-menu",function(t){t.stopPropagation()}),this.$newElement.on("click",function(){e.setSize(),e.options.liveSearch||e.multiple||setTimeout(function(){e.$menu.find(".selected a").focus()},10)}),this.$menu.on("click","li a",function(i){var n=t(this).parent().index(),s=e.$element.val(),o=e.$element.prop("selectedIndex");if(e.multiple&&i.stopPropagation(),i.preventDefault(),!e.isDisabled()&&!t(this).parent().hasClass("disabled")){var r=e.$element.find("option"),a=r.eq(n),l=a.prop("selected"),c=a.parent("optgroup"),u=e.options.maxOptions,h=c.data("maxOptions")||!1;if(e.multiple){if(a.prop("selected",!l),e.setSelected(n,!l),!1!==u||!1!==h){var d=u<r.filter(":selected").length,p=h<c.find("option:selected").length,f=e.options.maxOptionsText,m=f[0].replace("{n}",u),g=f[1].replace("{n}",h),v=t('<div class="notify"></div>');(u&&d||h&&p)&&(f[2]&&(m=m.replace("{var}",f[2][u>1?0:1]),g=g.replace("{var}",f[2][h>1?0:1])),a.prop("selected",!1),e.$menu.append(v),u&&d&&(v.append(t("<div>"+m+"</div>")),e.$element.trigger("maxReached.bs.select")),h&&p&&(v.append(t("<div>"+g+"</div>")),e.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){e.setSelected(n,!1)},10),v.delay(750).fadeOut(300,function(){t(this).remove()}))}}else r.prop("selected",!1),a.prop("selected",!0),e.$menu.find(".selected").removeClass("selected"),e.setSelected(n,!0);e.multiple?e.options.liveSearch&&e.$searchbox.focus():e.$button.focus(),(s!=e.$element.val()&&e.multiple||o!=e.$element.prop("selectedIndex")&&!e.multiple)&&e.$element.change()}}),this.$menu.on("click","li.disabled a, li dt, li .div-contain, .popover-title, .popover-title :not(.close)",function(t){t.target==this&&(t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.focus():e.$button.focus())}),this.$menu.on("click",".popover-title .close",function(){e.$button.focus()}),this.$searchbox.on("click",function(t){t.stopPropagation()}),this.$menu.on("click",".actions-btn",function(i){e.options.liveSearch?e.$searchbox.focus():e.$button.focus(),i.preventDefault(),i.stopPropagation(),t(this).is(".bs-select-all")?e.selectAll():e.deselectAll(),e.$element.change()}),this.$element.change(function(){e.render(!1)})},liveSearchListener:function(){var e=this,i=t('<li class="no-results"></li>');this.$newElement.on("click.dropdown.data-api",function(){e.$menu.find(".active").removeClass("active"),e.$searchbox.val()&&(e.$searchbox.val(""),e.$lis.not(".is-hidden").removeClass("hide"),i.parent().length&&i.remove()),e.multiple||e.$menu.find(".selected").addClass("active"),setTimeout(function(){e.$searchbox.focus()},10)}),this.$searchbox.on("input propertychange",function(){e.$searchbox.val()?(e.$lis.not(".is-hidden").removeClass("hide").find("a").not(":icontains("+e.$searchbox.val()+")").parent().addClass("hide"),e.$menu.find("li").filter(":visible:not(.no-results)").length?i.parent().length&&i.remove():(i.parent().length&&i.remove(),i.html(e.options.noneResultsText+' "'+e.$searchbox.val()+'"').show(),e.$menu.find("li").last().after(i))):(e.$lis.not(".is-hidden").removeClass("hide"),i.parent().length&&i.remove()),e.$menu.find("li.active").removeClass("active"),e.$menu.find("li").filter(":visible:not(.divider)").eq(0).addClass("active").find("a").focus(),t(this).focus()}),this.$menu.on("mouseenter","a",function(i){e.$menu.find(".active").removeClass("active"),t(i.currentTarget).parent().not(".disabled").addClass("active")}),this.$menu.on("mouseleave","a",function(){e.$menu.find(".active").removeClass("active")})},val:function(t){return void 0!==t?(this.$element.val(t),this.$element.change(),this.$element):this.$element.val()},selectAll:function(){null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$element.find("option:enabled").prop("selected",!0),t(this.$lis).filter(":not(.disabled)").addClass("selected"),this.render(!1)},deselectAll:function(){null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$element.find("option:enabled").prop("selected",!1),t(this.$lis).filter(":not(.disabled)").removeClass("selected"),this.render(!1)},keydown:function(e){var i,n,s,o,r,a,l,c,u,h,d,p,f={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(s=(i=t(this)).parent(),i.is("input")&&(s=i.parent().parent()),(h=s.data("this")).options.liveSearch&&(s=i.parent().parent()),h.options.container&&(s=h.$menu),n=t("[role=menu] li:not(.divider) a",s),!(p=h.$menu.parent().hasClass("open"))&&/([0-9]|[A-z])/.test(String.fromCharCode(e.keyCode))&&(h.options.container?h.$newElement.trigger("click"):(h.setSize(),h.$menu.parent().addClass("open"),p=h.$menu.parent().hasClass("open")),h.$searchbox.focus()),h.options.liveSearch&&(/(^9$|27)/.test(e.keyCode)&&p&&0===h.$menu.find(".active").length&&(e.preventDefault(),h.$menu.parent().removeClass("open"),h.$button.focus()),n=t("[role=menu] li:not(.divider):visible",s),i.val()||/(38|40)/.test(e.keyCode)||0===n.filter(".active").length&&(n=h.$newElement.find("li").filter(":icontains("+f[e.keyCode]+")"))),n.length){if(/(38|40)/.test(e.keyCode))o=n.index(n.filter(":focus")),a=n.parent(":not(.disabled):visible").first().index(),l=n.parent(":not(.disabled):visible").last().index(),r=n.eq(o).parent().nextAll(":not(.disabled):visible").eq(0).index(),c=n.eq(o).parent().prevAll(":not(.disabled):visible").eq(0).index(),u=n.eq(r).parent().prevAll(":not(.disabled):visible").eq(0).index(),h.options.liveSearch&&(n.each(function(e){t(this).is(":not(.disabled)")&&t(this).data("index",e)}),o=n.index(n.filter(".active")),a=n.filter(":not(.disabled):visible").first().data("index"),l=n.filter(":not(.disabled):visible").last().data("index"),r=n.eq(o).nextAll(":not(.disabled):visible").eq(0).data("index"),c=n.eq(o).prevAll(":not(.disabled):visible").eq(0).data("index"),u=n.eq(r).prevAll(":not(.disabled):visible").eq(0).data("index")),d=i.data("prevIndex"),38==e.keyCode&&(h.options.liveSearch&&(o-=1),o!=u&&o>c&&(o=c),o<a&&(o=a),o==d&&(o=l)),40==e.keyCode&&(h.options.liveSearch&&(o+=1),-1==o&&(o=0),o!=u&&o<r&&(o=r),o>l&&(o=l),o==d&&(o=a)),i.data("prevIndex",o),h.options.liveSearch?(e.preventDefault(),i.is(".dropdown-toggle")||(n.removeClass("active"),n.eq(o).addClass("active").find("a").focus(),i.focus())):n.eq(o).focus();else if(!i.is("input")){var m,g=[];n.each(function(){t(this).parent().is(":not(.disabled)")&&t.trim(t(this).text().toLowerCase()).substring(0,1)==f[e.keyCode]&&g.push(t(this).parent().index())}),m=t(document).data("keycount"),m++,t(document).data("keycount",m),t.trim(t(":focus").text().toLowerCase()).substring(0,1)!=f[e.keyCode]?(m=1,t(document).data("keycount",m)):m>=g.length&&(t(document).data("keycount",0),m>g.length&&(m=1)),n.eq(g[m-1]).focus()}/(13|32|^9$)/.test(e.keyCode)&&p&&(/(32)/.test(e.keyCode)||e.preventDefault(),h.options.liveSearch?/(32)/.test(e.keyCode)||(h.$menu.find(".active a").click(),i.focus()):t(":focus").click(),t(document).data("keycount",0)),(/(^9$|27)/.test(e.keyCode)&&p&&(h.multiple||h.options.liveSearch)||/(27)/.test(e.keyCode)&&!p)&&(h.$menu.parent().removeClass("open"),h.$button.focus())}},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},destroy:function(){this.$newElement.remove(),this.$element.remove()}},t.fn.selectpicker=function(i,n){var s,o=arguments,r=this.each(function(){if(t(this).is("select")){var r=t(this),a=r.data("selectpicker"),l="object"==typeof i&&i;if(a){if(l)for(var c in l)a.options[c]=l[c]}else r.data("selectpicker",a=new e(this,l,n));if("string"==typeof i){var u=i;a[u]instanceof Function?([].shift.apply(o),s=a[u].apply(a,o)):s=a.options[u]}}});return void 0!==s?s:r},t.fn.selectpicker.defaults={style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",noneSelectedText:"Nothing selected",noneResultsText:"No results match",countSelectedText:"{0} of {1} selected",maxOptionsText:["Limit reached ({n} {var} max)","Group limit reached ({n} {var} max)",["items","item"]],width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,actionsBox:!1,multipleSeparator:", ",iconBase:"glyphicon",tickIcon:"glyphicon-ok",maxOptions:!1},t(document).data("keycount",0).on("keydown",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bootstrap-select-searchbox input",e.prototype.keydown).on("focusin.modal",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bootstrap-select-searchbox input",function(t){t.stopPropagation()})}(window.jQuery),$(document).ready(function(){var t=$(".pos-special-products"),e=parseInt(t.attr("data-items")),i=parseInt(t.attr("data-speed")),n=parseInt(t.attr("data-autoplay")),s=parseInt(t.attr("data-time")),o=parseInt(t.attr("data-arrow")),r=parseInt(t.attr("data-pagination")),a=parseInt(t.attr("data-move")),l=parseInt(t.attr("data-pausehover")),c=parseInt(t.attr("data-md")),u=parseInt(t.attr("data-sm")),h=parseInt(t.attr("data-xs")),d=parseInt(t.attr("data-xxs"));n=1==n&&(s||"3000"),l=!!l,a=!a,o=!!o,r=1==r;var p=$(".pos-special-products .special-item");function f(){var t=$(".pos-special-products .special-item .owl-stage .owl-item.active").length;$(".pos-special-products").each(function(){$(this).find(".owl-item").removeClass("firstActiveItem"),$(this).find(".owl-item").removeClass("lastActiveItem"),$(this).find(".owl-item.active").each(function(e){0===e&&$(this).addClass("firstActiveItem"),e===t-1&&t>1&&$(this).addClass("lastActiveItem")})})}p.owlCarousel({autoplay:n,smartSpeed:i,autoplayHoverPause:l,addClassActive:!0,scrollPerPage:a,nav:o,dots:r,responsiveClass:!0,responsive:{0:{items:d},480:{items:h},768:{items:u,nav:!1},992:{items:c},1200:{items:e}}}),f(),p.on("translated.owl.carousel",function(t){f()})}),function(){var t=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function e(i){var n=this.prototype;t=!0;var s=new this;for(var o in t=!1,i)s[o]="function"==typeof i[o]&&"function"==typeof n[o]?function(t,e){return function(){var i=this._super;this._super=function(e){return n[t].apply(this,e)};var s=e.apply(this,arguments);return this._super=i,s}}(o,i[o]):i[o];function r(){!t&&this._init&&this._init.apply(this,arguments)}return r.prototype=s,r.prototype.constructor=r,r.extend=e,r}}(),function($){function camelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var t=camelCase(this.name);$[t]=this,$.fn[t]=function(e){var i=Array.prototype.slice.call(arguments,1);return $[t]._isNotChained(e,i)?$[t][e].apply($[t],[this[0]].concat(i)):this.each(function(){if("string"==typeof e){if("_"===e[0]||!$[t][e])throw"Unknown method: "+e;$[t][e].apply($[t],[this].concat(i))}else $[t]._attach(this,e)})}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_isNotChained:function(t,e){return"option"===t&&(0===e.length||1===e.length&&"string"==typeof e[0])||$.inArray(t,this._getters)>-1},_attach:function(t,e){if(!(t=$(t)).hasClass(this._getMarker())){t.addClass(this._getMarker()),e=$.extend({},this.defaultOptions,this._getMetadata(t),e||{});var i=$.extend({name:this.name,elem:t,options:e},this._instSettings(t,e));t.data(this.name,i),this._postAttach(t,i),this.option(t,e)}},_instSettings:function(t,e){return{}},_postAttach:function(t,e){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"";for(var name in data=data.replace(/'/g,'"'),data=data.replace(/([a-zA-Z0-9]+):/g,function(t,e,i){var n=data.substring(0,i).match(/"/g);return n&&n.length%2!=0?e+":":'"'+e+'":'}),data=$.parseJSON("{"+data+"}"),data){var value=data[name];"string"==typeof value&&value.match(/^new Date\((.*)\)$/)&&(data[name]=eval(value))}return data}catch(t){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,e,i){var n=(t=$(t)).data(this.name);if(!e||"string"==typeof e&&null==i)return(s=(n||{}).options)&&e?s[e]:s;if(t.hasClass(this._getMarker())){var s=e||{};"string"==typeof e&&((s={})[e]=i),this._optionsChanged(t,n,s),$.extend(n.options,s)}},_optionsChanged:function(t,e,i){},destroy:function(t){(t=$(t)).hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(t,e){}}),$.JQPlugin={createPlugin:function(t,e){"object"==typeof t&&(e=t,t="JQPlugin"),t=camelCase(t);var i=camelCase(e.name);JQClass.classes[i]=JQClass.classes[t].extend(e),new JQClass.classes[i]}}}(jQuery),function(t){var e="countdown";t.JQPlugin.createPlugin({name:e,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:e+"-rtl",_sectionClass:e+"-section",_amountClass:e+"-amount",_periodClass:e+"-period",_rowClass:e+"-row",_holdingClass:e+"-holding",_showClass:e+"-show",_descrClass:e+"-descr",_timerElems:[],_init:function(){var e=this;this._super(),this._serverSyncs=[];var i="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},n=window.performance&&"function"==typeof window.performance.now;var s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,o=0;!s||t.noRequestAnimationFrame?(t.noRequestAnimationFrame=null,setInterval(function(){e._updateElems()},980)):(o=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||i(),s(function t(r){var a=r<1e12?n?performance.now()+performance.timing.navigationStart:i():r||i();a-o>=1e3&&(e._updateElems(),o=a),s(t)}))},UTCDate:function(t,e,i,n,s,o,r,a){"object"==typeof e&&e.constructor==Date&&(a=e.getMilliseconds(),r=e.getSeconds(),o=e.getMinutes(),s=e.getHours(),n=e.getDate(),i=e.getMonth(),e=e.getFullYear());var l=new Date;return l.setUTCFullYear(e),l.setUTCDate(1),l.setUTCMonth(i||0),l.setUTCDate(n||1),l.setUTCHours(s||0),l.setUTCMinutes((o||0)-(Math.abs(t)<30?60*t:t)),l.setUTCSeconds(r||0),l.setUTCMilliseconds(a||0),l},periodsToSeconds:function(t){return 31557600*t[0]+2629800*t[1]+604800*t[2]+86400*t[3]+3600*t[4]+60*t[5]+t[6]},_instSettings:function(t,e){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(t){this._hasElem(t)||this._timerElems.push(t)},_hasElem:function(e){return t.inArray(e,this._timerElems)>-1},_removeElem:function(e){this._timerElems=t.map(this._timerElems,function(t){return t==e?null:t})},_updateElems:function(){for(var t=this._timerElems.length-1;t>=0;t--)this._updateCountdown(this._timerElems[t])},_optionsChanged:function(e,i,n){n.layout&&(n.layout=n.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(i.options,n);var s=i.options.timezone!=n.timezone;t.extend(i.options,n),this._adjustSettings(e,i,null!=n.until||null!=n.since||s);var o=new Date;(i._since&&i._since<o||i._until&&i._until>o)&&this._addElem(e[0]),this._updateCountdown(e,i)},_updateCountdown:function(e,i){if(e=e.jquery?e:t(e),i=i||e.data(this.name)){if(e.html(this._generateHTML(i)).toggleClass(this._rtlClass,i.options.isRTL),t.isFunction(i.options.onTick)){var n="lap"!=i._hold?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date);1!=i.options.tickInterval&&this.periodsToSeconds(n)%i.options.tickInterval!=0||i.options.onTick.apply(e[0],[n])}if("pause"!=i._hold&&(i._since?i._now.getTime()<i._since.getTime():i._now.getTime()>=i._until.getTime())&&!i._expiring){if(i._expiring=!0,this._hasElem(e[0])||i.options.alwaysExpire){if(this._removeElem(e[0]),t.isFunction(i.options.onExpiry)&&i.options.onExpiry.apply(e[0],[]),i.options.expiryText){var s=i.options.layout;i.options.layout=i.options.expiryText,this._updateCountdown(e[0],i),i.options.layout=s}i.options.expiryUrl&&(window.location=i.options.expiryUrl)}i._expiring=!1}else"pause"==i._hold&&this._removeElem(e[0])}},_resetExtraLabels:function(t,e){var i=!1;for(var n in e)if("whichLabels"!=n&&n.match(/[Ll]abels/)){i=!0;break}if(i)for(var n in t)n.match(/[Ll]abels[02-9]|compactLabels1/)&&(t[n]=null)},_adjustSettings:function(e,i,n){for(var s,o=0,r=null,a=0;a<this._serverSyncs.length;a++)if(this._serverSyncs[a][0]==i.options.serverSync){r=this._serverSyncs[a][1];break}if(null!=r)o=i.options.serverSync?r:0,s=new Date;else{var l=t.isFunction(i.options.serverSync)?i.options.serverSync.apply(e[0],[]):null;s=new Date,o=l?s.getTime()-l.getTime():0,this._serverSyncs.push([i.options.serverSync,o])}var c=i.options.timezone;c=null==c?-s.getTimezoneOffset():c,(n||!n&&null==i._until&&null==i._since)&&(i._since=i.options.since,null!=i._since&&(i._since=this.UTCDate(c,this._determineTime(i._since,null)),i._since&&o&&i._since.setMilliseconds(i._since.getMilliseconds()+o)),i._until=this.UTCDate(c,this._determineTime(i.options.until,s)),o&&i._until.setMilliseconds(i._until.getMilliseconds()+o)),i._show=this._determineShow(i)},_preDestroy:function(t,e){this._removeElem(t[0]),t.empty()},pause:function(t){this._hold(t,"pause")},lap:function(t){this._hold(t,"lap")},resume:function(t){this._hold(t,null)},toggle:function(e){this[(t.data(e,this.name)||{})._hold?"resume":"pause"](e)},toggleLap:function(e){this[(t.data(e,this.name)||{})._hold?"resume":"lap"](e)},_hold:function(e,i){var n=t.data(e,this.name);if(n){if("pause"==n._hold&&!i){n._periods=n._savePeriods;var s=n._since?"-":"+";n[n._since?"_since":"_until"]=this._determineTime(s+n._periods[0]+"y"+s+n._periods[1]+"o"+s+n._periods[2]+"w"+s+n._periods[3]+"d"+s+n._periods[4]+"h"+s+n._periods[5]+"m"+s+n._periods[6]+"s"),this._addElem(e)}n._hold=i,n._savePeriods="pause"==i?n._periods:null,t.data(e,this.name,n),this._updateCountdown(e,n)}},getTimes:function(e){var i=t.data(e,this.name);return i?"pause"==i._hold?i._savePeriods:i._hold?this._calculatePeriods(i,i._show,i.options.significant,new Date):i._periods:null},_determineTime:function(t,e){var i,n,s=this,o=null==t?e:"string"==typeof t?function(t){t=t.toLowerCase();for(var e=new Date,i=e.getFullYear(),n=e.getMonth(),o=e.getDate(),r=e.getHours(),a=e.getMinutes(),l=e.getSeconds(),c=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,u=c.exec(t);u;){switch(u[2]||"s"){case"s":l+=parseInt(u[1],10);break;case"m":a+=parseInt(u[1],10);break;case"h":r+=parseInt(u[1],10);break;case"d":o+=parseInt(u[1],10);break;case"w":o+=7*parseInt(u[1],10);break;case"o":n+=parseInt(u[1],10),o=Math.min(o,s._getDaysInMonth(i,n));break;case"y":i+=parseInt(u[1],10),o=Math.min(o,s._getDaysInMonth(i,n))}u=c.exec(t)}return new Date(i,n,o,r,a,l,0)}(t):"number"==typeof t?(i=t,(n=new Date).setTime(n.getTime()+1e3*i),n):t;return o&&o.setMilliseconds(0),o},_getDaysInMonth:function(t,e){return 32-new Date(t,e,32).getDate()},_normalLabels:function(t){return t},_generateHTML:function(e){var i=this;e._periods=e._hold?e._periods:this._calculatePeriods(e,e._show,e.options.significant,new Date);for(var n=!1,s=0,o=e.options.significant,r=t.extend({},e._show),a=0;a<=6;a++)n|="?"==e._show[a]&&e._periods[a]>0,r[a]="?"!=e._show[a]||n?e._show[a]:null,s+=r[a]?1:0,o-=e._periods[a]>0?1:0;var l=[!1,!1,!1,!1,!1,!1,!1];for(a=6;a>=0;a--)e._show[a]&&(e._periods[a]?l[a]=!0:(l[a]=o>0,o--));var c=e.options.compact?e.options.compactLabels:e.options.labels,u=e.options.whichLabels||this._normalLabels,h=function(t){var n=e.options["compactLabels"+u(e._periods[t])];return r[t]?i._translateDigits(e,e._periods[t])+(n?n[t]:c[t])+" ":""},d=e.options.padZeroes?2:1,p=function(t){var n=e.options["labels"+u(e._periods[t])];return!e.options.significant&&r[t]||e.options.significant&&l[t]?'<span class="'+i._sectionClass+'"><span class="'+i._amountClass+'">'+i._minDigits(e,e._periods[t],d)+'</span><span class="'+i._periodClass+'">'+(n?n[t]:c[t])+"</span></span>":""};return e.options.layout?this._buildLayout(e,r,e.options.layout,e.options.compact,e.options.significant,l):(e.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(e._hold?" "+this._holdingClass:"")+'">'+h(0)+h(1)+h(2)+h(3)+(r[4]?this._minDigits(e,e._periods[4],2):"")+(r[5]?(r[4]?e.options.timeSeparator:"")+this._minDigits(e,e._periods[5],2):"")+(r[6]?(r[4]||r[5]?e.options.timeSeparator:"")+this._minDigits(e,e._periods[6],2):""):'<span class="'+this._rowClass+" "+this._showClass+(e.options.significant||s)+(e._hold?" "+this._holdingClass:"")+'">'+p(0)+p(1)+p(2)+p(3)+p(4)+p(5)+p(6))+"</span>"+(e.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+e.options.description+"</span>":"")},_buildLayout:function(e,i,n,s,o,r){for(var a=e.options[s?"compactLabels":"labels"],l=e.options.whichLabels||this._normalLabels,c=function(t){return(e.options[(s?"compactLabels":"labels")+l(e._periods[t])]||a)[t]},u=function(t,i){return e.options.digits[Math.floor(t/i)%10]},h={desc:e.options.description,sep:e.options.timeSeparator,yl:c(0),yn:this._minDigits(e,e._periods[0],1),ynn:this._minDigits(e,e._periods[0],2),ynnn:this._minDigits(e,e._periods[0],3),y1:u(e._periods[0],1),y10:u(e._periods[0],10),y100:u(e._periods[0],100),y1000:u(e._periods[0],1e3),ol:c(1),on:this._minDigits(e,e._periods[1],1),onn:this._minDigits(e,e._periods[1],2),onnn:this._minDigits(e,e._periods[1],3),o1:u(e._periods[1],1),o10:u(e._periods[1],10),o100:u(e._periods[1],100),o1000:u(e._periods[1],1e3),wl:c(2),wn:this._minDigits(e,e._periods[2],1),wnn:this._minDigits(e,e._periods[2],2),wnnn:this._minDigits(e,e._periods[2],3),w1:u(e._periods[2],1),w10:u(e._periods[2],10),w100:u(e._periods[2],100),w1000:u(e._periods[2],1e3),dl:c(3),dn:this._minDigits(e,e._periods[3],1),dnn:this._minDigits(e,e._periods[3],2),dnnn:this._minDigits(e,e._periods[3],3),d1:u(e._periods[3],1),d10:u(e._periods[3],10),d100:u(e._periods[3],100),d1000:u(e._periods[3],1e3),hl:c(4),hn:this._minDigits(e,e._periods[4],1),hnn:this._minDigits(e,e._periods[4],2),hnnn:this._minDigits(e,e._periods[4],3),h1:u(e._periods[4],1),h10:u(e._periods[4],10),h100:u(e._periods[4],100),h1000:u(e._periods[4],1e3),ml:c(5),mn:this._minDigits(e,e._periods[5],1),mnn:this._minDigits(e,e._periods[5],2),mnnn:this._minDigits(e,e._periods[5],3),m1:u(e._periods[5],1),m10:u(e._periods[5],10),m100:u(e._periods[5],100),m1000:u(e._periods[5],1e3),sl:c(6),sn:this._minDigits(e,e._periods[6],1),snn:this._minDigits(e,e._periods[6],2),snnn:this._minDigits(e,e._periods[6],3),s1:u(e._periods[6],1),s10:u(e._periods[6],10),s100:u(e._periods[6],100),s1000:u(e._periods[6],1e3)},d=n,p=0;p<=6;p++){var f="yowdhms".charAt(p),m=new RegExp("\\{"+f+"<\\}([\\s\\S]*)\\{"+f+">\\}","g");d=d.replace(m,!o&&i[p]||o&&r[p]?"$1":"")}return t.each(h,function(t,e){var i=new RegExp("\\{"+t+"\\}","g");d=d.replace(i,e)}),d},_minDigits:function(t,e,i){return(e=""+e).length>=i?this._translateDigits(t,e):(e="0000000000"+e,this._translateDigits(t,e.substr(e.length-i)))},_translateDigits:function(t,e){return(""+e).replace(/[0-9]/g,function(e){return t.options.digits[e]})},_determineShow:function(t){var e=t.options.format,i=[];return i[0]=e.match("y")?"?":e.match("Y")?"!":null,i[1]=e.match("o")?"?":e.match("O")?"!":null,i[2]=e.match("w")?"?":e.match("W")?"!":null,i[3]=e.match("d")?"?":e.match("D")?"!":null,i[4]=e.match("h")?"?":e.match("H")?"!":null,i[5]=e.match("m")?"?":e.match("M")?"!":null,i[6]=e.match("s")?"?":e.match("S")?"!":null,i},_calculatePeriods:function(t,e,i,n){t._now=n,t._now.setMilliseconds(0);var s=new Date(t._now.getTime());t._since?n.getTime()<t._since.getTime()?t._now=n=s:n=t._since:(s.setTime(t._until.getTime()),n.getTime()>t._until.getTime()&&(t._now=n=s));var o=[0,0,0,0,0,0,0];if(e[0]||e[1]){var r=this._getDaysInMonth(n.getFullYear(),n.getMonth()),a=this._getDaysInMonth(s.getFullYear(),s.getMonth()),l=s.getDate()==n.getDate()||s.getDate()>=Math.min(r,a)&&n.getDate()>=Math.min(r,a),c=function(t){return 60*(60*t.getHours()+t.getMinutes())+t.getSeconds()},u=Math.max(0,12*(s.getFullYear()-n.getFullYear())+s.getMonth()-n.getMonth()+(s.getDate()<n.getDate()&&!l||l&&c(s)<c(n)?-1:0));o[0]=e[0]?Math.floor(u/12):0,o[1]=e[1]?u-12*o[0]:0;var h=(n=new Date(n.getTime())).getDate()==r,d=this._getDaysInMonth(n.getFullYear()+o[0],n.getMonth()+o[1]);n.getDate()>d&&n.setDate(d),n.setFullYear(n.getFullYear()+o[0]),n.setMonth(n.getMonth()+o[1]),h&&n.setDate(d)}var p=Math.floor((s.getTime()-n.getTime())/1e3),f=function(t,i){o[t]=e[t]?Math.floor(p/i):0,p-=o[t]*i};if(f(2,604800),f(3,86400),f(4,3600),f(5,60),f(6,1),p>0&&!t._since)for(var m=[1,12,4.3482,7,24,60,60],g=6,v=1,y=6;y>=0;y--)e[y]&&(o[g]>=v&&(o[g]=0,p=1),p>0&&(o[y]++,p=0,g=y,v=1)),v*=m[y];if(i)for(y=0;y<=6;y++)i&&o[y]?i--:i||(o[y]=0);return o}})}(jQuery),$(document).ready(function(){countdownproduct()}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(i){return e(i,t,t.document,t.Math)}):"undefined"!=typeof exports?module.exports=e(require("jquery"),t,t.document,t.Math):e(jQuery,t,t.document,t.Math)}("undefined"!=typeof window?window:this,function(t,e,i,n,s){"use strict";var o="fullpage-wrapper",r="."+o,a="fp-scrollable",l="."+a,c="fp-responsive",u="fp-notransition",h="fp-destroyed",d="fp-enabled",p="fp-viewing",f="active",m="."+f,g="fp-completely",v="."+g,y="fp-section",b="."+y,_=b+m,w=b+":first",x=b+":last",C="fp-tableCell",S="."+C,k="fp-auto-height",T="fp-normal-scroll",D="fp-nav",E="#"+D,I="fp-tooltip",A="."+I,P="fp-show-active",$="fp-slide",O="."+$,M=O+m,N="fp-slides",H="."+N,j="fp-slidesContainer",L="."+j,z="fp-table",F="fp-slidesNav",W="."+F,R=W+" a",B="fp-controlArrow",q="."+B,U="fp-prev",V=B+" "+U,Y=q+("."+U),Q=B+" fp-next",X=q+".fp-next",K=t(e),G=t(i),Z={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0};t.fn.fullpage=function(a){function l(t){var i=t.replace("fp_","").replace("Extension","");le[i]=void 0!==e[t]?new e[t]:null}function B(){t(b).each(function(){var e=t(this).find(O);e.length?e.each(function(){Ft(t(this))}):Ft(t(this))}),et()}function tt(t,e){var i=t.attr("src");t.attr("src",i+(/\?/.test(i)?"&":"?")+e)}function et(){var e=t(_);e.addClass(g),a.scrollOverflowHandler.afterRender&&a.scrollOverflowHandler.afterRender(e),pt(e),ft(e),t.isFunction(a.afterLoad)&&a.afterLoad.call(e,e.data("anchor"),e.index(b)+1),t.isFunction(a.afterRender)&&a.afterRender.call(me)}function it(){var e,n,s,o,r,l;if(!a.autoScrolling||a.scrollBar){var c=K.scrollTop(),u=(l=(r=c)>Ae?"down":"up",Ae=r,He=r,l),h=0,d=c+K.height()/2,p=ae.height()-K.height()===c,m=i.querySelectorAll(b);if(p)h=m.length-1;else for(var v=0;v<m.length;++v){m[v].offsetTop<=d&&(h=v)}if(n=u,s=t(_).position().top,o=s+K.height(),("up"==n?o>=K.scrollTop()+K.height():s<=K.scrollTop())&&(t(_).hasClass(g)||t(_).addClass(g).siblings().removeClass(g)),!(e=t(m).eq(h)).hasClass(f)){Ie=!0;var y=t(_),w=y.index(b)+1,x=Lt(e),C=e.data("anchor"),S=e.index(b)+1,k=e.find(M);if(k.length)var T=k.data("anchor"),D=k.index();be&&(e.addClass(f).siblings().removeClass(f),t.isFunction(a.onLeave)&&a.onLeave.call(y,w,S,x),t.isFunction(a.afterLoad)&&a.afterLoad.call(e,C,S),gt(y),pt(e),ft(e),jt(C,S-1),a.anchors.length&&(ce=C,Yt(D,T,C,S))),clearTimeout(ke),ke=setTimeout(function(){Ie=!1},100)}a.fitToSection&&(clearTimeout(Te),Te=setTimeout(function(){be&&a.fitToSection&&(t(_).is(e)&&(ve=!0),ht(t(_)),ve=!1)},a.fitToSectionDelay))}}function nt(t,e){if(we.m[t]){var i="down"===t?"bottom":"top",n="down"===t?le.moveSectionDown:le.moveSectionUp;if(le.scrollHorizontally&&(n=le.scrollHorizontally.getScrollSection(t,n)),e.length>0){if(!a.scrollOverflowHandler.isScrolled(i,e))return!0;n()}else n()}}function st(e){var i=e.originalEvent,s=t(i.target).closest(b);if(!function e(i,n){n=n||0;var s=t(i).parent();return!!(n<a.normalScrollElementTouchThreshold&&s.is(a.normalScrollElements))||n!=a.normalScrollElementTouchThreshold&&e(s,++n)}(e.target)&&ot(i)){a.autoScrolling&&e.preventDefault();var o=a.scrollOverflowHandler.scrollable(s);if(be&&!de){var r=Zt(i);Oe=r.y,Me=r.x,s.find(H).length&&n.abs($e-Me)>n.abs(Pe-Oe)?n.abs($e-Me)>K.outerWidth()/100*a.touchSensitivity&&($e>Me?we.m.right&&le.moveSlideRight(s):we.m.left&&le.moveSlideLeft(s)):a.autoScrolling&&n.abs(Pe-Oe)>K.height()/100*a.touchSensitivity&&(Pe>Oe?nt("down",o):Oe>Pe&&nt("up",o))}}}function ot(t){return void 0===t.pointerType||"mouse"!=t.pointerType}function rt(t){var e=t.originalEvent;if(a.fitToSection&&re.stop(),ot(e)){var i=Zt(e);Pe=i.y,$e=i.x}}function at(t,e){for(var i=0,s=t.slice(n.max(t.length-e,1)),o=0;o<s.length;o++)i+=s[o];return n.ceil(i/e)}function lt(i){var s=(new Date).getTime(),o=t(v).hasClass(T);if(a.autoScrolling&&!he&&!o){var r=(i=i||e.event).wheelDelta||-i.deltaY||-i.detail,l=n.max(-1,n.min(1,r)),c=void 0!==i.wheelDeltaX||void 0!==i.deltaX,u=n.abs(i.wheelDeltaX)<n.abs(i.wheelDelta)||n.abs(i.deltaX)<n.abs(i.deltaY)||!c;_e.length>149&&_e.shift(),_e.push(n.abs(r)),a.scrollBar&&(i.preventDefault?i.preventDefault():i.returnValue=!1);var h=t(_),d=a.scrollOverflowHandler.scrollable(h),p=s-Ne;if(Ne=s,p>200&&(_e=[]),be)at(_e,10)>=at(_e,70)&&u&&nt(0>l?"down":"up",d);return!1}a.fitToSection&&re.stop()}function ct(e,i){var n=(void 0===i?t(_):i).find(H),s=n.find(O).length;if(!(!n.length||de||2>s)){var o=n.find(M),r=null;if(!(r="left"===e?o.prev(O):o.next(O)).length){if(!a.loopHorizontal)return;r="left"===e?o.siblings(":last"):o.siblings(":first")}de=!0,At(n,r,e)}}function ut(){t(M).each(function(){Jt(t(this),"internal")})}function ht(e,i,n){if(void 0!==e){var s={element:e,callback:i,isMovementUp:n,dtop:(h=(u=e).position(),d=h.top,p=h.top>He,m=d-ge+u.outerHeight(),g=a.bigSectionsDestination,u.outerHeight()>ge?(!p&&!g||"bottom"===g)&&(d=m):(p||ve&&u.is(":last-child"))&&(d=m),He=d,d),yMovement:Lt(e),anchorLink:e.data("anchor"),sectionIndex:e.index(b),activeSlide:e.find(M),activeSection:t(_),leavingSection:t(_).index(b)+1,localIsResizing:ve};if(!(s.activeSection.is(e)&&!ve||a.scrollBar&&K.scrollTop()===s.dtop&&!e.hasClass(k))){if(s.activeSlide.length)var o=s.activeSlide.data("anchor"),l=s.activeSlide.index();a.autoScrolling&&a.continuousVertical&&void 0!==s.isMovementUp&&(!s.isMovementUp&&"up"==s.yMovement||s.isMovementUp&&"down"==s.yMovement)&&((c=s).isMovementUp?t(_).before(c.activeSection.nextAll(b)):t(_).after(c.activeSection.prevAll(b).get().reverse()),te(t(_).position().top),ut(),c.wrapAroundElements=c.activeSection,c.dtop=c.element.position().top,c.yMovement=Lt(c.element),s=c),(!t.isFunction(a.onLeave)||s.localIsResizing||!1!==a.onLeave.call(s.activeSection,s.leavingSection,s.sectionIndex+1,s.yMovement))&&(gt(s.activeSection),e.addClass(f).siblings().removeClass(f),pt(e),a.scrollOverflowHandler.onLeave(),be=!1,Yt(l,o,s.anchorLink,s.sectionIndex),function(e){if(a.css3&&a.autoScrolling&&!a.scrollBar){var i="translate3d(0px, -"+e.dtop+"px, 0px)";Bt(i,!0),a.scrollingSpeed?Ce=setTimeout(function(){dt(e)},a.scrollingSpeed):dt(e)}else{var n=(s=e,o={},a.autoScrolling&&!a.scrollBar?(o.options={top:-s.dtop},o.element=r):(o.options={scrollTop:s.dtop},o.element="html, body"),o);t(n.element).animate(n.options,a.scrollingSpeed,a.easing).promise().done(function(){a.scrollBar?setTimeout(function(){dt(e)},30):dt(e)})}var s,o}(s),ce=s.anchorLink,jt(s.anchorLink,s.sectionIndex))}}var c,u,h,d,p,m,g}function dt(e){var i;(i=e).wrapAroundElements&&i.wrapAroundElements.length&&(i.isMovementUp?t(w).before(i.wrapAroundElements):t(x).after(i.wrapAroundElements),te(t(_).position().top),ut()),t.isFunction(a.afterLoad)&&!e.localIsResizing&&a.afterLoad.call(e.element,e.anchorLink,e.sectionIndex+1),a.scrollOverflowHandler.afterLoad(),a.resetSliders&&le.resetSliders&&le.resetSliders.apply(e),ft(e.element),e.element.addClass(g).siblings().removeClass(g),be=!0,t.isFunction(e.callback)&&e.callback.call(this)}function pt(e){(e=vt(e)).find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){t(this).attr("src",t(this).data("src")),t(this).removeAttr("data-src"),t(this).is("source")&&t(this).closest("video").get(0).load()})}function ft(e){(e=vt(e)).find("video, audio").each(function(){var e=t(this).get(0);e.hasAttribute("data-autoplay")&&"function"==typeof e.play&&e.play()}),e.find('iframe[src*="youtube.com/embed/"]').each(function(){var e=t(this).get(0);mt(e),e.onload=function(){mt(e)}})}function mt(t){t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function gt(e){(e=vt(e)).find("video, audio").each(function(){var e=t(this).get(0);e.hasAttribute("data-keepplaying")||"function"!=typeof e.pause||e.pause()}),e.find('iframe[src*="youtube.com/embed/"]').each(function(){var e=t(this).get(0);/youtube\.com\/embed\//.test(t(this).attr("src"))&&!e.hasAttribute("data-keepplaying")&&t(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function vt(e){var i=e.find(M);return i.length&&(e=t(i)),e}function yt(){var t=e.location.hash.replace("#","").split("/"),i=decodeURIComponent(t[0]),n=decodeURIComponent(t[1]);i&&(a.animateAnchor?Ut(i,n):le.silentMoveTo(i,n))}function bt(){if(!Ie&&!a.lockAnchors){var t=e.location.hash.replace("#","").split("/"),i=decodeURIComponent(t[0]),n=decodeURIComponent(t[1]),s=void 0===ce,o=void 0===ce&&void 0===n&&!de;i.length&&(i&&i!==ce&&!s||o||!de&&ue!=n)&&Ut(i,n)}}function _t(e){clearTimeout(De);var i=t(":focus");if(!i.is("textarea")&&!i.is("input")&&!i.is("select")&&"true"!==i.attr("contentEditable")&&""!==i.attr("contentEditable")&&a.keyboardScrolling&&a.autoScrolling){var n=e.which;t.inArray(n,[40,38,32,33,34])>-1&&e.preventDefault(),he=e.ctrlKey,De=setTimeout(function(){!function(e){var i=e.shiftKey;switch(e.which){case 38:case 33:we.k.up&&le.moveSectionUp();break;case 32:if(i&&we.k.up){le.moveSectionUp();break}case 40:case 34:we.k.down&&le.moveSectionDown();break;case 36:we.k.up&&le.moveTo(1);break;case 35:we.k.down&&le.moveTo(t(b).length);break;case 37:we.k.left&&le.moveSlideLeft();break;case 39:we.k.right&&le.moveSlideRight();break;default:;}}(e)},150)}}function wt(){t(this).prev().trigger("click")}function xt(t){ye&&(he=t.ctrlKey)}function Ct(t){2==t.which&&(je=t.pageY,me.on("mousemove",It))}function St(t){2==t.which&&me.off("mousemove")}function kt(){var e=t(this).closest(b);t(this).hasClass(U)?we.m.left&&le.moveSlideLeft(e):we.m.right&&le.moveSlideRight(e)}function Tt(){ye=!1,he=!1}function Dt(e){e.preventDefault();var i=t(this).parent().index();ht(t(b).eq(i))}function Et(e){e.preventDefault();var i=t(this).closest(b).find(H);At(i,i.find(O).eq(t(this).closest("li").index()))}function It(t){be&&(t.pageY<je&&we.m.up?le.moveSectionUp():t.pageY>je&&we.m.down&&le.moveSectionDown()),je=t.pageY}function At(e,i,n){var s=e.closest(b),o={slides:e,destiny:i,direction:n,destinyPos:i.position(),slideIndex:i.index(),section:s,sectionIndex:s.index(b),anchorLink:s.data("anchor"),slidesNav:s.find(W),slideAnchor:Xt(i),prevSlide:s.find(M),prevSlideIndex:s.find(M).index(),localIsResizing:ve};return o.xMovement=zt(o.prevSlideIndex,o.slideIndex),be=!1,a.onSlideLeave&&!o.localIsResizing&&"none"!==o.xMovement&&t.isFunction(a.onSlideLeave)&&!1===a.onSlideLeave.call(o.prevSlide,o.anchorLink,o.sectionIndex+1,o.prevSlideIndex,o.xMovement,o.slideIndex)?void(de=!1):(gt(o.prevSlide),i.addClass(f).siblings().removeClass(f),o.localIsResizing||pt(i),!a.loopHorizontal&&a.controlArrows&&(s.find(Y).toggle(0!==o.slideIndex),s.find(X).toggle(!i.is(":last-child"))),s.hasClass(f)&&Yt(o.slideIndex,o.slideAnchor,o.anchorLink,o.sectionIndex),le.continuousHorizontal&&le.continuousHorizontal.apply(o),$t(e,o,!0),void(a.interlockedSlides&&le.interlockedSlides&&le.interlockedSlides.apply(o)))}function Pt(e){var i,n;le.continuousHorizontal&&le.continuousHorizontal.afterSlideLoads(e),i=e.slidesNav,n=e.slideIndex,i.find(m).removeClass(f),i.find("li").eq(n).find("a").addClass(f),e.localIsResizing||(t.isFunction(a.afterSlideLoad)&&a.afterSlideLoad.call(e.destiny,e.anchorLink,e.sectionIndex+1,e.slideAnchor,e.slideIndex),be=!0),ft(e.destiny),de=!1,le.interlockedSlides&&le.interlockedSlides.apply(e)}function $t(t,e,i){var s=e.destinyPos;if(a.css3){var o="translate3d(-"+n.round(s.left)+"px, 0px, 0px)";Nt(t.find(L)).css(ee(o)),Se=setTimeout(function(){i&&Pt(e)},a.scrollingSpeed,a.easing)}else t.animate({scrollLeft:n.round(s.left)},a.scrollingSpeed,a.easing,function(){i&&Pt(e)})}function Ot(){if(Mt(),pe){var e=t(i.activeElement);if(!e.is("textarea")&&!e.is("input")&&!e.is("select")){var s=K.height();n.abs(s-Le)>20*n.max(Le,s)/100&&(le.reBuild(!0),Le=s)}}else clearTimeout(xe),xe=setTimeout(function(){le.reBuild(!0)},350)}function Mt(){var t=a.responsive||a.responsiveWidth,e=a.responsiveHeight,i=t&&K.outerWidth()<t,n=e&&K.height()<e;t&&e?le.setResponsive(i||n):t?le.setResponsive(i):e&&le.setResponsive(n)}function Nt(t){var e="all "+a.scrollingSpeed+"ms "+a.easingcss3;return t.removeClass(u),t.css({"-webkit-transition":e,transition:e})}function Ht(t){return t.addClass(u)}function jt(e,i){var n,s,o;o=e,a.menu&&(t(a.menu).find(m).removeClass(f),t(a.menu).find('[data-menuanchor="'+o+'"]').addClass(f)),n=e,s=i,a.navigation&&(t(E).find(m).removeClass(f),n?t(E).find('a[href="#'+n+'"]').addClass(f):t(E).find("li").eq(s).find("a").addClass(f))}function Lt(e){var i=t(_).index(b),n=e.index(b);return i==n?"none":i>n?"up":"down"}function zt(t,e){return t==e?"none":t>e?"left":"right"}function Ft(t){if(!t.hasClass("fp-noscroll")){t.css("overflow","hidden");var e,i=a.scrollOverflowHandler,n=i.wrapContent(),s=t.closest(b),o=i.scrollable(t);o.length?e=i.scrollHeight(t):(e=t.get(0).scrollHeight,a.verticalCentered&&(e=t.find(S).get(0).scrollHeight));var r=ge-parseInt(s.css("padding-bottom"))-parseInt(s.css("padding-top"));e>r?o.length?i.update(t,r):(a.verticalCentered?t.find(S).wrapInner(n):t.wrapInner(n),i.create(t,r)):i.remove(t),t.css("overflow","")}}function Wt(t){t.addClass(z).wrapInner('<div class="'+C+'" style="height:'+Rt(t)+'px;" />')}function Rt(t){var e=ge;if(a.paddingTop||a.paddingBottom){var i=t;i.hasClass(y)||(i=t.closest(b));var n=parseInt(i.css("padding-top"))+parseInt(i.css("padding-bottom"));e=ge-n}return e}function Bt(t,e){e?Nt(me):Ht(me),me.css(ee(t)),setTimeout(function(){me.removeClass(u)},10)}function qt(e){var i=me.find(b+'[data-anchor="'+e+'"]');return i.length||(i=t(b).eq(e-1)),i}function Ut(t,e){var i=qt(t);void 0===e&&(e=0),t===ce||i.hasClass(f)?Vt(i,e):ht(i,function(){Vt(i,e)})}function Vt(t,e){if(void 0!==e){var i=t.find(H),n=(s=e,o=t.find(H),(r=o.find(O+'[data-anchor="'+s+'"]')).length||(r=o.find(O).eq(s)),r);n.length&&At(i,n)}var s,o,r}function Yt(t,e,i,n){var s="";a.anchors.length&&!a.lockAnchors&&(t?(void 0!==i&&(s=i),void 0===e&&(e=t),ue=e,Qt(s+"/"+e)):void 0!==t?(ue=e,Qt(i)):Qt(i)),Kt()}function Qt(t){if(a.recordHistory)location.hash=t;else if(pe||fe)e.history.replaceState(s,s,"#"+t);else{var i=e.location.href.split("#")[0];e.location.replace(i+"#"+t)}}function Xt(t){var e=t.data("anchor"),i=t.index();return void 0===e&&(e=i),e}function Kt(){var e=t(_),i=e.find(M),n=Xt(e),s=Xt(i),o=String(n);i.length&&(o=o+"-"+s),o=o.replace("/","-").replace("#","");var r=new RegExp("\\b\\s?"+p+"-[^\\s]+\\b","g");ae[0].className=ae[0].className.replace(r,""),ae.addClass(p+"-"+o)}function Gt(){return e.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function Zt(t){var e=[];return e.y=void 0!==t.pageY&&(t.pageY||t.pageX)?t.pageY:t.touches[0].pageY,e.x=void 0!==t.pageX&&(t.pageY||t.pageX)?t.pageX:t.touches[0].pageX,fe&&ot(t)&&a.scrollBar&&(e.y=t.touches[0].pageY,e.x=t.touches[0].pageX),e}function Jt(t,e){le.setScrollingSpeed(0,"internal"),void 0!==e&&(ve=!0),At(t.closest(H),t),void 0!==e&&(ve=!1),le.setScrollingSpeed(Ee.scrollingSpeed,"internal")}function te(t){if(a.scrollBar)me.scrollTop(t);else if(a.css3){Bt("translate3d(0px, -"+t+"px, 0px)",!1)}else me.css("top",-t)}function ee(t){return{"-webkit-transform":t,"-moz-transform":t,"-ms-transform":t,transform:t}}function ie(t,e,i){switch(e){case"up":we[i].up=t;break;case"down":we[i].down=t;break;case"left":we[i].left=t;break;case"right":we[i].right=t;break;case"all":"m"==i?le.setAllowScrolling(t):le.setKeyboardScrolling(t)}}function ne(t,e,i){a[t]=e,"internal"!==i&&(Ee[t]=e)}function se(){return t("html").hasClass(d)?void oe("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(a.continuousVertical&&(a.loopTop||a.loopBottom)&&(a.continuousVertical=!1,oe("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),a.scrollBar&&a.scrollOverflow&&oe("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),a.continuousVertical&&a.scrollBar&&(a.continuousVertical=!1,oe("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),void t.each(a.anchors,function(e,i){var n=G.find("[name]").filter(function(){return t(this).attr("name")&&t(this).attr("name").toLowerCase()==i.toLowerCase()}),s=G.find("[id]").filter(function(){return t(this).attr("id")&&t(this).attr("id").toLowerCase()==i.toLowerCase()});(s.length||n.length)&&(oe("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),s.length&&oe("error",'"'+i+'" is is being used by another element `id` property'),n.length&&oe("error",'"'+i+'" is is being used by another element `name` property'))}))}function oe(t,e){console&&console[t]&&console[t]("fullPage: "+e)}if(t("html").hasClass(d))se();else{var re=t("html, body"),ae=t("body"),le=t.fn.fullpage;a=t.extend({menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!0,scrollHorizontally:!0,interlockedSlides:!1,resetSliders:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowHandler:J,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,sectionSelector:".section",slideSelector:".slide",afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null},a);var ce,ue,he,de=!1,pe=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),fe="ontouchstart"in e||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,me=t(this),ge=K.height(),ve=!1,ye=!0,be=!0,_e=[],we={m:{up:!0,down:!0,left:!0,right:!0}};we.k=t.extend(!0,{},we.m);var xe,Ce,Se,ke,Te,De,Ee=t.extend(!0,{},a);se(),Z.click=fe,Z=t.extend(Z,a.scrollOverflowOptions),t.extend(t.easing,{easeInOutCubic:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i}}),le.setAutoScrolling=function(e,i){ne("autoScrolling",e,i);var n=t(_);a.autoScrolling&&!a.scrollBar?(re.css({overflow:"hidden",height:"100%"}),le.setRecordHistory(Ee.recordHistory,"internal"),me.css({"-ms-touch-action":"none","touch-action":"none"}),n.length&&te(n.position().top)):(re.css({overflow:"visible",height:"initial"}),le.setRecordHistory(!1,"internal"),me.css({"-ms-touch-action":"","touch-action":""}),te(0),n.length&&re.scrollTop(n.position().top))},le.setRecordHistory=function(t,e){ne("recordHistory",t,e)},le.setScrollingSpeed=function(t,e){ne("scrollingSpeed",t,e)},le.setFitToSection=function(t,e){ne("fitToSection",t,e)},le.setLockAnchors=function(t){a.lockAnchors=t},le.setMouseWheelScrolling=function(t){t?(function(){var t,n="";e.addEventListener?t="addEventListener":(t="attachEvent",n="on");var o="onwheel"in i.createElement("div")?"wheel":i.onmousewheel!==s?"mousewheel":"DOMMouseScroll";"DOMMouseScroll"==o?i[t](n+"MozMousePixelScroll",lt,!1):i[t](n+o,lt,!1)}(),me.on("mousedown",Ct).on("mouseup",St)):(i.addEventListener?(i.removeEventListener("mousewheel",lt,!1),i.removeEventListener("wheel",lt,!1),i.removeEventListener("MozMousePixelScroll",lt,!1)):i.detachEvent("onmousewheel",lt),me.off("mousedown",Ct).off("mouseup",St))},le.setAllowScrolling=function(e,i){void 0!==i?(i=i.replace(/ /g,"").split(","),t.each(i,function(t,i){ie(e,i,"m")})):e?(le.setMouseWheelScrolling(!0),function(){if(pe||fe){var e=Gt();t(r).off("touchstart "+e.down).on("touchstart "+e.down,rt).off("touchmove "+e.move).on("touchmove "+e.move,st)}}()):(le.setMouseWheelScrolling(!1),function(){if(pe||fe){var e=Gt();t(r).off("touchstart "+e.down).off("touchmove "+e.move)}}())},le.setKeyboardScrolling=function(e,i){void 0!==i?(i=i.replace(/ /g,"").split(","),t.each(i,function(t,i){ie(e,i,"k")})):a.keyboardScrolling=e},le.moveSectionUp=function(){var e=t(_).prev(b);e.length||!a.loopTop&&!a.continuousVertical||(e=t(b).last()),e.length&&ht(e,null,!0)},le.moveSectionDown=function(){var e=t(_).next(b);e.length||!a.loopBottom&&!a.continuousVertical||(e=t(b).first()),e.length&&ht(e,null,!1)},le.silentMoveTo=function(t,e){le.setScrollingSpeed(0,"internal"),le.moveTo(t,e),le.setScrollingSpeed(Ee.scrollingSpeed,"internal")},le.moveTo=function(t,e){var i=qt(t);void 0!==e?Ut(t,e):i.length>0&&ht(i)},le.moveSlideRight=function(t){ct("right",t)},le.moveSlideLeft=function(t){ct("left",t)},le.reBuild=function(e){if(!me.hasClass(h)){ve=!0,ge=K.height(),t(b).each(function(){var e=t(this).find(H),i=t(this).find(O);a.verticalCentered&&t(this).find(S).css("height",Rt(t(this))+"px"),t(this).css("height",ge+"px"),a.scrollOverflow&&(i.length?i.each(function(){Ft(t(this))}):Ft(t(this))),i.length>1&&At(e,e.find(M))});var i=t(_).index(b);i&&le.silentMoveTo(i+1),ve=!1,t.isFunction(a.afterResize)&&e&&a.afterResize.call(me),t.isFunction(a.afterReBuild)&&!e&&a.afterReBuild.call(me)}},le.setResponsive=function(e){var i=ae.hasClass(c);e?i||(le.setAutoScrolling(!1,"internal"),le.setFitToSection(!1,"internal"),t(E).hide(),ae.addClass(c)):i&&(le.setAutoScrolling(Ee.autoScrolling,"internal"),le.setFitToSection(Ee.autoScrolling,"internal"),t(E).show(),ae.removeClass(c))},le.getFullpageData=function(){return{options:a,internals:{getXmovement:zt,removeAnimation:Ht,getTransforms:ee,lazyLoad:pt,addAnimation:Nt,getTransforms:ee,performHorizontalMove:$t,silentLandscapeScroll:Jt}}},t(this).length&&(l("fp_continuousHorizontalExtension"),l("fp_scrollHorizontallyExtension"),l("fp_resetSlidersExtension"),l("fp_interlockedSlidesExtension"),function(){var n;a.css3&&(a.css3=function(){var t,n=i.createElement("p"),o={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};for(var r in i.body.insertBefore(n,null),o)n.style[r]!==s&&(n.style[r]="translate3d(1px,1px,1px)",t=e.getComputedStyle(n).getPropertyValue(o[r]));return i.body.removeChild(n),t!==s&&t.length>0&&"none"!==t}()),a.scrollBar=a.scrollBar||a.hybrid,n=me.find(a.sectionSelector),a.anchors.length||(a.anchors=n.filter("[data-anchor]").map(function(){return t(this).data("anchor").toString()}).get()),a.navigationTooltips.length||(a.navigationTooltips=n.filter("[data-tooltip]").map(function(){return t(this).data("tooltip").toString()}).get()),me.css({height:"100%",position:"relative"}),me.addClass(o),t("html").addClass(d),ge=K.height(),me.removeClass(h),me.find(a.sectionSelector).addClass(y),me.find(a.slideSelector).addClass($),t(b).each(function(e){var i,n,s,o,l=t(this),c=l.find(O),u=c.length;s=l,(o=e)||0!==t(_).length||s.addClass(f),s.css("height",ge+"px"),a.paddingTop&&s.css("padding-top",a.paddingTop),a.paddingBottom&&s.css("padding-bottom",a.paddingBottom),void 0!==a.sectionsColor[o]&&s.css("background-color",a.sectionsColor[o]),void 0!==a.anchors[o]&&s.attr("data-anchor",a.anchors[o]),i=l,n=e,void 0!==a.anchors[n]&&i.hasClass(f)&&jt(a.anchors[n],n),a.menu&&a.css3&&t(a.menu).closest(r).length&&t(a.menu).appendTo(ae),u>0?function(e,i,n){var s,o=100*n,r=100/n;i.wrapAll('<div class="'+j+'" />'),i.parent().wrap('<div class="'+N+'" />'),e.find(L).css("width",o+"%"),n>1&&(a.controlArrows&&((s=e).find(H).after('<div class="'+V+'"></div><div class="'+Q+'"></div>'),"#fff"!=a.controlArrowColor&&(s.find(X).css("border-color","transparent transparent transparent "+a.controlArrowColor),s.find(Y).css("border-color","transparent "+a.controlArrowColor+" transparent transparent")),a.loopHorizontal||s.find(Y).hide()),a.slidesNavigation&&function(t,e){t.append('<div class="'+F+'"><ul></ul></div>');var i=t.find(W);i.addClass(a.slidesNavPosition);for(var n=0;e>n;n++)i.find("ul").append('<li><a href="#"><span></span></a></li>');i.css("margin-left","-"+i.width()/2+"px"),i.find("li").first().find("a").addClass(f)}(e,n)),i.each(function(e){t(this).css("width",r+"%"),a.verticalCentered&&Wt(t(this))});var l=e.find(M);l.length&&(0!==t(_).index(b)||0===t(_).index(b)&&0!==l.index())?Jt(l):i.eq(0).addClass(f)}(l,c,u):a.verticalCentered&&Wt(l)}),a.fixedElements&&a.css3&&t(a.fixedElements).appendTo(ae),a.navigation&&function(){ae.append('<div id="'+D+'"><ul></ul></div>');var e=t(E);e.addClass(function(){return a.showActiveTooltip?P+" "+a.navigationPosition:a.navigationPosition});for(var i=0;i<t(b).length;i++){var n="";a.anchors.length&&(n=a.anchors[i]);var s='<li><a href="#'+n+'"><span></span></a>',o=a.navigationTooltips[i];void 0!==o&&""!==o&&(s+='<div class="'+I+" "+a.navigationPosition+'">'+o+"</div>"),s+="</li>",e.find("ul").append(s)}t(E).css("margin-top","-"+t(E).height()/2+"px"),t(E).find("li").eq(t(_).index(b)).find("a").addClass(f)}(),me.find('iframe[src*="youtube.com/embed/"]').each(function(){tt(t(this),"enablejsapi=1")}),me.find('iframe[src*="player.vimeo.com/"]').each(function(){tt(t(this),"api=1")}),a.scrollOverflow?("complete"===i.readyState&&B(),K.on("load",B)):et(),le.setAllowScrolling(!0),le.setAutoScrolling(a.autoScrolling,"internal");var l=t(_).find(M);l.length&&(0!==t(_).index(b)||0===t(_).index(b)&&0!==l.index())&&Jt(l),Mt(),Kt(),"complete"===i.readyState&&yt(),K.on("load",yt)}(),K.on("scroll",it).on("hashchange",bt).blur(Tt).resize(Ot),G.keydown(_t).keyup(xt).on("click touchstart",E+" a",Dt).on("click touchstart",R,Et).on("click",A,wt),t(b).on("click touchstart",q,kt),a.normalScrollElements&&(G.on("mouseenter",a.normalScrollElements,function(){le.setMouseWheelScrolling(!1)}),G.on("mouseleave",a.normalScrollElements,function(){le.setMouseWheelScrolling(!0)})));var Ie=!1,Ae=0,Pe=0,$e=0,Oe=0,Me=0,Ne=(new Date).getTime(),He=0,je=0,Le=ge;le.destroy=function(e){le.setAutoScrolling(!1,"internal"),le.setAllowScrolling(!1),le.setKeyboardScrolling(!1),me.addClass(h),clearTimeout(Se),clearTimeout(Ce),clearTimeout(xe),clearTimeout(ke),clearTimeout(Te),K.off("scroll",it).off("hashchange",bt).off("resize",Ot),G.off("click",E+" a").off("mouseenter",E+" li").off("mouseleave",E+" li").off("click",R).off("mouseover",a.normalScrollElements).off("mouseout",a.normalScrollElements),t(b).off("click",q),clearTimeout(Se),clearTimeout(Ce),e&&function(){te(0),me.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){t(this).attr("src",t(this).data("src")),t(this).removeAttr("data-src")}),t(E+", "+W+", "+q).remove(),t(b).css({height:"","background-color":"",padding:""}),t(O).css({width:""}),me.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),re.css({overflow:"",height:""}),t("html").removeClass(d),ae.removeClass(c),t.each(ae.get(0).className.split(/\s+/),function(t,e){0===e.indexOf(p)&&ae.removeClass(e)}),t(b+", "+O).each(function(){a.scrollOverflowHandler.remove(t(this)),t(this).removeClass(z+" "+f)}),Ht(me),me.find(S+", "+L+", "+H).each(function(){t(this).replaceWith(this.childNodes)}),re.scrollTop(0);var e=[y,$,j];t.each(e,function(e,i){t("."+i).removeClass(i)})}()}}},"undefined"!=typeof IScroll&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)});var J={refreshId:null,iScrollInstances:[],onLeave:function(){var e=t(_).find(l).data("iscrollInstance");void 0!==e&&e&&e.wheelOff()},afterLoad:function(){var e=t(_).find(l).data("iscrollInstance");void 0!==e&&e&&e.wheelOn()},create:function(e,i){var n=e.find(l);n.height(i),n.each(function(){var e=jQuery(this),i=e.data("iscrollInstance");i&&t.each(J.iScrollInstances,function(){t(this).destroy()}),i=new IScroll(e.get(0),Z),J.iScrollInstances.push(i),e.data("iscrollInstance",i)})},isScrolled:function(t,e){var i=e.data("iscrollInstance");return!i||("top"===t?i.y>=0&&!e.scrollTop():"bottom"===t?0-i.y+e.scrollTop()+1+e.innerHeight()>=e[0].scrollHeight:void 0)},scrollable:function(t){return t.find(H).length?t.find(M).find(l):t.find(l)},scrollHeight:function(t){return t.find(l).children().first().get(0).scrollHeight},remove:function(t){var e=t.find(l);e.length&&(e.data("iscrollInstance").destroy(),e.data("iscrollInstance",null));t.find(l).children().first().children().first().unwrap().unwrap()},update:function(e,i){clearTimeout(J.refreshId),J.refreshId=setTimeout(function(){t.each(J.iScrollInstances,function(){t(this).get(0).refresh()})},150),e.find(l).css("height",i+"px").parent().css("height",i+"px")},wrapContent:function(){return'<div class="'+a+'"><div class="fp-scroller"></div></div>'}}}),function(t,e){function i(e,i){var s,o,r,a=e.nodeName.toLowerCase();return"area"===a?(o=(s=e.parentNode).name,!(!e.href||!o||"map"!==s.nodeName.toLowerCase())&&(!!(r=t("img[usemap=#"+o+"]")[0])&&n(r))):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a&&e.href||i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var s,o,r=0,a=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:(o=t.fn.focus,function(e,i){return"number"==typeof e?this.each(function(){var n=this;setTimeout(function(){t(n).focus(),i&&i.call(n)},e)}):o.apply(this,arguments)}),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,n,s=t(this[0]);s.length&&s[0]!==document;){if(("absolute"===(i=s.css("position"))||"relative"===i||"fixed"===i)&&(n=parseInt(s.css("zIndex"),10),!isNaN(n)&&0!==n))return n;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){a.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&i(e,!s)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,i){function n(e,i,n,o){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var s="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each(function(){t(this).css(o,n(this,e)+"px")})},t.fn["outer"+i]=function(e,s){return"number"!=typeof e?r["outer"+i].call(this,e):this.each(function(){t(this).css(o,n(this,e,!0,s)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=(s=t.fn.removeData,function(e){return arguments.length?s.call(this,t.camelCase(e)):s.call(this)})),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var s,o=t.ui[e].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(t,e,i){var n,s=t.plugins[e];if(s&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n<s.length;n++)t.options[s[n][0]]&&s[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0||(e[n]=1,s=e[n]>0,e[n]=0,s)}})}(jQuery),function(t,e){var i=0,n=Array.prototype.slice,s=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(t){}s(e)},t.widget=function(e,i,n){var s,o,r,a,l={},c=e.split(".")[0];e=e.split(".")[1],s=c+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s.toLowerCase()]=function(e){return!!t.data(e,s)},t[c]=t[c]||{},o=t[c][e],r=t[c][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=(s=function(){return i.prototype[e].apply(this,arguments)},o=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t})):void(l[e]=n);var s,o}),r.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix:e},l,{constructor:r,namespace:c,widgetName:e,widgetFullName:s}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete o._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(i){for(var s,o,r=n.call(arguments,1),a=0,l=r.length;a<l;a++)for(s in r[a])o=r[a][s],r[a].hasOwnProperty(s)&&o!==e&&(t.isPlainObject(o)?i[s]=t.isPlainObject(i[s])?t.widget.extend({},i[s],o):t.widget.extend({},o):i[s]=o);return i},t.widget.bridge=function(i,s){var o=s.prototype.widgetFullName||i;t.fn[i]=function(r){var a="string"==typeof r,l=n.call(arguments,1),c=this;return r=!a&&l.length?t.widget.extend.apply(null,[r].concat(l)):r,a?this.each(function(){var n,s=t.data(this,o);return s?t.isFunction(s[r])&&"_"!==r.charAt(0)?(n=s[r].apply(s,l))!==s&&n!==e?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+r+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")}):this.each(function(){var e=t.data(this,o);e?e.option(r||{})._init():t.data(this,o,new s(r,this))}),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var s,o,r,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},i=(s=i.split(".")).shift(),s.length){for(o=a[i]=t.widget.extend({},this.options[i]),r=0;r<s.length-1;r++)o[s[r]]=o[s[r]]||{},o=o[s[r]];if(i=s.pop(),n===e)return o[i]===e?null:o[i];o[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var s,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,r){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?s.delegate(u,c,a):i.bind(c,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var s,o,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,o){"string"==typeof s&&(s={effect:s});var r,a=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})&&(s={duration:s}),r=!t.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&t.effects&&t.effects.effect[a]?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}})}(jQuery),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,s=1===e.which,o=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(s&&!o&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,0)))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_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}})}(jQuery),function(t,e){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",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||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(t(!0===i.iframeFix?"iframe":i.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),0)))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!t.contains(this.element[0].ownerDocument,this.element[0])||("invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()}):!1!==this._trigger("stop",e)&&this._clear(),1))},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_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 e,i,n,s=this.options;return s.containment?"window"===s.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===s.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):s.containment.constructor===Array?void(this.containment=s.containment):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),void((n=(i=t(s.containment))[0])&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:s.scrollTop(),left:s.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,s,o,r=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,c=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,o=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),s=n.options,o=t.extend({},i,{item:n.element});n.sortables=[],t(s.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i){var n=t(this).data("ui-draggable"),s=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,s))})},drag:function(e,i){var n=t(this).data("ui-draggable"),s=this;t.each(n.sortables,function(){var o=!1,r=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==r&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(r.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(s).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),s=t(this).data("ui-draggable").options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,s=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(document).scrollTop()<n.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),!1!==s&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,s,o,r,a,l,c,u,h,d,p=t(this).data("ui-draggable"),f=p.options,m=f.snapTolerance,g=i.offset.left,v=g+p.helperProportions.width,y=i.offset.top,b=y+p.helperProportions.height;for(h=p.snapElements.length-1;h>=0;h--)l=(a=p.snapElements[h].left)+p.snapElements[h].width,u=(c=p.snapElements[h].top)+p.snapElements[h].height,v<a-m||g>l+m||b<c-m||y>u+m||!t.contains(p.snapElements[h].item.ownerDocument,p.snapElements[h].item)?(p.snapElements[h].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[h].item})),p.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(n=Math.abs(c-b)<=m,s=Math.abs(u-y)<=m,o=Math.abs(a-v)<=m,r=Math.abs(l-g)<=m,n&&(i.position.top=p._convertPositionTo("relative",{top:c-p.helperProportions.height,left:0}).top-p.margins.top),s&&(i.position.top=p._convertPositionTo("relative",{top:u,left:0}).top-p.margins.top),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a-p.helperProportions.width}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left)),d=n||s||o||r,"outer"!==f.snapMode&&(n=Math.abs(c-y)<=m,s=Math.abs(u-b)<=m,o=Math.abs(a-g)<=m,r=Math.abs(l-v)<=m,n&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),s&&(i.position.top=p._convertPositionTo("relative",{top:u-p.helperProportions.height,left:0}).top-p.margins.top),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[h].snapping&&(n||s||o||r||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[h].item})),p.snapElements[h].snapping=n||s||o||r||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});n.length&&(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),s=t(this).data("ui-draggable").options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}})}(jQuery),function(t,e){function i(t,e,i){return t>e&&t<e+i}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e<i.length;e++)i[e]===this&&i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,s=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");if(e.options.greedy&&!e.options.disabled&&e.options.scope===n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance))return s=!0,!1}),!s&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,e,n){if(!e.offset)return!1;var s,o=(t.positionAbs||t.position.absolute).left,r=o+t.helperProportions.width,a=(t.positionAbs||t.position.absolute).top,l=a+t.helperProportions.height,c=e.offset.left,u=c+e.proportions.width,h=e.offset.top,d=h+e.proportions.height;switch(n){case"fit":return c<=o&&r<=u&&h<=a&&l<=d;case"intersect":return c<o+t.helperProportions.width/2&&r-t.helperProportions.width/2<u&&h<a+t.helperProportions.height/2&&l-t.helperProportions.height/2<d;case"pointer":return s=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,i((t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,h,e.proportions.height)&&i(s,c,e.proportions.width);case"touch":return(a>=h&&a<=d||l>=h&&l<=d||a<h&&l>d)&&(o>=c&&o<=u||r>=c&&r<=u||o<c&&r>u);default:return!1}},t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,s,o=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||e&&!o[n].accept.call(o[n].element[0],e.currentItem||e.element))){for(s=0;s<a.length;s++)if(a[s]===o[n].element[0]){o[n].proportions.height=0;continue t}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions={width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight})}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,s,o,r=t.ui.intersect(e,this,this.options.tolerance),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===s})).length&&((n=t.data(o[0],"ui-droppable")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t,e){function i(t){return parseInt(t,10)||0}function n(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,n,s,o=this,r=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i<e.length;i++)n=t.trim(e[i]),(s=t("<div class='ui-resizable-handle "+("ui-resizable-"+n)+"'></div>")).css({zIndex:r.zIndex}),"se"===n&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(s);this._renderAxis=function(e){var i,n,s,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,o),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=s&&s[1]?s[1]:"se")}),r.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){r.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,s=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var n,s,o,r=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:a.top,left:a.left}),this._renderProxy(),n=i(this.helper.css("left")),s=i(this.helper.css("top")),r.containment&&(n+=t(r.containment).scrollLeft()||0,s+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:s},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:n,top:s},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===o?this.axis+"-resize":o),l.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n=this.helper,s={},o=this.originalMousePosition,r=this.axis,a=this.position.top,l=this.position.left,c=this.size.width,u=this.size.height,h=e.pageX-o.left||0,d=e.pageY-o.top||0,p=this._change[r];return!!p&&(i=p.apply(this,[e,h,d]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==a&&(s.top=this.position.top+"px"),this.position.left!==l&&(s.left=this.position.left+"px"),this.size.width!==c&&(s.width=this.size.width+"px"),this.size.height!==u&&(s.height=this.size.height+"px"),n.css(s),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||this._trigger("resize",e,this.ui()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,s,o,r,a,l,c=this.options,u=this;return this._helper&&(s=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&t.ui.hasScroll(i[0],"left")?0:u.sizeDiff.height,o=n?0:u.sizeDiff.width,r={width:u.helper.width()-o,height:u.helper.height()-s},a=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,l=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(t.extend(r,{top:l,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,s,o,r,a=this.options;r={minWidth:n(a.minWidth)?a.minWidth:0,maxWidth:n(a.maxWidth)?a.maxWidth:1/0,minHeight:n(a.minHeight)?a.minHeight:0,maxHeight:n(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,s=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,o=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),s>r.minHeight&&(r.minHeight=s),i<r.maxWidth&&(r.maxWidth=i),o<r.maxHeight&&(r.maxHeight=o)),this._vBoundaries=r},_updateCache:function(t){this.offset=this.helper.offset(),n(t.left)&&(this.position.left=t.left),n(t.top)&&(this.position.top=t.top),n(t.height)&&(this.size.height=t.height),n(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return n(t.height)?t.width=t.height*this.aspectRatio:n(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=n(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=n(t.height)&&e.maxHeight&&e.maxHeight<t.height,r=n(t.width)&&e.minWidth&&e.minWidth>t.width,a=n(t.height)&&e.minHeight&&e.minHeight>t.height,l=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,u=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return r&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),r&&u&&(t.left=l-e.minWidth),s&&u&&(t.left=l-e.maxWidth),a&&h&&(t.top=c-e.minHeight),o&&h&&(t.top=c-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,s,o=this.helper||this.element;for(t=0;t<this._proportionallyResizeElements.length;t++){if(s=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[s.css("borderTopWidth"),s.css("borderRightWidth"),s.css("borderBottomWidth"),s.css("borderLeftWidth")],n=[s.css("paddingTop"),s.css("paddingRight"),s.css("paddingBottom"),s.css("paddingLeft")],e=0;e<i.length;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(n[e],10)||0);s.css({height:o.height()-this.borderDif[0]-this.borderDif[2]||0,width:o.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),n=i.options,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&t.ui.hasScroll(s[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,s,o,r,a,l,c=t(this).data("ui-resizable"),u=c.options,h=c.element,d=u.containment,p=d instanceof t?d.get(0):/parent/.test(d)?h.parent().get(0):d;p&&(c.containerElement=t(p),/document/.test(d)||d===document?(c.containerOffset={left:0,top:0},c.containerPosition={left:0,top:0},c.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(p),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){n[t]=i(e.css("padding"+s))}),c.containerOffset=e.offset(),c.containerPosition=e.position(),c.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},s=c.containerOffset,o=c.containerSize.height,r=c.containerSize.width,a=t.ui.hasScroll(p,"left")?p.scrollWidth:r,l=t.ui.hasScroll(p)?p.scrollHeight:o,c.parentData={element:p,left:s.left,top:s.top,width:a,height:l}))},resize:function(e){var i,n,s,o,r=t(this).data("ui-resizable"),a=r.options,l=r.containerOffset,c=r.position,u=r._aspectRatio||e.shiftKey,h={top:0,left:0},d=r.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-h.left),u&&(r.size.height=r.size.width/r.aspectRatio),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio),r.position.top=r._helper?l.top:0),r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top,i=Math.abs((r._helper,r.offset.left-h.left+r.sizeDiff.width)),n=Math.abs((r._helper?r.offset.top-h.top:r.offset.top-l.top)+r.sizeDiff.height),s=r.containerElement.get(0)===r.element.parent().get(0),o=/relative|absolute/.test(r.containerElement.css("position")),s&&o&&(i-=r.parentData.left),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,u&&(r.size.height=r.size.width/r.aspectRatio)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,u&&(r.size.width=r.size.height*r.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.containerOffset,s=e.containerPosition,o=e.containerElement,r=t(e.helper),a=r.offset(),l=r.outerWidth()-e.sizeDiff.width,c=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:c}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable").options,i=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof e.alsoResize||e.alsoResize.parentNode?i(e.alsoResize):e.alsoResize.length?(e.alsoResize=e.alsoResize[0],i(e.alsoResize)):t.each(e.alsoResize,function(t){i(t)})},resize:function(e,i){var n=t(this).data("ui-resizable"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0},l=function(e,n){t(e).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),o={},r=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})};"object"!=typeof s.alsoResize||s.alsoResize.nodeType?l(s.alsoResize):t.each(s.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size,s=e.originalSize,o=e.originalPosition,r=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,c=a[1]||1,u=Math.round((n.width-s.width)/l)*l,h=Math.round((n.height-s.height)/c)*c,d=s.width+u,p=s.height+h,f=i.maxWidth&&i.maxWidth<d,m=i.maxHeight&&i.maxHeight<p,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=a,g&&(d+=l),v&&(p+=c),f&&(d-=l),m&&(p-=c),/^(se|s|e)$/.test(r)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.top=o.top-h):/^(sw)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.left=o.left-u):(e.size.width=d,e.size.height=p,e.position.top=o.top-h,e.position.left=o.left-u)}})}(jQuery),function(t,e){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,s=t.data(this,"selectable-item");if(s)return n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected"),s.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,o=this.opos[0],r=this.opos[1],a=e.pageX,l=e.pageY;return o>a&&(i=a,a=o,o=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:o,top:r,width:a-o,height:l-r}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),c=!1;i&&i.element!==n.element[0]&&("touch"===s.tolerance?c=!(i.left>a||i.right<o||i.top>l||i.bottom<r):"fit"===s.tolerance&&(c=i.left>o&&i.right<a&&i.top>r&&i.bottom<l),c?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}})}(jQuery),function(t,e){function i(t,e,i){return t>e&&t<e+i}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||n(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(s=!0)}),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var s,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,o,r=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-t(document).scrollTop()<r.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<r.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+r.scrollSpeed)),e.pageX-t(document).scrollLeft()<r.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<r.scrollSensitivity&&(a=t(document).scrollLeft(t(document).scrollLeft()+r.scrollSpeed))),!1!==a&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||n+c>a&&n+c<l,d="y"===this.options.axis||e+u>o&&e+u<r,p=h&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),s=e&&n,o=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!s&&(this.floating?r&&"right"===r||"down"===o?2:1:o&&("down"===o?2:1))},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&n||"left"===o&&!n:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,o,r=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(s=t(l[i])).length-1;n>=0;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(function(){r.push(this)});return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,o,r,a,l,c,u=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(s=t(d[i])).length-1;n>=0;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(h.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=h.length-1;i>=0;i--)for(r=h[i][1],n=0,c=(a=h[i][0]).length;n<c;n++)(l=t(a[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,s,o;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),o=s.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(s)}):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var s,o,r,a,l,c,u,h,d,p,f=null,m=null;for(s=this.containers.length-1;s>=0;s--)if(!t.contains(this.currentItem[0],this.containers[s].element[0]))if(this._intersectsWith(this.containers[s].containerCache)){if(f&&t.contains(this.containers[s].element[0],f.element[0]))continue;f=this.containers[s],m=s}else this.containers[s].containerCache.over&&(this.containers[s]._trigger("out",e,this._uiHash(this)),this.containers[s].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",e,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(r=1e4,a=null,l=(p=f.floating||n(this.currentItem))?"left":"top",c=p?"width":"height",u=this.positionAbs[l]+this.offset.click[l],o=this.items.length-1;o>=0;o--)t.contains(this.containers[m].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(p&&!i(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height)||(h=this.items[o].item.offset()[l],d=!1,Math.abs(h-u)>Math.abs(h+this.items[o][c]-u)&&(d=!0,h+=this.items[o][c]),Math.abs(h-u)<r&&(r=Math.abs(h-u),a=this.items[o],this.direction=d?"up":"down")));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[m].element,!0),this._trigger("change",e,this._uiHash()),this.containers[m]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",e,this._uiHash(this)),this.containers[m].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===s.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===s.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,o=e.pageX,r=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(jQuery),function(t,e){var i,n="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=l(),n=i._rgba=[];return e=e.toLowerCase(),p(a,function(t,s){var o,r=s.re.exec(e),a=r&&s.parse(r),l=s.space||"rgba";if(a)return o=i[l](a),i[c[l].cache]=o[c[l].cache],n=i._rgba=o._rgba,!1}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),i):o[e]}function s(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}var o,r=/^([\-+])=\s*(\d+\.?\d*)/,a=[{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]]}}],l=t.Color=function(e,i,n,s){return new t.Color.fn.parse(e,i,n,s)},c={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"}}}},u={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=l.support={},d=t("<p>")[0],p=t.each;d.style.cssText="background-color:rgba(1,1,1,.5)",h.rgba=d.style.backgroundColor.indexOf("rgba")>-1,p(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(s,r,a,u){if(s===e)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=t(s).css(r),r=e);var h=this,d=t.type(s),f=this._rgba=[];return r!==e&&(s=[s,r,a,u],d="array"),"string"===d?this.parse(n(s)||o._default):"array"===d?(p(c.rgba.props,function(t,e){f[e.idx]=i(s[e.idx],e)}),this):"object"===d?(p(c,s instanceof l?function(t,e){s[e.cache]&&(h[e.cache]=s[e.cache].slice())}:function(e,n){var o=n.cache;p(n.props,function(t,e){if(!h[o]&&n.to){if("alpha"===t||null==s[t])return;h[o]=n.to(h._rgba)}h[o][e.idx]=i(s[t],e,!0)}),h[o]&&t.inArray(null,h[o].slice(0,3))<0&&(h[o][3]=1,n.from&&(h._rgba=n.from(h[o])))}),this):void 0},is:function(t){var e=l(t),i=!0,n=this;return p(c,function(t,s){var o,r=e[s.cache];return r&&(o=n[s.cache]||s.to&&s.to(n._rgba)||[],p(s.props,function(t,e){if(null!=r[e.idx])return i=r[e.idx]===o[e.idx]})),i}),i},_space:function(){var t=[],e=this;return p(c,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=l(t),s=n._space(),o=c[s],r=0===this.alpha()?l("transparent"):this,a=r[o.cache]||o.to(r._rgba),h=a.slice();return n=n[o.cache],p(o.props,function(t,s){var o=s.idx,r=a[o],l=n[o],c=u[s.type]||{};null!==l&&(null===r?h[o]=l:(c.mod&&(l-r>c.mod/2?r+=c.mod:r-l>c.mod/2&&(r-=c.mod)),h[o]=i((l-r)*e+r,s)))}),this[s](h)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),s=l(e)._rgba;return l(t.map(i,function(t,e){return(1-n)*s[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,s=t[1]/255,o=t[2]/255,r=t[3],a=Math.max(n,s,o),l=Math.min(n,s,o),c=a-l,u=a+l,h=.5*u;return e=l===a?0:n===a?60*(s-o)/c+360:s===a?60*(o-n)/c+120:60*(n-s)/c+240,i=0===c?0:h<=.5?c/u:c/(2-u),[Math.round(e)%360,i,h,null==r?1:r]},c.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],n=t[2],o=t[3],r=n<=.5?n*(1+i):n+i-n*i,a=2*n-r;return[Math.round(255*s(a,r,e+1/3)),Math.round(255*s(a,r,e)),Math.round(255*s(a,r,e-1/3)),o]},p(c,function(n,s){var o=s.props,a=s.cache,c=s.to,u=s.from;l.fn[n]=function(n){if(c&&!this[a]&&(this[a]=c(this._rgba)),n===e)return this[a].slice();var s,r=t.type(n),h="array"===r||"object"===r?n:arguments,d=this[a].slice();return p(o,function(t,e){var n=h["object"===r?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)}),u?((s=l(u(d)))[a]=d,s):l(d)},p(o,function(e,i){l.fn[e]||(l.fn[e]=function(s){var o,a=t.type(s),l="alpha"===e?this._hsla?"hsla":"rgba":n,c=this[l](),u=c[i.idx];return"undefined"===a?u:("function"===a&&(s=s.call(this,u),a=t.type(s)),null==s&&i.empty?this:("string"===a&&((o=r.exec(s))&&(s=u+parseFloat(o[2])*("+"===o[1]?1:-1))),c[i.idx]=s,this[l](c)))})})}),l.hook=function(e){var i=e.split(" ");p(i,function(e,i){t.cssHooks[i]={set:function(e,s){var o,r,a="";if("transparent"!==s&&("string"!==t.type(s)||(o=n(s)))){if(s=l(o||s),!h.rgba&&1!==s._rgba[3]){for(r="backgroundColor"===i?e.parentNode:e;(""===a||"transparent"===a)&&r&&r.style;)try{a=t.css(r,"backgroundColor"),r=r.parentNode}catch(t){}s=s.blend(a&&"transparent"!==a?a:"_default")}s=s.toRgbaString()}try{e.style[i]=s}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return p(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},o=t.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"}}(jQuery),function(){function e(e){var i,n,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(s&&s.length&&s[0]&&s[s[0]])for(n=s.length;n--;)"string"==typeof s[i=s[n]]&&(o[t.camelCase(i)]=s[i]);else for(i in s)"string"==typeof s[i]&&(o[i]=s[i]);return o}var i,n,s,o=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(i,n,s,a){var l=t.speed(n,s,a);return this.queue(function(){var n,s=t(this),a=s.attr("class")||"",c=l.children?s.find("*").addBack():s;c=c.map(function(){return{el:t(this),start:e(this)}}),(n=function(){t.each(o,function(t,e){i[e]&&s[e+"Class"](i[e])})})(),c=c.map(function(){return this.end=e(this.el[0]),this.diff=function(e,i){var n,s,o={};for(n in i)s=i[n],e[n]!==s&&(r[n]||!t.fx.step[n]&&isNaN(parseFloat(s))||(o[n]=s));return o}(this.start,this.end),this}),s.attr("class",a),c=c.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,c.get()).done(function(){n(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(s[0])})})},t.fn.extend({addClass:(s=t.fn.addClass,function(e,i,n,o){return i?t.effects.animateClass.call(this,{add:e},i,n,o):s.apply(this,arguments)}),removeClass:(n=t.fn.removeClass,function(e,i,s,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:e},i,s,o):n.apply(this,arguments)}),toggleClass:(i=t.fn.toggleClass,function(e,n,s,o,r){return"boolean"==typeof n||void 0===n?s?t.effects.animateClass.call(this,n?{add:e}:{remove:e},s,o,r):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:e},n,s,o)}),switchClass:function(e,i,n,s,o){return t.effects.animateClass.call(this,{add:i,remove:e},n,s,o)}})}(),function(){function e(e,i,n,s){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(s=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=n,n=i,i={}),t.isFunction(n)&&(s=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=s||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==typeof e&&!e.effect}var s,o,r;t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data(n+e[i],t[0].style[e[i]])},restore:function(t,e){var i,s;for(s=0;s<e.length;s++)null!==e[s]&&(void 0===(i=t.data(n+e[s]))&&(i=""),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;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":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(n),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,s){return s=s||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(s[i]=o[0]*n+o[1])}),s}}),t.fn.extend({effect:function(){function i(e){function i(){t.isFunction(o)&&o.call(s[0]),t.isFunction(e)&&e()}var s=t(this),o=n.complete,a=n.mode;(s.is(":hidden")?"hide"===a:"show"===a)?(s[a](),i()):r.call(s[0],n,i)}var n=e.apply(this,arguments),s=n.mode,o=n.queue,r=t.effects.effect[n.effect];return t.fx.off||!r?s?this[s](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):!1===o?this.each(i):this.queue(o||"fx",i)},show:(r=t.fn.show,function(t){if(i(t))return r.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}),hide:(o=t.fn.hide,function(t){if(i(t))return o.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}),toggle:(s=t.fn.toggle,function(t){if(i(t)||"boolean"==typeof t)return s.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),i={},t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){i[e]=function(e){return Math.pow(e,t+2)}}),t.extend(i,{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)}}),t.each(i,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(-2*t+2)/2}})}(jQuery),function(t,e){var i=0,n={},s={};n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="hide",s.height=s.paddingTop=s.paddingBottom=s.borderTopWidth=s.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},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},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("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()),void("disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[n-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var e,n=this.options,s=n.heightStyle,o=this.element.parent(),r=this.accordionId="ui-accordion-"+(this.element.attr("id")||++i);this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),n=i.attr("id"),s=i.next(),o=s.attr("id");n||(n=r+"-header-"+e,i.attr("id",n)),o||(o=r+"-panel-"+e,s.attr("id",o)),i.attr("aria-controls",o),s.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===s?(e=o.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===s&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.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(e){var i=this.options,n=this.active,s=t(e.currentTarget),o=s[0]===n[0],r=o&&i.collapsible,a=r?t():s.next(),l={oldHeader:n,oldPanel:n.next(),newHeader:r?t():s,newPanel:a};e.preventDefault(),o&&!i.collapsible||!1===this._trigger("beforeActivate",e,l)||(i.active=!r&&this.headers.index(s),this.active=o?t():s,this._toggle(l),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),o||(s.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),s.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,i){var o,r,a,l=this,c=0,u=t.length&&(!e.length||t.index()<e.index()),h=this.options.animate||{},d=u&&h.down||h,p=function(){l._toggleComplete(i)};return"number"==typeof d&&(a=d),"string"==typeof d&&(r=d),r=r||d.easing||h.easing,a=a||d.duration||h.duration,e.length?t.length?(o=t.show().outerHeight(),e.animate(n,{duration:a,easing:r,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(s,{duration:a,easing:r,complete:p,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?c+=i.now:"content"!==l.options.heightStyle&&(i.now=Math.round(o-e.outerHeight()-c),c=0)}})):e.animate(n,a,r,p):t.animate(s,a,r,p)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}})}(jQuery),function(t,e){var i=0;t.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,n,s=this.element[0].nodeName.toLowerCase(),o="textarea"===s,r="input"===s;this.isMultiLine=!!o||!r&&this.element.prop("isContentEditable"),this.valueMethod=this.element[o||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(s.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",s);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case o.UP:e=!0,this._keyEvent("previous",s);break;case o.DOWN:e=!0,this._keyEvent("next",s);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case o.TAB:this.menu.active&&this.menu.select(s);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:n})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){s(t)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,e=++i;return function(n){e===i&&t.__response(n),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<a>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(jQuery),function(t,e){var i,n,s,o,r="ui-button ui-widget ui-state-default ui-corner-all",a="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",l=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},c=function(e){var i=e.name,n=e.form,s=t([]);return i&&(i=i.replace(/'/g,"\\'"),s=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),s};t.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,l),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,a=this.options,u="checkbox"===this.type||"radio"===this.type,h=u?"":"ui-state-active",d="ui-state-focus";null===a.label&&(a.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(r).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){a.disabled||this===i&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){a.disabled||t(this).removeClass(h)}).bind("click"+this.eventNamespace,function(t){a.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){e.buttonElement.addClass(d)}).bind("blur"+this.eventNamespace,function(){e.buttonElement.removeClass(d)}),u&&(this.element.bind("change"+this.eventNamespace,function(){o||e.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){a.disabled||(o=!1,n=t.pageX,s=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){a.disabled||n===t.pageX&&s===t.pageY||(o=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(a.disabled||o)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(a.disabled||o)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var i=e.element[0];c(i).not(i).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!a.disabled&&(t(this).addClass("ui-state-active"),i=this,void e.document.one("mouseup",function(){i=null}))}).bind("mouseup"+this.eventNamespace,function(){return!a.disabled&&void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return!a.disabled&&void(e.keyCode!==t.ui.keyCode.SPACE&&e.keyCode!==t.ui.keyCode.ENTER||t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",a.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),(i=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(r+" ui-state-hover ui-state-active  "+a).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?void(e?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?c(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var e=this.buttonElement.removeClass(a),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,s=n.primary&&n.secondary,o=[];n.primary||n.secondary?(this.options.text&&o.push("ui-button-text-icon"+(s?"s":n.primary?"-primary":"-secondary")),n.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(o.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):o.push("ui-button-text-only"),e.addClass(o.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),t.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(t,e){function i(){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","Friday","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},t.extend(this._defaults,this.regional[""]),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(o.inline?e.parent()[0]:o.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))})}function s(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:"1.10.3"}});var o,r="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return s(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,o;s="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,o):s&&this._inlineDatepicker(e,o)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,r,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,o,r=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[a?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.focus(this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:s,title:s}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:s,title:s}):s)),e[a?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,o=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},o.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,r,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,o,a){var l,c,u,h,d,p=this._dialogInst;return p||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],r,p)),s(p.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(c=document.documentElement.clientWidth,u=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[c/2-100+h,u/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],r,p),this},_destroyDatepicker:function(e){var i,n=t(e),s=t.data(e,r);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,r),"input"===i?(s.append.remove(),s.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,s=t(e),o=t.data(e,r);s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,s=t(e),o=t.data(e,r);s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.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(e){try{return t.data(e,r)}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,n,o){var r,a,l,c,u=this._getInst(i);return 2===arguments.length&&"string"==typeof n?"defaults"===n?t.extend({},t.datepicker._defaults):u?"all"===n?t.extend({},u.settings):this._get(u,n):null:(r=n||{},"string"==typeof n&&((r={})[n]=o),void(u&&(this._curInst===u&&this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(u,"min"),c=this._getMinMaxDate(u,"max"),s(u.settings,r),null!==l&&r.dateFormat!==e&&r.minDate===e&&(u.settings.minDate=this._formatDate(u,l)),null!==c&&r.dateFormat!==e&&r.maxDate===e&&(u.settings.maxDate=this._formatDate(u,c)),"disabled"in r&&(r.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),u),this._autoSize(u),this._setDate(u,a),this._updateAlternate(u),this._updateDatepicker(u))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,s,o=t.datepicker._getInst(e.target),r=!0,a=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,s[0]),(i=t.datepicker._get(o,"onSelect"))?(n=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,s=t.datepicker._getInst(e.target);if(t.datepicker._get(s,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,n,o,r,a,l,c;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(o=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(s(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return!(r|="fixed"===t(this).css("position"))}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,r),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),c=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,o=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,n=this._getNumberOfMonths(e),s=n[1];e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&e.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-r:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+o>c&&c>o?Math.abs(o+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),s=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,s,o,a=this._curInst;!a||e&&a!==t.data(e,r)||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),s=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,s):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(o=this._get(a,"onClose"))&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var s=t(e),o=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(o,i+("M"===n?this._get(o,"showCurrentAtPos"):0),n),this._updateDatepicker(o))},_gotoToday:function(e){var i,n=t(e),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var s=t(e),o=this._getInst(s[0]);o["selected"+("M"===n?"Month":"Year")]=o["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(s)},_selectDay:function(e,i,n,s){var o,r=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((o=this._getInst(r[0])).selectedDay=o.currentDay=t("a",s).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,s=t(e),o=this._getInst(s[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),(n=this._get(o,"onSelect"))?n.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,s,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),s=this.formatDate(i,n,this._getFormatConfig(e)),t(o).each(function(){t(this).val(s)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,o,r,a,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,b=!1,_=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},w=function(t){var e=_(t),n=new RegExp("^\\d{1,"+("@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2)+"}"),s=i.substring(l).match(n);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,n,s){var o=-1,r=t.map(_(e)?s:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return o=e[0],l+=n.length,!1}),-1!==o)return o+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==e.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<e.length;s++)if(b)"'"!==e.charAt(s)||_("'")?C():b=!1;else switch(e.charAt(s)){case"d":v=w("d");break;case"D":x("D",h,d);break;case"o":y=w("o");break;case"m":g=w("m");break;case"M":g=x("M",p,f);break;case"y":m=w("y");break;case"@":m=(a=new Date(w("@"))).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"!":m=(a=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"'":_("'")?C():b=!0;break;default:C()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=u?0:-100)),y>-1)for(g=1,v=y;!(v<=(o=this._getDaysInMonth(m,g-1)));)g++,v-=o;if((a=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||a.getMonth()+1!==g||a.getDate()!==v)throw"Invalid date";return a},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(t,e,i){if(!e)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},u=function(t,e,i,n){return l(t)?n[e]:i[e]},h="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||l("'")?h+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":h+=c("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),s,o);break;case"o":h+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),r,a);break;case"y":h+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":d=!0;break;default:h+=t.charAt(n)}return h},_possibleChars:function(t){var e,i="",n=!1,s=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),o=s,r=this._getFormatConfig(t);try{o=this.parseDate(i,n,r)||s}catch(t){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var s,o,r=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=n.getFullYear(),o=n.getMonth(),r=n.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,o))}l=a.exec(i)}return new Date(s,o,r)}(i):"number"==typeof i?isNaN(i)?n:(s=i,(o=new Date).setDate(o.getDate()+s),o):new Date(i.getTime());return(r=r&&"Invalid Date"===r.toString()?n:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,o=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),s===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":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(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,s,o,r,a,l,c,u,h,d,p,f,m,g,v,y,b,_,w,x,C,S,k,T,D,E,I,A,P,$,O,M,N,H,j,L,z,F=new Date,W=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),R=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),U=this._get(t,"navigationAsDateFormat"),V=this._getNumberOfMonths(t),Y=this._get(t,"showCurrentAtPos"),Q=this._get(t,"stepMonths"),X=1!==V[0]||1!==V[1],K=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),J=t.drawMonth-Y,tt=t.drawYear;if(J<0&&(J+=12,tt--),Z)for(e=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-V[0]*V[1]+1,Z.getDate())),e=G&&e<G?G:e;this._daylightSavingAdjust(new Date(tt,J,1))>e;)--J<0&&(J=11,tt--);for(t.drawMonth=J,t.drawYear=tt,i=this._get(t,"prevText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,J-Q,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+i+"</span></a>",s=this._get(t,"nextText"),s=U?this.formatDate(s,this._daylightSavingAdjust(new Date(tt,J+Q,1)),this._getFormatConfig(t)):s,o=this._canAdjustMonth(t,1,tt,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+s+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+s+"</span></a>",r=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&&t.currentDay?K:W,r=U?this.formatDate(r,a,this._getFormatConfig(t)):r,l=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>",c=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(R?l:"")+(this._isInRange(t,a)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(R?"":l)+"</div>":"",u=parseInt(this._get(t,"firstDay"),10),u=isNaN(u)?0:u,h=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),_="",x=0;x<V[0];x++){for(C="",this.maxRows=4,S=0;S<V[1];S++){if(k=this._daylightSavingAdjust(new Date(tt,J,t.selectedDay)),T=" ui-corner-all",D="",X){if(D+="<div class='ui-datepicker-group",V[1]>1)switch(S){case 0:D+=" ui-datepicker-group-first",T=" ui-corner-"+(R?"right":"left");break;case V[1]-1:D+=" ui-datepicker-group-last",T=" ui-corner-"+(R?"left":"right");break;default:D+=" ui-datepicker-group-middle",T=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===x?R?o:n:"")+(/all|right/.test(T)&&0===x?R?n:o:"")+this._generateMonthYearHeader(t,J,tt,G,Z,x>0||S>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",E=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;w<7;w++)E+="<th"+((w+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[I=(w+u)%7]+"'>"+p[I]+"</span></th>";for(D+=E+"</tr></thead><tbody>",A=this._getDaysInMonth(tt,J),tt===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,A)),P=(this._getFirstDayOfMonth(tt,J)-u+7)%7,$=Math.ceil((P+A)/7),O=X&&this.maxRows>$?this.maxRows:$,this.maxRows=O,M=this._daylightSavingAdjust(new Date(tt,J,1-P)),N=0;N<O;N++){for(D+="<tr>",H=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(M)+"</td>":"",w=0;w<7;w++)j=g?g.apply(t.input?t.input[0]:null,[M]):[!0,""],z=(L=M.getMonth()!==J)&&!y||!j[0]||G&&M<G||Z&&M>Z,H+="<td class='"+((w+u+6)%7>=5?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(M.getTime()===k.getTime()&&J===t.selectedMonth&&t._keyEvent||b.getTime()===M.getTime()&&b.getTime()===k.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!v?"":" "+j[1]+(M.getTime()===K.getTime()?" "+this._currentClass:"")+(M.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(L&&!v||!j[2]?"":" title='"+j[2].replace(/'/g,"&#39;")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+M.getMonth()+"' data-year='"+M.getFullYear()+"'")+">"+(L&&!v?"&#xa0;":z?"<span class='ui-state-default'>"+M.getDate()+"</span>":"<a class='ui-state-default"+(M.getTime()===W.getTime()?" ui-state-highlight":"")+(M.getTime()===K.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#'>"+M.getDate()+"</a>")+"</td>",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);D+=H+"</tr>"}++J>11&&(J=0,tt++),C+=D+="</tbody></table>"+(X?"</div>"+(V[0]>0&&S===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=C}return _+=c,t._keyEvent=!1,_},_generateMonthYearHeader:function(t,e,i,n,s,o,r,a){var l,c,u,h,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",_="";if(o||!g)_+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(_+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+a[u]+"</option>");_+="</select>"}if(y||(b+=_+(!o&&g&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e})(h[0]),m=Math.max(f,p(h[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=s?Math.min(m,s.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=m;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),y&&(b+=(!o&&g&&v?"":"&#xa0;")+_),b+"</div>"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),s=t.drawMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,o)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&e<i?i:e;return n&&s>n?n:s},_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){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_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,n){var s=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,n,s=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),r=null,a=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!s||e.getTime()>=s.getTime())&&(!o||e.getTime()<=o.getTime())&&(!r||e.getFullYear()>=r)&&(!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")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.3"}(jQuery),function(t,e){var i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},n={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement;this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),s=i.filter(":last");e.target!==s[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(s.focus(1),e.preventDefault()):(n.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,function(i,n){var s,o;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),s=n.click,n.click=function(){s.apply(e.element[0],arguments)},o={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("<button></button>",n).button(o).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(s))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(s,o){n.position=[o.position.left-i.document.scrollLeft(),o.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,s=n.resizable,o=this.uiDialog.css("position"),r="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:r,start:function(n,s){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(s))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(s,o){n.height=t(this).height(),n.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,e(o))}}).css("position",o)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var s=this,o=!1,r={};t.each(e,function(t,e){s._setOption(t,e),t in i&&(o=!0),t in n&&(r[t]=e)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(t,e){var i,n,s=this.uiDialog;"dialogClass"===t&&s.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((n=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),n&&"string"==typeof e&&s.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(n){e._allowInteraction(n)||(n.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,n=[],s=[0,0];i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(1===(n=i.split?i.split(" "):[i[0],i[1]]).length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(s[t]=n[t],n[t]=e)}),i={my:n[0]+(s[0]<0?s[0]:"+"+s[0])+" "+n[1]+(s[1]<0?s[1]:"+"+s[1]),at:n.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,(e=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(jQuery),function(t,e){var i=/up|down|vertical/,n=/up|left|vertical|horizontal/;t.effects.effect.blind=function(e,s){var o,r,a,l=t(this),c=["position","top","bottom","left","right","height","width"],u=t.effects.setMode(l,e.mode||"hide"),h=e.direction||"up",d=i.test(h),p=d?"height":"width",f=d?"top":"left",m=n.test(h),g={},v="show"===u;l.parent().is(".ui-effects-wrapper")?t.effects.save(l.parent(),c):t.effects.save(l,c),l.show(),r=(o=t.effects.createWrapper(l).css({overflow:"hidden"}))[p](),a=parseFloat(o.css(f))||0,g[p]=v?r:0,m||(l.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),g[f]=v?a:r+a),v&&(o.css(p,0),m||o.css(f,a+r)),o.animate(g,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===u&&l.hide(),t.effects.restore(l,c),t.effects.removeWrapper(l),s()}})}}(jQuery),function(t,e){t.effects.effect.bounce=function(e,i){var n,s,o,r=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(r,e.mode||"effect"),c="hide"===l,u="show"===l,h=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(u||c?1:0),m=e.duration/f,g=e.easing,v="up"===h||"down"===h?"top":"left",y="up"===h||"left"===h,b=r.queue(),_=b.length;for((u||c)&&a.push("opacity"),t.effects.save(r,a),r.show(),t.effects.createWrapper(r),d||(d=r["top"===v?"outerHeight":"outerWidth"]()/3),u&&((o={opacity:1})[v]=0,r.css("opacity",0).css(v,y?2*-d:2*d).animate(o,m,g)),c&&(d/=Math.pow(2,p-1)),(o={})[v]=0,n=0;n<p;n++)(s={})[v]=(y?"-=":"+=")+d,r.animate(s,m,g).animate(o,m,g),d=c?2*d:d/2;c&&((s={opacity:0})[v]=(y?"-=":"+=")+d,r.animate(s,m,g)),r.queue(function(){c&&r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),i()}),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),r.dequeue()}}(jQuery),function(t,e){t.effects.effect.clip=function(e,i){var n,s,o,r=t(this),a=["position","top","bottom","left","right","height","width"],l="show"===t.effects.setMode(r,e.mode||"hide"),c="vertical"===(e.direction||"vertical"),u=c?"height":"width",h=c?"top":"left",d={};t.effects.save(r,a),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),o=(s="IMG"===r[0].tagName?n:r)[u](),l&&(s.css(u,0),s.css(h,o/2)),d[u]=l?o:0,d[h]=l?0:o/2,s.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),i()}})}}(jQuery),function(t,e){t.effects.effect.drop=function(e,i){var n,s=t(this),o=["position","top","bottom","left","right","opacity","height","width"],r=t.effects.setMode(s,e.mode||"hide"),a="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l?"pos":"neg",h={opacity:a?1:0};t.effects.save(s,o),s.show(),t.effects.createWrapper(s),n=e.distance||s["top"===c?"outerHeight":"outerWidth"](!0)/2,a&&s.css("opacity",0).css(c,"pos"===u?-n:n),h[c]=(a?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+n,s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&s.hide(),t.effects.restore(s,o),t.effects.removeWrapper(s),i()}})}}(jQuery),function(t,e){t.effects.effect.explode=function(e,i){function n(){v.push(this),v.length===u*h&&(d.css({visibility:"visible"}),t(v).remove(),p||d.hide(),i())}var s,o,r,a,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,h=u,d=t(this),p="show"===t.effects.setMode(d,e.mode||"hide"),f=d.show().css("visibility","hidden").offset(),m=Math.ceil(d.outerWidth()/h),g=Math.ceil(d.outerHeight()/u),v=[];for(s=0;s<u;s++)for(a=f.top+s*g,c=s-(u-1)/2,o=0;o<h;o++)r=f.left+o*m,l=o-(h-1)/2,d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*m,top:-s*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m,height:g,left:r+(p?l*m:0),top:a+(p?c*g:0),opacity:p?0:1}).animate({left:r+(p?0:l*m),top:a+(p?0:c*g),opacity:p?1:0},e.duration||500,e.easing,n)}}(jQuery),function(t,e){t.effects.effect.fade=function(e,i){var n=t(this),s=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:s},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(jQuery),function(t,e){t.effects.effect.fold=function(e,i){var n,s,o=t(this),r=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(o,e.mode||"hide"),l="show"===a,c="hide"===a,u=e.size||15,h=/([0-9]+)%/.exec(u),d=!!e.horizFirst,p=l!==d,f=p?["width","height"]:["height","width"],m=e.duration/2,g={},v={};t.effects.save(o,r),o.show(),n=t.effects.createWrapper(o).css({overflow:"hidden"}),s=p?[n.width(),n.height()]:[n.height(),n.width()],h&&(u=parseInt(h[1],10)/100*s[c?0:1]),l&&n.css(d?{height:0,width:u}:{height:u,width:0}),g[f[0]]=l?s[0]:u,v[f[1]]=l?s[1]:0,n.animate(g,m,e.easing).animate(v,m,e.easing,function(){c&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()})}}(jQuery),function(t,e){t.effects.effect.highlight=function(e,i){var n=t(this),s=["backgroundImage","backgroundColor","opacity"],o=t.effects.setMode(n,e.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"===o&&(r.opacity=0),t.effects.save(n,s),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&n.hide(),t.effects.restore(n,s),i()}})}}(jQuery),function(t,e){t.effects.effect.pulsate=function(e,i){var n,s=t(this),o=t.effects.setMode(s,e.mode||"show"),r="show"===o,a="hide"===o,l=r||"hide"===o,c=2*(e.times||5)+(l?1:0),u=e.duration/c,h=0,d=s.queue(),p=d.length;for(!r&&s.is(":visible")||(s.css("opacity",0).show(),h=1),n=1;n<c;n++)s.animate({opacity:h},u,e.easing),h=1-h;s.animate({opacity:h},u,e.easing),s.queue(function(){a&&s.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,c+1))),s.dequeue()}}(jQuery),function(t,e){t.effects.effect.puff=function(e,i){var n=t(this),s=t.effects.setMode(n,e.mode||"hide"),o="hide"===s,r=parseInt(e.percent,10)||150,a=r/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:s,complete:i,percent:o?r:100,from:o?l:{height:l.height*a,width:l.width*a,outerHeight:l.outerHeight*a,outerWidth:l.outerWidth*a}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),s=t.extend(!0,{},e),o=t.effects.setMode(n,e.mode||"effect"),r=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===o?0:100),a=e.direction||"both",l=e.origin,c={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},u="horizontal"!==a?r/100:1,h="vertical"!==a?r/100:1;s.effect="size",s.queue=!1,s.complete=i,"effect"!==o&&(s.origin=l||["middle","center"],s.restore=!0),s.from=e.from||("show"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:c),s.to={height:c.height*u,width:c.width*h,outerHeight:c.outerHeight*u,outerWidth:c.outerWidth*h},s.fade&&("show"===o&&(s.from.opacity=0,s.to.opacity=1),"hide"===o&&(s.from.opacity=1,s.to.opacity=0)),n.effect(s)},t.effects.effect.size=function(e,i){var n,s,o,r=t(this),a=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=t.effects.setMode(r,e.mode||"effect"),p=e.restore||"effect"!==d,f=e.scale||"both",m=e.origin||["middle","center"],g=r.css("position"),v=p?a:["position","top","bottom","left","right","overflow","opacity"],y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===d&&r.show(),n={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===e.mode&&"show"===d?(r.from=e.to||y,r.to=e.from||n):(r.from=e.from||("show"===d?y:n),r.to=e.to||("hide"===d?y:n)),o={from:{y:r.from.height/n.height,x:r.from.width/n.width},to:{y:r.to.height/n.height,x:r.to.width/n.width}},"box"!==f&&"both"!==f||(o.from.y!==o.to.y&&(v=v.concat(u),r.from=t.effects.setTransition(r,u,o.from.y,r.from),r.to=t.effects.setTransition(r,u,o.to.y,r.to)),o.from.x!==o.to.x&&(v=v.concat(h),r.from=t.effects.setTransition(r,h,o.from.x,r.from),r.to=t.effects.setTransition(r,h,o.to.x,r.to))),"content"!==f&&"both"!==f||o.from.y!==o.to.y&&(v=v.concat(c).concat(l),r.from=t.effects.setTransition(r,c,o.from.y,r.from),r.to=t.effects.setTransition(r,c,o.to.y,r.to)),t.effects.save(r,v),r.show(),t.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),m&&(s=t.effects.getBaseline(m,n),r.from.top=(n.outerHeight-r.outerHeight())*s.y,r.from.left=(n.outerWidth-r.outerWidth())*s.x,r.to.top=(n.outerHeight-r.to.outerHeight)*s.y,r.to.left=(n.outerWidth-r.to.outerWidth)*s.x),r.css(r.from),"content"!==f&&"both"!==f||(u=u.concat(["marginTop","marginBottom"]).concat(c),h=h.concat(["marginLeft","marginRight"]),l=a.concat(u).concat(h),r.find("*[width]").each(function(){var i=t(this),n=i.height(),s=i.width(),r=i.outerHeight(),a=i.outerWidth();p&&t.effects.save(i,l),i.from={height:n*o.from.y,width:s*o.from.x,outerHeight:r*o.from.y,outerWidth:a*o.from.x},i.to={height:n*o.to.y,width:s*o.to.x,outerHeight:n*o.to.y,outerWidth:s*o.to.x},o.from.y!==o.to.y&&(i.from=t.effects.setTransition(i,u,o.from.y,i.from),i.to=t.effects.setTransition(i,u,o.to.y,i.to)),o.from.x!==o.to.x&&(i.from=t.effects.setTransition(i,h,o.from.x,i.from),i.to=t.effects.setTransition(i,h,o.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){p&&t.effects.restore(i,l)})})),r.animate(r.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===d&&r.hide(),t.effects.restore(r,v),p||("static"===g?r.css({position:"relative",top:r.to.top,left:r.to.left}):t.each(["top","left"],function(t,e){r.css(e,function(e,i){var n=parseInt(i,10),s=t?r.to.left:r.to.top;return"auto"===i?s+"px":n+s+"px"})})),t.effects.removeWrapper(r),i()}})}}(jQuery),function(t,e){t.effects.effect.shake=function(e,i){var n,s=t(this),o=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(s,e.mode||"effect"),a=e.direction||"left",l=e.distance||20,c=e.times||3,u=2*c+1,h=Math.round(e.duration/u),d="up"===a||"down"===a?"top":"left",p="up"===a||"left"===a,f={},m={},g={},v=s.queue(),y=v.length;for(t.effects.save(s,o),s.show(),t.effects.createWrapper(s),f[d]=(p?"-=":"+=")+l,m[d]=(p?"+=":"-=")+2*l,g[d]=(p?"-=":"+=")+2*l,s.animate(f,h,e.easing),n=1;n<c;n++)s.animate(m,h,e.easing).animate(g,h,e.easing);s.animate(m,h,e.easing).animate(f,h/2,e.easing).queue(function(){"hide"===r&&s.hide(),t.effects.restore(s,o),t.effects.removeWrapper(s),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),s.dequeue()}}(jQuery),function(t,e){t.effects.effect.slide=function(e,i){var n,s=t(this),o=["position","top","bottom","left","right","width","height"],r=t.effects.setMode(s,e.mode||"show"),a="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,h={};t.effects.save(s,o),s.show(),n=e.distance||s["top"===c?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(s).css({overflow:"hidden"}),a&&s.css(c,u?isNaN(n)?"-"+n:-n:n),h[c]=(a?u?"+=":"-=":u?"-=":"+=")+n,s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&s.hide(),t.effects.restore(s,o),t.effects.removeWrapper(s),i()}})}}(jQuery),function(t,e){t.effects.effect.transfer=function(e,i){var n=t(this),s=t(e.to),o="fixed"===s.css("position"),r=t("body"),a=o?r.scrollTop():0,l=o?r.scrollLeft():0,c=s.offset(),u={top:c.top-a,left:c.left-l,height:s.innerHeight(),width:s.innerWidth()},h=n.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:h.top-a,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(u,e.duration,e.easing,function(){d.remove(),i()})}}(jQuery),function(t,e){t.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,s,o,r,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,s=this.previousFilter||"",o=String.fromCharCode(e.keyCode),r=!1,clearTimeout(this.filterTimer),o===s?r=!0:o=s+o,a=new RegExp("^"+i(o),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),(n=r&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(o=String.fromCharCode(e.keyCode),a=new RegExp("^"+i(o),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),s=t("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",n.attr("id"))}),(e=n.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,s,o,r,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=e.height(),s<0?this.activeMenu.scrollTop(o+s):s+a>r&&this.activeMenu.scrollTop(o+s-r+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n-s<0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n+s>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}t.ui=t.ui||{};var s,o=Math.max,r=Math.abs,a=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,d=/%$/,p=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,i,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),e=o.offsetWidth,n.css("overflow","scroll"),e===(i=o.offsetWidth)&&(i=n[0].clientWidth),n.remove(),s=e-i},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return p.apply(this,arguments);e=t.extend({},e);var s,d,f,m,g,v,y,b,_=t(e.of),w=t.position.getWithinInfo(e.within),x=t.position.getScrollInfo(w),C=(e.collision||"flip").split(" "),S={};return v=9===(b=(y=_)[0]).nodeType?{width:y.width(),height:y.height(),offset:{top:0,left:0}}:t.isWindow(b)?{width:y.width(),height:y.height(),offset:{top:y.scrollTop(),left:y.scrollLeft()}}:b.preventDefault?{width:0,height:0,offset:{top:b.pageY,left:b.pageX}}:{width:y.outerWidth(),height:y.outerHeight(),offset:y.offset()},_[0].preventDefault&&(e.at="left top"),d=v.width,f=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=l.test(n[0])?n.concat(["center"]):c.test(n[0])?["center"].concat(n):["center","center"]),n[0]=l.test(n[0])?n[0]:"center",n[1]=c.test(n[1])?n[1]:"center",t=u.exec(n[0]),i=u.exec(n[1]),S[this]=[t?t[0]:0,i?i[0]:0],e[this]=[h.exec(n[0])[0],h.exec(n[1])[0]]}),1===C.length&&(C[1]=C[0]),"right"===e.at[0]?g.left+=d:"center"===e.at[0]&&(g.left+=d/2),"bottom"===e.at[1]?g.top+=f:"center"===e.at[1]&&(g.top+=f/2),s=i(S.at,d,f),g.left+=s[0],g.top+=s[1],this.each(function(){var l,c,u=t(this),h=u.outerWidth(),p=u.outerHeight(),v=n(this,"marginLeft"),y=n(this,"marginTop"),b=h+v+n(this,"marginRight")+x.width,k=p+y+n(this,"marginBottom")+x.height,T=t.extend({},g),D=i(S.my,u.outerWidth(),u.outerHeight());"right"===e.my[0]?T.left-=h:"center"===e.my[0]&&(T.left-=h/2),"bottom"===e.my[1]?T.top-=p:"center"===e.my[1]&&(T.top-=p/2),T.left+=D[0],T.top+=D[1],t.support.offsetFractions||(T.left=a(T.left),T.top=a(T.top)),l={marginLeft:v,marginTop:y},t.each(["left","top"],function(i,n){t.ui.position[C[i]]&&t.ui.position[C[i]][n](T,{targetWidth:d,targetHeight:f,elemWidth:h,elemHeight:p,collisionPosition:l,collisionWidth:b,collisionHeight:k,offset:[s[0]+D[0],s[1]+D[1]],my:e.my,at:e.at,within:w,elem:u})}),e.using&&(c=function(t){var i=m.left-T.left,n=i+d-h,s=m.top-T.top,a=s+f-p,l={target:{element:_,left:m.left,top:m.top,width:d,height:f},element:{element:u,left:T.left,top:T.top,width:h,height:p},horizontal:n<0?"left":i>0?"right":"center",vertical:a<0?"top":s>0?"bottom":"middle"};d<h&&r(i+n)<d&&(l.horizontal="center"),f<p&&r(s+a)<f&&(l.vertical="middle"),o(r(i),r(n))>o(r(s),r(a))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),u.offset(t.extend(T,{using:c}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=t.left-e.collisionPosition.marginLeft,l=s-a,c=a+e.collisionWidth-r-s;e.collisionWidth>r?l>0&&c<=0?(i=t.left+l+e.collisionWidth-r-s,t.left+=l-i):t.left=c>0&&l<=0?s:l>c?s+r-e.collisionWidth:s:l>0?t.left+=l:c>0?t.left-=c:t.left=o(t.left-a,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,r=e.within.height,a=t.top-e.collisionPosition.marginTop,l=s-a,c=a+e.collisionHeight-r-s;e.collisionHeight>r?l>0&&c<=0?(i=t.top+l+e.collisionHeight-r-s,t.top+=l-i):t.top=c>0&&l<=0?s:l>c?s+r-e.collisionHeight:s:l>0?t.top+=l:c>0?t.top-=c:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,s=e.within,o=s.offset.left+s.scrollLeft,a=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,h=c+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];u<0?((i=t.left+d+p+f+e.collisionWidth-a-o)<0||i<r(u))&&(t.left+=d+p+f):h>0&&(((n=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||r(n)<h)&&(t.left+=d+p+f))},top:function(t,e){var i,n,s=e.within,o=s.offset.top+s.scrollTop,a=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,h=c+e.collisionHeight-a-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];u<0?(n=t.top+d+p+f+e.collisionHeight-a-o,t.top+d+p+f>u&&(n<0||n<r(u))&&(t.top+=d+p+f)):h>0&&(i=t.top-e.collisionPosition.marginTop+d+p+f-l,t.top+d+p+f>h&&(i>0||r(i)<h)&&(t.top+=d+p+f))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,s,o,r=document.getElementsByTagName("body")[0],a=document.createElement("div");for(o in e=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[o]=n[o];e.appendChild(a),(i=r||document.documentElement).insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",s=t(a).offset().left,t.support.offsetFractions=s>10&&s<11,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t,e){t.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})}(jQuery),function(t,e){t.widget("ui.slider",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,s=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),e=s.length;e<i;e++)o.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=s.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,s,o,r,a,l,c=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-c.values(e));(s>i||s===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(s=i,o=t(this),r=e)}),!1!==this._start(e,r)&&(this._mouseSliding=!0,this._handleIndex=r,o.addClass("ui-state-active").focus(),a=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-a.left-o.width()/2,top:e.pageY-a.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("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,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,s,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/e)>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),o=this._valueMin()+n*s,this._trimAlignValue(o)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,s,o;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>n||1===e&&i<n)&&(i=n),i!==this.values(e)&&((s=this.values())[e]=i,o=this._trigger("slide",t,{handle:this.handles[e],value:i,values:s}),n=this.values(e?0:1),!1!==o&&this.values(e,i,!0))):i!==this.value()&&(!1!==(o=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,s,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,s=arguments[0],o=0;o<n.length;o+=1)n[o]=this._trimAlignValue(s[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var n,s=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(s=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;n<s;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,s,o,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](u,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),s=this._valueMin(),o=this._valueMax(),i=o!==s?(n-s)/(o-s)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(e){var i,n,s,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),!1===this._start(e,o)))return}switch(s=this.options.step,i=n=this.options.values&&this.options.values.length?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/5);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/5);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-s)}this._slide(e,o,n)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})}(jQuery),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var s=i.attr(n);void 0!==s&&s.length&&(e[n]=s)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_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(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return i=t-(e=null!==n.min?n.min:0),t=e+(i=Math.round(i/n.step)*n.step),t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,e){var i;""!==t&&(null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(jQuery),function(t,e){function i(t){return t.hash.length>1&&decodeURIComponent(t.href.replace(s,""))===decodeURIComponent(location.href.replace(s,""))}var n=0,s=/#.*$/;t.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,s){if(t(s).attr("aria-controls")===n)return e=i,!1}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&-1!==e||(e=!!this.tabs.length&&0)),!1!==e&&(-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!i&&0)),!i&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){for(var n=this.tabs.length-1;-1!==t.inArray((e>n&&(e=0),e<0&&(e=n),e),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+ ++n},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(n,s){var o,r,a,l=t(s).uniqueId().attr("id"),c=t(s).closest("li"),u=c.attr("aria-controls");i(s)?(o=s.hash,r=e.element.find(e._sanitizeSelector(o))):(o="#"+(a=e._tabId(c)),(r=e.element.find(o)).length||(r=e._createPanel(a)).insertAfter(e.panels[n-1]||e.tablist),r.attr("aria-live","polite")),r.length&&(e.panels=e.panels.add(r)),u&&c.data("ui-tabs-aria-controls",u),c.attr({"aria-controls":o.substring(1),"aria-labelledby":l}),r.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)!0===e||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget).closest("li"),o=s[0]===n[0],r=o&&i.collapsible,a=r?t():this._getPanelForTab(s),l=n.length?this._getPanelForTab(n):t(),c={oldTab:n,oldPanel:l,newTab:r?t():s,newPanel:a};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||!1===this._trigger("beforeActivate",e,c)||(i.active=!r&&this.tabs.index(s),this.active=o?t():s,this.xhr&&this.xhr.abort(),l.length||a.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),e),this._toggle(e,c))},_toggle:function(e,i){function n(){o.running=!1,o._trigger("activate",e,i)}function s(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&o.options.show?o._show(r,o.options.show,n):(r.show(),n())}var o=this,r=i.newPanel,a=i.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),s()),a.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),r.length&&a.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setupDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setupDisabled(i)}},load:function(e,n){e=this._getIndex(e);var s=this,o=this.tabs.eq(e),r=o.find(".ui-tabs-anchor"),a=this._getPanelForTab(o),l={tab:o,panel:a};i(r[0])||(this.xhr=t.ajax(this._ajaxSettings(r,n,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(o.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){a.html(t),s._trigger("load",n,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&s.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===s.xhr&&delete s.xhr},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href"),beforeSend:function(e,o){return s._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(jQuery),function(t){var e=0;t.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,i){var n=this;return"disabled"===e?(this[i?"_disable":"_enable"](),void(this.options[e]=i)):(this._super(e,i),void("content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n[0],e.close(s,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,s=this,o=e?e.type:null;return"string"==typeof n?this._open(e,t,n):void((i=n.call(t[0],function(i){t.data("ui-tooltip-open")&&s._delay(function(){e&&(e.type=o),this._open(e,t,i)})}))&&this._open(e,t,i))},_open:function(e,i,n){function s(t){h.of=t,o.is(":hidden")||o.position(h)}var o,r,a,l,c,u,h=t.extend({},this.options.position);if(n){if((o=this._find(i)).length)return void o.find(".ui-tooltip-content").html(n);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),l=i,c=o.attr("id"),(u=(l.attr("aria-describedby")||"").split(/\s+/)).push(c),l.data("ui-tooltip-id",c).attr("aria-describedby",t.trim(u.join(" "))),o.find(".ui-tooltip-content").html(n),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:s}),s(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(a=this.delayedShow=setInterval(function(){o.is(":visible")&&(s(h.of),clearInterval(a))},t.fx.interval)),this._trigger("open",e,{tooltip:o}),r={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}},remove:function(){this._removeTooltip(o)}},e&&"mouseover"!==e.type||(r.mouseleave="close"),e&&"focusin"!==e.type||(r.focusout="close"),this._on(!0,i,r)}},close:function(e){var i,n,s,o,r=this,a=t(e?e.currentTarget:this.element),l=this._find(a);this.closing||(clearInterval(this.delayedShow),a.data("ui-tooltip-title")&&a.attr("title",a.data("ui-tooltip-title")),n=(i=a).data("ui-tooltip-id"),s=(i.attr("aria-describedby")||"").split(/\s+/),-1!==(o=t.inArray(n,s))&&s.splice(o,1),i.removeData("ui-tooltip-id"),(s=t.trim(s.join(" ")))?i.attr("aria-describedby",s):i.removeAttr("aria-describedby"),l.stop(!0),this._hide(l,this.options.hide,function(){r._removeTooltip(t(this))}),a.removeData("ui-tooltip-open"),this._off(a,"mouseleave focusout keyup"),a[0]!==this.element[0]&&this._off(a,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete r.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:l}),this.closing=!1)},_tooltip:function(i){var n="ui-tooltip-"+e++,s=t("<div>").attr({id:n,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("<div>").addClass("ui-tooltip-content").appendTo(s),s.appendTo(this.document[0].body),this.tooltips[n]=i,s},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n[0],e.close(s,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,n){var s,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(e+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.hidden="hidden",o.paused=!1,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(i),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,s=t(i).data("slick")||{},o.options=t.extend({},o.defaults,s,n),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.instanceUid=e++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0),o.checkResponsive(!0)}}()).prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var s=this;if("boolean"==typeof i)n=i,i=null;else if(0>i||i>=s.slideCount)return!1;s.unload(),"number"==typeof i?0===i&&0===s.$slides.length?t(e).appendTo(s.$slideTrack):n?t(e).insertBefore(s.$slides.eq(i)):t(e).insertAfter(s.$slides.eq(i)):!0===n?t(e).prependTo(s.$slideTrack):t(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){if(1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical){var t=this.$slides.eq(this.currentSlide).outerHeight(!0);this.$list.animate({height:t},this.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,i):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,i):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),t({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),!1===s.options.vertical?(n[s.animType]="translate("+t+"px, 0px)",s.$slideTrack.css(n)):(n[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(s.applyTransition(),e=Math.ceil(e),n[s.animType]=!1===s.options.vertical?"translate3d("+e+"px, 0px, 0px)":"translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(n),i&&setTimeout(function(){s.disableTransition(),i.call()},s.options.speed))},e.prototype.asNavFor=function(e){var i=this.options.asNavFor;i&&null!==i&&(i=t(i).not(this.$slider)),null!==i&&"object"==typeof i&&i.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};i[e.transitionType]=!1===e.options.fade?e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:"opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer),this.slideCount>this.options.slidesToShow&&!0!==this.paused&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this;!1===t.options.infinite?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(0==t.currentSlide-1&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(i='<ul class="'+n.options.dotsClass+'">',e=0;e<=n.getDotCount();e+=1)i+="<li>"+n.options.customPaging.call(this,n,e)+"</li>";i+="</ul>",n.$dots=t(i).appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(!0===e.options.centerMode||!0===e.options.swipeToSlide)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,s,o,r,a=this;if(n=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,s=Math.ceil(o.length/r),t=0;s>t;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var u=t*r+(e*a.options.slidesPerRow+i);o.get(u)&&c.appendChild(o.get(u))}l.appendChild(c)}n.appendChild(l)}a.$slider.html(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,s,o,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?o=c:"slider"===r.respondTo?o=l:"min"===r.respondTo&&(o=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(n in s=null,r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?o<r.breakpoints[n]&&(s=r.breakpoints[n]):o>r.breakpoints[n]&&(s=r.breakpoints[n]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||i)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=s),e||!1===a||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var n,s,o=this,r=t(e.target);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),n=0!=o.slideCount%o.options.slidesToScroll?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":s=0===n?o.options.slidesToScroll:o.options.slidesToShow-n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-s,!1,i);break;case"next":s=0===n?o.options.slidesToScroll:n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+s,!1,i);break;case"index":var a=0===e.data.index?0:e.data.index||r.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(a),!1,i),r.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide),!0===e.options.pauseOnDotsHover&&!0===e.options.autoplay&&t("li",e.$dots).off("mouseenter.slick",t.proxy(e.setPaused,e,!0)).off("mouseleave.slick",t.proxy(e.setPaused,e,!1))),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.$list.off("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.setPaused,e,!1)),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpRows=function(){var t;this.options.rows>1&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.html(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",!1===this.options.fade?this.$slideTrack.css(e):this.$slides.eq(t).css(e)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){!1===this.cssTransitions?this.$slides.eq(t).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(t),this.$slides.eq(t).css({opacity:0,zIndex:this.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){null!==t&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(t).appendTo(this.$slideTrack),this.reinit())},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)for(;e<t.slideCount;)++n,e=i+t.options.slidesToShow,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToShow,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n-1},e.prototype.getLeft=function(t){var e,i,n,s=this,o=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=-1*s.slideWidth*s.options.slidesToShow,o=-1*i*s.options.slidesToShow),0!=s.slideCount%s.options.slidesToScroll&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(t>s.slideCount?(s.slideOffset=-1*(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth,o=-1*(s.options.slidesToShow-(t-s.slideCount))*i):(s.slideOffset=-1*s.slideCount%s.options.slidesToScroll*s.slideWidth,o=-1*s.slideCount%s.options.slidesToScroll*i))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,o=(t+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,o=0),!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),e=!1===s.options.vertical?-1*t*s.slideWidth+s.slideOffset:-1*t*i+o,!0===s.options.variableWidth&&(e=(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow))[0]?-1*n[0].offsetLeft:0,!0===s.options.centerMode&&(e=(n=!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1))[0]?-1*n[0].offsetLeft:0,e+=(s.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,s=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);t>i;)s.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(s,o){return o.offsetLeft-i+t(o).outerWidth()/2>-1*n.swipeLeft?(e=o,!1):void 0}),Math.abs(t(e).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA()},e.prototype.initArrowEvents=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.on("click.slick",{message:"previous"},this.changeSlide),this.$nextArrow.on("click.slick",{message:"next"},this.changeSlide))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&!0===e.options.autoplay&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.setPaused,e,!0)).on("mouseleave.slick",t.proxy(e.setPaused,e,!1))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.$list.on("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.setPaused,e,!1)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),!0===t.options.autoplay&&t.autoPlay()},e.prototype.keyHandler=function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:"previous"}}):39===t.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")})})},n.src=i})}var i,n,s=this;!0===s.options.centerMode?!0===s.options.infinite?n=(i=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(i=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),n=s.options.slidesToShow/2+1+2+s.currentSlide):(n=(i=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide)+s.options.slidesToShow,!0===s.options.fade&&(i>0&&i--,n<=s.slideCount&&n++)),e(s.$slider.find(".slick-slide").slice(i,n)),s.slideCount<=s.options.slidesToShow?e(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?e(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&e(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},e.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){this.paused=!1,this.autoPlay()},e.prototype.postSlide=function(t){var e=this;e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,!0===e.options.autoplay&&!1===e.paused&&e.autoPlay(),!0===e.options.accessibility&&e.initADA()},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(){var e,i=this;t("img[data-lazy]",i.$slider).length>0&&(e=t("img[data-lazy]",i.$slider).first()).attr("src",e.attr("data-lazy")).removeClass("slick-loading").load(function(){e.removeAttr("data-lazy"),i.progressiveLazyLoad(),!0===i.options.adaptiveHeight&&i.setPosition()}).error(function(){e.removeAttr("data-lazy"),i.progressiveLazyLoad()})},e.prototype.refresh=function(e){var i=this.currentSlide;this.destroy(!0),t.extend(this,this.initials,{currentSlide:i}),this.init(),e||this.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,s=this,o=s.options.responsive||null;if("array"===t.type(o)&&o.length){for(e in s.respondTo=s.options.respondTo||"window",o)if(n=s.breakpoints.length-1,i=o[e].breakpoint,o.hasOwnProperty(e)){for(;n>=0;)s.breakpoints[n]&&s.breakpoints[n]===i&&s.breakpoints.splice(n,1),n--;s.breakpoints.push(i),s.breakpointSettings[i]=o[e].settings}s.breakpoints.sort(function(t,e){return s.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(0),e.setPosition(),e.$slider.trigger("reInit",[e]),!0===e.options.autoplay&&e.focusHandler()},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?t=!0===(e=t)?0:n.slideCount-1:t=!0===e?--t:t,!(n.slideCount<1||0>t||t>n.slideCount-1)&&(n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,s={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",s[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(s):(s={},!1===n.cssTransitions?(s[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(s)):(s[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,s){e=-1*i.slideWidth*n,!0===i.options.rtl?t(s).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(s).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){if(1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical){var t=this.$slides.eq(this.currentSlide).outerHeight(!0);this.$list.css("height",t)}},e.prototype.setOption=e.prototype.slickSetOption=function(e,i,n){var s,o;if("responsive"===e&&"array"===t.type(i))for(o in i)if("array"!==t.type(this.options.responsive))this.options.responsive=[i[o]];else{for(s=this.options.responsive.length-1;s>=0;)this.options.responsive[s].breakpoint===i[o].breakpoint&&this.options.responsive.splice(s,1),s--;this.options.responsive.push(i[o])}else this.options[e]=i;!0===n&&(this.unload(),this.reinit())},e.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,n,s,o=this;i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode?(e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+t,i.slice(n-e+1,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(s=o.slideCount%o.options.slidesToShow,n=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-s),n+s).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(i=null,s.slideCount>s.options.slidesToShow)){for(n=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-n;e-=1)i=e-1,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;n>e;e+=1)i=e,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.setPaused=function(t){!0===this.options.autoplay&&!0===this.options.pauseOnHover&&(this.paused=t,t?this.autoPlayClear():this.autoPlay())},e.prototype.selectHandler=function(e){var i=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),n=parseInt(i.attr("data-slick-index"));return n||(n=0),this.slideCount<=this.options.slidesToShow?(this.setSlideClasses(n),void this.asNavFor(n)):void this.slideHandler(n)},e.prototype.slideHandler=function(t,e,i){var n,s,o,r,a=null,l=this;return e=e||!1,!0===l.animating&&!0===l.options.waitForAnimate||!0===l.options.fade&&l.currentSlide===t||l.slideCount<=l.options.slidesToShow?void 0:(!1===e&&l.asNavFor(t),n=t,a=l.getLeft(n),r=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?r:l.swipeLeft,!1===l.options.infinite&&!1===l.options.centerMode&&(0>t||t>l.getDotCount()*l.options.slidesToScroll)?void(!1===l.options.fade&&(n=l.currentSlide,!0!==i?l.animateSlide(r,function(){l.postSlide(n)}):l.postSlide(n))):!1===l.options.infinite&&!0===l.options.centerMode&&(0>t||t>l.slideCount-l.options.slidesToScroll)?void(!1===l.options.fade&&(n=l.currentSlide,!0!==i?l.animateSlide(r,function(){l.postSlide(n)}):l.postSlide(n))):(!0===l.options.autoplay&&clearInterval(l.autoPlayTimer),s=0>n?0!=l.slideCount%l.options.slidesToScroll?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+n:n>=l.slideCount?0!=l.slideCount%l.options.slidesToScroll?0:n-l.slideCount:n,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,s]),o=l.currentSlide,l.currentSlide=s,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),!0===l.options.fade?(!0!==i?(l.fadeSlideOut(o),l.fadeSlide(s,function(){l.postSlide(s)})):l.postSlide(s),void l.animateHeight()):void(!0!==i?l.animateSlide(a,function(){l.postSlide(s)}):l.postSlide(s))))},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n;return t=this.touchObject.startX-this.touchObject.curX,e=this.touchObject.startY-this.touchObject.curY,i=Math.atan2(e,t),0>(n=Math.round(180*i/Math.PI))&&(n=360-Math.abs(n)),45>=n&&n>=0?!1===this.options.rtl?"left":"right":360>=n&&n>=315?!1===this.options.rtl?"left":"right":n>=135&&225>=n?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?n>=35&&135>=n?"left":"right":"vertical"},e.prototype.swipeEnd=function(){var t,e=this;if(e.dragging=!1,e.shouldClick=!(e.touchObject.swipeLength>10),void 0===e.touchObject.curX)return!1;if(!0===e.touchObject.edgeHit&&e.$slider.trigger("edge",[e,e.swipeDirection()]),e.touchObject.swipeLength>=e.touchObject.minSwipe)switch(e.swipeDirection()){case"left":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide+e.getSlideCount()):e.currentSlide+e.getSlideCount(),e.slideHandler(t),e.currentDirection=0,e.touchObject={},e.$slider.trigger("swipe",[e,"left"]);break;case"right":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide-e.getSlideCount()):e.currentSlide-e.getSlideCount(),e.slideHandler(t),e.currentDirection=1,e.touchObject={},e.$slider.trigger("swipe",[e,"right"])}else e.touchObject.startX!==e.touchObject.curX&&(e.slideHandler(e.currentSlide),e.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,s,o,r=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!r.dragging||o&&1!==o.length)&&(e=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,r.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),!0===r.options.verticalSwiping&&(r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2)))),"vertical"!==(i=r.swipeDirection())?(void 0!==t.originalEvent&&r.touchObject.swipeLength>4&&t.preventDefault(),s=(!1===r.options.rtl?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),!0===r.options.verticalSwiping&&(s=r.touchObject.curY>r.touchObject.startY?1:-1),n=r.touchObject.swipeLength,r.touchObject.edgeHit=!1,!1===r.options.infinite&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(n=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),r.swipeLeft=!1===r.options.vertical?e+n*s:e+n*(r.$list.height()/r.listWidth)*s,!0===r.options.verticalSwiping&&(r.swipeLeft=e+n*s),!0!==r.options.fade&&!1!==r.options.touchMove&&(!0===r.animating?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e;return 1!==this.touchObject.fingerCount||this.slideCount<=this.options.slidesToShow?(this.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),this.touchObject.startX=this.touchObject.curX=void 0!==e?e.pageX:t.clientX,this.touchObject.startY=this.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(this.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){document[this.hidden]?(this.paused=!0,this.autoPlayClear()):!0===this.options.autoplay&&(this.paused=!1,this.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.activateADA=function(){var t=this.$slider.find("*").is(":focus");this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"}),t&&this.$slideTrack.find(".slick-active").focus()},e.prototype.focusHandler=function(){var e=this;e.$slider.on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var n=t(this);setTimeout(function(){e.isPlay&&(n.is(":focus")?(e.autoPlayClear(),e.paused=!0):(e.paused=!1,e.autoPlay()))},0)})},t.fn.slick=function(){for(var t,i=arguments[0],n=Array.prototype.slice.call(arguments,1),s=this.length,o=0;s>o;o++)if("object"==typeof i||void 0===i?this[o].slick=new e(this[o],i):t=this[o].slick[i].apply(this[o].slick,n),void 0!==t)return t;return this}}),jQuery(document).ready(function(t){var e=t(".home_blog_post_area");t.prototype.slick&&e.find(".home_blog_post_inner.carousel").slick({infinite:!0,dots:!1,autoplay:!1,infinite:!1,slide:".blog_post",slidesToShow:3,slidesToScroll:1,arrows:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:993,settings:{slidesToShow:3}},{breakpoint:769,settings:{slidesToShow:2}},{breakpoint:641,settings:{slidesToShow:2}},{breakpoint:481,settings:{slidesToShow:1}}]});e=t(".post_thumbnail");t.prototype.slick&&e.find(".post_format_items.carousel").slick({infinite:!0,dots:!1,autoplay:!1,slide:".item",slidesToShow:1,slidesToScroll:1,arrows:!0,nextArrow:'<i class="slick-next arrow_carrot-right"></i>',prevArrow:'<i class="slick-prev arrow_carrot-left"></i>'})}),function(t){"use strict";function e(e){return e.is('[type="checkbox"]')?e.prop("checked"):e.is('[type="radio"]')?!!t('[name="'+e.attr("name")+'"]:checked').length:t.trim(e.val())}function i(e){return this.each(function(){var i=t(this),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),o=i.data("bs.validator");(o||"destroy"!=e)&&(o||i.data("bs.validator",o=new n(this,s)),"string"==typeof e&&o[e]())})}var n=function(i,s){for(var o in this.options=s,this.$element=t(i),this.$inputs=this.$element.find(n.INPUT_SELECTOR),this.$btn=t('button[type="submit"], input[type="submit"]').filter('[form="'+this.$element.attr("id")+'"]').add(this.$element.find('input[type="submit"], button[type="submit"]')),s.errors=t.extend({},n.DEFAULTS.errors,s.errors),s.custom)if(!s.errors[o])throw new Error("Missing default error message for custom validator: "+o);t.extend(n.VALIDATORS,s.custom),this.$element.attr("novalidate",!0),this.toggleSubmit(),this.$element.on("input.bs.validator change.bs.validator focusout.bs.validator",n.INPUT_SELECTOR,t.proxy(this.onInput,this)),this.$element.on("submit.bs.validator",t.proxy(this.onSubmit,this)),this.$element.find("[data-match]").each(function(){var i=t(this),n=i.data("match");t(n).on("input.bs.validator",function(){e(i)&&i.trigger("input.bs.validator")})})};n.INPUT_SELECTOR=':input:not([type="submit"], button):enabled:visible',n.FOCUS_OFFSET=20,n.DEFAULTS={delay:500,html:!1,disable:!0,focus:!0,custom:{},errors:{match:"Does not match",minlength:"Not long enough"},feedback:{success:"glyphicon-ok",error:"glyphicon-remove"}},n.VALIDATORS={native:function(t){var e=t[0];return!e.checkValidity||e.checkValidity()},match:function(e){var i=e.data("match");return!e.val()||e.val()===t(i).val()},minlength:function(t){var e=t.data("minlength");return!t.val()||t.val().length>=e}},n.prototype.onInput=function(e){var i=this,n=t(e.target),s="focusout"!==e.type;this.validateInput(n,s).done(function(){i.toggleSubmit()})},n.prototype.validateInput=function(i,n){var s=e(i),o=i.data("bs.validator.previous"),r=i.data("bs.validator.errors");if(o===s)return t.Deferred().resolve();i.data("bs.validator.previous",s),i.is('[type="radio"]')&&(i=this.$element.find('input[name="'+i.attr("name")+'"]'));var a=t.Event("validate.bs.validator",{relatedTarget:i[0]});if(this.$element.trigger(a),!a.isDefaultPrevented()){var l=this;return this.runValidators(i).done(function(e){i.data("bs.validator.errors",e),e.length?n?l.defer(i,l.showErrors):l.showErrors(i):l.clearErrors(i),r&&e.toString()===r.toString()||(a=e.length?t.Event("invalid.bs.validator",{relatedTarget:i[0],detail:e}):t.Event("valid.bs.validator",{relatedTarget:i[0],detail:r}),l.$element.trigger(a)),l.toggleSubmit(),l.$element.trigger(t.Event("validated.bs.validator",{relatedTarget:i[0]}))})}},n.prototype.runValidators=function(i){function s(t){return i.data(t+"-error")||i.data("error")||"native"==t&&i[0].validationMessage||a.errors[t]}var o=[],r=t.Deferred(),a=this.options;return i.data("bs.validator.deferred")&&i.data("bs.validator.deferred").reject(),i.data("bs.validator.deferred",r),t.each(n.VALIDATORS,t.proxy(function(t,n){if((e(i)||i.attr("required"))&&(i.data(t)||"native"==t)&&!n.call(this,i)){var r=s(t);!~o.indexOf(r)&&o.push(r)}},this)),!o.length&&e(i)&&i.data("remote")?this.defer(i,function(){var n={};n[i.attr("name")]=e(i),t.get(i.data("remote"),n).fail(function(t,e,i){o.push(s("remote")||i)}).always(function(){r.resolve(o)})}):r.resolve(o),r.promise()},n.prototype.validate=function(){var e=this;return t.when(this.$inputs.map(function(){return e.validateInput(t(this),!1)})).then(function(){e.toggleSubmit(),e.$btn.hasClass("disabled")&&e.focusError()}),this},n.prototype.focusError=function(){if(this.options.focus){var e=t(".has-error:first :input");t(document.body).animate({scrollTop:e.offset().top-n.FOCUS_OFFSET},250),e.focus()}},n.prototype.showErrors=function(e){var i=this.options.html?"html":"text",n=e.data("bs.validator.errors"),s=e.closest(".form-group"),o=s.find(".help-block.with-errors"),r=s.find(".form-control-feedback");n.length&&(n=t("<ul/>").addClass("list-unstyled").append(t.map(n,function(e){return t("<li/>")[i](e)})),void 0===o.data("bs.validator.originalContent")&&o.data("bs.validator.originalContent",o.html()),o.empty().append(n),s.addClass("has-error has-danger"),s.hasClass("has-feedback")&&r.removeClass(this.options.feedback.success)&&r.addClass(this.options.feedback.error)&&s.removeClass("has-success"))},n.prototype.clearErrors=function(t){var i=t.closest(".form-group"),n=i.find(".help-block.with-errors"),s=i.find(".form-control-feedback");n.html(n.data("bs.validator.originalContent")),i.removeClass("has-error has-danger"),i.hasClass("has-feedback")&&s.removeClass(this.options.feedback.error)&&e(t)&&s.addClass(this.options.feedback.success)&&i.addClass("has-success")},n.prototype.hasErrors=function(){return!!this.$inputs.filter(function(){return!!(t(this).data("bs.validator.errors")||[]).length}).length},n.prototype.isIncomplete=function(){return!!this.$inputs.filter("[required]").filter(function(){return!e(t(this))}).length},n.prototype.onSubmit=function(t){this.validate(),this.$btn.hasClass("disabled")&&t.preventDefault()},n.prototype.toggleSubmit=function(){this.options.disable&&this.$btn.toggleClass("disabled",this.isIncomplete()||this.hasErrors())},n.prototype.defer=function(e,i){return i=t.proxy(i,this,e),this.options.delay?(window.clearTimeout(e.data("bs.validator.timeout")),void e.data("bs.validator.timeout",window.setTimeout(i,this.options.delay))):i()},n.prototype.destroy=function(){return this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator").find(".form-control-feedback").removeClass([this.options.feedback.error,this.options.feedback.success].join(" ")),this.$inputs.off(".bs.validator").removeData(["bs.validator.errors","bs.validator.deferred","bs.validator.previous"]).each(function(){var e=t(this),i=e.data("bs.validator.timeout");window.clearTimeout(i)&&e.removeData("bs.validator.timeout")}),this.$element.find(".help-block.with-errors").each(function(){var e=t(this),i=e.data("bs.validator.originalContent");e.removeData("bs.validator.originalContent").html(i)}),this.$element.find('input[type="submit"], button[type="submit"]').removeClass("disabled"),this.$element.find(".has-error, .has-danger").removeClass("has-error has-danger"),this};var s=t.fn.validator;t.fn.validator=i,t.fn.validator.Constructor=n,t.fn.validator.noConflict=function(){return t.fn.validator=s,this},t(window).on("load",function(){t('form[data-toggle="validator"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),function(t,e,i,n){function s(e,i){this.settings=null,this.options=t.extend({},s.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(e,i){this._handlers[i]=t.proxy(this[i],this)},this)),t.each(s.Plugins,t.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(s.Workers,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}s.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},s.Width={Default:"default",Inner:"inner",Outer:"outer"},s.Type={Event:"event",State:"state"},s.Plugins={},s.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?e:"","margin-right":n?"":e};!i&&this.$stage.children().css(s),t.css=s}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[n]=s?e*i:this._items[n].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,n=this.settings,s=Math.max(2*n.items,4),o=2*Math.ceil(i.length/2),r=n.loop&&i.length?n.rewind?s:Math.max(s,o):0,a="",l="";for(r/=2;r--;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),l=i[e[e.length-1]][0].outerHTML+l;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,s=0,o=[];++i<e;)n=o[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,o.push(n+s*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*s,l=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*s,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],s.prototype.initialize=function(){var e,i,s;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,s=this.$element.children(i).width(),e.length&&s<=0&&this.preloadAutoWidthImages(e));this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},s.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,n=-1,s=null;i?(t.each(i,function(t){t<=e&&t>n&&(n=Number(t))}),"function"==typeof(s=t.extend({},this.options,i[n])).stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):s=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=n,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},s.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},s.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},s.prototype.update=function(){for(var e=0,i=this._pipe.length,n=t.proxy(function(t){return this[t]},this._invalidated),s={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,n).length>0)&&this._pipe[e].run(s),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},s.prototype.width=function(t){switch(t=t||s.Width.Default){case s.Width.Inner:case s.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},s.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},s.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},s.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},s.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},s.prototype.onDragStart=function(e){var n=null;3!==e.which&&(t.support.transform?n={x:(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===n.length?12:4],y:n[16===n.length?13:5]}:(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},s.prototype.onDragMove=function(t){var e=null,i=null,n=null,s=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,s);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*s.x/5:0,o.x=Math.max(Math.min(o.x,e+n),i+n)),this._drag.stage.current=o,this.animate(o.x))},s.prototype.onDragEnd=function(e){var n=this.difference(this._drag.pointer,this.pointer(e)),s=this._drag.stage.current,o=n.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(s.x,0!==n.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},s.prototype.closest=function(e,i){var n=-1,s=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,r){return"left"===i&&e>r-30&&e<r+30?n=t:"right"===i&&e>r-s-30&&e<r-s+30?n=t+1:this.op(e,"<",r)&&this.op(e,">",o[t+1]||r-s)&&(n="left"===i?t+1:t),-1===n},this)),this.settings.loop||(this.op(e,">",o[this.minimum()])?n=e=this.minimum():this.op(e,"<",o[this.maximum()])&&(n=e=this.maximum())),n},s.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},s.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},s.prototype.current=function(t){if(t===n)return this._current;if(0===this._items.length)return n;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==n&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},s.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},s.prototype.reset=function(t){(t=this.normalize(t))!==n&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},s.prototype.normalize=function(t,e){var i=this._items.length,s=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=n:(t<0||t>=i+s)&&(t=((t-s/2)%i+i)%i+s/2),t},s.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},s.prototype.maximum=function(t){var e,i,n,s=this.settings,o=this._coordinates.length;if(s.loop)o=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){for(e=this._items.length,i=this._items[--e].width(),n=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>n););o=e+1}else o=s.center?this._items.length-1:this._items.length-s.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},s.prototype.minimum=function(t){return t?0:this._clones.length/2},s.prototype.items=function(t){return t===n?this._items.slice():(t=this.normalize(t,!0),this._items[t])},s.prototype.mergers=function(t){return t===n?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},s.prototype.clones=function(e){var i=this._clones.length/2,s=i+this._items.length,o=function(t){return t%2==0?s+t/2:i-(t+1)/2};return e===n?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},s.prototype.speed=function(t){return t!==n&&(this._speed=t),this._speed},s.prototype.coordinates=function(e){var i,s=1,o=e-1;return e===n?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(s=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*s):i=this._coordinates[o]||0,i=Math.ceil(i))},s.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},s.prototype.to=function(t,e){var i=this.current(),n=null,s=t-this.relative(i),o=(s>0)-(s<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>r/2&&(s+=-1*o*r),(n=(((t=i+s)-a)%r+r)%r+a)!==t&&n-s<=l&&n-s>0&&(i=n-s,t=n,this.reset(i))):t=this.settings.rewind?(t%(l+=1)+l)%l:Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.$element.is(":visible")&&this.update()},s.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},s.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},s.prototype.onTransitionEnd=function(t){if(t!==n&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},s.prototype.viewport=function(){var n;if(this.options.responsiveBaseElement!==e)n=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)n=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";n=i.documentElement.clientWidth}return n},s.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},s.prototype.add=function(e,i){var s=this.relative(this._current);i=i===n?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[s]&&this.reset(this._items[s].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},s.prototype.remove=function(t){(t=this.normalize(t,!0))!==n&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},s.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},s.prototype.destroy=function(){for(var n in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},s.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:t<i;case">":return n?t<i:t>i;case">=":return n?t<=i:t>=i;case"<=":return n?t>=i:t<=i}},s.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},s.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},s.prototype.trigger=function(e,i,n,o,r){var a={item:{count:this._items.length,index:this.current()}},l=t.camelCase(t.grep(["on",e,n],function(t){return t}).join("-").toLowerCase()),c=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(c)}),this.register({type:s.Type.Event,name:e}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},s.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===n&&(this._states.current[e]=0),this._states.current[e]++},this))},s.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},s.prototype.register=function(e){if(e.type===s.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===s.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,n){return t.inArray(i,this._states.tags[e.name])===n},this)))},s.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},s.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},s.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},s.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},s.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=t(this),o=n.data("owl.carousel");o||(o=new s(this,"object"==typeof e&&e),n.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){o.register({type:s.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},o))})),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)})},t.fn.owlCarousel.Constructor=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={autoRefresh:!0,autoRefreshInterval:500},s.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},s.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},s.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,s=i.center&&-1*n||0,o=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+s,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);s++<n;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={lazyLoad:!1},s.prototype.load=function(i){var n=this._core.$stage.children().eq(i),s=n&&n.find(".owl-lazy");!s||t.inArray(n.get(0),this._loaded)>-1||(s.each(t.proxy(function(i,n){var s,o=t(n),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):((s=new Image).onload=t.proxy(function(){o.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),s.src=r)},this)),this._loaded.push(n.get(0)))},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this._core=e,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},s.prototype.update=function(){var e,i=this._core._current,n=i+this._core.settings.items,s=this._core.$stage.children().toArray().slice(i,n),o=[];t.each(s,function(e,i){o.push(t(i).height())}),e=Math.max.apply(null,o),this._core.$stage.parent().height(e).addClass(this._core.settings.autoHeightClass)},s.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),s=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:s,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,i){var n,s,o=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",r=e.find("img"),a="src",l="",c=this._core.settings,u=function(t){'<div class="owl-video-play-icon"></div>',n=c.lazyLoad?'<div class="owl-video-tn '+l+'" '+a+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(n),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap('<div class="owl-video-wrapper"'+o+"></div>"),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length)return u(r.attr(a)),r.remove(),!1;"youtube"===i.type?(s="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",u(s)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,u(s)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,u(s)}})},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},s.prototype.play=function(e){var i,n=t(e.target).closest("."+this._core.settings.itemClass),s=this._videos[n.attr("data-video")],o=s.width||"100%",r=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),"youtube"===s.type?i='<iframe width="'+o+'" height="'+r+'" src="//www.youtube.com/embed/'+s.id+"?autoplay=1&v="+s.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===s.type?i='<iframe src="//player.vimeo.com/video/'+s.id+'?autoplay=1" width="'+o+'" height="'+r+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===s.type&&(i='<iframe frameborder="0"height="'+r+'"width="'+o+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+s.id+'/player?autoplay=true"></iframe>'),t('<div class="owl-video-frame">'+i+"</div>").insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},s.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},s.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this.core=e,this.core.options=t.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&s.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},s.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this._core=e,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},s.Defaults,this._core.options)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype.play=function(t,e){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},s.prototype._getNextTimeout=function(n,s){return this._timeout&&e.clearTimeout(this._timeout),e.setTimeout(t.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},this),n||this._core.settings.autoplayTimeout)},s.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},s.prototype.stop=function(){this._core.is("rotating")&&(e.clearTimeout(this._timeout),this._core.leave("rotating"))},s.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},s.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";var s=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this.$element.on(this._handlers)};s.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},s.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t("<div>").addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",t.proxy(function(e){var n=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(n,i.dotsSpeed)},this)),this._overrides)this._core[e]=t.proxy(this[e],this)},s.prototype.destroy=function(){var t,e,i,n;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},s.prototype.update=function(){var t,e,i=this._core.clones().length/2,n=i+this._core.items().length,s=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<n;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(s,t-i),end:t-i+r-1}),Math.min(s,t-i)===s)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},s.prototype.draw=function(){var e,i=this._core.settings,n=this._core.items().length<=i.items,s=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},s.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},s.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,i){return t.start<=e&&t.end>=e},this)).pop()},s.prototype.getPosition=function(e){var i,n,s=this._core.settings;return"page"==s.slideBy?(i=t.inArray(this.current(),this._pages),n=this._pages.length,e?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,e?i+=s.slideBy:i-=s.slideBy),i},s.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},s.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},s.prototype.to=function(e,i,n){var s;!n&&this._pages.length?(s=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%s+s)%s].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";var s=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),s=t.map(this._hashes,function(t,e){return t===n?e:null}).join();if(!s||e.location.hash.slice(1)===s)return;e.location.hash=s}},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(t){var i=e.location.hash.substring(1),n=this._core.$stage.children(),s=this._hashes[i]&&n.index(this._hashes[i]);void 0!==s&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)},this))};s.Defaults={URLhashListener:!1},s.prototype.destroy=function(){var i,n;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=t("<support>").get(0).style,o="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},a=function(){return!!u("transform")},l=function(){return!!u("perspective")},c=function(){return!!u("animation")};function u(e,i){var r=!1,a=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+o.join(a+" ")+a).split(" "),function(t,e){if(s[e]!==n)return r=!i||e,!1}),r}function h(t){return u(t,!0)}(function(){return!!u("transition")})()&&(t.support.transition=new String(h("transition")),t.support.transition.end=r.transition.end[t.support.transition]),c()&&(t.support.animation=new String(h("animation")),t.support.animation.end=r.animation.end[t.support.animation]),a()&&(t.support.transform=new String(h("transform")),t.support.transform3d=l())}(window.Zepto||window.jQuery,window,document);var responsiveflag=!1;function scrollCompensate(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n}function responsiveResize(){compensante=scrollCompensate(),$(window).width()+scrollCompensate()<=767&&0==responsiveflag?(accordionFooter("enable"),responsiveflag=!0):$(window).width()+scrollCompensate()>=768&&(accordionFooter("disable"),responsiveflag=!1)}function accordionFooter(t){"enable"==t?($("#footer .footer_block h3").on("click",function(t){$(this).toggleClass("active").parent().find(".toggle-footer").stop().slideToggle("medium"),t.preventDefault()}),$("#footer").addClass("accordion").find(".toggle-footer").slideUp("fast")):($(".footer_block h3").removeClass("active").off().parent().find(".toggle-footer").removeAttr("style").slideDown("fast"),$("#footer").removeClass("accordion"))}function bindGrid(){var t=$.totalStorage("display");!t&&"undefined"!=typeof displayList&&displayList&&(t="list"),t&&"grid"!=t?display(t):$(".display").find("li#grid").addClass("selected"),$(document).on("click","#grid",function(t){t.preventDefault(),display("grid"),$(this).parents("#products-list").find(".grid .item-product").removeClass("fadeInRight"),$(this).parents("#products-list").find(".grid .item-product").addClass(" animated zoomIn")}),$(document).on("click","#list",function(t){t.preventDefault(),display("list"),$(this).parents("#products-list").find(".list .item-product").addClass(" animated fadeInRight"),$(this).parents("#products-list").find(".list .item-product").removeClass(" zoomIn")})}function display(t){"grid"==t?($("#js-product-list .product_content").removeClass("list").addClass("grid row"),$(".product_content .item-product").removeClass("col-xs-12").addClass("col-xs-12 col-sm-6 col-md-6 col-lg-4"),$(".product_content .item-product").each(function(t,e){var i="";i+='<article class="js-product-miniature item_in" data-id-product="'+$(this).children("article.js-product-miniature").attr("data-id-product")+'" data-id-product-attribute="'+$(this).children("article.js-product-miniature").attr("data-id-product-attribute")+'" itemscope itemtype="http://schema.org/Product">',i+='<div class="img_block">'+$(e).find(".img_block").html()+"</div>",i+='<div class="product_desc">',i+='<div class="desc_info">',i+="<h4>"+$(e).find("h4").html()+"</h4>";var n=$(e).find(".hook-reviews");n.length&&(i+=n.clone().wrap("<div>").parent().html());var s=$(e).find(".product-price-and-shipping").html();null!=s&&(i+='<div class="product-price-and-shipping">'+s+"</div>"),i+='<div class="variant-links">'+$(e).find(".variant-links").html()+"</div>",i+='<div itemprop="description" class="product-desc">'+$(e).find(".product-desc").html()+"</div>",i+="</div>",i+='<ul class="add-to-links">'+$(e).find(".add-to-links").html()+"</ul>",i+="</div>",i+="</article>",$(e).html(i)}),$(".display").find("li#grid").addClass("selected"),$(".display").find("li#list").removeAttr("class"),$.totalStorage("display","grid")):($("#js-product-list .product_content").removeClass("grid").addClass("list row"),$(".product_content .item-product").removeClass("col-xs-12 col-sm-6 col-md-6 col-lg-4").addClass("col-xs-12"),$(".product_content .item-product").each(function(t,e){var i="";i='<article class="js-product-miniature item_in" data-id-product="'+$(this).children("article.js-product-miniature").attr("data-id-product")+'" data-id-product-attribute="'+$(this).children("article.js-product-miniature").attr("data-id-product-attribute")+'" itemscope itemtype="http://schema.org/Product"><div class="row">',i+='<div class="img_block col-xs-4 col-sm-4 col-md-4 col-lg-3 ">'+$(e).find(".img_block").html()+"</div>",i+='<div class="product_desc col-xs-8 col-sm-8 col-md-8 col-lg-9 ">',i+="<h4>"+$(e).find("h4").html()+"</h4>";var n=$(e).find(".hook-reviews");n.length&&(i+=n.clone().wrap("<div>").parent().html());var s=$(e).find(".product-price-and-shipping").html();null!=s&&(i+='<div class="product-price-and-shipping">'+s+"</div>"),i+='<div itemprop="description" class="product-desc">'+$(e).find(".product-desc").html()+"</div>",i+='<ul class="add-to-links">'+$(e).find(".add-to-links").html()+"</ul>",i+='<div class="variant-links">'+$(e).find(".variant-links").html()+"</div>",i+="</div></article>",$(e).html(i)}),$(".display").find("li#list").addClass("selected"),$(".display").find("li#grid").removeAttr("class"),$.totalStorage("display","list"))}$(document).ready(function(){if(responsiveResize(),$(window).resize(responsiveResize),$(".back-top").hide(),$(function(){$(window).scroll(function(){$(this).scrollTop()>150?$(".back-top").fadeIn():$(".back-top").fadeOut()}),$(".back-top").click(function(){return $("body,html").animate({scrollTop:0},1e3),!1})}),$(".block-search .search-icon").click(function(){$(this).parent().hasClass("open")?$(this).parents("main").removeClass("fixed_search"):$(this).parents("main").addClass("fixed_search")}),$("#header").length>0){var t=$(".header-bottom").outerHeight(!0);$("#header").after('<div class="headerSpace unvisible" style="height: '+t+'px;" ></div>')}if($(window).width()+scrollCompensate()>=992){var e=0;t=$("#header").outerHeight(!0);$(".headerSpace").css("height",t),$(window).scroll(function(){var i=$(window).scrollTop();i!=e&&(i>=t?($(".header-bottom").addClass("scroll-menu").addClass(" animated fadeInDown"),$(".headerSpace").removeClass("unvisible")):($(".header-bottom").removeClass("scroll-menu").removeClass("animated fadeInDown"),$(".headerSpace").addClass("unvisible"))),e=$(window).scrollTop()})}$(".product_accessoriesslide").owlCarousel({autoPlay:!1,smartSpeed:1e3,autoplayHoverPause:!0,nav:!0,dots:!1,responsive:{0:{items:1},480:{items:2},768:{items:3,nav:!1},992:{items:4},1200:{items:5}}}),bindGrid()}),function(t){var e,i=window.localStorage;e=void 0!==i&&void 0!==window.JSON,t.totalStorage=function(e,i,n){return t.totalStorage.impl.init(e,i)},t.totalStorage.setItem=function(e,i){return t.totalStorage.impl.setItem(e,i)},t.totalStorage.getItem=function(e){return t.totalStorage.impl.getItem(e)},t.totalStorage.getAll=function(){return t.totalStorage.impl.getAll()},t.totalStorage.deleteItem=function(e){return t.totalStorage.impl.deleteItem(e)},t.totalStorage.impl={init:function(t,e){return void 0!==e?this.setItem(t,e):this.getItem(t)},setItem:function(n,s){if(!e)try{return t.cookie(n,s),s}catch(t){console.log("Local Storage not supported by this browser. Install the cookie plugin on your site to take advantage of the same functionality. You can get it at https://github.com/carhartl/jquery-cookie")}var o=JSON.stringify(s);return i.setItem(n,o),this.parseResult(o)},getItem:function(n){if(!e)try{return this.parseResult(t.cookie(n))}catch(t){return null}return this.parseResult(i.getItem(n))},deleteItem:function(n){if(!e)try{return t.cookie(n,null),!0}catch(t){return!1}return i.removeItem(n),!0},getAll:function(){var n=new Array;if(e)for(var s in i)s.length&&n.push({key:s,value:this.parseResult(i.getItem(s))});else try{for(var o=document.cookie.split(";"),s=0;s<o.length;s++){var r=o[s].split("=")[0];n.push({key:r,value:this.parseResult(t.cookie(r))})}}catch(t){return null}return n},parseResult:function(t){var e;try{"true"==(e=JSON.parse(t))&&(e=!0),"false"==e&&(e=!1),parseFloat(e)==e&&"object"!=typeof e&&(e=parseFloat(e))}catch(t){}return e}}}(jQuery);