function PowermailForm(e){"use strict";this.initialize=function(){t(),n(),i(),r(),a(),o(),p(),s()};var t=function(){e.fn.powermailTabs&&e(".powermail_morestep").each((function(){e(this).powermailTabs()}))},n=function(){e("form[data-powermail-ajax]").length&&l()},i=function(){e('*[data-powermail-location="prefill"]').length&&navigator.geolocation&&(e(this),navigator.geolocation.getCurrentPosition((function(t){var n=t.coords.latitude,i=t.coords.longitude,r=D()+"/index.php?eID=powermailEidGetLocation";jQuery.ajax({url:r,data:"lat="+n+"&lng="+i,cache:!1,success:function(t){t&&e('*[data-powermail-location="prefill"]').val(t)}})})))},r=function(){e.fn.datetimepicker&&e(".powermail_date").each((function(){var t=e(this);if("date"===t.prop("type")||"datetime-local"===t.prop("type")||"time"===t.prop("type")){if(!t.data("datepicker-force")){if(e(this).data("date-value")){var n=y(e(this).data("date-value"),e(this).data("datepicker-format"),t.prop("type"));null!==n&&e(this).val(n)}return}t.prop("type","text"),t.val(e(this).data("date-value"))}var i=!0,r=!0;"date"===t.data("datepicker-settings")?r=!1:"time"===t.data("datepicker-settings")&&(i=!1),t.datetimepicker({format:t.data("datepicker-format"),timepicker:r,datepicker:i,lang:"en",i18n:{en:{months:t.data("datepicker-months").split(","),dayOfWeek:t.data("datepicker-days").split(",")}}})}))},a=function(){e(".powermail_all_type_password.powermail_all_value").html("********")},o=function(){e.fn.parsley&&e(".powermail_reset").on("click","",(function(){e('form[data-parsley-validate="data-parsley-validate"]').parsley().reset()}))},s=function(){window.Parsley&&(w(),b())},l=function(){var t,n=!1;e(document).on("submit","form[data-powermail-ajax]",(function(i){var r=e(this),a=r.closest(".tx-powermail");r.data("powermail-ajax-uri")&&(t=r.data("powermail-ajax-uri"));var o=r.data("powermail-form");n||(e.ajax({type:"POST",url:r.prop("action"),data:new FormData(r.get(0)),contentType:!1,processData:!1,beforeSend:function(){c(r)},complete:function(){u(r),p(),d(a)},success:function(i){var a=e('*[data-powermail-form="'+o+'"]:first',i);a.length?(e('*[data-powermail-form="'+o+'"]:first').closest(".tx-powermail").html(a),e.fn.powermailTabs&&e(".powermail_morestep").powermailTabs(),e.fn.parsley&&e('form[data-parsley-validate="data-parsley-validate"]').parsley(),m()):(t?C(t):r.submit(),n=!0)}}),i.preventDefault())}))},c=function(t){u(t),e(".powermail_submit",t).length?e(".powermail_submit",t).parent().append(_()):t.closest(".tx-powermail").append(_())},u=function(e){e.closest(".tx-powermail").find(".powermail_progressbar").remove()},d=function(t){var n=e.Event("submitted.powermail.form");t.trigger(n)},p=function(){e(".powermail_fieldwrap_file").find(".deleteAllFiles").each((function(){f(e(this).closest(".powermail_fieldwrap_file").find('input[type="file"]'))})),e(".deleteAllFiles").click((function(){h(e(this).closest(".powermail_fieldwrap_file").find('input[type="hidden"]')),e(this).closest("ul").fadeOut((function(){e(this).remove()}))}))},f=function(e){e.prop("disabled","disabled").addClass("hide").prop("type","hidden")},h=function(e){e.prop("disabled",!1).removeClass("hide").prop("type","file")},m=function(){e("img.powermail_captchaimage").each((function(){var t=g(e(this).prop("src"));e(this).prop("src",t+"?hash="+v(5))}))},g=function(e){return e.split("?")[0]},v=function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*n.length));return t},y=function(e,t,n){var i=Date.parseDate(e,t);if(null===i)return null;var r=new Date(i),a=r.getFullYear()+"-";a+=("0"+(r.getMonth()+1)).slice(-2)+"-",a+=("0"+r.getDate()).slice(-2);var o=("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2);return"date"===n?a:"datetime-local"===n?a+"T"+o:"time"===n?o:null},_=function(){return e("<div />").addClass("powermail_progressbar").html(e("<div />").addClass("powermail_progress").html(e("<div />").addClass("powermail_progress_inner")))},w=function(){window.Parsley.addValidator("powermailfilesize",(function(t,n){if(-1!==n.indexOf(",")){var i=n.split(","),r=parseInt(i[0]),a=e('*[name="tx_powermail_pi1[field]['+i[1]+'][]"]');if(a.length&&function(e){for(var t=e.get(0),n=0,i=0;i<t.files.length;i++){var r=t.files[i];r.size>n&&(n=r.size)}return parseInt(n)}(a)>r)return!1}return!0}),32).addMessage("en","powermailfilesize","Error")},b=function(){window.Parsley.addValidator("powermailfileextensions",(function(t,n){var i=e('*[name="tx_powermail_pi1[field]['+n+'][]"]');return!i.length||x(k(t),i.prop("accept"))}),32).addMessage("en","powermailfileextensions","Error")},x=function(e,t){return-1!==t.indexOf("."+e)},k=function(e){return e.split(".").pop().toLowerCase()},C=function(e){-1!==e.indexOf("http")?window.location=e:window.location.pathname=e},D=function(){return e("base").length>0?jQuery("base").prop("href"):"https:"!=window.location.protocol?"http://"+window.location.hostname:"https://"+window.location.hostname}}window.modules=[{key:"core",dependencies:["jquery/dist/jquery.js","jquery-lazy/jquery.lazy.js","jquery-lazy/plugins/jquery.lazy.iframe.js","jquery-hoverintent/jquery.hoverIntent.js","bootstrap/js/dist/util.js","popper.js/dist/umd/popper.js","bootstrap/js/dist/dropdown.js","bootstrap/js/dist/collapse.js","../Resources/Public/JavaScript/vendor/jquery-ui.min.js","../Resources/Public/JavaScript/Powermail/jquery.datetimepicker.min.js","../Resources/Public/JavaScript/Powermail/parsley.min.js","../Resources/Public/JavaScript/Powermail/Tabs.min.js","../Resources/Public/JavaScript/Powermail/Form.min.js","jquery.socialshareprivacy/jquery.socialshareprivacy.min.js","photoswipe/dist/photoswipe-ui-default.js","photoswipe/dist/photoswipe.js","iframe-resizer/js/iframeResizer.min.js"]},{key:"swiper",dependencies:["swiper/dist/js/swiper.min.js"]},{key:"eventinfo",dependencies:[]},{key:"simpletopics",dependencies:[]},{key:"map",dependencies:["raphael/raphael.min.js"]},{key:"countdown",dependencies:["jquery-countdown/dist/jquery.countdown.js"]}],
/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],i=e.document,r=Object.getPrototypeOf,a=n.slice,o=n.concat,s=n.push,l=n.indexOf,c={},u=c.toString,d=c.hasOwnProperty,p=d.toString,f=p.call(Object),h={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v={type:!0,src:!0,noModule:!0};function y(e,t,n){var r,a=(t=t||i).createElement("script");if(a.text=e,n)for(r in v)n[r]&&(a[r]=n[r]);t.head.appendChild(a).parentNode.removeChild(a)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)},b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function x(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!m(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,i,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||m(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(i=e[t])&&(c&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,a=n&&Array.isArray(n)?n:[]):a=n&&w.isPlainObject(n)?n:{},o[t]=w.extend(c,a,i)):void 0!==i&&(o[t]=i));return o},w.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e))&&(!(t=r(e))||"function"==typeof(n=d.call(t,"constructor")&&t.constructor)&&p.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){y(e)},each:function(e,t){var n,i=0;if(x(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(b,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,a=e.length,o=!n;r<a;r++)!t(e[r],r)!==o&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,s=[];if(x(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&s.push(r);return o.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){c["[object "+t+"]"]=t.toLowerCase()}));var k=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(e){var t,n,i,r,a,o,s,l,c,u,d,p,f,h,m,g,v,y,_,w="sizzle"+1*new Date,b=e.document,x=0,k=0,C=oe(),D=oe(),I=oe(),T=function(e,t){return e===t&&(d=!0),0},E={}.hasOwnProperty,A=[],S=A.pop,M=A.push,O=A.push,P=A.slice,N=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",H="\\["+L+"*("+F+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+L+"*\\]",B=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",R=new RegExp(L+"+","g"),z=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),W=new RegExp("^"+L+"*,"+L+"*"),$=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),q=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),Y=new RegExp(B),U=new RegExp("^"+F+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},re=ye((function(e){return!0===e.disabled&&("form"in e||"label"in e)}),{dir:"parentNode",next:"legend"});try{O.apply(A=P.call(b.childNodes),b.childNodes),A[b.childNodes.length].nodeType}catch(e){O={apply:A.length?function(e,t){M.apply(e,P.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,r){var a,s,c,u,d,h,v,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!r&&((t?t.ownerDocument||t:b)!==f&&p(t),t=t||f,m)){if(11!==x&&(d=X.exec(e)))if(a=d[1]){if(9===x){if(!(c=t.getElementById(a)))return i;if(c.id===a)return i.push(c),i}else if(y&&(c=y.getElementById(a))&&_(t,c)&&c.id===a)return i.push(c),i}else{if(d[2])return O.apply(i,t.getElementsByTagName(e)),i;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(i,t.getElementsByClassName(a)),i}if(n.qsa&&!I[e+" "]&&(!g||!g.test(e))){if(1!==x)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=w),s=(h=o(e)).length;s--;)h[s]="#"+u+" "+ve(h[s]);v=h.join(","),y=Q.test(e)&&me(t.parentNode)||t}if(v)try{return O.apply(i,y.querySelectorAll(v)),i}catch(e){}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(z,"$1"),t,i,r)}function oe(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function se(e){return e[w]=!0,e}function le(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se((function(t){return t=+t,se((function(n,i){for(var r,a=e([],n.length,t),o=a.length;o--;)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},a=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=ae.setDocument=function(e){var t,r,o=e?e.ownerDocument||e:b;return o!==f&&9===o.nodeType&&o.documentElement?(h=(f=o).documentElement,m=!a(f),b!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=le((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=le((function(e){return h.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,r,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(r=t.getElementsByName(e),i=0;a=r[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[r++];)1===n.nodeType&&i.push(n);return i}return a},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Z.test(f.querySelectorAll))&&(le((function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")})),le((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(h.compareDocumentPosition),_=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===b&&_(b,e)?-1:t===f||t.ownerDocument===b&&_(b,t)?1:u?N(u,e)-N(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!r||!a)return e===f?-1:t===f?1:r?-1:a?1:u?N(u,e)-N(u,t):0;if(r===a)return ue(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[i]===s[i];)i++;return i?ue(o[i],s[i]):o[i]===b?-1:s[i]===b?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(q,"='$1']"),n.matchesSelector&&m&&!I[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),_(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var r=i.attrHandle[t.toLowerCase()],a=r&&E.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==a?a:n.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ae.escape=function(e){return(e+"").replace(te,ne)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],r=0,a=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(T),d){for(;t=e[a++];)t===e[a]&&(r=i.push(a));for(;r--;)e.splice(i[r],1)}return u=null,e},r=ae.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:se,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=ae.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,f,h,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,_=!1;if(g){if(a){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?g.firstChild:g.lastChild],o&&y){for(_=(f=(c=(u=(d=(p=g)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(_=f=0)||h.pop();)if(1===p.nodeType&&++_&&p===t){u[e]=[x,f,_];break}}else if(y&&(_=f=(c=(u=(d=(p=t)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===_)for(;(p=++f&&p&&p[m]||(_=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++_||(y&&((u=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,_]),p!==t)););return(_-=r)===i||_%i==0&&_/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?se((function(e,n){for(var i,a=r(e,t),o=a.length;o--;)e[i=N(e,a[o])]=!(n[i]=a[o])})):function(e){return r(e,0,n)}):r}},pseudos:{not:se((function(e){var t=[],n=[],i=s(e.replace(z,"$1"));return i[w]?se((function(e,t,n,r){for(var a,o=i(e,null,r,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:se((function(e){return function(t){return ae(e,t).length>0}})),contains:se((function(e){return e=e.replace(J,ee),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}})),lang:se((function(e){return U.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:he((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:he((function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e})),gt:he((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=pe(t);function ge(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(e,t,n){var i=t.dir,r=t.next,a=r||i,o=n&&"parentNode"===a,s=k++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r);return!1}:function(t,n,l){var c,u,d,p=[x,s];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[a])&&c[0]===x&&c[1]===s)return p[2]=c[2];if(u[a]=p,p[2]=e(t,n,l))return!0}return!1}}function _e(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function we(e,t,n,i,r){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,i,r)||(o.push(a),c&&t.push(s)));return o}function be(e,t,n,i,r,a){return i&&!i[w]&&(i=be(i)),r&&!r[w]&&(r=be(r,a)),se((function(a,o,s,l){var c,u,d,p=[],f=[],h=o.length,m=a||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ae(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:we(m,p,e,s,l),v=n?r||(a?e:h||i)?[]:o:g;if(n&&n(g,v,s,l),i)for(c=we(v,f),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(g[f[u]]=d));if(a){if(r||e){if(r){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);r(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=r?N(a,d):p[u])>-1&&(a[c]=!(o[c]=d))}}else v=we(v===o?v.splice(h,v.length):v),r?r(null,o,v,l):O.apply(o,v)}))}function xe(e){for(var t,n,r,a=e.length,o=i.relative[e[0].type],s=o||i.relative[" "],l=o?1:0,u=ye((function(e){return e===t}),s,!0),d=ye((function(e){return N(t,e)>-1}),s,!0),p=[function(e,n,i){var r=!o&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,r}];l<a;l++)if(n=i.relative[e[l].type])p=[ye(_e(p),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(r=++l;r<a&&!i.relative[e[r].type];r++);return be(l>1&&_e(p),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,l<r&&xe(e.slice(l,r)),r<a&&xe(e=e.slice(r)),r<a&&ve(e))}p.push(n)}return _e(p)}return ge.prototype=i.filters=i.pseudos,i.setFilters=new ge,o=ae.tokenize=function(e,t){var n,r,a,o,s,l,c,u=D[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=i.preFilter;s;){for(o in n&&!(r=W.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),n=!1,(r=$.exec(s))&&(n=r.shift(),a.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length)),i.filter)!(r=K[o].exec(s))||c[o]&&!(r=c[o](r))||(n=r.shift(),a.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ae.error(e):D(e,l).slice(0)},s=ae.compile=function(e,t){var n,r=[],a=[],s=I[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=xe(t[n]))[w]?r.push(s):a.push(s);(s=I(e,function(e,t){var n=t.length>0,r=e.length>0,a=function(a,o,s,l,u){var d,h,g,v=0,y="0",_=a&&[],w=[],b=c,k=a||r&&i.find.TAG("*",u),C=x+=null==b?1:Math.random()||.1,D=k.length;for(u&&(c=o===f||o||u);y!==D&&null!=(d=k[y]);y++){if(r&&d){for(h=0,o||d.ownerDocument===f||(p(d),s=!m);g=e[h++];)if(g(d,o||f,s)){l.push(d);break}u&&(x=C)}n&&((d=!g&&d)&&v--,a&&_.push(d))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(_,w,o,s);if(a){if(v>0)for(;y--;)_[y]||w[y]||(w[y]=S.call(l));w=we(w)}O.apply(l,w),u&&!a&&w.length>0&&v+t.length>1&&ae.uniqueSort(l)}return u&&(x=C,c=b),_};return n?se(a):a}(a,r))).selector=e}return s},l=ae.select=function(e,t,n,r){var a,l,c,u,d,p="function"==typeof e&&e,f=!r&&o(e=p.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(J,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=K.needsContext.test(e)?0:l.length;a--&&(c=l[a],!i.relative[u=c.type]);)if((d=i.find[u])&&(r=d(c.matches[0].replace(J,ee),Q.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(a,1),!(e=r.length&&ve(l)))return O.apply(n,r),n;break}}return(p||s(e,f))(r,t,!m,n,!t||Q.test(e)&&me(t.parentNode)||t),n},n.sortStable=w.split("").sort(T).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=le((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),le((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&le((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||ce(j,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(e);w.find=k,w.expr=k.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=k.uniqueSort,w.text=k.getText,w.isXMLDoc=k.isXML,w.contains=k.contains,w.escapeSelector=k.escape;var C=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&w(e).is(n))break;i.push(e)}return i},D=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},I=w.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,t,n){return m(t)?w.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return l.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<i;t++)if(w.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)w.find(e,r[t],n);return i>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&I.test(e)?w(e):e||[],!1).length}});var S,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||S,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),E.test(r[1])&&w.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=i.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,S=w(i);var O=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,a=[],o="string"!=typeof e&&w(e);if(!I.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?w.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?l.call(w(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return D((e.parentNode||{}).firstChild,e)},children:function(e){return D(e.firstChild)},contents:function(e){return T(e,"iframe")?e.contentDocument:(T(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,i){var r=w.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=w.filter(i,r)),this.length>1&&(P[e]||w.uniqueSort(r),O.test(e)&&r.reverse()),this.pushStack(r)}}));var j=/[^\x20\t\r\n\f]+/g;function L(e){return e}function F(e){throw e}function H(e,t,n,i){var r;try{e&&m(r=e.promise)?r.call(e).done(t).fail(n):e&&m(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(j)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,i,r,a=[],o=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,r&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){w.each(n,(function(n,i){m(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==_(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;(n=w.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?w.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=o=[],n||t||(a=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(n,(function(n,i){var r=m(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(t,i,r){var a=0;function o(t,n,i,r){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<a)){if((e=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(c)?r?c.call(e,o(a,n,L,r),o(a,n,F,r)):(a++,c.call(e,o(a,n,L,r),o(a,n,F,r),o(a,n,L,n.notifyWith))):(i!==L&&(s=void 0,l=[e]),(r||n.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,u.stackTrace),t+1>=a&&(i!==F&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),e.setTimeout(u))}}return w.Deferred((function(e){n[0][3].add(o(0,e,m(r)?r:L,e.notifyWith)),n[1][3].add(o(0,e,m(t)?t:L)),n[2][3].add(o(0,e,m(i)?i:F))})).promise()},promise:function(e){return null!=e?w.extend(e,r):r}},a={};return w.each(n,(function(e,t){var o=t[2],s=t[5];r[t[1]]=o.add,s&&o.add((function(){i=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=o.fireWith})),r.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,i=Array(n),r=a.call(arguments),o=w.Deferred(),s=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(H(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||m(r[n]&&r[n].then)))return o.then();for(;n--;)H(r[n],s(n),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var R=w.Deferred();function z(){i.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),w.ready()}w.fn.ready=function(e){return R.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||R.resolveWith(i,[w]))}}),w.ready.then=R.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(w.ready):(i.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var W=function(e,t,n,i,r,a,o){var s=0,l=e.length,c=null==n;if("object"===_(n))for(s in r=!0,n)W(e,t,s,n[s],!0,a,o);else if(void 0!==i&&(r=!0,m(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(w(e),n)})),t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):a},$=/^-ms-/,q=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function U(e){return e.replace($,"ms-").replace(q,Y)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function V(){this.expando=w.expando+V.uid++}V.uid=1,V.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[U(t)]=n;else for(i in t)r[U(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(U):(t=U(t))in i?[t]:t.match(j)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||w.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var G=new V,Z=new V,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function J(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:X.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Z.hasData(e)||G.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=Z.get(a),1===a.nodeType&&!G.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=U(i.slice(5)),J(a,i,r[i]));G.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){Z.set(this,e)})):W(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=Z.get(a,e))?n:void 0!==(n=J(a,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=G.get(e,t),n&&(!i||Array.isArray(n)?i=G.access(e,t,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),i=n.length,r=n.shift(),a=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,(function(){w.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return G.get(e,n)||G.access(e,n,{empty:w.Callbacks("once memory").add((function(){G.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=w.Deferred(),a=this,o=this.length,s=function(){--i||r.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=G.get(a[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&w.contains(e.ownerDocument,e)&&"none"===w.css(e,"display")},re=function(e,t,n,i){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=n.apply(e,i||[]),t)e.style[a]=o[a];return r};function ae(e,t,n,i){var r,a,o=20,s=i?function(){return i.cur()}:function(){return w.css(e,t,"")},l=s(),c=n&&n[3]||(w.cssNumber[t]?"":"px"),u=(w.cssNumber[t]||"px"!==c&&+l)&&te.exec(w.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)w.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,w.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var oe={};function se(e){var t,n=e.ownerDocument,i=e.nodeName,r=oe[i];return r||(t=n.body.appendChild(n.createElement(i)),r=w.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),oe[i]=r,r)}function le(e,t){for(var n,i,r=[],a=0,o=e.length;a<o;a++)(i=e[a]).style&&(n=i.style.display,t?("none"===n&&(r[a]=G.get(i,"display")||null,r[a]||(i.style.display="")),""===i.style.display&&ie(i)&&(r[a]=se(i))):"none"!==n&&(r[a]="none",G.set(i,"display",n)));for(a=0;a<o;a++)null!=r[a]&&(e[a].style.display=r[a]);return e}w.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ie(this)?w(this).show():w(this).hide()}))}});var ce=/^(?:checkbox|radio)$/i,ue=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,de=/^$|^module$|\/(?:java|ecma)script/i,pe={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 fe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?w.merge([e],n):n}function he(e,t){for(var n=0,i=e.length;n<i;n++)G.set(e[n],"globalEval",!t||G.get(t[n],"globalEval"))}pe.optgroup=pe.option,pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td;var me,ge,ve=/<|&#?\w+;/;function ye(e,t,n,i,r){for(var a,o,s,l,c,u,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((a=e[f])||0===a)if("object"===_(a))w.merge(p,a.nodeType?[a]:a);else if(ve.test(a)){for(o=o||d.appendChild(t.createElement("div")),s=(ue.exec(a)||["",""])[1].toLowerCase(),l=pe[s]||pe._default,o.innerHTML=l[1]+w.htmlPrefilter(a)+l[2],u=l[0];u--;)o=o.lastChild;w.merge(p,o.childNodes),(o=d.firstChild).textContent=""}else p.push(t.createTextNode(a));for(d.textContent="",f=0;a=p[f++];)if(i&&w.inArray(a,i)>-1)r&&r.push(a);else if(c=w.contains(a.ownerDocument,a),o=fe(d.appendChild(a),"script"),c&&he(o),n)for(u=0;a=o[u++];)de.test(a.type||"")&&n.push(a);return d}me=i.createDocumentFragment().appendChild(i.createElement("div")),(ge=i.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),me.appendChild(ge),h.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var _e=i.documentElement,we=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Ce(){return!1}function De(){try{return i.activeElement}catch(e){}}function Ie(e,t,n,i,r,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Ie(e,s,n,i,t[s],a);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ce;else if(!r)return e;return 1===a&&(o=r,(r=function(e){return w().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=w.guid++)),e.each((function(){w.event.add(this,t,r,i,n)}))}w.event={global:{},add:function(e,t,n,i,r){var a,o,s,l,c,u,d,p,f,h,m,g=G.get(e);if(g)for(n.handler&&(n=(a=n).handler,r=a.selector),r&&w.find.matchesSelector(_e,r),n.guid||(n.guid=w.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)f=m=(s=xe.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=w.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=w.event.special[f]||{},u=w.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:h.join(".")},a),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,h,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),w.event.global[f]=!0)},remove:function(e,t,n,i,r){var a,o,s,l,c,u,d,p,f,h,m,g=G.hasData(e)&&G.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(f=m=(s=xe.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=w.event.special[f]||{},p=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=p.length;a--;)u=p[a],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(a,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||w.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)w.event.remove(e,f+t[c],n,i,!0);w.isEmptyObject(l)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,a,o,s=w.event.fix(e),l=new Array(arguments.length),c=(G.get(this,"events")||{})[s.type]||[],u=w.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(o=w.event.handlers.call(this,s,c),t=0;(r=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(i=((w.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,i,r,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[r=(i=t[n]).selector+" "]&&(o[r]=i.needsContext?w(r,this).index(c)>-1:w.find(r,this,null,[c]).length),o[r]&&a.push(i);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==De()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===De()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&T(this,"input"))return this.click(),!1},_default:function(e){return T(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&be.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,a=e.handleObj;return r&&(r===i||w.contains(i,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,i){return Ie(this,e,t,n,i)},one:function(e,t,n,i){return Ie(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){w.event.remove(this,e,n,t)}))}});var Te=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ee=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,i,r,a,o,s,l,c;if(1===t.nodeType){if(G.hasData(e)&&(a=G.access(e),o=G.set(t,a),c=a.events))for(r in delete o.handle,o.events={},c)for(n=0,i=c[r].length;n<i;n++)w.event.add(t,r,c[r][n]);Z.hasData(e)&&(s=Z.access(e),l=w.extend({},s),Z.set(t,l))}}function je(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ce.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Le(e,t,n,i){t=o.apply([],t);var r,a,s,l,c,u,d=0,p=e.length,f=p-1,g=t[0],v=m(g);if(v||p>1&&"string"==typeof g&&!h.checkClone&&Ae.test(g))return e.each((function(r){var a=e.eq(r);v&&(t[0]=g.call(this,r,a.html())),Le(a,t,n,i)}));if(p&&(a=(r=ye(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(l=(s=w.map(fe(r,"script"),Oe)).length;d<p;d++)c=r,d!==f&&(c=w.clone(c,!0,!0),l&&w.merge(s,fe(c,"script"))),n.call(e[d],c,d);if(l)for(u=s[s.length-1].ownerDocument,w.map(s,Pe),d=0;d<l;d++)c=s[d],de.test(c.type||"")&&!G.access(c,"globalEval")&&w.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&w._evalUrl(c.src):y(c.textContent.replace(Se,""),u,c))}return e}function Fe(e,t,n){for(var i,r=t?w.filter(t,e):e,a=0;null!=(i=r[a]);a++)n||1!==i.nodeType||w.cleanData(fe(i)),i.parentNode&&(n&&w.contains(i.ownerDocument,i)&&he(fe(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e.replace(Te,"<$1></$2>")},clone:function(e,t,n){var i,r,a,o,s=e.cloneNode(!0),l=w.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(o=fe(s),i=0,r=(a=fe(e)).length;i<r;i++)je(a[i],o[i]);if(t)if(n)for(a=a||fe(e),o=o||fe(s),i=0,r=a.length;i<r;i++)Ne(a[i],o[i]);else Ne(e,s);return(o=fe(s,"script")).length>0&&he(o,!l&&fe(e,"script")),s},cleanData:function(e){for(var t,n,i,r=w.event.special,a=0;void 0!==(n=e[a]);a++)if(K(n)){if(t=n[G.expando]){if(t.events)for(i in t.events)r[i]?w.event.remove(n,i):w.removeEvent(n,i,t.handle);n[G.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return W(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Le(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)}))},prepend:function(){return Le(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return W(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!pe[(ue.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(fe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(fe(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var n,i=[],r=w(e),a=r.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),w(r[o])[t](n),s.apply(i,n.get());return this.pushStack(i)}}));var He=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Re=new RegExp(ne.join("|"),"i");function ze(e,t,n){var i,r,a,o,s=e.style;return(n=n||Be(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||w.contains(e.ownerDocument,e)||(o=w.style(e,t)),!h.pixelBoxStyles()&&He.test(o)&&Re.test(t)&&(i=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=i,s.minWidth=r,s.maxWidth=a)),void 0!==o?o+"":o}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",_e.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);r="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",s=36===n(t.right),a=36===n(t.width),u.style.position="absolute",o=36===u.offsetWidth||"absolute",_e.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var r,a,o,s,l,c=i.createElement("div"),u=i.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===u.style.backgroundClip,w.extend(h,{boxSizingReliable:function(){return t(),a},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o}}))}();var $e=/^(none|table(?!-c[ea]).+)/,qe=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"},Ke=["Webkit","Moz","ms"],Ve=i.createElement("div").style;function Ge(e){var t=w.cssProps[e];return t||(t=w.cssProps[e]=function(e){if(e in Ve)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in Ve)return e}(e)||e),t}function Ze(e,t,n){var i=te.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Xe(e,t,n,i,r,a){var o="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=w.css(e,n+ne[o],!0,r)),i?("content"===n&&(l-=w.css(e,"padding"+ne[o],!0,r)),"margin"!==n&&(l-=w.css(e,"border"+ne[o]+"Width",!0,r))):(l+=w.css(e,"padding"+ne[o],!0,r),"padding"!==n?l+=w.css(e,"border"+ne[o]+"Width",!0,r):s+=w.css(e,"border"+ne[o]+"Width",!0,r));return!i&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))),l}function Qe(e,t,n){var i=Be(e),r=ze(e,t,i),a="border-box"===w.css(e,"boxSizing",!1,i),o=a;if(He.test(r)){if(!n)return r;r="auto"}return o=o&&(h.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===w.css(e,"display",!1,i))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(r=parseFloat(r)||0)+Xe(e,t,n||(a?"border":"content"),o,i,r)+"px"}function Je(e,t,n,i,r){return new Je.prototype.init(e,t,n,i,r)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},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:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=U(t),l=qe.test(t),c=e.style;if(l||(t=Ge(s)),o=w.cssHooks[t]||w.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:c[t];"string"===(a=typeof n)&&(r=te.exec(n))&&r[1]&&(n=ae(e,t,r),a="number"),null!=n&&n==n&&("number"===a&&(n+=r&&r[3]||(w.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,a,o,s=U(t);return qe.test(t)||(t=Ge(s)),(o=w.cssHooks[t]||w.cssHooks[s])&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=ze(e,t,i)),"normal"===r&&t in Ue&&(r=Ue[t]),""===n||n?(a=parseFloat(r),!0===n||isFinite(a)?a||0:r):r}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,i){if(n)return!$e.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Qe(e,t,i):re(e,Ye,(function(){return Qe(e,t,i)}))},set:function(e,n,i){var r,a=Be(e),o="border-box"===w.css(e,"boxSizing",!1,a),s=i&&Xe(e,t,i,o,a);return o&&h.scrollboxSize()===a.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Xe(e,t,"border",!1,a)-.5)),s&&(r=te.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ze(0,n,s)}}})),w.cssHooks.marginLeft=We(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-re(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+ne[i]+t]=a[i]||a[i-2]||a[0];return r}},"margin"!==e&&(w.cssHooks[e+t].set=Ze)})),w.fn.extend({css:function(e,t){return W(this,(function(e,t,n){var i,r,a={},o=0;if(Array.isArray(t)){for(i=Be(e),r=t.length;o<r;o++)a[t[o]]=w.css(e,t[o],!1,i);return a}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,arguments.length>1)}}),w.Tween=Je,Je.prototype={constructor:Je,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(w.cssNumber[n]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,n=Je.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Je.propHooks._default.set(this),this}},Je.prototype.init.prototype=Je.prototype,Je.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[w.cssProps[e.prop]]&&!w.cssHooks[e.prop]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},Je.propHooks.scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=Je.prototype.init,w.fx.step={};var et,tt,nt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function rt(){tt&&(!1===i.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rt):e.setTimeout(rt,w.fx.interval),w.fx.tick())}function at(){return e.setTimeout((function(){et=void 0})),et=Date.now()}function ot(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=ne[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function st(e,t,n){for(var i,r=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),a=0,o=r.length;a<o;a++)if(i=r[a].call(n,t,e))return i}function lt(e,t,n){var i,r,a=0,o=lt.prefilters.length,s=w.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=et||at(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),i<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:et||at(),duration:n.duration,tweens:[],createTween:function(t,n){var i=w.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,a,o;for(n in e)if(r=t[i=U(n)],a=e[n],Array.isArray(a)&&(r=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(o=w.cssHooks[i])&&"expand"in o)for(n in a=o.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);a<o;a++)if(i=lt.prefilters[a].call(c,e,u,c.opts))return m(i.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return w.map(u,st,c),m(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(j);for(var n,i=0,r=e.length;i<r;i++)n=e[i],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,a,o,s,l,c,u,d="width"in t||"height"in t,p=this,f={},h=e.style,m=e.nodeType&&ie(e),g=G.get(e,"fxshow");for(i in n.queue||(null==(o=w._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,w.queue(e,"fx").length||o.empty.fire()}))}))),t)if(r=t[i],nt.test(r)){if(delete t[i],a=a||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||w.style(e,i)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=G.get(e,"display")),"none"===(u=w.css(e,"display"))&&(c?u=c:(le([e],!0),c=e.style.display||c,u=w.css(e,"display"),le([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===w.css(e,"float")&&(l||(p.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=G.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&le([e],!0),p.done((function(){for(i in m||le([e]),G.remove(e,"fxshow"),f)w.style(e,i,f[i])}))),l=st(m?g[i]:0,i,p),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){m(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=w.isEmptyObject(e),a=w.speed(t,n,i),o=function(){var t=lt(this,w.extend({},e),a);(r||G.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",a=w.timers,o=G.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&it.test(r)&&i(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(n),t=!1,a.splice(r,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=G.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],a=w.timers,o=i?i.length:0;for(n.finish=!0,w.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,i,r)}})),w.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(et=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),et=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){tt||(tt=!0,rt())},w.fx.stop=function(){tt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}}))},function(){var e=i.createElement("input"),t=i.createElement("select").appendChild(i.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=i.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var ct,ut=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return W(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?w.prop(e,t,n):(1===a&&w.isXMLDoc(e)||(r=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(j);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ut[t]||w.find.attr;ut[t]=function(e,t,i){var r,a,o=t.toLowerCase();return i||(a=ut[o],ut[o]=r,r=null!=n(e,t,i)?o:null,ut[o]=a),r}}));var dt=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function ft(e){return(e.match(j)||[]).join(" ")}function ht(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}w.fn.extend({prop:function(e,t){return W(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&w.isXMLDoc(e)||(t=w.propFix[t]||t,r=w.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,i,r,a,o,s,l=0;if(m(e))return this.each((function(t){w(this).addClass(e.call(this,t,ht(this)))}));if((t=mt(e)).length)for(;n=this[l++];)if(r=ht(n),i=1===n.nodeType&&" "+ft(r)+" "){for(o=0;a=t[o++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");r!==(s=ft(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,r,a,o,s,l=0;if(m(e))return this.each((function(t){w(this).removeClass(e.call(this,t,ht(this)))}));if(!arguments.length)return this.attr("class","");if((t=mt(e)).length)for(;n=this[l++];)if(r=ht(n),i=1===n.nodeType&&" "+ft(r)+" "){for(o=0;a=t[o++];)for(;i.indexOf(" "+a+" ")>-1;)i=i.replace(" "+a+" "," ");r!==(s=ft(i))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,ht(this),t),t)})):this.each((function(){var t,r,a,o;if(i)for(r=0,a=w(this),o=mt(e);t=o[r++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=ht(this))&&G.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":G.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+ft(ht(n))+" ").indexOf(t)>-1)return!0;return!1}});var gt=/\r/g;w.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=m(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,w(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(gt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:ft(w.text(e))}},select:{get:function(e){var t,n,i,r=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:r.length;for(i=a<0?l:o?a:0;i<l;i++)if(((n=r[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=w(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,a=w.makeArray(t),o=r.length;o--;)((i=r[o]).selected=w.inArray(w.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var vt=/^(?:focusinfocus|focusoutblur)$/,yt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,r,a){var o,s,l,c,u,p,f,h,v=[r||i],y=d.call(t,"type")?t.type:t,_=d.call(t,"namespace")?t.namespace.split("."):[];if(s=h=l=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!vt.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(_=y.split("."),y=_.shift(),_.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=_.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:w.makeArray(n,[t]),f=w.event.special[y]||{},a||!f.trigger||!1!==f.trigger.apply(r,n))){if(!a&&!f.noBubble&&!g(r)){for(c=f.delegateType||y,vt.test(c+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),l=s;l===(r.ownerDocument||i)&&v.push(l.defaultView||l.parentWindow||e)}for(o=0;(s=v[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?c:f.bindType||y,(p=(G.get(s,"events")||{})[t.type]&&G.get(s,"handle"))&&p.apply(s,n),(p=u&&s[u])&&p.apply&&K(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,a||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),n)||!K(r)||u&&m(r[y])&&!g(r)&&((l=r[u])&&(r[u]=null),w.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,yt),r[y](),t.isPropagationStopped()&&h.removeEventListener(y,yt),w.event.triggered=void 0,l&&(r[u]=l)),t.result}},simulate:function(e,t,n){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=G.access(i,t);r||i.addEventListener(e,n,!0),G.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=G.access(i,t)-1;r?G.access(i,t,r):(i.removeEventListener(e,n,!0),G.remove(i,t))}}}));var _t=e.location,wt=Date.now(),bt=/\?/;w.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),n};var xt=/\[\]$/,kt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function It(e,t,n,i){var r;if(Array.isArray(t))w.each(t,(function(t,r){n||xt.test(e)?i(e,r):It(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==_(t))i(e,t);else for(r in t)It(e+"["+r+"]",t[r],n,i)}w.param=function(e,t){var n,i=[],r=function(e,t){var n=m(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){r(this.name,this.value)}));else for(n in e)It(n,e[n],t,r);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Dt.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!ce.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}});var Tt=/%20/g,Et=/#.*$/,At=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,Ot=/^\/\//,Pt={},Nt={},jt="*/".concat("*"),Lt=i.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,a=t.toLowerCase().match(j)||[];if(m(n))for(;i=a[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ht(e,t,n,i){var r={},a=e===Nt;function o(s){var l;return r[s]=!0,w.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Bt(e,t){var n,i,r=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&w.extend(!0,e,i),e}Lt.href=_t.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,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":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,w.ajaxSettings),t):Bt(w.ajaxSettings,e)},ajaxPrefilter:Ft(Pt),ajaxTransport:Ft(Nt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,a,o,s,l,c,u,d,p,f,h=w.ajaxSetup({},n),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?w(m):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),_=h.statusCode||{},b={},x={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=St.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||k;return r&&r.abort(t),D(0,t),this}};if(v.promise(C),h.url=((t||h.url||_t.href)+"").replace(Ot,_t.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(j)||[""],null==h.crossDomain){c=i.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Lt.protocol+"//"+Lt.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Ht(Pt,h,n,C),u)return C;for(p in(d=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),a=h.url.replace(Et,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Tt,"+")):(f=h.url.slice(a.length),h.data&&(h.processData||"string"==typeof h.data)&&(a+=(bt.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(a=a.replace(At,"$1"),f=(bt.test(a)?"&":"?")+"_="+wt+++f),h.url=a+f),h.ifModified&&(w.lastModified[a]&&C.setRequestHeader("If-Modified-Since",w.lastModified[a]),w.etag[a]&&C.setRequestHeader("If-None-Match",w.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+jt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(m,C,h)||u))return C.abort();if(k="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),r=Ht(Nt,h,n,C)){if(C.readyState=1,d&&g.trigger("ajaxSend",[C,h]),u)return C;h.async&&h.timeout>0&&(l=e.setTimeout((function(){C.abort("timeout")}),h.timeout));try{u=!1,r.send(b,D)}catch(e){if(u)throw e;D(-1,e)}}else D(-1,"No Transport");function D(t,n,i,s){var c,p,f,b,x,k=n;u||(u=!0,l&&e.clearTimeout(l),r=void 0,o=s||"",C.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(b=function(e,t,n){for(var i,r,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(h,C,i)),b=function(e,t,n,i){var r,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(r in c)if((s=r.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[r]:!0!==c[r]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(h,b,C,c),c?(h.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(w.lastModified[a]=x),(x=C.getResponseHeader("etag"))&&(w.etag[a]=x)),204===t||"HEAD"===h.type?k="nocontent":304===t?k="notmodified":(k=b.state,p=b.data,c=!(f=b.error))):(f=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(n||k)+"",c?v.resolveWith(m,[p,k,C]):v.rejectWith(m,[C,k,f]),C.statusCode(_),_=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[C,h,c?p:f]),y.fireWith(m,[C,k]),d&&(g.trigger("ajaxComplete",[C,h]),--w.active||w.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,n,i,r){return m(n)&&(r=r||i,i=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:r,data:n,success:i},w.isPlainObject(e)&&e))}})),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},zt=w.ajaxSettings.xhr();h.cors=!!zt&&"withCredentials"in zt,h.ajax=zt=!!zt,w.ajaxTransport((function(t){var n,i;if(h.cors||zt&&!t.crossDomain)return{send:function(r,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(o,r[o]);n=function(e){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Rt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&i()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(r,a){t=w("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Wt,$t=[],qt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||w.expando+"_"+wt++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(t,n,i){var r,a,o,s=!1!==t.jsonp&&(qt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&qt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(qt,"$1"+r):!1!==t.jsonp&&(t.url+=(bt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||w.error(r+" was not called"),o[0]},t.dataTypes[0]="json",a=e[r],e[r]=function(){o=arguments},i.always((function(){void 0===a?w(e).removeProp(r):e[r]=a,t[r]&&(t.jsonpCallback=n.jsonpCallback,$t.push(r)),o&&m(a)&&a(o[0]),o=a=void 0})),"script"})),h.createHTMLDocument=((Wt=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((r=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(r)):t=i),o=!n&&[],(a=E.exec(e))?[t.createElement(a[1])]:(a=ye([e],t,o),o&&o.length&&w(o).remove(),w.merge([],a.childNodes)));var r,a,o},w.fn.load=function(e,t,n){var i,r,a,o=this,s=e.indexOf(" ");return s>-1&&(i=ft(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&w.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var i,r,a,o,s,l,c=w.css(e,"position"),u=w(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=w.css(e,"top"),l=w.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),m(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),r.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-w.css(i,"marginTop",!0),left:t.left-r.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||_e}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return W(this,(function(e,i,r){var a;if(g(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===r)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:r,n?r:a.pageYOffset):e[i]=r}),e,i,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=We(h.pixelPosition,(function(e,n){if(n)return n=ze(e,t),He.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){w.fn[i]=function(r,a){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===a?"margin":"border");return W(this,(function(t,n,r){var a;return g(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===r?w.css(t,n,s):w.style(t,n,r,s)}),t,o?r:void 0,o)}}))})),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),w.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return i=a.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||w.guid++,r},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=T,w.isFunction=m,w.isWindow=g,w.camelCase=U,w.type=_,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Yt=e.jQuery,Ut=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Ut),t&&e.jQuery===w&&(e.jQuery=Yt),w},t||(e.jQuery=e.$=w),w})),function(e,t){"use strict";var n=e.jQuery||e.Zepto,i=0,r=!1;function a(i,a,o,s,l){var c=0,u=-1,d=-1,p=!1,f="afterLoad",h="load",m="error",g="img",v="src",y="srcset",_="sizes",w="background-image";function b(){var t,r,c,f;p=e.devicePixelRatio>1,o=x(o),a.delay>=0&&setTimeout((function(){k(!0)}),a.delay),(a.delay<0||a.combined)&&(s.e=(t=a.throttle,r=function(e){"resize"===e.type&&(u=d=-1),k(e.all)},f=0,function(e,n){var o=+new Date-f;function s(){f=+new Date,r.call(i,e)}c&&clearTimeout(c),o>t||!a.enableThrottle||n?s():c=setTimeout(s,t-o)}),s.a=function(e){e=x(e),o.push.apply(o,e)},s.g=function(){return o=n(o).filter((function(){return!n(this).data(a.loadedName)}))},s.f=function(e){for(var t=0;t<e.length;t++){var n=o.filter((function(){return this===e[t]}));n.length&&k(!1,n)}},k(),n(a.appendScroll).on("scroll."+l+" resize."+l,s.e))}function x(e){for(var r=a.defaultImage,o=a.placeholder,s=a.imageBase,l=a.srcsetAttribute,c=a.loaderAttribute,u=a._f||{},d=0,p=(e=n(e).filter((function(){var e=n(this),i=I(this);return!e.data(a.handledName)&&(e.attr(a.attribute)||e.attr(l)||e.attr(c)||u[i]!==t)})).data("plugin_"+a.name,i)).length;d<p;d++){var f=n(e[d]),h=I(e[d]),m=f.attr(a.imageBaseAttribute)||s;h===g&&m&&f.attr(l)&&f.attr(l,T(f.attr(l),m)),u[h]===t||f.attr(c)||f.attr(c,u[h]),h===g&&r&&!f.attr(v)?f.attr(v,r):h===g||!o||f.css(w)&&"none"!==f.css(w)||f.css(w,"url('"+o+"')")}return e}function k(e,t){if(o.length){for(var r=t||o,s=!1,l=a.imageBase||"",c=a.srcsetAttribute,u=a.handledName,d=0;d<r.length;d++)if(e||t||D(r[d])){var p=n(r[d]),f=I(r[d]),h=p.attr(a.attribute),m=p.attr(a.imageBaseAttribute)||l,_=p.attr(a.loaderAttribute);p.data(u)||a.visibleOnly&&!p.is(":visible")||!((h||p.attr(c))&&(f===g&&(m+h!==p.attr(v)||p.attr(c)!==p.attr(y))||f!==g&&m+h!==p.css(w))||_)||(s=!0,p.data(u,!0),C(p,f,m,_))}s&&(o=n(o).filter((function(){return!n(this).data(u)})))}else a.autoDestroy&&i.destroy()}function C(e,t,i,r){++c;var o=function(){A("onError",e),E(),o=n.noop};A("beforeLoad",e);var s=a.attribute,l=a.srcsetAttribute,u=a.sizesAttribute,d=a.retinaAttribute,b=a.removeAttribute,x=a.loadedName,k=e.attr(d);if(r){var C=function(){b&&e.removeAttr(a.loaderAttribute),e.data(x,!0),A(f,e),setTimeout(E,1),C=n.noop};e.off(m).one(m,o).one(h,C),A(r,e,(function(t){t?(e.off(h),C()):(e.off(m),o())}))||e.trigger(m)}else{var D=n(new Image);D.one(m,o).one(h,(function(){e.hide(),t===g?e.attr(_,D.attr(_)).attr(y,D.attr(y)).attr(v,D.attr(v)):e.css(w,"url('"+D.attr(v)+"')"),e[a.effect](a.effectTime),b&&(e.removeAttr(s+" "+l+" "+d+" "+a.imageBaseAttribute),u!==_&&e.removeAttr(u)),e.data(x,!0),A(f,e),D.remove(),E()}));var I=(p&&k?k:e.attr(s))||"";D.attr(_,e.attr(u)).attr(y,e.attr(l)).attr(v,I?i+I:null),D.complete&&D.trigger(h)}}function D(t){var i=t.getBoundingClientRect(),r=a.scrollDirection,o=a.threshold,s=(d>=0?d:d=n(e).height())+o>i.top&&-o<i.bottom,l=(u>=0?u:u=n(e).width())+o>i.left&&-o<i.right;return"vertical"===r?s:"horizontal"===r?l:s&&l}function I(e){return e.tagName.toLowerCase()}function T(e,t){if(t){var n=e.split(",");e="";for(var i=0,r=n.length;i<r;i++)e+=t+n[i].trim()+(i!==r-1?",":"")}return e}function E(){--c,o.length||c||A("onFinishedAll")}function A(e,t,n){return!!(e=a[e])&&(e.apply(i,[].slice.call(arguments,1)),!0)}"event"===a.bind||r?b():n(e).on(h+"."+l,b)}function o(r,o){var s=this,l=n.extend({},s.config,o),c={},u=l.name+"-"+ ++i;return s.config=function(e,n){return n===t?l[e]:(l[e]=n,s)},s.addItems=function(e){return c.a&&c.a("string"===n.type(e)?n(e):e),s},s.getItems=function(){return c.g?c.g():{}},s.update=function(e){return c.e&&c.e({},!e),s},s.force=function(e){return c.f&&c.f("string"===n.type(e)?n(e):e),s},s.loadAll=function(){return c.e&&c.e({all:!0},!0),s},s.destroy=function(){return n(l.appendScroll).off("."+u,c.e),n(e).off("."+u),c={},t},a(s,l,r,c,u),l.chainable?r:s}n.fn.Lazy=n.fn.lazy=function(e){return new o(this,e)},n.Lazy=n.lazy=function(e,i,r){if(n.isFunction(i)&&(r=i,i=[]),n.isFunction(r)){e=n.isArray(e)?e:[e],i=n.isArray(i)?i:[i];for(var a=o.prototype.config,s=a._f||(a._f={}),l=0,c=e.length;l<c;l++)(a[e[l]]===t||n.isFunction(a[e[l]]))&&(a[e[l]]=r);for(var u=0,d=i.length;u<d;u++)s[i[u]]=e[0]}},o.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:e,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:t,afterLoad:t,onError:t,onFinishedAll:t},n(e).on("load",(function(){r=!0}))}(window),function(e){e.lazy(["frame","iframe"],"iframe",(function(t,n){var i=this;if("iframe"===t[0].tagName.toLowerCase()){var r=t.attr("data-error-detect");"true"!==r&&"1"!==r?(t.attr("src",t.attr("data-src")),i.config("removeAttribute")&&t.removeAttr("data-src data-error-detect")):e.ajax({url:t.attr("data-src"),dataType:"html",crossDomain:!0,xhrFields:{withCredentials:!0},success:function(e){t.html(e).attr("src",t.attr("data-src")),i.config("removeAttribute")&&t.removeAttr("data-src data-error-detect")},error:function(){n(!1)}})}else n(!1)}))}(window.jQuery||window.Zepto),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}((function(e){"use strict";var t,n,i={interval:100,sensitivity:6,timeout:0},r=0,a=function(e){t=e.pageX,n=e.pageY},o=function(e,i,r,s){if(Math.sqrt((r.pX-t)*(r.pX-t)+(r.pY-n)*(r.pY-n))<s.sensitivity)return i.off(r.event,a),delete r.timeoutId,r.isActive=!0,e.pageX=t,e.pageY=n,delete r.pX,delete r.pY,s.over.apply(i[0],[e]);r.pX=t,r.pY=n,r.timeoutId=setTimeout((function(){o(e,i,r,s)}),s.interval)};e.fn.hoverIntent=function(t,n,s){var l=r++,c=e.extend({},i);e.isPlainObject(t)?(c=e.extend(c,t),e.isFunction(c.out)||(c.out=c.over)):c=e.isFunction(n)?e.extend(c,{over:t,out:n,selector:s}):e.extend(c,{over:t,out:t,selector:n});var u=function(t){var n=e.extend({},t),i=e(this),r=i.data("hoverIntent");r||i.data("hoverIntent",r={});var s=r[l];s||(r[l]=s={id:l}),s.timeoutId&&(s.timeoutId=clearTimeout(s.timeoutId));var u=s.event="mousemove.hoverIntent.hoverIntent"+l;if("mouseenter"===t.type){if(s.isActive)return;s.pX=n.pageX,s.pY=n.pageY,i.off(u,a).on(u,a),s.timeoutId=setTimeout((function(){o(n,i,s,c)}),c.interval)}else{if(!s.isActive)return;i.off(u,a),s.timeoutId=setTimeout((function(){!function(e,t,n,i){var r=t.data("hoverIntent");r&&delete r[n.id],i.apply(t[0],[e])}(n,i,s,c.out)}),c.timeout)}};return this.on({"mouseenter.hoverIntent":u,"mouseleave.hoverIntent":u},c.selector)}})),
/*!
  * Bootstrap util.js v4.3.1 (https://getbootstrap.com/)
  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self).Util=t(e.jQuery)}(this,(function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t="transitionend";function n(t){var n=this,r=!1;return e(this).one(i.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||i.triggerTransitionEnd(n)}),t),this}var i={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration"),i=e(t).css("transition-delay"),r=parseFloat(n),a=parseFloat(i);return r||a?(n=n.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(n)+parseFloat(i))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(n){e(n).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var a=n[r],o=t[r],s=o&&i.isElement(o)?"element":(l=o,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(a).test(s))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+a+'".')}var l},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?i.findShadowRoot(e.parentNode):null}};return e.fn.emulateTransitionEnd=n,e.event.special[i.TRANSITION_END]={bindType:t,delegateType:t,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},i})),
/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.15.0
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,(function(){"use strict";for(var e="undefined"!=typeof window&&"undefined"!=typeof document,t=["Edge","Trident","Firefox"],n=0,i=0;i<t.length;i+=1)if(e&&navigator.userAgent.indexOf(t[i])>=0){n=1;break}var r=e&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),n))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:l(s(e))}var c=e&&!(!window.MSInputMethodContext||!document.documentMode),u=e&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?c:10===e?u:c||u}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===o(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function h(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(r,0);var o,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&p(o.firstElementChild)!==o?p(l):l;var c=f(e);return c.host?h(c.host,t):h(e,f(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function g(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function v(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,i=d(10)&&getComputedStyle(n);return{height:v("Height",t,n,i),width:v("Width",t,n,i)}}var _=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),b=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function k(e){return x({},e,{right:e.left+e.width,bottom:e.top+e.height})}function C(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=m(e,"top"),i=m(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?y(e.ownerDocument):{},s=a.width||e.clientWidth||r.right-r.left,l=a.height||e.clientHeight||r.bottom-r.top,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var p=o(e);c-=g(p,"x"),u-=g(p,"y"),r.width-=c,r.height-=u}return k(r)}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=d(10),r="HTML"===t.nodeName,a=C(e),s=C(t),c=l(e),u=o(t),p=parseFloat(u.borderTopWidth,10),f=parseFloat(u.borderLeftWidth,10);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=k({top:a.top-s.top-p,left:a.left-s.left-f,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var g=parseFloat(u.marginTop,10),v=parseFloat(u.marginLeft,10);h.top-=p-g,h.bottom-=p-g,h.left-=f-v,h.right-=f-v,h.marginTop=g,h.marginLeft=v}return(i&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=m(t,"top"),r=m(t,"left"),a=n?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=r*a,e.right+=r*a,e}(h,t)),h}function I(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function T(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},c=r?I(e):h(e,t);if("viewport"===i)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=D(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:m(n),s=t?0:m(n,"left");return k({top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:a})}(c,r);else{var u=void 0;"scrollParent"===i?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===i?e.ownerDocument.documentElement:i;var d=D(u,c,r);if("HTML"!==u.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===o(t,"position"))return!0;var i=s(t);return!!i&&e(i)}(c))a=d;else{var p=y(e.ownerDocument),f=p.height,g=p.width;a.top+=d.top-d.marginTop,a.bottom=f+d.top,a.left+=d.left-d.marginLeft,a.right=g+d.left}}var v="number"==typeof(n=n||0);return a.left+=v?n:n.left||0,a.top+=v?n:n.top||0,a.right-=v?n:n.right||0,a.bottom-=v?n:n.bottom||0,a}function E(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=T(n,i,a,r),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return x({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function A(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return D(n,i?I(t):h(t,n),i)}function S(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function M(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function O(e,t,n){n=n.split("-")[0];var i=S(e),r={width:i.width,height:i.height},a=-1!==["right","left"].indexOf(n),o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return r[o]=t[o]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[c]:t[M(s)],r}function P(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=P(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function j(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=O(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=N(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function L(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function F(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],a=r?""+r+n:e;if(void 0!==document.body.style[a])return a}return null}function H(){return this.state.isDestroyed=!0,L(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[F("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(e){var t=e.ownerDocument;return t?t.defaultView:window}function R(e,t,n,i){n.updateBound=i,B(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,i,r){var a="BODY"===t.nodeName,o=a?t.ownerDocument.defaultView:t;o.addEventListener(n,i,{passive:!0}),a||e(l(o.parentNode),n,i,r),r.push(o)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function z(){this.state.eventsEnabled||(this.state=R(this.reference,this.options,this.state,this.scheduleUpdate))}function W(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,B(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function $(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function q(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var Y=e&&/Firefox/i.test(navigator.userAgent);function U(e,t,n){var i=P(e,(function(e){return e.name===t})),r=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!r){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return r}var K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],V=K.slice(3);function G(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=V.indexOf(e),i=V.slice(n+1).concat(V.slice(0,n));return t?i.reverse():i}var Z={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function X(e,t,n,i){var r=[0,0],a=-1!==["right","left"].indexOf(i),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(P(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return(c=c.map((function(e,i){var r=(1===i?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+r[1],o=r[2];if(!a)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=i}return k(s)[t]/100*a}if("vh"===o||"vw"===o){return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a}return a}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,i){$(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var Q={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,a=r.reference,o=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:b({},l,a[l]),end:b({},l,a[l]+a[c]-o[c])};e.offsets.popper=x({},o,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,a=r.popper,o=r.reference,s=i.split("-")[0],l=void 0;return l=$(+n)?[+n,0]:X(n,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var i=F("transform"),r=e.instance.popper.style,a=r.top,o=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=T(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=a,r.left=o,r[i]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),b({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),b({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=x({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(r),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<a(i[l])&&(e.offsets.popper[l]=a(i[l])-n[c]),n[l]>a(i[s])&&(e.offsets.popper[l]=a(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!U(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],a=e.offsets,s=a.popper,l=a.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",m=S(i)[u];l[h]-m<s[p]&&(e.offsets.popper[p]-=s[p]-(l[h]-m)),l[p]+m>s[h]&&(e.offsets.popper[p]+=l[p]+m-s[h]),e.offsets.popper=k(e.offsets.popper);var g=l[p]+l[u]/2-m/2,v=o(e.instance.popper),y=parseFloat(v["margin"+d],10),_=parseFloat(v["border"+d+"Width"],10),w=g-e.offsets.popper[p]-y-_;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=i,e.offsets.arrow=(b(n={},p,Math.round(w)),b(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(L(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=T(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=M(i),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Z.FLIP:o=[i,r];break;case Z.CLOCKWISE:o=G(i);break;case Z.COUNTERCLOCKWISE:o=G(i,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(i!==s||o.length===l+1)return e;i=e.placement.split("-")[0],r=M(i);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===i&&f||"right"===i&&h||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),_=!!t.flipVariations&&(y&&"start"===a&&f||y&&"end"===a&&h||!y&&"start"===a&&m||!y&&"end"===a&&g),w=!!t.flipVariationsByContent&&(y&&"start"===a&&h||y&&"end"===a&&f||!y&&"start"===a&&g||!y&&"end"===a&&m),b=_||w;(p||v||b)&&(e.flipped=!0,(p||v)&&(i=o[l+1]),b&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=i+(a?"-"+a:""),e.offsets.popper=x({},e.offsets.popper,O(e.instance.popper,e.offsets.reference,e.placement)),e=N(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,a=i.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=a[n]-(s?r[o?"width":"height"]:0),e.placement=M(t),e.offsets.popper=k(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!U(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=P(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,a=P(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==a?a:t.gpuAcceleration,s=p(e.instance.popper),l=C(s),c={position:r.position},u=function(e,t){var n=e.offsets,i=n.popper,r=n.reference,a=Math.round,o=Math.floor,s=function(e){return e},l=a(r.width),c=a(i.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?a:o:s,f=t?a:s;return{left:p(l%2==1&&c%2==1&&!d&&t?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:p(i.right)}}(e,window.devicePixelRatio<2||!Y),d="bottom"===n?"top":"bottom",f="right"===i?"left":"right",h=F("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===d?-1:1,y="right"===f?-1:1;c[d]=g*v,c[f]=m*y,c.willChange=d+", "+f}var _={"x-placement":e.placement};return e.attributes=x({},_,e.attributes),e.styles=x({},c,e.styles),e.arrowStyles=x({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return q(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&q(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var a=A(r,t,e,n.positionFixed),o=E(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),q(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},J=function(){function e(t,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=x({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(x({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){i.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return x({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(e,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),e}();return J.Utils=("undefined"!=typeof window?window:global).PopperUtils,J.placements=K,J.Defaults=Q,J})),
/*!
  * Bootstrap dropdown.js v4.3.1 (https://getbootstrap.com/)
  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("popper.js"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","popper.js","./util.js"],t):(e=e||self).Dropdown=t(e.jQuery,e.Popper,e.Util)}(this,(function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var o="dropdown",s="bs.dropdown",l="."+s,c=e.fn[o],u=new RegExp("38|40|27"),d={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,CLICK:"click"+l,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},p="disabled",f="show",h="dropup",m="dropright",g="dropleft",v="dropdown-menu-right",y="position-static",_='[data-toggle="dropdown"]',w=".dropdown form",b=".dropdown-menu",x=".navbar-nav",k=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",C="top-start",D="top-end",I="bottom-start",T="bottom-end",E="right-start",A="left-start",S={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},M={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},O=function(){function r(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var c,w,O,P=r.prototype;return P.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(p)){var i=r._getParentFromElement(this._element),a=e(this._menu).hasClass(f);if(r._clearMenus(),!a){var o={relatedTarget:this._element},s=e.Event(d.SHOW,o);if(e(i).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var l=this._element;"parent"===this._config.reference?l=i:n.isElement(this._config.reference)&&(l=this._config.reference,void 0!==this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(i).addClass(y),this._popper=new t(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(i).closest(x).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(f),e(i).toggleClass(f).trigger(e.Event(d.SHOWN,o))}}}},P.show=function(){if(!(this._element.disabled||e(this._element).hasClass(p)||e(this._menu).hasClass(f))){var t={relatedTarget:this._element},n=e.Event(d.SHOW,t),i=r._getParentFromElement(this._element);e(i).trigger(n),n.isDefaultPrevented()||(e(this._menu).toggleClass(f),e(i).toggleClass(f).trigger(e.Event(d.SHOWN,t)))}},P.hide=function(){if(!this._element.disabled&&!e(this._element).hasClass(p)&&e(this._menu).hasClass(f)){var t={relatedTarget:this._element},n=e.Event(d.HIDE,t),i=r._getParentFromElement(this._element);e(i).trigger(n),n.isDefaultPrevented()||(e(this._menu).toggleClass(f),e(i).toggleClass(f).trigger(e.Event(d.HIDDEN,t)))}},P.dispose=function(){e.removeData(this._element,s),e(this._element).off(l),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},P.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},P._addEventListeners=function(){var t=this;e(this._element).on(d.CLICK,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},P._getConfig=function(t){return t=a({},this.constructor.Default,e(this._element).data(),t),n.typeCheckConfig(o,t,this.constructor.DefaultType),t},P._getMenuElement=function(){if(!this._menu){var e=r._getParentFromElement(this._element);e&&(this._menu=e.querySelector(b))}return this._menu},P._getPlacement=function(){var t=e(this._element.parentNode),n=I;return t.hasClass(h)?(n=C,e(this._menu).hasClass(v)&&(n=D)):t.hasClass(m)?n=E:t.hasClass(g)?n=A:e(this._menu).hasClass(v)&&(n=T),n},P._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},P._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=a({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},P._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),e},r._jQueryInterface=function(t){return this.each((function(){var n=e(this).data(s);if(n||(n=new r(this,"object"==typeof t?t:null),e(this).data(s,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},r._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll(_)),i=0,a=n.length;i<a;i++){var o=r._getParentFromElement(n[i]),l=e(n[i]).data(s),c={relatedTarget:n[i]};if(t&&"click"===t.type&&(c.clickEvent=t),l){var u=l._menu;if(e(o).hasClass(f)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(o,t.target))){var p=e.Event(d.HIDE,c);e(o).trigger(p),p.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),n[i].setAttribute("aria-expanded","false"),e(u).removeClass(f),e(o).removeClass(f).trigger(e.Event(d.HIDDEN,c)))}}}},r._getParentFromElement=function(e){var t,i=n.getSelectorFromElement(e);return i&&(t=document.querySelector(i)),t||e.parentNode},r._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(b).length)):u.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!e(this).hasClass(p))){var n=r._getParentFromElement(this),i=e(n).hasClass(f);if(i&&(!i||27!==t.which&&32!==t.which)){var a=[].slice.call(n.querySelectorAll(k));if(0!==a.length){var o=a.indexOf(t.target);38===t.which&&o>0&&o--,40===t.which&&o<a.length-1&&o++,o<0&&(o=0),a[o].focus()}}else{if(27===t.which){var s=n.querySelector(_);e(s).trigger("focus")}e(this).trigger("click")}}},c=r,O=[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return S}},{key:"DefaultType",get:function(){return M}}],(w=null)&&i(c.prototype,w),O&&i(c,O),r}();return e(document).on(d.KEYDOWN_DATA_API,_,O._dataApiKeydownHandler).on(d.KEYDOWN_DATA_API,b,O._dataApiKeydownHandler).on(d.CLICK_DATA_API+" "+d.KEYUP_DATA_API,O._clearMenus).on(d.CLICK_DATA_API,_,(function(t){t.preventDefault(),t.stopPropagation(),O._jQueryInterface.call(e(this),"toggle")})).on(d.CLICK_DATA_API,w,(function(e){e.stopPropagation()})),e.fn[o]=O._jQueryInterface,e.fn[o].Constructor=O,e.fn[o].noConflict=function(){return e.fn[o]=c,O._jQueryInterface},O})),
/*!
  * Bootstrap collapse.js v4.3.1 (https://getbootstrap.com/)
  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Collapse=t(e.jQuery,e.Util)}(this,(function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var a="collapse",o="bs.collapse",s=e.fn[a],l={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},u={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},d="show",p="collapse",f="collapsing",h="collapsed",m="width",g="height",v={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},y=function(){function i(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(v.DATA_TOGGLE)),r=0,a=i.length;r<a;r++){var o=i[r],s=t.getSelectorFromElement(o),l=[].slice.call(document.querySelectorAll(s)).filter((function(t){return t===e}));null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s,y,_,w=i.prototype;return w.toggle=function(){e(this._element).hasClass(d)?this.hide():this.show()},w.show=function(){var n,r,a=this;if(!this._isTransitioning&&!e(this._element).hasClass(d)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(v.ACTIVES)).filter((function(e){return"string"==typeof a._config.parent?e.getAttribute("data-parent")===a._config.parent:e.classList.contains(p)}))).length&&(n=null),!(n&&(r=e(n).not(this._selector).data(o))&&r._isTransitioning))){var s=e.Event(u.SHOW);if(e(this._element).trigger(s),!s.isDefaultPrevented()){n&&(i._jQueryInterface.call(e(n).not(this._selector),"hide"),r||e(n).data(o,null));var l=this._getDimension();e(this._element).removeClass(p).addClass(f),this._element.style[l]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(h).attr("aria-expanded",!0),this.setTransitioning(!0);var c="scroll"+(l[0].toUpperCase()+l.slice(1)),m=t.getTransitionDurationFromElement(this._element);e(this._element).one(t.TRANSITION_END,(function(){e(a._element).removeClass(f).addClass(p).addClass(d),a._element.style[l]="",a.setTransitioning(!1),e(a._element).trigger(u.SHOWN)})).emulateTransitionEnd(m),this._element.style[l]=this._element[c]+"px"}}},w.hide=function(){var n=this;if(!this._isTransitioning&&e(this._element).hasClass(d)){var i=e.Event(u.HIDE);if(e(this._element).trigger(i),!i.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",t.reflow(this._element),e(this._element).addClass(f).removeClass(p).removeClass(d);var a=this._triggerArray.length;if(a>0)for(var o=0;o<a;o++){var s=this._triggerArray[o],l=t.getSelectorFromElement(s);if(null!==l)e([].slice.call(document.querySelectorAll(l))).hasClass(d)||e(s).addClass(h).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[r]="";var c=t.getTransitionDurationFromElement(this._element);e(this._element).one(t.TRANSITION_END,(function(){n.setTransitioning(!1),e(n._element).removeClass(f).addClass(p).trigger(u.HIDDEN)})).emulateTransitionEnd(c)}}},w.setTransitioning=function(e){this._isTransitioning=e},w.dispose=function(){e.removeData(this._element,o),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},w._getConfig=function(e){return(e=r({},l,e)).toggle=Boolean(e.toggle),t.typeCheckConfig(a,e,c),e},w._getDimension=function(){return e(this._element).hasClass(m)?m:g},w._getParent=function(){var n,r=this;t.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var a='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(a));return e(o).each((function(e,t){r._addAriaAndCollapsedClass(i._getTargetFromElement(t),[t])})),n},w._addAriaAndCollapsedClass=function(t,n){var i=e(t).hasClass(d);n.length&&e(n).toggleClass(h,!i).attr("aria-expanded",i)},i._getTargetFromElement=function(e){var n=t.getSelectorFromElement(e);return n?document.querySelector(n):null},i._jQueryInterface=function(t){return this.each((function(){var n=e(this),a=n.data(o),s=r({},l,n.data(),"object"==typeof t&&t?t:{});if(!a&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),a||(a=new i(this,s),n.data(o,a)),"string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}}))},s=i,_=[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return l}}],(y=null)&&n(s.prototype,y),_&&n(s,_),i}();return e(document).on(u.CLICK_DATA_API,v.DATA_TOGGLE,(function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var i=e(this),r=t.getSelectorFromElement(this),a=[].slice.call(document.querySelectorAll(r));e(a).each((function(){var t=e(this),n=t.data(o)?"toggle":i.data();y._jQueryInterface.call(t,n)}))})),e.fn[a]=y._jQueryInterface,e.fn[a].Constructor=y,e.fn[a].noConflict=function(){return e.fn[a]=s,y._jQueryInterface},y})),
/*! jQuery UI - v1.11.4 - 2015-06-18
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, datepicker.js, slider.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){function t(t,i){var r,a,o,s=t.nodeName.toLowerCase();return"area"===s?(a=(r=t.parentNode).name,!(!t.href||!a||"map"!==r.nodeName.toLowerCase())&&(!!(o=e("img[usemap='#"+a+"']")[0])&&n(o))):(/^(input|select|textarea|button|object)$/.test(s)?!t.disabled:"a"===s&&t.href||i)&&n(t)}function n(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter((function(){return"hidden"===e.css(this,"visibility")})).length}function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=r(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(n,"mouseout",(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).delegate(n,"mouseover",a)}function a(){e.datepicker._isDisabledDatepicker(c.inline?c.dpDiv.parent()[0]:c.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function o(t,n){for(var i in e.extend(t,n),n)null==n[i]&&(t[i]=n[i]);return t}e.ui=e.ui||{},e.extend(e.ui,{version:"1.11.4",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}}),e.fn.extend({scrollParent:function(t){var n=this.css("position"),i="absolute"===n,r=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter((function(){var t=e(this);return(!i||"static"!==t.css("position"))&&r.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==n&&a.length?a:e(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}}(),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(n){return!!e.data(n,t)}})):function(t,n,i){return!!e.data(t,i[3])},focusable:function(n){return t(n,!isNaN(e.attr(n,"tabindex")))},tabbable:function(n){var i=e.attr(n,"tabindex"),r=isNaN(i);return(r||i>=0)&&t(n,!r)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],(function(t,n){function i(t,n,i,a){return e.each(r,(function(){n-=parseFloat(e.css(t,"padding"+this))||0,i&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(n-=parseFloat(e.css(t,"margin"+this))||0)})),n}var r="Width"===n?["Left","Right"]:["Top","Bottom"],a=n.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+n]=function(t){return void 0===t?o["inner"+n].call(this):this.each((function(){e(this).css(a,i(this,t)+"px")}))},e.fn["outer"+n]=function(t,r){return"number"!=typeof t?o["outer"+n].call(this,t):this.each((function(){e(this).css(a,i(this,t,!0,r)+"px")}))}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(n){return arguments.length?t.call(this,e.camelCase(n)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.fn.extend({focus:function(t){return function(n,i){return"number"==typeof n?this.each((function(){var t=this;setTimeout((function(){e(t).focus(),i&&i.call(t)}),n)})):t.apply(this,arguments)}}(e.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",(function(e){e.preventDefault()}))}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var n,i,r=e(this[0]);r.length&&r[0]!==document;){if(("absolute"===(n=r.css("position"))||"relative"===n||"fixed"===n)&&(i=parseInt(r.css("zIndex"),10),!isNaN(i)&&0!==i))return i;r=r.parent()}return 0}}),e.ui.plugin={add:function(t,n,i){var r,a=e.ui[t].prototype;for(r in i)a.plugins[r]=a.plugins[r]||[],a.plugins[r].push([n,i[r]])},call:function(e,t,n,i){var r,a=e.plugins[t];if(a&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;a.length>r;r++)e.options[a[r][0]]&&a[r][1].apply(e.element,n)}};var s=0,l=Array.prototype.slice;e.cleanData=function(t){return function(n){var i,r,a;for(a=0;null!=(r=n[a]);a++)try{(i=e._data(r,"events"))&&i.remove&&e(r).triggerHandler("remove")}catch(e){}t(n)}}(e.cleanData),e.widget=function(t,n,i){var r,a,o,s,l={},c=t.split(".")[0];return t=t.split(".")[1],r=c+"-"+t,i||(i=n,n=e.Widget),e.expr[":"][r.toLowerCase()]=function(t){return!!e.data(t,r)},e[c]=e[c]||{},a=e[c][t],o=e[c][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new o(e,t)},e.extend(o,a,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,(function(t,i){return e.isFunction(i)?void(l[t]=function(){var e=function(){return n.prototype[t].apply(this,arguments)},r=function(e){return n.prototype[t].apply(this,e)};return function(){var t,n=this._super,a=this._superApply;return this._super=e,this._superApply=r,t=i.apply(this,arguments),this._super=n,this._superApply=a,t}}()):void(l[t]=i)})),o.prototype=e.widget.extend(s,{widgetEventPrefix:a&&s.widgetEventPrefix||t},l,{constructor:o,namespace:c,widgetName:t,widgetFullName:r}),a?(e.each(a._childConstructors,(function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,o,n._proto)})),delete a._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,i,r=l.call(arguments,1),a=0,o=r.length;o>a;a++)for(n in r[a])i=r[a][n],r[a].hasOwnProperty(n)&&void 0!==i&&(t[n]=e.isPlainObject(i)?e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(r){var a="string"==typeof r,o=l.call(arguments,1),s=this;return a?this.each((function(){var n,a=e.data(this,i);return"instance"===r?(s=a,!1):a?e.isFunction(a[r])&&"_"!==r.charAt(0)?(n=a[r].apply(a,o))!==a&&void 0!==n?(s=n&&n.jquery?s.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+r+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")})):(o.length&&(r=e.widget.extend.apply(null,[r].concat(o))),this.each((function(){var t=e.data(this,i);t?(t.option(r||{}),t._init&&t._init()):e.data(this,i,new n(r,this))}))),s}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,a,o=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(o={},i=t.split("."),t=i.shift(),i.length){for(r=o[t]=e.widget.extend({},this.options[t]),a=0;i.length-1>a;a++)r[i[a]]=r[i[a]]||{},r=r[i[a]];if(t=i.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=n}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,n,i){var r,a=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=r=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),e.each(i,(function(i,o){function s(){return t||!0!==a.options.disabled&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(s.guid=o.guid=o.guid||s.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?r.delegate(u,c,s):n.bind(c,s)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(n).undelegate(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,n,i){var r,a,o=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],a=n.originalEvent)for(r in a)r in n||(n[r]=a[r]);return this.element.trigger(n,i),!(e.isFunction(o)&&!1===o.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(i,r,a){"string"==typeof r&&(r={effect:r});var o,s=r?!0===r||"number"==typeof r?n:r.effect||n:t;"number"==typeof(r=r||{})&&(r={duration:r}),o=!e.isEmptyObject(r),r.complete=a,r.delay&&i.delay(r.delay),o&&e.effects&&e.effects.effect[s]?i[t](r):s!==t&&i[s]?i[s](r.duration,r.easing,a):i.queue((function(n){e(this)[t](),a&&a.call(i[0]),n()}))}})),e.widget;var c,u=!1;e(document).mouseup((function(){u=!1})),e.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).bind("click."+this.widgetName,(function(n){return!0===e.data(n.target,t.widgetName+".preventClickEvent")?(e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!u){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,r=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!r&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),u=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button)return this._mouseUp(t);if(!t.which)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),u=!1,!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.extend(e.ui,{datepicker:{version:"1.11.4"}}),e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return o(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,r,a;r="div"===(i=t.nodeName.toLowerCase())||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),r)).settings=e.extend({},n||{}),"input"===i?this._connectDatepicker(t,a):r&&this._inlineDatepicker(t,a)},_newInst:function(t,n){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:n,dpDiv:n?r(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,r,a,o=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),o&&(n.append=e("<span class='"+this._appendClass+"'>"+o+"</span>"),t[s?"before":"after"](n.append)),t.unbind("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),("focus"===(i=this._get(n,"showOn"))||"both"===i)&&t.focus(this._showDatepicker),("button"===i||"both"===i)&&(r=this._get(n,"buttonText"),a=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:a,alt:r,title:r}):e("<button type='button'></button>").addClass(this._triggerClass).html(a?e("<img/>").attr({src:a,alt:r,title:r}):r)),t[s?"before":"after"](n.trigger),n.trigger.click((function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,i,r,a=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){for(n=0,i=0,r=0;e.length>r;r++)e[r].length>n&&(n=e[r].length,i=r);return i},a.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,r,a){var s,l,c,u,d,p=this._dialogInst;return p||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",p)),o(p.settings,r||{}),n=n&&n.constructor===Date?this._formatDate(p,n):n,this._dialogInput.val(n),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(t){var n,i=e(t),r=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===n||"span"===n)&&i.removeClass(this.markerClassName).empty(),c===r&&(c=null))},_enableDatepicker:function(t){var n,i,r=e(t),a=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===n||"span"===n)&&((i=r.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var n,i,r=e(t),a=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===n||"span"===n)&&((i=r.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,i){var r,a,s,l,c=this._getInst(t);return 2===arguments.length&&"string"==typeof n?"defaults"===n?e.extend({},e.datepicker._defaults):c?"all"===n?e.extend({},c.settings):this._get(c,n):null:(r=n||{},"string"==typeof n&&((r={})[n]=i),void(c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),o(c.settings,r),null!==s&&void 0!==r.dateFormat&&void 0===r.minDate&&(c.settings.minDate=this._formatDate(c,s)),null!==l&&void 0!==r.dateFormat&&void 0===r.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,i,r,a=e.datepicker._getInst(t.target),o=!0,s=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),o=!1;break;case 13:return(r=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,r[0]),(n=e.datepicker._get(a,"onSelect"))?(i=e.datepicker._formatDate(a),n.apply(a.input?a.input[0]:null,[i,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,i,r=e.datepicker._getInst(t.target);return e.datepicker._get(r,"constrainInput")?(n=e.datepicker._possibleChars(e.datepicker._get(r,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">i||!n||n.indexOf(i)>-1):void 0},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(t){var n,i,r,a,s,l,c;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(r=(i=e.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(o(n.settings,r),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),a=!1,e(t).parents().each((function(){return!(a|="fixed"===e(this).css("position"))})),s={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),s=e.datepicker._checkOffset(n,s,a),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":a?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),n.inline||(l=e.datepicker._get(n,"showAnim"),c=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?n.dpDiv.show(l,e.datepicker._get(n,"showOptions"),c):n.dpDiv[l||"show"](l?c:null),e.datepicker._shouldFocusInput(n)&&n.input.focus(),e.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,c=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,i=this._getNumberOfMonths(t),r=i[1],o=t.dpDiv.find("."+this._dayOverClass+" a");o.length>0&&a.apply(o.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&t.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.focus(),t.yearshtml&&(n=t.yearshtml,setTimeout((function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),n=t.yearshtml=null}),0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,i){var r=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?r-o:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+s?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+r>l&&l>r?Math.abs(n.left+r-l):0),n.top-=Math.min(n.top,n.top+a>c&&c>a?Math.abs(a+s):0),n},_findPos:function(t){for(var n,i=this._getInst(t),r=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[r?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,i,r,a,o=this._curInst;!o||t&&o!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(o,"showAnim"),i=this._get(o,"duration"),r=function(){e.datepicker._tidyDialog(o)},e.effects&&(e.effects.effect[n]||e.effects[n])?o.dpDiv.hide(n,e.datepicker._get(o,"showOptions"),i,r):o.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,r),n||r(),this._datepickerShowing=!1,(a=this._get(o,"onClose"))&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),i=e.datepicker._getInst(n[0]);(n[0].id!==e.datepicker._mainDivId&&0===n.parents("#"+e.datepicker._mainDivId).length&&!n.hasClass(e.datepicker.markerClassName)&&!n.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||n.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==i)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,i){var r=e(t),a=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(a,n+("M"===i?this._get(a,"showCurrentAtPos"):0),i),this._updateDatepicker(a))},_gotoToday:function(t){var n,i=e(t),r=this._getInst(i[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(n=new Date,r.selectedDay=n.getDate(),r.drawMonth=r.selectedMonth=n.getMonth(),r.drawYear=r.selectedYear=n.getFullYear()),this._notifyChange(r),this._adjustDate(i)},_selectMonthYear:function(t,n,i){var r=e(t),a=this._getInst(r[0]);a["selected"+("M"===i?"Month":"Year")]=a["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(r)},_selectDay:function(t,n,i,r){var a,o=e(t);e(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((a=this._getInst(o[0])).selectedDay=a.currentDay=e("a",r).html(),a.selectedMonth=a.currentMonth=n,a.selectedYear=a.currentYear=i,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var i,r=e(t),a=this._getInst(r[0]);n=null!=n?n:this._formatDate(a),a.input&&a.input.val(n),this._updateAlternate(a),(i=this._get(a,"onSelect"))?i.apply(a.input?a.input[0]:null,[n,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var n,i,r,a=this._get(t,"altField");a&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),r=this.formatDate(n,i,this._getFormatConfig(t)),e(a).each((function(){e(this).val(r)})))},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?""+n:n+""))return null;var r,a,o,s,l=0,c=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,p=(i?i.dayNames:null)||this._defaults.dayNames,f=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,_=!1,w=function(e){var n=t.length>r+1&&t.charAt(r+1)===e;return n&&r++,n},b=function(e){var t=w(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,r=RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),a=n.substring(l).match(r);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},x=function(t,i,r){var a=-1,o=e.map(w(t)?r:i,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(o,(function(e,t){var i=t[1];return n.substr(l,i.length).toLowerCase()===i.toLowerCase()?(a=t[0],l+=i.length,!1):void 0})),-1!==a)return a+1;throw"Unknown name at position "+l},k=function(){if(n.charAt(l)!==t.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;t.length>r;r++)if(_)"'"!==t.charAt(r)||w("'")?k():_=!1;else switch(t.charAt(r)){case"d":v=b("d");break;case"D":x("D",d,p);break;case"o":y=b("o");break;case"m":g=b("m");break;case"M":g=x("M",f,h);break;case"y":m=b("y");break;case"@":m=(s=new Date(b("@"))).getFullYear(),g=s.getMonth()+1,v=s.getDate();break;case"!":m=(s=new Date((b("!")-this._ticksTo1970)/1e4)).getFullYear(),g=s.getMonth()+1,v=s.getDate();break;case"'":w("'")?k():_=!0;break;default:k()}if(n.length>l&&(o=n.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===m?m=(new Date).getFullYear():100>m&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=m?0:-100)),y>-1)for(g=1,v=y;!((a=this._getDaysInMonth(m,g-1))>=v);)g++,v-=a;if((s=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||s.getMonth()+1!==g||s.getDate()!==v)throw"Invalid date";return s},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"";var i,r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=function(t){var n=e.length>i+1&&e.charAt(i+1)===t;return n&&i++,n},c=function(e,t,n){var i=""+t;if(l(e))for(;n>i.length;)i="0"+i;return i},u=function(e,t,n,i){return l(e)?i[t]:n[t]},d="",p=!1;if(t)for(i=0;e.length>i;i++)if(p)"'"!==e.charAt(i)||l("'")?d+=e.charAt(i):p=!1;else switch(e.charAt(i)){case"d":d+=c("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),r,a);break;case"o":d+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),o,s);break;case"y":d+=l("y")?t.getFullYear():(10>t.getYear()%100?"0":"")+t.getYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":p=!0;break;default:d+=e.charAt(i)}return d},_possibleChars:function(e){var t,n="",i=!1,r=function(n){var i=e.length>t+1&&e.charAt(t+1)===n;return i&&t++,i};for(t=0;e.length>t;t++)if(i)"'"!==e.charAt(t)||r("'")?n+=e.charAt(t):i=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":r("'")?n+="'":i=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),a=r,o=this._getFormatConfig(e);try{a=this.parseDate(n,i,o)||r}catch(e){i=t?"":i}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=i?a.getDate():0,e.currentMonth=i?a.getMonth():0,e.currentYear=i?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,i){var r=null==n||""===n?i:"string"==typeof n?function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(e){}for(var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,r=i.getFullYear(),a=i.getMonth(),o=i.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(n);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(r,a));break;case"y":case"Y":r+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(r,a))}l=s.exec(n)}return new Date(r,a,o)}(n):"number"==typeof n?isNaN(n)?i:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(n):new Date(n.getTime());return(r=r&&"Invalid Date"==""+r?i:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,r=e.selectedMonth,a=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),r===e.selectedMonth&&a===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var t,n,i,r,a,o,s,l,c,u,d,p,f,h,m,g,v,y,_,w,b,x,k,C,D,I,T,E,A,S,M,O,P,N,j,L,F,H,B,R=new Date,z=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),W=this._get(e,"isRTL"),$=this._get(e,"showButtonPanel"),q=this._get(e,"hideIfNoPrevNext"),Y=this._get(e,"navigationAsDateFormat"),U=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),V=this._get(e,"stepMonths"),G=1!==U[0]||1!==U[1],Z=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),J=e.drawMonth-K,ee=e.drawYear;if(0>J&&(J+=12,ee--),Q)for(t=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-U[0]*U[1]+1,Q.getDate())),t=X&&X>t?X:t;this._daylightSavingAdjust(new Date(ee,J,1))>t;)0>--J&&(J=11,ee--);for(e.drawMonth=J,e.drawYear=ee,n=this._get(e,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,J-V,1)),this._getFormatConfig(e)):n,i=this._canAdjustMonth(e,-1,ee,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+n+"</span></a>",r=this._get(e,"nextText"),r=Y?this.formatDate(r,this._daylightSavingAdjust(new Date(ee,J+V,1)),this._getFormatConfig(e)):r,a=this._canAdjustMonth(e,1,ee,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+r+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+r+"</span></a>",o=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?Z:z,o=Y?this.formatDate(o,s,this._getFormatConfig(e)):o,l=e.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(e,"closeText")+"</button>",c=$?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(W?l:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(W?"":l)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),p=this._get(e,"dayNames"),f=this._get(e,"dayNamesMin"),h=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),_=this._getDefaultDate(e),w="",x=0;U[0]>x;x++){for(k="",this.maxRows=4,C=0;U[1]>C;C++){if(D=this._daylightSavingAdjust(new Date(ee,J,e.selectedDay)),I=" ui-corner-all",T="",G){if(T+="<div class='ui-datepicker-group",U[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",I=" ui-corner-"+(W?"right":"left");break;case U[1]-1:T+=" ui-datepicker-group-last",I=" ui-corner-"+(W?"left":"right");break;default:T+=" ui-datepicker-group-middle",I=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===x?W?a:i:"")+(/all|right/.test(I)&&0===x?W?i:a:"")+this._generateMonthYearHeader(e,J,ee,X,Q,x>0||C>0,h,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",E=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",b=0;7>b;b++)E+="<th scope='col'"+((b+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[A=(b+u)%7]+"'>"+f[A]+"</span></th>";for(T+=E+"</tr></thead><tbody>",S=this._getDaysInMonth(ee,J),ee===e.selectedYear&&J===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,S)),M=(this._getFirstDayOfMonth(ee,J)-u+7)%7,O=Math.ceil((M+S)/7),P=G&&this.maxRows>O?this.maxRows:O,this.maxRows=P,N=this._daylightSavingAdjust(new Date(ee,J,1-M)),j=0;P>j;j++){for(T+="<tr>",L=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(N)+"</td>":"",b=0;7>b;b++)F=g?g.apply(e.input?e.input[0]:null,[N]):[!0,""],B=(H=N.getMonth()!==J)&&!y||!F[0]||X&&X>N||Q&&N>Q,L+="<td class='"+((b+u+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(N.getTime()===D.getTime()&&J===e.selectedMonth&&e._keyEvent||_.getTime()===N.getTime()&&_.getTime()===D.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!v?"":" "+F[1]+(N.getTime()===Z.getTime()?" "+this._currentClass:"")+(N.getTime()===z.getTime()?" ui-datepicker-today":""))+"'"+(H&&!v||!F[2]?"":" title='"+F[2].replace(/'/g,"&#39;")+"'")+(B?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(H&&!v?"&#xa0;":B?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===z.getTime()?" ui-state-highlight":"")+(N.getTime()===Z.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);T+=L+"</tr>"}++J>11&&(J=0,ee++),k+=T+="</tbody></table>"+(G?"</div>"+(U[0]>0&&C===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}w+=k}return w+=c,e._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,n,i,r,a,o,s){var l,c,u,d,p,f,h,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",w="";if(a||!g)w+="<span class='ui-datepicker-month'>"+o[t]+"</span>";else{for(l=i&&i.getFullYear()===n,c=r&&r.getFullYear()===n,w+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;12>u;u++)(!l||u>=i.getMonth())&&(!c||r.getMonth()>=u)&&(w+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+s[u]+"</option>");w+="</select>"}if(y||(_+=w+(!a&&g&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!v)_+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(e,"yearRange").split(":"),p=(new Date).getFullYear(),h=(f=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?p+parseInt(e,10):parseInt(e,10);return isNaN(t)?p:t})(d[0]),m=Math.max(h,f(d[1]||"")),h=i?Math.max(h,i.getFullYear()):h,m=r?Math.min(m,r.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=h;h++)e.yearshtml+="<option value='"+h+"'"+(h===n?" selected='selected'":"")+">"+h+"</option>";e.yearshtml+="</select>",_+=e.yearshtml,e.yearshtml=null}return _+=this._get(e,"yearSuffix"),y&&(_+=(!a&&g&&v?"":"&#xa0;")+w),_+"</div>"},_adjustInstDate:function(e,t,n){var i=e.drawYear+("Y"===n?t:0),r=e.drawMonth+("M"===n?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(i,r))+("D"===n?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,r,a)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),("M"===n||"Y"===n)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),r=n&&n>t?n:t;return i&&r>i?i:r},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var r=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(n,i+(0>t?t:r[0]*r[1]),1));return 0>t&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var n,i,r=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),o=null,s=null,l=this._get(e,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),o=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(o+=i),n[1].match(/[+\-].*/)&&(s+=i)),(!r||t.getTime()>=r.getTime())&&(!a||t.getTime()<=a.getTime())&&(!o||t.getFullYear()>=o)&&(!s||s>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var r=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=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]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.11.4",e.datepicker,e.widget("ui.slider",e.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,i=this.options,r=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a=[];for(n=i.values&&i.values.length||1,r.length>n&&(r.slice(n).remove(),r=r.slice(0,n)),t=r.length;n>t;t++)a.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=r.add(e(a.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t)}))},_createRange:function(){var t=this.options,n="";t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=e("<div></div>").appendTo(this.element),n="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(n+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var n,i,r,a,o,s,l,c=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(n),r=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var n=Math.abs(i-c.values(t));(r>n||r===n&&(t===c._lastChangedValue||c.values(t)===u.min))&&(r=n,a=e(this),o=t)})),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,a.addClass("ui-state-active").focus(),s=a.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-s.left-a.width()/2,top:t.pageY-s.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,i,r,a;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(i=n/t)>1&&(i=1),0>i&&(i=0),"vertical"===this.orientation&&(i=1-i),r=this._valueMax()-this._valueMin(),a=this._valueMin()+i*r,this._trimAlignValue(a)},_start:function(e,t){var n={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._trigger("start",e,n)},_slide:function(e,t,n){var i,r,a;this.options.values&&this.options.values.length?(i=this.values(t?0:1),2===this.options.values.length&&!0===this.options.range&&(0===t&&n>i||1===t&&i>n)&&(n=i),n!==this.values(t)&&((r=this.values())[t]=n,a=this._trigger("slide",e,{handle:this.handles[t],value:n,values:r}),i=this.values(t?0:1),!1!==a&&this.values(t,n))):n!==this.value()&&(!1!==(a=this._trigger("slide",e,{handle:this.handles[t],value:n}))&&this.value(n))},_stop:function(e,t){var n={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._trigger("stop",e,n)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._lastChangedValue=t,this._trigger("change",e,n)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var i,r,a;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(i=this.options.values,r=arguments[0],a=0;i.length>a;a+=1)i[a]=this._trimAlignValue(r[a]),this._change(null,a);this._refreshValue()},_setOption:function(t,n){var i,r=0;switch("range"===t&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(r=this.options.values.length),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!n),this._super(t,n),t){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=0;r>i;i+=1)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,n,i;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this.options.values&&this.options.values.length){for(n=this.options.values.slice(),i=0;n.length>i;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,i=e-n;return 2*Math.abs(n)>=t&&(i+=n>0?t:-t),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;e=Math.floor(+(e-t).toFixed(this._precision())/n)*n+t,this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var t,n,i,r,a,o=this.options.range,s=this.options,l=this,c=!this._animateOff&&s.animate,u={};this.options.values&&this.options.values.length?this.handles.each((function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[c?"animate":"css"](u,s.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===i&&l.range[c?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:s.animate})):(0===i&&l.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===i&&l.range[c?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:s.animate}))),t=n})):(i=this.value(),r=this._valueMin(),a=this._valueMax(),n=a!==r?(i-r)/(a-r)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](u,s.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===o&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:s.animate}),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===o&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:s.animate}))},_handleEvents:{keydown:function(t){var n,i,r,a=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,e(t.target).addClass("ui-state-active"),!1===this._start(t,a)))return}switch(r=this.options.step,n=i=this.options.values&&this.options.values.length?this.values(a):this.value(),t.keyCode){case e.ui.keyCode.HOME:i=this._valueMin();break;case e.ui.keyCode.END:i=this._valueMax();break;case e.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+r);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-r)}this._slide(t,a,i)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),e(t.target).removeClass("ui-state-active"))}}})})),jQuery(document).ready((function(e){function t(t,n){if(n.tabs){var i=e("<div />",{class:n.tabMenuClassName}).insertBefore(t.children(n.container).filter(":first"));t.children(n.container).each((function(r,o){var s=e("<button/>").html(e(this).children(n.header).html()).addClass(0==r?n.tabMenuItemActiveClassName:"").addClass("item"+r).addClass("btn btn-default").prop("type","button").on("click keypress",{container:t.children(n.container),fieldset:e(o)},(function(){var i=e(this),r=i.parent().children().index(i);a(t,n,i,r)}));n.tabIndex&&s.prop("tabindex",r),i.append(s)}))}}function n(t,n){n.navigation&&t.children(n.container).each((function(i){var r=e("<div />").addClass("powermail_fieldwrap").addClass("powermail_tab_navigation").appendTo(e(this));i>0&&r.append(function(t,n){return e("<a />").prop("href","#").addClass("btn btn-warning").html("<").click((function(e){e.preventDefault(),function(e,t){var n=l(e,t);$activeTab=u(e,t),$activeTab.removeClass(t.tabMenuItemActiveClassName).prev().addClass(t.tabMenuItemActiveClassName),s(e,t,n-1)}(t,n)}))}(t,n)),i<t.children(n.container).length-1&&r.append(function(t,n){return e("<a />").prop("href","#").addClass("btn btn-primary pull-right").html(">").click((function(e){e.preventDefault(),function(e,t){var n=l(e,t);$activeTab=u(e,t),$activeTab.removeClass(t.tabMenuItemActiveClassName).next().addClass(t.tabMenuItemActiveClassName),s(e,t,n+1)}(t,n)}))}(t,n))}))}function i(t,n){e.fn.parsley&&"data-parsley-validate"===t.data("parsley-validate")&&t.parsley().subscribe("parsley:field:validated",(function(){(function(e,t){c(e,t).removeClass(t.tabMenuItemErrorClassName)})(t,n),function(t,n){t.parsley().isValid()||t.find(".parsley-error").each((function(){var i=t.find(".powermail_fieldset").index(e(this).closest(".powermail_fieldset"));c(t,n).slice(i,i+1).addClass(n.tabMenuItemErrorClassName)}))}(t,n)}))}function r(t,n){n.openTabOnError&&e.fn.parsley&&e.listen("parsley:field:error",(function(){setTimeout((function(){t.find("."+n.tabMenuClassName+" > ."+n.tabMenuItemErrorClassName+":first").click()}),50)}))}function a(t,n,i,r){$activeTab=u(t,n),$activeTab.removeClass(n.tabMenuItemActiveClassName),i.addClass(n.tabMenuItemActiveClassName),o(t,n),e(".powermail_fieldset",t).slice(r,r+1).show()}function o(e,t){e.children(t.container).hide()}function s(e,t,n){o(e,t),e.find(".powermail_fieldset").slice(n,n+1).show()}function l(e,t){var n=c(e,t).index(u(e,t));return parseInt(n)}function c(e,t){return e.find("."+t.tabMenuClassName).children()}function u(e,t){return c(e,t).filter("."+t.tabMenuItemActiveClassName)}e.fn.powermailTabs=function(e){"use strict";var a=jQuery(this);(function(e,t){o(e,t),e.find(t.container).first().show()})(a,e=jQuery.extend({container:"fieldset",header:"legend",tabs:!0,navigation:!0,openTabOnError:!0,tabIndex:!0,tabMenuClassName:"btn-group",tabMenuItemActiveClassName:"btn-primary",tabMenuItemErrorClassName:"btn-danger"},e)),t(a,e),n(a,e),i(a,e),r(a,e)}})),jQuery(document).ready((function(e){"use strict";new window.PowermailForm(e).initialize()})),function(e){"use strict";function t(t){return e('meta[name="'+t+'"]').attr("content")||""}function n(){var n=t("DC.title"),i=t("DC.creator");return n.length>0&&i.length>0?n+=" - "+i:n=e("title").text(),encodeURIComponent(n)}function i(){var t=document.location.href,n=e("link[rel=canonical]").attr("href");return n&&n.length>0&&(n.indexOf("http")<0&&(n=document.location.protocol+"//"+document.location.host+n),t=n),t}e.fn.socialSharePrivacy=function(t){var r={services:{facebook:{status:"on",dummy_img:"",txt_info:"2 Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Facebook senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_fb_off:"nicht mit Facebook verbunden",txt_fb_on:"mit Facebook verbunden",perma_option:"on",display_name:"Facebook",referrer_track:"",language:"de_DE",action:"recommend",dummy_caption:"Empfehlen"},twitter:{status:"on",dummy_img:"",txt_info:"2 Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Twitter senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_twitter_off:"nicht mit Twitter verbunden",txt_twitter_on:"mit Twitter verbunden",perma_option:"on",display_name:"Twitter",referrer_track:"",tweet_text:n,language:"en",dummy_caption:"Tweet",tweet_via:""},gplus:{status:"on",dummy_img:"",txt_info:"2 Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Google+ senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_gplus_off:"nicht mit Google+ verbunden",txt_gplus_on:"mit Google+ verbunden",perma_option:"on",display_name:"Google+",referrer_track:"",language:"de"}},info_link:"",txt_help:"Wenn Sie diese Felder durch einen Klick aktivieren, werden Informationen an Facebook, Twitter oder Google in die USA &uuml;bertragen und unter Umst&auml;nden auch dort gespeichert.",settings_perma:"Dauerhaft aktivieren und Daten&uuml;ber&shy;tragung zustimmen:",cookie_path:"/",cookie_domain:document.location.host,cookie_expires:"365",css_path:"socialshareprivacy/socialshareprivacy.css",uri:i},a=e.extend(!0,r,t),o="on"===a.services.facebook.status,s="on"===a.services.twitter.status,l="on"===a.services.gplus.status;return o||s||l?(a.css_path.length>0&&(document.createStyleSheet?document.createStyleSheet(a.css_path):e("head").append('<link rel="stylesheet" type="text/css" href="'+a.css_path+'" />')),this.each((function(){e(this).prepend('<ul class="social_share_privacy_area"></ul>');var t=e(".social_share_privacy_area",this),n=a.uri;if("function"==typeof n&&(n=n(t)),o){var i,r=encodeURIComponent(n+a.services.facebook.referrer_track),c='<iframe src="http://www.facebook.com/plugins/like.php?locale='+a.services.facebook.language+"&amp;href="+r+"&amp;send=false&amp;layout=button_count&amp;width=120&amp;show_faces=false&amp;action="+a.services.facebook.action+'&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:145px; height:21px;" allowTransparency="true"></iframe>';i=a.services.facebook.dummy_img?'<img class="fb_like_privacy_dummy" src="'+a.services.facebook.dummy_img+'" alt="'+a.services.facebook.dummy_caption+'" />':'<div class="fb_like_privacy_dummy"><span>'+a.services.facebook.dummy_caption+"</span></div>",t.append('<li class="facebook help_info"><span class="info">'+a.services.facebook.txt_info+'</span><span class="switch off">'+a.services.facebook.txt_fb_off+'</span><div class="fb_like dummy_btn">'+i+"</div></li>");var u=e("li.facebook",t);t.on("click","li.facebook div.fb_like .fb_like_privacy_dummy,li.facebook span.switch",(function(){u.find("span.switch").hasClass("off")?(u.addClass("info_off"),u.find("span.switch").addClass("on").removeClass("off").html(a.services.facebook.txt_fb_on),u.find(".fb_like_privacy_dummy").replaceWith(c)):(u.removeClass("info_off"),u.find("span.switch").addClass("off").removeClass("on").html(a.services.facebook.txt_fb_off),u.find(".fb_like").html(i))}))}if(s){var d=a.services.twitter.tweet_text;"function"==typeof d&&(d=d()),d=function(e,t){var n=decodeURIComponent(e);if(n.length<=t)return e;var i=n.substring(0,t-1).lastIndexOf(" ");return encodeURIComponent(n.substring(0,i))+"…"}(d,"120");var p="http://platform.twitter.com/widgets/tweet_button.html?url="+encodeURIComponent(n+a.services.twitter.referrer_track)+"&amp;counturl="+encodeURIComponent(n)+"&amp;text="+d+"&amp;count=horizontal&amp;lang="+a.services.twitter.language;""!==a.services.twitter.tweet_via&&(p=p+"&amp;via="+a.services.twitter.tweet_via);var f,h='<iframe allowtransparency="true" frameborder="0" scrolling="no" src="'+p+'" style="width:130px; height:25px;"></iframe>';f=a.services.twitter.dummy_img?'<img class="tweet_this_dummy" src="'+a.services.twitter.dummy_img+'" alt="'+a.services.twitter.dummy_caption+'" />':'<div class="tweet_this_dummy"><span>'+a.services.twitter.dummy_caption+"</span></div>",t.append('<li class="twitter help_info"><span class="info">'+a.services.twitter.txt_info+'</span><span class="switch off">'+a.services.twitter.txt_twitter_off+'</span><div class="tweet dummy_btn">'+f+"</div></li>");var m=e("li.twitter",t);t.on("click","li.twitter .tweet_this_dummy,li.twitter span.switch",(function(){m.find("span.switch").hasClass("off")?(m.addClass("info_off"),m.find("span.switch").addClass("on").removeClass("off").html(a.services.twitter.txt_twitter_on),m.find(".tweet_this_dummy").replaceWith(h)):(m.removeClass("info_off"),m.find("span.switch").addClass("off").removeClass("on").html(a.services.twitter.txt_twitter_off),m.find(".tweet").html(f))}))}if(l){var g,v='<div class="g-plusone" data-size="medium" data-href="'+(n+a.services.gplus.referrer_track)+'"></div><script type="text/javascript">window.___gcfg = {lang: "'+a.services.gplus.language+'"}; (function() { var po = document.createElement("script"); po.type = "text/javascript"; po.async = true; po.src = "https://apis.google.com/js/plusone.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); <\/script>';g=a.services.gplus.dummy_img?'<img src="'+a.services.gplus.dummy_img+'" alt="+1" class="gplus_one_dummy" />':'<div class="gplus_one_dummy">+1</div>',t.append('<li class="gplus help_info"><span class="info">'+a.services.gplus.txt_info+'</span><span class="switch off">'+a.services.gplus.txt_gplus_off+'</span><div class="gplusone dummy_btn">'+g+"</div></li>");var y=e("li.gplus",t);t.on("click","li.gplus div.gplusone .gplus_one_dummy,li.gplus span.switch",(function(){y.find("span.switch").hasClass("off")?(y.addClass("info_off"),y.find("span.switch").addClass("on").removeClass("off").html(a.services.gplus.txt_gplus_on),y.find(".gplus_one_dummy").replaceWith(v)):(y.removeClass("info_off"),y.find("span.switch").addClass("off").removeClass("on").html(a.services.gplus.txt_gplus_off),y.find(".gplusone").html(g))}))}t.append(""!==a.info_link?'<li class="settings_info"><div class="settings_info_menu off perma_option_off"><a href="'+a.info_link+'"><span class="help_info icon"><span class="info">'+a.txt_help+"</span></span></a></div></li>":'<li class="settings_info"><div class="settings_info_menu off perma_option_off"><span class="help_info icon"><span class="info">'+a.txt_help+"</span></span></div></li>"),t.on("mouseenter",".help_info:not(.info_off)",(function(){var t=e(this),n=window.setTimeout((function(){e(t).addClass("display")}),500);e(this).data("timeout_id",n)})),t.on("mouseleave",".help_info",(function(){var t=e(this).data("timeout_id");window.clearTimeout(t),e(this).hasClass("display")&&e(this).removeClass("display")}));var _="on"===a.services.facebook.perma_option,w="on"===a.services.twitter.perma_option,b="on"===a.services.gplus.perma_option;if((o&&_||s&&w||l&&b)&&JSON&&JSON.parse){var x=function(e){var t={};return e.split(/[;,] */).forEach((function(e){var n=e.indexOf("=");if(!(0>n)){var i=e.substr(0,n).trim(),r=e.substr(++n,e.length).trim();if('"'==r[0]&&(r=r.slice(1,-1)),void 0===t[i])try{t[i]=decodeURIComponent(r)}catch(e){t[i]=r}}})),t}(document.cookie),k=e("li.settings_info",t);k.find(".settings_info_menu").removeClass("perma_option_off"),k.find(".settings_info_menu").append('<span class="settings">Einstellungen</span><form><fieldset><legend>'+a.settings_perma+"</legend></fieldset></form>");var C=' checked="checked"';if(o&&_){var D="perma_on"===x.socialSharePrivacy_facebook?C:"";k.find("form fieldset").append('<input type="checkbox" name="perma_status_facebook" id="perma_status_facebook"'+D+' /><label for="perma_status_facebook">'+a.services.facebook.display_name+"</label>")}if(s&&w){var I="perma_on"===x.socialSharePrivacy_twitter?C:"";k.find("form fieldset").append('<input type="checkbox" name="perma_status_twitter" id="perma_status_twitter"'+I+' /><label for="perma_status_twitter">'+a.services.twitter.display_name+"</label>")}if(l&&b){var T="perma_on"===x.socialSharePrivacy_gplus?C:"";k.find("form fieldset").append('<input type="checkbox" name="perma_status_gplus" id="perma_status_gplus"'+T+' /><label for="perma_status_gplus">'+a.services.gplus.display_name+"</label>")}k.find("span.settings").css("cursor","pointer"),k.on("mouseenter","span.settings",(function(){var t=window.setTimeout((function(){k.find(".settings_info_menu").removeClass("off").addClass("on")}),500);e(this).data("timeout_id",t)})),k.on("mouseleave",(function(){var t=e(this).data("timeout_id");window.clearTimeout(t),k.find(".settings_info_menu").removeClass("on").addClass("off")})),k.on("click","fieldset input",(function(t){var n=t.target.id,i="socialSharePrivacy_"+n.substr(n.lastIndexOf("_")+1,n.length);e(this).is(":checked")?(function(e,t,n,i,r){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),document.cookie=e+"="+t+"; expires="+a.toUTCString()+"; path="+i+"; domain="+r}(i,"perma_on",a.cookie_expires,a.cookie_path,a.cookie_domain),e('.social_share_privacy_area [id="'+n+'"]').prop("checked",!0),e(".social_share_privacy_area label[for="+n+"]").addClass("checked")):(function(e,t,n,i){var r=new Date;r.setTime(r.getTime()-100),document.cookie=e+"="+t+"; expires="+r.toUTCString()+"; path="+n+"; domain="+i}(i,"perma_on",a.cookie_path,a.cookie_domain),e('.social_share_privacy_area [id="'+n+'"]').prop("checked",!1),e(".social_share_privacy_area label[for="+n+"]").removeClass("checked"))})),o&&_&&"perma_on"===x.socialSharePrivacy_facebook&&e("li.facebook span.switch",t).click(),s&&w&&"perma_on"===x.socialSharePrivacy_twitter&&e("li.twitter span.switch",t).click(),l&&b&&"perma_on"===x.socialSharePrivacy_gplus&&e("li.gplus span.switch",t).click()}}))):void 0}}(jQuery),
/*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08
* http://photoswipe.com
* Copyright (c) 2019 Dmitry Semenov; */
function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,(function(){"use strict";return function(e,t){var n,i,r,a,o,s,l,c,u,d,p,f,h,m,g,v,y,_,w=this,b=!1,x=!0,k=!0,C={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},D=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!u&&N();for(var n,i,r=(e.target||e.srcElement).getAttribute("class")||"",a=0;a<H.length;a++)(n=H[a]).onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(),i=!0);if(i){e.stopPropagation&&e.stopPropagation(),v=!0;var o=t.features.isOldAndroid?600:30;setTimeout((function(){v=!1}),o)}},I=function(e,n,i){t[(i?"add":"remove")+"Class"](e,"pswp__"+n)},T=function(){var e=1===g.getNumItemsFn();e!==m&&(I(i,"ui--one-slide",e),m=e)},E=function(){I(l,"share-modal--hidden",k)},A=function(){return(k=!k)?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout((function(){k&&E()}),300)):(E(),setTimeout((function(){k||t.addClass(l,"pswp__share-modal--fade-in")}),30)),k||M(),!1},S=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),!!n.href&&(!!n.hasAttribute("download")||(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),k||A(),!1))},M=function(){for(var e,t,n,i,r="",a=0;a<g.shareButtons.length;a++)e=g.shareButtons[a],t=g.getImageURLForShare(e),n=g.getPageURLForShare(e),i=g.getTextForShare(e),r+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(i))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",g.parseShareButtonOut&&(r=g.parseShareButtonOut(e,r));l.children[0].innerHTML=r,l.children[0].onclick=S},O=function(e){for(var n=0;n<g.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+g.closeElClasses[n]))return!0},P=0,N=function(){clearTimeout(_),P=0,u&&w.setIdle(!1)},j=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(_),_=setTimeout((function(){w.setIdle(!0)}),g.timeToIdleOutside))},L=function(e){f!==e&&(I(p,"preloader--active",!e),f=e)},F=function(n){var o=n.vGap;if(!e.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth){var s=g.barsSize;if(g.captionEl&&"auto"===s.bottom)if(a||((a=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),i.insertBefore(a,r),t.addClass(i,"pswp__ui--fit")),g.addCaptionHTMLFn(n,a,!0)){var l=a.clientHeight;o.bottom=parseInt(l,10)||44}else o.bottom=s.top;else o.bottom="auto"===s.bottom?0:s.bottom;o.top=s.top}else o.top=o.bottom=0},H=[{name:"caption",option:"captionEl",onInit:function(e){r=e}},{name:"share-modal",option:"shareEl",onInit:function(e){l=e},onTap:function(){A()}},{name:"button--share",option:"shareEl",onInit:function(e){s=e},onTap:function(){A()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){o=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){p=e}}];w.init=function(){var o;t.extend(e.options,C,!0),g=e.options,i=t.getChildByClass(e.scrollWrap,"pswp__ui"),(d=e.listen)("onVerticalDrag",(function(e){x&&e<.95?w.hideControls():!x&&e>=.95&&w.showControls()})),d("onPinchClose",(function(e){x&&e<.9?(w.hideControls(),o=!0):o&&!x&&e>.9&&w.showControls()})),d("zoomGestureEnded",(function(){(o=!1)&&!x&&w.showControls()})),d("beforeChange",w.update),d("doubleTap",(function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(g.getDoubleTapZoom(!1,e.currItem),t,333)})),d("preventDragEvent",(function(e,t,n){var i=e.target||e.srcElement;i&&i.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(i.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(i.tagName))&&(n.prevent=!1)})),d("bindEvents",(function(){t.bind(i,"pswpTap click",D),t.bind(e.scrollWrap,"pswpTap",w.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",w.onMouseOver)})),d("unbindEvents",(function(){k||A(),y&&clearInterval(y),t.unbind(document,"mouseout",j),t.unbind(document,"mousemove",N),t.unbind(i,"pswpTap click",D),t.unbind(e.scrollWrap,"pswpTap",w.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",w.onMouseOver),n&&(t.unbind(document,n.eventK,w.updateFullscreen),n.isFullscreen()&&(g.hideAnimationDuration=0,n.exit()),n=null)})),d("destroy",(function(){g.captionEl&&(a&&i.removeChild(a),t.removeClass(r,"pswp__caption--empty")),l&&(l.children[0].onclick=null),t.removeClass(i,"pswp__ui--over-close"),t.addClass(i,"pswp__ui--hidden"),w.setIdle(!1)})),g.showAnimationDuration||t.removeClass(i,"pswp__ui--hidden"),d("initialZoomIn",(function(){g.showAnimationDuration&&t.removeClass(i,"pswp__ui--hidden")})),d("initialZoomOut",(function(){t.addClass(i,"pswp__ui--hidden")})),d("parseVerticalMargin",F),function(){var e,n,r,a=function(i){if(i)for(var a=i.length,o=0;o<a;o++){e=i[o],n=e.className;for(var s=0;s<H.length;s++)r=H[s],n.indexOf("pswp__"+r.name)>-1&&(g[r.option]?(t.removeClass(e,"pswp__element--disabled"),r.onInit&&r.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};a(i.children);var o=t.getChildByClass(i,"pswp__top-bar");o&&a(o.children)}(),g.shareEl&&s&&l&&(k=!0),T(),g.timeToIdle&&d("mouseUsed",(function(){t.bind(document,"mousemove",N),t.bind(document,"mouseout",j),y=setInterval((function(){2==++P&&w.setIdle(!0)}),g.timeToIdle/2)})),g.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=w.getFullscreenAPI()),n?(t.bind(document,n.eventK,w.updateFullscreen),w.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs")),g.preloaderEl&&(L(!0),d("beforeChange",(function(){clearTimeout(h),h=setTimeout((function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&L(!1):L(!0)}),g.loadingIndicatorDelay)})),d("imageLoadComplete",(function(t,n){e.currItem===n&&L(!0)})))},w.setIdle=function(e){u=e,I(i,"ui--idle",e)},w.update=function(){x&&e.currItem?(w.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(e.currItem,r),I(r,"caption--empty",!e.currItem.title)),b=!0):b=!1,k||A(),T()},w.updateFullscreen=function(i){i&&setTimeout((function(){e.setScrollOffset(0,t.getScrollY())}),50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},w.updateIndexIndicator=function(){g.counterEl&&(o.innerHTML=e.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},w.onGlobalTap=function(n){var i=(n=n||window.event).target||n.srcElement;if(!v)if(n.detail&&"mouse"===n.detail.pointerType){if(O(i))return void e.close();t.hasClass(i,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?g.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(g.tapToToggleControls&&(x?w.hideControls():w.showControls()),g.tapToClose&&(t.hasClass(i,"pswp__img")||O(i)))return void e.close()},w.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;I(i,"ui--over-close",O(t))},w.hideControls=function(){t.addClass(i,"pswp__ui--hidden"),x=!1},w.showControls=function(){x=!0,b||w.update(),t.removeClass(i,"pswp__ui--hidden")},w.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},w.getFullscreenAPI=function(){var t,n=document.documentElement,i="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){if(c=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return g.closeOnScroll=c,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}})),
/*! PhotoSwipe - v4.1.3 - 2019-01-08
* http://photoswipe.com
* Copyright (c) 2019 Dmitry Semenov; */
function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,(function(){"use strict";return function(e,t,n,i){var r={features:null,bind:function(e,t,n,i){var r=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[r](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){r.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){r.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(r.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(r.features)return r.features;var e=r.createEl().style,t="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var i=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&a.length>0&&(a=parseInt(a[1],10))>=1&&a<8&&(n.isOldIOSPhone=!0)}var o=i.match(/Android\s([0-9\.]*)/),s=o?o[1]:0;(s=parseFloat(s))>=1&&(s<4.4&&(n.isOldAndroid=!0),n.androidVersion=s),n.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var l,c,u=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=d[p];for(var f=0;f<3;f++)l=u[f],c=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&c in e&&(n[l]=c);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var h=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),i=window.setTimeout((function(){e(t+n)}),n);return h=t+n,i},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r.features=n,n}};r.detectFeatures(),r.features.oldIE&&(r.bind=function(e,t,n,i){t=t.split(" ");for(var r,a=(i?"detach":"attach")+"Event",o=function(){n.handleEvent.call(n)},s=0;s<t.length;s++)if(r=t[s])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+r])return!1}else n["oldIE"+r]=o;e[a]("on"+r,n["oldIE"+r])}else e[a]("on"+r,n)});var a=this,o={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};r.extend(o,i);var s,l,c,u,d,p,f,h,m,g,v,y,_,w,b,x,k,C,D,I,T,E,A,S,M,O,P,N,j,L,F,H,B,R,z,W,$,q,Y,U,K,V,G,Z,X,Q,J,ee,te,ne,ie,re,ae,oe,se,le,ce={x:0,y:0},ue={x:0,y:0},de={x:0,y:0},pe={},fe=0,he={},me={x:0,y:0},ge=0,ve=!0,ye=[],_e={},we=!1,be=function(e,t){r.extend(a,t.publicMethods),ye.push(e)},xe=function(e){var t=zt();return e>t-1?e-t:e<0?t+e:e},ke={},Ce=function(e,t){return ke[e]||(ke[e]=[]),ke[e].push(t)},De=function(e){var t=ke[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(a,n)}},Ie=function(){return(new Date).getTime()},Te=function(e){oe=e,a.bg.style.opacity=e*o.bgOpacity},Ee=function(e,t,n,i,r){(!we||r&&r!==a.currItem)&&(i/=r?r.fitRatio:a.currItem.fitRatio),e[E]=y+t+"px, "+n+"px"+_+" scale("+i+")"},Ae=function(e){te&&(e&&(g>a.currItem.fitRatio?we||(Zt(a.currItem,!1,!0),we=!0):we&&(Zt(a.currItem),we=!1)),Ee(te,de.x,de.y,g))},Se=function(e){e.container&&Ee(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Me=function(e,t){t[E]=y+e+"px, 0px"+_},Oe=function(e,t){if(!o.loop&&t){var n=u+(me.x*fe-e)/me.x,i=Math.round(e-ut.x);(n<0&&i>0||n>=zt()-1&&i<0)&&(e=ut.x+i*o.mainScrollEndFriction)}ut.x=e,Me(e,d)},Pe=function(e,t){var n=dt[e]-he[e];return ue[e]+ce[e]+n-n*(t/v)},Ne=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},je=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Le=null,Fe=function(){Le&&(r.unbind(document,"mousemove",Fe),r.addClass(e,"pswp--has_mouse"),o.mouseUsed=!0,De("mouseUsed")),Le=setTimeout((function(){Le=null}),100)},He=function(e,t){var n=Ut(a.currItem,pe,e);return t&&(ee=n),n},Be=function(e){return e||(e=a.currItem),e.initialZoomLevel},Re=function(e){return e||(e=a.currItem),e.w>0?o.maxSpreadZoom:1},ze=function(e,t,n,i){return i===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Pe(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},We=function(e){var t="";o.escKey&&27===e.keyCode?t="close":o.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,a[t]()))},$e=function(e){e&&(V||K||ne||$)&&(e.preventDefault(),e.stopPropagation())},qe=function(){a.setScrollOffset(0,r.getScrollY())},Ye={},Ue=0,Ke=function(e){Ye[e]&&(Ye[e].raf&&O(Ye[e].raf),Ue--,delete Ye[e])},Ve=function(e){Ye[e]&&Ke(e),Ye[e]||(Ue++,Ye[e]={})},Ge=function(){for(var e in Ye)Ye.hasOwnProperty(e)&&Ke(e)},Ze=function(e,t,n,i,r,a,o){var s,l=Ie();Ve(e);var c=function(){if(Ye[e]){if((s=Ie()-l)>=i)return Ke(e),a(n),void(o&&o());a((n-t)*r(s/i)+t),Ye[e].raf=M(c)}};c()},Xe={shout:De,listen:Ce,viewportSize:pe,options:o,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return g},getCurrentIndex:function(){return u},isDragging:function(){return Y},isZooming:function(){return Q},setScrollOffset:function(e,t){he.x=e,L=he.y=t,De("updateScrollOffset",he)},applyZoomPan:function(e,t,n,i){de.x=t,de.y=n,g=e,Ae(i)},init:function(){if(!s&&!l){var n;a.framework=r,a.template=e,a.bg=r.getChildByClass(e,"pswp__bg"),P=e.className,s=!0,F=r.detectFeatures(),M=F.raf,O=F.caf,E=F.transform,j=F.oldIE,a.scrollWrap=r.getChildByClass(e,"pswp__scroll-wrap"),a.container=r.getChildByClass(a.scrollWrap,"pswp__container"),d=a.container.style,a.itemHolders=x=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],x[0].el.style.display=x[2].el.style.display="none",function(){if(E){var t=F.perspective&&!S;return y="translate"+(t?"3d(":"("),void(_=F.perspective?", 0px)":")")}E="left",r.addClass(e,"pswp--ie"),Me=function(e,t){t.left=e+"px"},Se=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,i=t*e.w,r=t*e.h;n.width=i+"px",n.height=r+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Ae=function(){if(te){var e=te,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,i=n*t.w,r=n*t.h;e.width=i+"px",e.height=r+"px",e.left=de.x+"px",e.top=de.y+"px"}}}(),m={resize:a.updateSize,orientationchange:function(){clearTimeout(H),H=setTimeout((function(){pe.x!==a.scrollWrap.clientWidth&&a.updateSize()}),500)},scroll:qe,keydown:We,click:$e};var i=F.isOldIOSPhone||F.isOldAndroid||F.isMobileOpera;for(F.animationName&&F.transform&&!i||(o.showAnimationDuration=o.hideAnimationDuration=0),n=0;n<ye.length;n++)a["init"+ye[n]]();if(t)(a.ui=new t(a,r)).init();De("firstUpdate"),u=u||o.index||0,(isNaN(u)||u<0||u>=zt())&&(u=0),a.currItem=Rt(u),(F.isOldIOSPhone||F.isOldAndroid)&&(ve=!1),e.setAttribute("aria-hidden","false"),o.modal&&(ve?e.style.position="fixed":(e.style.position="absolute",e.style.top=r.getScrollY()+"px")),void 0===L&&(De("initialLayout"),L=N=r.getScrollY());var c="pswp--open ";for(o.mainClass&&(c+=o.mainClass+" "),o.showHideOpacity&&(c+="pswp--animate_opacity "),c+=S?"pswp--touch":"pswp--notouch",c+=F.animationName?" pswp--css_animation":"",c+=F.svg?" pswp--svg":"",r.addClass(e,c),a.updateSize(),p=-1,ge=null,n=0;n<3;n++)Me((n+p)*me.x,x[n].el.style);j||r.bind(a.scrollWrap,h,a),Ce("initialZoomInEnd",(function(){a.setContent(x[0],u-1),a.setContent(x[2],u+1),x[0].el.style.display=x[2].el.style.display="block",o.focus&&e.focus(),r.bind(document,"keydown",a),F.transform&&r.bind(a.scrollWrap,"click",a),o.mouseUsed||r.bind(document,"mousemove",Fe),r.bind(window,"resize scroll orientationchange",a),De("bindEvents")})),a.setContent(x[1],u),a.updateCurrItem(),De("afterInit"),ve||(w=setInterval((function(){Ue||Y||Q||g!==a.currItem.initialZoomLevel||a.updateSize()}),1e3)),r.addClass(e,"pswp--visible")}},close:function(){s&&(s=!1,l=!0,De("close"),r.unbind(window,"resize scroll orientationchange",a),r.unbind(window,"scroll",m.scroll),r.unbind(document,"keydown",a),r.unbind(document,"mousemove",Fe),F.transform&&r.unbind(a.scrollWrap,"click",a),Y&&r.unbind(window,f,a),clearTimeout(H),De("unbindEvents"),Wt(a.currItem,null,!0,a.destroy))},destroy:function(){De("destroy"),Lt&&clearTimeout(Lt),e.setAttribute("aria-hidden","true"),e.className=P,w&&clearInterval(w),r.unbind(a.scrollWrap,h,a),r.unbind(window,"scroll",a),ht(),Ge(),ke=null},panTo:function(e,t,n){n||(e>ee.min.x?e=ee.min.x:e<ee.max.x&&(e=ee.max.x),t>ee.min.y?t=ee.min.y:t<ee.max.y&&(t=ee.max.y)),de.x=e,de.y=t,Ae()},handleEvent:function(e){e=e||window.event,m[e.type]&&m[e.type](e)},goTo:function(e){var t=(e=xe(e))-u;ge=t,u=e,a.currItem=Rt(u),fe-=t,Oe(me.x*fe),Ge(),ne=!1,a.updateCurrItem()},next:function(){a.goTo(u+1)},prev:function(){a.goTo(u-1)},updateCurrZoomItem:function(e){if(e&&De("beforeChange",0),x[1].el.children.length){var t=x[1].el.children[0];te=r.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=a.currItem.bounds,v=g=a.currItem.initialZoomLevel,de.x=ee.center.x,de.y=ee.center.y,e&&De("afterChange")},invalidateCurrItems:function(){b=!0;for(var e=0;e<3;e++)x[e].item&&(x[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ge){var t,n=Math.abs(ge);if(!(e&&n<2)){a.currItem=Rt(u),we=!1,De("beforeChange",ge),n>=3&&(p+=ge+(ge>0?-3:3),n=3);for(var i=0;i<n;i++)ge>0?(t=x.shift(),x[2]=t,Me((++p+2)*me.x,t.el.style),a.setContent(t,u-n+i+1+1)):(t=x.pop(),x.unshift(t),Me(--p*me.x,t.el.style),a.setContent(t,u+n-i-1-1));if(te&&1===Math.abs(ge)){var r=Rt(k);r.initialZoomLevel!==g&&(Ut(r,pe),Zt(r),Se(r))}ge=0,a.updateCurrZoomItem(),k=u,De("afterChange")}}},updateSize:function(t){if(!ve&&o.modal){var n=r.getScrollY();if(L!==n&&(e.style.top=n+"px",L=n),!t&&_e.x===window.innerWidth&&_e.y===window.innerHeight)return;_e.x=window.innerWidth,_e.y=window.innerHeight,e.style.height=_e.y+"px"}if(pe.x=a.scrollWrap.clientWidth,pe.y=a.scrollWrap.clientHeight,qe(),me.x=pe.x+Math.round(pe.x*o.spacing),me.y=pe.y,Oe(me.x*fe),De("beforeResize"),void 0!==p){for(var i,s,l,c=0;c<3;c++)i=x[c],Me((c+p)*me.x,i.el.style),l=u+c-1,o.loop&&zt()>2&&(l=xe(l)),(s=Rt(l))&&(b||s.needsUpdate||!s.bounds)?(a.cleanSlide(s),a.setContent(i,l),1===c&&(a.currItem=s,a.updateCurrZoomItem(!0)),s.needsUpdate=!1):-1===i.index&&l>=0&&a.setContent(i,l),s&&s.container&&(Ut(s,pe),Zt(s),Se(s));b=!1}v=g=a.currItem.initialZoomLevel,(ee=a.currItem.bounds)&&(de.x=ee.center.x,de.y=ee.center.y,Ae(!0)),De("resize")},zoomTo:function(e,t,n,i,a){t&&(v=g,dt.x=Math.abs(t.x)-de.x,dt.y=Math.abs(t.y)-de.y,Ne(ue,de));var o=He(e,!1),s={};ze("x",o,s,e),ze("y",o,s,e);var l=g,c=de.x,u=de.y;je(s);var d=function(t){1===t?(g=e,de.x=s.x,de.y=s.y):(g=(e-l)*t+l,de.x=(s.x-c)*t+c,de.y=(s.y-u)*t+u),a&&a(t),Ae(1===t)};n?Ze("customZoomTo",0,1,n,i||r.easing.sine.inOut,d):d(1)}},Qe={},Je={},et={},tt={},nt={},it=[],rt={},at=[],ot={},st=0,lt={x:0,y:0},ct=0,ut={x:0,y:0},dt={x:0,y:0},pt={x:0,y:0},ft=function(e,t){return ot.x=Math.abs(e.x-t.x),ot.y=Math.abs(e.y-t.y),Math.sqrt(ot.x*ot.x+ot.y*ot.y)},ht=function(){G&&(O(G),G=null)},mt=function(){Y&&(G=M(mt),At())},gt=function(e,t){return!(!e||e===document)&&(!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:gt(e.parentNode,t)))},vt={},yt=function(e,t){return vt.prevent=!gt(e.target,o.isClickableElement),De("preventDragEvent",e,t,vt),vt.prevent},_t=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},wt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},bt=function(){var e=de.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(pe.y/2))},xt={},kt={},Ct=[],Dt=function(e){for(;Ct.length>0;)Ct.pop();return A?(le=0,it.forEach((function(e){0===le?Ct[0]=e:1===le&&(Ct[1]=e),le++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Ct[0]=_t(e.touches[0],xt),e.touches.length>1&&(Ct[1]=_t(e.touches[1],kt))):(xt.x=e.pageX,xt.y=e.pageY,xt.id="",Ct[0]=xt),Ct},It=function(e,t){var n,i,r,s,l=de[e]+t[e],c=t[e]>0,u=ut.x+t.x,d=ut.x-rt.x;if(n=l>ee.min[e]||l<ee.max[e]?o.panEndFriction:1,l=de[e]+t[e]*n,(o.allowPanToNext||g===a.currItem.initialZoomLevel)&&(te?"h"!==ie||"x"!==e||K||(c?(l>ee.min[e]&&(n=o.panEndFriction,ee.min[e]-l,i=ee.min[e]-ue[e]),(i<=0||d<0)&&zt()>1?(s=u,d<0&&u>rt.x&&(s=rt.x)):ee.min.x!==ee.max.x&&(r=l)):(l<ee.max[e]&&(n=o.panEndFriction,l-ee.max[e],i=ue[e]-ee.max[e]),(i<=0||d>0)&&zt()>1?(s=u,d>0&&u<rt.x&&(s=rt.x)):ee.min.x!==ee.max.x&&(r=l))):s=u,"x"===e))return void 0!==s&&(Oe(s,!0),Z=s!==rt.x),ee.min.x!==ee.max.x&&(void 0!==r?de.x=r:Z||(de.x+=t.x*n)),void 0!==s;ne||Z||g>a.currItem.fitRatio&&(de[e]+=t[e]*n)},Tt=function(e){if(!("mousedown"===e.type&&e.button>0))if(Bt)e.preventDefault();else if(!q||"mousedown"!==e.type){if(yt(e,!0)&&e.preventDefault(),De("pointerDown"),A){var t=r.arraySearch(it,e.pointerId,"id");t<0&&(t=it.length),it[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Dt(e),i=n.length;X=null,Ge(),Y&&1!==i||(Y=re=!0,r.bind(window,f,a),W=se=ae=$=Z=V=U=K=!1,ie=null,De("firstTouchStart",n),Ne(ue,de),ce.x=ce.y=0,Ne(tt,n[0]),Ne(nt,tt),rt.x=me.x*fe,at=[{x:tt.x,y:tt.y}],R=B=Ie(),He(g,!0),ht(),mt()),!Q&&i>1&&!ne&&!Z&&(v=g,K=!1,Q=U=!0,ce.y=ce.x=0,Ne(ue,de),Ne(Qe,n[0]),Ne(Je,n[1]),wt(Qe,Je,pt),dt.x=Math.abs(pt.x)-de.x,dt.y=Math.abs(pt.y)-de.y,J=ft(Qe,Je))}},Et=function(e){if(e.preventDefault(),A){var t=r.arraySearch(it,e.pointerId,"id");if(t>-1){var n=it[t];n.x=e.pageX,n.y=e.pageY}}if(Y){var i=Dt(e);if(ie||V||Q)X=i;else if(ut.x!==me.x*fe)ie="h";else{var a=Math.abs(i[0].x-tt.x)-Math.abs(i[0].y-tt.y);Math.abs(a)>=10&&(ie=a>0?"h":"v",X=i)}}},At=function(){if(X){var e=X.length;if(0!==e)if(Ne(Qe,X[0]),et.x=Qe.x-tt.x,et.y=Qe.y-tt.y,Q&&e>1){if(tt.x=Qe.x,tt.y=Qe.y,!et.x&&!et.y&&function(e,t){return e.x===t.x&&e.y===t.y}(X[1],Je))return;Ne(Je,X[1]),K||(K=!0,De("zoomGestureStarted"));var t=ft(Qe,Je),n=Nt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(se=!0);var i=1,r=Be(),s=Re();if(n<r)if(o.pinchToClose&&!se&&v<=a.currItem.initialZoomLevel){var l=1-(r-n)/(r/1.2);Te(l),De("onPinchClose",l),ae=!0}else(i=(r-n)/r)>1&&(i=1),n=r-i*(r/3);else n>s&&((i=(n-s)/(6*r))>1&&(i=1),n=s+i*r);i<0&&(i=0),t,wt(Qe,Je,lt),ce.x+=lt.x-pt.x,ce.y+=lt.y-pt.y,Ne(pt,lt),de.x=Pe("x",n),de.y=Pe("y",n),W=n>g,g=n,Ae()}else{if(!ie)return;if(re&&(re=!1,Math.abs(et.x)>=10&&(et.x-=X[0].x-nt.x),Math.abs(et.y)>=10&&(et.y-=X[0].y-nt.y)),tt.x=Qe.x,tt.y=Qe.y,0===et.x&&0===et.y)return;if("v"===ie&&o.closeOnVerticalDrag&&"fit"===o.scaleMode&&g===a.currItem.initialZoomLevel){ce.y+=et.y,de.y+=et.y;var c=bt();return $=!0,De("onVerticalDrag",c),Te(c),void Ae()}!function(e,t,n){if(e-R>50){var i=at.length>2?at.shift():{};i.x=t,i.y=n,at.push(i),R=e}}(Ie(),Qe.x,Qe.y),V=!0,ee=a.currItem.bounds,It("x",et)||(It("y",et),je(de),Ae())}}},St=function(e){if(F.isOldAndroid){if(q&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(q),q=setTimeout((function(){q=0}),600))}var t;if(De("pointerUp"),yt(e,!1)&&e.preventDefault(),A){var n=r.arraySearch(it,e.pointerId,"id");if(n>-1)if(t=it.splice(n,1)[0],navigator.msPointerEnabled){t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var i,s=Dt(e),l=s.length;if("mouseup"===e.type&&(l=0),2===l)return X=null,!0;1===l&&Ne(nt,s[0]),0!==l||ie||ne||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),De("touchRelease",e,t));var c=-1;if(0===l&&(Y=!1,r.unbind(window,f,a),ht(),Q?c=0:-1!==ct&&(c=Ie()-ct)),ct=1===l?Ie():-1,i=-1!==c&&c<150?"zoom":"swipe",Q&&l<2&&(Q=!1,1===l&&(i="zoomPointerUp"),De("zoomGestureEnded")),X=null,V||K||ne||$)if(Ge(),z||(z=Mt()),z.calculateSwipeSpeed("x"),$){if(bt()<o.verticalDragRange)a.close();else{var u=de.y,d=oe;Ze("verticalDrag",0,1,300,r.easing.cubic.out,(function(e){de.y=(a.currItem.initialPosition.y-u)*e+u,Te((1-d)*e+d),Ae()})),De("onVerticalDrag",1)}}else{if((Z||ne)&&0===l){if(Pt(i,z))return;i="zoomPointerUp"}ne||("swipe"===i?!Z&&g>a.currItem.fitRatio&&Ot(z):jt())}},Mt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){at.length>1?(e=Ie()-R+50,t=at[at.length-2][i]):(e=Ie()-B,t=nt[i]),n.lastFlickOffset[i]=tt[i]-t,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/e:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(de[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:de[e]<ee.max[e]&&(n.backAnimDestination[e]=ee.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,Ze("bounceZoomPan"+e,de[e],n.backAnimDestination[e],t||300,r.easing.sine.out,(function(t){de[e]=t,Ae()})))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,de[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Ye.zoomPan&&(Ye.zoomPan.raf=M(n.panAnimLoop),n.now=Ie(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Ae(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return de.x=Math.round(de.x),de.y=Math.round(de.y),Ae(),void Ke("zoomPan")}};return n},Ot=function(e){if(e.calculateSwipeSpeed("y"),ee=a.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;Ve("zoomPan"),e.lastNow=Ie(),e.panAnimLoop()},Pt=function(e,t){var n,i,s;if(ne||(st=u),"swipe"===e){var l=tt.x-nt.x,c=t.lastFlickDist.x<10;l>30&&(c||t.lastFlickOffset.x>20)?i=-1:l<-30&&(c||t.lastFlickOffset.x<-20)&&(i=1)}i&&((u+=i)<0?(u=o.loop?zt()-1:0,s=!0):u>=zt()&&(u=o.loop?0:zt()-1,s=!0),s&&!o.loop||(ge+=i,fe-=i,n=!0));var d,p=me.x*fe,f=Math.abs(p-ut.x);return n||p>ut.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?f/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,st===u&&(n=!1),ne=!0,De("mainScrollAnimStart"),Ze("mainScroll",ut.x,p,d,r.easing.cubic.out,Oe,(function(){Ge(),ne=!1,st=-1,(n||st!==u)&&a.updateCurrItem(),De("mainScrollAnimComplete")})),n&&a.updateCurrItem(!0),n},Nt=function(e){return 1/J*e*v},jt=function(){var e=g,t=Be(),n=Re();g<t?e=t:g>n&&(e=n);var i,o=oe;return ae&&!W&&!se&&g<t?(a.close(),!0):(ae&&(i=function(e){Te((1-o)*e+o)}),a.zoomTo(e,0,200,r.easing.cubic.out,i),!0)};be("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,i,r){C=e+t,D=e+n,I=e+i,T=r?e+r:""};(A=F.pointerEvent)&&F.touch&&(F.touch=!1),A?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):F.touch?(e("touch","start","move","end","cancel"),S=!0):e("mouse","down","move","up"),f=D+" "+I+" "+T,h=C,A&&!S&&(S=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=S,m[C]=Tt,m[D]=Et,m[I]=St,T&&(m[T]=m[I]),F.touch&&(h+=" mousedown",f+=" mousemove mouseup",m.mousedown=m[C],m.mousemove=m[D],m.mouseup=m[I]),S||(o.allowPanToNext=!1)}}});var Lt,Ft,Ht,Bt,Rt,zt,Wt=function(t,n,i,s){var l;Lt&&clearTimeout(Lt),Bt=!0,Ht=!0,t.initialLayout?(l=t.initialLayout,t.initialLayout=null):l=o.getThumbBoundsFn&&o.getThumbBoundsFn(u);var d=i?o.hideAnimationDuration:o.showAnimationDuration,p=function(){Ke("initialZoom"),i?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Te(1),n&&(n.style.display="block"),r.addClass(e,"pswp--animated-in"),De("initialZoom"+(i?"OutEnd":"InEnd"))),s&&s(),Bt=!1};if(!d||!l||void 0===l.x)return De("initialZoom"+(i?"Out":"In")),g=t.initialZoomLevel,Ne(de,t.initialPosition),Ae(),e.style.opacity=i?0:1,Te(1),void(d?setTimeout((function(){p()}),d):p());var f,h;f=c,h=!a.currItem.src||a.currItem.loadError||o.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),i||(g=l.w/t.w,de.x=l.x,de.y=l.y-N,a[h?"template":"bg"].style.opacity=.001,Ae()),Ve("initialZoom"),i&&!f&&r.removeClass(e,"pswp--animated-in"),h&&(i?r[(f?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout((function(){r.addClass(e,"pswp--animate_opacity")}),30)),Lt=setTimeout((function(){if(De("initialZoom"+(i?"Out":"In")),i){var n=l.w/t.w,a={x:de.x,y:de.y},o=g,s=oe,c=function(t){1===t?(g=n,de.x=l.x,de.y=l.y-L):(g=(n-o)*t+o,de.x=(l.x-a.x)*t+a.x,de.y=(l.y-L-a.y)*t+a.y),Ae(),h?e.style.opacity=1-t:Te(s-t*s)};f?Ze("initialZoom",0,1,d,r.easing.cubic.out,c,p):(c(1),Lt=setTimeout(p,d+20))}else g=t.initialZoomLevel,Ne(de,t.initialPosition),Ae(),Te(1),h?e.style.opacity=1:Te(1),Lt=setTimeout(p,d+20)}),i?25:90)},$t={},qt=[],Yt={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ft.length}},Ut=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),De("parseVerticalMargin",e)),$t.x=t.x,$t.y=t.y-e.vGap.top-e.vGap.bottom,i){var r=$t.x/e.w,a=$t.y/e.h;e.fitRatio=r<a?r:a;var s=o.scaleMode;"orig"===s?n=1:"fit"===s&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return function(e,t,n){var i=e.bounds;i.center.x=Math.round(($t.x-t)/2),i.center.y=Math.round(($t.y-n)/2)+e.vGap.top,i.max.x=t>$t.x?Math.round($t.x-t):i.center.x,i.max.y=n>$t.y?Math.round($t.y-n)+e.vGap.top:i.center.y,i.min.x=t>$t.x?0:i.center.x,i.min.y=n>$t.y?e.vGap.top:i.center.y}(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Kt=function(e,t,n,i,r,o){t.loadError||i&&(t.imageAppended=!0,Zt(t,i,t===a.currItem&&we),n.appendChild(i),o&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},Vt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=r.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},Gt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=o.errorMsg.replace("%url%",e.src),!0},Zt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),r=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=r+"px"),t.style.width=i+"px",t.style.height=r+"px"}},Xt=function(){if(qt.length){for(var e,t=0;t<qt.length;t++)(e=qt[t]).holder.index===e.index&&Kt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);qt=[]}};be("Controller",{publicMethods:{lazyLoadItem:function(e){e=xe(e);var t=Rt(e);t&&(!t.loaded&&!t.loading||b)&&(De("gettingData",e,t),t.src&&Vt(t))},initController:function(){r.extend(o,Yt,!0),a.items=Ft=n,Rt=a.getItemAt,zt=o.getNumItemsFn,o.loop,zt()<3&&(o.loop=!1),Ce("beforeChange",(function(e){var t,n=o.preload,i=null===e||e>=0,r=Math.min(n[0],zt()),s=Math.min(n[1],zt());for(t=1;t<=(i?s:r);t++)a.lazyLoadItem(u+t);for(t=1;t<=(i?r:s);t++)a.lazyLoadItem(u-t)})),Ce("initialLayout",(function(){a.currItem.initialLayout=o.getThumbBoundsFn&&o.getThumbBoundsFn(u)})),Ce("mainScrollAnimComplete",Xt),Ce("initialZoomInEnd",Xt),Ce("destroy",(function(){for(var e,t=0;t<Ft.length;t++)(e=Ft[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);qt=null}))},getItemAt:function(e){return e>=0&&(void 0!==Ft[e]&&Ft[e])},allowProgressiveImg:function(){return o.forceProgressiveLoading||!S||o.mouseUsed||screen.width>1200},setContent:function(e,t){o.loop&&(t=xe(t));var n=a.getItemAt(e.index);n&&(n.container=null);var i,l=a.getItemAt(t);if(l){De("gettingData",t,l),e.index=t,e.item=l;var c=l.container=r.createEl("pswp__zoom-wrap");if(!l.src&&l.html&&(l.html.tagName?c.appendChild(l.html):c.innerHTML=l.html),Gt(l),Ut(l,pe),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&((i=r.createEl("pswp__img","img")).style.opacity=1,i.src=l.src,Zt(l,i),Kt(0,l,c,i));else{if(l.loadComplete=function(n){if(s){if(e&&e.index===t){if(Gt(n,!0))return n.loadComplete=n.img=null,Ut(n,pe),Se(n),void(e.index===u&&a.updateCurrZoomItem());n.imageAppended?!Bt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):F.transform&&(ne||Bt)?qt.push({item:n,baseDiv:c,img:n.img,index:t,holder:e,clearPlaceholder:!0}):Kt(0,n,c,n.img,0,!0)}n.loadComplete=null,n.img=null,De("imageLoadComplete",t,n)}},r.features.transform){var d="pswp__img pswp__img--placeholder";d+=l.msrc?"":" pswp__img--placeholder--blank";var p=r.createEl(d,l.msrc?"img":"");l.msrc&&(p.src=l.msrc),Zt(l,p),c.appendChild(p),l.placeholder=p}l.loading||Vt(l),a.allowProgressiveImg()&&(!Ht&&F.transform?qt.push({item:l,baseDiv:c,img:l.img,index:t,holder:e}):Kt(0,l,c,l.img,0,!0))}Ht||t!==u?Se(l):(te=c.style,Wt(l,i||l.img)),e.el.innerHTML="",e.el.appendChild(c)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Qt,Jt,en={},tn=function(e,t,n){var i=document.createEvent("CustomEvent"),r={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,r),e.target.dispatchEvent(i)};be("Tap",{publicMethods:{initTap:function(){Ce("firstTouchStart",a.onTapStart),Ce("touchRelease",a.onTapRelease),Ce("destroy",(function(){en={},Qt=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(Qt),Qt=null)},onTapRelease:function(e,t){var n,i;if(t&&(!V&&!U&&!Ue)){var a=t;if(Qt&&(clearTimeout(Qt),Qt=null,n=a,i=en,Math.abs(n.x-i.x)<25&&Math.abs(n.y-i.y)<25))return void De("doubleTap",a);if("mouse"===t.type)return void tn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||r.hasClass(e.target,"pswp__single-tap"))return void tn(e,t);Ne(en,a),Qt=setTimeout((function(){tn(e,t),Qt=null}),300)}}}}),be("DesktopZoom",{publicMethods:{initDesktopZoom:function(){j||(S?Ce("mouseUsed",(function(){a.setupDesktopZoom()})):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Jt={};var n="wheel mousewheel DOMMouseScroll";Ce("bindEvents",(function(){r.bind(e,n,a.handleMouseWheel)})),Ce("unbindEvents",(function(){Jt&&r.unbind(e,n,a.handleMouseWheel)})),a.mouseZoomedIn=!1;var i,o=function(){a.mouseZoomedIn&&(r.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),g<1?r.addClass(e,"pswp--zoom-allowed"):r.removeClass(e,"pswp--zoom-allowed"),s()},s=function(){i&&(r.removeClass(e,"pswp--dragging"),i=!1)};Ce("resize",o),Ce("afterChange",o),Ce("pointerDown",(function(){a.mouseZoomedIn&&(i=!0,r.addClass(e,"pswp--dragging"))})),Ce("pointerUp",s),t||o()},handleMouseWheel:function(e){if(g<=a.currItem.fitRatio)return o.modal&&(!o.closeOnScroll||Ue||Y?e.preventDefault():E&&Math.abs(e.deltaY)>2&&(c=!0,a.close())),!0;if(e.stopPropagation(),Jt.x=0,"deltaX"in e)1===e.deltaMode?(Jt.x=18*e.deltaX,Jt.y=18*e.deltaY):(Jt.x=e.deltaX,Jt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Jt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Jt.y=-.16*e.wheelDeltaY:Jt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Jt.y=e.detail}He(g,!0);var t=de.x-Jt.x,n=de.y-Jt.y;(o.modal||t<=ee.min.x&&t>=ee.max.x&&n<=ee.min.y&&n>=ee.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:pe.x/2+he.x,y:pe.y/2+he.y};var n=o.getDoubleTapZoom(!0,a.currItem),i=g===n;a.mouseZoomedIn=!i,a.zoomTo(i?a.currItem.initialZoomLevel:n,t,333),r[(i?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var nn,rn,an,on,sn,ln,cn,un,dn,pn,fn,hn,mn={history:!0,galleryUID:1},gn=function(){return fn.hash.substring(1)},vn=function(){nn&&clearTimeout(nn),an&&clearTimeout(an)},yn=function(){var e=gn(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n<i.length;n++)if(i[n]){var r=i[n].split("=");r.length<2||(t[r[0]]=r[1])}if(o.galleryPIDs){var a=t.pid;for(t.pid=0,n=0;n<Ft.length;n++)if(Ft[n].pid===a){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},_n=function(){if(an&&clearTimeout(an),Ue||Y)an=setTimeout(_n,500);else{on?clearTimeout(rn):on=!0;var e=u+1,t=Rt(u);t.hasOwnProperty("pid")&&(e=t.pid);var n=cn+"&gid="+o.galleryUID+"&pid="+e;un||-1===fn.hash.indexOf(n)&&(pn=!0);var i=fn.href.split("#")[0]+"#"+n;hn?"#"+n!==window.location.hash&&history[un?"replaceState":"pushState"]("",document.title,i):un?fn.replace(i):fn.hash=n,un=!0,rn=setTimeout((function(){on=!1}),60)}};be("History",{publicMethods:{initHistory:function(){if(r.extend(o,mn,!0),o.history){fn=window.location,pn=!1,dn=!1,un=!1,cn=gn(),hn="pushState"in history,cn.indexOf("gid=")>-1&&(cn=(cn=cn.split("&gid=")[0]).split("?gid=")[0]),Ce("afterChange",a.updateURL),Ce("unbindEvents",(function(){r.unbind(window,"hashchange",a.onHashChange)}));var e=function(){ln=!0,dn||(pn?history.back():cn?fn.hash=cn:hn?history.pushState("",document.title,fn.pathname+fn.search):fn.hash=""),vn()};Ce("unbindEvents",(function(){c&&e()})),Ce("destroy",(function(){ln||e()})),Ce("firstUpdate",(function(){u=yn().pid}));var t=cn.indexOf("pid=");t>-1&&"&"===(cn=cn.substring(0,t)).slice(-1)&&(cn=cn.slice(0,-1)),setTimeout((function(){s&&r.bind(window,"hashchange",a.onHashChange)}),40)}},onHashChange:function(){if(gn()===cn)return dn=!0,void a.close();on||(sn=!0,a.goTo(yn().pid),sn=!1)},updateURL:function(){vn(),sn||(un?nn=setTimeout(_n,800):_n())}}}),r.extend(a,Xe)}})),function(e){if("undefined"!=typeof window){var t,n=0,i=!1,r=!1,a="message".length,o="[iFrameSizer]",s=o.length,l=null,c=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},d={},p=null,f={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){b("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},h={};window.jQuery&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){j(n,e)})).end()}):w("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],B):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=B()),window.iFrameResize=window.iFrameResize||B()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function v(e,t,n){e.removeEventListener(t,n,!1)}function y(e){return d[e]?d[e].log:i}function _(e,t){x("log",e,t,y(e))}function w(e,t){x("info",e,t,y(e))}function b(e,t){x("warn",e,t,!0)}function x(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return o+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function k(e){function t(){n("Height"),n("Width"),O((function(){M(B),E(R),f("onResized",B)}),B,"init")}function n(e){var t=Number(d[R]["max"+e]),n=Number(d[R]["min"+e]),i=e.toLowerCase(),r=Number(B[i]);_(R,"Checking "+i+" is in range "+n+"-"+t),r<n&&(r=n,_(R,"Set "+i+" to min value")),t<r&&(r=t,_(R,"Set "+i+" to max value")),B[i]=""+r}function i(e){return H.substr(H.indexOf(":")+a+e)}function r(e,t){!function(e,t,n){h[n]||(h[n]=setTimeout((function(){h[n]=null,e()}),32))}((function(){P("Send Page Info","pageInfo:"+function(){var e=document.body.getBoundingClientRect(),t=B.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}(),e,t)}),0,t)}function c(e){var t=e.getBoundingClientRect();return T(R),{x:Math.floor(Number(t.left)+Number(l.x)),y:Math.floor(Number(t.top)+Number(l.y))}}function u(e){var t=e?c(B.iframe):{x:0,y:0},n={x:Number(B.width)+t.x,y:Number(B.height)+t.y};_(R,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):b(R,"Unable to scroll to requested position, window.parentIFrame not found"):(l=n,p(),_(R,"--"))}function p(){!1!==f("onScroll",l)?E(R):A()}function f(e,t){return C(R,e,t)}var m,y,x,k,D,j,L,F,H=e.data,B={},R=null;"[iFrameResizerChild]Ready"===H?function(){for(var e in d)P("iFrame requested init",N(e),d[e].iframe,e)}():o===(""+H).substr(0,s)&&H.substr(s).split(":")[0]in d?(j=(D=H.substr(s).split(":"))[1]?parseInt(D[1],10):0,L=d[D[0]]&&d[D[0]].iframe,F=getComputedStyle(L),B={iframe:L,id:D[0],height:j+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(F)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(F),width:D[2],type:D[3]},R=B.id,d[R]&&(d[R].loaded=!0),(k=B.type in{true:1,false:1,undefined:1})&&_(R,"Ignoring init message from meta parent page"),!k&&(x=!0,d[y=R]||(x=!1,b(B.type+" No settings for "+y+". Message was: "+H)),x)&&(_(R,"Received: "+H),m=!0,null===B.iframe&&(b(R,"IFrame ("+B.id+") not found"),m=!1),m&&function(){var t,n=e.origin,i=d[R]&&d[R].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(_(R,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=d[R]&&d[R].remoteHost,_(R,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+B.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(d[R]&&d[R].firstRun&&d[R]&&(d[R].firstRun=!1),B.type){case"close":I(B.iframe);break;case"message":!function(e){_(R,"onMessage passed: {iframe: "+B.iframe.id+", message: "+e+"}"),f("onMessage",{iframe:B.iframe,message:JSON.parse(e)}),_(R,"--")}(i(6));break;case"autoResize":d[R].autoResize=JSON.parse(i(9));break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":r(d[R]&&d[R].iframe,R),function(){function e(e,i){function a(){d[n]?r(d[n].iframe,n):t()}["scroll","resize"].forEach((function(t){_(n,e+t+" listener for sendPageInfo"),i(window,t,a)}))}function t(){e("Remove ",v)}var n=R;e("Add ",g),d[n]&&(d[n].stopPageInfo=t)}();break;case"pageInfoStop":d[R]&&d[R].stopPageInfo&&(d[R].stopPageInfo(),delete d[R].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",i=decodeURIComponent(n),r=document.getElementById(i)||document.getElementsByName(i)[0];r?(t=c(r),_(R,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),l={x:t.x,y:t.y},p(),_(R,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):_(R,"In page link #"+n+" not found and window.parentIFrame not found"):_(R,"In page link #"+n+" not found")}(i(9));break;case"reset":S(B);break;case"init":t(),f("onInit",B.iframe);break;default:t()}}())):w(R,"Ignored: "+H)}function C(e,t,n){var i=null,r=null;if(d[e]){if("function"!=typeof(i=d[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=i(n)}return r}function D(e){var t=e.id;delete d[t]}function I(e){var t=e.id;if(!1!==C(t,"onClose",t)){_(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){b(e)}C(t,"onClosed",t),_(t,"--"),D(e)}else _(t,"Close iframe cancelled by onClose event")}function T(t){null===l&&_(t,"Get page position: "+(l={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+l.y)}function E(e){null!==l&&(window.scrollTo(l.x,l.y),_(e,"Set page position: "+l.x+","+l.y),A())}function A(){l=null}function S(e){_(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),T(e.id),O((function(){M(e),P("reset","reset",e.iframe,e.id)}),e,"reset")}function M(e){function t(t){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",_(e.id,"IFrame ("+n+") "+t+" set to "+e[t]+"px")):_("undefined","messageData id not set")}(t),function(t){r||"0"!==e[t]||(r=!0,_(n,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(d).forEach((function(e){!function(e){function t(t){return"0px"===(d[e]&&d[e].iframe.style[t])}d[e]&&null!==d[e].iframe.offsetParent&&(t("height")||t("width"))&&P("Visibility change","resize",d[e].iframe,e)}(e)}))}function t(t){_("window","Mutation observed: "+t[0].target+" "+t[0].type),L(e,16)}var n=m();n&&function(){var e=document.querySelector("body");new n(t).observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}()}())}(t)}var n=e.iframe.id;d[n]&&(d[n].sizeHeight&&t("height"),d[n].sizeWidth&&t("width"))}function O(e,t,n){n!==t.type&&c&&!window.jasmine?(_(t.id,"Requesting animation frame"),c(e)):e()}function P(e,t,n,i,r){var a,s=!1;i=i||n.id,d[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(a=d[i]&&d[i].targetOrigin,_(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+a),n.contentWindow.postMessage(o+t,a)):b(i,"["+e+"] IFrame("+i+") not found"),r&&d[i]&&d[i].warningTimeout&&(d[i].msgTimeout=setTimeout((function(){!d[i]||d[i].loaded||s||(s=!0,b(i,"IFrame has not responded within "+d[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),d[i].warningTimeout)))}function N(e){return e+":"+d[e].bodyMarginV1+":"+d[e].sizeWidth+":"+d[e].log+":"+d[e].interval+":"+d[e].enablePublicMethods+":"+d[e].autoResize+":"+d[e].bodyMargin+":"+d[e].heightCalculationMethod+":"+d[e].bodyBackground+":"+d[e].bodyPadding+":"+d[e].tolerance+":"+d[e].inPageLinks+":"+d[e].resizeFrom+":"+d[e].widthCalculationMethod}function j(t,r){var a,o,s,l,c,p,h=(""===(o=t.id)&&(t.id=(a=r&&r.id||f.id+n++,null!==document.getElementById(a)&&(a+=n++),o=a),i=(r||{}).log,_(o,"Added missing iframe ID: "+o+" ("+t.src+")")),o);function v(e){1/0!==d[h][e]&&0!==d[h][e]&&(t.style[e]=d[h][e]+"px",_(h,"Set "+e+" = "+d[h][e]+"px"))}function y(e){if(d[h]["min"+e]>d[h]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}h in d&&"iFrameResizer"in t?b(h,"Ignored iFrame, already setup."):(p=(p=r)||{},d[h]={firstRun:!0,iframe:t,remoteHost:t.src&&t.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(p),Object.keys(p).forEach((function(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],b(h,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}),p),function(e){for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&(d[h][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:f[t])}(p),d[h]&&(d[h].targetOrigin=!0===d[h].checkOrigin?function(e){return""===e||null!==e.match(/^(about:blank|javascript:|file:\/\/)/)?"*":e}(d[h].remoteHost):"*"),function(){switch(_(h,"IFrame scrolling "+(d[h]&&d[h].scrolling?"enabled":"disabled")+" for "+h),t.style.overflow=!1===(d[h]&&d[h].scrolling)?"hidden":"auto",d[h]&&d[h].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=d[h]?d[h].scrolling:"no"}}(),y("Height"),y("Width"),v("maxHeight"),v("minHeight"),v("maxWidth"),v("minWidth"),"number"!=typeof(d[h]&&d[h].bodyMargin)&&"0"!==(d[h]&&d[h].bodyMargin)||(d[h].bodyMarginV1=d[h].bodyMargin,d[h].bodyMargin=d[h].bodyMargin+"px"),s=N(h),(c=m())&&(l=c,t.parentNode&&new l((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&I(t)}))}))})).observe(t.parentNode,{childList:!0})),g(t,"load",(function(){P("iFrame.onload",s,t,e,!0),function(){var e=d[h]&&d[h].firstRun,n=d[h]&&d[h].heightCalculationMethod in u;!e&&n&&S({iframe:t,height:0,width:0,type:"init"})}()})),P("init",s,t,e,!0),d[h]&&(d[h].iframe.iFrameResizer={close:I.bind(null,d[h].iframe),removeListeners:D.bind(null,d[h].iframe),resize:P.bind(null,"Window resize","resize",d[h].iframe),moveToAnchor:function(e){P("Move to anchor","moveToAnchor:"+e,d[h].iframe,h)},sendMessage:function(e){P("Send Message","message:"+(e=JSON.stringify(e)),d[h].iframe,h)}}))}function L(e,t){null===p&&(p=setTimeout((function(){p=null,e()}),t))}function F(){"hidden"!==document.visibilityState&&(_("document","Trigger event: Visiblity change"),L((function(){H("Tab Visable","resize")}),16))}function H(e,t){Object.keys(d).forEach((function(n){!function(e){return d[e]&&"parent"===d[e].resizeFrom&&d[e].autoResize&&!d[e].firstRun}(n)||P(e,t,d[n].iframe,n)}))}function B(){function t(e,t){t&&(function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),j(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!c;e+=1)c=window[t[e]+"RequestAnimationFrame"];c||_("setup","RequestAnimationFrame not supported")}(),g(window,"message",k),g(window,"resize",(function(){!function(e){_("window","Trigger event: "+e),L((function(){H("Window "+e,"resize")}),16)}("resize")})),g(document,"visibilitychange",F),g(document,"-webkit-visibilitychange",F),function(i,r){switch(n=[],function(e){e&&e.enablePublicMethods&&b("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),t.bind(e,i));break;case"object":t(i,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return n}}}();var scripts=document.getElementsByTagName("script"),path=scripts[scripts.length-1].src.split("?")[0],tarteaucitronForceCDN=void 0===tarteaucitronForceCDN?"":tarteaucitronForceCDN,cdn=""===tarteaucitronForceCDN?path.split("/").slice(0,-1).join("/")+"/":tarteaucitronForceCDN,alreadyLaunch=void 0===alreadyLaunch?0:alreadyLaunch,tarteaucitronForceLanguage=void 0===tarteaucitronForceLanguage?"":tarteaucitronForceLanguage,tarteaucitronForceExpire=void 0===tarteaucitronForceExpire?"":tarteaucitronForceExpire,tarteaucitronCustomText=void 0===tarteaucitronCustomText?"":tarteaucitronCustomText,tarteaucitronExpireInDay=void 0===tarteaucitronExpireInDay||"boolean"!=typeof tarteaucitronExpireInDay||tarteaucitronExpireInDay,timeExpire=31536e6,tarteaucitronProLoadServices,tarteaucitronNoAdBlocker=!1,tarteaucitron={version:20181120,cdn:cdn,user:{},lang:{},services:{},added:[],idprocessed:[],state:[],launch:[],parameters:{},isAjax:!1,reloadThePage:!1,events:{init:function(){},load:function(){}},init:function(e){"use strict";var t;tarteaucitron.parameters=e,0===alreadyLaunch&&(alreadyLaunch=1,window.addEventListener?(window.addEventListener("load",(function(){tarteaucitron.load(),tarteaucitron.fallback(["tarteaucitronOpenPanel"],(function(e){e.addEventListener("click",(function(e){tarteaucitron.userInterface.openPanel(),e.preventDefault()}),!1)}),!0)}),!1),window.addEventListener("scroll",(function(){var e,t=window.pageYOffset||document.documentElement.scrollTop;null===document.getElementById("tarteaucitronAlertBig")||tarteaucitron.highPrivacy||"block"===document.getElementById("tarteaucitronAlertBig").style.display&&(e=document.getElementById("tarteaucitronAlertBig").offsetHeight+"px",t>2*screen.height?tarteaucitron.userInterface.respondAll(!0):t>screen.height/2&&(document.getElementById("tarteaucitronDisclaimerAlert").innerHTML="<strong>"+tarteaucitron.lang.alertBigScroll+"</strong> "+tarteaucitron.lang.alertBig),"top"===tarteaucitron.orientation?document.getElementById("tarteaucitronPercentage").style.top=e:document.getElementById("tarteaucitronPercentage").style.bottom=e,document.getElementById("tarteaucitronPercentage").style.width=100/(2*screen.height)*t+"%")}),!1),window.addEventListener("keydown",(function(e){27===e.keyCode&&tarteaucitron.userInterface.closePanel()}),!1),window.addEventListener("hashchange",(function(){document.location.hash===tarteaucitron.hashtag&&""!==tarteaucitron.hashtag&&tarteaucitron.userInterface.openPanel()}),!1),window.addEventListener("resize",(function(){null!==document.getElementById("tarteaucitron")&&"block"===document.getElementById("tarteaucitron").style.display&&tarteaucitron.userInterface.jsSizing("main"),null!==document.getElementById("tarteaucitronCookiesListContainer")&&"block"===document.getElementById("tarteaucitronCookiesListContainer").style.display&&tarteaucitron.userInterface.jsSizing("cookie")}),!1)):(window.attachEvent("onload",(function(){tarteaucitron.load(),tarteaucitron.fallback(["tarteaucitronOpenPanel"],(function(e){e.attachEvent("onclick",(function(e){tarteaucitron.userInterface.openPanel(),e.preventDefault()}))}),!0)})),window.attachEvent("onscroll",(function(){var e,t=window.pageYOffset||document.documentElement.scrollTop;null===document.getElementById("tarteaucitronAlertBig")||tarteaucitron.highPrivacy||"block"===document.getElementById("tarteaucitronAlertBig").style.display&&(e=document.getElementById("tarteaucitronAlertBig").offsetHeight+"px",t>2*screen.height?tarteaucitron.userInterface.respondAll(!0):t>screen.height/2&&(document.getElementById("tarteaucitronDisclaimerAlert").innerHTML="<strong>"+tarteaucitron.lang.alertBigScroll+"</strong> "+tarteaucitron.lang.alertBig),"top"===tarteaucitron.orientation?document.getElementById("tarteaucitronPercentage").style.top=e:document.getElementById("tarteaucitronPercentage").style.bottom=e,document.getElementById("tarteaucitronPercentage").style.width=100/(2*screen.height)*t+"%")})),window.attachEvent("onkeydown",(function(e){27===e.keyCode&&tarteaucitron.userInterface.closePanel(),9===e.keyCode&&focusableEls.indexOf(e.target)>=0&&(e.shiftKey?document.activeElement===firstFocusableEl&&(lastFocusableEl.focus(),e.preventDefault()):document.activeElement===lastFocusableEl&&(firstFocusableEl.focus(),e.preventDefault()))})),window.attachEvent("onhashchange",(function(){document.location.hash===tarteaucitron.hashtag&&""!==tarteaucitron.hashtag&&tarteaucitron.userInterface.openPanel()})),window.attachEvent("onresize",(function(){null!==document.getElementById("tarteaucitron")&&"block"===document.getElementById("tarteaucitron").style.display&&tarteaucitron.userInterface.jsSizing("main"),null!==document.getElementById("tarteaucitronCookiesListContainer")&&"block"===document.getElementById("tarteaucitronCookiesListContainer").style.display&&tarteaucitron.userInterface.jsSizing("cookie")}))),"undefined"!=typeof XMLHttpRequest&&(t=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){window.addEventListener?this.addEventListener("load",(function(){"function"==typeof tarteaucitronProLoadServices&&tarteaucitronProLoadServices()}),!1):void 0!==this.attachEvent?this.attachEvent("onload",(function(){"function"==typeof tarteaucitronProLoadServices&&tarteaucitronProLoadServices()})):"function"==typeof tarteaucitronProLoadServices&&setTimeout(tarteaucitronProLoadServices,1e3);try{t.apply(this,arguments)}catch(e){}})),tarteaucitron.events.init&&tarteaucitron.events.init()},load:function(){"use strict";var e=tarteaucitron.cdn,t=e+"lang/tarteaucitron."+tarteaucitron.getLanguage()+".js?v="+tarteaucitron.version,n=e+"tarteaucitron.services.js?v="+tarteaucitron.version,i=document.createElement("link"),r={adblocker:!1,hashtag:"#tarteaucitron",cookieName:"tarteaucitron",highPrivacy:!1,orientation:"top",removeCredit:!1,showAlertSmall:!0,cookieslist:!0,handleBrowserDNTRequest:!1,AcceptAllCta:!1,moreInfoLink:!0,privacyUrl:"",useExternalCss:!1};if(void 0!==tarteaucitron.parameters)for(var a in r)tarteaucitron.parameters.hasOwnProperty(a)||(tarteaucitron.parameters[a]=r[a]);tarteaucitron.orientation=tarteaucitron.parameters.orientation,tarteaucitron.hashtag=tarteaucitron.parameters.hashtag,tarteaucitron.highPrivacy=tarteaucitron.parameters.highPrivacy,tarteaucitron.handleBrowserDNTRequest=tarteaucitron.parameters.handleBrowserDNTRequest,tarteaucitron.parameters.useExternalCss||(i.rel="stylesheet",i.type="text/css",i.href=e+"css/tarteaucitron.css?v="+tarteaucitron.version,document.getElementsByTagName("head")[0].appendChild(i)),tarteaucitron.addScript(t,"",(function(){""!==tarteaucitronCustomText&&(tarteaucitron.lang=tarteaucitron.AddOrUpdate(tarteaucitron.lang,tarteaucitronCustomText)),tarteaucitron.addScript(n,"",(function(){var e,t,n=document.body,i=document.createElement("div"),r="",a="Top",o=["ads","analytic","api","comment","social","support","video","other"];for(o=o.sort((function(e,t){return tarteaucitron.lang[e].title>tarteaucitron.lang[t].title?1:tarteaucitron.lang[e].title<tarteaucitron.lang[t].title?-1:0})),r+='<div id="tarteaucitronPremium"></div>',r+='<button type="button" id="tarteaucitronBack" onclick="tarteaucitron.userInterface.closePanel();" aria-label="'+tarteaucitron.lang.close+'"></button>',r+='<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">',r+='   <button type="button" id="tarteaucitronClosePanel" onclick="tarteaucitron.userInterface.closePanel();">',r+="       "+tarteaucitron.lang.close,r+="   </button>",r+='   <div id="tarteaucitronServices">',r+='      <div class="tarteaucitronLine tarteaucitronMainLine" id="tarteaucitronMainLineOffset">',r+='         <span class="tarteaucitronH1" role="heading" aria-level="1" id="dialogTitle">'+tarteaucitron.lang.title+"</span>",r+='         <div id="tarteaucitronInfo" class="tarteaucitronInfoBox">',r+="         "+tarteaucitron.lang.disclaimer,""!==tarteaucitron.parameters.privacyUrl&&(r+="   <br/><br/>",r+='   <button type="button" id="tarteaucitronPrivacyUrl" onclick="document.location = tarteaucitron.parameters.privacyUrl">',r+="       "+tarteaucitron.lang.privacyUrl,r+="   </button>"),r+="         </div>",r+='         <div class="tarteaucitronName">',r+='            <span class="tarteaucitronH2" role="heading" aria-level="2">'+tarteaucitron.lang.all+"</span>",r+="         </div>",r+='         <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">',r+='            <button type="button" id="tarteaucitronAllAllowed" class="tarteaucitronAllow" onclick="tarteaucitron.userInterface.respondAll(true);">',r+="               &#10003; "+tarteaucitron.lang.allowAll,r+="            </button> ",r+='            <button type="button" id="tarteaucitronAllDenied" class="tarteaucitronDeny" onclick="tarteaucitron.userInterface.respondAll(false);">',r+="               &#10007; "+tarteaucitron.lang.denyAll,r+="            </button>",r+="         </div>",r+="      </div>",r+='      <div class="tarteaucitronBorder">',r+='         <div class="clear"></div><ul>',t=0;t<o.length;t+=1)r+='         <li id="tarteaucitronServicesTitle_'+o[t]+'" class="tarteaucitronHidden">',r+='            <div class="tarteaucitronTitle">',r+='               <button type="button" onclick="tarteaucitron.userInterface.toggle(\'tarteaucitronDetails'+o[t]+"', 'tarteaucitronInfoBox');return false\">&#10011; "+tarteaucitron.lang[o[t]].title+"</button>",r+="            </div>",r+='            <div id="tarteaucitronDetails'+o[t]+'" class="tarteaucitronDetails tarteaucitronInfoBox">',r+="               "+tarteaucitron.lang[o[t]].details,r+="            </div>",r+='         <ul id="tarteaucitronServices_'+o[t]+'"></ul></li>';r+="         </ul>",r+='         <div class="tarteaucitronHidden" id="tarteaucitronScrollbarChild" style="height:20px;display:block"></div>',!1===tarteaucitron.parameters.removeCredit&&(r+='     <a class="tarteaucitronSelfLink" href="https://opt-out.ferank.eu/" rel="nofollow noreferrer noopener" target="_blank" title="tarteaucitron '+tarteaucitron.lang.newWindow+'">🍋 '+tarteaucitron.lang.credit+"</a>"),r+="       </div>",r+="   </div>",r+="</div>","bottom"===tarteaucitron.parameters.orientation&&(a="Bottom"),tarteaucitron.parameters.highPrivacy&&!tarteaucitron.parameters.AcceptAllCta?(r+='<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig'+a+'">',r+='<div class="tarteaucitronAlertBigWrapper">',r+='   <span id="tarteaucitronDisclaimerAlert">',r+="       "+tarteaucitron.lang.alertBigPrivacy,r+="   </span>",r+='   <span class="tarteaucitronAlertBigBtnWrapper">',r+='   <button type="button" id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.openPanel();">',r+="       "+tarteaucitron.lang.personalize,r+="   </button>",""!==tarteaucitron.parameters.privacyUrl&&(r+='   <button type="button" id="tarteaucitronPrivacyUrl" onclick="document.location = tarteaucitron.parameters.privacyUrl">',r+="       "+tarteaucitron.lang.privacyUrl,r+="   </button>"),r+="   </span>",r+="</div>",r+="</div>"):(r+='<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig'+a+'">',r+='<div class="tarteaucitronAlertBigWrapper">',r+='   <span id="tarteaucitronDisclaimerAlert">',tarteaucitron.parameters.highPrivacy?r+="       "+tarteaucitron.lang.alertBigPrivacy:r+="       "+tarteaucitron.lang.alertBigClick+" "+tarteaucitron.lang.alertBig,r+="   </span>",r+='   <span class="tarteaucitronAlertBigBtnWrapper">',r+='   <button type="button" id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.respondAll(true);">',r+="       &#10003; "+tarteaucitron.lang.acceptAll,r+="   </button>",r+='   <button type="button" id="tarteaucitronCloseAlert" onclick="tarteaucitron.userInterface.openPanel();">',r+="       "+tarteaucitron.lang.personalize,r+="   </button>",r+="   </span>",r+="</div>",r+="</div>",r+='<div id="tarteaucitronPercentage"></div>'),!0===tarteaucitron.parameters.showAlertSmall&&(r+='<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall'+a+'">',r+='   <button type="button" id="tarteaucitronManager" onclick="tarteaucitron.userInterface.openPanel();">',r+="       "+tarteaucitron.lang.alertSmall,r+='       <span id="tarteaucitronDot">',r+='           <span id="tarteaucitronDotGreen"></span>',r+='           <span id="tarteaucitronDotYellow"></span>',r+='           <span id="tarteaucitronDotRed"></span>',r+="       </span>",!0===tarteaucitron.parameters.cookieslist?(r+="   </button>\x3c!-- @whitespace",r+='   --\x3e<button type="button" id="tarteaucitronCookiesNumber" onclick="tarteaucitron.userInterface.toggleCookiesList();">0</button>',r+='   <div id="tarteaucitronCookiesListContainer">',r+='       <button type="button" id="tarteaucitronClosePanelCookie" onclick="tarteaucitron.userInterface.closePanel();">',r+="           "+tarteaucitron.lang.close,r+="       </button>",r+='       <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">',r+='            <span class="tarteaucitronH2" role="heading" aria-level="2" id="tarteaucitronCookiesNumberBis">0 cookie</span>',r+="       </div>",r+='       <div id="tarteaucitronCookiesList"></div>',r+="    </div>"):r+="   </div>",r+="</div>"),tarteaucitron.addScript(tarteaucitron.cdn+"advertising.js?v="+tarteaucitron.version,"",(function(){if(!0===tarteaucitronNoAdBlocker||!1===tarteaucitron.parameters.adblocker){var t;if(i.id="tarteaucitronRoot",n.appendChild(i,n),i.innerHTML=r,"function"==typeof Event?t=new Event("tac.root_available"):(t=document.createEvent("Event")).initEvent("tac.root_available",!0,!0),window.dispatchEvent(t),void 0!==tarteaucitron.job)for(tarteaucitron.job=tarteaucitron.cleanArray(tarteaucitron.job),e=0;e<tarteaucitron.job.length;e+=1)tarteaucitron.addService(tarteaucitron.job[e]);else tarteaucitron.job=[];tarteaucitron.isAjax=!0,tarteaucitron.job.push=function(e){void 0===tarteaucitron.job.indexOf&&(tarteaucitron.job.indexOf=function(e,t){var n,i=this.length;for(n=t||0;n<i;n+=1)if(this[n]===e)return n;return-1}),-1===tarteaucitron.job.indexOf(e)&&Array.prototype.push.call(this,e),tarteaucitron.launch[e]=!1,tarteaucitron.addService(e)},document.location.hash===tarteaucitron.hashtag&&""!==tarteaucitron.hashtag&&tarteaucitron.userInterface.openPanel(),tarteaucitron.cookie.number(),setInterval(tarteaucitron.cookie.number,6e4)}}),tarteaucitron.parameters.adblocker),!0===tarteaucitron.parameters.adblocker&&setTimeout((function(){!1===tarteaucitronNoAdBlocker&&(r='<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig'+a+'" style="display:block" role="alert" aria-live="polite">',r+='   <p id="tarteaucitronDisclaimerAlert">',r+="       "+tarteaucitron.lang.adblock+"<br/>",r+="       <strong>"+tarteaucitron.lang.adblock_call+"</strong>",r+="   </p>",r+='   <button type="button" id="tarteaucitronPersonalize" onclick="location.reload();">',r+="       "+tarteaucitron.lang.reload,r+="   </button>",r+="</div>",r+='<div id="tarteaucitronPremium"></div>',i.id="tarteaucitronRoot",n.appendChild(i,n),i.innerHTML=r)}),1500)}))})),tarteaucitron.events.load&&tarteaucitron.events.load()},addService:function(e){"use strict";var t="",n=tarteaucitron.services[e],i=tarteaucitron.cookie.read(),r=document.location.hostname,a=document.referrer.split("/")[2]===r&&window.location.href!==tarteaucitron.parameters.privacyUrl,o=!n.needConsent,s=i.indexOf(n.key+"=wait")>=0,l=i.indexOf(n.key+"=false")>=0,c=i.indexOf(n.key+"=true")>=0,u=i.indexOf(n.key+"=false")>=0||i.indexOf(n.key+"=true")>=0,d="1"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack;if(!0!==tarteaucitron.added[n.key]){if(tarteaucitron.added[n.key]=!0,t+='<li id="'+n.key+'Line" class="tarteaucitronLine">',t+='   <div class="tarteaucitronName">',t+='       <span class="tarteaucitronH3" role="heading" aria-level="3">'+n.name+"</span>",t+='       <span id="tacCL'+n.key+'" class="tarteaucitronListCookies"></span><br/>',1==tarteaucitron.parameters.moreInfoLink){var p="https://opt-out.ferank.eu/service/"+n.key+"/";void 0!==n.readmoreLink&&""!==n.readmoreLink&&(p=n.readmoreLink),void 0!==tarteaucitron.parameters.readmoreLink&&""!==tarteaucitron.parameters.readmoreLink&&(p=tarteaucitron.parameters.readmoreLink),t+='       <a href="'+p+'" target="_blank" rel="noreferrer noopener" title="'+tarteaucitron.lang.cookieDetail+" "+n.name+" "+tarteaucitron.lang.ourSite+" "+tarteaucitron.lang.newWindow+'">',t+="           "+tarteaucitron.lang.more,t+="       </a>",t+="        - ",t+='       <a href="'+n.uri+'" target="_blank" rel="noreferrer noopener" title="'+n.name+" "+tarteaucitron.lang.newWindow+'">',t+="           "+tarteaucitron.lang.source,t+="       </a>"}t+="   </div>",t+='   <div class="tarteaucitronAsk">',t+='       <button type="button" id="'+n.key+'Allowed" class="tarteaucitronAllow" onclick="tarteaucitron.userInterface.respond(this, true);">',t+="           &#10003; "+tarteaucitron.lang.allow,t+="       </button> ",t+='       <button type="button" id="'+n.key+'Denied" class="tarteaucitronDeny" onclick="tarteaucitron.userInterface.respond(this, false);">',t+="           &#10007; "+tarteaucitron.lang.deny,t+="       </button>",t+="   </div>",t+="</li>",tarteaucitron.userInterface.css("tarteaucitronServicesTitle_"+n.type,"display","block"),null!==document.getElementById("tarteaucitronServices_"+n.type)&&(document.getElementById("tarteaucitronServices_"+n.type).innerHTML+=t),tarteaucitron.userInterface.order(n.type)}tarteaucitron.pro("!"+n.key+"="+c),!1===u&&!0===tarteaucitron.user.bypass&&(c=!0,tarteaucitron.cookie.create(n.key,!0)),!u&&(o||a&&s)&&!tarteaucitron.highPrivacy||c?(c||tarteaucitron.cookie.create(n.key,!0),!0!==tarteaucitron.launch[n.key]&&(tarteaucitron.launch[n.key]=!0,n.js()),tarteaucitron.state[n.key]=!0,tarteaucitron.userInterface.color(n.key,!0)):l?("function"==typeof n.fallback&&n.fallback(),tarteaucitron.state[n.key]=!1,tarteaucitron.userInterface.color(n.key,!1)):!u&&d&&tarteaucitron.handleBrowserDNTRequest?(tarteaucitron.cookie.create(n.key,"false"),"function"==typeof n.fallback&&n.fallback(),tarteaucitron.state[n.key]=!1,tarteaucitron.userInterface.color(n.key,!1)):u||(tarteaucitron.cookie.create(n.key,"wait"),"function"==typeof n.fallback&&n.fallback(),tarteaucitron.userInterface.color(n.key,"wait"),tarteaucitron.userInterface.openAlert()),tarteaucitron.cookie.checkCount(n.key)},cleanArray:function(e){"use strict";var t,n=e.length,i=[],r={},a=tarteaucitron.services;for(t=0;t<n;t+=1)r[e[t]]||(r[e[t]]={},void 0!==tarteaucitron.services[e[t]]&&i.push(e[t]));return i=i.sort((function(e,t){return a[e].type+a[e].key>a[t].type+a[t].key?1:a[e].type+a[e].key<a[t].type+a[t].key?-1:0}))},userInterface:{css:function(e,t,n){"use strict";null!==document.getElementById(e)&&(document.getElementById(e).style[t]=n)},addClass:function(e,t){"use strict";null!==document.getElementById(e)&&document.getElementById(e).classList.add(t)},removeClass:function(e,t){"use strict";null!==document.getElementById(e)&&document.getElementById(e).classList.remove(t)},respondAll:function(e){"use strict";var t,n=tarteaucitron.services,i=0;for(i=0;i<tarteaucitron.job.length;i+=1)t=n[tarteaucitron.job[i]].key,tarteaucitron.state[t]!==e&&(!1===e&&!0===tarteaucitron.launch[t]&&(tarteaucitron.reloadThePage=!0),!0!==tarteaucitron.launch[t]&&!0===e&&(tarteaucitron.pro("!"+t+"=engage"),tarteaucitron.launch[t]=!0,tarteaucitron.services[t].js()),tarteaucitron.state[t]=e,tarteaucitron.cookie.create(t,e),tarteaucitron.userInterface.color(t,e))},respond:function(e,t){"use strict";var n=e.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed","g"),"");tarteaucitron.state[n]!==t&&(!1===t&&!0===tarteaucitron.launch[n]&&(tarteaucitron.reloadThePage=!0),!0===t&&!0!==tarteaucitron.launch[n]&&(tarteaucitron.pro("!"+n+"=engage"),tarteaucitron.launch[n]=!0,tarteaucitron.services[n].js()),tarteaucitron.state[n]=t,tarteaucitron.cookie.create(n,t),tarteaucitron.userInterface.color(n,t))},color:function(e,t){"use strict";var n,i="tarteaucitron",r=0,a=0,o=0,s=tarteaucitron.job.length;for(!0===t?(document.getElementById(e+"Line").classList.add("tarteaucitronIsAllowed"),document.getElementById(e+"Line").classList.remove("tarteaucitronIsDenied")):!1===t&&(document.getElementById(e+"Line").classList.remove("tarteaucitronIsAllowed"),document.getElementById(e+"Line").classList.add("tarteaucitronIsDenied")),n=0;n<s;n+=1)!1===tarteaucitron.state[tarteaucitron.job[n]]?r+=1:void 0===tarteaucitron.state[tarteaucitron.job[n]]?a+=1:!0===tarteaucitron.state[tarteaucitron.job[n]]&&(o+=1);tarteaucitron.userInterface.css(i+"DotGreen","width",100/s*o+"%"),tarteaucitron.userInterface.css(i+"DotYellow","width",100/s*a+"%"),tarteaucitron.userInterface.css(i+"DotRed","width",100/s*r+"%"),0===r&&0===a?(tarteaucitron.userInterface.removeClass(i+"AllDenied",i+"IsSelected"),tarteaucitron.userInterface.addClass(i+"AllAllowed",i+"IsSelected"),tarteaucitron.userInterface.addClass(i+"MainLineOffset",i+"IsAllowed"),tarteaucitron.userInterface.removeClass(i+"MainLineOffset",i+"IsDenied")):0===o&&0===a?(tarteaucitron.userInterface.removeClass(i+"AllAllowed",i+"IsSelected"),tarteaucitron.userInterface.addClass(i+"AllDenied",i+"IsSelected"),tarteaucitron.userInterface.removeClass(i+"MainLineOffset",i+"IsAllowed"),tarteaucitron.userInterface.addClass(i+"MainLineOffset",i+"IsDenied")):(tarteaucitron.userInterface.removeClass(i+"AllAllowed",i+"IsSelected"),tarteaucitron.userInterface.removeClass(i+"AllDenied",i+"IsSelected"),tarteaucitron.userInterface.removeClass(i+"MainLineOffset",i+"IsAllowed"),tarteaucitron.userInterface.removeClass(i+"MainLineOffset",i+"IsDenied")),0===a&&tarteaucitron.userInterface.closeAlert(),tarteaucitron.services[e].cookies.length>0&&!1===t&&tarteaucitron.cookie.purge(tarteaucitron.services[e].cookies),!0===t?(null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML="..."),setTimeout((function(){tarteaucitron.cookie.checkCount(e)}),2500)):tarteaucitron.cookie.checkCount(e)},openPanel:function(){"use strict";var e;tarteaucitron.userInterface.css("tarteaucitron","display","block"),tarteaucitron.userInterface.css("tarteaucitronBack","display","block"),tarteaucitron.userInterface.css("tarteaucitronCookiesListContainer","display","none"),document.getElementById("tarteaucitronClosePanel").focus(),document.getElementsByTagName("body")[0].classList.add("modal-open"),tarteaucitron.userInterface.focusTrap(),tarteaucitron.userInterface.jsSizing("main"),"function"==typeof Event?e=new Event("tac.open_panel"):(e=document.createEvent("Event")).initEvent("tac.open_panel",!0,!0),window.dispatchEvent(e)},closePanel:function(){"use strict";var e;document.location.hash===tarteaucitron.hashtag&&(window.history?window.history.replaceState("",document.title,window.location.pathname+window.location.search):document.location.hash=""),tarteaucitron.userInterface.css("tarteaucitron","display","none"),tarteaucitron.userInterface.css("tarteaucitronCookiesListContainer","display","none"),tarteaucitron.fallback(["tarteaucitronInfoBox"],(function(e){e.style.display="none"}),!0),!0===tarteaucitron.reloadThePage?window.location.reload():tarteaucitron.userInterface.css("tarteaucitronBack","display","none"),null!==document.getElementById("tarteaucitronCloseAlert")&&document.getElementById("tarteaucitronCloseAlert").focus(),document.getElementsByTagName("body")[0].classList.remove("modal-open"),"function"==typeof Event?e=new Event("tac.close_panel"):(e=document.createEvent("Event")).initEvent("tac.close_panel",!0,!0),window.dispatchEvent(e)},focusTrap:function(){"use strict";var e,t,n,i;i=[];for(var r=0,a=(e=document.getElementById("tarteaucitron").querySelectorAll("a[href], button")).length;r<a;r++)e[r].offsetHeight>0&&i.push(e[r]);t=i[0],n=i[i.length-1],document.getElementById("tarteaucitron").addEventListener("keydown",(function(e){"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault()))}))},openAlert:function(){"use strict";var e,t="tarteaucitron";tarteaucitron.userInterface.css(t+"Percentage","display","block"),tarteaucitron.userInterface.css(t+"AlertSmall","display","none"),tarteaucitron.userInterface.css(t+"AlertBig","display","block"),"function"==typeof Event?e=new Event("tac.open_alert"):(e=document.createEvent("Event")).initEvent("tac.open_alert",!0,!0),window.dispatchEvent(e)},closeAlert:function(){"use strict";var e,t="tarteaucitron";tarteaucitron.userInterface.css(t+"Percentage","display","none"),tarteaucitron.userInterface.css(t+"AlertSmall","display","block"),tarteaucitron.userInterface.css(t+"AlertBig","display","none"),tarteaucitron.userInterface.jsSizing("box"),"function"==typeof Event?e=new Event("tac.close_alert"):(e=document.createEvent("Event")).initEvent("tac.close_alert",!0,!0),window.dispatchEvent(e)},toggleCookiesList:function(){"use strict";var e=document.getElementById("tarteaucitronCookiesListContainer");null!==e&&("block"!==e.style.display?(tarteaucitron.cookie.number(),e.style.display="block",tarteaucitron.userInterface.jsSizing("cookie"),tarteaucitron.userInterface.css("tarteaucitron","display","none"),tarteaucitron.userInterface.css("tarteaucitronBack","display","block"),tarteaucitron.fallback(["tarteaucitronInfoBox"],(function(e){e.style.display="none"}),!0)):(e.style.display="none",tarteaucitron.userInterface.css("tarteaucitron","display","none"),tarteaucitron.userInterface.css("tarteaucitronBack","display","none")))},toggle:function(e,t){"use strict";var n=document.getElementById(e);null!==n&&(void 0!==t&&tarteaucitron.fallback([t],(function(t){t.id!==e&&(t.style.display="none")}),!0),"block"!==n.style.display?n.style.display="block":n.style.display="none")},order:function(e){"use strict";var t=document.getElementById("tarteaucitronServices_"+e);null!==t&&(t.childNodes,"function"==typeof Array.prototype.map&&"undefined"==typeof Enumerable&&Array.prototype.map.call(t.children,Object).sort((function(e,t){return tarteaucitron.services[e.id.replace(/Line/g,"")].name>tarteaucitron.services[t.id.replace(/Line/g,"")].name?1:tarteaucitron.services[e.id.replace(/Line/g,"")].name<tarteaucitron.services[t.id.replace(/Line/g,"")].name?-1:0})).forEach((function(e){t.appendChild(e)})))},jsSizing:function(e){"use strict";var t,n,i,r,a,o,s,l,c=10,u=window,d="inner",p=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;"box"===e?null!==document.getElementById("tarteaucitronAlertSmall")&&null!==document.getElementById("tarteaucitronCookiesNumber")&&(tarteaucitron.userInterface.css("tarteaucitronCookiesNumber","padding","0px 10px"),l=(document.getElementById("tarteaucitronAlertSmall").offsetHeight-document.getElementById("tarteaucitronCookiesNumber").offsetHeight)/2,tarteaucitron.userInterface.css("tarteaucitronCookiesNumber","padding",l+"px 10px")):"main"===e?(void 0===window.innerWidth&&(d="client",u=document.documentElement||document.body),null!==document.getElementById("tarteaucitron")&&null!==document.getElementById("tarteaucitronClosePanel")&&null!==document.getElementById("tarteaucitronMainLineOffset")&&(tarteaucitron.userInterface.css("tarteaucitronServices","height","auto"),i=document.getElementById("tarteaucitron").offsetHeight-document.getElementById("tarteaucitronClosePanel").offsetHeight+2,tarteaucitron.userInterface.css("tarteaucitronServices","height",i+"px"),tarteaucitron.userInterface.css("tarteaucitronServices","overflow-x","auto")),null!==document.getElementById("tarteaucitronServices")&&null!==document.getElementById("tarteaucitronScrollbarChild")&&(u[d+"Width"]<=479?tarteaucitron.userInterface.css("tarteaucitronScrollbarAdjust","marginLeft","11px"):u[d+"Width"]<=767&&(c=12),t=document.getElementById("tarteaucitronServices").offsetWidth,n=document.getElementById("tarteaucitronScrollbarChild").offsetWidth,tarteaucitron.userInterface.css("tarteaucitronScrollbarAdjust","marginRight",t-n+c+"px")),null!==document.getElementById("tarteaucitron")&&(r=u[d+"Width"]<=767?0:(p-document.getElementById("tarteaucitron").offsetHeight)/2-21,null!==document.getElementById("tarteaucitronMainLineOffset")&&document.getElementById("tarteaucitron").offsetHeight<p/2&&(r-=document.getElementById("tarteaucitronMainLineOffset").offsetHeight),r<0&&(r=0),tarteaucitron.userInterface.css("tarteaucitron","top",r+"px"))):"cookie"===e&&(null!==document.getElementById("tarteaucitronAlertSmall")&&tarteaucitron.userInterface.css("tarteaucitronCookiesListContainer","bottom",document.getElementById("tarteaucitronAlertSmall").offsetHeight+"px"),null!==document.getElementById("tarteaucitronCookiesListContainer")&&(tarteaucitron.userInterface.css("tarteaucitronCookiesList","height","auto"),a=document.getElementById("tarteaucitronCookiesListContainer").offsetHeight,o=document.getElementById("tarteaucitronClosePanelCookie").offsetHeight,s=document.getElementById("tarteaucitronCookiesTitle").offsetHeight,tarteaucitron.userInterface.css("tarteaucitronCookiesList","height",a-o-s-2+"px")))}},cookie:{owner:{},create:function(e,t){"use strict";""!==tarteaucitronForceExpire&&(tarteaucitronExpireInDay&&tarteaucitronForceExpire<365||!tarteaucitronExpireInDay&&tarteaucitronForceExpire<8760)&&(timeExpire=tarteaucitronExpireInDay?864e5*tarteaucitronForceExpire:36e5*tarteaucitronForceExpire);var n=new Date,i=n.getTime()+timeExpire,r=new RegExp("!"+e+"=(wait|true|false)","g"),a=tarteaucitron.cookie.read().replace(r,""),o=tarteaucitron.parameters.cookieName+"="+a+"!"+e+"="+t,s=void 0!==tarteaucitron.parameters.cookieDomain&&""!==tarteaucitron.parameters.cookieDomain?"domain="+tarteaucitron.parameters.cookieDomain+";":"";n.setTime(i),document.cookie=o+"; expires="+n.toGMTString()+"; path=/;"+s},read:function(){"use strict";var e,t,n=tarteaucitron.parameters.cookieName+"=",i=document.cookie.split(";");for(e=0;e<i.length;e+=1){for(t=i[e];" "===t.charAt(0);)t=t.substring(1,t.length);if(0===t.indexOf(n))return t.substring(n.length,t.length)}return""},purge:function(e){"use strict";var t;for(t=0;t<e.length;t+=1)document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;",document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=."+location.hostname+";",document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=."+location.hostname.split(".").slice(-2).join(".")+";"},checkCount:function(e){"use strict";var t,n=tarteaucitron.services[e].cookies,i=n.length,r=0,a="",o=document.cookie.indexOf(e+"=true");if(o>=0&&0===i)a+=tarteaucitron.lang.useNoCookie;else if(o>=0){for(t=0;t<i;t+=1)-1!==document.cookie.indexOf(n[t]+"=")&&(r+=1,void 0===tarteaucitron.cookie.owner[n[t]]&&(tarteaucitron.cookie.owner[n[t]]=[]),!1===tarteaucitron.cookie.crossIndexOf(tarteaucitron.cookie.owner[n[t]],tarteaucitron.services[e].name)&&tarteaucitron.cookie.owner[n[t]].push(tarteaucitron.services[e].name));r>0?(a+=tarteaucitron.lang.useCookieCurrent+" "+r+" cookie",r>1&&(a+="s"),a+="."):a+=tarteaucitron.lang.useNoCookie}else 0===i?a=tarteaucitron.lang.noCookie:(a+=tarteaucitron.lang.useCookie+" "+i+" cookie",i>1&&(a+="s"),a+=".");null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML=a)},crossIndexOf:function(e,t){"use strict";var n;for(n=0;n<e.length;n+=1)if(e[n]===t)return!0;return!1},number:function(){"use strict";var e,t,n,i,r,a,o,s=document.cookie.split(";"),l=""!==document.cookie?s.length:0,c="",u=l>1?"s":"",d=/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i,p=null!==tarteaucitron.cdn.match(d)?tarteaucitron.cdn.match(d)[1]:tarteaucitron.cdn,f=void 0!==tarteaucitron.domain?tarteaucitron.domain:p;if(s=s.sort((function(e,t){return n=e.split("=",1).toString().replace(/ /g,""),i=t.split("=",1).toString().replace(/ /g,""),r=void 0!==tarteaucitron.cookie.owner[n]?tarteaucitron.cookie.owner[n]:"0",a=void 0!==tarteaucitron.cookie.owner[i]?tarteaucitron.cookie.owner[i]:"0",r+e>a+t?1:r+e<a+t?-1:0})),""!==document.cookie){for(e=0;e<l;e+=1)t=s[e].split("=",1).toString().replace(/ /g,""),void 0!==tarteaucitron.cookie.owner[t]&&tarteaucitron.cookie.owner[t].join(" // ")!==o?(o=tarteaucitron.cookie.owner[t].join(" // "),c+='<div class="tarteaucitronHidden">',c+='     <span class="tarteaucitronTitle tarteaucitronH3" role="heading" aria-level="3">',c+="        "+tarteaucitron.cookie.owner[t].join(" // "),c+="    </span>",c+='</div><ul class="cookie-list">'):void 0===tarteaucitron.cookie.owner[t]&&f!==o&&(o=f,c+='<div class="tarteaucitronHidden">',c+='     <span class="tarteaucitronTitle tarteaucitronH3" role="heading" aria-level="3">',c+="        "+f,c+="    </span>",c+='</div><ul class="cookie-list">'),c+='<li class="tarteaucitronCookiesListMain">',c+='    <div class="tarteaucitronCookiesListLeft"><button type="button" onclick="tarteaucitron.cookie.purge([\''+s[e].split("=",1)+"']);tarteaucitron.cookie.number();tarteaucitron.userInterface.jsSizing('cookie');return false\"><strong>&times;</strong></button> <strong>"+t+"</strong>",c+="    </div>",c+='    <div class="tarteaucitronCookiesListRight">'+s[e].split("=").slice(1).join("=")+"</div>",c+="</li>";c+="</ul>"}else c+='<div class="tarteaucitronCookiesListMain">',c+='    <div class="tarteaucitronCookiesListLeft"><strong>-</strong></div>',c+='    <div class="tarteaucitronCookiesListRight"></div>',c+="</div>";for(c+='<div class="tarteaucitronHidden" style="height:20px;display:block"></div>',null!==document.getElementById("tarteaucitronCookiesList")&&(document.getElementById("tarteaucitronCookiesList").innerHTML=c),null!==document.getElementById("tarteaucitronCookiesNumber")&&(document.getElementById("tarteaucitronCookiesNumber").innerHTML=l),null!==document.getElementById("tarteaucitronCookiesNumberBis")&&(document.getElementById("tarteaucitronCookiesNumberBis").innerHTML=l+" cookie"+u),e=0;e<tarteaucitron.job.length;e+=1)tarteaucitron.cookie.checkCount(tarteaucitron.job[e])}},getLanguage:function(){"use strict";if(""!==tarteaucitronForceLanguage&&-1!=="cs,en,fr,es,it,de,nl,pt,pl,ru,el".indexOf(tarteaucitronForceLanguage))return tarteaucitronForceLanguage;if(!navigator)return"en";var e=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLang||null,t=e?e.substr(0,2):null;return-1==="cs,en,fr,es,it,de,nl,pt,pl,ru,el".indexOf(t)?"en":t},getLocale:function(){"use strict";if(!navigator)return"en_US";var e=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLang||null,t=e?e.substr(0,2):null;return"fr"===t?"fr_FR":"en"===t?"en_US":"de"===t?"de_DE":"es"===t?"es_ES":"it"===t?"it_IT":"pt"===t?"pt_PT":"nl"===t?"nl_NL":"el"===t?"el_EL":"en_US"},addScript:function(e,t,n,i,r,a){"use strict";var o,s=!1;!1===i?"function"==typeof n&&n():((o=document.createElement("script")).type="text/javascript",o.id=void 0!==t?t:"",o.async=!0,o.src=e,void 0!==r&&void 0!==a&&o.setAttribute(r,a),"function"==typeof n&&(o.onreadystatechange=o.onload=function(){var e=o.readyState;s||e&&!/loaded|complete/.test(e)||(s=!0,n())}),document.getElementsByTagName("head")[0].appendChild(o))},makeAsync:{antiGhost:0,buffer:"",init:function(e,t){"use strict";var n=document.write,i=document.writeln;document.write=function(e){tarteaucitron.makeAsync.buffer+=e},document.writeln=function(e){tarteaucitron.makeAsync.buffer+=e.concat("\n")},setTimeout((function(){document.write=n,document.writeln=i}),2e4),tarteaucitron.makeAsync.getAndParse(e,t)},getAndParse:function(e,t){"use strict";tarteaucitron.makeAsync.antiGhost>9?tarteaucitron.makeAsync.antiGhost=0:(tarteaucitron.makeAsync.antiGhost+=1,tarteaucitron.addScript(e,"",(function(){null!==document.getElementById(t)&&(document.getElementById(t).innerHTML+="<span style='display:none'>&nbsp;</span>"+tarteaucitron.makeAsync.buffer,tarteaucitron.makeAsync.buffer="",tarteaucitron.makeAsync.execJS(t))})))},execJS:function(id){var i,scripts,childId,type;if(null!==document.getElementById(id))for(scripts=document.getElementById(id).getElementsByTagName("script"),i=0;i<scripts.length;i+=1)type=null!==scripts[i].getAttribute("type")?scripts[i].getAttribute("type"):"",""===type&&(type=null!==scripts[i].getAttribute("language")?scripts[i].getAttribute("language"):""),null!==scripts[i].getAttribute("src")&&""!==scripts[i].getAttribute("src")?(childId=id+Math.floor(99999999999*Math.random()),document.getElementById(id).innerHTML+='<div id="'+childId+'"></div>',tarteaucitron.makeAsync.getAndParse(scripts[i].getAttribute("src"),childId)):-1===type.indexOf("javascript")&&""!==type||eval(scripts[i].innerHTML)}},fallback:function(e,t,n){"use strict";var i,r=document.getElementsByTagName("*"),a=0;for(i in r)if(void 0!==r[i])for(a=0;a<e.length;a+=1)(" "+r[i].className+" ").indexOf(" "+e[a]+" ")>-1&&("function"==typeof t?!0===n?t(r[i]):r[i].innerHTML=t(r[i]):r[i].innerHTML=t)},engage:function(e){"use strict";var t="",n=Math.floor(1e5*Math.random()),i=tarteaucitron.services[e].name+" "+tarteaucitron.lang.fallback;return void 0!==tarteaucitron.lang["engage-"+e]&&(i=tarteaucitron.lang["engage-"+e]),t+='<div class="tac_activate">',t+='   <div class="tac_float">',t+="      "+i,t+='      <button type="button" class="tarteaucitronAllow" id="Eng'+n+"ed"+e+'" onclick="tarteaucitron.userInterface.respond(this, true);">',t+="          &#10003; "+tarteaucitron.lang.allow,t+="       </button>",t+="   </div>",t+="</div>"},extend:function(e,t){"use strict";var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},proTemp:"",proTimer:function(){"use strict";setTimeout(tarteaucitron.proPing,500)},pro:function(e){"use strict";tarteaucitron.proTemp+=e,clearTimeout(tarteaucitron.proTimer),tarteaucitron.proTimer=setTimeout(tarteaucitron.proPing,500)},proPing:function(){"use strict";if(""!==tarteaucitron.uuid&&void 0!==tarteaucitron.uuid&&""!==tarteaucitron.proTemp){var e=document.getElementById("tarteaucitronPremium"),t=(new Date).getTime(),n="https://opt-out.ferank.eu/premium.php?";if(null===e)return;n+="domain="+tarteaucitron.domain+"&",n+="uuid="+tarteaucitron.uuid+"&",n+="c="+encodeURIComponent(tarteaucitron.proTemp)+"&",n+="_"+t,e.innerHTML='<img src="'+n+'" style="display:none" />',tarteaucitron.proTemp=""}tarteaucitron.cookie.number()},AddOrUpdate:function(e,t){for(key in t)t[key]instanceof Object?e[key]=tarteaucitron.AddOrUpdate(e[key],t[key]):e[key]=t[key];return e},getElemWidth:function(e){return e.getAttribute("width")||e.clientWidth},getElemHeight:function(e){return e.getAttribute("height")||e.clientHeight}};$(document).ready((function(){var e=$(".pswp")[0],t=[];$(".ce-gallery, .frame-type-Card").each((function(){var n=$(this),i=function(){var e=[];return n.find("a[data-size]").each((function(){var t=$(this).attr("href"),n=$(this).find("img").attr("title"),i=$(this).data("size").split("x")[0].replace("m","").replace("c",""),r=i*($(this).find("img").attr("height")/$(this).find("img").attr("width"));void 0===n&&(n=$(this).find("img").attr("alt"));var a={src:t,w:i,h:r,title:n};e.push(a)})),e}();$.each(i,(function(e,n){t[e]=new Image,t[e].src=n.src})),n.on("click","a[data-size]",(function(t){t.preventDefault();var r=n.find("a[data-size]").index($(this));new PhotoSwipe(e,PhotoSwipeUI_Default,i,{index:r,bgOpacity:.9,showHideOpacity:!0}).init()}))})),$(".news-single").each((function(){var n=$(this),i=function(){var e=[];return n.find("a.lightbox[data-size]").each((function(){var t=$(this).attr("href"),n=$(this).find("img").attr("title"),i=$(this).data("size").split("x")[0].replace("m","").replace("c",""),r=i*($(this).find("img").attr("height")/$(this).find("img").attr("width"));void 0===n&&(n=$(this).find("img").attr("alt"));var a={src:t,w:i,h:r,title:n};e.push(a)})),e}();$.each(i,(function(e,n){t[e]=new Image,t[e].src=n.src})),n.on("click","a.lightbox[data-size]",(function(t){t.preventDefault();var r=n.find("a.lightbox[data-size]").index($(this));new PhotoSwipe(e,PhotoSwipeUI_Default,i,{index:r,bgOpacity:.8,showHideOpacity:!0}).init()}))}))})),(0,window.jQuery)('a[href="/cookie-settings"]').on("click",(function(e){e.preventDefault(),tarteaucitron.userInterface.openPanel()})),tarteaucitron.cdn="/typo3conf/ext/siwa_project/Resources/Public/JavaScript/Plugins/tarteaucitronjs/",tarteaucitron.init({privacyUrl:"",hashtag:"#tarteaucitron",cookieName:"tarteaucitron",orientation:"bottom",showAlertSmall:!1,cookieslist:!0,adblocker:!1,AcceptAllCta:!0,highPrivacy:!0,handleBrowserDNTRequest:!1,removeCredit:!0,moreInfoLink:!1,useExternalCss:!0,readmoreLink:"/cookiespolicy"}),window.matomoId&&window.matomoHost&&(tarteaucitron.user.matomoId=window.matomoId,tarteaucitron.user.matomoHost=window.matomoHost,(tarteaucitron.job=tarteaucitron.job||[]).push("matomo")),$(document).ready((function(){$("#yearselect").change((function(){"*"==$(this).val()?$(".tx-image-gallery .year").removeClass("d-none"):($(".tx-image-gallery .year").addClass("d-none"),$(".tx-image-gallery .year-"+$(this).val()).removeClass("d-none"))}))}));var SlimboxOptions=[];$(document).ready((function(){var e=$(".pswp")[0],t=[];$(".ce-gallery").each((function(){var n=$(this),i=function(){var e=[];return n.find("a[data-size]").each((function(){var t=$(this).attr("href"),n=$(this).find("img").attr("title"),i=$(this).data("size").split("x")[0].replace("m","").replace("c",""),r=i*($(this).find("img").attr("height")/$(this).find("img").attr("width"));void 0===n&&(n=$(this).find("img").attr("alt"));var a={src:t,w:i,h:r,title:n};e.push(a)})),e}();$.each(i,(function(e,n){t[e]=new Image,t[e].src=n.src})),n.on("click","a[data-size]",(function(t){t.preventDefault();var r=n.find("a[data-size]").index($(this));new PhotoSwipe(e,PhotoSwipeUI_Default,i,{index:r,bgOpacity:.9,showHideOpacity:!0}).init()}))})),$(".news-single").each((function(){var n=$(this),i=function(){var e=[];return n.find("a.lightbox[data-size]").each((function(){var t=$(this).attr("href"),n=$(this).find("img").attr("title"),i=$(this).data("size").split("x")[0].replace("m","").replace("c",""),r=i*($(this).find("img").attr("height")/$(this).find("img").attr("width"));void 0===n&&(n=$(this).find("img").attr("alt"));var a={src:t,w:i,h:r,title:n};e.push(a)})),e}();$.each(i,(function(e,n){t[e]=new Image,t[e].src=n.src})),n.on("click","a.lightbox[data-size]",(function(t){t.preventDefault();var r=n.find("a.lightbox[data-size]").index($(this));new PhotoSwipe(e,PhotoSwipeUI_Default,i,{index:r,bgOpacity:.8,showHideOpacity:!0}).init()}))}));var n=[];$("a[rel*=lightbox]").each((function(){var t=$(this).attr("rel").replace(/(^.*\[|\].*$)/g,"");t||(t="all");var i=$(this).attr("href"),r=$(this).find("img").attr("title"),a=$(this).data("size").split("x"),o=800;$(this).find("img").length>0&&$(this).find("img").attr("height")/$(this).find("img").attr("width")!=1&&void 0!==$(this).find("img").attr("width")&&void 0!==$(this).find("img").attr("height")?$height=o*($(this).find("img").attr("height")/$(this).find("img").attr("width")):0==a[0]?(o=0,$height=0):$height=o*(a[1]/a[0]);var s={src:i,mSrc:$(this).find("img").attr("src"),w:o,h:$height,title:r,original:$(this).data("original")};t in n||(n[t]=[]),n[t].push(s),$(this).on("click",(function(i){i.preventDefault();var r={index:$('a[rel="lightbox['+t+']"]').index($(this)),bgOpacity:.8,showHideOpacity:!0},a=new PhotoSwipe(e,PhotoSwipeUI_Default,n[t],r);a.listen("gettingData",(function(e,t){if(t.w<1||t.h<1){var n=new Image;n.onload=function(){t.w=this.width,t.h=this.height,a.invalidateCurrItems(),a.updateSize(!0)},n.src=t.src}})),a.init()}))}))})),function(e){function t(){var e=location.href;return hashtag=-1!==e.indexOf("#prettyPhoto")&&decodeURI(e.substring(e.indexOf("#prettyPhoto")+1,e.length)),hashtag}function n(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function i(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null==n?"":n[1]}e.prettyPhoto={version:"3.1.5"},e.fn.prettyPhoto=function(r){r=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:800,default_height:600,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder">             <div class="ppt">&nbsp;</div>             <div class="pp_top">               <div class="pp_left"></div>               <div class="pp_middle"></div>               <div class="pp_right"></div>             </div>             <div class="pp_content_container">               <div class="pp_left">               <div class="pp_right">                 <div class="pp_content">                   <div class="pp_loaderIcon"></div>                   <div class="pp_fade">                     <a href="#" class="pp_expand" title="Expand the image">Expand</a>                     <div class="pp_hoverContainer">                       <a class="pp_next" href="#">next</a>                       <a class="pp_previous" href="#">previous</a>                     </div>                     <div id="pp_full_res"></div>                     <div class="pp_details">                       <div class="pp_nav">                         <a href="#" class="pp_arrow_previous">Previous</a>                         <p class="currentTextHolder">0/0</p>                         <a href="#" class="pp_arrow_next">Next</a>                       </div>                       <p class="pp_description"></p>                       <div class="pp_social">{pp_social}</div>                       <a class="pp_close" href="#">Close</a>                     </div>                   </div>                 </div>               </div>               </div>             </div>             <div class="pp_bottom">               <div class="pp_left"></div>               <div class="pp_middle"></div>               <div class="pp_right"></div>             </div>           </div>           <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery">                 <a href="#" class="pp_arrow_previous">Previous</a>                 <div>                   <ul>                     {gallery}                   </ul>                 </div>                 <a href="#" class="pp_arrow_next">Next</a>               </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},r);var a,o,s,l,c,u,d,p=this,f=!1,h=e(window).height(),m=e(window).width();function g(){e(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(h/2-a.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:a.contentHeight,width:a.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:m/2-a.containerWidth/2<0?0:m/2-a.containerWidth/2,width:a.containerWidth},settings.animation_speed,(function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a.height).width(a.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==b(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(a.resized?e("a.pp_expand,a.pp_contract").show():e("a.pp_expand").hide()),!settings.autoplay_slideshow||d||o||e.prettyPhoto.startSlideshow(),settings.changepicturecallback(),o=!0})),isSet&&settings.overlay_gallery&&"image"==b(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((a.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,0==totalPage?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,e.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave"),r.ajaxcallback()}function v(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,(function(){e(".pp_loaderIcon").show(),t()}))}function y(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function _(e,t){if(resized=!1,w(e,t),imageWidth=e,imageHeight=t,(u>m||c>h)&&doresize&&settings.allow_resize&&!f){for(resized=!0,fitting=!1;!fitting;)u>m?(imageWidth=m-200,imageHeight=t/e*imageWidth):c>h?(imageHeight=h-200,imageWidth=e/t*imageHeight):fitting=!0,c=imageHeight,u=imageWidth;(u>m||c>h)&&_(u,c),w(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(c),containerWidth:Math.floor(u)+2*settings.horizontal_padding,contentHeight:Math.floor(s),contentWidth:Math.floor(l),resized:resized}}function w(t,n){t=parseFloat(t),n=parseFloat(n),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(t),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(t),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),s=n+detailsHeight,l=t,c=s+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),u=t}function b(e){return e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)?"youtube":e.match(/vimeo\.com/i)?"vimeo":e.match(/\b.mov\b/i)?"quicktime":e.match(/\b.swf\b/i)?"flash":e.match(/\biframe=true\b/i)?"iframe":e.match(/\bajax=true\b/i)?"ajax":e.match(/\bcustom=true\b/i)?"custom":"#"==e.substr(0,1)?"inline":"image"}function x(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=k(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=h/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>h)return;$pp_pic_holder.css({top:projectedTop,left:m/2+scroll_pos.scrollLeft-contentwidth/2})}}function k(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function C(t){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),e("body").append(settings.markup),$pp_pic_holder=e(".pp_pic_holder"),$ppt=e(".ppt"),$pp_overlay=e("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0,toInject="";for(var n=0;n<pp_images.length;n++)pp_images[n].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[n]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click((function(){return e.prettyPhoto.changeGalleryPage("next"),e.prettyPhoto.stopSlideshow(),!1})),$pp_gallery.find(".pp_arrow_previous").click((function(){return e.prettyPhoto.changeGalleryPage("previous"),e.prettyPhoto.stopSlideshow(),!1})),$pp_pic_holder.find(".pp_content").hover((function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()}),(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()})),itemWidth=57,$pp_gallery_li.each((function(t){e(this).find("a").click((function(){return e.prettyPhoto.changePage(t),e.prettyPhoto.stopSlideshow(),!1}))}))}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'),$pp_pic_holder.find(".pp_nav .pp_play").click((function(){return e.prettyPhoto.startSlideshow(),!1}))),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",(function(){settings.modal||e.prettyPhoto.close()})),e("a.pp_close").bind("click",(function(){return e.prettyPhoto.close(),!1})),settings.allow_expand&&e("a.pp_expand").bind("click",(function(t){return e(this).hasClass("pp_expand")?(e(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(e(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),v((function(){e.prettyPhoto.open()})),!1})),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",(function(){return e.prettyPhoto.changePage("previous"),e.prettyPhoto.stopSlideshow(),!1})),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",(function(){return e.prettyPhoto.changePage("next"),e.prettyPhoto.stopSlideshow(),!1})),x()}return doresize=!0,scroll_pos=k(),e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",(function(){x(),h=e(window).height(),m=e(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(e(document).height()).width(m)})),r.keyboard_shortcuts&&e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",(function(t){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous"),t.preventDefault();break;case 39:e.prettyPhoto.changePage("next"),t.preventDefault();break;case 27:settings.modal||e.prettyPhoto.close(),t.preventDefault()}})),e.prettyPhoto.initialize=function(){return settings=r,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=e(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(p,(function(t,n){if(-1!=e(t).attr(settings.hook).indexOf(theRel))return e(t).attr("href")})):e.makeArray(e(this).attr("href")),pp_titles=isSet?jQuery.map(p,(function(t,n){if(-1!=e(t).attr(settings.hook).indexOf(theRel))return e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):""})):e.makeArray(e(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(p,(function(t,n){if(-1!=e(t).attr(settings.hook).indexOf(theRel))return e(t).attr("title")?e(t).attr("title"):""})):e.makeArray(e(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(e(this).attr("href"),pp_images),rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this)),C(this),settings.allow_resize&&e(window).bind("scroll.prettyphoto",(function(){x()})),e.prettyPhoto.open(),!1},e.prettyPhoto.open=function(t){return"undefined"==typeof settings&&(settings=r,pp_images=e.makeArray(arguments[0]),pp_titles=arguments[1]?e.makeArray(arguments[1]):e.makeArray(""),pp_descriptions=arguments[2]?e.makeArray(arguments[2]):e.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,C(t.target)),settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),y(e(pp_images).length),e(".pp_loaderIcon").show(),settings.deeplinking&&n(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).length),void 0!==pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):settings.default_height.toString(),f=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150),f=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150),f=!0),$pp_pic_holder.fadeIn((function(){switch(settings.show_title&&""!=pp_titles[set_position]&&void 0!==pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;"),imgPreloader="",skipInjection=!1,b(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position<e(pp_images).length-1&&(nextImage.src=pp_images[set_position+1]),prevImage=new Image,isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]),imgPreloader.onload=function(){a=_(.6*imgPreloader.width,.6*imgPreloader.height),g()},imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist."),e.prettyPhoto.close()},imgPreloader.src=pp_images[set_position];break;case"youtube":a=_(movie_width,movie_height),movie_id=i("v",pp_images[set_position]),""==movie_id&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="//www.youtube.com/embed/"+movie_id,i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,a.width).replace(/{height}/g,a.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":a=_(movie_width,movie_height),movie_id=pp_images[set_position];var t=movie_id.match(/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/);movie="http://player.vimeo.com/video/"+t[3]+"?title=0&amp;byline=0&amp;portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=a.width+"/embed/?moog_width="+a.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,a.height).replace(/{path}/g,movie);break;case"quicktime":(a=_(movie_width,movie_height)).height+=15,a.contentHeight+=15,a.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,a.width).replace(/{height}/g,a.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":a=_(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,a.width).replace(/{height}/g,a.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":a=_(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,a.width).replace(/{height}/g,a.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,a=_(movie_width,movie_height),doresize=!0,skipInjection=!0,e.get(pp_images[set_position],(function(e){toInject=settings.inline_markup.replace(/{content}/g,e),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g()}));break;case"custom":a=_(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show(),doresize=!1,a=_(e(myClone).width(),e(myClone).height()),doresize=!0,e(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g())})),!1},e.prettyPhoto.changePage=function(t){currentGalleryPage=0,"previous"==t?(set_position--,set_position<0&&(set_position=e(pp_images).length-1)):"next"==t?(set_position++,set_position>e(pp_images).length-1&&(set_position=0)):set_position=t,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&e(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),v((function(){e.prettyPhoto.open()}))},e.prettyPhoto.changeGalleryPage=function(e){"next"==e?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==e?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=e,slide_speed="next"==e||"previous"==e?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},e.prettyPhoto.startSlideshow=function(){void 0===d?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click((function(){return e.prettyPhoto.stopSlideshow(),!1})),d=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)):e.prettyPhoto.changePage("next")},e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click((function(){return e.prettyPhoto.startSlideshow(),!1})),clearInterval(d),d=void 0},e.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(e.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,(function(){e(this).remove()})),$pp_overlay.fadeOut(settings.animation_speed,(function(){settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),e(this).remove(),e(window).unbind("scroll.prettyphoto"),-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto"),settings.callback(),doresize=!0,o=!1,delete settings})))},!pp_alreadyInitialized&&t()&&(pp_alreadyInitialized=!0,hashIndex=t(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout((function(){e("a["+r.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")}),50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;$(document).ready((function(){isMobile.any()||$("a[rel^='prettyPhoto']").prettyPhoto({social_tools:"",image_markup:'<img id="fullResImage" src="{path}" /><span class="download-btn"><a target="_blank" href="{path}"><i class="fa fa-floppy-o"></i></a></span>',allow_resize:!0})}));var isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()}};!function(e){const t=[],n=window.modules,i={};n.forEach((function(n){const r=n.key;i[r]=function(i){t.indexOf(r)>=0||(!function(n){!function n(i){if(i.dependencies&&i.dependencies.length){const r=i.dependencies.shift();t.indexOf(r)>=0&&n(i),t.push(r),e.ajax({url:"/typo3conf/ext/siwa_project/Resources/Public/JavaScript/dependencies/"+r,type:"GET",success:function(e){Function(e)(),n(i)}})}else!function(t){e.getScript("/typo3conf/ext/siwa_project/Resources/Public/JavaScript/modules/"+t.key+".js")}(i)}(n)}(n),t.push(r),i.detach())}})),e("div[data-loader]").Lazy(i)}(window.jQuery),$(window).on("load",(function(){pageClickFn=function(e){$("body").removeClass("country-selector--open")},$(".page").click(pageClickFn),$(".country-selector__btn_close").click(pageClickFn),$(".btn--country-selector").click((function(e){e.stopPropagation(),e.preventDefault(),$("body").toggleClass("country-selector--open"),$(".nav--primary").removeClass("nav--primary--show"),$(".nav-floating").removeClass("nav-floating--show")})),$(".nav--primary .nav__icon__arrow").click((function(e){$(this).parent().hasClass("nav__btn")?$(this).parent().parent().toggleClass("open"):$(this).parent().toggleClass("open")})),$("#socialshareprivacy").length>0&&$("#socialshareprivacy").socialSharePrivacy({css_path:"/fileadmin/templates/css/socialshareprivacy/socialshareprivacy.css",lang_path:"/fileadmin/templates/css/socialshareprivacy/lang/",language:"de"}),$("div.iframe-links a").length>0&&$("div.iframe-links a").click((function(e){e.preventDefault(),$("#memboFrame").attr("src",$(this).attr("href")),$("div.iframe-links").hide()})),window.addEventListener("message",(function(e){var t=e.origin||e.originalEvent.origin;if(("https://servicebroker.media-data.at"===t||"https://portalbroker.media-data.at"===t||"https://formbroker.media-data.at"===t)&&"object"!=typeof e.data){var n=JSON.parse(e.data);document.getElementById("memboFrame").setAttribute("height",n.height),parent.postMessage(JSON.stringify({height:n.height}),"*")}}),!1)}));