PageSourceSearch

https://www.otavarena.cz/tpl/Apartments1/js/compiled/scripts.min.js

js otavarena.cz collected 2026-10-02 00:01:55 UTC 341,395 bytes, 1 lines download raw bytes

vendor: 11,314 bytes, line 1
1if(!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(x,z){function O(t,e){return e.toUpperCase()}var t=[],_=x.document,d=t.slice,j=t.concat,F=t.push,o=t.indexOf,n={},R=n.toString,H=n.hasOwnProperty,g={},e="2.2.0",C=function(t,e){return new C.fn.init(t,e)},q=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,W=/^-ms-/,B=/-([\da-z])/gi;function Y(t){var e=!!t&&"length"in t&&t.length,n=C.type(t);return"function"!==n&&!C.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}C.fn=C.prototype={jquery:e,constructor:C,selector:"",length:0,toArray:function(){return d.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:d.call(this)},pushStack:function(t){t=C.merge(this.constructor(),t);return t.prevObject=this,t.context=this.context,t},each:function(t){return C.each(this,t)},map:function(n){return this.pushStack(C.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:F,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var t,e,n,i,o,s=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[r]||{},r++),"object"==typeof s||C.isFunction(s)||(s={}),r===a&&(s=this,r--);r<a;r++)if(null!=(t=arguments[r]))for(e in t)o=s[e],n=t[e],s!==n&&(l&&n&&(C.isPlainObject(n)||(i=C.isArray(n)))?(o=i?(i=!1,o&&C.isArray(o)?o:[]):o&&C.isPlainObject(o)?o:{},s[e]=C.extend(l,o,n)):void 0!==n&&(s[e]=n));return s},C.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===C.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!C.isArray(t)&&0<=e-parseFloat(e)+1},isPlainObject:function(t){return!("object"!==C.type(t)||t.nodeType||C.isWindow(t)||t.constructor&&!H.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){for(var e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[R.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=C.trim(t))&&(1===t.indexOf("use strict")?((e=_.createElement("script")).text=t,_.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(W,"ms-").replace(B,O)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(Y(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(q,"")},makeArray:function(t,e){e=e||[];return null!=t&&(Y(Object(t))?C.merge(e,"string"==typeof t?[t]:t):F.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:o.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,s=t.length,r=!n;o<s;o++)!e(t[o],o)!=r&&i.push(t[o]);return i},map:function(t,e,n){var i,o,s=0,r=[];if(Y(t))for(i=t.length;s<i;s++)null!=(o=e(t[s],s,n))&&r.push(o);else for(s in t)o=e(t[s],s,n),null!=o&&r.push(o);return j.apply([],r)},guid:1,proxy:function(t,e){var n,i;return"string"==typeof e&&(i=t[e],e=t,t=i),C.isFunction(t)?(n=d.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(d.call(arguments)))}).guid=t.guid=t.guid||C.guid++,i):void 0},now:Date.now,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=t[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});function i(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&C(t).is(n))break;i.push(t)}return i}function U(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var e=function(z){function u(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function O(){_()}var t,f,w,s,j,g,F,R,x,l,c,_,C,e,$,m,i,o,v,k="sizzle"+ +new Date,y=z.document,T=0,H=0,q=ct(),W=ct(),b=ct(),B=function(t,e){return t===e&&(c=!0),0},Y={}.hasOwnProperty,n=[],U=n.pop,X=n.push,S=n.push,Q=n.slice,D=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},V="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",a="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",K="\\["+r+"*("+a+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+r+"*\\]",Z=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+K+")*)|.*)\\)|)",G=new RegExp(r+"+","g"),E=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),J=new RegExp("^"+r+"*,"+r+"*"),tt=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),et=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),nt=new RegExp(Z),it=new RegExp("^"+a+"$"),h={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+K),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+V+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},ot=/^(?:input|select|textarea|button)$/i,st=/^h\d$/i,d=/^[^{]+\{\s*\[native \w/,rt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,at=/[+~]/,lt=/'|\\/g,p=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig");try{S.apply(n=Q.call(y.childNodes),y.childNodes),n[y.childNodes.length].nodeType}catch(t){S={apply:n.length?function(t,e){X.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function I(t,e,n,i){var o,s,r,a,l,c,d,u,h=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:y)!==C&&_(e),e=e||C,$)){if(11!==p&&(c=rt.exec(t)))if(o=c[1]){if(9===p){if(!(r=e.getElementById(o)))return n;if(r.id===o)return n.push(r),n}else if(h&&(r=h.getElementById(o))&&v(e,r)&&r.id===o)return n.push(r),n}else{if(c[2])return S.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&f.getElementsByClassName&&e.getElementsByClassName)return S.apply(n,e.getElementsByClassName(o)),n}if(f.qsa&&!b[t+" "]&&(!m||!m.test(t))){if(1!==p)h=e,u=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(lt,"\\$&"):e.setAttribute("id",a=k),s=(d=g(t)).length,l=it.test(a)?"#"+a:"[id='"+a+"']";s--;)d[s]=l+" "+L(d[s]);u=d.join(","),h=at.test(t)&&ht(e.parentNode)||e}if(u)try{return S.apply(n,h.querySelectorAll(u)),n}catch(t){}finally{a===k&&e.removeAttribute("id")}}}return R(t.replace(E,"$1"),e,n,i)}function ct(){var n=[];function i(t,e){return n.push(t+" ")>w.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function M(t){return t[k]=!0,t}function A(t){var e=C.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function dt(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function ut(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function P(r){return M(function(s){return s=+s,M(function(t,e){for(var n,i=r([],t.length,s),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=I.support={},j=I.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},_=I.setDocument=function(t){var t=t?t.ownerDocument||t:y;return t!==C&&9===t.nodeType&&t.documentElement&&(e=(C=t).documentElement,$=!j(C),(t=C.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",O,!1):t.attachEvent&&t.attachEvent("onunload",O)),f.attributes=A(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=A(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=d.test(C.getElementsByClassName),f.getById=A(function(t){return e.appendChild(t).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),f.getById?(w.find.ID=function(t,e){if(void 0!==e.getElementById&&$)return(e=e.getElementById(t))?[e]:[]},w.filter.ID=function(t){var e=t.replace(p,u);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(p,u);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}}),w.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,s=e.getElementsByTagName(t);if("*"!==t)return s;for(;n=s[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(t,e){return void 0!==e.getElementsByClassName&&$?e.getElementsByClassName(t):void 0},i=[],m=[],(f.qsa=d.test(C.querySelectorAll))&&(A(function(t){e.appendChild(t).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+r+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+r+"*(?:value|"+V+")"),t.querySelectorAll("[id~="+k+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+k+"+*").length||m.push(".#.+[+~]")}),A(function(t){var e=C.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+r+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=d.test(o=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector))&&A(function(t){f.disconnectedMatch=o.call(t,"div"),o.call(t,"[s!='']:x"),i.push("!=",Z)}),m=m.length&&new RegExp(m.join("|")),i=i.length&&new RegExp(i.join("|")),t=d.test(e.compareDocumentPosition),v=t||d.test(e.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=t?function(t,e){var n;return t===e?(c=!0,0):(n=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===C||t.ownerDocument===y&&v(y,t)?-1:e===C||e.ownerDocument===y&&v(y,e)?1:l?D(l,t)-D(l,e):0:4&n?-1:1)}
vendor: 4,583 bytes, line 1
1:function(t,e){if(t===e)return c=!0,0;var n,i=0,o=t.parentNode,s=e.parentNode,r=[t],a=[e];if(!o||!s)return t===C?-1:e===C?1:o?-1:s?1:l?D(l,t)-D(l,e):0;if(o===s)return ut(t,e);for(n=t;n=n.parentNode;)r.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;r[i]===a[i];)i++;return i?ut(r[i],a[i]):r[i]===y?-1:a[i]===y?1:0}),C},I.matches=function(t,e){return I(t,null,null,e)},I.matchesSelector=function(t,e){if((t.ownerDocument||t)!==C&&_(t),e=e.replace(et,"='$1']"),f.matchesSelector&&$&&!b[e+" "]&&(!i||!i.test(e))&&(!m||!m.test(e)))try{var n=o.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<I(e,C,null,[t]).length},I.contains=function(t,e){return(t.ownerDocument||t)!==C&&_(t),v(t,e)},I.attr=function(t,e){(t.ownerDocument||t)!==C&&_(t);var n=w.attrHandle[e.toLowerCase()],n=n&&Y.call(w.attrHandle,e.toLowerCase())?n(t,e,!$):void 0;return void 0!==n?n:f.attributes||!$?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},I.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},I.uniqueSort=function(t){var e,n=[],i=0,o=0;if(c=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(B),c){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return l=null,t},s=I.getText=function(t){var e,n="",i=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)n+=s(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=s(e);return n},(w=I.selectors={cacheLength:50,createPseudo:M,match:h,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(p,u),t[3]=(t[3]||t[4]||t[5]||"").replace(p,u),"~="===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]||I.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]&&I.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return h.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&nt.test(n)&&(e=(e=g(n,!0))&&n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(p,u).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+r+")"+t+"("+r+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=I.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(G," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,t,e,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var i,o,s,r,a,l,c=v!=y?"nextSibling":"previousSibling",d=t.parentNode,u=b&&t.nodeName.toLowerCase(),h=!n&&!b,p=!1;if(d){if(v){for(;c;){for(r=t;r=r[c];)if(b?r.nodeName.toLowerCase()===u:1===r.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?d.firstChild:d.lastChild],y&&h){for(p=(a=(i=(o=(s=(r=d)[k]||(r[k]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]||[])[0]===T&&i[1])&&i[2],r=a&&d.childNodes[a];r=++a&&r&&r[c]||(p=a=0,l.pop());)if(1===r.nodeType&&++p&&r===t){o[f]=[T,a,p];break}}else if(!1===(p=h?a=(i=(o=(s=(r=t)[k]||(r[k]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]||[])[0]===T&&i[1]:p))for(;(r=++a&&r&&r[c]||(p=a=0,l.pop()))&&((b?r.nodeName.toLowerCase()!==u:1!==r.nodeType)||!++p||(h&&((o=(s=r[k]||(r[k]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]=[T,p]),r!==t)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(t,s){var e,r=w.pseudos[t]||w.setFilters[t.toLowerCase()]||I.error("unsupported pseudo: "+t);return r[k]?r(s):1<r.length?(e=[t,t,"",s],w.setFilters.hasOwnProperty(t.toLowerCase())?M(function(t,e){for(var n,i=r(t,s),o=i.length;o--;)t[n=D(t,i[o])]=!(e[n]=i[o])}):function(t){return r(t,0,e)}):r}},pseudos:{not:M(function(t){var i=[],o=[],a=F(t.replace(E,"$1"));return a[k]?M(function(t,e,n,i){for(var o,s=a(t,null,i,[]),r=t.length;r--;)(o=s[r])&&(t[r]=!(e[r]=o))}):function(t,e,n){return i[0]=t,a(i,null,n,o),i[0]=null,!o.pop()}}),has:M(function(e){return function(t){return 0<I(e,t).length}}
vendor: 35,373 bytes, line 1
1),contains:M(function(e){return e=e.replace(p,u),function(t){return-1<(t.textContent||t.innerText||s(t)).indexOf(e)}}),lang:M(function(n){return it.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(p,u).toLowerCase(),function(t){var e;do{if(e=$?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=z.location&&z.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===e},focus:function(t){return t===C.activeElement&&(!C.hasFocus||C.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!w.pseudos.empty(t)},header:function(t){return st.test(t.nodeName)},input:function(t){return ot.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:P(function(){return[0]}),last:P(function(t,e){return[e-1]}),eq:P(function(t,e,n){return[n<0?n+e:n]}),even:P(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:P(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:P(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:P(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})w.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function pt(){}function L(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ft(r,t,e){var a=t.dir,l=e&&"parentNode"===a,c=H++;return t.first?function(t,e,n){for(;t=t[a];)if(1===t.nodeType||l)return r(t,e,n)}:function(t,e,n){var i,o,s=[T,c];if(n){for(;t=t[a];)if((1===t.nodeType||l)&&r(t,e,n))return!0}else for(;t=t[a];)if(1===t.nodeType||l){if((i=(o=(o=t[k]||(t[k]={}))[t.uniqueID]||(o[t.uniqueID]={}))[a])&&i[0]===T&&i[1]===c)return s[2]=i[2];if((o[a]=s)[2]=r(t,e,n))return!0}}}function gt(o){return 1<o.length?function(t,e,n){for(var i=o.length;i--;)if(!o[i](t,e,n))return!1;return!0}:o[0]}function N(t,e,n,i,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(!n||n(s,i,o))&&(r.push(s),c)&&e.push(a);return r}function mt(p,f,g,m,v,t){return m&&!m[k]&&(m=mt(m)),v&&!v[k]&&(v=mt(v,t)),M(function(t,e,n,i){var o,s,r,a=[],l=[],c=e.length,d=t||function(t,e,n){for(var i=0,o=e.length;i<o;i++)I(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),u=!p||!t&&f?d:N(d,a,p,n,i),h=g?v||(t?p:c||m)?[]:e:u;if(g&&g(u,h,n,i),m)for(o=N(h,l),m(o,[],n,i),s=o.length;s--;)(r=o[s])&&(h[l[s]]=!(u[l[s]]=r));if(t){if(v||p){if(v){for(o=[],s=h.length;s--;)(r=h[s])&&o.push(u[s]=r);v(null,h=[],o,i)}for(s=h.length;s--;)(r=h[s])&&-1<(o=v?D(t,r):a[s])&&(t[o]=!(e[o]=r))}}else h=N(h===e?h.splice(c,h.length):h),v?v(null,e,h,i):S.apply(e,h)})}function vt(m,v){function t(t,e,n,i,o){var s,r,a,l=0,c="0",d=t&&[],u=[],h=x,p=t||b&&w.find.TAG("*",o),f=T+=null==h?1:Math.random()||.1,g=p.length;for(o&&(x=e===C||e||o);c!==g&&null!=(s=p[c]);c++){if(b&&s){for(r=0,e||s.ownerDocument===C||(_(s),n=!$);a=m[r++];)if(a(s,e||C,n)){i.push(s);break}o&&(T=f)}y&&((s=!a&&s)&&l--,t)&&d.push(s)}if(l+=c,y&&c!==l){for(r=0;a=v[r++];)a(d,u,e,n);if(t){if(0<l)for(;c--;)d[c]||u[c]||(u[c]=U.call(i));u=N(u)}S.apply(i,u),o&&!t&&0<u.length&&1<l+v.length&&I.uniqueSort(i)}return o&&(T=f,x=h),d}var y=0<v.length,b=0<m.length;return y?M(t):t}return pt.prototype=w.filters=w.pseudos,w.setFilters=new pt,g=I.tokenize=function(t,e){var n,i,o,s,r,a,l,c=W[t+" "];if(c)return e?0:c.slice(0);for(r=t,a=[],l=w.preFilter;r;){for(s in n&&!(i=J.exec(r))||(i&&(r=r.slice(i[0].length)||r),a.push(o=[])),n=!1,(i=tt.exec(r))&&(n=i.shift(),o.push({value:n,type:i[0].replace(E," ")}),r=r.slice(n.length)),w.filter)!(i=h[s].exec(r))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),r=r.slice(n.length));if(!n)break}return e?r.length:r?I.error(t):W(t,a).slice(0)},F=I.compile=function(t,e){var n,i=[],o=[],s=b[t+" "];if(!s){for(n=(e=e||g(t)).length;n--;)((s=function t(e){for(var i,n,o,s=e.length,r=w.relative[e[0].type],a=r||w.relative[" "],l=r?1:0,c=ft(function(t){return t===i},a,!0),d=ft(function(t){return-1<D(i,t)},a,!0),u=[function(t,e,n){return t=!r&&(n||e!==x)||((i=e).nodeType?c:d)(t,e,n),i=null,t}];l<s;l++)if(n=w.relative[e[l].type])u=[ft(gt(u),n)];else{if((n=w.filter[e[l].type].apply(null,e[l].matches))[k]){for(o=++l;o<s&&!w.relative[e[o].type];o++);return mt(1<l&&gt(u),1<l&&L(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(E,"$1"),n,l<o&&t(e.slice(l,o)),o<s&&t(e=e.slice(o)),o<s&&L(e))}u.push(n)}return gt(u)}(e[n]))[k]?i:o).push(s);(s=b(t,vt(o,i))).selector=t}return s},R=I.select=function(t,e,n,i){var o,s,r,a,l,c="function"==typeof t&&t,d=!i&&g(t=c.selector||t);if(n=n||[],1===d.length){if(2<(s=d[0]=d[0].slice(0)).length&&"ID"===(r=s[0]).type&&f.getById&&9===e.nodeType&&$&&w.relative[s[1].type]){if(!(e=(w.find.ID(r.matches[0].replace(p,u),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=h.needsContext.test(t)?0:s.length;o--&&(r=s[o],!w.relative[a=r.type]);)if((l=w.find[a])&&(i=l(r.matches[0].replace(p,u),at.test(s[0].type)&&ht(e.parentNode)||e))){if(s.splice(o,1),t=i.length&&L(s))break;return S.apply(n,i),n}}return(c||F(t,d))(i,e,!$,n,!e||at.test(t)&&ht(e.parentNode)||e),n},f.sortStable=k.split("").sort(B).join("")===k,f.detectDuplicates=!!c,_(),f.sortDetached=A(function(t){return 1&t.compareDocumentPosition(C.createElement("div"))}),A(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||dt("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&A(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||dt("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),A(function(t){return null==t.getAttribute("disabled")})||dt(V,function(t,e,n){return n?void 0:!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),I}(x),X=(C.find=e,C.expr=e.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=e.uniqueSort,C.text=e.getText,C.isXMLDoc=e.isXML,C.contains=e.contains,C.expr.match.needsContext),Q=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,V=/^.[^:#\[\.,]*$/;function K(t,n,i){if(C.isFunction(n))return C.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return C.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(V.test(n))return C.filter(n,t,i);n=C.filter(n,t)}return C.grep(t,function(t){return-1<o.call(n,t)!==i})}C.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?C.find.matchesSelector(i,t)?[i]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n=this.length,i=[],o=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<n;e++)if(C.contains(o[e],this))return!0}));for(e=0;e<n;e++)C.find(t,o[e],i);return(i=this.pushStack(1<n?C.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(K(this,t||[],!1))},not:function(t){return this.pushStack(K(this,t||[],!0))},is:function(t){return!!K(this,"string"==typeof t&&X.test(t)?C(t):t||[],!1).length}});var Z,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,J=((C.fn.init=function(t,e,n){if(t){if(n=n||Z,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):C.isFunction(t)?void 0!==n.ready?n.ready(t):t(C):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this));if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:G.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),Q.test(i[1])&&C.isPlainObject(e))for(var i in e)C.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i])}else(n=_.getElementById(i[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=_,this.selector=t}return this}).prototype=C.fn,Z=C(_),/^(?:parents|prev(?:Until|All))/),tt={children:!0,contents:!0,next:!0,prev:!0};function et(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,s=[],r=X.test(t)||"string"!=typeof t?C(t,e||this.context):0;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(r?-1<r.index(n):1===n.nodeType&&C.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(1<s.length?C.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?o.call(C(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return i(t,"parentNode")},parentsUntil:function(t,e,n){return i(t,"parentNode",n)},next:function(t){return et(t,"nextSibling")},prev:function(t){return et(t,"previousSibling")},nextAll:function(t){return i(t,"nextSibling")},prevAll:function(t){return i(t,"previousSibling")},nextUntil:function(t,e,n){return i(t,"nextSibling",n)},prevUntil:function(t,e,n){return i(t,"previousSibling",n)},siblings:function(t){return U((t.parentNode||{}).firstChild,t)},children:function(t){return U(t.firstChild)},contents:function(t){return t.contentDocument||C.merge([],t.childNodes)}},function(i,o){C.fn[i]=function(t,e){var n=C.map(this,o,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=C.filter(e,n)),1<this.length&&(tt[i]||C.uniqueSort(n),J.test(i))&&n.reverse(),this.pushStack(n)}});var nt,$=/\S+/g;function it(){_.removeEventListener("DOMContentLoaded",it),x.removeEventListener("load",it),C.ready()}C.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},C.each(t.match($)||[],function(t,e){n[e]=!0}),n):C.extend({},i);function o(){for(a=i.once,r=s=!0;c.length;d=-1)for(e=c.shift();++d<l.length;)!1===l[d].apply(e[0],e[1])&&i.stopOnFalse&&(d=l.length,e=!1);i.memory||(e=!1),s=!1,a&&(l=e?[]:"")}var s,e,r,a,l=[],c=[],d=-1,u={add:function(){return l&&(e&&!s&&(d=l.length-1,c.push(e)),function n(t){C.each(t,function(t,e){C.isFunction(e)?i.unique&&u.has(e)||l.push(e):e&&e.length&&"string"!==C.type(e)&&n(e)})}(arguments),e)&&!s&&o(),this},remove:function(){return C.each(arguments,function(t,e){for(var n;-1<(n=C.inArray(e,l,n));)l.splice(n,1),n<=d&&d--}),this},has:function(t){return t?-1<C.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=e="",this},disabled:function(){return!l},lock:function(){return a=c=[],e||(l=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),s)||o(),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},C.extend({Deferred:function(t){var s=[["resolve","done",C.Callbacks("once memory"),"resolved"],["reject","fail",C.Callbacks("once memory"),"rejected"],["notify","progress",C.Callbacks("memory")]],o="pending",r={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var o=arguments;return C.Deferred(function(i){C.each(s,function(t,e){var n=C.isFunction(o[t])&&o[t];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&C.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this===r?i.promise():this,n?[t]:arguments)})}),o=null}).promise()},promise:function(t){return null!=t?C.extend(t,r):r}},a={};return r.pipe=r.then,C.each(s,function(t,e){var n=e[2],i=e[3];r[e[1]]=n.add,i&&n.add(function(){o=i},s[1^t][2].disable,s[2][2].lock),a[e[0]]=function(){return a[e[0]+"With"](this===a?r:this,arguments),this},a[e[0]+"With"]=n.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(t){function e(e,n,i){return function(t){n[e]=this,i[e]=1<arguments.length?d.call(arguments):t,i===o?c.notifyWith(n,i):--l||c.resolveWith(n,i)}}var o,n,i,s=0,r=d.call(arguments),a=r.length,l=1!==a||t&&C.isFunction(t.promise)?a:0,c=1===l?t:C.Deferred();if(1<a)for(o=new Array(a),n=new Array(a),i=new Array(a);s<a;s++)r[s]&&C.isFunction(r[s].promise)?r[s].promise().progress(e(s,n,o)).done(e(s,i,r)).fail(c.reject):--l;return l||c.resolveWith(i,r),c.promise()}}),C.fn.ready=function(t){return C.ready.promise().done(t),this},C.extend({isReady:!1,readyWait:1,holdReady:function(t){t?C.readyWait++:C.ready(!0)},ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0)!==t&&0<--C.readyWait||(nt.resolveWith(_,[C]),C.fn.triggerHandler&&(C(_).triggerHandler("ready"),C(_).off("ready")))}}),C.ready.promise=function(t){return nt||(nt=C.Deferred(),"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?x.setTimeout(C.ready):(_.addEventListener("DOMContentLoaded",it),x.addEventListener("load",it))),nt.promise(t)},C.ready.promise();function u(t,e,n,i,o,s,r){var a=0,l=t.length,c=null==n;if("object"===C.type(n))for(a in o=!0,n)u(t,e,a,n[a],!0,s,r);else if(void 0!==i&&(o=!0,C.isFunction(i)||(r=!0),e=c?r?(e.call(t,i),null):(c=e,function(t,e,n){return c.call(C(t),n)}):e))for(;a<l;a++)e(t[a],n,r?i:i.call(t[a],a,e(t[a],n)));return o?t:c?e.call(t):l?e(t[0],n):s}function f(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function s(){this.expando=C.expando+s.uid++}s.uid=1,s.prototype={register:function(t,e){e=e||{};return t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){var e;return f(t)?((e=t[this.expando])||(e={},f(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e):{}},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[e]=n;else for(i in e)o[i]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(i=this.get(t,e))?i:this.get(t,C.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,o,s=t[this.expando];if(void 0!==s){if(void 0===e)this.register(t);else{n=(i=C.isArray(e)?e.concat(e.map(C.camelCase)):(o=C.camelCase(e),e in s?[e,o]:(i=o)in s?[i]:i.match($)||[])).length;for(;n--;)delete s[i[n]]}void 0!==e&&!C.isEmptyObject(s)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var v=new s,l=new s,ot=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,st=/[A-Z]/g;function rt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(st,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ot.test(n)?C.parseJSON(n):n)}catch(t){}l.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return l.hasData(t)||v.hasData(t)},data:function(t,e,n){return l.access(t,e,n)},removeData:function(t,e){l.remove(t,e)},_data:function(t,e,n){return v.access(t,e,n)},_removeData:function(t,e){v.remove(t,e)}}),C.fn.extend({data:function(i,t){var e,n,o,s=this[0],r=s&&s.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){l.set(this,i)}):u(this,function(e){var t,n;if(s&&void 0===e)return void 0!==(t=l.get(s,i)||l.get(s,i.replace(st,"-$&").toLowerCase()))||(n=C.camelCase(i),void 0!==(t=l.get(s,n)))||void 0!==(t=rt(s,n,void 0))?t:void 0;n=C.camelCase(i),this.each(function(){var t=l.get(this,n);l.set(this,n,e),-1<i.indexOf("-")&&void 0!==t&&l.set(this,i,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(o=l.get(s),1===s.nodeType)&&!v.get(s,"hasDataAttrs")){for(e=r.length;e--;)r[e]&&0===(n=r[e].name).indexOf("data-")&&(n=C.camelCase(n.slice(5)),rt(s,n,o[n]));v.set(s,"hasDataAttrs",!0)}return o},removeData:function(t){return this.each(function(){l.remove(this,t)})}}),C.extend({queue:function(t,e,n){var i;return t?(i=v.get(t,e=(e||"fx")+"queue"),n&&(!i||C.isArray(n)?i=v.access(t,e,C.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),i=n.length,o=n.shift(),s=C._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete s.stop,o.call(t,function(){C.dequeue(t,e)},s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return v.get(t,n)||v.access(t,n,{empty:C.Callbacks("once memory").add(function(){v.remove(t,[e+"queue",n])})})}}),C.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):void 0===n?this:this.each(function(){var t=C.queue(this,e,n);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--o||s.resolveWith(r,[r])}var i,o=1,s=C.Deferred(),r=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=v.get(r[a],t+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),s.promise(e)}});function m(t,e){return"none"===C.css(t=e||t,"display")||!C.contains(t.ownerDocument,t)}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,h=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),a=["Top","Right","Bottom","Left"];function at(t,e,n,i){var o,s=1,r=20,a=i?function(){return i.cur()}:function(){return C.css(t,e,"")},l=a(),c=n&&n[3]||(C.cssNumber[e]?"":"px"),d=(C.cssNumber[e]||"px"!==c&&+l)&&h.exec(C.css(t,e));if(d&&d[3]!==c)for(c=c||d[3],n=n||[],d=+l||1;C.style(t,e,(d/=s=s||".5")+c),s!==(s=a()/l)&&1!==s&&--r;);return n&&(d=+d||+l||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],i)&&(i.unit=c,i.start=d,i.end=o),o}var lt=/^(?:checkbox|radio)$/i,ct=/<([\w:-]+)/,dt=/^$|\/(?:java|ecma)script/i,y={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 b(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&C.nodeName(t,e)?C.merge([t],n):n}function ut(t,e){for(var n=0,i=t.length;n<i;n++)v.set(t[n],"globalEval",!e||v.get(e[n],"globalEval"))}y.optgroup=y.option,y.tbody=y.tfoot=y.colgroup=y.caption=y.thead,y.th=y.td;var ht=/<|&#?\w+;/;function pt(t,e,n,i,o){for(var s,r,a,l,c,d=e.createDocumentFragment(),u=[],h=0,p=t.length;h<p;h++)if((s=t[h])||0===s)if("object"===C.type(s))C.merge(u,s.nodeType?[s]:s);else if(ht.test(s)){for(r=r||d.appendChild(e.createElement("div")),a=(ct.exec(s)||["",""])[1].toLowerCase(),a=y[a]||y._default,r.innerHTML=a[1]+C.htmlPrefilter(s)+a[2],c=a[0];c--;)r=r.lastChild;C.merge(u,r.childNodes),(r=d.firstChild).textContent=""}else u.push(e.createTextNode(s));for(d.textContent="",h=0;s=u[h++];)if(i&&-1<C.inArray(s,i))o&&o.push(s);else if(l=C.contains(s.ownerDocument,s),r=b(d.appendChild(s),"script"),l&&ut(r),n)for(c=0;s=r[c++];)dt.test(s.type||"")&&n.push(s);return d}e=_.createDocumentFragment().appendChild(_.createElement("div")),(I=_.createElement("input")).setAttribute("type","radio"),I.setAttribute("checked","checked"),I.setAttribute("name","t"),e.appendChild(I),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue;var ft=/^key/,gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mt=/^([^.]*)(?:\.(.+)|)/;function vt(){return!0}function c(){return!1}function yt(){try{return _.activeElement}catch(t){}}function bt(t,e,n,i,o,s){var r,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)bt(t,a,n,i,e[a],s);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=c;else if(!o)return this;return 1===s&&(r=o,(o=function(t){return C().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=C.guid++)),t.each(function(){C.event.add(this,e,o,i,n)})}C.event={global:{},add:function(e,t,n,i,o){var s,r,a,l,c,d,u,h,p,f=v.get(e);if(f)for(n.handler&&(n=(s=n).handler,o=s.selector),n.guid||(n.guid=C.guid++),a=(a=f.events)||(f.events={}),r=(r=f.handle)||(f.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match($)||[""]).length;l--;)u=p=(h=mt.exec(t[l])||[])[1],h=(h[2]||"").split(".").sort(),u&&(c=C.event.special[u]||{},u=(o?c.delegateType:c.bindType)||u,c=C.event.special[u]||{},p=C.extend({type:u,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:h.join(".")},s),(d=a[u])||((d=a[u]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,h,r))||e.addEventListener&&e.addEventListener(u,r),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,p):d.push(p),C.event.global[u]=!0)},remove:function(t,e,n,i,o){var s,r,a,l,c,d,u,h,p,f,g,m=v.hasData(t)&&v.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match($)||[""]).length;c--;)if(p=g=(a=mt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=C.event.special[p]||{},h=l[p=(i?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)d=h[s],!o&&g!==d.origType||n&&n.guid!==d.guid||a&&!a.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(h.splice(s,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(t,d));r&&!h.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||C.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)C.event.remove(t,p+e[c],n,i,!0);C.isEmptyObject(l)&&v.remove(t,"handle events")}},dispatch:function(t){t=C.event.fix(t);var e,n,i,o,s,r=d.call(arguments),a=(v.get(this,"events")||{})[t.type]||[],l=C.event.special[t.type]||{};if((r[0]=t).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(s=C.event.handlers.call(this,t,a),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0===(o=((C.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,r)))||!1!==(t.result=o)||(t.preventDefault(),t.stopPropagation());return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,s,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(i=[],n=0;n<a;n++)void 0===i[o=(s=e[n]).selector+" "]&&(i[o]=s.needsContext?-1<C(o,this).index(l):C.find(o,this,null,[l]).length),i[o]&&i.push(s);i.length&&r.push({elem:l,handlers:i})}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 n,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=(i=t.target.ownerDocument||_).documentElement,i=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||i&&i.scrollLeft||0)-(n&&n.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||i&&i.scrollTop||0)-(n&&n.clientTop||i&&i.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[C.expando])return t;var e,n,i,o=t.type,s=t,r=this.fixHooks[o];for(r||(this.fixHooks[o]=r=gt.test(o)?this.mouseHooks:ft.test(o)?this.keyHooks:{}),i=r.props?this.props.concat(r.props):this.props,t=new C.Event(s),e=i.length;e--;)t[n=i[e]]=s[n];return t.target||(t.target=_),3===t.target.nodeType&&(t.target=t.target.parentNode),r.filter?r.filter(t,s):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==yt()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===yt()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&C.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return C.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},C.Event=function(t,e){return this instanceof C.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?vt:c):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||C.now(),void(this[C.expando]=!0)):new C.Event(t,e)},C.Event.prototype={constructor:C.Event,isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=vt,t&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=vt,t&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=vt,t&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){C.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||C.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=o),e}}}),C.fn.extend({on:function(t,e,n,i){return bt(this,t,e,n,i)},one:function(t,e,n,i){return bt(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)i=t.handleObj,C(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=c),this.each(function(){C.event.remove(this,t,n,e)});for(o in t)this.off(o,e,t[o])}return this}});var wt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,xt=/<script|<style|<link/i,_t=/checked\s*(?:[^=]|=\s*.checked.)/i,Ct=/^true\/(.*)/,$t=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function kt(t,e){return C.nodeName(t,"table")&&C.nodeName(11!==e.nodeType?e:e.firstChild,"tr")&&t.getElementsByTagName("tbody")[0]||t}function Tt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function St(t){var e=Ct.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Dt(t,e){var n,i,o,s,r,a;if(1===e.nodeType){if(v.hasData(t)&&(s=v.access(t),r=v.set(e,s),a=s.events))for(o in delete r.handle,r.events={},a)for(n=0,i=a[o].length;n<i;n++)C.event.add(e,o,a[o][n]);l.hasData(t)&&(s=l.access(t),r=C.extend({},s),l.set(e,r))}}function w(n,i,o,s){i=j.apply([],i);var t,e,r,a,l,c,d=0,u=n.length,h=u-1,p=i[0],f=C.isFunction(p);if(f||1<u&&"string"==typeof p&&!g.checkClone&&_t.test(p))return n.each(function(t){var e=n.eq(t);f&&(i[0]=p.call(this,t,e.html())),w(e,i,o,s)});if(u&&(e=(t=pt(i,n[0].ownerDocument,!1,n,s)).firstChild,1===t.childNodes.length&&(t=e),e||s)){for(a=(r=C.map(b(t,"script"),Tt)).length;d<u;d++)l=t,d!==h&&(l=C.clone(l,!0,!0),a)&&C.merge(r,b(l,"script")),o.call(n[d],l,d);if(a)for(c=r[r.length-1].ownerDocument,C.map(r,St),d=0;d<a;d++)l=r[d],dt.test(l.type||"")&&!v.access(l,"globalEval")&&C.contains(c,l)&&(l.src?C._evalUrl&&C._evalUrl(l.src):C.globalEval(l.textContent.replace($t,"")))}return n}function Et(t,e,n){for(var i,o=e?C.filter(e,t):t,s=0;null!=(i=o[s]);s++)n||1!==i.nodeType||C.cleanData(b(i)),i.parentNode&&(n&&C.contains(i.ownerDocument,i)&&ut(b(i,"script")),i.parentNode.removeChild(i));return t}C.extend({htmlPrefilter:function(t){return t.replace(wt,"<$1></$2>")},clone:function(t,e,n){var i,o,s,r,a,l,c,d=t.cloneNode(!0),u=C.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(r=b(d),i=0,o=(s=b(t)).length;i<o;i++)a=s[i],l=r[i],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&lt.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(n)for(s=s||b(t),r=r||b(d),i=0,o=s.length;i<o;i++)Dt(s[i],r[i]);else Dt(t,d);return 0<(r=b(d,"script")).length&&ut(r,!u&&b(t,"script")),d},cleanData:function(t){for(var e,n,i,o=C.event.special,s=0;void 0!==(n=t[s]);s++)if(f(n)){if(e=n[v.expando]){if(e.events)for(i in e.events)o[i]?C.event.remove(n,i):C.removeEvent(n,i,e.handle);n[v.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),C.fn.extend({domManip:w,detach:function(t){return Et(this,t,!0)},remove:function(t){return Et(this,t)},text:function(t){return u(this,function(t){return void 0===t?C.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 w(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||kt(this,t).appendChild(t)})},prepend:function(){return w(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=kt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return w(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return w(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&&(C.cleanData(b(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return u(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!xt.test(t)&&!y[(ct.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(b(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return w(this,arguments,function(t){var e=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(b(this)),e)&&e.replaceChild(t,this)},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){C.fn[t]=function(t){for(var e,n=[],i=C(t),o=i.length-1,s=0;s<=o;s++)e=s===o?this:this.clone(!0),C(i[s])[r](e),F.apply(n,e.get());return this.pushStack(n)}});var It,Mt={HTML:"block",BODY:"block"};function At(t,e){t=C(e.createElement(t)).appendTo(e.body),e=C.css(t[0],"display");return t.detach(),e}function Pt(t){var e=_,n=Mt[t];return n||("none"!==(n=At(t,e))&&n||((e=(It=(It||C("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=At(t,e),It.detach()),Mt[t]=n),n}function Lt(t){var e=t.ownerDocument.defaultView;return(e=e.opener?e:x).getComputedStyle(t)}function Nt(t,e,n,i){var o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in n=n.apply(t,i||[]),e)t.style[o]=s[o];return n}var zt,r,Ot,jt,p,k,Ft=/^margin/,Rt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),T=_.documentElement;function Ht(){k.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%",k.innerHTML="",T.appendChild(p);var t=x.getComputedStyle(k);zt="1%"!==t.top,jt="2px"===t.marginLeft,r="4px"===t.width,k.style.marginRight="50%",Ot="4px"===t.marginRight,T.removeChild(p)}function S(t,e,n){var i,o,s=t.style;return(n=n||Lt(t))&&(""!==(o=n.getPropertyValue(e)||n[e])||C.contains(t.ownerDocument,t)||(o=C.style(t,e)),!g.pixelMarginRight())&&Rt.test(o)&&Ft.test(e)&&(t=s.width,e=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=t,s.minWidth=e,s.maxWidth=i),void 0!==o?o+"":o}function qt(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}p=_.createElement("div"),(k=_.createElement("div")).style&&(k.style.backgroundClip="content-box",k.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===k.style.backgroundClip,p.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",p.appendChild(k),C.extend(g,{pixelPosition:function(){return Ht(),zt},boxSizingReliable:function(){return null==r&&Ht(),r},pixelMarginRight:function(){return null==r&&Ht(),Ot},reliableMarginLeft:function(){return null==r&&Ht(),jt},reliableMarginRight:function(){var t,e=k.appendChild(_.createElement("div"));return e.style.cssText=k.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",k.style.width="1px",T.appendChild(p),t=!parseFloat(x.getComputedStyle(e).marginRight),T.removeChild(p),k.removeChild(e),t}}));var Wt=/^(none|table(?!-c[ea]).+)/,Bt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:"0",fontWeight:"400"},Ut=["Webkit","O","Moz","ms"],Xt=_.createElement("div").style;function Qt(t){if(t in Xt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Ut.length;n--;)if((t=Ut[n]+e)in Xt)return t}function Vt(t,e,n){var i=h.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Kt(t,e,n,i,o){for(var s=n===(i?"border":"content")?4:"width"===e?1:0,r=0;s<4;s+=2)"margin"===n&&(r+=C.css(t,n+a[s],!0,o)),i?("content"===n&&(r-=C.css(t,"padding"+a[s],!0,o)),"margin"!==n&&(r-=C.css(t,"border"+a[s]+"Width",!0,o))):(r+=C.css(t,"padding"+a[s],!0,o),"padding"!==n&&(r+=C.css(t,"border"+a[s]+"Width",!0,o)));return r}function Zt(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,s=Lt(t),r="border-box"===C.css(t,"boxSizing",!1,s);if((o=_.msFullscreenElement&&x.top!==x&&t.getClientRects().length?Math.round(100*t.getBoundingClientRect()[e]):o)<=0||null==o){if(((o=S(t,e,s))<0||null==o)&&(o=t.style[e]),Rt.test(o))return o;i=r&&(g.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+Kt(t,e,n||(r?"border":"content"),i,s)+"px"}function Gt(t,e){for(var n,i,o,s=[],r=0,a=t.length;r<a;r++)(i=t[r]).style&&(s[r]=v.get(i,"olddisplay"),n=i.style.display,e?(s[r]||"none"!==n||(i.style.display=""),""===i.style.display&&m(i)&&(s[r]=v.access(i,"olddisplay",Pt(i.nodeName)))):(o=m(i),"none"===n&&o||v.set(i,"olddisplay",o?n:C.css(i,"dis
1play"))));for(r=0;r<a;r++)!(i=t[r]).style||e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?s[r]||"":"none");return t}function D(t,e,n,i,o){return new D.prototype.init(t,e,n,i,o)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=S(t,"opacity"))?"1":e}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){var o,s,r,a,l;if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style)return a=C.camelCase(e),l=t.style,e=C.cssProps[a]||(C.cssProps[a]=Qt(a)||a),r=C.cssHooks[e]||C.cssHooks[a],void 0===n?r&&"get"in r&&void 0!==(o=r.get(t,!1,i))?o:l[e]:("string"===(s=typeof n)&&(o=h.exec(n))&&o[1]&&(n=at(t,e,o),s="number"),void(null!=n&&n==n&&("number"===s&&(n+=o&&o[3]||(C.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(n=r.set(t,n,i))||(l[e]=n))))},css:function(t,e,n,i){var o,s=C.camelCase(e);return e=C.cssProps[s]||(C.cssProps[s]=Qt(s)||s),"normal"===(o=void 0===(o=(s=C.cssHooks[e]||C.cssHooks[s])&&"get"in s?s.get(t,!0,n):o)?S(t,e,i):o)&&e in Yt&&(o=Yt[e]),(""===n||n)&&(s=parseFloat(o),!0===n||isFinite(s))?s||0:o}}),C.each(["height","width"],function(t,o){C.cssHooks[o]={get:function(t,e,n){return e?Wt.test(C.css(t,"display"))&&0===t.offsetWidth?Nt(t,Bt,function(){return Zt(t,o,n)}):Zt(t,o,n):void 0},set:function(t,e,n){var i=n&&Lt(t),n=n&&Kt(t,o,n,"border-box"===C.css(t,"boxSizing",!1,i),i);return n&&(i=h.exec(e))&&"px"!==(i[3]||"px")&&(t.style[o]=e,e=C.css(t,o)),Vt(0,e,n)}}}),C.cssHooks.marginLeft=qt(g.reliableMarginLeft,function(t,e){return e?(parseFloat(S(t,"marginLeft"))||t.getBoundingClientRect().left-Nt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px":void 0}),C.cssHooks.marginRight=qt(g.reliableMarginRight,function(t,e){return e?Nt(t,{display:"inline-block"},S,[t,"marginRight"]):void 0}),C.each({margin:"",padding:"",border:"Width"},function(o,s){C.cssHooks[o+s]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[o+a[e]+s]=i[e]||i[e-2]||i[0];return n}}
vendor: 27,567 bytes, line 1
1,Ft.test(o)||(C.cssHooks[o+s].set=Vt)}),C.fn.extend({css:function(t,e){return u(this,function(t,e,n){var i,o,s={},r=0;if(C.isArray(e)){for(i=Lt(t),o=e.length;r<o;r++)s[e[r]]=C.css(t,e[r],!1,i);return s}return void 0!==n?C.style(t,e,n):C.css(t,e)},t,e,1<arguments.length)},show:function(){return Gt(this,!0)},hide:function(){return Gt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){m(this)?C(this).show():C(this).hide()})}}),((C.Tween=D).prototype={constructor:D,init:function(t,e,n,i,o,s){this.elem=t,this.prop=n,this.easing=o||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(C.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return(t&&t.get?t:D.propHooks._default).get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.options.duration?this.pos=e=C.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),(n&&n.set?n:D.propHooks._default).set(this),this}}).init.prototype=D.prototype,(D.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=C.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[C.cssProps[t.prop]]&&!C.cssHooks[t.prop]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=D.prototype.init,C.fx.step={};var E,Jt,I,te=/^(?:toggle|show|hide)$/,ee=/queueHooks$/;function ne(){return x.setTimeout(function(){E=void 0}),E=C.now()}function ie(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=a[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function oe(t,e,n){for(var i,o=(M.tweeners[e]||[]).concat(M.tweeners["*"]),s=0,r=o.length;s<r;s++)if(i=o[s].call(n,e,t))return i}function M(o,t,e){var n,s,i,r,a,l,c,d=0,u=M.prefilters.length,h=C.Deferred().always(function(){delete p.elem}),p=function(){if(s)return!1;for(var t=E||ne(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),n=0,i=f.tweens.length;n<i;n++)f.tweens[n].run(e);return h.notifyWith(o,[f,e,t]),e<1&&i?t:(h.resolveWith(o,[f]),!1)},f=h.promise({elem:o,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},e),originalProperties:t,originalOptions:e,startTime:E||ne(),duration:e.duration,tweens:[],createTween:function(t,e){e=C.Tween(o,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,n=t?f.tweens.length:0;if(!s){for(s=!0;e<n;e++)f.tweens[e].run(1);t?(h.notifyWith(o,[f,1,0]),h.resolveWith(o,[f,t])):h.rejectWith(o,[f,t])}return this}}),g=f.props,m=g,v=f.opts.specialEasing;for(i in m)if(r=C.camelCase(i),a=v[r],l=m[i],C.isArray(l)&&(a=l[1],l=m[i]=l[0]),i!==r&&(m[r]=l,delete m[i]),c=C.cssHooks[r],c&&"expand"in c)for(i in l=c.expand(l),delete m[r],l)i in m||(m[i]=l[i],v[i]=a);else v[r]=a;for(;d<u;d++)if(n=M.prefilters[d].call(f,o,g,f.opts))return C.isFunction(n.stop)&&(C._queueHooks(f.elem,f.opts.queue).stop=C.proxy(n.stop,n)),n;return C.map(g,oe,f),C.isFunction(f.opts.start)&&f.opts.start.call(o,f),C.fx.timer(C.extend(p,{elem:o,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}C.Animation=C.extend(M,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return at(n.elem,t,h.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,o=(t=C.isFunction(t)?(e=t,["*"]):t.match($)).length;i<o;i++)n=t[i],M.tweeners[n]=M.tweeners[n]||[],M.tweeners[n].unshift(e)},prefilters:[function(e,t,n){var i,o,s,r,a,l,c,d=this,u={},h=e.style,p=e.nodeType&&m(e),f=v.get(e,"fxshow");for(i in n.queue||(null==(a=C._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,C.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=C.css(e,"display"))?v.get(e,"olddisplay")||Pt(e.nodeName):c))&&"none"===C.css(e,"float")&&(h.display="inline-block"),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),t)if(o=t[i],te.exec(o)){if(delete t[i],s=s||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!f||void 0===f[i])continue;p=!0}u[i]=f&&f[i]||C.style(e,i)}else c=void 0;if(C.isEmptyObject(u))"inline"===("none"===c?Pt(e.nodeName):c)&&(h.display=c);else for(i in f?"hidden"in f&&(p=f.hidden):f=v.access(e,"fxshow",{}),s&&(f.hidden=!p),p?C(e).show():d.done(function(){C(e).hide()}),d.done(function(){for(var t in v.remove(e,"fxshow"),u)C.style(e,t,u[t])}),u)r=oe(p?f[i]:0,i,d),i in f||(f[i]=r.start,p&&(r.end=r.start,r.start="width"===i||"height"===i?1:0))}],prefilter:function(t,e){e?M.prefilters.unshift(t):M.prefilters.push(t)}}),C.speed=function(t,e,n){var i=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||C.isFunction(t)&&t,duration:t,easing:n&&e||e&&!C.isFunction(e)&&e};return i.duration=C.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in C.fx.speeds?C.fx.speeds[i.duration]:C.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){C.isFunction(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(t,e,n,i){return this.filter(m).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function o(){var t=M(this,C.extend({},e),r);(s||v.get(this,"finish"))&&t.stop(!0)}var s=C.isEmptyObject(e),r=C.speed(t,n,i);return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(o,t,s){function r(t){var e=t.stop;delete t.stop,e(s)}return"string"!=typeof o&&(s=t,t=o,o=void 0),t&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var t=!0,e=null!=o&&o+"queueHooks",n=C.timers,i=v.get(this);if(e)i[e]&&i[e].stop&&r(i[e]);else for(e in i)i[e]&&i[e].stop&&ee.test(e)&&r(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=o&&n[e].queue!==o||(n[e].anim.stop(s),t=!1,n.splice(e,1));!t&&s||C.dequeue(this,o)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var t,e=v.get(this),n=e[r+"queue"],i=e[r+"queueHooks"],o=C.timers,s=n?n.length:0;for(e.finish=!0,C.queue(this,r,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===r&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),C.each(["toggle","show","hide"],function(t,i){var o=C.fn[i];C.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?o.apply(this,arguments):this.animate(ie(i,!0),t,e,n)}}),C.each({slideDown:ie("show"),slideUp:ie("hide"),slideToggle:ie("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){C.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(E=C.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),E=void 0},C.fx.timer=function(t){C.timers.push(t),t()?C.fx.start():C.timers.pop()},C.fx.interval=13,C.fx.start=function(){Jt=Jt||x.setInterval(C.fx.tick,C.fx.interval)},C.fx.stop=function(){x.clearInterval(Jt),Jt=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(i,t){return i=C.fx&&C.fx.speeds[i]||i,this.queue(t=t||"fx",function(t,e){var n=x.setTimeout(t,i);e.stop=function(){x.clearTimeout(n)}})},I=_.createElement("input"),e=_.createElement("select"),t=e.appendChild(_.createElement("option")),I.type="checkbox",g.checkOn=""!==I.value,g.optSelected=t.selected,e.disabled=!0,g.optDisabled=!t.disabled,(I=_.createElement("input")).value="t",I.type="radio",g.radioValue="t"===I.value;var se,A=C.expr.attrHandle,re=(C.fn.extend({attr:function(t,e){return u(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,n){var i,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?C.prop(t,e,n):(1===s&&C.isXMLDoc(t)||(e=e.toLowerCase(),o=C.attrHooks[e]||(C.expr.match.bool.test(e)?se:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(o&&"get"in o&&null!==(i=o.get(t,e)))&&null==(i=C.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){var n;if(!g.radioValue&&"radio"===e&&C.nodeName(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}},removeAttr:function(t,e){var n,i,o=0,s=e&&e.match($);if(s&&1===t.nodeType)for(;n=s[o++];)i=C.propFix[n]||n,C.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),se={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var s=A[e]||C.find.attr;A[e]=function(t,e,n){var i,o;return n||(o=A[e],A[e]=i,i=null!=s(t,e,n)?e.toLowerCase():null,A[e]=o),i}}),/^(?:input|select|textarea|button)$/i),ae=/^(?:a|area)$/i,le=(C.fn.extend({prop:function(t,e){return u(this,C.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,n){var i,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&C.isXMLDoc(t)||(e=C.propFix[e]||e,o=C.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):re.test(t.nodeName)||ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g);function P(t){return t.getAttribute&&t.getAttribute("class")||""}C.fn.extend({addClass:function(e){var t,n,i,o,s,r,a=0;if(C.isFunction(e))return this.each(function(t){C(this).addClass(e.call(this,t,P(this)))});if("string"==typeof e&&e)for(t=e.match($)||[];n=this[a++];)if(r=P(n),i=1===n.nodeType&&(" "+r+" ").replace(le," ")){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(r=C.trim(i))&&n.setAttribute("class",r)}return this},removeClass:function(e){var t,n,i,o,s,r,a=0;if(C.isFunction(e))return this.each(function(t){C(this).removeClass(e.call(this,t,P(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match($)||[];n=this[a++];)if(r=P(n),i=1===n.nodeType&&(" "+r+" ").replace(le," ")){for(s=0;o=t[s++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(r=C.trim(i))&&n.setAttribute("class",r)}return this},toggleClass:function(o,e){var s=typeof o;return"boolean"==typeof e&&"string"==s?e?this.addClass(o):this.removeClass(o):C.isFunction(o)?this.each(function(t){C(this).toggleClass(o.call(this,t,P(this),e),e)}):this.each(function(){var t,e,n,i;if("string"==s)for(e=0,n=C(this),i=o.match($)||[];t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==o&&"boolean"!=s||((t=P(this))&&v.set(this,"__className__",t),!this.setAttribute)||this.setAttribute("class",!t&&!1!==o&&v.get(this,"__className__")||"")})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+P(e)+" ").replace(le," ").indexOf(i))return!0;return!1}});var ce=/\r/g,de=(C.fn.extend({val:function(e){var n,t,i,o=this[0];return arguments.length?(i=C.isFunction(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,C(this).val()):e)?t="":"number"==typeof t?t+="":C.isArray(t)&&(t=C.map(t,function(t){return null==t?"":t+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):o?(n=C.valHooks[o.type]||C.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(ce,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){return C.trim(t.value)}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,s=o?null:[],r=o?i+1:n.length,a=i<0?r:o?i:0;a<r;a++)if(((e=n[a]).selected||a===i)&&(g.optDisabled?!e.disabled:null===e.getAttribute("disabled"))&&(!e.parentNode.disabled||!C.nodeName(e.parentNode,"optgroup"))){if(e=C(e).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,s=C.makeArray(e),r=o.length;r--;)((i=o[r]).selected=-1<C.inArray(C.valHooks.option.get(i),s))&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){return C.isArray(e)?t.checked=-1<C.inArray(C(t).val(),e):void 0}},g.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),/^(?:focusinfocus|focusoutblur)$/),L=(C.extend(C.event,{trigger:function(t,e,n,i){var o,s,r,a,l,c,d=[n||_],u=H.call(t,"type")?t.type:t,h=H.call(t,"namespace")?t.namespace.split("."):[],p=s=n=n||_;if(3!==n.nodeType&&8!==n.nodeType&&!de.test(u+C.event.triggered)&&(-1<u.indexOf(".")&&(u=(h=u.split(".")).shift(),h.sort()),a=u.indexOf(":")<0&&"on"+u,(t=t[C.expando]?t:new C.Event(u,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),c=C.event.special[u]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!C.isWindow(n)){for(r=c.delegateType||u,de.test(r+u)||(p=p.parentNode);p;p=p.parentNode)d.push(p),s=p;s===(n.ownerDocument||_)&&d.push(s.defaultView||s.parentWindow||x)}for(o=0;(p=d[o++])&&!t.isPropagationStopped();)t.type=1<o?r:c.bindType||u,(l=(v.get(p,"events")||{})[t.type]&&v.get(p,"handle"))&&l.apply(p,e),(l=a&&p[a])&&l.apply&&f(p)&&(t.result=l.apply(p,e),!1===t.result)&&t.preventDefault();return t.type=u,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(d.pop(),e)||!f(n)||a&&C.isFunction(n[u])&&!C.isWindow(n)&&((s=n[a])&&(n[a]=null),n[C.event.triggered=u](),C.event.triggered=void 0,s)&&(n[a]=s),t.result}},simulate:function(t,e,n){t=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(t,null,e),t.isDefaultPrevented()&&n.preventDefault()}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?C.event.trigger(t,e,n,!0):void 0}}),C.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,n){C.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),C.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),g.focusin="onfocusin"in x,g.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,i){function o(t){C.event.simulate(i,t.target,C.event.fix(t))}C.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=v.access(t,i);e||t.addEventListener(n,o,!0),v.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=v.access(t,i)-1;e?v.access(t,i,e):(t.removeEventListener(n,o,!0),v.remove(t,i))}}}),x.location),ue=C.now(),he=/\?/,pe=(C.parseJSON=function(t){return JSON.parse(t+"")},C.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e},/#.*$/),fe=/([?&])_=[^&]*/,ge=/^(.*?):[ \t]*([^\r\n]*)$/gm,me=/^(?:GET|HEAD)$/,ve=/^\/\//,ye={},be={},we="*/".concat("*"),xe=_.createElement("a");function _e(s){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,o=t.toLowerCase().match($)||[];if(C.isFunction(e))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(s[n]=s[n]||[]).unshift(e)):(s[n]=s[n]||[]).push(e)}}function Ce(e,i,o,s){var r={},a=e===be;function l(t){var n;return r[t]=!0,C.each(e[t]||[],function(t,e){e=e(i,o,s);return"string"!=typeof e||a||r[e]?a?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!r["*"]&&l("*")}function $e(t,e){var n,i,o=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i=i||{})[n]=e[n]);return i&&C.extend(!0,t,i),t}xe.href=L.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:L.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(L.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":we,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":C.parseJSON,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?$e($e(t,C.ajaxSettings),e):$e(C.ajaxSettings,t)},ajaxPrefilter:_e(ye),ajaxTransport:_e(be),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,c,d,n,u,h,i,p=C.ajaxSetup({},e=e||{}),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?C(f):C.event,m=C.Deferred(),v=C.Callbacks("once memory"),y=p.statusCode||{},o={},s={},b=0,r="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!n)for(n={};e=ge.exec(d);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?d:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=s[n]=s[n]||t,o[t]=e),this},overrideMimeType:function(t){return b||(p.mimeType=t),this},statusCode:function(t){if(t)if(b<2)for(var e in t)y[e]=[y[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){t=t||r;return l&&l.abort(t),a(0,t),this}};if(m.promise(w).complete=v.add,w.success=w.done,w.error=w.fail,p.url=((t||p.url||L.href)+"").replace(pe,"").replace(ve,L.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=C.trim(p.dataType||"*").toLowerCase().match($)||[""],null==p.crossDomain){t=_.createElement("a");try{t.href=p.url,t.href=t.href,p.crossDomain=xe.protocol+"//"+xe.host!=t.protocol+"//"+t.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Ce(ye,p,e,w),2!==b){for(i in(h=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!me.test(p.type),c=p.url,p.hasContent||(p.data&&(c=p.url+=(he.test(c)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=fe.test(c)?c.replace(fe,"$1_="+ue++):c+(he.test(c)?"&":"?")+"_="+ue++)),p.ifModified&&(C.lastModified[c]&&w.setRequestHeader("If-Modified-Since",C.lastModified[c]),C.etag[c])&&w.setRequestHeader("If-None-Match",C.etag[c]),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+we+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(f,w,p)||2===b))return w.abort();for(i in r="abort",{success:1,error:1,complete:1})w[i](p[i]);if(l=Ce(be,p,e,w)){if(w.readyState=1,h&&g.trigger("ajaxSend",[w,p]),2===b)return w;p.async&&0<p.timeout&&(u=x.setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,l.send(o,a)}catch(t){if(!(b<2))throw t;a(-1,t)}}else a(-1,"No Transport")}return w;function a(t,e,n,i){var o,s,r,a=e;2!==b&&(b=2,u&&x.clearTimeout(u),l=void 0,d=i||"",w.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(r=function(t,e,n){for(var i,o,s,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)s=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){s=o;break}r=r||o}s=s||r}return s?(s!==l[0]&&l.unshift(s),n[s]):void 0}(p,w,n)),r=function(t,e,n,i){var o,s,r,a,l,c={},d=t.dataTypes.slice();if(d[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(s=d.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=d.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if(a=o.split(" "),a[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],d.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 "+s}}}return{state:"success",data:e}}(p,r,w,i),i?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(C.lastModified[c]=n),n=w.getResponseHeader("etag"))&&(C.etag[c]=n),204===t||"HEAD"===p.type?a="nocontent":304===t?a="notmodified":(a=r.state,o=r.data,i=!(s=r.error))):(s=a,(t||!a)&&(a="error",t<0)&&(t=0)),w.status=t,w.statusText=(e||a)+"",i?m.resolveWith(f,[o,a,w]):m.rejectWith(f,[w,a,s]),w.statusCode(y),y=void 0,h&&g.trigger(i?"ajaxSuccess":"ajaxError",[w,p,i?o:s]),v.fireWith(f,[w,a]),h)&&(g.trigger("ajaxComplete",[w,p]),--C.active||C.event.trigger("ajaxStop"))}},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,o){C[o]=function(t,e,n,i){return C.isFunction(e)&&(i=i||n,n=e,e=void 0),C.ajax(C.extend({url:t,type:o,dataType:i,data:e,success:n},C.isPlainObject(t)&&t))}}),C._evalUrl=function(t){return C.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(e){var t;return C.isFunction(e)?this.each(function(t){C(this).wrapAll(e.call(this,t))}):(this[0]&&(t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return C.isFunction(n)?this.each(function(t){C(this).wrapInner(n.call(this,t))}):this.each(function(){var t=C(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=C.isFunction(e);return this.each(function(t){C(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){C.nodeName(this,"body")||C(this).replaceWith(this.childNodes)}).end()}}),C.expr.filters.hidden=function(t){return!C.expr.filters.visible(t)},C.expr.filters.visible=function(t){return 0<t.offsetWidth||0<t.offsetHeight||0<t.getClientRects().length};var ke=/%20/g,Te=/\[\]$/,Se=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;C.param=function(t,e){function n(t,e){e=C.isFunction(e)?e():null==e?"":e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}var i,o=[];if(void 0===e&&(e=C.ajaxSettings&&C.ajaxSettings.traditional),C.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,o,s){if(C.isArray(t))C.each(t,function(t,e){o||Te.test(i)?s(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,o,s)});else if(o||"object"!==C.type(t))s(i,t);else for(var e in t)n(i+"["+e+"]",t[e],o,s)}(i,t[i],e,n);return o.join("&").replace(ke,"+")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&Ee.test(this.nodeName)&&!De.test(t)&&(this.checked||!lt.test(t))}).map(function(t,e){var n=C(this).val();return null==n?null:C.isArray(n)?C.map(n,function(t){return{name:e.name,value:t.replace(Se,"\r\n")}}):{name:e.name,value:n.replace(Se,"\r\n")}}).get()}}),C.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var Ie={0:200,1223:204},N=C.ajaxSettings.xhr(),Me=(g.cors=!!N&&"withCredentials"in N,g.ajax=N=!!N,C.ajaxTransport(function(o){var s,r;return g.cors||N&&!o.crossDomain?{send:function(t,e){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);s=function(t){return function(){s&&(s=r=i.onload=i.onerror=i.onabort=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Ie[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=s(),r=i.onerror=s("error"),void 0!==i.onabort?i.onabort=r:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){s&&r()})},s=s("abort");try{i.send(o.hasContent&&o.data||null)}catch(t){if(s)throw t}},abort:function(){s&&s()}}:void 0}),C.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 C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(n){var i,o;if(n.crossDomain)return{send:function(t,e){i=C("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(t){i.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),_.head.appendChild(i[0])},abort:function(){o&&o()}}}),[]),Ae=/(=)\?(?=&|$)|\?\?/,Pe=(C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Me.pop()||C.expando+"_"+ue++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,s,r=!1!==t.jsonp&&(Ae.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ae.test(t.data)&&"data");return r||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=C.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(Ae,"$1"+i):!1!==t.jsonp&&(t.url+=(he.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||C.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=x[i],x[i]=function(){s=arguments},n.always(function(){void 0===o?C(x).removeProp(i):x[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Me.push(i)),s&&C.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),g.createHTMLDocument=((e=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),C.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||(g.createHTMLDocument?_.implementation.createHTMLDocument(""):_);var i=Q.exec(t),n=!n&&[];return i?[e.createElement(i[1])]:(i=pt([t],e,n),n&&n.length&&C(n).remove(),C.merge([],i.childNodes))},C.fn.load);function Le(t){return C.isWindow(t)?t:9===t.nodeType&&t.defaultView}C.fn.load=function(t,e,n){var i,o,s,r,a;return"string"!=typeof t&&Pe?Pe.apply(this,arguments):(r=this,-1<(a=t.indexOf(" "))&&(i=C.trim(t.
1slice(a)),t=t.slice(0,a)),C.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<r.length&&C.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){s=arguments,r.html(i?C("<div>").append(C.parseHTML(t)).find(i):t)}).always(n&&function(t,e){r.each(function(){n.apply(r,s||[t.responseText,e,t])})}),this)},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,n){var i,o,s,r,a=C.css(t,"position"),l=C(t),c={};"static"===a&&(t.style.position="relative"),s=l.offset(),i=C.css(t,"top"),r=C.css(t,"left"),a=("absolute"===a||"fixed"===a)&&-1<(i+r).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(i)||0,parseFloat(r)||0),null!=(e=C.isFunction(e)?e.call(t,n,C.extend({},s)):e).top&&(c.top=e.top-s.top+o),null!=e.left&&(c.left=e.left-s.left+a),"using"in e?e.using.call(t,c):l.css(c)}},C.fn.extend({offset:function(e){var t,n,i,o;return arguments.length?void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)}):(i={top:0,left:0},(o=(n=this[0])&&n.ownerDocument)?(t=o.documentElement,C.contains(t,n)?(i=n.getBoundingClientRect(),n=Le(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0)},position:function(){var t,e,n,i;if(this[0])return n=this[0],i={top:0,left:0},"fixed"===C.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),(i=C.nodeName(t[0],"html")?i:t.offset()).top+=C.css(t[0],"borderTopWidth",!0)-t.scrollTop(),i.left+=C.css(t[0],"borderLeftWidth",!0)-t.scrollLeft()),{top:e.top-i.top-C.css(n,"marginTop",!0),left:e.left-i.left-C.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||T})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var s="pageYOffset"===o;C.fn[e]=function(t){return u(this,function(t,e,n){var i=Le(t);return void 0===n?i?i[o]:t[e]:void(i?i.scrollTo(s?i.pageXOffset:n,s?n:i.pageYOffset):t[e]=n)},e,t,arguments.length)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=qt(g.pixelPosition,function(t,e){return e?(e=S(t,n),Rt.test(e)?C(t).position()[n]+"px":e):void 0})}),C.each({Height:"height",Width:"width"},function(s,r){C.each({padding:"inner"+s,content:r,"":"outer"+s},function(i,t){C.fn[t]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),o=i||(!0===t||!0===e?"margin":"border");return u(this,function(t,e,n){var i;return C.isWindow(t)?t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?C.css(t,e,o):C.style(t,e,n,o)},r,n?t:void 0,n,null)}})}),C.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),C.fn.andSelf=C.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Ne=x.jQuery,ze=x.$;return C.noConflict=function(t){return x.$===C&&(x.$=ze),t&&x.jQuery===C&&(x.jQuery=Ne),C},z||(x.jQuery=x.$=C),C}),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){function t(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","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},x.extend(this._defaults,this.regional[""]),this.regional.en=x.extend(!0,{},this.regional[""]),this.regional["en-US"]=x.extend(!0,{},this.regional.en),this.dpDiv=n(x("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){x(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,s)}function s(){x.datepicker._isDisabledDatepicker((r.inline?r.dpDiv.parent():r.input)[0])||(x(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),x(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).addClass("ui-datepicker-next-hover"))}function l(t,e){for(var n in x.extend(t,e),e)null==e[n]&&(t[n]=e[n])}var r;x.ui=x.ui||{},x.ui.version="1.12.1",x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.extend(x.ui,{datepicker:{version:"1.12.1"}}),x.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return l(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var n,i=t.nodeName.toLowerCase(),o="div"===i||"span"===i;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(n=this._newInst(x(t),o)).settings=x.extend({},e||{}),"input"===i?this._connectDatepicker(t,n):o&&this._inlineDatepicker(t,n)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?n(x("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var n=x(t);e.append=x([]),e.trigger=x([]),n.hasClass(this.markerClassName)||(this._attachments(n,e),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),x.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var n,i=this._get(e,"appendText"),o=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=x("<span class='"+this._appendClass+"'>"+i+"</span>"),t[o?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(e,"buttonText"),n=this._get(e,"buttonImage"),e.trigger=x(this._get(e,"buttonImageOnly")?x("<img/>").addClass(this._triggerClass).attr({src:n,alt:i,title:i}):x("<button type='button'></button>").addClass(this._triggerClass).html(n?x("<img/>").attr({src:n,alt:i,title:i}):i)),t[o?"before":"after"](e.trigger),e.trigger.on("click",function(){return x.datepicker._datepickerShowing&&x.datepicker._lastInput===t[0]?x.datepicker._hideDatepicker():(x.datepicker._datepickerShowing&&x.datepicker._lastInput!==t[0]&&x.datepicker._hideDatepicker(),x.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,n,i,o,s,r;this._get(t,"autoSize")&&!t.inline&&(s=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(s.setMonth((e=function(t){for(o=i=n=0;t.length>
vendor: 4,300 bytes, line 1
1o;o++)t[o].length>n&&(n=t[o].length,i=o);return i})(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length))},_inlineDatepicker:function(t,e){var n=x(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(e.dpDiv),x.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,n,i,o){var s,r=this._dialogInst;return r||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=x("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),x("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},x.data(this._dialogInput[0],"datepicker",r)),l(r.settings,i||{}),e=e&&e.constructor===Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(s=document.documentElement.clientWidth,i=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,o=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+e,i/2-150+o]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),x.blockUI&&x.blockUI(this.dpDiv),x.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var e,n=x(t),i=x.data(t,"datepicker");n.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),x.removeData(t,"datepicker"),"input"===e?(i.append.remove(),i.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||n.removeClass(this.markerClassName).empty(),r===i)&&(r=null)},_enableDatepicker:function(e){var t,n=x(e),i=x.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,n=x(e),i=x.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return x.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,n){var i,o,s,r,a=this._getInst(t);return 2===arguments.length&&"string"==typeof e?"defaults"===e?x.extend({},x.datepicker._defaults):a?"all"===e?x.extend({},a.settings):this._get(a,e):null:(i=e||{},"string"==typeof e&&((i={})[e]=n),void(a&&(this._curInst===a&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(a,"min"),r=this._getMinMaxDate(a,"max"),l(a.settings,i),null!==s&&void 0!==i.dateFormat&&void 0===i.minDate&&(a.settings.minDate=this._formatDate(a,s)),null!==r&&void 0!==i.dateFormat&&void 0===i.maxDate&&(a.settings.maxDate=this._formatDate(a,r)),"disabled"in i&&(i.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(x(t),a),this._autoSize(a),this._setDate(a,o),this._updateAlternate(
vendor: 4,760 bytes, line 1
1a),this._updateDatepicker(a))))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,n,i=x.datepicker._getInst(t.target),o=!0,s=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,x.datepicker._datepickerShowing)switch(t.keyCode){case 9:x.datepicker._hideDatepicker(),o=!1;break;case 13:return(n=x("td."+x.datepicker._dayOverClass+":not(."+x.datepicker._currentClass+")",i.dpDiv))[0]&&x.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,n[0]),(n=x.datepicker._get(i,"onSelect"))?(e=x.datepicker._formatDate(i),n.apply(i.input?i.input[0]:null,[e,i])):x.datepicker._hideDatepicker(),!1;case 27:x.datepicker._hideDatepicker();break;case 33:x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(i,"stepBigMonths"):-x.datepicker._get(i,"stepMonths"),"M");break;case 34:x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(i,"stepBigMonths"):+x.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&x.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&x.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,s?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(i,"stepBigMonths"):-x.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,s?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(i,"stepBigMonths"):+x.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?x.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,n=x.datepicker._getInst(t.target);return x.datepicker._get(n,"constrainInput")?(n=x.datepicker._possibleChars(x.datepicker._get(n,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!n||-1<n.indexOf(e)):void 0},_doKeyUp:function(t){t=x.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{x.datepicker.parseDate(x.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,x.datepicker._getFormatConfig(t))&&(x.datepicker._setDateFromField(t),x.datepicker._updateAlternate(t),x.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,n,i,o;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=x("input",t.parentNode)[0]),x.datepicker._isDisabledDatepicker(t)||x.datepicker._lastInput===t||(o=x.datepicker._getInst(t),x.datepicker._curInst&&x.datepicker._curInst!==o&&(x.datepicker._curInst.dpDiv.stop(!0,!0),o)&&x.datepicker._datepickerShowing&&x.datepicker._hideDatepicker(x.datepicker._curInst.input[0]),!1!==(n=(n=x.datepicker._get(o,"beforeShow"))?n.apply(t,[t,o]):{})&&(l(o.settings,n),o.lastVal=null,x.datepicker._lastInput=t,x.datepicker._setDateFromField(o),x.datepicker._inDialog&&(t.value=""),x.datepicker._pos||(x.datepicker._pos=x.datepicker._findPos(t),x.datepicker._pos[1]+=t.offsetHeight),e=!1,x(t).parents().each(function(){return!(e|="fixed"===x(this).css("position"))}),n={left:x.datepicker._pos[0],top:x.datepicker._pos[1]},x.datepicker._pos=null,o.dpDiv.empty(),o.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),x.datepicker._updateDatepicker(o),n=x.datepicker._checkOffset(o,n,e),o.dpDiv.css({position:x.datepicker._inDialog&&x.blockUI?"static":e?"fixed":"absolute",display:"none",left:n.left+"px",top:n.top+"px"}),o.inline||(n=x.datepicker._get(o,"showAnim"),i=x.datepicker._get(o,"duration"),o.dpDiv.css("z-index",function(t){for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0}(x(t))+1),x.datepicker._datepickerShowing=!0,x.effects&&x.effects.effect[n]?o.dpDiv.show(n,x.datepicker._get(o,"showOptions"),i):o.dpDiv[n||"show"](n?i:null),x.datepicker._shouldFocusInput(o)&&o.input.trigger("focus"),x.datepicker._curInst=o)))},_updateDatepicker:function(t){this.maxRows=4,(r=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);
vendor: 4,691 bytes, line 1
1var e,n=this._getNumberOfMonths(t),i=n[1],o=t.dpDiv.find("."+this._dayOverClass+" a");0<o.length&&s.apply(o.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&t.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),t.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===x.datepicker._curInst&&x.datepicker._datepickerShowing&&x.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,n){var i=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),s=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(n?0:x(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:x(document).scrollTop());return e.left-=this._get(t,"isRTL")?i-s:0,e.left-=n&&e.left===t.input.offset().left?x(document).scrollLeft():0,e.top-=n&&e.top===t.input.offset().top+r?x(document).scrollTop():0,e.left-=Math.min(e.left,e.left+i>a&&i<a?Math.abs(e.left+i-a):0),e.top-=Math.min(e.top,e.top+o>l&&o<l?Math.abs(o+r):0),e},_findPos:function(t){for(var e=this._getInst(t),n=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||x.expr.filters.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return[(e=x(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,n,i=this._curInst;!i||t&&i!==x.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(i,"showAnim"),n=this._get(i,"duration"),e=function(){x.datepicker._tidyDialog(i)},x.effects&&(x.effects.effect[t]||x.effects[t])?i.dpDiv.hide(t,x.datepicker._get(i,"showOptions"),n,e):i.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?n:null,e),t||e(),this._datepickerShowing=!1,(n=this._get(i,"onClose"))&&n.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),x.blockUI)&&(x.unblockUI(),x("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;x.datepicker._curInst&&(t=x(t.target),e=x.datepicker._getInst(t[0]),!(t[0].id===x.datepicker._mainDivId||0!==t.parents("#"+x.datepicker._mainDivId).length||t.hasClass(x.datepicker.markerClassName)||t.closest("."+x.datepicker._triggerClass).length||!x.datepicker._datepickerShowing||x.datepicker._inDialog&&x.blockUI)||t.hasClass(x.datepicker.markerClassName)&&x.datepicker._curInst!==e)&&x.datepicker._hideDatepicker()},_adjustDate:function(t,e,n){var t=x(t),i=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(i,e+("M"===n?this._get(i,"showCurrentAtPos"):0),n),this._updateDatepicker(i))},_gotoToday:function(t){var e,t=x(t),n=this._getInst(t[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(e=new Date,n.selectedDay=e.getDate(),n.drawMonth=n.selectedMonth=e.getMonth(),n.drawYear=n.selectedYear=e.getFullYear()),this._notifyChange(n),this._adjustDate(t)},_selectMonthYear:function(t,e,n){var t=x(t),i=this._getInst(t[0]);i["selected"+("M"===n?"Month":"Year")]=i["draw"+("M"===n?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(t)},_selectDay:function(t,e,n,i){var o=x(t);x(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((o=this._getInst(o[0])).selectedDay=o.currentDay=x("a",i).html(),o.selectedMonth=o.currentMonth=e,o.selectedYear=o.currentYear=n,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){t=x(t);this._selectDate(t,"")},_selectDate:function(t,e){var n,t=x(t),t=this._getInst(t[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(n=this._get(t,"onSelect"))?n.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,n,i=this._get(t,"altField");i&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),e=this._getDate(t),n=this.formatDate(n,e,this._getFormatConfig(t)),x(i).val(n))}
1,noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e,t=new Date(t.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,o,t){if(null==e||null==o)throw"Invalid arguments";if(""===(o="object"==typeof o?""+o:o+""))return null;function n(t){var e=b(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=o.substring(l).match(t))return l+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+l}function i(t,e,n){var i=-1,t=x.map(b(t)?n:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(x.each(t,function(t,e){var n=e[1];return o.substr(l,n.length).toLowerCase()===n.toLowerCase()?(i=e[0],l+=n.length,!1):void 0}),-1!==i)return i+1;throw"Unknown name at position "+l}function s(){if(o.charAt(l)!==e.charAt(w))throw"Unexpected literal at position "+l;l++}for(var r,a,l=0,c=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,u=(t?t.dayNames:null)||this._defaults.dayNames,h=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,p=(t?t.monthNames:null)||this._defaults.monthNames,f=-1,g=-1,m=-1,v=-1,y=!1,b=function(t){t=e.length>w+1&&e.charAt(w+1)===t;return t&&w++,t},w=0;e.length>w;w++)if(y)"'"!==e.charAt(w)||b("'")?s():y=!1;else switch(e.charAt(w)){case"d":m=n("d");break;case"D":i("D",d,u);break;case"o":v=n("o");break;case"m":g=n("m");break;case"M":g=i("M",h,p);break;case"y":f=n("y");break;case"@":f=(a=new Date(n("@"))).getFullYear(),g=a.getMonth()+1,m=a.getDate();break;case"!":f=(a=new Date((n("!")-this._ticksTo1970)/1e4)).getFullYear(),g=a.getMonth()+1,m=a.getDate();break;case"'":b("'")?s():y=!0;break;default:s()}if(o.length>l&&(t=o.substr(l),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=c?0:-100)),-1<v)for(g=1,m=v;!(m<=(r=this._getDaysInMonth(f,g-1)));)g++,m-=r;if((a=this._daylightSavingAdjust(new Date(f,g-1,m))).getFullYear()!==f||a.getMonth()+1!==g||a.getDate()!==m)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:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,n){if(!t)return"";function i(t,e,n){var i=""+e;if(d(t))for(;n>i.length;)i="0"+i;return i}function o(t,e,n,i){return(d(t)?i:n)[e]}var s,r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,l=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,c=(n?n.monthNames:null)||this._defaults.monthNames,d=function(t){t=e.length>s+1&&e.charAt(s+1)===t;return t&&s++,t},u="",h=!1;if(t)for(s=0;e.length>s;s++)if(h)"'"!==e.charAt(s)||d("'")?u+=e.charAt(s):h=!1;else switch(e.charAt(s)){case"d":u+=i("d",t.getDate(),2);break;case"D":u+=o("D",t.getDay(),r,a);break;case"o":u+=i("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=i("m",t.getMonth()+1,2);break;case"M":u+=o("M",t.getMonth(),l,c);break;case"y":u+=d("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":d("'")?u+="'":h=!0;break;default:u+=e.charAt(s)}return u},_possibleChars:function(e){function t(t){return(t=e.length>o+1&&e.charAt(o+1)===t)&&o++,t}for(var n="",i=!1,o=0;e.length>
vendor: 9,582 bytes, line 1
1o;o++)if(i)"'"!==e.charAt(o)||t("'")?n+=e.charAt(o):i=!1;else switch(e.charAt(o)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":t("'")?n+="'":i=!0;break;default:n+=e.charAt(o)}return n},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),s=o,r=this._getFormatConfig(t);try{s=this.parseDate(n,i,r)||o}catch(t){i=e?"":i}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=i?s.getDate():0,t.currentMonth=i?s.getMonth():0,t.currentYear=i?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(a,t,e){var n,i=null==t||""===t?e:"string"==typeof t?function(t){try{return x.datepicker.parseDate(x.datepicker._get(a,"dateFormat"),t,x.datepicker._getFormatConfig(a))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?x.datepicker._getDate(a):null)||new Date,n=e.getFullYear(),i=e.getMonth(),o=e.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=s.exec(t);r;){switch(r[2]||"d"){case"d":case"D":o+=parseInt(r[1],10);break;case"w":case"W":o+=7*parseInt(r[1],10);break;case"m":case"M":i+=parseInt(r[1],10),o=Math.min(o,x.datepicker._getDaysInMonth(n,i));break;case"y":case"Y":n+=parseInt(r[1],10),o=Math.min(o,x.datepicker._getDaysInMonth(n,i))}r=s.exec(t)}return new Date(n,i,o)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(n=new Date).setDate(n.getDate()+i),n):new Date(t.getTime());return(i=i&&"Invalid Date"==""+i?e:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var i=!e,o=t.selectedMonth,s=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),o===t.selectedMonth&&s===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){x.datepicker._adjustDate(n,-e,"M")},next:function(){x.datepicker._adjustDate(n,+e,"M")},hide:function(){x.datepicker._hideDatepicker()},today:function(){x.datepicker._gotoToday(n)},selectDay:function(){return x.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return x.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return x.datepicker._selectMonthYear(n,this,"Y"),!1}};x(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,i,o,s,z,O,j,F,r,a,R,l,c,d,u,h,p,f,g,m,v,H,y,b,w,x,q,W,_,C,$,k=new Date,B=this._daylightSavingAdjust(new Date(k.getFullYear(),k.getMonth(),k.getDate())),T=this._get(t,"isRTL"),k=this._get(t,"showButtonPanel"),S=this._get(t,"hideIfNoPrevNext"),D=this._get(t,"navigationAsDateFormat"),E=this._getNumberOfMonths(t),I=this._get(t,"showCurrentAtPos"),M=this._get(t,"stepMonths"),Y=1!==E[0]||1!==E[1],U=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),A=this._getMinMaxDate(t,"min"),P=this._getMinMaxDate(t,"max"),L=t.drawMonth-I,N=t.drawYear;if(L<0&&(L+=12,N--),P)for(e=this._daylightSavingAdjust(new Date(P.getFullYear(),P.getMonth()-E[0]*E[1]+1,P.getDate())),e=A&&e<A?A:e;this._daylightSavingAdjust(new Date(N,L,1))>e;)--L<0&&(L=11,N--);for(t.drawMonth=L,t.drawYear=N,I=this._get(t,"prevText"),I=D?this.formatDate(I,this._daylightSavingAdjust(new Date(N,L-M,1)),this._getFormatConfig(t)):I,n=this._canAdjustMonth(t,-1,N,L)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+I+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"e":"w")+"'>"+I+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+I+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"e":"w")+"'>"+I+"</span></a>",I=this._get(t,"nextText"),I=D?this.formatDate(I,this._daylightSavingAdjust(new Date(N,L+M,1)),this._getFormatConfig(t)):I,i=this._canAdjustMonth(t,1,N,L)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+I+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"w":"e")+"'>"+I+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+I+"'><span class='ui-icon ui-icon-circle-triangle-"+(T?"w":"e")+"'>"+I+"</span></a>",M=this._get(t,"currentText"),S=this._get(t,"gotoCurrent")&&t.currentDay?U:B,M=D?this.formatDate(M,S,this._getFormatConfig(t)):M,I=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>",D=k?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(T?I:"")+(this._isInRange(t,S)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+M+"</button>":"")+(T?"":I)+"</div>":"",o=parseInt(this._get(t,"firstDay"),10),o=isNaN(o)?0:o,s=this._get(t,"showWeek"),z=this._get(t,"dayNames"),O=this._get(t,"dayNamesMin"),j=this._get(t,"monthNames"),F=this._get(t,"monthNamesShort"),r=this._get(t,"beforeShowDay"),a=this._get(t,"showOtherMonths"),R=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),c="",u=0;E[0]>u;u++){for(h="",this.maxRows=4,p=0;E[1]>p;p++){if(f=this._daylightSavingAdjust(new Date(N,L,t.selectedDay)),g=" ui-corner-all",m="",Y){if(m+="<div class='ui-datepicker-group",1<E[1])switch(p){case 0:m+=" ui-datepicker-group-first",g=" ui-corner-"+(T?"right":"left");break;case E[1]-1:m+=" ui-datepicker-group-last",g=" ui-corner-"+(T?"left":"right");break;default:m+=" ui-datepicker-group-middle",g=""}m+="'>"}for(m+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+g+"'>"+(/all|left/.test(g)&&0===u?T?i:n:"")+(/all|right/.test(g)&&0===u?T?n:i:"")+this._generateMonthYearHeader(t,L,N,A,P,0<u||0<p,j,F)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=s?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",d=0;d<7;d++)v+="<th scope='col'"+(5<=(d+o+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+z[H=(d+o)%7]+"'>"+O[H]+"</span></th>";for(m+=v+"</tr></thead><tbody>",b=this._getDaysInMonth(N,L),N===t.selectedYear&&L===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,b)),y=(this._getFirstDayOfMonth(N,L)-o+7)%7,b=Math.ceil((y+b)/7),w=Y&&this.maxRows>b?this.maxRows:b,this.maxRows=w,x=this._daylightSavingAdjust(new Date(N,L,1-y)),q=0;q<w;q++){for(m+="<tr>",W=s?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(x)+"</td>":"",d=0;d<7;d++)_=r?r.apply(t.input?t.input[0]:null,[x]):[!0,""],$=(C=x.getMonth()!==L)&&!R||!_[0]||A&&x<A||P&&P<x,W+="<td class='"+(5<=(d+o+6)%7?" ui-datepicker-week-end":"")+(C?" ui-datepicker-other-month":"")+(x.getTime()===f.getTime()&&L===t.selectedMonth&&t._keyEvent||l.getTime()===x.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+($?" "+this._unselectableClass+" ui-state-disabled":"")+(C&&!a?"":" "+_[1]+(x.getTime()===U.getTime()?" "+this._currentClass:"")+(x.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(C&&!a||!_[2]?"":" title='"+_[2].replace(/'/g,"&#39;")+"'")+($?"":" data-handler='selectDay' data-event='click' data-month='"+x.getMonth()+"' data-year='"+x.getFullYear()+"'")+">"+(C&&!a?"&#xa0;":$?"<span class='ui-state-default'>"+x.getDate()+"</span>":"<a class='ui-state-default"+(x.getTime()===B.getTime()?" ui-state-highlight":"")+(x.getTime()===U.getTime()?" ui-state-active":"")+(C?" ui-priority-secondary":"")+"' href='#'>"+x.getDate()+"</a>")+"</td>",x.setDate(x.getDate()+1),x=this._daylightSavingAdjust(x);m+=W+"</tr>"}11<++L&&(L=0,N++),h+=m+="</tbody></table>"+(Y?"</div>"+(0<E[0]&&p===E[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}c+=h}return c+=D,t._keyEvent=!1,c},_generateMonthYearHeader:function(t,e,n,i,o,s,r,a){var l,c,d,u,h,p,f,g=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(s||!g)b+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=i&&i.getFullYear()===n,c=o&&o.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",d=0;d<12;d++)(!l||d>=i.getMonth())&&(!c||o.getMonth()>=d)&&(b+="<option value='"+d+"'"+(d===e?" selected='selected'":"")+">"+a[d]+"</option>");b+="</select>"}if(v||(y+=b+(!s&&g&&m?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!m)y+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(r=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),p=(h=function(t){t=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(t)?u:t})(r[0]),f=Math.max(p,h(r[1]||"")),p=i?Math.max(p,i.getFullYear()):p,f=o?Math.min(f,o.getFullYear()):f,t.yearshtml
1+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=f;p++)t.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&&(y+=(!s&&g&&m?"":"&#xa0;")+b),y+"</div>"},_adjustInstDate:function(t,e,n){var i=t.selectedYear+("Y"===n?e:0),o=t.selectedMonth+("M"===n?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(i,o))+("D"===n?e:0),i=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,o,e)));t.selectedDay=i.getDate(),t.drawMonth=t.selectedMonth=i.getMonth(),t.drawYear=t.selectedYear=i.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),n=n&&e<n?n:e;return t&&t<n?t:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var o=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(n,i+(e<0?e:o[0]*o[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var n,i=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),s=null,r=null,t=this._get(t,"yearRange");return t&&(t=t.split(":"),n=(new Date).getFullYear(),s=parseInt(t[0],10),r=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(s+=n),t[1].match(/[+\-].*/))&&(r+=n),(!i||e.getTime()>=i.getTime())&&(!o||e.getTime()<=o.getTime())&&(!s||e.getFullYear()>=s)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"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,n,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);i=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),i,this._getFormatConfig(t))}}),x.fn.datepicker=function(t){if(!this.length)return this;x.datepicker.initialized||(x(document).on("mousedown",x.datepicker._checkExternalClick),x.datepicker.initialized=!0),0===x("#"+x.datepicker._mainDivId).length&&x("body").append(x.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this].concat(e)):x.datepicker._attachDatepicker(this,t)})},x.datepicker=new t,x.datepicker.initialized=!1,x.datepicker.uuid=(new Date).getTime(),x.datepicker.version="1.12.1",x.datepicker}),!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(t){!function(k){"use strict";function f(t){return k.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t?t.replace(this.re,this.ch):""}),t}function e(t){var s=arguments,r=t;[].shift.apply(s);var a,t=this.each(function(){var t=k(this);if(t.is("select")){var e=t.data("selectpicker"),n="object"==typeof r&&r;if(e){if(n)for(var i in n)n.hasOwnProperty(i)&&(e.options[i]=n[i])}else{var o=k.extend({},l.DEFAULTS,k.fn.selectpicker.defaults||{},t.data(),n);o.template=k.extend({},l.DEFAULTS.template,k.fn.selectpicker.defaults?k.fn.selectpicker.defaults.template:{},t.data().template,n.template),t.data("selectpicker",e=new l(this,o))}"string"==typeof r&&(a=e[r]instanceof Function?e[r].apply(e,s):e.options[r])}});return void 0!==a?a:t}function t(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==a.call(t))throw new TypeError;var n=e.length,i=String(t),o=i.length,t=1<arguments.length?arguments[1]:void 0,t=t?Number(t):0,s=(t!=t&&(t=0),Math.min(Math.max(t,0),n));if(n<o+s)return!1;for(var r=-1;++r<o;)if(e.charCodeAt(s+r)!=i.charCodeAt(r))return!1;return!0}var a,s,n,r;function i(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==s.call(t))throw new TypeError;var n=e.length,t=String(t),i=t.length,o=1<arguments.length?arguments[1]:void 0;return(o=o?Number(o):0)!=o&&(o=0),!(n<i+Math.min(Math.max(o,0),n))&&-1!=r.call(e,t,o)}String.prototype.includes||(s={}.toString,n=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),r="".indexOf,n?n(String.prototype,"includes",{value:i,configurable:!0,writable:!0}):String.prototype.includes=i),String.prototype.startsWith||(n=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),a={}.toString,n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t),Object.keys||(Object.keys=function(t,e,n){for(e in n=[],t)n.hasOwnProperty.call(t,e)&&n.push(e);return n});function o(e){function n(t){return e[t]}var t="(?:"+Object.keys(e).join("|")+")",i=RegExp(t),o=RegExp(t,"g");return function(t){return i.test(t=null==t?"":""+t)?t.replace(o,n):t}}function l(t,e){c.useDefault||(k.valHooks.select.set=c._set,c.useDefault=!0),this.$element=k(t),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=e,null===this.options.title&&(this.options.title=this.$element.attr("title")),"number"==typeof(t=this.options.windowPadding)&&(this.options.windowPadding=[t,t,t,t]),this.val=l.prototype.val,this.render=l.prototype.render,this.refresh=l.prototype.refresh,this.setStyle=l.prototype.setStyle,this.selectAll=l.prototype.selectAll,this.deselectAll=l.prototype.deselectAll,this.destroy=l.prototype.destroy,this.remove=l.prototype.remove,this.show=l.prototype.show,this.hide=l.prototype.hide,this.init()}var c={useDefault:!1,_set:k.valHooks.select.set},m=(k.valHooks.select.set=function(t,e){return e&&!c.useDefault&&k(t).data("selected",!0),c._set.apply(this,arguments)},null),$=(k.fn.triggerNative=function(t){var e,n=this[0];n.dispatchEvent?("function"==typeof Event?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),n.dispatchEvent(e)):n.fireEvent?((e=document.createEventObject()).eventType=t,n.fireEvent("on"+t,e)):this.trigger(t)},k.expr.pseudos.icontains=function(t,e,n){t=k(t);return(t.data("tokens")||t.text()).toString().toUpperCase().includes(n[3].toUpperCase())},k.expr.pseudos.ibegins=function(t,e,n){t=k(t);return(t.data("tokens")||t.text()).toString().toUpperCase().startsWith(n[3].toUpperCase())},k.expr.pseudos.aicontains=function(t,e,n){t=k(t);return(t.data("tokens")||t.data("normalizedText")||t.text()).toString().toUpperCase().includes(n[3].toUpperCase())},k.expr.pseudos.aibegins=function(t,e,n){t=k(t);return(t.data("tokens")||t.data("normalizedText")||t.text()).toString().toUpperCase().startsWith(n[3].toUpperCase())},o({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"})),d=o({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"}),u=(l.VERSION="1.12.1",l.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0},l.prototype={constructor:l,init:function(){var e=this,t=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement).appendTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),void 0!==t&&(this.$button.attr("data-id",t),k('label[for="'+t+'"]').click(function(t){t.preventDefault(),e.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$menuInner.attr("aria-expanded",!1),e.$element.trigger("hide.bs.select",t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden.bs.select",t)},"show.bs.dropdown":function(t){e.$menuInner.attr("aria-expanded",!0),e.$element.trigger("show.bs.select",t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown.bs.select",t)}}),e.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){e.$button.addClass("bs-invalid").focus(),e.$element.on({"focus.bs.select":function(){e.$button.focus(),e.$element.off("focus.bs.select")},"shown.bs.select":function(){e.$element.val(e.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&e.$button.removeClass("bs-invalid"),e.$element.off("rendered.bs.select")}})}),setTimeout(function(){e.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",e=this.$element.parent().hasClass("input-group")?" input-group-btn":"",n=this.autofocus?" autofocus":"",i=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="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+$(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"></div>':"",s=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"</button></div></div>":"",r=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"</button></div></div>":"",t='<div class="btn-group bootstrap-select'+t+e+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+n+' role="button"><span class="filter-option pull-left"></span>&nbsp;<span class="bs-caret">'+this.options.template.caret+'</span></button><div class="dropdown-menu open" role="combobox">'+i+o+s+'<ul class="dropdown-menu inner" role="listbox" aria-expanded="false"></ul>'+r+"</div></div>";return k(t)},createView:function(){var t=this.createDropdown(),e=this.createLi();return t.find("ul")[0].innerHTML=e,t},reloadLi:function(){var t=this.createLi();this.$menuInner[0].innerHTML=t},createLi:function(){function y(t,e,n,i){return"<li"+(void 0!==n&""!==n?' class="'+n+'"':"")+(void 0!==e&null!==e?' data-original-index="'+e+'"':"")+(void 0!==i&null!==i?'data-optgroup="'+i+'"':"")+">"+t+"</li>"}function b(t,e,n,i){return'<a tabindex="0"'+(void 0!==e?' class="'+e+'"':"")+(n?' style="'+n+'"':"")+(w.options.liveSearchNormalize?' data-normalized-text="'+f($(k(t).html()))+'"':"")+(void 0!==i||null!==i?' data-tokens="'+i+'"':"")+' role="option">'+t+'<span class="'+w.options.iconBase+" "+w.options.tickIcon+' check-mark"></span></a>'}var t,w=this,x=[],_=0,e=document.createElement("option"),C=-1;return!this.options.title||this.multiple||(C--,this.$element.find(".bs-title-option").length)||(t=this.$element[0],e.className="bs-title-option",e.innerHTML=this.options.title,e.value="",t.insertBefore(e,t.firstChild),void 0===k(t.options[t.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected")&&(e.selected=!0)),this.$element.find("option").each(function(t){var e=k(this);if(C++,!e.hasClass("bs-title-option")){var n=this.className||"",i=this.style.cssText,o=e.data("content")?e.data("content"):e.html(),s=e.data("tokens")?e.data("tokens"):null,r=void 0!==e.data("subtext")?'<small class="text-muted">'+e.data("subtext")+"</small>":"",a=void 0!==e.data("icon")?'<span class="'+w.options.iconBase+" "+e.data("icon")+'"></span> ':"",l=e.parent(),c="OPTGROUP"===l[0].tagName,d=c&&l[0].disabled,u=this.disabled||d;if(""!==a&&u&&(a="<span>"+a+"</span>"),w.options.hideDisabled&&(u&&!c||d))C--;else{if(e.data("content")||(o=a+'<span class="text">'+o+r+"</span>"),c&&!0!==e.data("divider")){if(w.options.hideDisabled&&u)if(void 0===l.data("allOptionsDisabled")&&(d=l.children(),l.data("allOptionsDisabled",d.filter(":disabled").length===d.length)),l.data("allOptionsDisabled"))return void C--;a=" "+l[0].className||"";if(0===e.index()&&(_+=1,r=l[0].label,c=void 0!==l.data("subtext")?'<small class="text-muted">'+l.data("subtext")+"</small>":"",r=(l.data("icon")?'<span class="'+w.options.iconBase+" "+l.data("icon")+'"></span> ':"")+'<span class="text">'+$(r)+c+"</span>",0!==t&&0<x.length&&(C++,x.push(y("",null,"divider",_+"div"))),C++,x.push(y(r,null,"dropdown-header"+a,_))),w.options.hideDisabled&&u)return void C--;x.push(y(b(o,"opt "+n+a,i,s),t,"",_))}else if(!0===e.data("divider"))x.push(y("",t,"divider"));else if(!0===e.data("hidden"))x.push(y(b(o,n,i,s),t,"hidden is-hidden"));else{var h=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName;if(!h&&w.options.hideDisabled)for(var p=k(this).prevAll(),f=0;f<p.length;f++)if("OPTGROUP"===p[f].tagName){for(var g=0,m=0;m<f;m++){var v=p[m];!v.disabled&&!0!==k(v).data("hidden")||g++}g===f&&(h=!0);break}h&&(C++,x.push(y("",null,"divider",_+"div"))),x.push(y(b(o,n,i,s),t))}w.liObj[t]=C}}}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),x.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var e,i=this,t=(!1!==t&&this.$element.find("option").each(function(t){var e=i.findLis().eq(i.liObj[t]);i.setDisabled(t,this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled,e),i.setSelected(t,this.selected,e)}),this.togglePlaceholder(),this.tabIndex(),this.$element.find("option").map(function(){var t,e,n;if(this.selected&&(!i.options.hideDisabled||!(this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled)))return e=(t=k(this)).data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"></i> ':"",n=i.options.showSubtext&&t
1.data("subtext")&&!i.multiple?' <small class="text-muted">'+t.data("subtext")+"</small>":"",void 0!==t.attr("title")?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content").toString():e+t.html()+n}).toArray()),n=this.multiple?t.join(this.options.multipleSeparator):t[0];this.multiple&&-1<this.options.selectedTextFormat.indexOf("count")&&(1<(e=this.options.selectedTextFormat.split(">")).length&&t.length>e[1]||1==e.length&&2<=t.length)&&(e=this.options.hideDisabled?", [disabled]":"",e=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+e).length,n=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(t.length,e):this.options.countSelectedText).replace("{0}",t.length.toString()).replace("{1}",e.toString())),null==this.options.title&&(this.options.title=this.$element.attr("title")),n=(n="static"==this.options.selectedTextFormat?this.options.title:n)||(void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",d(k.trim(n.replace(/<[^>]*>?/g,"")))),this.$button.children(".filter-option").html(n),this.$element.trigger("rendered.bs.select")},setStyle:function(t,e){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));t=t||this.options.style;"add"==e?this.$button.addClass(t):"remove"==e?this.$button.removeClass(t):(this.$button.removeClass(this.options.style),this.$button.addClass(t))},liHeight:function(t){var e,n,i,o,s,r,a,l,c,d;(t||!1!==this.options.size&&!this.sizeInfo)&&(t=document.createElement("div"),d=document.createElement("div"),i=document.createElement("ul"),c=document.createElement("li"),e=document.createElement("li"),o=document.createElement("a"),n=document.createElement("span"),s=this.options.header&&0<this.$menu.find(".popover-title").length?this.$menu.find(".popover-title")[0].cloneNode(!0):null,r=this.options.liveSearch?document.createElement("div"):null,a=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,l=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,n.className="text",t.className=this.$menu[0].parentNode.className+" open",d.className="dropdown-menu open",i.className="dropdown-menu inner",c.className="divider",n.appendChild(document.createTextNode("Inner text")),o.appendChild(n),e.appendChild(o),i.appendChild(e),i.appendChild(c),s&&d.appendChild(s),r&&(n=document.createElement("span"),r.className="bs-searchbox",n.className="form-control",r.appendChild(n),d.appendChild(r)),a&&d.appendChild(a),d.appendChild(i),l&&d.appendChild(l),t.appendChild(d),document.body.appendChild(t),e=o.offsetHeight,n=s?s.offsetHeight:0,i=r?r.offsetHeight:0,o=a?a.offsetHeight:0,s=l?l.offsetHeight:0,r=k(c).outerHeight(!0),l=(a="function"==typeof getComputedStyle&&getComputedStyle(d))?null:k(d),d={vert:(c={vert:parseInt(a?a.paddingTop:l.css("paddingTop"))+parseInt(a?a.paddingBottom:l.css("paddingBottom"))+parseInt(a?a.borderTopWidth:l.css("borderTopWidth"))+parseInt(a?a.borderBottomWidth:l.css("borderBottomWidth")),horiz:parseInt(a?a.paddingLeft:l.css("paddingLeft"))+parseInt(a?a.paddingRight:l.css("paddingRight"))+parseInt(a?a.borderLeftWidth:l.css("borderLeftWidth"))+parseInt(a?a.borderRightWidth:l.css("borderRightWidth"))}).vert+parseInt(a?a.marginTop:l.css("marginTop"))+parseInt(a?a.marginBottom:l.css("marginBottom"))+2,horiz:c.horiz+parseInt(a?a.marginLeft:l.css("marginLeft"))+parseInt(a?a.marginRight:l.css("marginRight"))+2},document.body.removeChild(t),this.sizeInfo={liHeight:e,headerHeight:n,searchHeight:i,actionsHeight:o,doneButtonHeight:s,dividerHeight:r,menuPadding:c,menuExtras:d})},setSize:function(){var i,o,s,r,a,l,c,d,u,h,p,f,g,m,v,y,b,t,w,x,_,e,n,C,$;this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size&&(d=(c=this).$menu,u=this.$menuInner,h=k(window),p=this.$newElement[0].offsetHeight,f=this.$newElement[0].offsetWidth,g=this.sizeInfo.liHeight,m=this.sizeInfo.headerHeight,v=this.sizeInfo.searchHeight,y=this.sizeInfo.actionsHeight,b=this.sizeInfo.doneButtonHeight,t=this.sizeInfo.dividerHeight,w=this.sizeInfo.menuPadding,x=this.sizeInfo.menuExtras,n=this.options.hideDisabled?".disabled":"",(_=function(){var t,e=c.$newElement.offset(),n=k(c.options.container),n=(c.options.container&&!n.is("body")?((t=n.offset()).top+=parseInt(n.css("borderTopWidth")),t.left+=parseInt(n.css("borderLeftWidth"))):t={top:0,left:0},c.options.windowPadding);s=e.top-t.top-h.scrollTop(),r=h.height()-s-p-t.top-n[2],a=e.left-t.left-h.scrollLeft(),l=h.width()-a-f-t.left-n[1],s-=n[0],a-=n[3]})(),"auto"===this.options.size?((e=function(){function t(e,n){return function(t){return n?t.classList?t.classList.contains(e):k(t).hasClass(e):!(t.classList?t.classList.contains(e):k(t).hasClass(e))}}var e=c.$menuInner[0].getElementsByTagName("li"),e=Array.prototype.filter?Array.prototype.filter.call(e,t("hidden",!1)):c.$lis.not(".hidden"),n=Array.prototype.filter?Array.prototype.filter.call(e,t("dropdown-header",!0)):e.f
1ilter(".dropdown-header");_(),C=r-x.vert,i=l-x.horiz,o=c.options.container?(d.data("height")||d.data("height",d.height()),$=d.data("height"),d.data("width")||d.data("width",d.width()),d.data("width")):($=d.height(),d.width()),c.options.dropupAuto&&c.$newElement.toggleClass("dropup",r<s&&C-x.vert<$),c.$newElement.hasClass("dropup")&&(C=s-x.vert),"auto"===c.options.dropdownAlignRight&&d.toggleClass("dropdown-menu-right",l<a&&i-x.horiz<o-f),e=3<e.length+n.length?3*g+x.vert-2:0,d.css({"max-height":C+"px",overflow:"hidden","min-height":e+m+v+y+b+"px"}),u.css({"max-height":C-m-v-y-b-w.vert+"px","overflow-y":"auto","min-height":Math.max(e-w.vert,0)+"px"})})(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",e),h.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",e)):this.options.size&&"auto"!=this.options.size&&this.$lis.not(n).length>this.options.size&&(e=this.$lis.not(".divider").not(n).children().slice(0,this.options.size).last().parent().index(),n=this.$lis.slice(0,e+1).filter(".divider").length,C=g*this.options.size+n*t+w.vert,$=c.options.container?(d.data("height")||d.data("height",d.height()),d.data("height")):d.height(),c.options.dropupAuto&&this.$newElement.toggleClass("dropup",r<s&&C-x.vert<$),d.css({"max-height":C+m+v+y+b+"px",overflow:"hidden","min-height":""}),u.css({"max-height":C-w.vert+"px","overflow-y":"auto","min-height":""})))},setWidth:function(){var t,e,n,i;"auto"===this.options.width?(this.$menu.css("min-width","0"),t=this.$menu.parent().clone().appendTo("body"),e=this.options.container?this.$newElement.clone().appendTo("body"):t,n=t.children(".dropdown-menu").outerWidth(),i=e.css("width","auto").children("button").outerWidth(),t.remove(),e.remove(),this.$newElement.css("width",Math.max(n,i)+"px")):"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(){this.$bsContainer=k('<div class="bs-container" />');function e(t){s.$bsContainer.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",t.hasClass("dropup")),n=t.offset(),r.is("body")?i={top:0,left:0}:((i=r.offset()).top+=parseInt(r.css("borderTopWidth"))-r.scrollTop(),i.left+=parseInt(r.css("borderLeftWidth"))-r.scrollLeft()),o=t.hasClass("dropup")?0:t[0].offsetHeight,s.$bsContainer.css({top:n.top-i.top+o,left:n.left-i.left,width:t[0].offsetWidth})}var n,i,o,s=this,r=k(this.options.container);this.$button.on("click",function(){var t=k(this);s.isDisabled()||(e(s.$newElement),s.$bsContainer.appendTo(s.options.container).toggleClass("open",!t.hasClass("open")).append(s.$menu))}),k(window).on("resize scroll",function(){e(s.$newElement)}),this.$element.on("hide.bs.select",function(){s.$menu.data("height",s.$menu.height()),s.$bsContainer.detach()})},setSelected:function(t,e,n){n||(this.togglePlaceholder(),n=this.findLis().eq(this.liObj[t])),n.toggleClass("selected",e).find("a").attr("aria-selected",e)},setDisabled:function(t,e,n){n=n||this.findLis().eq(this.liObj[t]),e?n.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1).attr("aria-disabled",!0):n.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0).attr("aria-disabled",!1)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var t=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled").attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!t.isDisabled()})},togglePlaceholder:function(){var t=this.$element.val();this.$button.toggleClass("bs-placeholder",null===t||""===t||t.constructor===Array&&0===t.length)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var g=this,e=k(document);e.data("spaceSelect",!1),this.$button.on("keyup",function(t){/(32)/.test(t.keyCode.toString(10))&&e.data("spaceSelect")&&(t.preventDefault(),e.data("spaceSelect",!1))}),this.$button.on("click",function(){g.setSize()}),this.$element.on("shown.bs.select",function(){var t;g.options.liveSearch||g.multiple?g.multiple||"number"==typeof(t=g.liObj[g.$element[0].selectedIndex])&&!1!==g.options.size&&(t=(t=g.$lis.eq(t)[0].offsetTop-g.$menuInner[0].offsetTop)-g.$menuInner[0].offsetHeight/2+g.sizeInfo.liHeight/2,g.$menuInner[0].scrollTop=t):g.$menuInner.find(".selected a").focus()}),this.$menuInner.on("click","li a",function(t){var e,n,i,o,s,r,a,l,c,d=k(this),u=d.parent().data("originalIndex"),h=g.$element.val(),p=g.$element.prop("selectedIndex"),f=!0;g.multiple&&1!==g.options.maxOptions&&t.stopPropagation(),t.preventDefault(),g.isDisabled()||d.parent().hasClass("disabled")||(n=(e=(t=g.$element.find("option")).eq(u)).prop("selected"),a=e.parent("optgroup"),i=g.options.maxOptions,o=a.data("maxOptions")||!1,g.multiple?(e.prop("selected",!n),g.setSelected(u,!n),d.blur(),(!1!==i||!1!==o)&&(s=i<t.filter(":selected").length,r=o<a.find("option:selected").length,i&&s||o&&r)&&(i&&1==i?(t.prop("selected",!1),e.prop("selected",!0),g.$menuInner.find(".selected").removeClass("selected"),g.setSelected(u,!0)):o&&1==o?(a.find("option:selected").prop("selected",!1),e.prop("selected",!0),a=d.parent().data("optgroup"),g.$menuInner.find('[data-optgroup="'+a+'"]').removeClass("selected"),g.setSelected(u,!0)):(d=(a="function"==typeof(d="string"==typeof g.options.maxOptionsText?[g.options.maxOptionsText,g.options.maxOptionsText]:g.o
1ptions.maxOptionsText)?d(i,o):d)[0].replace("{n}",i),l=a[1].replace("{n}",o),c=k('<div class="notify"></div>'),a[2]&&(d=d.replace("{var}",a[2][1<i?0:1]),l=l.replace("{var}",a[2][1<o?0:1])),e.prop("selected",!1),g.$menu.append(c),i&&s&&(c.append(k("<div>"+d+"</div>")),f=!1,g.$element.trigger("maxReached.bs.select")),o&&r&&(c.append(k("<div>"+l+"</div>")),f=!1,g.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){g.setSelected(u,!1)},10),c.delay(750).fadeOut(300,function(){k(this).remove()})))):(t.prop("selected",!1),e.prop("selected",!0),g.$menuInner.find(".selected").removeClass("selected").find("a").attr("aria-selected",!1),g.setSelected(u,!0)),!g.multiple||g.multiple&&1===g.options.maxOptions?g.$button.focus():g.options.liveSearch&&g.$searchbox.focus(),f&&(h!=g.$element.val()&&g.multiple||p!=g.$element.prop("selectedIndex")&&!g.multiple)&&(m=[u,e.prop("selected"),n],g.$element.triggerNative("change")))}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(t){t.currentTarget==this&&(t.preventDefault(),t.stopPropagation(),(g.options.liveSearch&&!k(t.target).hasClass("close")?g.$searchbox:g.$button).focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(t){t.preventDefault(),t.stopPropagation(),(g.options.liveSearch?g.$searchbox:g.$button).focus()}),this.$menu.on("click",".popover-title .close",function(){g.$button.click()}),this.$searchbox.on("click",function(t){t.stopPropagation()}),this.$menu.on("click",".actions-btn",function(t){(g.options.liveSearch?g.$searchbox:g.$button).focus(),t.preventDefault(),t.stopPropagation(),k(this).hasClass("bs-select-all")?g.selectAll():g.deselectAll()}),this.$element.change(function(){g.render(!1),g.$element.trigger("changed.bs.select",m),m=null})},liveSearchListener:function(){var o=this,s=k('<li class="no-results"></li>');this.$button.on("click.dropdown.data-api",function(){o.$menuInner.find(".active").removeClass("active"),o.$searchbox.val()&&(o.$searchbox.val(""),o.$lis.not(".is-hidden").removeClass("hidden"),s.parent().length)&&s.remove(),o.multiple||o.$menuInner.find(".selected").addClass("active"),setTimeout(function(){o.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(t){t.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var t,e,n,i;o.$lis.not(".is-hidden").removeClass("hidden"),o.$lis.filter(".active").removeClass("active"),s.remove(),o.$searchbox.val()&&(e=o.$lis.not(".is-hidden, .divider, .dropdown-header"),(t=o.options.liveSearchNormalize?e.find("a").not(":a"+o._searchStyle()+'("'+f(o.$searchbox.val())+'")'):e.find("a").not(":"+o._searchStyle()+'("'+o.$searchbox.val()+'")')).length===e.length?(s.html(o.options.noneResultsText.replace("{0}",'"'+$(o.$searchbox.val())+'"')),o.$menuInner.append(s),o.$lis.addClass("hidden")):(t.parent().addClass("hidden"),(i=o.$lis.not(".hidden")).each(function(t){var e=k(this);e.hasClass("divider")?void 0===n?e.addClass("hidden"):(n&&n.addClass("hidden"),n=e):e.hasClass("dropdown-header")&&i.eq(t+1).data("optgroup")!==e.data("optgroup")?e.addClass("hidden"):n=null}),n&&n.addClass("hidden"),e.not(".hidden").first().addClass("active")))})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(t){return void 0!==t?(this.$element.val(t),this.render(),this.$element):this.$element.val()},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0),this.findLis();var e=this.$element.find("option"),n=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),i=n.length,o=[];if(t){if(n.filter(".selected").length===n.length)return}else if(0===n.filter(".selected").length)return;n.toggleClass("selected",t);for(var s=0;s<i;s++){var r=n[s].getAttribute("data-original-index");o[o.length]=e.eq(r)[0]}k(o).prop("selected",t),this.render(!1),this.togglePlaceholder(),this.$element.triggerNative("change")}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click")},keydown:function(t){var e,n,i,o,s,r,a,l,c=k(this),d=(c.is("input")?c.parent():c).parent(),u=d.data("this"),h=":not(.disabled, .hidden, .dropdown-header, .divider)",p={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"};u.options.liveSearch&&(d=c.parent().parent()),u.options.container&&(d=u.$menu),e=k('[role="listbox"] li',d),!(r=u.$newElement.hasClass("open"))&&(48<=t.keyCode&&t.keyCode<=57||96<=t.keyCode&&t.keyCode<=105||65<=t.keyCode&&t.keyCode<=90)?(u.options.container?u.$button.trigger("click"):(u.setSize(),u.$menu.parent().addClass("open"),r=!0),u.$searchbox.focus()):(u.options.liveSearch&&(/(^9$|27)/.test(t.keyCode.toString(10))&&r&&(t.preventDefault(),t.stopPropagation(),u.$menuInner.click(),u.$button.focus()),e=k('[role="listbox"] li'+h,d),c.val()||/(38|40)/.test(t.keyCode.toString(10))||0===e.filter(".active").length&&(e=u.$menuInner.find("li"),e=u.options.liveSearchNormalize?e.filter(":a"+u._searchStyle()+"("+f(p[t.keyCode])+")"):e.filter(":"+u._searchStyle()+"("+p[t.keyCode]+")"))),e.length&&(/(38|40)/.test(t.keyCode.toString(10))?(d=e.index(e.find("a").filter(":focus").parent()),i=e.filter(h).first().index(),o=e.filter(h).last().index(),n=e.eq(d).nextAll(h).eq(0).index(),a=e.eq(d).prevAll(h).eq(0).index(),h=e.eq(n).prevAll(h).eq(0).index(),u.options.liveSearch&&(e.each(function(t){k(this).hasClass("disabled")||k(this).data("index",t)}),d=e.index(e.filter(".active")),i=e.first().data("index"),o=e.last().data("index"),n=e.eq(d).nextAll().eq(0).data("index"),a=e.eq(d).prevAll().eq(0).data("index"),h=e.eq(n).prevAll().eq(0).data("index")),s=c.data("prevIndex"),38==t.keyCode?(u.options.liveSearch&&d--,(d=(d=d!=h&&a<d?a:d)<i?i:d)==s&&(d=o)):40==t.keyCode&&(u.options.liveSearch&&d++,(d=o<(d=(d=-1==d?0:d)!=h&&d<n?n:d)?o:d)==s)&&(d=i),c.data("prevIndex",d),u.options.liveSearch?(t.preventDefault(),c.hasClass("dropdown-toggle")||(e.removeClass("active").eq(d).addClass("active").children("a").focus(),c.focus())):e.eq(d).children("a").focus()):c.is("input")||(l=[],e.each(function(){k(this).hasClass("disabled")||k.trim(k(this).children("a").text().toLowerCase()).substring(0,1)==p[t.keyCode]&&l.push(k(this).index())}),a=k(document).data("keycount"),a++,k(document).data("keycount",a),k.trim(k(":focus").text().toLowerCase()).substring(0,1)!=p[t.keyCode]?(a=1,k(document).data("keycount",a)):l.length<=a&&(k(document).data("keycount",0),l.length<a)&&(a=1),e.eq(l[a-1]).children("a").focus()),(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&u.options.selectOnTab)&&r&&(/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),u.options.liveSearch?/(32)/.test(t.keyCode.toString(10))||(u.$menuInner.find(".active a").click(),c.focus()):((h=k(":focus")).click(),h.focus(),t.preventDefault(),k(document).data("spaceSelect",!0)),k(document).data("keycount",0)),/(^9$|27)/.test(t.keyCode.toString(10))&&r&&(u.multiple||u.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!r)&&(u.$menu.parent().removeClass("open"),u.options.container&&u.$newElement.removeClass("open"),u.$button.focus()))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),(this.$bsContainer||this.$menu).remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}},k.fn.selectpicker);k.fn.selectpicker=e,k.fn.selectpicker.Constructor=l,k.fn.selectpicker.noConflict=function(){return k.fn.selectpicker=u,this},k(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',l.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',function(t){t.stopPropagation()}),k(window).on("load.bs.select.data-api",function(){k(".selectpicker").each(function(){var t=k(this);e.call(t,t.data())})})}(t)}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");function promoModal(t,e,n){var i=$(".promo-widget-title").width(),o=$(".promo-main-text-value.short").width()+90;$(".promo-modal").hide(),Cookies.get("showed_promo")||(Cookies.set("showed_promo","true",{expires:n}),setTimeout(function(){$(".promo-modal").slideDown(e),$(".promo-widget-title").width($(".promo-widget").width()+4)},t),$(".promo-widget-tab .ar-r").click(function(){$(".promo-main-content").slideUp(e),$(".promo-widget-tab i").toggle(),375<$(window).width()&&setTimeout(function(){$(".promo-main-text-value").toggleClass("active non-active"),$(".promo-widget .promo-widget-title").animate({width:o},e)},e)}),$(".promo-widget-tab .ar-l").click(function(){$(".promo-widget-tab i").toggle(),375<$(window).width()?($(".promo-widget .promo-widget-title").animate({width:i+4},e),setTimeout(function(){$(".promo-main-text-value").toggleClass("active non-active"),$(".promo-main-content").slideDown(e)},e)):$(".promo-main-content").slideDown(e)}),$(".promo-close").click(function(){$(".promo-modal").hide()}))}function saveToClip(){document.getElementById("promo-input").select(),document.execCommand("copy")}function initMap(){var t,e,n;$("#map").length&&(t=(e=$("#map")).data().locations.split("--"),e=e.data().zoom,t=t[0].split(","),e=L.map("map").setView(t,e),L.tileLayer("https://api.mapy.cz/v1/maptiles/basic/256/{z}/{x}/{y}?apikey=UfmG3c_9OEWqyKXkKRRsV_qW6r4KS5mw3LSWn1qSwNU",{minZoom:0,maxZoom:19,attribution:'<a href="https://api.mapy.cz/copyright" target="_blank">&copy; Seznam.cz a.s. a další</a>'}).addTo(e),n=L.divIcon({className:"styled-map-marker",iconSize:[30,30],iconAnchor:[20,40]}),L.marker(t,{icon:n}).addTo(e),e.scrollWheelZoom.disable(),(new(L.Control.extend({options:{position:"bottomleft"},onAdd:function(t){var e=L.DomUtil.create("div"),n=L.DomUtil.create("a","",e);return n.setAttribute("href","http://mapy.cz/"),n.setAttribute("target","_blank"),n.innerHTML='<img src="https://api.mapy.cz/img/api/logo.svg" />',L.DomEvent.disableClickPropagation(n),e}}))).addTo(e))}function checkVisible(t){var e;if(t.length)return e=$(window).scrollTop()+$(window).height(),$(t).offset().top<=e}function convertCoordinates(t){function e(t){var e=(t=t.trim()).slice(-1),t=t.slice(0,-1),n=t.match(/(\d+)°/),i=t.match(/(\d+)'/),t=t.match(/'([\d.]+)'/);if(!n)return 0;let o=parseInt(n[1]);return i&&(o+=parseInt(i[1])/60),t&&(o+=parseFloat(t[1])/3600),o="S"!==e&&"W"!==e?o:-o}var n;return t.includes("°")?[e((n=t.replace("Loc: ","").split(","))[0]),e(n[1])]:t.split(",").map(t=>parseFloat(t.trim()))}function initApartmentMap(){var t,e,n;
1$("#apartment-map").length&&(t=convertCoordinates((e=$("#apartment-map")).data().locations),e=e.data().zoom,e=L.map("apartment-map").setView(t,e),L.tileLayer("https://api.mapy.cz/v1/maptiles/basic/256/{z}/{x}/{y}?apikey=UfmG3c_9OEWqyKXkKRRsV_qW6r4KS5mw3LSWn1qSwNU",{minZoom:0,maxZoom:19,attribution:'<a href="https://api.mapy.cz/copyright" target="_blank">&copy; Seznam.cz a.s. a další</a>'}).addTo(e),n=L.divIcon({className:"styled-map-marker",iconSize:[30,30],iconAnchor:[20,40]}),L.marker(t,{icon:n}).addTo(e),e.scrollWheelZoom.disable(),(new(L.Control.extend({options:{position:"bottomleft"},onAdd:function(t){var e=L.DomUtil.create("div"),n=L.DomUtil.create("a","",e);return n.setAttribute("href","http://mapy.cz/"),n.setAttribute("target","_blank"),n.innerHTML='<img src="https://api.mapy.cz/img/api/logo.svg" />',L.DomEvent.disableClickPropagation(n),e}}))).addTo(e))}function checkVisibleApartment(t){var e;if(t.length)return e=$(window).scrollTop()+$(window).height(),$(t).offset().top<=e}function SvgReplacement(){jQuery("img.svg").each(function(){var e=jQuery(this),n=e.attr("id"),i=e.attr("class"),t=e.attr("src");jQuery.get(t,function(t){t=jQuery(t).find("svg");void 0!==n&&(t=t.attr("id",n)),!(t=(t=void 0!==i?t.attr("class",i+" replaced-svg"):t).removeAttr("xmlns:a")).attr("viewBox")&&t.attr("height")&&t.attr("width")&&t.attr("viewBox","0 0 "+t.attr("height")+" "+t.attr("width")),e.replaceWith(t)},"xml")})}function initInPageGallery(){$(".in-page-gallery").length&&$(".in-page-gallery").each(function(){var t=this;$(this).find(".show-gallery-button").click(function(){$(t).find(".owl-item:not(.active)").each(function(){$(this).slideToggle("slow")}),$(".show-gallery-button").hide(),$(".hide-gallery-button").show()}),$(this).find(".hide-gallery-button").click(function(){$(t).find(".owl-item:not(.active)").each(function(){$(this).slideToggle()}),$([document.documentElement,document.body]).animate({scrollTop:$(".in-page-gallery").offset().top-150},400),$(".show-gallery-button").show(),$(".hide-gallery-button").hide()})})}function MenuSticky(){var t,e,n,i,o,s;$("#header_content").length&&(e=(t=$("#header_content")).data().responsive,n=$(window).innerWidth(),i=$(window).scrollTop(),o=$("#top").innerHeight(),s=t.innerHeight(),null!=e&&""!=e||(e=1199),o<i?0==t.hasClass("header-sticky")&&(t.addClass("header-sticky"),n<=e)&&t.find(".header_menu").css("top",s+"px"):(t.removeClass("header-sticky"),n<=e&&t.find(".header_menu").css("top",s+o+"px")))}function MenuResize(){var t,e,n,i;$("#header_content").length&&(e=(t=$("#header_content")).data().responsive,$(window).scrollTop(),n=$("#top").innerHeight(),i=t.innerHeight(),null!=e&&""!=e||(e=1199),(window_w=$(window).innerWidth())<=e?
1(t.addClass("header_mobile").removeClass("header_content"),t.find(".header_menu").css("top",n+i+"px")):($(".menu-bars").removeClass("active"),t.removeClass("header_mobile").addClass("header_content"),$("#header_content .header_menu").css({top:""}).removeClass("active").find("ul").css("display","")))}function MenuBar(){$(".menu-bars").click(function(t){$(".header_menu").hasClass("active")?($(".header_menu").removeClass("active"),$(this).removeClass("active")):($(".header_menu").addClass("active"),$(this).addClass("active"))}),$(".menu li a").on("click","span",function(t){t.preventDefault();var t=$(this).parent("a").parent("li"),e=t.parent("ul");return t.find("> ul").is(":hidden")?(e.find("> li > ul").slideUp(),t.find("> ul").slideDown()):t.find("> ul").slideUp(),!1})}function popup(){var t,e,n,i,o;$("#popup").length&&(t=$("#popup"),$(t).click(function(){$(this).fadeOut()}),e=new Date,null!==localStorage.getItem("popupShownAt")?(n=new Date(localStorage.getItem("popupShownAt")),i=new Date,o=1,t.data("cookies")&&(o=t.data("cookies")),i.setTime(n.getTime()+864e5*o),e.getTime()>i.getTime()&&($(t).delay(4e3).fadeIn(),localStorage.setItem("popupShownAt",e))):(localStorage.setItem("popupShownAt",e),$(t).delay(4e3).fadeIn()))}function setBannerSize(){var t;$("#popup").length&&(t=$(window).height()-60,$("#popup img").css({"max-height":t+"px",width:"auto",height:"auto"}))}function sevenAngels(){$(".seven-rooms").length&&$(".seven-rooms .show-more-click").click(function(){var t=$(this).parents(".seven-rooms__item");t.find(".detail").slideToggle(),t.find(".show-more-text").toggle()})}!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(s){"use strict";function r(t){s(t).on("click",e,this.close)}var e='[data-dismiss="alert"]',t=(r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(t){function e(){o.detach().trigger("closed.bs.alert").remove()}var n=s(this),i=n.attr("data-target"),o=(i="#"===(i=i?i:(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""))?[]:i,s(document).find(i));t&&t.preventDefault(),(o=o.length?o:n.closest(".alert")).trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),s.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",e).emulateTransitionEnd(r.TRANSITION_DURATION):e())},s.fn.alert);s.fn.alert=function(n){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new r(this)),"string"==typeof n&&e[n].call(t)})},s.fn.alert.Constructor=r,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,r.prototype.close)}(jQuery),function(c){"use strict";function o(o){return this.each(function(){var t=c(this),e=t.data("bs.carousel"),n=c.extend({},d.DEFAULTS,t.data(),"object"==typeof o&&o),i="string"==typeof o?o:n.slide;e||t.data("bs.carousel",e=new d(this,n)),"number"==typeof o?e.to(o):i?e[i]():n.interval&&e.pause().cycle()})}function d(t,e){this.$element=c(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))}function t(t){var e,n=c(this),i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),i=n.attr("data-target")||i;(i=c(document).find(i)).hasClass("carousel")&&(e=c.extend({},i.data(),n.data()),(n=n.attr("data-slide-to"))&&(e.interval=!1),o.call(i,e),n&&i.data("bs.carousel").to(n),t.preventDefault())}d.VERSION="3.4.1",d.TRANSITION_DURATION=600,d.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},d.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},d.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},d.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},d.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);return("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap?e:(e=(n+("prev"==t?-1:1))%this.$items.length,this.$items.eq(e))},d.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".
1item.active"));return t>this.$items.length-1||t<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},d.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){return this.sliding?void 0:this.slide("next")},d.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},d.prototype.slide=function(t,e){var n,i,o,s=this.$element.find(".item.active"),r=e||this.getItemForDirection(t,s),e=this.interval,a="next"==t?"left":"right",l=this;return r.hasClass("active")?this.sliding=!1:(n=r[0],i=c.Event("slide.bs.carousel",{relatedTarget:n,direction:a}),this.$element.trigger(i),i.isDefaultPrevented()?void 0:(this.sliding=!0,e&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),i=c(this.$indicators.children()[this.getItemIndex(r)]))&&i.addClass("active"),o=c.Event("slid.bs.carousel",{relatedTarget:n,direction:a}),c.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),"object"==typeof r&&r.length&&r[0].offsetWidth,s.addClass(a),r.addClass(a),s.one("bsTransitionEnd",function(){r.removeClass([t,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(o)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)):(s.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(o)),e&&this.cycle(),this))};var e=c.fn.carousel;c.fn.carousel=o,c.fn.carousel.Constructor=d,c.fn.carousel.noConflict=function(){return c.fn.carousel=e,this};c(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var t=c(this);o.call(t,t.data())})})}(jQuery),function(o){"use strict";function s(t){var e=t.attr("data-target"),e="#"!==(e=e?e:(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?o(document).find(e):null;return e&&e.length?e:t.parent()}function r(i){i&&3===i.which||(o(".dropdown-backdrop").remove(),o(a).each(function(){var t=o(this),e=s(t),n={relatedTarget:this};!e.hasClass("open")||i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&o.contains(e[0],i.target)||(e.trigger(i=o.Event("hide.bs.dropdown",n)),i.isDefaultPrevented())||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(o.Event("hidden.bs.dropdown",n)))}))}function i(t){o(t).on("click.bs.dropdown",this.toggle)}var a='[data-toggle="dropdown"]',t=(i.VERSION="3.4.1",i.prototype.toggle=function(t){var e=o(this);if(!e.is(".disabled, :disabled")){var n=s(e),i=n.hasClass("open");if(r(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&o(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(o(this)).on("click",r);i={relatedTarget:this};if(n.trigger(t=o.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(o.Event("shown.bs.dropdown",i))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=o(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=s(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(a).trigger("focus"),e.trigger("click");i=n.find(".dropdown-menu li:not(.disabled):visible a");i.length&&(e=i.index(t.target),38==t.which&&0<e&&e--,40==t.which&&e<i.length-1&&e++,i.eq(e=~e?e:0).trigger("focus"))}}},o.fn.dropdown);o.fn.dropdown=function(n){return this.each(function(){var t=o(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},o.fn.dropdown.Constructor=i,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=t,this},o(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",a,i.prototype.toggle).on("keydown.bs.dropdown.data-api",a,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(i){"use strict";i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;i(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t,e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){return i(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,i,o){return jQuery.easing[jQuery.easing.def](t,e,n,i,o)},easeInQuad:function(t,e,n,i,o){return i*(e/=o)*e+n},easeOutQuad:function(t,e,n,i,o){return-i*(e/=o)*(e-2)+n},easeInOutQuad:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,o){return i*(e/=o)*e*e+n},easeOutCubic:function(t,e,n,i,o){return i*((e=e/o-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,o){return i*(e/=o)*e*e*e+n},easeOutQuart:function(t,e,n,i,o){return-i*((e=e/o-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,o){return i*(e/=o)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,o){return i*((e=e/o-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,o){return i*Math.sin(e/o*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,o){return-i/2*(Math.cos(Math.PI*e/o)-1)+n},easeInExpo:function(t,e,n,i,o){return 0==e?n:i*Math.pow(2,10*(e/o-1))+n},easeOutExpo:function(t,e,n,i,o){return e==o?n+i:i*(1-Math.pow(2,-10*e/o))+n},easeInOutExpo:function(t,e,n,i,o){return 0==e?n:e==o?n+i:(e/=o/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,i,o){return-i*(Math.sqrt(1-(e/=o)*e)-1)+n},easeOutCirc:function(t,e,n,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+n},easeInOutCirc:function(t,e,n,i,o){return(e/=o/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,o){var s=1.70158,r=0,a=i;return 0==e?n:1==(e/=o)?n+i:(r=r||.3*o,s=a<Math.abs(i)?(a=i,r/4):r/(2*Math.PI)*Math.asin(i/a),-(a*Math.pow(2,10*--e)*Math.sin((e*o-s)*(2*Math.PI)/r))+n)},easeOutElastic:function(t,e,n,i,o){var s=1.70158,r=0,a=i;return 0==e?n:1==(e/=o)?n+i:(r=r||.3*o,s=a<Math.abs(i)?(a=i,r/4):r/(2*Math.PI)*Math.asin(i/a),a*
1Math.pow(2,-10*e)*Math.sin((e*o-s)*(2*Math.PI)/r)+i+n)},easeInOutElastic:function(t,e,n,i,o){var s=1.70158,r=0,a=i;return 0==e?n:2==(e/=o/2)?n+i:(r=r||o*(.3*1.5),s=a<Math.abs(i)?(a=i,r/4):r/(2*Math.PI)*Math.asin(i/a),e<1?a*Math.pow(2,10*--e)*Math.sin((e*o-s)*(2*Math.PI)/r)*-.5+n:a*Math.pow(2,-10*--e)*Math.sin((e*o-s)*(2*Math.PI)/r)*.5+i+n)},easeInBack:function(t,e,n,i,o,s){return i*(e/=o)*e*(((s=null==s?1.70158:s)+1)*e-s)+n},easeOutBack:function(t,e,n,i,o,s){return i*((e=e/o-1)*e*(((s=null==s?1.70158:s)+1)*e+s)+1)+n},easeInOutBack:function(t,e,n,i,o,s){return null==s&&(s=1.70158),(e/=o/2)<1?i/2*(e*e*((1+(s*=1.525))*e-s))+n:i/2*((e-=2)*e*((1+(s*=1.525))*e+s)+2)+n},easeInBounce:function(t,e,n,i,o){return i-jQuery.easing.easeOutBounce(t,o-e,0,i,o)+n},easeOutBounce:function(t,e,n,i,o){return(e/=o)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,i,o){return e<o/2?.5*jQuery.easing.easeInBounce(t,2*e,0,i,o)+n:.5*jQuery.easing.easeOutBounce(t,2*e-o,0,i,o)+.5*i+n}}),!function(c,r,f,g){"use strict";function n(t,e){var n,i,o=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),(i=(n=(e=t&&t.data?t.data.options:e||{}).$target||f(t.currentTarget)).attr("data-fancybox")||"")?(s=(o=(o=e.selector?f(e.selector):t.data?t.data.items:[]).length?o.filter('[data-fancybox="'+i+'"]'):f('[data-fancybox="'+i+'"]')).index(n))<0&&(s=0):o=[n],f.fancybox.open(o,e,s))}if(c.console=c.console||{info:function(t){}},f){if(f.fn.fancybox)return console.info("fancyBox already initialized");var t={loop:!1,gutter:50,keyboard:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M13,16 L20,23 L27,16 M20,7 L20,23 M10,24 L10,28 L30,28 L30,24" /></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg viewBox="0 0 40 40"><path d="M18,17 m-8,0 a8,8 0 1,0 16,0 a8,8 0 1,0 -16,0 M24,22 L31,29" /></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg viewBox="0 0 40 40"><path d="M10,10 L30,30 M30,10 L10,30" /></svg></button>',smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"><svg viewBox="0 0 32 32"><path d="M10,10 L22,22 M22,10 L10,22"></path></svg></button>',arrowLeft:'<a data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M18,12 L10,20 L18,28 M10,20 L30,20"></path></svg></a>',arrowRight:'<a data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M10,20 L30,20 M22,12 L30,20 L22,28"></path></svg></a>'},parentEl:"body",autoFocus:!1,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"ZurĂĽck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/>
1 Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}},o=f(c),s=f(r),a=0,d=c.requestAnimationFrame||c.webkitRequestAnimationFrame||c.mozRequestAnimationFrame||c.oRequestAnimationFrame||function(t){return c.setTimeout(t,1e3/60)},u=function(){var t,e=r.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in n)if(e.style[t]!==g)return n[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},l=function(t,e){var n=f.extend(!0,{},t,e);return f.each(e,function(t,e){f.isArray(e)&&(n[t]=e)}),n},i=function(t,e,n){var i=this;i.opts=l({index:n},f.fancybox.defaults),f.isPlainObject(e)&&(i.opts=l(i.opts,e)),f.fancybox.isMobile&&(i.opts=l(i.opts,i.opts.mobile)),i.id=i.opts.id||++a,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&(i.$lastFocus=f(r.activeElement).trigger("blur"),i.init())};f.extend(i.prototype,{init:function(){var t,e,n,i=this,o=i.group[i.currIndex].opts,s=f.fancybox.scrollbarWidth;f.fancybox.getInstance()||!1===o.hideScrollbar||(f("body").addClass("fancybox-active"),!f.fancybox.isMobile&&r.body.scrollHeight>c.innerHeight&&(s===g&&(t=f('<div style="width:100px;height:100px;overflow:scroll;" />').appendTo("body"),s=f.fancybox.scrollbarWidth=t[0].offsetWidth-t[0].clientWidth,t.remove()),f("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar { margin-right: '+s+"px; }</style>"),f("body").addClass("compensate-for-scrollbar"))),n="",f.each(o.buttons,function(t,e){n+=o.btnTpl[e]||""}),e=f(i.translate(i,o.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",o.btnTpl.arrowLeft+o.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass("fancybox-is-hidden").addClass(o.baseClass).data("FancyBox",i).appendTo(o.parentEl),i.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){i.$refs[t]=e.find(".fancybox-"+t)}),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){e=n[e];return e===g?t:e})},addContent:function(t){var r=this,t=f.makeArray(t);f.each(t,function(t,e){var n,i,o={},s={};f.isPlainObject(e)?s=(o=e).opts||e:"object"===f.type(e)&&f(e).length?(s=(n=f(e)).data()||{},(s=f.extend(!0,{},s,s.options)).$orig=n,o.src=r.opts.src||s.src||n.attr("href"),o.type||o.src||(o.type="inline",o.src=e)):o={type:"html",src:e+""},o.opts=f.extend(!0,{},r.opts,s),f.isArray(s.buttons)&&(o.opts.buttons=s.buttons),n=o.type||o.opts.type,s=o.src||"",!n&&s&&((i=s.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(n="video",o.opts.videoFormat||(o.opts.videoFormat="video/"+("ogv"===i[1]?"ogg":i[1]))):s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":s.match(/\.(pdf)((\?|#).*)?$/i)?n="iframe":"#"===s.charAt(0)&&(n="inline")),n?o.type=n:r.trigger("objectNeedsType",o),o.contentType||(o.contentType=-1<f.inArray(o.type,["html","inline","ajax"])?"html":o.type),o.index=r.group.length,"auto"==o.opts.smallBtn&&(o.opts.smallBtn=-1<f.inArray(o.type,["html","inline","ajax"])),"auto"===o.opts.toolbar&&(o.opts.toolbar=!o.opts.smallBtn),o.opts.$trigger&&o.index===r.opts.index&&(o.opts.$thumb=o.opts.$trigger.find("img:first")),o.opts.$thumb&&o.opts.$thumb.length||!o.opts.$orig||(o.opts.$thumb=o.opts.$orig.find("img:first")),"function"===f.type(o.opts.caption)&&(o.opts.caption=o.opts.caption.apply(e,[r,o])),"function"===f.type(r.opts.caption)&&(o.opts.caption=r.opts.caption.apply(e,[r,o])),o.opts.caption instanceof f||(o.opts.caption=o.opts.caption===g?"":o.opts.caption+""),"ajax"===o.type&&1<(i=s.split(/\s+/,2)).length&&(o.src=i.shift(),o.opts.filter=i.shift()),o.opts.modal&&(o.opts=f.extend(!0,o.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(o)}),Object.keys(r.slides).length&&(r.updateControls(),t=r.Thumbs)&&t.isActive&&(t.create(),t.focus())},addEvents:function(){var i=this;i.removeEvents(),i.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),i.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),i.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),i.next()}).on("click.fb","[data-fancybox-zoom]",function(t){i[i.isScaledDown()?"scaleToActual":"scaleToFit"]()}),o.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?d(function(){i.update()}):(i.$refs.stage.hide(),setTimeout(function(){i.$refs.stage.show(),i.update()},f.fancybox.isMobile?600:250))}),s.on("focusin.fb",function(t){var e=f.fancybox?f.fancybox.getInstance():null;e.isClosing||!e.current||!e.current.opts.trapFocus||f(t.target).hasClass("fancybox-container")||f(t.target).is(r)||e&&"fixed"!==f(t.target).css("position")&&!e.$refs.container.has(t.target).length&&(t.stopPropagation(),e.focus())}),s.on("keydown.fb",function(t){var e=i.current,n=t.keyCode||t.which;if(e&&e.opts.keyboard&&!(t.ctrlKey||t.altKey||t.shiftKey||f(t.target).is("input")||f(t.target).is("textarea")))return 8===n||27===n?(t.preventDefault(),void i.close(t)):37===n||38===n?(t.preventDefault(),void i.previous()):39===n||40===n?(t.preventDefault(),void i.next()):void i.trigger("afterKeydown",t,n)}),i.group[i.currIndex].opts.idleTime&&(i.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){i.idleSecondsCounter=0,i.isIdle&&i.showControls(),i.isIdle=!1}),i.idleInterval=c.setInterval(function(){i.idleSecondsCounter++,i.idleSecondsCounter>=i.group[i.currIndex].opts.idleTime&&!i.isDragging&&(i.isIdle=!0,i.idleSecondsCounter=0,i.hideControls())},1e3))},removeEvents:function(){o.off("orientationchange.fb resize.fb"),s.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(c.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,i){var e,o,n,s,r,a,l=this,c=l.group.length;if(!(l.isDragging||l.isClosing||l.isAnimating&&l.firstRun)){if(t=parseInt(t,10),!(r=(l.current||l).opts.loop)&&(t<0||c<=t))return!1;e=l.firstRun=!Object.keys(l.slides).length,c<2&&!e&&l.isDragging||(n=l.current,l.prevIndex=l.currIndex,l.prevPos=l.currPos,o=l.createSlide(t),1<c&&((r||0<o.index)&&l.createSlide(t-1),r||o.index<c-1)&&l.createSlide(t+1),l.current=o,l.currIndex=o.index,l.currPos=o.pos,l.trigger("beforeShow",e),l.updateControls(),r=f.fancybox.getTranslate(o.$slide),o.isMoved=(0!==r.left||0!==r.top)&&!o.$slide.hasClass("fancybox-animated"),o.forcedDuration=g,f.isNumeric(i)?o.forcedDuration=i:i=o.opts[e?"animationDuration":"transitionDuration"],i=parseInt(i,10),e?(o.opts.animationEffect&&i&&l.$refs.container.css("transition-duration",i+"ms"),l.$refs.container.removeClass("fancybox-is-hidden"),h(l.$refs.container),l.$refs.container.addClass("fancybox-is-open"),h(l.$refs.container),o.$slide.addClass("fancybox-slide--previous"),l.loadSlide(o),o.$slide.removeClass("fancybox-slide--previous").addClass("fancybox-slide--current"),l.preload("image")):(f.each(l.slides,function(t,e){f.fancybox.stop(e.$slide)}),o.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current"),o.isMoved?(s=Math.round(o.$slide.width()),f.each(l.slides,function(t,e){var n=e.pos-o.pos;f.fancybox.animate(e.$slide,{top:0,left:n*s+n*e.opts.gutter},i,function(){e.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous"),e.pos===l.currPos&&(o.isMoved=!1,l.complete())})})):l.$refs.stage.children().removeAttr("style"),o.isLoaded?l.revealContent(o):l.loadSlide(o),l.preload("image"),n.pos!==o.pos&&(a="fancybox-slide--"+(n.pos>o.pos?"next":"previous"),n.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),n.isComplete=!1,i)&&(o.isMoved||o.opts.transitionEffect)&&(o.isMoved?n.$slide.addClass(a):(a="fancybox-animated "+a+" fancybox-fx-"+o.opts.transitionEffect,f.fancybox.animate(n.$slide,a,i,function(){n.$slide.removeClass(a).removeAttr("style")})))))}},createSlide:function(t){var e,n=this,i=t%n.group.length;return i=i<0?n.group.length+i:i,!n.slides[t]&&n.group[i]&&(e=f('<div class="fancybox-slide"></div>').appendTo(n.$refs.stage),n.slides[t]=f.extend(!0,{},n.group[i],{pos:t,$slide:e,isLoaded:!1}),n.updateSlide(n.slides[t])),n.slides[t]},scaleToActual:function(t,e,n){var i,o,s,r,a=this,l=a.current,c=l.$content,d=f.fancybox.getTranslate(l.$slide).width,u=f.fancybox.getTranslate(l.$slide).height,h=l.width,p=l.height;!a.isAnimating&&c&&"image"==l.type&&l.isLoaded&&!l.hasError&&(f.fancybox.stop(c),a.isAnimating=!0,t=t===g?.5*d:t,e=e===g?.5*u:e,(i=f.fancybox.getTranslate(c)).top-=f.fancybox.getTranslate(l.$slide).top,i.left-=f.fancybox.getTranslate(l.$slide).left,l=h/i.width,r=p/i.height,o=.5*d-.5*h,s=.5*u-.5*p,d<h&&(o=0<(o=i.left*l-(t*l-t))?0:o)<d-h&&(o=d-h),u<p&&(s=0<(s=i.top*r-(e*r-e))?0:s)<u-p&&(s=u-p),a.updateCursor(h,p),f.fancybox.animate(c,{top:s,left:o,scaleX:l,scaleY:r},n||330,function(){a.isAnimating=!1}),a.SlideShow)&&a.SlideShow.isActive&&a.SlideShow.stop()},scaleToFit:function(t){var e=this,n=e.current,i=n.$content;!e.isAnimating&&i&&"image"==n.type&&n.isLoaded&&!n.hasError&&(f.fancybox.stop(i),e.isAnimating=!0,n=e.getFitPos(n),e.updateCursor(n.width,n.height),f.fancybox.animate(i,{top:n.top,left
1:n.left,scaleX:n.width/i.width(),scaleY:n.height/i.height()},t||330,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,n,i,o=t.$content,s=t.width||t.opts.width,r=t.height||t.opts.height,a={};return!!(t.isLoaded&&o&&o.length)&&(o={top:parseInt(t.$slide.css("paddingTop"),10),right:parseInt(t.$slide.css("paddingRight"),10),bottom:parseInt(t.$slide.css("paddingBottom"),10),left:parseInt(t.$slide.css("paddingLeft"),10)},e=parseInt(this.$refs.stage.width(),10)-(o.left+o.right),n=parseInt(this.$refs.stage.height(),10)-(o.top+o.bottom),s&&r||(s=e,r=n),i=Math.min(1,e/s,n/r),s=Math.floor(i*s),r=Math.floor(i*r),"image"===t.type?(a.top=Math.floor(.5*(n-r))+o.top,a.left=Math.floor(.5*(e-s))+o.left):"video"===t.contentType&&(s/(i=t.opts.width&&t.opts.height?s/r:t.opts.ratio||16/9)<r?r=s/i:r*i<s&&(s=r*i)),a.width=s,a.height=r,a)},update:function(){var n=this;f.each(n.slides,function(t,e){n.updateSlide(e)})},updateSlide:function(t,e){var n=this,i=t&&t.$content,o=t.width||t.opts.width,s=t.height||t.opts.height;i&&(o||s||"video"===t.contentType)&&!t.hasError&&(f.fancybox.stop(i),f.fancybox.setTranslate(i,n.getFitPos(t)),t.pos===n.currPos)&&(n.isAnimating=!1,n.updateCursor()),t.$slide.trigger("refresh"),n.$refs.toolbar.toggleClass("compensate-for-scrollbar",t.$slide.get(0).scrollHeight>t.$slide.get(0).clientHeight),n.trigger("onUpdate",t)},centerSlide:function(t,e){var n,i;this.current&&(n=Math.round(t.$slide.width()),i=t.pos-this.current.pos,f.fancybox.animate(t.$slide,{top:0,left:i*n+i*t.opts.gutter,opacity:1},e===g?0:e,null,!1))},updateCursor:function(t,e){var n,i=this,o=i.current,s=i.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut");o&&!i.isClosing&&(n=i.isZoomable(),s.toggleClass("fancybox-is-zoomable",n),f("[data-fancybox-zoom]").prop("disabled",!n),n&&("zoom"===o.opts.clickContent||f.isFunction(o.opts.clickContent)&&"zoom"===o.opts.clickContent(o))?i.isScaledDown(t,e)?s.addClass("fancybox-can-zoomIn"):o.opts.touch?s.addClass("fancybox-can-drag"):s.addClass("fancybox-can-zoomOut"):o.opts.touch&&"video"!==o.contentType&&s.addClass("fancybox-can-drag"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if(t=this.getFitPos(e),e.width>t.width||e.height>t.height)return!0}return!1},isScaledDown:function(t,e){var n=!1,i=this.current,o=i.$content;return t!==g&&e!==g?n=t<i.width&&e<i.height:o&&(n=(n=f.fancybox.getTranslate(o)).width<i.width&&n.height<i.height),n},canPan:function(){var t,e=!1,n=this.current;return"image"===n.type&&(t=n.$content)&&!n.hasError&&(e=this.getFitPos(n),e=1<Math.abs(t.width()-e.width)||1<Math.abs(t.height()-e.height)),e},loadSlide:function(n){var t,e,i,o=this;if(!n.isLoading&&!n.isLoaded){switch(n.isLoading=!0,o.trigger("beforeLoad",n),t=n.type,(e=n.$slide).off("refresh").trigger("onReset").addClass(n.opts.slideClass),t){case"image":o.setImage(n);break;case"iframe":o.setIframe(n);break;case"html":o.setContent(n,n.src||n.content);break;case"video":o.setContent(n,'<video class="fancybox-video" controls controlsList="nodownload"><source src="'+n.src+'" type="'+n.opts.videoFormat+"\">Your browser doesn't support HTML5 video</video");break;case"inline":f(n.src).length?o.setContent(n,f(n.src)):o.setError(n);break;case"ajax":o.showLoading(n),i=f.ajax(f.extend({},n.opts.ajax.settings,{url:n.src,success:function(t,e){"success"===e&&o.setContent(n,t)},error:function(t,e){t&&"abort"!==e&&o.setError(n)}})),e.one("onReset",function(){i.abort()});break;default:o.setError(n)}return!0}},setImage:function(e){var t,n,i,o,s=this,r=e.opts.srcset||e.opts.image.srcset;if(e.timouts=setTimeout(function(){var t=e.$image;!e.isLoading||t&&t[0].complete||e.hasError||s.showLoading(e)},350),r){i=c.devicePixelRatio||1,o=c.innerWidth*i,(n=r.split(",").map(function(t){var i={};return t.trim().split(/\s+/).forEach(function(t,e){var n=parseInt(t.substring(0,t.length-1),10);return 0===e?i.url=t:void(n&&(i.value=n,i.postfix=t[t.length-1]))}),i})).sort(function(t,e){return t.value-e.value});for(var a=0;a<n.length;a++){var l=n[a];if("w"===l.postfix&&l.value>=o||"x"===l.postfix&&l.value>=i){t=l;break}}(t=!t&&n.length?n[n.length-1]:t)&&(e.src=t.url,e.width&&e.height&&"w"==t.postfix&&(e.height=e.width/e.height*t.value,e.width=t.value),e.opts.srcset=r)}e.$content=f('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),r=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&r&&(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=f("<img />").one("error",function(){f(this).remove(),e.$ghost=null}).one("load",function(){s.afterLoad(e)}).addClass("fancybox-image").appendTo(e.$content).attr("src",r)),s.setBigImage(e)},setBigImage:function(e){var n=this,i=f("<img />");e.$image=i.one("error",function(){n.setError(e)}).one("load",function(){var t;
1e.$ghost||(n.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),n.afterLoad(e)),e.timouts&&(clearTimeout(e.timouts),e.timouts=null),n.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<o.width()/o.height()?"100":Math.round(e.width/e.height*100))+"vw"),i.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!n.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),n.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(i[0].complete||"complete"==i[0].readyState)&&i[0].naturalWidth&&i[0].naturalHeight?i.trigger("load"):i[0].error&&i.trigger("error")},resolveImageSlideSize:function(t,e,n){var i=parseInt(t.opts.width,10),o=parseInt(t.opts.height,10);t.width=e,t.height=n,0<i&&(t.width=i,t.height=Math.floor(i*n/e)),0<o&&(t.width=Math.floor(o*e/n),t.height=o)},setIframe:function(o){var s,e=this,r=o.opts.iframe,t=o.$slide;o.$content=f('<div class="fancybox-content'+(r.preload?" fancybox-is-hidden":"")+'"></div>').css(r.css).appendTo(t),t.addClass("fancybox-slide--"+o.contentType),o.$iframe=s=f(r.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(r.attr).appendTo(o.$content),r.preload?(e.showLoading(o),s.on("load.fb error.fb",function(t){this.isReady=1,o.$slide.trigger("refresh"),e.afterLoad(o)}),t.on("refresh.fb",function(){var t,e=o.$content,n=r.css.width,i=r.css.height;if(1===s[0].isReady){try{t=s.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(e.css({width:"",height:""}),(n=n===g?Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0))):n)&&e.width(n),i=i===g?Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0))):i)&&e.height(i),e.removeClass("fancybox-is-hidden")}})):this.afterLoad(o),s.attr("src",o.src),t.one("onReset",function(){try{f(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}f(this).off("refresh.fb").empty(),o.isLoaded=!1})},setContent:function(t,e){var n;this.isClosing||(this.hideLoading(t),t.$content&&f.fancybox.stop(t.$content),t.$slide.empty(),(n=e)&&n.hasOwnProperty&&n instanceof f&&e.parent().length?(e.parent().parent(".fancybox-slide--inline").trigger("onReset"),t.$placeholder=f("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&3===(e=f("<div>").append(f.trim(e)).contents())[0].nodeType&&(e=f("<div>").html(e)),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){f(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1)}),f(e).appendTo(t.$slide),f(e).is("video,audio")&&(f(e).addClass("fancybox-video"),f(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||f(e).attr("width"),t.opts.height=t.opts.height||f(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio").first().addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.pos===e.currPos&&e.updateCursor(),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=f(e.translate(t,t.opts.btnTpl.smallBtn)).prependTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type)&&f('<div class="fancybox-spaceball"></div>').appendTo(t.$content),e.revealContent(t))},revealContent:function(e){var n,t,i=this,o=e.$slide,s=!1,r=!1,a=e.opts[i.firstRun?"animationEffect":"transitionEffect"],l=e.opts[i.firstRun?"animationDuration":"transitionDuration"];return l=parseInt(e.forcedDuration===g?l:e.forcedDuration,10),e.pos===i.currPos&&(e.isComplete?a=!1:i.isAnimating=!0),"zoom"===(a=!e.isMoved&&e.pos===i.currPos&&l?a:!1)&&(e.pos===i.currPos&&l&&"image"===e.type&&!e.hasError&&(r=i.getThumbPos(e))?s=i.getFitPos(e):a="fade"),"zoom"===a?(s.scaleX=s.width/r.width,s.scaleY=s.height/r.height,(t="auto"==(t=e.opts.zoomOpacity)?.1<Math.abs(e.width/e.height-r.
1width/r.height):t)&&(r.opacity=.1,s.opacity=1),f.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),r),h(e.$content),void f.fancybox.animate(e.$content,s,l,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(e),a?(f.fancybox.stop(o),n="fancybox-animated fancybox-slide--"+(e.pos>=i.prevPos?"next":"previous")+" fancybox-fx-"+a,o.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(n),e.$content.removeClass("fancybox-is-hidden"),h(o),void f.fancybox.animate(o,"fancybox-slide--current",l,function(t){o.removeClass(n).removeAttr("style"),e.pos===i.currPos&&i.complete()},!0)):(h(o),e.$content.removeClass("fancybox-is-hidden"),void(e.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,n=!1,t=t.opts.$thumb,i=t&&t.length&&t[0].ownerDocument===r?t.offset():0;return i&&function(t){for(var e=t[0],n=e.getBoundingClientRect(),i=[];null!==e.parentElement;)"hidden"!==f(e.parentElement).css("overflow")&&"auto"!==f(e.parentElement).css("overflow")||i.push(e.parentElement.getBoundingClientRect()),e=e.parentElement;return i.every(function(t){var e=Math.min(n.right,t.right)-Math.max(n.left,t.left),t=Math.min(n.bottom,t.bottom)-Math.max(n.top,t.top);return 0<e&&0<t})&&0<n.bottom&&0<n.right&&n.left<f(c).width()&&n.top<f(c).height()}(t)&&(e=this.$refs.stage.offset(),n={top:i.top-e.top+parseFloat(t.css("border-top-width")||0),left:i.left-e.left+parseFloat(t.css("border-left-width")||0),width:t.width(),height:t.height(),scaleX:1,scaleY:1}),n},complete:function(){var n=this,t=n.current,i={};!t.isMoved&&t.isLoaded&&(t.isComplete||(t.isComplete=!0,t.$slide.siblings().trigger("onReset"),n.preload("inline"),h(t.$slide),t.$slide.addClass("fancybox-slide--complete"),f.each(n.slides,function(t,e){e.pos>=n.currPos-1&&e.pos<=n.currPos+1?i[e.pos]=e:e&&(f.fancybox.stop(e.$slide),e.$slide.off().remove())}),n.slides=i),n.isAnimating=!1,n.updateCursor(),n.trigger("afterShow"),t.$slide.find("video,audio").filter(":visible:first").trigger("play"),f(r.activeElement).is("[disabled]")||t.opts.autoFocus&&"image"!=t.type&&"iframe"!==t.type)&&n.focus()},preload:function(t){var e=this,n=e.slides[e.currPos+1],i=e.slides[e.currPos-1];n&&n.type===t&&e.loadSlide(n),i&&i.type===t&&e.loadSlide(i)},focus:function(){var t,e=this.current;this.isClosing||e&&e.isComplete&&e.$content&&(t=(t=(t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t:e.$content.find("button,:input,[tabindex],a").filter(":enabled:visible:first"))&&t.length?t:e.$content).trigger("focus")},activate:function(){var e=this;f(".fancybox-container").each(function(){var t=f(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function n(){l.cleanUp(t)}var i,o,s,r,a,l=this,c=l.current;return!l.isClosing&&(!(l.isClosing=!0)===l.trigger("beforeClose",t)?(l.isClosing=!1,d(function(){l.update()}),!1):(l.removeEvents(),c.timouts&&clearTimeout(c.timouts),o=c.$content,i=c.opts.animationEffect,e=f.isNumeric(e)?e:i?c.opts.animationDuration:0,c.$slide.off(u).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),c.$slide.siblings().trigger("onReset").remove(),e&&l.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),l.hideLoading(c),l.hideControls(),l.updateCursor(),"zoom"===(i="zoom"!==i||!0!==t&&o&&e&&"image"===c.type&&!c.hasError&&(a=l.getThumbPos(c))?i:"fade")?(f.fancybox.stop(o),r={top:(r=f.fancybox.getTranslate(o)).top,left:r.left,scaleX:r.width/a.width,scaleY:r.height/a.height,width:a.width,height:a.height},(s="auto"==(s=c.opts.zoomOpacity)?.1<Math.abs(c.width/c.height-a.width/a.height):s)&&(a.opacity=0),f.fancybox.setTranslate(o,r),h(o),f.fancybox.animate(o,a,e,n)):i&&e?!0===t?setTimeout(n,e):f.fancybox.animate(c.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+i,e,n):n(),!0))},cleanUp:function(t){var e=this,n=f("body");e.current.$slide.trigger("onReset"),e.$refs.container.empty().remove(),e.trigger("afterClose",t),e.$lastFocus&&e.current.opts.backFocus&&e.$lastFocus.trigger("focus"),e.current=null,(t=f.fancybox.getInstance())?t.activate():(n.removeClass("fancybox-active compensate-for-scrollbar"),f("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,i=Array.prototype.slice.call(arguments,1
1),o=this,e=e&&e.opts?e:o.current;return e?i.unshift(e):e=o,i.unshift(o),!1===(n=f.isFunction(e.opts[t])?e.opts[t].apply(e,i):n)?n:void("afterClose"!==t&&o.$refs?o.$refs.container:s).trigger(t+".fb",i)},updateControls:function(t){var e=this,n=e.current,i=n.index,o=n.opts.caption,s=e.$refs.container,r=e.$refs.caption;n.$slide.trigger("refresh"),e.$caption=o&&o.length?r.html(o):null,e.isHiddenControls||e.isIdle||e.showControls(),s.find("[data-fancybox-count]").html(e.group.length),s.find("[data-fancybox-index]").html(i+1),s.find("[data-fancybox-prev]").toggleClass("disabled",!n.opts.loop&&i<=0),s.find("[data-fancybox-next]").toggleClass("disabled",!n.opts.loop&&i>=e.group.length-1),"image"===n.type?s.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&s.find("[data-fancybox-download],[data-fancybox-zoom]").hide()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this,e=(t.current||t).opts,n=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("fancybox-is-modal",!!e.modal),t.$caption?n.addClass("fancybox-show-caption "):n.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),f.fancybox={version:"3.3.5",defaults:t,getInstance:function(t){var e=f('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),n=Array.prototype.slice.call(arguments,1);return e instanceof i&&("string"===f.type(t)?e[t].apply(e,n):"function"===f.type(t)&&t.apply(e,n),e)},open:function(t,e,n){return new i(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t)&&this.close()},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:r.createTouch!==g&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(t=r.createElement("div"),c.getComputedStyle&&c.getComputedStyle(t)&&c.getComputedStyle(t).getPropertyValue("transform")&&!(r.documentMode&&r.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left
1:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var n="",i={};if(t&&e)return e.left===g&&e.top===g||(n=(e.left===g?t.position():e).left+"px, "+(e.top===g?t.position():e).top+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),(n=e.scaleX!==g&&e.scaleY!==g?(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")":n).length&&(i.transform=n),e.opacity!==g&&(i.opacity=e.opacity),e.width!==g&&(i.width=e.width),e.height!==g&&(i.height=e.height),t.css(i)},animate:function(e,n,t,i,o){var s=!1;f.isFunction(t)&&(i=t,t=null),f.isPlainObject(n)||e.removeAttr("style"),f.fancybox.stop(e),e.on(u,function(t){(!t||!t.originalEvent||e.is(t.originalEvent.target)&&"z-index"!=t.originalEvent.propertyName)&&(f.fancybox.stop(e),s&&f.fancybox.setTranslate(e,s),f.isPlainObject(n)?!1===o&&e.removeAttr("style"):!0!==o&&e.removeClass(n),f.isFunction(i))&&i(t)}),f.isNumeric(t)&&e.css("transition-duration",t+"ms"),f.isPlainObject(n)?(n.scaleX!==g&&n.scaleY!==g&&(s=f.extend({},n,{width:e.width()*n.scaleX,height:e.height()*n.scaleY,scaleX:1,scaleY:1}),delete n.width,delete n.height,e.parent().hasClass("fancybox-slide--image"))&&e.parent().addClass("fancybox-is-scaling"),f.fancybox.setTranslate(e,n)):e.addClass(n),e.data("timer",setTimeout(function(){e.trigger("transitionend")},t+16))},stop:function(t){t&&t.length&&(clearTimeout(t.data("timer")),t.off("transitionend").css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},f.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},n):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},n),this},s.on("click.fb-start","[data-fancybox]",n),s.on("click.fb-start","[data-trigger]",function(t){n(t,{$target:f('[data-fancybox="'+f(t.currentTarget).attr("data-trigger")+'"]').eq(f(t.currentTarget).attr("data-index")||0),$trigger:f(this)})})}}(window,document,window.jQuery||jQuery),function(p){"use strict";function f(n,t,e){if(n)return"object"===p.type(e=e||"")&&(e=p.param(e,!0)),p.each(t,function(t,e){n=n.replace("$"+t,e||"")}),e.length&&(n+=(0<n.indexOf("?")?"&":"?")+e),n}var i={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};p(document).on("objectNeedsType.fb",function(t,e,o){var s,r,a,l,c,d,u=o.src||"",h=!1,n=p.extend(!0,{},i,o.opts.media);p.each(n,function(t,e){if(r=u.match(e.matcher)){if(h=e.type,d=t,c={},e.paramPlace&&r[e.paramPlace]){l=(l="?"==(l=r[e.paramPlace])[0]?l.substring(1):l).split("&");for(var n=0;n<l.length;++n){var i=l[n].split("=",2);2==i.length&&(c[i[0]]=decodeURIComponent(i[1].replace(/\+/g," ")))}}return a=p.extend(!0,{},e.params,o.opts[t],c),u="function"===p.type(e.url)?e.url.call(this,r,a,o):f(e.url,r,a),s="function"===p.type(e.thumb)?e.thumb.call(this,r,a,o):f(e.thumb,r),"youtube"===t?u=u.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,i){return"&start="+((n?60*parseInt(n,10):0)+parseInt(i,10))}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),h?(o.opts.thumb||o.opts.$thumb&&o.opts.$thumb.length||(o.opts.thumb=s),"iframe"===h&&(o.opts=p.extend(!0,o.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),p.extend(o,{type:h,src:u,origSrc:o.src,contentSource:d,contentType:"image"===h?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(o.type=o.opts.defaultType)})}(window.jQuery||jQuery),function(d,a,u){"use strict";function h(t){var e,n=[];for(e in t=(t=t.originalEvent||t||d.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?n.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&n.push({x:t[e].clientX,y:t[e].clientY});return n}function p(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function l(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio')||u.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,n=t[0].attributes,i=n.length;e<i;e++)if("data-fancybox-"===n[e].nodeName.substr(0,14))return 1}function c(t){for(var e,n,i,o=!1;(e=t.get(0),i=n=i=n=void 0,n=d.getComputedStyle(e)["overflow-y"],i=d.getComputedStyle(e)["overflow-x"],n=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,i=("scroll"===i||"auto"===i)&&e.scrollWidth>e.clientWidth,!(o=n||i))&&((t=t.parent()).length&&!t.hasClass("fancybox-stage")&&!t.is("body")););return o}function n(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",u.proxy(e,"ontouchstart"))}var f=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(t){return d.setTimeout(t,1e3/60)},g=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.mozCancelAnimationFrame||d.oCancelAnimationFrame||function(t){d.clearTimeout(t)};n.prototype.destroy=function(){this.$container.off(".fb.touch")},n.prototype.ontouchstart=function(t){var e=this,n=u(t.target),i=e.instance,o=i.current,s=o.$content,r="touchstart"==t.type;r&&e.$container.off("mousedown.fb.touch"),t.originalEvent&&2==t.originalEvent.button||!n.length||l(n)||l(n.parent())||!n.is("img")&&t.originalEvent.clientX>n[0].clientWidth+n.offset().left||(!o||i.isAnimating||i.isClosing?(t.stopPropagation(),t.preventDefault()):(e.realPoints=e.startPoints=h(t),e.startPoints.length&&(t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=n,e.$content=s,e.opts=o.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(o.$slide[0].clientWidth),e.canvasHeight=Math.round(o.$slide[0].clientHeight),e.contentLastPos=null,e.contentStartPos=u.fancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=e.sliderLastPos||u.fancybox.getTranslate(o.$slide),e.stagePos=u.fancybox.getTranslate(i.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,u(a).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",u.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",u.proxy(e,"ontouchmove")),u.fancybox.isMobile&&a.addEventListener("scroll",e.onscroll,!0),!e.opts&&!i.canPan()||!n.is(e.$stage)&&!e.$stage.find(n).length?n.is(".fancybox-image")&&t.preventDefault():(u.fancybox.isMobile&&(c(n)||c(n.parent()))||t.preventDefault(),1!==e.startPoints.length&&!o.hasError||(e.instance.canPan()?(u.fancybox.stop(e.$content),e.$content.css("transition-duration",""),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("fancybox-controls--isGrabbing")),2===e.startPoints.length&&"image"===o.type&&(o.isLoaded||o.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,u.fancybox.stop(e.$content),e.$content.css("transition-duration",""),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-u(d).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-u(d).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=p(e.startPoints[0],e.startPoints[1]))))))},n.prototype.onscroll=function(t){this.isScrolling=!0,a.removeEventListener("scroll",this.onscroll,!0)},n.prototype.ontouchmove=function(t){var e=this,n=u(t.target);return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling||!n.is(e.$stage)&&!e.$stage.find(n).length?void(e.canTap=!1):(e.newPoints=h(t),void((e.opts||e.instance.canPan())&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=p(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=p(e.newPoints[0],e.startPoints[0],"y"),e.distance=p(e.newPoints[0],e.startPoints[0]),0<e.distance)&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom())))},n.prototype.onSwipe=function(t){var i=this,e=i.isSwiping,n=i.sliderStartPos.left||0;!0!==e?("x"==e&&(0<i.distanceX&&(i.instance.group.length<2||0===i.instance.current.index&&!i.instance.current.opts.loop)?n+=Math.pow(i.distanceX,.8):i.distanceX<0&&(i.instance.group.length<2||i.instance.current.index===i.instance.group.length-1&&!i.instance.current.opts.loop)?n-=Math.pow(-i.distanceX,.8):n+=i.distanceX),i.sliderLastPos={top:"x"==e?0:i.sliderStartPos.top+i.distanceY,left:n},i.requestId&&(g(i.requestId),i.requestId=null),i.requestId=f(function(){i.sliderLastPos&&(u.each(i.instance.slides,function(t,e){var n=e.pos-i.instance.currPos;
1u.fancybox.setTranslate(e.$slide,{top:i.sliderLastPos.top,left:i.sliderLastPos.left+n*i.canvasWidth+n*e.opts.gutter})}),i.$container.addClass("fancybox-is-sliding"))})):10<Math.abs(i.distance)&&(i.canTap=!1,i.instance.group.length<2&&i.opts.vertical?i.isSwiping="y":i.instance.isDragging||!1===i.opts.vertical||"auto"===i.opts.vertical&&800<u(d).width()?i.isSwiping="x":(e=Math.abs(180*Math.atan2(i.distanceY,i.distanceX)/Math.PI),i.isSwiping=45<e&&e<135?"y":"x"),i.canTap=!1,"y"===i.isSwiping&&u.fancybox.isMobile&&(c(i.$target)||c(i.$target.parent()))?i.isScrolling=!0:(i.instance.isDragging=i.isSwiping,i.startPoints=i.newPoints,u.each(i.instance.slides,function(t,e){u.fancybox.stop(e.$slide),e.$slide.css("transition-duration",""),e.inTransition=!1,e.pos===i.instance.current.pos&&(i.sliderStartPos.left=u.fancybox.getTranslate(e.$slide).left-u.fancybox.getTranslate(i.instance.$refs.stage).left)}),i.instance.SlideShow&&i.instance.SlideShow.isActive&&i.instance.SlideShow.stop()))},n.prototype.onPan=function(){var t=this;return p(t.newPoints[0],t.realPoints[0])<(u.fancybox.isMobile?10:5)?void(t.startPoints=t.newPoints):(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&(g(t.requestId),t.requestId=null),void(t.requestId=f(function(){u.fancybox.setTranslate(t.$content,t.contentLastPos)})))},n.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,n=t.canvasHeight,i=t.distanceX,o=t.distanceY,t=t.contentStartPos,s=t.left,r=t.top,a=t.width,t=t.height,l=e<a?s+i:s,c=r+o,d=Math.max(0,.5*e-.5*a),u=Math.max(0,.5*n-.5*t),e=Math.min(e-a,.5*e-.5*a),a=Math.min(n-t,.5*n-.5*t);return 0<i&&d<l&&(l=d-1+Math.pow(-d+s+i,.8)||0),i<0&&l<e&&(l=e+1-Math.pow(e-s-i,.8)||0),0<o&&u<c&&(c=u-1+Math.pow(-u+r+o,.8)||0),{top:c=o<0&&c<a?a+1-Math.pow(a-r-o,.8)||0:c,left:l}},n.prototype.limitPosition=function(t,e,n,i){var o=this.canvasWidth,s=this.canvasHeight;return t=o<n?(t=0<t?0:t)<o-n?o-n:t:Math.max(0,o/2-n/2),{top:e=s<i?(e=0<e?0:e)<s-i?s-i:e:Math.max(0,s/2-i/2),left:t}},n.prototype.onZoom=function(){var t=this,e=t.contentStartPos,n=e.width,i=e.height,o=e.left,e=e.top,s=p(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(n*s),a=Math.floor(i*s),n=(n-r)*t.percentageOfImageAtPinchPointX,i=(i-a)*t.percentageOfImageAtPinchPointY,l=(t.newPoints[0].x+t.newPoints[1].x)/2-u(d).scrollLeft(),c=(t.newPoints[0].y+t.newPoints[1].y)/2-u(d).scrollTop(),l=l-t.centerPointStartX,e={top:e+(i+(c-t.centerPointStartY)),left:o+(n+l),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=a,t.contentLastPos=e,t.requestId&&(g(t.requestId),t.requestId=null),t.requestId=f(function(){u.fancybox.setTranslate(t.$content,t.contentLastPos)})},n.prototype.ontouchend=function(t){var e=this,n=Math.max((new Date).getTime()-e.startTime,1),i=e.isSwiping,o=e.isPanning,s=e.isZooming,r=e.isScrolling;return e.endPoints=h(t),e.$container.removeClass("fancybox-controls--isGrabbing"),u(a).off(".fb.touch"),a.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(g(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap?e.onTap(t):(e.speed=366,e.velocityX=e.distanceX/n*.5,e.velocityY=e.distanceY/n*.5,e.speedX=Math.max(.5*e.speed,Math.min(1.5*e.speed,1/Math.abs(e.velocityX)*e.speed)),void(o?e.endPanning():s?e.endZooming():e.endSwiping(i,r)))},n.prototype.endSwiping=function(t,e){var n=this,i=!1,o=n.instance.group.length;n.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(n.distanceY)?(u.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+150*n.velocityY,opacity:0},200),i=n.instance.close(!0,200)):"x"==t&&50<n.distanceX&&1<o?i=n.instance.previous(n.speedX):"x"==t&&n.distanceX<-50&&1<o&&(i=n.instance.next(n.speedX)),!1!==i||"x"!=t&&"y"!=t||(e||o<2?n.instance.centerSlide(n.instance.current,150):n.instance.jumpTo(n.instance.current.index)),n.$container.removeClass("fancybox-is-sliding")},n.prototype.endPanning=function(){var t,e,n=this;n.contentLastPos&&(t=!1===n.opts.momentum?(e=n.contentLastPos.left,n.contentLastPos.top):(e=n.contentLastPos.left+n.velocityX*n.speed,n.contentLastPos.top+n.velocityY*n.speed),(e=n.limitPosition(e,t,n.contentStartPos.width,n.contentStartPos.height)).width=n.contentStartPos.width,e.height=n.contentStartPos.height,u.fancybox.animate(n.$content,e,330))},n.prototype.endZooming=function(){var t,e,n=this,i=n.instance.current,o=n.newWidth,s=n.newHeight;n.contentLastPos&&(t=n.contentLastPos.left,e=n.contentLastPos.top,u.fancybox.setTranslate(n.$content,{top:e,left:t,width:o,height:s,scaleX:1,scaleY:1}
1),o<n.canvasWidth&&s<n.canvasHeight?n.instance.scaleToFit(150):o>i.width||s>i.height?n.instance.scaleToActual(n.centerPointStartX,n.centerPointStartY,150):(i=n.limitPosition(t,e,o,s),u.fancybox.setTranslate(n.$content,u.fancybox.getTranslate(n.$content)),u.fancybox.animate(n.$content,i,150)))},n.prototype.onTap=function(e){function t(t){if(t=r.opts[t],t=u.isFunction(t)?t.apply(s,[r,e]):t)switch(t){case"close":s.close(i.startEvent);break;case"toggleControls":s.toggleControls(!0);break;case"next":s.next();break;case"nextOrClose":1<s.group.length?s.next():s.close(i.startEvent);break;case"zoom":"image"==r.type&&(r.isLoaded||r.$ghost)&&(s.canPan()?s.scaleToFit():s.isScaledDown()?s.scaleToActual(l,c):s.group.length<2&&s.close(i.startEvent))}}var n,i=this,o=u(e.target),s=i.instance,r=s.current,a=e&&h(e)||i.startPoints,l=a[0]?a[0].x-u(d).scrollLeft()-i.stagePos.left:0,c=a[0]?a[0].y-u(d).scrollTop()-i.stagePos.top:0;if((!e.originalEvent||2!=e.originalEvent.button)&&(o.is("img")||!(l>o[0].clientWidth+o.offset().left))){if(o.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="Outside";else if(o.is(".fancybox-slide"))n="Slide";else{if(!s.current.$content||!s.current.$content.find(o).addBack().filter(o).length)return;n="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,50<Math.abs(l-i.tapX)||50<Math.abs(c-i.tapY))return this;t("dblclick"+n)}else i.tapX=l,i.tapY=c,r.opts["dblclick"+n]&&r.opts["dblclick"+n]!==r.opts["click"+n]?i.tapped=setTimeout(function(){i.tapped=null,t("click"+n)},500):t("click"+n);return this}},u(a).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new n(e))})}(window,document,window.jQuery||jQuery),function(s,r){"use strict";r.extend(!0,r.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg viewBox="0 0 40 40"><path d="M13,12 L27,20 L13,27 Z" /><path d="M15,10 v19 M23,10 v19" /></svg></button>'},slideShow:{autoStart:!1,speed:3e3}});function n(t){this.instance=t,this.init()}r.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currIndex].opts.slideShow)&&t.$button.hide()},set:function(t){var e=this;e.instance&&e.instance.current&&(!0===t||e.instance.current.opts.loop||e.instance.currIndex<e.instance.group.length-1)?e.timer=setTimeout(function(){e.isActive&&e.instance.jumpTo((e.instance.currIndex+1)%e.instance.group.length)},e.instance.current.opts.slideShow.speed):(e.stop(),e.instance.idleSecondsCounter=0,e.instance.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null},start:function(){var t=this.instance.current;t&&(this.isActive=!0,this.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),this.set(!0))},stop:function(){var t=this.instance.current;this.clear(),this.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),this.isActive=!1},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,i){e=e&&e.SlideShow;i?e&&n.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.fb":function(t,e,n){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.fb":function(t,e,n,i,o){e=e&&e.SlideShow;!e||!n.opts.slideShow||80!==o&&32!==o||r(s.activeElement).is("button,a,input")||(i.preventDefault(),e.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),r(s).on("visibilitychange",function(){var t=r.fancybox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(s.hidden?t.clear():t.set())})}(document,window.jQuery||jQuery),function(s,n){"use strict";var e=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
1webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},n=0;n<t.length;n++){var i=t[n];if(i&&i[1]in s){for(var o=0;o<i.length;o++)e[t[0][o]]=i[o];return e}}return!1}();if(!e)return n&&n.fancybox&&(n.fancybox.defaults.btnTpl.fullScreen=!1);var i={request:function(t){(t=t||s.documentElement)[e.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){s[e.exitFullscreen]()},toggle:function(t){t=t||s.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(s[e.fullscreenElement])},enabled:function(){return Boolean(s[e.fullscreenEnabled])}};n.extend(!0,n.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}"><svg viewBox="0 0 40 40"><path d="M9,12 v16 h22 v-16 h-22 v8" /></svg></button>'},fullScreen:{autoStart:!1}}),n(s).on({"onInit.fb":function(t,e){e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),i.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&i.request(),e.FullScreen=i):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,i,o){e&&e.FullScreen&&70===o&&(i.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&i.exit()}}),n(s).on(e.fullscreenchange,function(){var t=i.isFullscreen(),e=n.fancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.current.$content.css("transition","none"),e.isAnimating=!1,e.update(!0,!0,0)),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("fancybox-is-fullscreen",t))})}(document,window.jQuery||jQuery),function(t,s){"use strict";function n(t){this.init(t)}var r="fancybox-thumbs",a=r+"-active";s.fancybox.defaults=s.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg viewBox="0 0 120 120"><path d="M30,30 h14 v14 h-14 Z M50,30 h14 v14 h-14 Z M70,30 h14 v14 h-14 Z M30,50 h14 v14 h-14 Z M50,50 h14 v14 h-14 Z M70,50 h14 v14 h-14 Z M30,70 h14 v14 h-14 Z M50,70 h14 v14 h-14 Z M70,70 h14 v14 h-14 Z" /></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},s.fancybox.defaults);s.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e,n,i=this;((i.instance=t).Thumbs=i).opts=t.group[t.currIndex].opts.thumbs,e=(e=t.group[0]).opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),1<t.group.length&&(n=(n=t.group[1]).opts.thumb||!(!n.opts.$thumb||!n.opts.$thumb.length)&&n.opts.$thumb.attr("src")),i.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]"),i.opts&&e&&n&&e&&n?(i.$button.show().on("click",function(){i.toggle()}),i.isActive=!0):i.$button.hide()},create:function(){var n,t=this,e=t.instance,i=t.opts.parentEl,o=[];t.$grid||(t.$grid=s('<div class="'+r+" "+r+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(i).addBack().filter(i)),t.$grid.on("click","li",function(){e.jumpTo(s(this).attr("data-index"))})),t.$list||(t.$list=s("<ul>").appendTo(t.$grid)),s.each(e.group,function(t,e){(n=e.opts.thumb||(e.opts.$thumb?e.opts.$thumb.attr("src"):null))||"image"!==e.type||(n=e.src),o.push('<li data-index="'+t+'" tabindex="0" class="fancybox-thumbs-loading"'+(n&&n.length?' style="background-image:url('+n+')" />':"")+"></li>")}),t.$list[0].innerHTML=o.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,i=this,o=i.$list,s=i.$grid;i.instance.current&&(n=(e=o.children().removeClass(a).filter('[data-index="'+i.instance.current.index+'"]').addClass(a)).position(),"y"===i.opts.axis&&(n.top<0||n.top>o.height()-e.outerHeight())?o.stop().animate({scrollTop:o.scrollTop()+n.top},t):"x"===i.opts.axis&&(n.left<s.scrollLeft()||n.left>s.scrollLeft()+(s.width()-e.outerWidth()))&&o.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focu
1s(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),s(t).on({"onInit.fb":function(t,e){e&&!e.Thumbs&&(e=new n(e)).isActive&&!0===e.opts.autoStart&&e.show()},"beforeShow.fb":function(t,e,n,i){e=e&&e.Thumbs;e&&e.isVisible&&e.focus(i?0:250)},"afterKeydown.fb":function(t,e,n,i,o){e=e&&e.Thumbs;e&&e.isActive&&71===o&&(i.preventDefault(),e.toggle())},"beforeClose.fb":function(t,e){e=e&&e.Thumbs;e&&e.isVisible&&!1!==e.opts.hideOnClose&&e.$grid.hide()}})}(document,window.jQuery||jQuery),function(t,o){"use strict";o.extend(!0,o.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg viewBox="0 0 40 40"><path d="M6,30 C8,18 19,16 23,16 L23,16 L23,10 L33,20 L23,29 L23,24 C19,24 8,27 6,30 Z"></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" /></p></div>'}}),o(t).on("click","[data-fancybox-share]",function(){var t,e,n=o.fancybox.getInstance(),i=n.current||null;i&&("function"===o.type(i.opts.share.url)&&(t=i.opts.share.url.apply(i,[n,i])),i=i.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,(e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))).replace(/\{\{descr\}\}/g,n.$caption?encodeURIComponent(n.$caption.text()):""),o.fancybox.open({src:n.translate(n,i),type:"html",opts:{animationEffect:!1,afterLoad:function(t,e){n.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__links a").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})}}}))})}(document,window.jQuery||jQuery),function(s,r,i){"use strict";function o(){var t=r.location.hash.substr(1),e=t.split("-"),n=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:n<1?1:n,gallery:e.join("-")}}function e(t){""!==t.gallery&&i("[data-fancybox='"+i.escapeSelector(t.gallery)+"']").eq(t.index-1).trigger("click.fb-start")}function a(t){return!!t&&""!==(t=(t=(t.current||t).opts).hash||(t.$orig?t.$orig.data("fancybox"):""))&&t}i.escapeSelector||(i.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"ďż˝":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),i(function(){!1!==i.fancybox.defaults.hash&&(i(s).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1)},"beforeShow.fb":function(t,e,n,i){var o;n&&!1!==n.opts.hash&&(o=a(e))&&(e.currentHash=o+(1<e.group.length?"-"+(n.index+1):""),r.location.hash!=="#"+e.currentHash)&&(e.origHash||(e.origHash=r.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in r.history?(r.history[i?"pushState":"replaceState"]({},s.title,r.location.pathname+r.location.search+"#"+e.currentHash),i&&(e.hasCreatedHistory=!0)):r.location.hash=e.currentHash,e.hashTimer=null},300))},"beforeClose.fb":function(t,e,n){!1!==n.opts.hash&&(a(e),e.currentHash&&e.hasCreatedHistory?r.history.back():e.currentHash&&("replaceState"in r.history?r.history.replaceState({},s.title,r.location.pathname+r.location.search+(e.origHash||"")):r.location.hash=e.origHash),e.currentHash=null,clearTimeout(e.hashTimer))}}),i(r).on("hashchange.fb",function(){var n,t=o();i.each(i(".fancybox-container").get().reverse(),function(t,e){e=i(e).data("FancyBox");if(e.currentHash)return n=e,!1}),n?!n.currentHash||n.currentHash===t.gallery+"-"+t.index||1===t.index&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):""!==t.gallery&&e(t)}),setTimeout(function(){i.fancybox.getInstance()||e(o())},50))})}(document,window,window.jQuery||jQuery),function(t,e){"use strict";var o=(new Date).getTime();e(t).on({"onInit.fb":function(t,i,e){i.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=i.current,n=(new Date).getTime();i.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("fancybox-animated"))||(t=t.originalEvent||t,n-o<250)||(o=n,i[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())})}})}(document,window.jQuery||jQuery),!function(e,y){"use strict";if(!y)throw new Error("Filterizr requires jQuery to work.");function b(t){this.init(t)}b.prototype={init:function(t){this.root={x:0,y:0,w:t}},fit:function(t){var e,n,i,o=t.length,s=0<o?t[0].h:0;for(this.root.h=s,e=0;e<o;e++)i=t[e],(n=this.findNode(this.root,i.w,i.h))?i.fit=this.splitNode(n,i.w,i.h):i.fit=this.growDown(i.w,i.h)},findNode:function(t,e,n){return t.used?this.findNode(t.right,e,n)||this.findNode(t.down,e,n):e<=t.w&&n<=t.h?t:null},splitNode:function(t,e,n){return t.used=!0,t.down={x:t.x,y:t.y+n,w:t.w,h:t.h-n},t.right={x:t.x+e,y:t.y,w:t.w-e,h:n},t},growDown:function(t,e){var n;return this.root={used:!0,x:0,y:0,w:this.root.w,h:this.root.h+e,down:{x:0,y:this.root.h,w:this.root.w,h:e},right:this.root},(n=this.findNode(this.root,t,e))?this.splitNode(n,t,e):null}},y.fn.filterizr=function(){var t=this,e=arguments;if(t._fltr||(t._fltr=y.fn.filterizr.prototype.init(t,"object"==typeof e[0]?e[0]:void 0)),"string"==typeof e[0]){if(-1<e[0].lastIndexOf("_"))throw new Error("Filterizr error: You cannot call private methods");if("function"!=typeof t._fltr[e[0]])throw new Error("Filterizr error: There is no such function");t._fltr[e[0]](e[1],e[2])}return t},y.fn.filterizr.prototype={init:function(t,e){var n=y(t).extend(y.fn.filterizr.prototype);return n.options={animationDuration:.5,callbacks:{onFilteringStart:function(){},onFilteringEnd:function(){},onShufflingStart:function(){},onShufflingEnd:function(){},onSortingStart:function(){},onSortingEnd:function(){}},delay:0,delayMode:"progressive",easing:"ease-out",filter:"all",filterOutCss:{opacity:0,transform:"scale(0.5)"},filterInCss:{opacity:1,transform:"scale(1)"},layout:"sameSize",setupControls:!0},0===arguments.length&&(e=n.options),(e=1===arguments.length&&"object"==typeof t?t:e)&&n.setOptions(e),n.css({padding:0,position:"relative"}),n._lastCategory=0,n._isAnimating=!1,n._isShuffling=!1,n._isSorting=!1,n._mainArray=n._getFiltrItems(),n._subArrays=n._makeSubarrays(),n._activeArray=n._getCollectionBy
1Filter(n.options.filter),n._toggledCategories={},n._typedText=y("input[data-search]").val()||"",n._uID="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}),n._setupEvents(),n.options.setupControls&&n._setupControls(),n.filter(n.options.filter),n},filter:function(t){var e=this._getCollectionByFilter(t);this.options.filter=t,this.trigger("filteringStart"),this._handleFiltering(e),this._isSearchActivated()&&this.search(this._typedText)},toggleFilter:function(t){var e=this;e.trigger("filteringStart"),t&&(e._toggledCategories[t]?delete e._toggledCategories[t]:e._toggledCategories[t]=!0),e._multifilterModeOn()?(t=e._makeMultifilterArray(),e._handleFiltering(t)):e.filter("all"),e._isSearchActivated()&&e.search(e._typedText)},search:function(t){var e=this,n=e._multifilterModeOn()?e._makeMultifilterArray():e._getCollectionByFilter(e.options.filter),i=[],o=0;if(e._isSearchActivated())for(o=0;o<n.length;o++)-1<n[o].text().toLowerCase().indexOf(t.toLowerCase())&&i.push(n[o]);if(0<i.length)e._handleFiltering(i);else if(e._isSearchActivated())for(o=0;o<e._activeArray.length;o++)e._activeArray[o]._filterOut();else e._handleFiltering(n)},shuffle:function(){var t=this,e=(t._isAnimating=!0,t._isShuffling=!0,t.trigger("shufflingStart"),t._mainArray=t._fisherYatesShuffle(t._mainArray),t._subArrays=t._makeSubarrays(),t._multifilterModeOn()?t._makeMultifilterArray():t._getCollectionByFilter(t.options.filter));t._isSearchActivated()?t.search(t._typedText):t._placeItems(e)},sort:function(t,e){var n=this;if(t=t||"domIndex",e=e||"asc",n._isAnimating=!0,n._isSorting=!0,n.trigger("sortingStart"),"domIndex"!==t&&"sortData"!==t&&"w"!==t&&"h"!==t)for(var i=0;i<n._mainArray.length;i++)n._mainArray[i][t]=n._mainArray[i].data(t);n._mainArray.sort(n._comparator(t,e)),n._subArrays=n._makeSubarrays();e=n._multifilterModeOn()?n._makeMultifilterArray():n._getCollectionByFilter(n.options.filter);n._isSearchActivated()?n.search(n._typedText):n._placeItems(e)},setOptions:function(t){var e,n=this,i=0;for(e in t)n.options[e]=t[e];if(n._mainArray&&(t.animationDuration||t.delay||t.easing||t.delayMode))for(i=0;i<n._mainArray.length;i++)n._mainArray[i].css("transition","all "+n.options.animationDuration+"s "+n.options.easing+" "+n._mainArray[i]._calcDelay()+"ms");t.callbacks&&(t.callbacks.onFilteringStart||(n.options.callbacks.onFilteringStart=function(){}),t.callbacks.onFilteringEnd||(n.options.callbacks.onFilteringEnd=function(){}),t.callbacks.onShufflingStart||(n.options.callbacks.onShufflingStart=function(){}),t.callbacks.onShufflingEnd||(n.options.callbacks.onShufflingEnd=function(){}),t.callbacks.onSortingStart||(n.options.callbacks.onSortingStart=function(){}),t.callbacks.onSortingEnd||(n.options.callbacks.onSortingEnd=function(){})),n.options.filterInCss.transform||(n.options.filterInCss.transform="translate3d(0,0,0)"),n.options.filterOutCss.transform||(n.options.filterOutCss.transform="translate3d(0,0,0)")},_getFiltrItems:function(){var n=this,t=y(n.find(".filtr-item")),i=[];return y.each(t,function(t,e){e=y(e).extend(o)._init(t,n);i.push(e)}),i},_makeSubarrays:function(){for(var t=[],e=0;e<this._lastCategory;e++)t.push([]);for(e=0;e<this._mainArray.length;e++)if("object"==typeof this._mainArray[e]._category)for(var n=this._mainArray[e]._category.length,i=0;i<n;i++)t[this._mainArray[e]._category[i]-1].push(this._mainArray[e]);else t[this._mainArray[e]._category-1].push(this._mainArray[e]);return t},_makeMultifilterArray:function(){for(var t=[],e={},n=0;n<this._mainArray.length;n++){var i=this._mainArray[n],o=!1,s=i.domIndex in e==!1;if(Array.isArray(i._category)){for(var r=0;r<i._category.length;r++)if(i._category[r]in this._toggledCategories){o=!0;break}}else i._category in this._toggledCategories&&(o=!0);s&&o&&(e[i.domIndex]=!0,t.push(i))}return t},_setupControls:function(){var e=this;y("*[data-filter]").click(function(){var t=y(this).data("filter");e.options.filter!==t&&e.filter(t)}),y("*[data-multifilter]").click(function(){var t=y(this).data("multifilter");"all"===t?(e._toggledCategories={},e.filter("all")):e.toggleFilter(t)}),y("*[data-shuffle]").click(function(){e.shuffle()}),y("*[data-sortAsc]").click(function(){var t=y("*[data-sortOrder]").val();e.sort(t,"asc")}),y("*[data-sortDesc]").click(function(){var t=y("*[data-sortOrder]").val();e.sort(t,"desc")}),y("input[data-search]").keyup(function(){e._typedText=y(this).val(),e._delayEvent(function(){e.search(e._typedText)},250,e._uID)})},_setupEvents:function(){var t=this;y(e).resize(function(){t._delayEvent(function(){t.trigger("resizeFiltrContainer")},250,t._uID)}),t.on("resizeFiltrContainer",function(){t._multifilterModeOn()?t.toggleFilter():t.filter(t.options.filter)}).on("filteringStart",function(){t.options.callbacks.onFilteringStart()}).on("filteringEnd",function(){t.options.callbacks.onFilteringEnd()}).on("shufflingStart",function(){t._isShuffling=!0,t.options.callbacks.onShufflingStart()}).on("shufflingEnd",function(){t.options.callbacks.onShufflingEnd(),t._isShuffling=!1}).on("sortingStart",function(){t._isSorting=!0,t.options.callbacks.onSortingStart()}).on("sortingEnd",function(){t.options.callbacks.onSortingEnd(),t._isSorting=!1})},_calcItemPositions:function(){var t=this,e=t._activeArray,n=0,i=Math.round(t.width()/t.find(".filtr-item").outerWidth()),o=0,s=e[0].outerWidth(),r=0,a=0,l=0,c=0,d=0,u=[];
1if("packed"===t.options.layout){y.each(t._activeArray,function(t,e){e._updateDimensions()});var h=new b(t.outerWidth());for(h.fit(t._activeArray),c=0;c<e.length;c++)u.push({left:e[c].fit.x,top:e[c].fit.y});n=h.root.h}if("horizontal"===t.options.layout)for(c=o=1;c<=e.length;c++)s=e[c-1].outerWidth(),r=e[c-1].outerHeight(),u.push({left:a,top:l}),a+=s,n<r&&(n=r);else if("vertical"===t.options.layout){for(c=1;c<=e.length;c++)r=e[c-1].outerHeight(),u.push({left:a,top:l}),l+=r;n=l}else if("sameHeight"===t.options.layout){for(var o=1,p=t.outerWidth(),c=1;c<=e.length;c++){var s=e[c-1].width(),f=e[c-1].outerWidth(),g=0;e[c]&&(g=e[c].width()),u.push({left:a,top:l}),p<(d=a+s+g)?(l+=e[a=d=0].outerHeight(),o++):a+=f}n=o*e[0].outerHeight()}else if("sameWidth"===t.options.layout){for(c=1;c<=e.length;c++){if(u.push({left:a,top:l}),c%i==0&&o++,a+=s,(l=0)<o)for(d=o;0<d;)l+=e[c-i*d].outerHeight(),d--;c%i==0&&(a=0)}for(c=0;c<i;c++){for(var m=0,v=c;e[v];)m+=e[v].outerHeight(),v+=i;m=(n<m&&(n=m),0)}}else if("sameSize"===t.options.layout){for(c=1;c<=e.length;c++)u.push({left:a,top:l}),a+=s,c%i==0&&(l+=e[0].outerHeight(),a=0);n=(o=Math.ceil(e.length/i))*e[0].outerHeight()}return t.css("height",n),u},_handleFiltering:function(t){for(var e=this._getArrayOfUniqueItems(this._activeArray,t),n=0;n<e.length;n++)e[n]._filterOut();this._activeArray=t,this._placeItems(t)},_multifilterModeOn:function(){return 0<Object.keys(this._toggledCategories).length},_isSearchActivated:function(){return 0<this._typedText.length},_placeItems:function(t){this._isAnimating=!0,this._itemPositions=this._calcItemPositions();for(var e=0;e<t.length;e++)t[e]._filterIn(this._itemPositions[e])},_getCollectionByFilter:function(t){return"all"===t?this._mainArray:this._subArrays[t-1]},_makeDeepCopy:function(t){var e,n={};for(e in t)n[e]=t[e];return n},_comparator:function(n,i){return function(t,e){return"asc"===i?t[n]<e[n]?-1:t[n]>e[n]?1:0:"desc"===i?e[n]<t[n]?-1:e[n]>t[n]?1:0:void 0}},_getArrayOfUniqueItems:function(t,e){for(var n,i=[],o={},s=e.length,r=0;r<s;r++)o[e[r].domIndex]=!0;for(s=t.length,r=0;r<s;r++)(n=t[r]).domIndex in o||i.push(n);return i},_delayEvent:(i={},function(t,e,n){if(null===n)throw Error("UniqueID needed");i[n]&&clearTimeout(i[n]),i[n]=setTimeout(t,e)}),_fisherYatesShuffle:function(t){for(var e,n,i=t.length;i;)n=Math.floor(Math.random()*i--),e=t[i],t[i]=t[n],t[n]=e;return t}};var i,o={_init:function(t,e){var n=this;return n._parent=e,n._category=n._getCategory(),n._lastPos={},n.domIndex=t,n.sortData=n.data("sort"),n.w=0,n.h=0,n._isFilteredOut=!0,n._filteringOut=!1,n._filteringIn=!1,n.css(e.options.filterOutCss).css({"-webkit-backface-visibility":"hidden",perspective:"1000px","-webkit-perspective":"1000px","-webkit-transform-style":"preserve-3d",position:"absolute",transition:"all "+e.options.animationDuration+"s "+e.options.easing+" "+n._calcDelay()+"ms"}),n.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){n._onTransitionEnd()}),n},_updateDimensions:function(){this.w=this.outerWidth(),this.h=this.outerHeight()},_calcDelay:function(){var t=0;return"progressive"===this._parent.options.delayMode?t=this._parent.options.delay*this.domIndex:this.domIndex%2==0&&(t=this._parent.options.delay),t},_getCategory:function(){if("string"==typeof(t=this.data("category")))for(var t=t.split(", "),e=0;e<t.length;e++){if(isNaN(parseInt(t[e])))throw new Error("Filterizr: the value of data-category must be a number, starting from value 1 and increasing.");parseInt(t[e])>this._parent._lastCategory&&(this._parent._lastCategory=parseInt(t[e]))}else t>this._parent._lastCategory&&(this._parent._lastCategory=t);return t},_onTransitionEnd:function(){var t=this;t._filteringOut?(y(t).addClass("filteredOut"),t._isFilteredOut=!0,t._filteringOut=!1):t._filteringIn&&(t._isFilteredOut=!1,t._filteringIn=!1),t._parent._isAnimating&&(t._parent._isShuffling?t._parent.trigger("shufflingEnd"):t._parent._isSorting?t._parent.trigger("sortingEnd"):t._parent.trigger("filteringEnd"),t._parent._isAnimating=!1)},_filterOut:function(){var t=this._parent._makeDeepCopy(this._parent.options.filterOutCss);t.transform+=" translate3d("+this._lastPos.left+"px,"+this._lastPos.top+"px, 0)",this.css(t),this.css("pointer-events","none"),this._filteringOut=!0},_filterIn:function(t){var e=this._parent._makeDeepCopy(this._parent.options.filterInCss);y(this).removeClass("filteredOut"),this._filteringIn=!0,this._lastPos=t,this.css("pointer-events","auto"),e.transform+=" translate3d("+t.left+"px,"+t.top+"px, 0)",this.css(e)}}}(this,jQuery),!function(M,h){"use strict";function r(p,f,g,t,e){function n(){var o,s,r,a;_=1<M.devicePixelRatio,g=i(g),0<=f.delay&&setTimeout(function(){l(!0)},f.delay),(f.delay<0||f.combined)&&(t.e=(o=f.throttle,s=function(t){"resize"===t.type&&(w=x=-1),l(t.all)},a=0,function(t,e){function n(){a=+new Date,s.call(p,t)}var i=+new Date-a;r&&clearTimeout(r),o<i||!f.enableThrottle||e?n():r=setTimeout(n,o-i)}),t.a=function(t){t=i(t),g.push.apply(g,t)},t.g=function(){return g=A(g).filter(function(){return!A(this).data(f.loadedName)})},t.f=function(t){for(var e=0;e<t.length;e++){var n=g.filter(function(){return this===t[e]});n.length&&l(!1,n)}},l(),A(f.appendScroll).on("scroll."+e+" resize."+e,t.e))}function i(t){for(var e=f.defaultImage,n=f.placeholder,i=f.imageBase,o=f.srcsetAttribute,s=f.loaderAttribute,r=f._f||{},a=0,l=(t=A(t).filter(function(){var t=A(this),e=m(this);return!t.data(f.handledName)&&(t.attr(f.attribute)||t.attr(o)||t.attr(s)||r[e]!==h)}).data("plugin_"+f.name,p)).length;a<l;a++){var c=A(t[a]),d=m(t[a]),u=c.attr(f.imageBaseAttribute)||i;d===T&&u&&c.attr(o)&&c.attr(o,function(t,e){if(e){var n=t.split(",");t="";for(var i=0,o=n.length;i<o;i++)t+=e+n[i].trim()+(i!==o-1?",":"")}return t}(c.attr(o),u)),r[d]===h||c.attr(s)||c.attr(s,r[d]),d===T&&e&&!c.attr(S)?c.attr(S,e):d===T||!n||
1c.css(I)&&"none"!==c.css(I)||c.css(I,"url('"+n+"')")}return t}function l(t,e){if(!g.length)return f.autoDestroy&&p.destroy();for(var n,i,o,s,r,a=e||g,l=!1,c=f.imageBase||"",d=f.srcsetAttribute,u=f.handledName,h=0;h<a.length;h++)(t||e||(i=a[h],s=r=s=o=void 0,i=i.getBoundingClientRect(),o=f.scrollDirection,s=f.threshold,r=(0<=x?x:x=A(M).height())+s>i.top&&-s<i.bottom,s=(0<=w?w:w=A(M).width())+s>i.left&&-s<i.right,"vertical"===o?r:("horizontal"===o||r)&&s))&&(i=A(a[h]),o=m(a[h]),r=i.attr(f.attribute),s=i.attr(f.imageBaseAttribute)||c,n=i.attr(f.loaderAttribute),i.data(u)||f.visibleOnly&&!i.is(":visible")||!((r||i.attr(d))&&(o===T&&(s+r!==i.attr(S)||i.attr(d)!==i.attr(D))||o!==T&&s+r!==i.css(I))||n)||(i.data(u,l=!0),function(e,t,n,i){++b;var o=function(){y("onError",e),v(),o=A.noop},s=(y("beforeLoad",e),f.attribute),r=f.srcsetAttribute,a=f.sizesAttribute,l=f.retinaAttribute,c=f.removeAttribute,d=f.loadedName,u=e.attr(l);{var h,p;i?(h=function(){c&&e.removeAttr(f.loaderAttribute),e.data(d,!0),y(C,e),setTimeout(v,1),h=A.noop},e.off(k).one(k,o).one($,h),y(i,e,function(t){(t?(e.off($),h):(e.off(k),o))()})||e.trigger(k)):(p=A(new Image),p.one(k,o).one($,function(){e.hide(),t===T?e.attr(E,p.attr(E)).attr(D,p.attr(D)).attr(S,p.attr(S)):e.css(I,"url('"+p.attr(S)+"')"),e[f.effect](f.effectTime),c&&(e.removeAttr(s+" "+r+" "+l+" "+f.imageBaseAttribute),a!==E)&&e.removeAttr(a),e.data(d,!0),y(C,e),p.remove(),v()}),i=(_&&u?u:e.attr(s))||"",p.attr(E,e.attr(a)).attr(D,e.attr(r)).attr(S,i?n+i:null),p.complete&&p.trigger($))}}(i,o,s,n)));l&&(g=A(g).filter(function(){return!A(this).data(u)}))}function m(t){return t.tagName.toLowerCase()}function v(){--b,g.length||b||y("onFinishedAll")}function y(t){return(t=f[t])&&(t.apply(p,[].slice.call(arguments,1)),1)}var b=0,w=-1,x=-1,_=!1,C="afterLoad",$="load",k="error",T="img",S="src",D="srcset",E="sizes",I="background-image";"event"===f.bind||o?n():A(M).on($+"."+e,n)}function c(t,e){var n=this,i=A.extend({},n.config,e),o={},s=i.name+"-"+ ++a;return n.config=function(t,e){return e===h?i[t]:(i[t]=e,n)},n.addItems=function(t){return o.a&&o.a("string"===A.type(t)?A(t):t),n},n.getItems=function(){return o.g?o.g():{}},n.update=function(t){return o.e&&o.e({},!t),n},n.force=function(t){return o.f&&o.f("string"===A.type(t)?A(t):t),n},n.loadAll=function(){return o.e&&o.e({all:!0},!0),n},n.destroy=function(){return A(i.appendScroll).off("."+s,o.e),A(M).off("."+s),o={},h},r(n,i,t,o,s),i.chainable?t:n}var A=M.jQuery||M.Zepto,a=0,o=!1;A.fn.Lazy=A.fn.lazy=function(t){return new c(this,t)},A.Lazy=A.lazy=function(t,e,n){if(A.isFunction(e)&&(n=e,e=[]),A.isFunction(n)){t=A.isArray(t)?t:[t],e=A.isArray(e)?e:[e];for(var i=c.prototype.config,o=i._f||(i._f={}),s=0,r=t.length;s<r;s++)i[t[s]]!==h&&!A.isFunction(i[t[s]])||(i[t[s]]=n);for(var a=0,l=e.length;a<l;a++)o[e[a]]=t[0]}},c.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:M,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:h,afterLoad:h,onError:h,onFinishedAll:h},A(M).on("load",function(){o=!0})}(window),(window.jQuery||window.Zepto).lazy(["yt","youtube"],function(t,e){var n;"iframe"===t[0].tagName.toLowerCase()?(n=/1|true/.test(t.attr("data-nocookie")),t.attr("src","https://www.youtube"+(n?"-nocookie":"")+".com/embed/"+t.attr("data-src")+"?rel=0&amp;showinfo=0"),this.config("removeAttribute")&&t.removeAttr("data-src")):e(!1)}),!function(c,d,u){"use strict";c.fn.scrollUp=function(t){c.data(u.body,"scrollUp")||(c.data(u.body,"scrollUp",!0),c.fn.scrollUp.init(t))},c.fn.scrollUp.init=function(t){var e,n,i,o,s,r=c.fn.scrollUp.settings=c.extend({},c.fn.scrollUp.defaults,t),a=!1,l=r.scrollTrigger?c(r.scrollTrigger):c("<a/>",{id:r.scrollName,href:"#top"});switch(r.scrollTitle&&l.attr("title",r.scrollTitle),l.appendTo("body"),r.scrollImg||r.scrollTrigger||l.html(r.scrollText),l.css({display:"none",position:"fixed",zIndex:r.zIndex}),r.activeOverlay&&c("<div/>",{id:r.scrollName+"-active"}).css({position:"absolute",top:r.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+r.activeOverlay,zIndex:r.zIndex}).appendTo("body"),r.animation){case"fade":e="fadeIn",n="fadeOut",i=r.animationSpeed;break;case"slide":e="slideDown",n="slideUp",i=r.animationSpeed;break;default:e="show",n="hide",i=0}o="top"===r.scrollFrom?r.scrollDistance:c(u).height()-c(d).height()-r.scrollDistance,c(d).scroll(function(){c(d).scrollTop()>o?a||(l[e](i),a=!0):a&&(l[n](i),a=!1)}),r.scrollTarget?"number"==typeof r.scrollTarget?s=r.scrollTarget:"string"==typeof r.scrollTarget&&(s=Math.floor(c(r.scrollTarget).offset().top)):s=0,l.click(function(t){t.preventDefault(),c("html, body").animate({scrollTop:s},r.scrollSpeed,r.easingType)})},c.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},c.fn.scrollUp.destroy=function(t){c.removeData(u.body,"scrollUp"),c("#"+c.fn.scrollUp.settings.scrollName).remove(),c("#"+c.fn.scrollUp.settings.scrollName+"-active").remove(),7<=c.fn.jquery.split(".")[1]?c(d).off("scroll",t):c(d).unbind("scroll",t)},c.scrollUp=c.fn.scrollUp}(jQuery,window,document),!function(t){var e,n,i=!1;"function"==typeof define&&define.amd&&(define(t),i=!0),"object"==typeof exports&&(module.exports=t(),i=!0),i||(e=window.Cookies,(n=window.Cookies=t()).noConflict=function(){return window.Cookies=e,n})}(function(){function p(){for(var t=0,e={};t<arguments.length;t++){var n,i=arguments[t];for(n in i)e[n]=i[n]}return e}return function t(u){function h(t,e,n){var i,o;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(n=p({path:"/"},h.defaults,n)).expires&&((o=new Date).setMilliseconds(o.getMilliseconds()+864e5*n.expires),n.expires=o);try{i=JSON.stringify(e),/^[\{\[]/.test(i)&&(e=i)}catch(t){}return e=u.write?u.write(e,t):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
1URIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",e,n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}t||(i={});for(var s=document.cookie?document.cookie.split("; "):[],r=/(%[0-9A-Z]{2})+/g,a=0;a<s.length;a++){var l=s[a].split("=");'"'===(d=l.slice(1).join("=")).charAt(0)&&(d=d.slice(1,-1));try{var c=l[0].replace(r,decodeURIComponent),d=u.read?u.read(d,c):u(d,c)||d.replace(r,decodeURIComponent);if(this.json)try{d=JSON.parse(d)}catch(t){}if(t===c){i=d;break}t||(i[c]=d)}catch(t){}}return i}}return(h.set=h).get=function(t){return h.call(h,t)},h.getJSON=function(){return h.apply({json:!0},[].slice.call(arguments))},h.defaults={},h.remove=function(t,e){h(t,"",p(e,{expires:-1}))},h.withConverter=t,h}(function(){})}),!function(l,c,s,r){function n(t,e){this.settings=null,this.options=l.extend({},n.Defaults,e),this.$element=l(t),this.drag=l.extend({},i),this.state=l.extend({},a),this.e=l.extend({},d),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._invalidated={},this._pipe=[],l.each(n.Plugins,l.proxy(function(t,e){this._plugins[t[0].toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(n.Pipe,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}function o(t){return t.touches!==r?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.touches===r?t.pageX!==r?{x:t.pageX,y:t.pageY}:t.pageX===r?{x:t.clientX,y:t.clientY}:void 0:void 0}function t(t){var e,n,i=s.createElement("div"),o=t;for(e in o)if(n=o[e],void 0!==i.style[n])return i=null,[n,e];return[!1]}var i={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},a={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},d={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null};n.Defaults={items:3,loop:!1,center:!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:c,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Plugins={},n.Pipe=[{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var t=this._clones;(this.$stage.children(".cloned").length!==t.length||!this.settings.loop&&0<t.length)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){for(var t=this._clones,e=this._items,n=this.settings.loop?t.length-Math.max(2*this.settings.items,4):0,i=0,o=Math.abs(n/2);i<o;i++)0<n?(this.$stage.children().eq(e.length+t.length-1).remove(),t.pop(),this.$stage.children().eq(0).remove(),t.pop()):(t.push(t.length/2),this.$stage.append(e[t[t.length-1]].clone().addClass("cloned")),t.push(e.length-1-(t.length-1)/2),this.$stage.prepend(e[t[t.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var t,e,n,i=this.settings.rtl?1:-1,o=(this.width()/this.settings.items).toFixed(3),s=0;for(this._coordinates=[],e=0,n=this._clones.length+this._items.length;e<n;e++)t=this._mergers[this.relative(e)],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,s+=(this.settings.autoWidth?this._items[this.relative(e)].width()+this.settings.margin:o*t)*i,this._coordinates.push(s)}},{filter:["width","items","settings"],run:function(){var t,e,n=(this.width()/this.settings.items).toFixed(3),i={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(i),(i={width:this.settings.autoWidth?"auto":n-this.settings.margin})[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&0<l.grep(this._mergers,function(t){return 1<t}).length)for(t=0,e=this._coordinates.length;t<e;t++)i.width=Math.abs(this._coordinates[t])-Math.abs(this._coordinates[t-1]||0)-this.settings.margin,this.$stage.children().eq(t).css(i);else this.$stage.children().css(i)}},{filter:["width","items","settings"],run:function(t){t.current&&this.reset(this.$stage.children().index(t.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var t,e,n=this.settings.rtl?1:-1,i=2*this.settings.stagePadding,o=this.coordinates(this.current())+i,s=o+this.width()*n,r=[],a=0,l=this._coordinates.length;a<l;a++)t=this._coordinates[a-1]||0,e=Math.abs(this._coordinates[a])+i*n,(this.op(t,"<=",o)&&this.op(t,">",s)||this.op(e,"<",o)&&this.op(e,">",s))&&r.push(a);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+r.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],n.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded){var t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r,e=this.$element.children(e).width();if(t.length&&e<=0)return this.preloadAutoWidthImages(t),!1}
1this.$element.addClass("owl-loading"),this.$stage=l("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},n.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,n=-1,i=null;t?(l.each(t,function(t){t<=e&&n<t&&(n=Number(t))}),delete(i=l.extend({},this.options,t[n])).responsive,i.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+n)):i=l.extend({},this.options),null!==this.settings&&this._breakpoint===n||(this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=n,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},n.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=l("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},n.prototype.update=function(){for(var t=0,e=this._pipe.length,n=l.proxy(function(t){return this[t]},this._invalidated),i={};t<e;)(this._invalidated.all||0<l.grep(this._pipe[t].filter,n).length)&&this._pipe[t].run(i),t++;this._invalidated={}},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime(),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=c.orientation,this.watchVisibility(),this.trigger("refreshed")},n.prototype.eventsCall=function(){this.e._onDragStart=l.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=l.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=l.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=l.proxy(function(t){this.onResize(t)},this),this.e._transitionEnd=l.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=l.proxy(function(t){this.preventClick(t)},this)},n.prototype.onThrottledResize=function(){c.clearTimeout(this.resizeTimer),this.resizeTimer=c.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))},n.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"!==e&&"touchend"!==e&&"touchcancel"!==e||this.onDragEnd(t)},n.prototype.internalEvents=function(){"ontouchstart"in c||navigator.msMaxTouchPoints;var t=c.navigator.msPointerEnabled;this.settings.mouseDrag?(this.$stage.on("mousedown",l.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!t&&this.$stage.on("touchstart touchcancel",l.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),!1!==this.settings.responsive&&this.on(c,"resize",l.proxy(this.onThrottledResize,this))},n.prototype.onDragStart=function(t){var e,n,i,t=t.originalEvent||t||c.event;if(3===t.which||this.state.isTouch)return!1;if("mousedown"===t.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,e=o(t).x,n=o(t).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)i=this.getTransformProperty(),this.drag.offsetX=i,this.animate(i),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1;this.drag.startX=e-this.drag.offsetX,this.drag.startY=n-this.drag.offsetY,this.drag.start=e-this.drag.startX,this.drag.targetEl=t.target||t.srcElement,this.drag.updatedX=this.drag.start,"IMG"!==this.drag.targetEl.tagName&&"A"!==this.drag.targetEl.tagName||(this.drag.targetEl.draggable=!1),l(s).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",l.proxy(function(t){this.eventsRouter(t)},this))},n.prototype.onDragMove=function(t){var e,n,i;this.state.isTouch&&!this.state.isScrolling&&(e=o(t=t.originalEvent||t||c.event).x,n=o(t).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=n-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":0<this.drag.distance&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(e=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),n=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),i=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,e+i),n+i)),(8<this.drag.distance||this.drag.distance<-8)&&(t.preventDefault!==r?t.preventDefault():t.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(16<this.drag.currentY||this.drag.currentY<-16)&&
1!1===this.state.isSwiping&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX))},n.prototype.onDragEnd=function(t){if(this.state.isTouch){if("mouseup"===t.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&!0!==this.state.inMotion)return this.state.inMotion=!1;this.drag.endTime=(new Date).getTime(),t=this.drag.endTime-this.drag.startTime,(3<Math.abs(this.drag.distance)||300<t)&&this.removeClick(this.drag.targetEl),t=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(t),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(t)||this.transitionEnd(),this.drag.distance=0,l(s).off(".owl.dragEvents")}},n.prototype.removeClick=function(t){this.drag.targetEl=t,l(t).on("click.preventClick",this.e._preventClick),c.setTimeout(function(){l(t).off("click.preventClick")},300)},n.prototype.preventClick=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),l(t.target).off("click.preventClick")},n.prototype.getTransformProperty=function(){var t=c.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform");return!0!=(16===(t=t.replace(/matrix(3d)?\(|\)/g,"").split(",")).length)?t[4]:t[12]},n.prototype.closest=function(n){var i=-1,o=this.width(),s=this.coordinates();return this.settings.freeDrag||l.each(s,l.proxy(function(t,e){return e-30<n&&n<e+30?i=t:this.op(n,"<",e)&&this.op(n,">",s[t+1]||e-o)&&(i="left"===this.state.direction?t+1:t),-1===i},this)),this.settings.loop||(this.op(n,">",s[this.minimum()])?i=n=this.minimum():this.op(n,"<",s[this.maximum()])&&(i=n=this.maximum())),i},n.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=0<this.speed(),this.support3d?this.$stage.css({transform:"translate3d("+t+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:t+"px"}):this.$stage.animate({left:t},this.speed()/1e3,this.settings.fallbackEasing,l.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},n.prototype.current=function(t){if(t!==r){if(0===this._items.length)return r;var e;t=this.normalize(t),this._current!==t&&((e=this.trigger("change",{property:{name:"position",value:t}})).data!==r&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}}))}return this._current},n.prototype.invalidate=function(t){this._invalidated[t]=!0},n.prototype.reset=function(t){(t=this.normalize(t))!==r&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var n=e?this._items.length:this._items.length+this._clones.length;return!l.isNumeric(t)||n<1?r:this._clones.length?(t%n+n)%n:Math.max(this.minimum(e),Math.min(this.maximum(e),t))},n.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,n,i,o=0,s=this.settings;if(t)return this._items.length-1;if(!s.loop&&s.center)e=this._items.length-1;else if(s.loop||s.center)if(s.loop||s.center)e=this._items.length+s.items;else{if(!s.autoWidth&&!s.merge)throw"Can not detect maximum absolute position.";for(revert=s.rtl?1:-1,n=this.$stage.width()-this.$element.width();(i=this.coordinates(o))&&!(i*revert>=n);)e=++o}else e=this._items.length-s.items;return e},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===r?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===r?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(n){function i(t){return t%2==0?o+t/2:e-(t+1)/2}var e=this._clones.length/2,o=e+this._items.length;return n===r?l.map(this._clones,function(t,e){return i(e)}):l.map(this._clones,function(t,e){return t===n?i(e):null})},n.prototype.speed=function(t){return t!==r&&(this._speed=t),this._speed},n.prototype.coordinates=function(t){var e=null;return t===r?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):e=this._coordinates[t-1]||0,e)},n.prototype.duration=function(t,e,n){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(n||this.settings.smartSpeed)},n.prototype.to=function(t,e){var n,i,o,s,r,a;this.settings.loop?(n=t-this.relative(this.current()),i=this.current(),r=(o=this.current())-(s=this.current()+n)<0,a=this._clones.length+this._items.length,s<this.settings.items&&!1==r?(i=o+this._items.length,this.reset(i)):s>=a-this.settings.items&&!0==r&&(i=o-this._items.length,this.reset(i)),c.clearTimeout(this.e._goToLoop),this.e._goToLoop=c.setTimeout(l.proxy(function(){this.speed(this.duration(this.current(),i+n,e)),this.current(i+n),this.update()},this),30)):(this.speed(this.duration(this.current(),t,e)),this.current(t),this.update())},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.transitionEnd=function(t){return(t===r||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},n.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==c)t=l(this.options.responsiveBaseElement).width();else if(c.innerWidth)t=c.innerWidth;else{if(!s.documentElement||!s.documentElement.clientWidth)throw"Can not detect viewport width.";t=s.documentElement.clientWidth}return t},n.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:l(t)),(t=this.settings.nestedItemSelector?t.find("."+this.settings.nestedItemSelector):t).filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(+e.f
1ind("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(l.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(t,e){e=e===r?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,+t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},n.prototype.remove=function(t){(t=this.normalize(t,!0))!==r&&(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}))},n.prototype.addTriggerableEvents=function(){var n=l.proxy(function(e,n){return l.proxy(function(t){t.relatedTarget!==this&&(this.suppress([n]),e.apply(this,[].slice.call(arguments,1)),this.release([n]))},this)},this);l.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},l.proxy(function(t,e){this.$element.on(t+".owl.carousel",n(e,t+".owl.carousel"))},this))},n.prototype.watchVisibility=function(){function t(t){return 0<t.offsetWidth&&0<t.offsetHeight}t(this.$element.get(0))||(this.$element.addClass("owl-hidden"),c.clearInterval(this.e._checkVisibile),this.e._checkVisibile=c.setInterval(l.proxy(function(){t(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),c.clearInterval(this.e._checkVisibile))},this),500))},n.prototype.preloadAutoWidthImages=function(n){var i,o,s=0,r=this;n.each(function(t,e){i=l(e),(o=new Image).onload=function(){s++,i.attr("src",o.src),i.css("opacity",1),s>=n.length&&(r.state.imagesLoaded=!0,r.initialize())},o.src=i.attr("src")||i.attr("data-src")||i.attr("data-src-retina")})},n.prototype.destroy=function(){for(var t in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&l(c).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[t].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),l(s).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},n.prototype.op=function(t,e,n){var i=this.settings.rtl;switch(e){case"<":return i?n<t:t<n;case">":return i?t<n:n<t;case">=":return i?t<=n:n<=t;case"<=":return i?n<=t:t<=n}},n.prototype.on=function(t,e,n,i){t.addEventListener?t.addEventListener(e,n,i):t.attachEvent&&t.attachEvent("on"+e,n)},n.prototype.off=function(t,e,n,i){t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent&&t.detachEvent("on"+e,n)},n.prototype.trigger=function(t,e,n){var i={item:{count:this._items.length,index:this.current()}},o=l.camelCase(l.grep(["on",t,n],function(t){return t}).join("-").toLowerCase()),s=l.Event([t,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},i,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(s)}),this.$element.trigger(s),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].apply(this,s)),s},n.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.browserSupport=function(){this.support3d=t(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d&&(this.transformVendor=t(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0],this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][t(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""),this.state.orientation=c.orientation},l.fn.owlCarousel=function(t){return this.each(function(){l(this).data("owlCarousel")||l(this).data("owlCarousel",new n(this,t))})},l.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(a,o){function e(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":
1a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var e=this._core.settings,n=e.center&&Math.ceil(e.items/2)||e.items,i=e.center&&-1*n||0,o=(t.property&&t.property.value||this._core.current())+i,s=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);i++<n;)this.load(s/2+this._core.relative(o)),s&&a.each(this._core.clones(this._core.relative(o++)),r)},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)}e.Defaults={lazyLoad:!1},e.prototype.load=function(t){var t=this._core.$stage.children().eq(t),e=t&&t.find(".owl-lazy");!e||-1<a.inArray(t.get(0),this._loaded)||(e.each(a.proxy(function(t,e){var n=a(e),i=1<o.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src");this._core.trigger("load",{element:n,url:i},"lazy"),n.is("img")?n.one("load.owl.lazy",a.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:i},"lazy")},this)).attr("src",i):((e=new Image).onload=a.proxy(function(){n.css({"background-image":"url("+i+")",opacity:"1"}),this._core.trigger("loaded",{element:n,url:i},"lazy")},this),e.src=i)},this)),this._loaded.push(t.get(0)))},e.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)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(e){function n(t){this._core=t,this._handlers={"initialized.owl.carousel":e.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(t){this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)}n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},n.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)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,(window,document)),function(d,e,n){function i(t){this._core=t,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":d.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":d.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":d.proxy(function(t){var e=d(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,d(t.content)))},this)},this._core.options=d.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",d.proxy(function(t){this.play(t)},this))}i.Defaults={video:!1,videoHeight:!1,videoWidth:!1},i.prototype.fetch=function(t,e){var n=t.attr("data-vimeo-id")?"vimeo":"youtube",i=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),o=t.attr("data-width")||this._core.settings.videoWidth,s=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(i=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))n="youtube";else{if(!(-1<i[3].indexOf("vimeo")))throw new Error("Video URL not supported.");n="vimeo"}i=i[6],this._videos[r]={type:n,id:i,width:o,height:s},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},i.prototype.thumbnail=function(e,t){function n(t){i=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(i),e.after('<div class="owl-video-play-icon"></div>')}var i,o,s=t.width&&t.height?'style="width:'+t.width+"px;height:"+t.height+'px;"':"",r=e.find("img"),a="src",l="",c=this._core.settings;return e.wrap('<div class="owl-video-wrapper"'+s+"></div>"),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length?(n(r.attr(a)),r.remove(),!1):void("youtube"===t.type?(o="http://img.youtube.com/vi/"+t.id+"/hqdefault.jpg",n(o)):"vimeo"===t.type&&d.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,n(o)}}))},i.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},i.prototype.play=function(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var e,t=d(t.target||t.srcElement),n=t.closest("."+this._core.settings.itemClass),i=this._videos[n.attr("data-video")],o=i.width||"100%",s=i.height||this._core.$stage.height();"youtube"===i.type?e='<iframe width="'+o+'" height="'+s+'" src="http://www.youtube.com/embed/'+i.id+"?autoplay=1&v="+i.id+'" frameborder="0" allowfullscreen></iframe>
1':"vimeo"===i.type&&(e='<iframe src="http://player.vimeo.com/video/'+i.id+'?autoplay=1" width="'+o+'" height="'+s+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),n.addClass("owl-video-playing"),this._playing=n,i=d('<div style="height:'+s+"px; width:"+o+'px" class="owl-video-frame">'+e+"</div>"),t.after(i)},i.prototype.isInFullScreen=function(){var t=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return t&&d(t).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(t&&this._fullscreen&&this._playing||(this._fullscreen?(this._fullscreen=!1,1):this._playing&&this._core.state.orientation!==e.orientation&&(this._core.state.orientation=e.orientation,1)))},i.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)},d.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,window,document),function(r){function e(t){this.core=t,this.core.options=r.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":r.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){var t,e,n,i,o,s;1===this.core.settings.items&&this.core.support3d&&(this.core.speed(0),e=r.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,s=this.core.settings.animateOut,this.core.current()!==this.previous)&&(s&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(s).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)),o)&&i.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)},e.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.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)},r.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,(window,document)),function(e,n,t){function i(t){this.core=t,this.core.options=e.extend({},i.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":e.proxy(function(){this.autoplay()},this),"play.owl.autoplay":e.proxy(function(t,e,n){this.play(e,n)},this),"stop.owl.autoplay":e.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)}i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(n.clearInterval(this.interval),this.interval=n.setInterval(e.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):n.clearInterval(this.interval)},i.prototype.play=function(){return!0===t.hidden||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:!1===this.core.settings.autoplay?void n.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},i.prototype.stop=function(){n.clearInterval(this.interval)},i.prototype.pause=function(){n.clearInterval(this.interval)},i.prototype.destroy=function(){var t,e;for(t in n.clearInterval(this.interval),this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o){"use strict";function e(t){this._core=t,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":o.proxy(function(t){this._core.settings.dotsData&&this._templates.push(o(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":o.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,o(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":o.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":o.proxy(function(t){var e,n,i;"position"!=t.property.name||this._core.state.revert||this._core.settings.loop||!this._core.settings.navRewind||(e=this._core.current(),n=this._core.maximum(),i=this._core.minimum(),t.data=t.property.value>n?n<=e?i:n:t.property.value<i?n:t.property.value)},this),"changed.owl.carousel":o.proxy(function(t){"position"==t.property.name&&this.draw()},this),"refreshed.owl.carousel":o.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=o.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)}e.Defaults={nav:!1,navRewind:!0,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,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-control
1s"},e.prototype.initialize=function(){var t,e,n=this._core.settings;for(e in n.dotsData||(this._templates=[o("<div>").addClass(n.dotClass).append(o("<span>")).prop("outerHTML")]),n.navContainer&&n.dotsContainer||(this._controls.$container=o("<div>").addClass(n.controlsClass).appendTo(this.$element)),this._controls.$indicators=n.dotsContainer?o(n.dotsContainer):o("<div>").hide().addClass(n.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",o.proxy(function(t){var e=(o(t.target).parent().is(this._controls.$indicators)?o(t.target):o(t.target).parent()).index();t.preventDefault(),this.to(e,n.dotsSpeed)},this)),t=n.navContainer?o(n.navContainer):o("<div>").addClass(n.navContainerClass).prependTo(this._controls.$container),this._controls.$next=o("<"+n.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(n.navClass[0]).html(n.navText[0]).hide().prependTo(t).on("click",o.proxy(function(){this.prev(n.navSpeed)},this)),this._controls.$next.addClass(n.navClass[1]).html(n.navText[1]).hide().appendTo(t).on("click",o.proxy(function(){this.next(n.navSpeed)},this)),this._overrides)this._core[e]=o.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,n,i;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.prototype.update=function(){var t,e,n=this._core.settings,i=this._core.clones().length/2,o=i+this._core.items().length,s=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=i,e=0;t<o;t++)(s<=e||0===e)&&(this._pages.push({start:t-i,end:t-i+s-1}),e=0,0),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var t,e="",n=this._core.settings,i=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!n.nav||n.loop||n.navRewind||(this._controls.$previous.toggleClass("disabled",i<=0),this._controls.$next.toggleClass("disabled",i>=this._core.maximum())),this._controls.$previous.toggle(n.nav),this._controls.$next.toggle(n.nav),n.dots){if(i=this._pages.length-this._controls.$indicators.children().length,n.dotData&&0!=i){for(t=0;t<this._controls.$indicators.children().length;t++)e+=this._templates[this._core.relative(t)];this._controls.$indicators.html(e)}else 0<i?(e=new Array(1+i).join(this._templates[0]),this._controls.$indicators.append(e)):i<0&&this._controls.$indicators.children().slice(i).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(o.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(n.dots)},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:o.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return o.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(t){var e,n,i=this._core.settings;return"page"==i.slideBy?(e=o.inArray(this.current(),this._pages),n=this._pages.length,t?++e:--e,e=this._pages[(e%n+n)%n].start):(e=this._core.relative(this._core.current()),n=this._core.items().length,t?e+=i.slideBy:e-=i.slideBy),e},e.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,n){n?o.proxy(this._overrides.to,this._core)(t,e):(n=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,e))},o.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,(window,document)),function(n,i){"use strict";function e(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":n.proxy(function(){"URLHash"==this._core.settings.startPosition&&n(i).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){var e=n(t.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[e]=t.content},this)},this._core.options=n.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),n(i).on("hashchange.owl.navigation",n.proxy(function(){var t=i.location.hash.substring(1),e=this._core.$stage.children(),e=this._hashes[t]&&e.index(this._hashes[t])||0;return!!t&&void this._core.to(e,!1,!0)},this))}e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in n(i).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),!function(i){"use strict";function e(t){this.owl=t,this._thumbcontent=[],this._identifier=0,this.owl_currentitem=this.owl.options.startPosition,this.$element=this.owl.$element,this._handlers={"prepared.owl.carousel":i.proxy(function(t){var e;!t.namespace||!this.owl.options.thumbs||this.owl.options.thumbImage||this.owl.options.thumbsPrerendered||this.owl.options.thumbImage?t.namespace&&this.owl.options.thumbs&&this.owl.options.thumbImage&&(e=i(t.content).find("img"),this._thumbcontent.push(e)):void 0!==i(t.content).find("[data-thumb]").attr("data-thumb")&&this._thumbcontent.push(i(t.content).find("[data-thumb]").attr("data-thumb"))},this),"initialized.owl.carousel":i.proxy(function(t){t.namespace&&this.owl.options.thumbs&&(this.render(),this.listen(),this._identifier=this.owl.$element.data("slider-id"),this.setActive())},this),"changed.owl.carousel":i.proxy(function(t){t.namespace&&"position"===t.property.name&&this.owl.options.thumbs&&(this._identifier=this.owl.$element.data("slider-id"),this.setActive())},this)},this.owl.options=i.extend({},e.Defaults,this.owl.options),this.owl.$element.on(this._handlers)}e.Defaults={thumbs:!0,thumbImage:!1,thumbContainerClass:"owl-thumbs",thumbItemClass:"owl-thumb-item",moveThumbsInside:!1},e.prototype.listen=function(){var n=this.owl.options;n.thumbsPrerendered&&(this._thumbcontent._thumbcontainer=i("."+n.thumbContainerClass)),i(this._thumbcontent._thumbcontainer).on("click",this._thumbcontent._thumbcontainer.children(),i.proxy(function(t){this._identifier=i(t.target).closest("."+n.thumbContainerClass).data("slider-id");var e=(i(t.target).parent().is(this._thumbcontent._thumbcontainer)?i(t.target):i(t.target).closest("."+n.thumbItemClass)).index();
1n.thumbsPrerendered?i("[data-slider-id="+this._identifier+"]").trigger("to.owl.carousel",[e,n.dotsSpeed,!0]):this.owl.to(e,n.dotsSpeed),t.preventDefault()},this))},e.prototype.render=function(){var t,e=this.owl.options;if(e.thumbsPrerendered?(this._thumbcontent._thumbcontainer=i("."+e.thumbContainerClass),e.moveThumbsInside&&this._thumbcontent._thumbcontainer.appendTo(this.$element)):this._thumbcontent._thumbcontainer=i("<div>").addClass(e.thumbContainerClass).appendTo(this.$element),e.thumbImage)for(t=0;t<this._thumbcontent.length;++t)this._thumbcontent._thumbcontainer.append("<button class="+e.thumbItemClass+'><img src="'+this._thumbcontent[t].attr("src")+'" alt="'+this._thumbcontent[t].attr("alt")+'" /></button>');else for(t=0;t<this._thumbcontent.length;++t)this._thumbcontent._thumbcontainer.append("<button class="+e.thumbItemClass+">"+this._thumbcontent[t]+"</button>")},e.prototype.setActive=function(){this.owl_currentitem=this.owl._current-this.owl._clones.length/2,this.owl_currentitem===this.owl._items.length&&(this.owl_currentitem=0);var t=this.owl.options,t=t.thumbsPrerendered?i("."+t.thumbContainerClass+'[data-slider-id="'+this._identifier+'"]'):this._thumbcontent._thumbcontainer;t.children().filter(".active").removeClass("active"),t.children().eq(this.owl_currentitem).addClass("active")},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this.owl.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.Thumbs=e}(window.Zepto||window.jQuery,(window,document)),$(function(){"use strict";$.datepicker.regional.cs={closeText:"Zavřít",prevText:"Předchozí",nextText:"Další",currentText:"Hoy",monthNames:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthNamesShort:["Le","Ún","Bř","Du","Kv","Čn","Čc","Sr","Zá","Ří","Li","Pr"],dayNames:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],dayNamesShort:["Ne","Po","Út","St","Čt","Pá","So"],dayNamesMin:["Ne","Po","Út","St","Čt","Pá","So"],weekHeader:"Sm",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},$.datepicker.regional.sk={closeText:"Zavrieť",prevText:"Predchádzajúci",nextText:"Ďalší",currentText:"Hoy",monthNames:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],dayNames:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"],dayNamesShort:["Ne","Po","Ut","St","Št","Pi","So"],dayNamesMin:["Ne","Po","Ut","St","Štv","Pa","So"],weekHeader:"Sm",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},$.datepicker.regional.de={closeText:"Schließen",prevText:"Zurück",nextText:"Vor",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"Sm",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},$.datepicker.regional.pl={closeText:"Zamknij",prevText:"&#x3C;Poprzedni",nextText:"Następny&#x3E;",currentText:"Dziś",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},$(".awe-calendar:not(.from, .to)").datepicker({prevText:'<i class="hillter-icon-left-arrow"></i>',nextText:'<i class="fa fa-arrow-right"></i>',buttonImageOnly:!1}
1),$(".awe-calendar.from").each(function(){var e=$(this).parents(".row").children().find(".awe-calendar.to");$(this).datepicker({prevText:'<i class="fa fa-arrow-left"></i>',nextText:'<i class="fa fa-arrow-right"></i>',buttonImageOnly:!1,dateFormat:"dd.mm.yy",minDate:0,onClose:function(t){t=new Date(function(t){t=t.split(".");return new Date(t[2],t[1]-1,t[0])}(t)),t=new Date(t.getTime()+864e5),t=t.getDate()+"."+(t.getMonth()+1)+"."+t.getFullYear();$(e).datepicker("option","minDate",t)}})}),$(".awe-calendar.to").datepicker({prevText:'<i class="fa fa-arrow-left"></i>',nextText:'<i class="fa fa-arrow-right"></i>',buttonImageOnly:!1,dateFormat:"dd.mm.yy",minDate:0,onClose:function(t){$(".awe-calendar.from").datepicker("option","maxDate",t)}}),$(".awe-calendar").each(function(){var t=$(this);t.wrap('<div class="awe-calendar-wrapper"></div>'),t.after('<i class="fa fa-calendar"></i>'),$(".fa-calendar").on("click",function(){$(this).siblings("input").datepicker("show")})}),$(window).load(function(){setTimeout(function(){$(".page_loader").fadeOut("fast")},100),0<$(".filtr-container.filtr").length&&$(function(){$(".filtr-container").filterizr({delay:1})}),$(".filters-listing-navigation li").click(function(){$(".filters-listing-navigation .filtr").removeClass("active"),$(this).addClass("active")})}),$.scrollUp({scrollName:"page_scroller",scrollDistance:300,scrollFrom:"top",scrollSpeed:500,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:'<i class="fa fa-chevron-up"></i>',scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647})}),$(document).ready(function(){$("li.dropdown").on("click",function(){var t=$(this);t.hasClass("open")&&(t=t.children("a.dropdown-toggle")).length&&t.attr("href")&&(location.href=t.attr("href"))})}),$(document).ready(function(){var e=function(){var t={email:$("#subscribed-email").val(),lan_shortcut:$("#lan_shortcut_subscribe").val()};if("object"==typeof grecaptcha){var e=grecaptcha.getResponse();if(0==(t.recaptcha=e))return alert("Odškrtněte že nejste robot"),!1}$.ajax({type:"POST",url:"/email/subscribe",data:t}).done(function(t){t.success?"cs"===t.lan_shortcut?alert("Úspěsně přihlášeni k odběru newsletteru!"):alert("Successfully subscribed to the newsletter!"):"cs"===t.lan_shortcut?alert("Nezadali jste email nebo je ve špatném formátu"):alert("You did not enter your email or it is in the wrong format"),"object"==typeof grecaptcha&&grecaptcha.reset()}).fail(function(){})};$("#subscribe-email").submit(function(t){return t.preventDefault(),e(),!1})}),$(document).ready(function(){$(function(){$(".dropdown-toggle").click(function(){$(this).toggleClass("active-toggle"),$(this).next().is(":visible")&&(location.href=$(this).attr("href"))})})}),$(document).ready(function(){var t=/[A-ZĚŠČŘŽÝÁÍÉa-zěščřžýáíé]+\s[A-ZĚŠČŘŽÝÁÍÉa-zěščřžýáíé]+/,e=/[A-ZĚŠČŘŽÝÁÍÉa-zěščřžýáíé]+/,n=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})+$/,i=/^[+]?[()\/0-9. -]{9,}$/,o=/^[1-9]{1}[0-9]{2}\s?[0-9]{2}$/,s=/^[0-9]{2}\.[0-9]{2}\.[0-9]{4}$/,r=/^(?!\s*$).+/,a=$('input[name="giftPersonName"]'),l=$('input[name="personName"]'),c=$('input[name="email"]'),d=$('input[name="phone"]'),u=$('input[name="term"]'),h=$('input[name="personNameAddress"]'),p=$('input[name="street"]'),f=$('input[name="city"]'),g=$('input[name="zip"]');function m(){return e.test(a.val())?a.removeClass("nonvalid"):a.addClass("nonvalid"),t.test(l.val())?l.removeClass("nonvalid"):l.addClass("nonvalid"),n.test(c.val())?c.removeClass("nonvalid"):c.addClass("nonvalid"),i.test(d.val())?d.removeClass("nonvalid"):d.addClass("nonvalid"),t.test(h.val())?h.removeClass("nonvalid"):h.addClass("nonvalid"),o.test(g.val())?g.removeClass("nonvalid"):g.addClass("nonvalid"),r.test(p.val())?p.removeClass("nonvalid"):p.addClass("nonvalid"),r.test(f.val())?f.removeClass("nonvalid"):f.addClass("nonvalid"),$("input#dateKnown").is(":checked")&&(s.test(u.val())?u.removeClass("nonvalid"):u.addClass("nonvalid")),(valid=0==$(".nonvalid").length)?$("#giftError").hide():$("#giftError").show(),valid}sendGiftForm=function(){var t=$('input[name="termCustom"]:checked').prev('input[name="price"]').val(),e=$('input[name="knownDatePrice"]').val(),n=1,i=($("input#deliveryByPost").is(":checked")&&(n=2),$("input#dateKnown").is(":checked")&&(t=e),[]),e=$("#giftForm").serializeArray();$(e).each(function(){i[$(this)[0].name]=$(this)[0].value}),(i=$.extend({},i)).price=t,i.deliveryType=n,$.ajax({type:"POST",url:"/stay/sendGiftForm",data:{values:i,stayId:i.stayId,lanShortcut:i.lanShortcut}}).done(function(t){$("#giftSuccess").fadeIn(),$("#btn-gift").hide(),$("#formContent").slideUp(1e3)})},$("#btn-gift").click(function(t){t.preventDefault(),m(),m()&&sendGiftForm()}),$("#btn-gift-show").click(function(t){t.preventDefault(),$("#giftDiv").slideDown();t=$(".main-header").innerHeight();$("html, body").stop().animate({scrollTop:$("#giftDiv").offset().top-t},1e3)}),$("#giftForm input[type=radio]").change(function(){$("input:checked").parent(".form-check").addClass("checked"),$("input[type=radio]:not(:checked)").parent(".form-check").removeClass("checked")}),$(a).change(function(){e.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}
1),$(l).change(function(){t.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$(u).change(function(){s.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$(c).change(function(){n.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$(d).change(function(){i.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$(h).change(function(){t.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$(g).change(function(){o.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$(p).change(function(){r.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$(f).change(function(){r.test($(this).val())?$(this).removeClass("nonvalid"):$(this).addClass("nonvalid")}),$("input#dateUnknown").change(function(){$('input[name="term"]').removeClass("nonvalid"),$('input[name="term"]').val("")}),$("input#deliveryByEmail").change(function(){$("input#personNameAddress").removeClass("nonvalid"),$("input#street").removeClass("nonvalid"),$("input#city").removeClass("nonvalid"),$("input#zip").removeClass("nonvalid")}),$("input#dateKnown").on("click",function(){$("fieldset.seasons").slideUp(),$(".predpDatumRow").show()}),$("input#dateUnknown").on("click",function(){$("fieldset.seasons").slideDown(),$(".predpDatumRow").hide()}),$("input#deliveryByPost").is(":checked")&&$("#giftAdressDiv").show(),$("input#deliveryByEmail").on("click",function(){$("#giftAdressDiv").slideUp()}),$("input#deliveryByPost").on("click",function(){$("#giftAdressDiv").slideDown()}),$("#personName").change(function(){$("#personNameAddress").val($(this).val())})}),$(window).on("scroll.map",function(){checkVisible($("#map"))&&(initMap(),$(window).off("scroll.map"))}),$(window).on("scroll.apartmentmap",function(){checkVisibleApartment($("#apartment-map"))&&(initApartmentMap(),$(window).off("scroll.apartmentmap"))}),$(document).ready(function(){SvgReplacement()}),$(document).ready(function(){initInPageGallery()}),$(document).ready(function(){MenuResize(),MenuBar(),MenuSticky()}),$(window).scroll(function(t){MenuSticky()}),$(window).resize(function(t){MenuSticky(),MenuResize()}).trigger("resize"),$(document).ready(function(){var e,n,i,o,s,r,a,l,c;e="600",n=$(window).width(),$(".owl-respond").each(function(){var t=e<n?$(this).data("desktop-src"):$(this).data("mobile-src");$(this).attr("data-src",t).attr("src",t)}),$(".main-slider-new").length&&(i=$("#header_content").innerHeight(),o=$("#top").innerHeight(),s=$(".search-area").height(),m=getCookie("privacyComfirmed"),r=0,a=$(".main-slider-new").data().height,l=$(window).height(),c=$(window).width(),null==m&&768<c&&(r=$("#privacy-bar").innerHeight()),$(".img-to-bg.slideshow").each(function(t,e){""!=a&&null!=a?767<c?$(this).css("height",a):c<=767?$(this).css("height",500):c<=480&&$(this).css("height",400):$(this).css("height",l-i+o-s-r)}),$(".main-slider-new .owl-carousel").owlCarousel({loop:!0,lazyLoad:!0,autoplay:!0,dots:!1,items:1,nav:!0,navText:['<a class="left carousel-control">\n<span class="slider-mover-left">\n<i class="fa fa-angle-left"></i>\n</span>\n<span class="sr-only">Previous</span>\n</a>','<a class="right carousel-control">\n<span class="slider-mover-right">\n<i class="fa fa-angle-right"></i>\n</span>\n<span class="sr-only">Next</span>\n</a>'],thumbs:!1}));var d,u,t,h,p,f,g,m=1<$(".main-slider:not(.main-slider-new2) .owl-carousel .banner-max-height").length;$(".main-slider:not(.main-slider-new2) .owl-carousel").owlCarousel({loop:m,lazyLoad:!0,autoplay:!0,dots:!1,items:1,nav:m,mouseDrag:m,touchDrag:m,navText:['<a class="left carousel-control">\n<span class="slider-mover-left">\n<i class="fa fa-angle-left"></i>\n</span>\n<span class="sr-only">Previous</span>\n</a>','<a class="right carousel-control">\n<span class="slider-mover-right">\n<i class="fa fa-angle-right"></i>\n</span>\n<span class="sr-only">Next</span>\n</a>'],thumbs:!1}),$(".in-page-gallery .owl-carousel").owlCarousel({loop:!1,margin:30,nav:!1,dots:!0,lazyLoad:!0,thumbs:!1,responsive:{0:{items:1},575:{items:2},992:{items:4,dots:!1}}}),$(".in-page-gallery-full-width .owl-carousel").owlCarousel({loop:!0,margin:0,nav:!1,dots:!0,lazyLoad:!0,thumbs:!1,responsive:{0:{items:1},575:{items:2},992:{items:4,dots:!1}}}),$(".in-page-gallery-full-width .owl-carousel").owlCarousel({loop:!0,margin:0,nav:!1,dots:!0,lazyLoad:!0,thumbs:!1,responsive:{0:{items:1},575:{items:2},992:{items:4,dots:!1}}}),$(".rooms-hp-carousel").length&&(t=$(".rooms-hp-carousel").data("rooms"),$(".rooms-hp-carousel .owl-carousel").owlCarousel({loop:!0,margin:30,nav:!0,dots:!1,lazyLoad:!0,items:4,autoplay:!0,autoplayTimeout:5e3,transitionStyle:"fade",navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],responsive:{0:{items:1},575:{items:2}
1,992:{autoplay:3<t,mouseDrag:3<t,touchDrag:3<t,nav:3<t,items:3<t?4:t}}})),$(".room-detail-gallery .owl-carousel").owlCarousel({loop:!1,lazyLoad:!0,autoplay:!0,nav:!0,items:1,navText:['<a class="left carousel-control">\n                <span class="slider-mover-left no-bg t-slider-r pojison">\n                    <i class="fa fa-angle-left"></i>\n                </span>\n                <span class="sr-only">Previous</span>\n            </a>','<a class="right carousel-control">\n                <span class="slider-mover-right no-bg t-slider-l pojison">\n                    <i class="fa fa-angle-right"></i>\n                </span>\n                <span class="sr-only">Next</span>\n            </a>'],dots:!1,thumbs:!0,thumbsPrerendered:!0,thumbImage:!1}),$(".reviews-list .owl-carousel").owlCarousel({loop:!1,margin:20,nav:!1,dots:!0,responsive:{0:{items:1},575:{items:2},992:{items:3},1200:{items:4,dots:!1}}}),$("#banner-slider").length&&(d=$("#header_content").innerHeight(),u=$("#top").innerHeight(),t=getCookie("privacyComfirmed"),h=0,p=$("#banner-slider").data().height,f=$(window).height(),g=$(window).width(),null==t&&768<g&&(h=$("#privacy-bar").innerHeight()),$(".slider-item").each(function(t,e){""!=p&&null!=p?767<g?$(this).css("height",p):g<=767?$(this).css("height",500):g<=480&&$(this).css("height",400):$("#centered_menu").length&&g<=767?$(this).css("height",400):$(this).css("height",f-d+u-h)}),$("#banner-slider").owlCarousel({loop:!0,margin:0,nav:!0,dots:!1,lazyLoad:!0,items:1,autoplay:!0,autoplayTimeout:5e3,transitionStyle:"fade",navText:['<i class="fa fa-arrow-left"></i>','<i class="fa fa-arrow-right"></i>']}))}),!function(o){o.lazy(["frame","iframe"],"iframe",function(e,t){var n,i=this;"iframe"===e[0].tagName.toLowerCase()?"true"!==(n=e.attr("data-error-detect"))&&"1"!==n?(e.attr("src",e.attr("data-src")),i.config("removeAttribute")&&e.removeAttr("data-src data-error-detect")):o.ajax({url:e.attr("data-src"),dataType:"html",crossDomain:!0,xhrFields:{withCredentials:!0},success:function(t){e.html(t).attr("src",e.attr("data-src")),i.config("removeAttribute")&&e.removeAttr("data-src data-error-detect")},error:function(){t(!1)}}):t(!1)})}(window.jQuery||window.Zepto),$(function(){$(".lazy").Lazy(),$('[data-loader="iframe"]').Lazy()}),$(document).ready(function(){setBannerSize(),popup(),sevenAngels(),$("#showPopUp").click(function(){$("#popup:hidden")&&$("#popup").fadeIn()})}),$(function(){$("#reservation-form #selected-country").length&&($("#reservation-form #selected-country").change(function(){var t=reservationPages[$(this).val()];$("#reservation-form").attr("action",t)}),$("#reservation-form").attr("action",reservationPages.default))}),$(document).ready(function(){var t=$(".masonry .grid").masonry({itemSelector:".grid-item",percentPosition:!0,columnWidth:".grid-sizer"});t.imagesLoaded().progress(function(){t.masonry()})}),$(window).load(function(){var t=document.getElementById("fullscreen-bg__video");window.innerWidth<992&&null!==t&&(t.setAttribute("preload","none"),t.removeAttribute("autoplay"))}),$(document).ready(function(){var t=document.querySelector(".szn-ending-popup-cover");t&&t.style.setProperty("display","none","important")}),!function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var n;if(t&&e)return-1==(n=(n=this._events=this._events||{})[t]=n[t]||[]).indexOf(e)&&n.push(e),this},e.once=function(t,e){var n;if(t&&e)return this.on(t,e),((n=this._onceEvents=this._onceEvents||{})[t]=n[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var s=n[o];i&&i[s]&&(this.off(t,s),delete i[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(e,n){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("ev-emitter")):e.imagesLoaded=n(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function s(t,e){for(var n in e)t[n]=e[n];return t}function r(t,e,n){var i,o;return this instanceof r?(i="string"==typeof(i=t)?document.querySelectorAll(t):i)?(this.elements=(o=i,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?c.call(o):[o]),this.options=s({},this.options),"function"==typeof e?n=e:s(this.options,e),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(i||t)):new r(t,e,n)}function n(t){this.img=t}function i(t,e){this.url=t,this.element=e,this.img=new Image}var a=e.jQuery,l=e.console,c=Array.prototype.slice,d=((r.prototype=Object.create(t.prototype)).options={},r.prototype.getImages=function(){this.images=[],this.elements.forEac
1h(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var n=t.querySelectorAll("img"),i=0;i<n.length;i++){var o=n[i];this.addImage(o)}if("string"==typeof this.options.background)for(var s=t.querySelectorAll(this.options.background),i=0;i<s.length;i++){var r=s[i];this.addElementBackgroundImages(r)}}},{1:!0,9:!0,11:!0});return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var o=i&&i[2];o&&this.addBackground(o,t),i=n.exec(e.backgroundImage)}},r.prototype.addImage=function(t){t=new n(t);this.images.push(t)},r.prototype.addBackground=function(t,e){t=new i(t,e);this.images.push(t)},r.prototype.check=function(){function e(t,e,n){setTimeout(function(){i.progress(t,e,n)})}var i=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},r.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+n,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(n.prototype=Object.create(t.prototype)).check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},n.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(i.prototype=Object.create(n.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((a=t).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(a(this))})})(),r}),!function(e,n){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("jquery")):e.jQueryBridget=n(e,e.jQuery)}(window,function(t,e){"use strict";function n(l,c,d){(d=d||e||t.jQuery)&&(c.prototype.option||(c.prototype.option=function(t){d.isPlainObject(t)&&(this.options=d.extend(!0,this.options,t))}),d.fn[l]=function(t){var e,i,o,s,r,a;return"string"==typeof t?(e=u.call(arguments,1),o=e,r="$()."+l+'("'+(i=t)+'")',(e=this).each(function(t,e){var n,e=d.data(e,l);e?(n=e[i])&&"_"!=i.charAt(0)?(n=n.apply(e,o),s=void 0===s?n:s):h(r+" is not a valid method"):h(l+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:e):(a=t,this.each(function(t,e){var n=d.data(e,l);n?(n.option(a),n._init()):(n=new c(e,a),d.data(e,l,n))}),this)},i(d))}function i(t){t&&!t.bridget&&(t.bridget=n)}var u=Array.prototype.slice,o=t.console,h=void 0===o?function(){}:function(t){o.error(t)};return i(e||t.jQuery),n}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var n;if(t&&e)return-1==(n=(n=this._events=this._events||{})[t]=n[t]||[]).indexOf(e)&&n.push(e),this},e.once=function(t,e){var n;if(t&&e)return this.on(t,e),((n=this._onceEvents=this._onceEvents||{})[t]=n[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var s=n[o];i&&i[s]&&(this.off(t,s),delete i[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function v(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function y(t){if(_||(_=!0,(d=document.createElement("div")).style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box",(c=document.body||document.documentElement).appendChild(d),s=v(d),b=200==Math.round(m(s.width)),y.isBoxSizeOuter=b,c.removeChild(d)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=v(t);if("none"==e.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<x;i++)n[w[i]]=0;return n}var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var s=o.isBorderBox="border-box"==e.boxSizing,r=0;r<x;r++){var a=w[r],l=e[a],l=parseFloat(l);o[a]=isNaN(l)?0:l}var c=o.paddingLeft+o.paddingRight,d=o.paddingTop+o.paddingBottom,t=o.marginLeft+o.marginRight,u=o.marginTop+o.marginBottom,h=o.borderLeftWidth+o.borderRightWidth,p=o.borderTopWidth+o.borderBottomWidth,f=s&&b,g=m(e.width),g=(!1!==g&&(o.width=g+(f?0:c+h)),m(e.height));return!1!==g&&(o.height=g+(f?0:d+p)),o.innerWidth=o.width-(c+h),o.innerHeight=o.height-(d+p),o.outerWidth=o.width+t,o.outerHeight=o.height+u,o}var d,c,s}var b,e="undefined"==typeof console?function(){}:function(t){console.error(t)},w=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],x=w.length,_=!1;return y}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n]+"MatchesSelector";if(t[i])return i}}();return function(t,e){return t[n](e)}}),function(e,n){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("desandro-matches-selector")):e.fizzyUIUtils=n(e,e.matchesSelector)}(window,function(n,s){var l={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,c=(l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,s(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,i){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(i){s(t,i)&&o.push(t);for(var e=t.querySelectorAll(i),n=0;n<e.length;n++)o.push(e[n])}else o.push(t)}),o},l.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s],e=(clearTimeout(t),arguments),n=this;this[s]=setTimeout(function(){o.apply(n,e),delete n[s]},i)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,n){return e+"-"+n}).toLowerCase()},n.console);return l.htmlInit=function(r,a){l.docReady(function(){var t=l.toDashed(a),i="data-"+t,e=document.querySelectorAll("["+i+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),o=i+"-options",s=n.jQuery;e.forEach(function(e){var t,n=e.getAttribute(i)||e.getAttribute(o);try{t=n&&JSON.parse(n)}catch(t){return void(c&&c.error("Error parsing "+i+" on "+e.className+": "+t))}n=new r(e,t);s&&s.data(e,a,n)})})},l}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var i=document.documentElement.style,o="string"==typeof i.transition?"transition":"WebkitTransition",i="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],r={transform:i,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"},t=n.prototype=Object.create(t.prototype),a=(t.constructor=n,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,n=this.element.style;for(e in t)n[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=t[e?"left":"right"],t=t[n?"top":"bottom"],o=parseFloat(i),s=parseFloat(t),r=this.layout.size;-1!=i.indexOf("%")&&(o=o/100*r.width),-1!=t.indexOf("%")&&(s=s/100*r.height),o=isNaN(o)?0:o,s=isNaN(s)?0:s,o-=e?r.paddingLeft:r.paddingRight,s-=n?r.paddingTop:r.paddingBottom,this.position.x=o,this.position.y=s},t.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=n?"right":"left",s=this.position.x+t[n?"paddingLeft":"paddingRight"],n=(e[n?"left":"right"]=this.getXValue(s),e[o]="",i?"paddingTop":"paddingBottom"),s=i?"bottom":"top",o=this.position.y+t[n];e[i?"top":"bottom"]=this.getYValue(o),e[s]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var n=this.position.x,i=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),o&&!this.isTransitioning?this.layoutPosition():((o={}).transform=this.getTranslate(t-n,e-i),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,n=this._transn;for(e in t.onTransitionEnd)n.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)n.ingProperties[e]=!0,t.isCleaning&&(n.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)},"opacity,"+i.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})),l=(t.enableTransition=function(){var t;this.isTransitioning||(t=this.layout.options.transitionDuration,this.css({transitionProperty:a,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)}
1,{"-webkit-transform":"transform"}),c=(t.ontransitionend=function(t){var e,n;t.target===this.element&&(e=this._transn,n=l[t.propertyName]||t.propertyName,delete e.ingProperties[n],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd&&(e.onEnd[n].call(this),delete e.onEnd[n]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,n={};for(e in t)n[e]="";this.css(n)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(c)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(o,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,n,i){return s(o,t,e,n,i)}):"object"==typeof module&&module.exports?module.exports=s(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=s(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,o,i,s){"use strict";function r(t,e){var n=i.getQueryElement(t);n?(this.element=n,c&&(this.$element=c(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e),e=++d,this.element.outlayerGUID=e,(u[e]=this)._create(),this._getOption("initLayout")&&this.layout()):l&&l.error("Bad element for "+this.constructor.namespace+": "+(n||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function n(){}var l=t.console,c=t.jQuery,d=0,u={},h=(r.namespace="outlayer",r.Item=s,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},r.prototype),p=(i.extend(h,e.prototype),h.option=function(t){i.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,i=[],o=0;o<e.length;o++){var s=new n(e[o],this);i.push(s)}return i},h._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0}
1,h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=o(this.element)},h._getMeasurement=function(t,e){var n,i=this.options[t];i?("string"==typeof i?n=this.element.querySelector(i):i instanceof HTMLElement&&(n=i),this[t]=n?o(n)[e]:i):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,n){var i;this._emitCompleteOnItems("layout",t),t&&t.length&&(i=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=n||t.isLayoutInstant,i.push(e)},this),this._processLayoutQueue(i))},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t,e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger="number"==typeof(e=e)?e:(t=(e=e.match(/(^\d*\.?\d*)(\w*)/))&&e[1],e=e&&e[2],t.length?(t=parseFloat(t))*(p[e]||1):0),this.stagger)},h._positionItem=function(t,e,n,i,o){i?t.goTo(e,n):(t.stagger(o*this.stagger),t.moveTo(e,n))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){var t;this._getOption("resizeContainer")&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},h._getContainerSize=n,h._setContainerMeasure=function(t,e){var n;void 0!==t&&((n=this.size).isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},h._emitCompleteOnItems=function(e,t){function n(){s.dispatchEvent(e+"Complete",null,[t])}function i(){++o==r&&n()}var o,s=this,r=t.length;t&&r?(o=0,t.forEach(function(t){t.once(e,i)})):n()},h.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;this.emitEvent(t,i),c&&(this.$element=this.$element||c(this.element),e?((i=c.Event(e)).type=t,this.$element.trigger(i,n)):this.$element.trigger(t,n))},h.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},h.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},h.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){i.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),i.makeArray(t)):void 0},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=n,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,t=o(t);return{left:e.left-n.left-t.marginLeft,top:e.top-n.top-t.marginTop,right:n.right-e.right-t.marginRight,bottom:n.bottom-e.bottom-t.marginBottom}},h.handleEvent=i.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},i.debounceMethod(r,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},h.reveal=function(t){var n;this._emitCompleteOnItems("reveal",t),t&&t.length&&(n=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*n),t.reveal()}))},h.hide=function(t){var n;this._emitCompleteOnItems("hide",t),t&&t.length&&(n=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*n),t.hide()}))},h.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},h.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},h.getItems=function(t){t=i.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},h.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),i.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEac
1h(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete u[t],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=(t=i.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},r.create=function(t,e){var n=a(r);return n.defaults=i.extend({},r.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},r.compatOptions),n.namespace=t,n.data=r.data,n.Item=a(s),i.htmlInit(n,t),c&&c.bridget&&c.bridget(t,n),n},{ms:1,s:1e3});return r.Item=s,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,n=e/t,e=t-e%t,n=Math[e&&e<1?"round":"floor"](n);this.cols=Math.max(n,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),i={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,s=e+n.col,r=n.col;r<s;r++)this.colYs[r]=o;return i},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],n=this.cols+1-t,i=0;i<n;i++)e[i]=this._getColGroupY(i,t);return e},e._getColGroupY=function(t,e){return e<2?this.colYs[t]:(t=this.colYs.slice(t,t+e),Math.max.apply(Math,t))},e._getHorizontalColPosition=function(t,e){var n=this.horizontalColIndex%this.cols,n=1<t&&n+t>this.cols?0:n,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?n+t:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),n=this._getOption("originLeft")?t.left:t.right,i=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(i/this.columnWidth);o-=i%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),s=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,r=n;r<=o;r++)this.colYs[r]=Math.max(s,this.colYs[r])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.