function OnPageReady(){pageIsReady=!0;Resize.Do();$(window).resize(function(){Resize.Do()});$(window).scroll(function(){Scroll.Do()})}function OnPageLoad(){pageIsLoaded=!0;pageIsReady&&Resize.Do()}function MyLibraryObject(){function i(){}var n=this,t;this.siteName="RHM";typeof siteName=="undefined"?(console.log('Variabled "siteName" is not defined'),n.siteName="SiteNameUnset"):n.siteName=siteName;this.DataBackground=function(){$("[data-background]").each(function(){var t=$(this).data("background"),i=n.domain;t=t.replace("DOMAIN",i);$(this).css("background-image",'url("'+t+'")')})};this.DataLink=function(){$("[data-link]").click(function(){window.location.replace($(this).data("link"))})};this.DataBackgroundColor=function(){$("[data-background-color]").each(function(){$(this).css("background-color",$(this).data("backgroundColor"))})};this.Color=function(){$("[data-color]").each(function(){$(this).css("color",$(this).data("color"))})};$(function(){n.DataBackground();n.DataLink();n.DataBackgroundColor();n.Color()});this.IsThisPageHTTPS=function(){return location.protocol==="https"?!0:!1};this.GetPageProtocol=function(){return n.IsThisPageHTTPS()?"https":"http"};this.HostName=function(){return window.location.host};this.Domain=function(){var t="";return t+=n.GetPageProtocol()+"://",t+=window.location.host,t+"/"};this.Url=function(){return window.location.href};this.domain=n.Domain();this.url=n.Url();this.windowWidth;this.windowHeight;this.GetWindowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||document.body.offsetWidth};this.GetWindowHeight=function(){return $(window).height()};this.RefreshHeightAndWidth=function(){n.RefreshWidth();n.RefreshHeight()};this.RefreshWidth=function(){n.windowWidth=n.GetWindowWidth()};this.RefreshHeight=function(){n.windowHeight=n.GetWindowHeight()};n.RefreshHeightAndWidth();this.IsDefined=function(n){return typeof n=="undefined"?!1:!0};this.IsUndefined=function(t){return!n.IsDefined(t)};this.IsArray=function(t){if(n.IsDefined(t)===!1){console.log("Tested sample in IsArray() is not defined");return}return Object.prototype.toString.call(t)==="[object Array]"?!0:!1};this.scrollTop;this.ScrollFromTop=function(){return $(window).scrollTop()};this.RefreshScrollTop=function(){n.scrollTop=n.ScrollFromTop()};this.rem=16;this.RefreshRem=function(){rem=n.GetRemInPx()};this.GetRemInPx=function(){var t=document.body,n=document.createElement("div"),i;return n.style.cssText="display:inline-block; padding:0; line-height:1; position:absolute; visibility:hidden; font-size:1em",n.appendChild(document.createTextNode("M")),t.appendChild(n),i=n.offsetHeight,t.removeChild(n),i};this.StopAnimation=function(t){if(n.IsDefined(t)===!1){console.log("Function 'StopAnimation()' has no parameter");return}if($(t).length<=0){console.log("Parameter from 'StopAnimation("+t+")' has not found any elements");return}$(t).clearQueue();$(t).stop()};this.CropPx=function(n){if(MyLibrary.IsDefined(n)===!1){console.log("Function 'CropPx()' has no parameter");return}if(n===""){console.log("Function 'CropPx()' has empty string");return}return parseInt(n.slice(0,-2))};this.RatioByWidth=function(t,i,r){if(n.IsDefined(t)===!1||n.IsDefined(i)===!1||n.IsDefined(r)===!1){console.log("Function 'RatioByWidth()' has some undefined parameter(s)");return}if($(t).length<=0){console.log("Parameter from 'RatioByWidth("+t+")' has not found any elements");return}$(t).each(function(){$(this).height($(this).width()/i*r)})};this.RatioByHeight=function(t,i,r){if(n.IsDefined(t)===!1||n.IsDefined(i)===!1||n.IsDefined(r)===!1){console.log("Function 'RatioByHeight()' has some undefined parameter(s)");return}if($(t).length<=0){console.log("Parameter from 'RatioByHeight("+t+")' has not found any elements");return}$(t).each(function(){$(this).width($(this).height()/r*i)})};this.ValidateEmail=function(n){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)};this.ValidatePhoneNumber=function(n){return n.match(/^\+?([0-9]{3})\)?[ ]?([0-9]{3})[ ]?([0-9]{3})[ ]?([0-9]{3})$/)&&n.length>=16?!0:!1};this.StopAllYoutubeVideos=function(){console.log("BE AWARE! Funtion MyLibrary.StopAllYoutubeVideos() is depricated and may cause many issues, mainly in youtube iframes and stuff");$(".youtubeIframeVideo").each(function(){$(this).prop("src",$(this).prop("src"))})};this.WriteAllZInexElements=function(){$("*").each(function(){var t=$(this).prop("id"),i=$(this).prop("class"),n=$(this).css("z-index");n!=="auto"&&console.log("id: "+t+", class: "+i+", z-index: "+n)})};this.LimitTextLength=function(t,i){if(n.IsDefined(t)===!1||n.IsDefined(i)===!1){console.log("Function 'LimitTextLength()' has one or more undefined parameters");return}if($(t).length<=0){console.log("Parameter from 'LimitTextLength("+t+")' has not found any elements");return}$(t).each(function(){var n=$(this).text();n.length>=i&&(n=n.substr(0,i),n=n.substr(0,n.lastIndexOf(" ")),n=n+"...");$(this).text(n)})};this.ParentSwitcher=function(t,i,r,u){if(MyLibrary.IsDefined(t)===!1||MyLibrary.IsDefined(i)===!1||MyLibrary.IsDefined(r)===!1||MyLibrary.IsDefined(u)===!1){console.log("One or more parameters in ParentSwitcher() is undefined");return}if($(t).length<=0){console.log("Parameter desktopWrapperSelector from 'ParentSwitcher("+t+")' has not found any elements");return}if($(i).length<=0){console.log("Parameter mobileWrapperSelector from 'ParentSwitcher("+i+")' has not found any elements");return}if($(r).length<=0){console.log("Parameter movedElementSelector from 'ParentSwitcher("+r+")' has not found any elements");return}Resize.Add(function(){n.windowWidth>u?$(t).find(r).length<=0&&$(i+" "+r).prependTo($(t)):$(i).find(r).length<=0&&$(t+" "+r).prependTo($(i))})};this.HeightAsHighestElement=function(t){if(n.IsDefined(t)===!1){console.log("Function 'HeightAsHighestElement()' has undefined parameter");return}if($(t).length<=0){console.log("Parameter from 'HeightAsHighestElement("+t+")' has not found any elements");return}$(t).css("min-height","0");var i=0;$(t).each(function(){var n=$(this).height();n>i&&(i=n)});$(t).css("min-height",i+"px")};this.GetHighestElementHeight=function(t,i,r){if(n.IsDefined(t)===!1){console.log("Function 'GetHighestElementHeight()' has undefined parameter");return}if($(t).length<=0){console.log("Parameter from 'GetHighestElementHeight("+t+")' has not found any elements");return}var u=0;return $(t).each(function(){var n=$(this).height();MyLibrary.IsDefined(i)===!0&&i===!0&&(n=$(this).outerHeight());MyLibrary.IsDefined(r)===!0&&r===!0&&(n=$(this).outerHeight(!0));n>u&&(u=n)}),u};this.MarkEveryNthElement=function(t,i,r,u){if(n.IsDefined(t)===!1||n.IsDefined(i)===!1||n.IsDefined(r)===!1||n.IsDefined(u)===!1){console.log("Function 'MarkEveryNthElement()' has some undefined parameters");return}if($(t).length<=0){console.log("Parameter from 'MarkEveryNthElement("+t+")' has not found any elements");return}if($(i).length<=0){console.log("Parameter from 'MarkEveryNthElement("+i+")' has not found any elements");return}$(t).each(function(){$(this).find(i).removeClass(r);$(this).find(i).each(function(n){(n+1)%u==0&&n!==0&&$(this).addClass(r)})})};this.FlexSpaceBetweenAlike=function(t,i,r,u){var s,h,e,o,v,l;if(n.IsDefined(t)===!1||n.IsDefined(i)===!1||n.IsDefined(r)===!1||n.IsDefined(u)===!1){console.log("Function 'FlexSpaceBetweenAlike()' has some undefined parameters");return}if($(t).length<=0){console.log("Parameter from 'FlexSpaceBetweenAlike("+t+")' has not found any elements");return}if($(i).length<=0){console.log("Parameter from 'FlexSpaceBetweenAlike("+i+")' has not found any elements");return}if(u<0||u>100){console.log("Parameter widthInPercent from FlexSpaceBetweenAlike() is out of range("+u+")");return}if($(t+" "+i).css("display")!=="inline-block"&&$(t+" "+i).css("float")!=="left"&&$(t+" "+i).css("float")!=="right"){console.log("Child elements ("+i+") in FlexSpaceBetweenAlike() are not display-inlined or floated");return}s=$(t).width();$(t+" "+i).css("width",u+"%");h=$(t+" "+i).width();e=r-1;e<0&&(e=0);var y=(s-h*r)/e,a=(100-u*r)/e,c=$(t+" "+i).length,f=c%r;f===2&&(f=0);o=f-1;o<0&&(o=0);v=(s-h*f)/o;l=(100-u*f)/o;$(t+" "+i).each(function(n){var t=n%r;t===r-1?$(this).css("margin-right","0px"):$(this).css("margin-right",a+"%");c-n<=f&&$(this).css("margin-right",l+"%")});$(t+" "+i).last().css("margin-right","0");$(t+" "+i).css("width",u+"%")};this.InputOnlyNumbers=function(t){if(n.IsDefined(t)===!1){console.log("Function 'InputOnlyNumbers()' has undefined parameter");return}if($(t).length<=0){console.log("Parameter from 'InputOnlyNumbers("+t+")' has not found any elements");return}$(t).on("input",i)};t={x:-1,y:-1};$(document).mousemove(function(n){t.x=n.pageX;t.y=n.pageY});this.CursorPosition=function(){return t};this.AddDotsToInt=function(t){if(n.IsDefined(t)===!1||isNaN(parseInt(t))){console.log("Parameter number in MyLibrary.AddDotsToInt("+t+") is undefined or cannot be parsed");return}return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")};this.RemoveCharsFromString=function(t,i){var u,r;if(n.IsDefined(t)===!1||t==""){console.log("Parameter char in MyLibrary.RemoveCharsFromString("+t+") is undefined or empty");return}if(n.IsDefined(i)===!1||i==""){console.log("Parameter string in MyLibrary.RemoveCharsFromString("+i+") is undefined or empty");return}for(i=i.split(t),u="",r=0;r<i.length;r++)u+=i[r];return u};this.ShuffleArray=function(n){for(var t=n.length,r,i;0!==t;)i=Math.floor(Math.random()*t),t-=1,r=n[t],n[t]=n[i],n[i]=r;return n};this.RandomNumberInRange=function(n,t){return Math.floor(Math.random()*(t-n+1)+n)};this.ReplaceAllInString=function(n,t,i){String.prototype.replaceAll=function(n,t){var i=this;return i.split(n).join(t)};return n.split(t).join(i)};this.SqueezeString=function(n,t){for(var r=!1,u="",f=0,i=0;i<n.length;i++){if(n[i]==t&&r===!1)r=!0;else if(n[i]==t&&r===!0){f++;continue}else n[i]!=t&&(r=!1);u+=n[i]}return u};this.StringStartsWith=function(n,t){if(MyLibrary.IsDefined(n)===!1||MyLibrary.IsDefined(t)===!1){console.log("MyLibrary.StringStartsWith("+n+", "+t+") has some udefined parameter");return}if(n===""||t===""){console.log("MyLibrary.StringStartsWith("+n+", "+t+") has some empty string");return}for(var i=0;i<t.length;i++)if(n[i]!==t[i])return!1;return!0};this.SwapCharsInString=function(n,t,i){return n.substr(0,t)+n[i]+n.substring(t+1,i)+n[t]+n.substr(i+1)};this.ReplaceCharAt=function(n,t,i){return t>n.length-1?n:n.substr(0,t)+i+n.substr(t+1)};this.RemoveElementsFromArray=function(t,i){var e,u,f,r;if(MyLibrary.IsDefined(t)===!1||MyLibrary.IsDefined(i)===!1){console.log("MyLibrary.RemoveElementsFromArray("+t+", "+i+") has some udefined parameter");return}if(i.length>t.length)return console.log("MyLibrary.RemoveElementsFromArray("+t+", "+i+") lengths of array is out of bounds"),0;for(MyLibrary.IsArray(i)===!1?(e=i,i=[],i[0]=e):i=i.sort(function(n,t){return n-t}),u=0,f=0,r=0;r<t.length;r++){if(MyLibrary.IsArray(t))t[r-u]=t[r];else if(typeof t=="string")t=n.ReplaceCharAt(t,r-u,t[r]);else{console.log("Unknown input format of array in MyLibrary.RemoveElementsFromArray("+t+", "+i+")");return}r===i[f]&&(f++,u++)}for(r=0;r<u;r++)if(MyLibrary.IsArray(t))t.pop();else if(typeof t=="string")t=t.substring(0,t.length-1);else{console.log("Unknown input format of array in MyLibrary.RemoveElementsFromArray("+t+", "+i+")");return}if(i.length!=f){console.log("MyLibrary.RemoveElementsFromArray("+t+", "+i+") found out, that some parameters are out of bounds");return}return t};this.DegToRad=function(n){return n*(Math.PI/180)};this.RadToDeg=function(n){return n*180};this.RemoveNullsAndUndefinesFromArray=function(n){var i,t;if(MyLibrary.IsDefined(n)===!1){console.log("Parameter in MyLibrary.RemoveNullsAndUndefinesFromArray("+n+") is undefined");return}for(i=0,t=0;t<n.length;t++)n[t-i]=n[t],(MyLibrary.IsDefined(n[t])===!1||n[t]===null)&&(i++,n[t]=undefined);return n.splice(n.length-i),n};this.RemoveDuplicatesFromArray=function(t){var u,i,r;if(MyLibrary.IsDefined(t)===!1){console.log("Parameter in MyLibrary.RemoveDuplicatesFromArray("+t+") is undefined");return}for(u=0,i=0;i<t.length;i++)if(t[i]!==null)for(r=i+1;r<t.length;r++)t[r]!==null&&t[i]===t[r]&&(t[r]=null,u++);return n.RemoveNullsAndUndefinesFromArray(t)};this.RemoveDiacritics=function(n){var i,r,t;if(MyLibrary.IsUndefined(n)||n==""){console.log("Parameter in MyLibrary.RemoveDiacritics("+n+") is empty or undefined");return}for(i=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],r=n,t=0;t<i.length;t++)r=r.replace(i[t].letters,i[t].base);return r};this.ReplaceAllSpecialCharacters=function(n,t){if(MyLibrary.IsUndefined(n)||n==""){console.log("Parameter in MyLibrary.ReplaceAllSpecialCharacters("+n+") is empty or undefined");return}return n.replace(/[`~!@#¨§$%^&*()_|+\-–=?;:'",.<>\{\}\[\]\\\/\s]/gi,t)};this.GenerateURLFromText=function(t){if(MyLibrary.IsUndefined(t)||t==""){console.log("Parameter in MyLibrary.GenerateURLFromText("+t+") is empty or undefined");return}var i=t.toLowerCase();return i=n.RemoveDiacritics(i),i=n.ReplaceAllSpecialCharacters(i,"-"),i=n.SqueezeString(i,"-"),i[0]=="-"&&(i=n.RemoveElementsFromArray(i,0)),i[i.length-1]=="-"&&(i=n.RemoveElementsFromArray(i,i.length-1)),i};this.ElementExists=function(t){if(n.IsUndefined(t)){console.log("MyLibrary.ElementsExist("+t+") has undefined parameter");return}return $(t).length>0?!0:!1};this.ElementDoesNotExist=function(t){if(n.IsUndefined(t)){console.log("MyLibrary.ElementsExist("+t+") has undefined parameter");return}return!n.ElementExists(t)};this.IsNumber=function(n){if(MyLibrary.IsUndefined(n)){console.log("Parameter in MyLibrary.IsNumber("+n+") is undefined");return}return n==parseInt(n)?!0:!1};this.CountOnScroll=function(t){if(n.IsUndefined(t)){console.log("MyLibrary.CountOnScroll("+t+") has undefined parameter");return}if(n.ElementDoesNotExist(t)){console.log("MyLibrary.CountOnScroll("+t+") - element does not exist");return}$(t).each(function(t){var r=$(this).text(),i;if(!n.IsNumber(r)){console.log("Element in MyLibrary.CountOnScroll() does not contain a number");return}i="countOnScrollElementNumber"+t;$(this).prop("id",i);Scroll.OnScrollToOnce("#"+i,function(){$("#"+i).text(0);$({countNum:0,targetValue:r}).animate({countNum:r},{duration:3e3,easing:"easeOutQuint",step:function(){var n=Math.ceil(this.countNum);$("#"+i).text(n)},complete:function(){$("#"+i).text(this.targetValue)}})})})};this.NumberSpaces=function(n){var t;n=n.toString();var r=n.length%3,i="",u=0;for(t=0;t<r;t++)i+=n[t];for(r!=0&&(i+=" "),t=r;t<n.length;t++){if(u++,!(u%4)){i+=" ";t--;continue}i+=n[t]}return i}}function CallbacksObject(){function i(n){this.name=n;this.functions=[]}var t=this,n=[];this.Create=function(t){if(MyLibrary.IsDefined(t)===!1||t===""){console.log("Name in Callbacks.Create() is empty or undefined");return}n.forEach(function(n){if(n.name===t){console.log("Name "+t+" for callback already exists");return}});n.push(new i(t))};this.Add=function(t,i){if(MyLibrary.IsDefined(t)===!1||t===""||MyLibrary.IsDefined(i)===!1||i===""){console.log("Parameter name or method in AddFunction() is empty or undefined");return}var r=!1;if(n.forEach(function(n){n.name===t&&(n.functions.push(i),r=!0)}),r===!1){console.log("Name "+t+" in AddFunction() has not found any existing callbacks");return}};this.Do=function(t){if(MyLibrary.IsDefined(t)===!1||t===""){console.log("Name in Callbacks.Call() is empty or undefined");return}var i=!1;if(n.forEach(function(n){n.name===t&&(n.functions.length>0&&n.functions.forEach(function(n){n()}),i=!0)}),i===!1){console.log("Name "+t+" in Call() has not found any existing callbacks");return}};this.DoOrAdd=function(n,i){MyLibrary.IsDefined(i)?t.Add(n,i):t.Do(n)};this.Exists=function(t){if(MyLibrary.IsUndefined(t)){console.log("Callbacks.Exists("+t+") has undefined parameter");return}for(var i=0;i<n.length;i++)if(n.name==t)return!0;return!1}}function ResizeObject(){var n=this;Callbacks.Create("Resize");this.Do=function(){pageIsReady!==!1&&(MyLibrary.RefreshHeightAndWidth(),Callbacks.Do("Resize"),Scroll.Do(),MyLibrary.RefreshRem())};this.Add=function(t){Callbacks.Add("Resize",t);n.Do()}}function ScrollObject(){var t=this,n,i=!1;this.Lock=function(){n=[self.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,self.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop];$("html").css("overflow","hidden");window.scrollTo(n[0],n[1]);i=!0};this.Unlock=function(){MyLibrary.IsDefined(n)!==!1&&($("html").css("overflow","visible"),window.scrollTo(n[0],n[1]),i=!1)};this.ToggleLock=function(){i===!0?(t.Unlock(),i=!1):(t.Lock(),i=!0)};Callbacks.Create("Scroll");this.Do=function(){MyLibrary.RefreshScrollTop();MyLibrary.RefreshHeight();Callbacks.Do("Scroll")};this.Add=function(n){Callbacks.Add("Scroll",n);t.Do()};this.OnScrollToOnce=function(n,i){if(MyLibrary.IsUndefined(n)||MyLibrary.IsUndefined(i)){console.log("Scroll.OnScrollToOnce("+n+") has undefined parameter");return}if(MyLibrary.ElementDoesNotExist(n)){console.log("Scroll.OnScrollToOnce("+n+") - element does not exist");return}var r="OnScrollToOnce-"+n;Callbacks.Exists(r)||($(n).data("OnScrollToTriggered",!1),Callbacks.Create(r));Callbacks.Add(r,i);$(n).each(function(n,i){t.Add(function(){var n=$(i).offset().top;MyLibrary.scrollTop>n-MyLibrary.windowHeight&&$(i).data("OnScrollToTriggered")!=!0&&(Callbacks.Do(r),$(i).data("OnScrollToTriggered",!0))})})};this.OnScrollTo=function(n,i){if(MyLibrary.IsUndefined(n)||MyLibrary.IsUndefined(i)){console.log("Scroll.OnScrollTo("+n+") has undefined parameter");return}if(MyLibrary.ElementDoesNotExist(n)){console.log("Scroll.OnScrollTo("+n+") - element does not exist");return}var r="OnScrollTo-"+n;Callbacks.Exists(r)||Callbacks.Create(r);Callbacks.Add(r,i);$(n).each(function(n,i){t.Add(function(){var n=$(i).offset().top;MyLibrary.scrollTop>n-MyLibrary.windowHeight&&Callbacks.Do(r)})})};this.ButtomBorderScreenScrolledTo=function(n){if(MyLibrary.IsUndefined(n)){console.log("Scroll.ButtomBorderScreenScrolledTo("+n+") has undefined parameter");return}if(MyLibrary.ElementDoesNotExist(n)){console.log("Scroll.ButtomBorderScreenScrolledTo("+n+") - element does not exist");return}var t=$(n).offset().top;return MyLibrary.scrollTop>t-MyLibrary.windowHeight?!0:!1};this.TopBorderScreenScrolledTo=function(n){if(MyLibrary.IsUndefined(n)){console.log("Scroll.TopBorderScreenScrolledTo("+n+") has undefined parameter");return}if(MyLibrary.ElementDoesNotExist(n)){console.log("Scroll.TopBorderScreenScrolledTo("+n+") - element does not exist");return}var t=$(n).offset().top;return MyLibrary.scrollTop>t?!0:!1}}function SlowScrollObject(){var n=this,t;this.animationSpeed=500;this.offset=0;t=this;$(function(){$(".slowScroll").click(function(){$("html, body").animate({scrollTop:$(this.hash).offset().top-n.offset},n.animationSpeed)})});this.To=function(t,i){if(MyLibrary.IsDefined(t)===!1){console.log("Target selector in method 'SlowScroll.To("+t+")' is undefined");return}if($(t).length<=0){console.log("Target selector in method 'SlowScroll.To("+t+")' found no target");return}var r=n.offset;MyLibrary.IsDefined(i)&&(r=i?n.offset:0);$("html, body").animate({scrollTop:$(t).offset().top-r},n.animationSpeed)};this.ToTop=function(){$("html, body").animate({scrollTop:0},n.animationSpeed)}}function LoadingAnimationObject(){function r(n,i){if($(n).length<=0){console.log("Function 'Remove()' (loading animation) has bad selector: "+n);return}$(n+" .firstLoadingAnimation").length<=0||(t.OnPageLoadCallback(),f(n,i))}function f(n,t){var i=150;MyLibrary.IsDefined(t)&&t!==""&&(i=t);$(n+" > .loadingScreen, "+n+" .firstLoadingAnimation").css("pointer-events","none");$(n+" > .loadingScreen, "+n+" .firstLoadingAnimation").animate({opacity:0},t,function(){$(n+" > .loadingScreen, "+n+" .firstLoadingAnimation").remove()})}var t=this,n=!0,u=0,i;window.onload=function(){n&&r("body");n=!1};window.setTimeout(function(){n&&r("body");n=!1},2500);i=setInterval(function(){(n===!1||u>=200)&&clearInterval(i);pageIsReady&&pageIsLoaded&&(n&&r("body"),n=!1,clearInterval(i));u++},50);this.loadingScreenHTML='<div class="loadingScreen"><div class="loadingScreenAnimation">&nbsp;<\/div><\/div>';this.Add=function(n){if($(n).length<=0){console.log("Function 'Add()' (loading animation) has bad selector: "+n);return}if($(n).prop("tagName").toLowerCase()!=="body"){var i=$(n).css("position");i!=="relative"&&i!=="absolute"&&i!=="fixed"&&$(n).css("position","relative")}$(n).prepend(t.loadingScreenHTML)};this.AddFixed=function(){t.Add("body");$("body > .loadingScreen").addClass("fixedLoadingScreen")};this.Remove=function(n,t){if($(n).length<=0){console.log("Function 'Remove()' (loading animation) has bad selector: "+n);return}if($(n+" > .loadingScreen").length<=0){console.log("Selector: "+n+" has no loading animation - function 'Remove()' (loading animation)");return}f(n,t)};this.RemoveInstant=function(n){if($(n).length<=0){console.log("Function 'RemoveInstant()' (loading animation) has bad selector: "+n);return}if($(n+" > .loadingScreen").length<=0){console.log("Selector: "+n+" has no loading animation - function 'RemoveInstant()' (loading animation)");return}$(n+" > .loadingScreen").remove()};Callbacks.Create("OnPageLoadCallback");this.OnPageLoadCallback=function(n){Callbacks.DoOrAdd("OnPageLoadCallback",n)}}function DialogWindowObject(){function r(t){var r="",u,f;if(r=MyLibrary.IsDefined(t)&&typeof t=="string"?t:$(this).data("dialogId"),r===""||MyLibrary.IsDefined(r)===!1){console.log("Variable dialogId is empty string or undefined");return}if($("#"+r).length<=0){console.log("No dialog with id #"+r+" is defined");return}if($("#"+r+" .dialogContent").length<=0){console.log("No .dialogContent in dialog with id #"+r);return}$("#"+r).css("display","block");$("#"+r).animate({opacity:1},n.animationLenght,"easeOutCubic",function(){});$("#"+r).hasClass("youtubeDialogWindow")&&(u=$("[data-dialog-id='"+r+"']").data("youtubeId"),f="https://www.youtube.com/embed/",MyLibrary.IsDefined(u)&&u!==""&&$("#"+r+" .dialogContent iframe").prop("src",f+u),i());$("#"+r).addClass("dialogOpened");i();Scroll.Lock();n.OnDialogOpen()}function t(t){var i=".dialogOpened";if(MyLibrary.IsDefined(t)&&typeof t=="string"&&(i="#"+t),i===""||MyLibrary.IsDefined(i)===!1){console.log("Variable dialogId is empty string or undefined");return}if($(i).length<=0){console.log("No dialog with id #"+i+" is defined");return}if($(i+" .dialogContent").length<=0){console.log("No .dialogContent in dialog with id "+i);return}if($(".dialogOpened").length<=0){console.log("No dialog opened, so none can be closed");return}$(i).addClass("dialogBeingClosed");n.OnDialogClose();$(i).each(function(){$(this).removeClass("dialogOpened");$(this).animate({opacity:0},n.animationLenght,"easeOutCubic",function(){$(this).css("display","none");$(".dialogOpened").length<=0&&Scroll.Unlock()})});$(i).removeClass("dialogBeingClosed")}function i(){$(".dialogOpened").length>0&&$(".dialogOpened").each(function(){var i=MyLibrary.CropPx($(this).find(".dialogContent").css("margin-left")),r=MyLibrary.CropPx($(this).find(".dialogContent").css("margin-right")),h=MyLibrary.CropPx($(this).find(".dialogContent").css("margin-top")),u=MyLibrary.CropPx($(this).find(".dialogContent").css("margin-bottom")),f=MyLibrary.CropPx($(this).find(".dialogContent").css("padding-left")),e=MyLibrary.CropPx($(this).find(".dialogContent").css("padding-right")),o=MyLibrary.CropPx($(this).find(".dialogContent").css("padding-top")),s=MyLibrary.CropPx($(this).find(".dialogContent").css("padding-bottom")),n,t;$(this).find(".dialogContent").css("max-width",MyLibrary.windowWidth-i-r-f-e+"px");n=16;$(this).find(".dialogContent").css("max-height",MyLibrary.windowHeight-n-u-o-s+"px");$(".dialogWindow").width(MyLibrary.windowWidth).height(MyLibrary.windowHeight);$(this).find(".dialogContent").css("margin-top",n+"px");$(this).find(".dialogContent").outerHeight(!0)<MyLibrary.windowHeight&&(t=(MyLibrary.windowHeight-$(this).find(".dialogContent").height())/2.6,$(this).find(".dialogContent").css("margin-top",t+"px"))});$(".youtubeDialogWindow .dialogYoutubeWrapper").length>0&&MyLibrary.RatioByWidth(".youtubeDialogWindow .dialogYoutubeWrapper",16,9)}function u(){var n=this;this.Initialize=function(){$("#cookiesNeededDialog #cookiesNeededDialogButtonAccept").click(function(){Cookie.Permit();CookiesBar.Hide()})};$(function(){n.Initialize()});this.Info=function(n){if(MyLibrary.IsDefined(n)===!1||n===""){console.log("Parameter in DialogWindow.Common.Info("+n+") is empty or undefined");return}if($("#dialogInfo").length<=0){console.log("DialogWindow.Common.Info("+n+") did not found #dialogInfo dialog window");return}$("#dialogInfo .message").text(n);DialogWindow.Open("dialogInfo")};this.Warning=function(n){if(MyLibrary.IsDefined(n)===!1||n===""){console.log("Parameter in DialogWindow.Common.Warning("+n+") is empty or undefined");return}if($("#dialogWarning").length<=0){console.log("DialogWindow.Common.Warning("+n+") did not found #dialogWarning dialog window");return}$("#dialogWarning .message").text(n);DialogWindow.Open("dialogWarning")};this.Success=function(n){if(MyLibrary.IsDefined(n)===!1||n===""){console.log("Parameter in DialogWindow.Common.Success("+n+") is empty or undefined");return}if($("#dialogSuccess").length<=0){console.log("DialogWindow.Common.Success("+n+") did not found #dialogSuccess dialog window");return}$("#dialogSuccess .message").text(n);DialogWindow.Open("dialogSuccess")};this.CookiesNeeded=function(){Cookie.AllowedToUse()||DialogWindow.Open("cookiesNeededDialog")}}var n=this;this.animationLenght=200;Callbacks.Create("OnDialogClose");this.OnDialogClose=function(n){Callbacks.DoOrAdd("OnDialogClose",n)};Callbacks.Create("OnDialogOpen");this.OnDialogOpen=function(n){Callbacks.DoOrAdd("OnDialogOpen",n)};this.Initialize=function(){$("[data-dialog-id]").off("click",r);$("[data-dialog-id]").on("click",r);$(".dialogWindow").find(".dialogBgCover").remove();$(".dialogWindow").each(function(){$(this).hasClass("closableBgCover")?$(this).append('<div class="dialogBgCover dialogClose">&nbsp;<\/div>'):$(this).append('<div class="dialogBgCover">&nbsp;<\/div>')});$(".dialogClose").off("click",t);$(".dialogClose").on("click",t)};$(function(){n.Initialize()});this.Open=function(n){if(MyLibrary.IsDefined(n)===!1){console.log("Parameter dialogId in 'Open("+n+")' is undefined");return}r(n)};this.Close=function(n){MyLibrary.IsDefined(n)===!1?t():t(n)};Resize.Add(function(){i()});this.DialogWindowResize=function(){i()};this.Common=new u}function CalendarObject(n){function e(){var l,a,s,b,h,g;$("#"+n+" .selectedCell").length!==0&&(f=$("#"+n+" .selectedCell").data("date"));$("#"+n+" .calendarBody .calendarAnimation").empty();var i=new Date,tt=i.getDay(),it=i.getDate(),e=i.getMonth(),o=i.getFullYear(),v=new Date(o,e-2+t,1),rt=new Date(o,e-1+t,1),ut=new Date(o,e+1+t,1),ft=new Date(o,e+2+t,1);if(v.getDay()===0)for(l=0;l<6;l++)y();else for(a=0;a<v.getDay()-1;a++)y();for(s=-1;s<=3;s++)for(b=new Date(o,e+s+t,0),h=0;h<nt(b);h++)y(h+1,new Date(o,e+s-1+t,h+1));$("#"+n+" ."+u(i)).addClass("currentDate");f==="none"?$("#"+n+" ."+u(i)).addClass("selectedCell"):$("#"+n+" ."+f).addClass("selectedCell");g=new Date(o,e+t+1,0);selectedMonthNumber=new Date(i.getFullYear(),i.getMonth()+t,1).getMonth();$("#"+n+" .currentMonthName").text(w[selectedMonthNumber]+" "+g.getFullYear());d();$("#"+n+" .calendarCell").click(k);p();r.OnGenerateTableCallback();c&&(console.log("Generate table"),console.log("Selected month (generate table): "+t))}function i(i,f){var a,e;if(v!==!0){i==="now"?t=0:i==="prev"?t-=1:i==="next"?t+=1:i==="update"?t=t:console.log("UNKNOWN DIRECTION");r.selectedMonth=t;var o=new Date,s=new Date(o.getFullYear(),o.getMonth()+t,1),y=new Date(s.getFullYear(),s.getMonth(),1),h=u(y),l=$("#"+n+" ."+h).parent().index();$("#"+n+" ."+h).parent().find(".calendarCell").first().text()==="1"&&l--;a=$("#"+n+" .calendarBody .calendarLine").height();e=a*l*-1+"px";MyLibrary.IsDefined(f)===!1?(c&&(console.log("Animation start"),console.log("Selected month (animate): "+t)),$("#"+n+" .calendarBody .calendarAnimation").clearQueue(),$("#"+n+" .calendarBody .calendarAnimation").stop(),$("#"+n+" .calendarBody .calendarAnimation").animate({top:e},500,"easeOutCubic",b),v=!0):f==="instant"&&$("#"+n+" .calendarBody .calendarAnimation").css("top",e)}}function b(){e();Resize.Do();v=!1;i("update","instant")}function k(){var e=$(this).data("date"),u=g(e),i=new Date,f=new Date(i.getFullYear(),i.getMonth()+t,i.getDate());($("#"+n+" .selectedCell").removeClass("selectedCell"),$(this).addClass("selectedCell"),r.OnCellClickCallback(),$(this).hasClass("selectedMonth"))||(u.getTime()<f.getTime()?a():u.getTime()>f.getTime()&&l(),h=t)}function d(){var i=new Date,r=new Date(i.getFullYear(),i.getMonth()+t,1),f=u(r).slice(0,-3);$("#"+n+" .calendarCell").removeClass("selectedMonth");$("#"+n+" .calendarCell[class^="+f+"]").addClass("selectedMonth")}function y(t,i){($("#"+n+" .calendarBody .calendarLine").length===0||$("#"+n+" .calendarBody .calendarCell").length%7==0)&&$("#"+n+" .calendarBody .calendarAnimation").append("<div class='calendarLine'><\/div>");MyLibrary.IsDefined(t)&&(MyLibrary.IsDefined(i)||i!=="")&&isNaN(parseInt(t))===!1?$("#"+n+" .calendarBody .calendarAnimation .calendarLine").last().append("<p class='"+u(i)+" calendarCell' data-date='"+u(i)+"'>"+t+"<\/p>"):$("#"+n+" .calendarBody .calendarAnimation .calendarLine").last().append("<p class='empty calendarCell'>&nbsp;<\/p>")}function l(){i("next")}function a(){i("prev")}function o(){if($("#"+n+" .calendarBody .calendarLine").length>0){$("#"+n+" .calendarBody .calendarCell").height($("#"+n+" .calendarBody .calendarCell").width());$("#"+n+" .calendarBody .calendarCell").css("line-height",$("#"+n+" .calendarBody .calendarCell").height()+"px");var t=$("#"+n+" .calendarBody .calendarLine").height();$("#"+n+" .calendarBody").height(t*6)}$("#"+n+" .calendarHeaderNames p").height($("#"+n+" .calendarHeaderNames p").width());$("#"+n+" .calendarHeaderNames p").css("line-height",$("#"+n+" .calendarHeaderNames p").height()+"px");$(".calendarPrev, .calendarNext, .currentMonthName").height($(".calendarHeaderTop").height());$(".currentMonthName").css("line-height",$(".calendarHeaderTop").height()+"px")}function g(n){var t=parseInt(n.substr(0,4)),i=parseInt(n.substr(5,6)),r=parseInt(n.substr(8,9));return new Date(t,i,r)}function nt(n){return new Date(n.getFullYear(),n.getMonth()+1,0).getDate()}function u(n){var t="";return t+=n.getFullYear()+"-",t+=n.getMonth()<10?"0"+n.getMonth()+"-":n.getMonth()+"-",t+(n.getDate()<10?"0"+n.getDate():n.getDate())}function tt(n,t){this.name=n;this.dates=t}function p(){s.forEach(function(t){$("#"+n+" .calendarCell").removeClass(t.name)});s.forEach(function(t){t.dates.forEach(function(i){$("#"+n+" ."+r.DateStringToJS(i)).addClass(t.name)})})}var r=this,t=0,s;this.selectedMonth=0;var v=!1,f="none",w=["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],h=0,c=!1;this.debugMode=!1;this.DebugMode=function(){c=!0;r.debugMode=!0};this.Initialize=function(){if($("#"+n).length===0){console.log("Element with ID not found - CalendarObject("+n+")");return}c&&console.log("Calendar initialization - DEBUG MODE ON");$("#"+n+" .calendarNext").off("click",l);$("#"+n+" .calendarNext").on("click",l);$("#"+n+" .calendarPrev").off("click",a);$("#"+n+" .calendarPrev").on("click",a);e();o();i("now","instant")};$(function(){r.Initialize()});this.GenerateTable=function(){e()};this.Animate=function(n,t){i(n,t)};this.Next=function(){l()};this.Previous=function(){a()};this.SetCurrentMonth=function(){t=0;h=0;f="none";i("update","instant")};this.SetSelectedCellsMonth=function(){t=h;e();o();i("update","instant")};this.ResetSelectedCell=function(){f="none";$("#"+n+" .selectedCell").removeClass("selectedCell");t=0;h=0;e();o();i("update","instant")};this.CalendarResize=function(){o()};Resize.Add(o);this.GetHumanString=function(n){if(MyLibrary.IsDefined(n)===!1){console.log("Parameter in dateString from Calendar.GetHumanString() is undefined");return}var t=parseInt(n.substr(0,4)),i=parseInt(n.substr(5,6)),r=parseInt(n.substr(8,9));return r+". "+i+". "+t};this.DateStringToJS=function(n){var u=parseInt(n.substring(0,4)),i=parseInt(n.substring(5,8)),r,t;if(i=i-1,r=parseInt(n.substring(8,10)),t=u.toString()+"-",i<10)t=t+"0"+i.toString();else{if(i<0)return"Měsíc je menší než nula";t=t+i.toString()}if(t=t+"-",r<10)t=t+"0"+r.toString();else{if(r>35)return"Den je větší než 35";t=t+r.toString()}return t};this.DateStringFromJS=function(n){var u=parseInt(n.substring(0,4)),i=parseInt(n.substring(5,8)),r,t;if(i=i+1,r=parseInt(n.substring(8,10)),t=u.toString()+"-",i<10)t=t+"0"+i.toString();else{if(i<0)return"Měsíc je menší než nula";t=t+i.toString()}if(t=t+"-",r<10)t=t+"0"+r.toString();else{if(r>35)return"Den je větší než 35";t=t+r.toString()}return t};s=[];this.Event=function(n,t){var i=!1;s.forEach(function(r){n===r.name&&(i=!0,r.dates=t)});i===!1&&s.push(new tt(n,t))};this.HighlightEvents=function(){p()};Callbacks.Create("OnGenerateTableCallback-"+n);this.OnGenerateTableCallback=function(t){Callbacks.DoOrAdd("OnGenerateTableCallback-"+n,t)};Callbacks.Create("OnCellClickCallback-"+n);this.OnCellClickCallback=function(t){Callbacks.DoOrAdd("OnCellClickCallback-"+n,t)}}function SliderObject(n){function l(){var u=$("#"+n).width(),s=$("#"+n).height(),h=f*u,o;$("#"+n+" .slides").width(h);$("#"+n+" .slides .slide").width(u);t.customValues.showArrows&&(o=$("#"+n+" .sliderButtons").height(),$("#"+n+" .sliderButtons").css("top",s/2-o/2+"px"));e();i<0&&(i=0);b();r("update");k()}function b(){$("#"+n).removeClass("sliderTransition")}function k(){$("#"+n).addClass("sliderTransition")}function e(){t.customValues.enableAutoChange!==!1&&(clearInterval(s),s=setInterval(d,t.customValues.sliderDelay))}function d(){t.customValues.enableAutoChange!==!1&&r("right")}function r(n){if(MyLibrary.IsDefined(n)===!1||n!=="left"&&n!=="right"&&n!=="update"){console.log("Invalid or undefined direction in SliderObject.Animation("+n+")");return}(o!==!0||n==="update")&&(n==="right"?i++:n==="left"&&i--,i>f-1&&n==="right"?i=0:i<0&&n==="left"&&(i=f-1),n==="update"?h(i):h(i,!0))}function g(){o=!1;v();t.OnAnimationEnd()}function h(r,f){if(!o){if(MyLibrary.IsDefined(r)===!1||isNaN(parseInt(r))){console.log("Parameter targetSlide: "+r+" is not a number or undefined");return}if(MyLibrary.IsDefined(f)===!1&&(f=!1),t.customValues.animationType==="transform1")$("#"+n+" .slides").css("transform","translate3d("+r*$("#"+n).width()*-1+"px, 0, 0)");else if(t.customValues.animationType==="transform2")$("#"+n+" .slides").css("transform","translate3d("+r*$("#"+n).width()*-1+"px, 0, 0)"),f&&(o=!0);else if(t.customValues.animationType==="opacity")$("#"+n+" .slides .slide").each(function(n){n===r?$(this).css("opacity","1"):$(this).css("opacity","0")});else{console.log("Unknown animationType: "+t.customValues.animationType);return}f===!0&&(t.OnAnimationStart(),clearTimeout(c),tt(),c=setTimeout(g,u));a(r);i=r;e()}}function nt(){if(t.customValues.showDots!==!1){var n=$(this).data("id");h(n,!0)}}function a(i){if(t.customValues.showDots!==!1){if(MyLibrary.IsDefined(i)===!1||isNaN(parseInt(i))){console.log("Parameter dotId:"+i+" is not defined or is not a number");return}$("#"+n+" .sliderDots .dot").removeClass("selectedDot");$("#"+n+" .sliderDots .dot"+i).addClass("selectedDot")}}function v(i){if(t.customValues.showLoadingLine!==!1){MyLibrary.IsDefined(i)===!1&&(i=t.customValues.sliderDelay-u);y();var r=$("#"+n).width();MyLibrary.StopAnimation("#"+n+" .sliderLoadingLine");$("#"+n+" .sliderLoadingLine").animate({width:"101%"},i,"linear",function(){})}}function tt(){t.customValues.showLoadingLine!==!1&&(MyLibrary.StopAnimation("#"+n+" .sliderLoadingLine"),$("#"+n+" .sliderLoadingLine").animate({opacity:"0"},u,"linear",function(){y()}))}function y(){t.customValues.showLoadingLine!==!1&&(MyLibrary.StopAnimation("#"+n+" .sliderLoadingLine"),$("#"+n+" .sliderLoadingLine").css("opacity","1").css("width","0px"))}function p(){r("left")}function w(){r("right")}var t=this,i=0,f=0,s,u=0,c,o=!1;this.customValues={sliderDelay:5e3,showArrows:!0,showDots:!0,showLoadingLine:!0,enableSwipe:!0,enableAutoChange:!0,animationType:"transform1"};this.Initialize=function(){if($("#"+n).length<=0){console.log("Slider.Initialization(#"+n+") - no slider with that ID found");return}if(f=$("#"+n+" .slides .slide").length,$("#"+n+" .slides .slide").each(function(n){$(this).addClass("slide"+n)}),t.customValues.enableAutoChange&&e(),t.customValues.showArrows){$("#"+n+" .sliderButtons .sliderButtonLeft").off("click",t.PreviousSlide);$("#"+n+" .sliderButtons .sliderButtonLeft").on("click",t.PreviousSlide);$("#"+n+" .sliderButtons .sliderButtonRight").off("click",t.NextSlide);$("#"+n+" .sliderButtons .sliderButtonRight").on("click",t.NextSlide)}else $("#"+n+" .sliderButtons").css("display","none");t.customValues.showDots?t.DotsInitialize():$("#"+n+" .sliderDotsWrapper").css("display","none");u=$("#"+n+" .slides").css("transition-duration");u=parseFloat(u.slice(0,-1))*1e3;t.customValues.enableSwipe&&t.InitializeSwipe();t.customValues.showLoadingLine&&t.customValues.enableAutoChange?t.InitializeLoadingLine():$("#"+n+" .sliderLoadingLineWrapper").css("display","none")};$(function(){t.Initialize()});Resize.Add(l);this.SliderResize=function(){l()};this.GetActiveSlideSelector=function(){return"#"+n+" .slides .slide"+i};this.GetActiveSlideId=function(){return i};this.PreviousSlide=function(){e();r("left")};this.NextSlide=function(){e();r("right")};this.Animation=function(n){r(n)};Callbacks.Create("OnAnimationStart-"+n);this.OnAnimationStart=function(t){Callbacks.DoOrAdd("OnAnimationStart-"+n,t)};Callbacks.Create("OnAnimationEnd-"+n);this.OnAnimationEnd=function(t){Callbacks.DoOrAdd("OnAnimationEnd-"+n,t)};t.DotsInitialize=function(){var u,r;if(t.customValues.showDots!==!1){for($("#"+n+" .sliderDots .dot").first().addClass("prefab"),$("#"+n+" .sliderDots .dot").each(function(){$(this).hasClass("prefab")===!1&&$(this).remove()}),$("#"+n+" .sliderDots .dot").removeClass("prefab"),u=$("#"+n+" .sliderDots").html(),$("#"+n+" .sliderDots").empty(),r=0;r<f;r++)$("#"+n+" .sliderDots").append(u);$("#"+n+" .sliderDots .dot").each(function(n){$(this).addClass("dot"+n).data("id",n)});$("#"+n+" .sliderDots .dot").click(nt);a(i)}};this.InitializeLoadingLine=function(){t.customValues.showLoadingLine!==!1&&v(t.customValues.sliderDelay)};this.InitializeSwipe=function(){if(t.customValues.enableSwipe!==!1){$("#"+n).off("swiperight",p);$("#"+n).on("swiperight",p);$("#"+n).off("swipeleft",w);$("#"+n).on("swipeleft",w)}}}function FormObject(n){function k(){function t(n){this.name=n;this.array=[]}var i=this,n=[];this.Create=function(i){if(MyLibrary.IsDefined(i)===!1||i===""){console.log("Name in ElementsStorage.Create() is empty or undefined");return}n.forEach(function(n){if(n.name===i){console.log("Name "+i+" for callback already exists");return}});n.push(new t(i))};this.Add=function(t,i){if(MyLibrary.IsDefined(t)===!1||t===""||MyLibrary.IsDefined(i)===!1||i===""){console.log("Parameter name or elements in ElementsStorageObject.Add() is empty or undefined");return}var r=!1;if(n.forEach(function(n){if(n.name===t){if(MyLibrary.IsArray(i))i.forEach(function(n){if($(n).length<=0){console.log("One or more elements in ElementsStorage.Add() has not been found");return}}),n.array=n.array.concat(i);else{if($(i).length<=0){console.log("Element in ElementsStorage.Add() has not been found");return}n.array.push(i)}r=!0}}),r===!1){console.log("Name "+t+" in ElementsStorageObject.Add() has not found any existing objects.");return}};this.Return=function(t){if(MyLibrary.IsDefined(t)===!1||t===""){console.log("Name in ElementsStorage.Return() is empty or undefined");return}var i=!1,r=[];if(n.forEach(function(n){n.name===t&&(r=n.array,i=!0)}),i===!1){console.log("Name "+t+" in ElementsStorageObject.Return() has not found any existing objects.");return}return r};this.ReturnAll=function(){var t=[];return n.forEach(function(n){t=t.concat(n.array)}),t};this.RemoveAll=function(){n.forEach(function(n){n.array=[]})}}function d(){return t.Return("MustBeFilled-"+n)}function g(){return t.Return("MustBeEmail-"+n)}function nt(){return t.Return("MustBePhoneNumber-"+n)}function tt(){return t.Return("TaxpayerIdentificationNumber-"+n)}function y(){return t.Return("MustBeChecked-"+n)}function it(){return t.Return("InputLimit-"+n)}function rt(){return t.Return("RegExp-"+n)}function s(i){var r="",s,c,l,a,p,w,b;MyLibrary.IsDefined(i)&&(r=i);s=g();s.forEach(function(n){if($(n).prop("id")===r||r===""){var t=$(n).prop("value");t===""||MyLibrary.ValidateEmail(t)===!1?$(n).removeClass("validInput").addClass("invalidInput"):$(n).removeClass("invalidInput").addClass("validInput")}});c=d();c.forEach(function(n){if($(n).prop("id")===r||r===""){var t=$(n).prop("value");t===""?$(n).removeClass("validInput").addClass("invalidInput"):$(n).removeClass("invalidInput").addClass("validInput")}});l=nt();l.forEach(function(n){if($(n).prop("id")===r||r===""){var t=$(n).prop("value");MyLibrary.ValidatePhoneNumber(t)===!1?$(n).removeClass("validInput").addClass("invalidInput"):$(n).removeClass("invalidInput").addClass("validInput")}});a=tt();a.forEach(function(n){if($(n).prop("id")===r||r===""){var t=$(n).prop("value");t.length!==8?$(n).removeClass("validInput").addClass("invalidInput"):$(n).removeClass("invalidInput").addClass("validInput")}});p=y();p.forEach(function(n){if($(n).prop("id")===r||r===""){var t=$(n).prop("checked");t===!1?$(n).removeClass("validInput").addClass("invalidInput"):$(n).removeClass("invalidInput").addClass("validInput")}});w=rt();w.forEach(function(n){if($(n).prop("id")===r||r===""){var t=$(n).prop("value"),i=new RegExp($(n).data("formRegExp"));i.test(t)===!1?$(n).removeClass("validInput").addClass("invalidInput"):$(n).removeClass("invalidInput").addClass("validInput")}});b=it();b.forEach(function(n){if($(n).prop("id")===r||r===""){var i=$(n).data("inputLimit"),t=$(n).prop("value").length;$("[data-input-limit-selector='"+n+"']").removeClass("charsOverflow");t>i?($(n).removeClass("validInput").addClass("invalidInput"),$("[data-input-limit-selector='"+n+"']").addClass("charsOverflow")):$(n).hasClass("formMaxCharsOnly")&&$(n).removeClass("invalidInput").addClass("validInput");$("[data-input-limit-selector='"+n+"'] .inputLimitCurrentCount").text(t)}});CustomInputs.MarkValidity();u.OnStatusCheckCallback();var o=!0,ot=MyLibrary.RemoveDuplicatesFromArray(t.ReturnAll()).length,k=$("#"+n+" .invalidInput.validatedFormElement").length,ut=$("#"+n+" .formMaxCharsOnly").length,ft=$("#"+n+" .validInput.validatedFormElement").length-ut,et=ot-ut;(k>0||ft<et)&&(o=!1);h&&console.log("Invalid elements: "+k+", Valid elements: "+ft+", Needed valid elements: "+et+", status: "+o);e&&(o===!0?$("#"+n+" .captchaWrapper").css("max-height","6rem"):$("#"+n+" .captchaWrapper").css("max-height","0"));f===!1&&e===!0&&(o=!1);h&&console.log("Status after captcha validation (and final status): "+o);v=o;o===!0?$("#"+n+" [type='submit'], #"+n+" .submit").prop("disabled",!1).removeClass("disabled").addClass("enabled"):$("#"+n+" [type='submit'], #"+n+" .submit").prop("disabled",!0).addClass("disabled").removeClass("enabled");u.OnStatusCheckAfterValidationCallback()}function i(){var n=t.ReturnAll();n.forEach(function(n){$(n).off("input",r).off("change",r).off("blur",r);$(n).on("input",r).on("change",r).on("blur",r);$(n).addClass("validatedFormElement")})}function r(){s($(this).prop("id"))}function p(){$("#"+n+" .validInput").removeClass("validInput");$("#"+n+" .invalidInput").removeClass("invalidInput")}function l(){$("#"+n+" .messageErrors").empty();a()}function w(t,i){if(MyLibrary.IsDefined(t)===!1||MyLibrary.IsDefined(i)===!1||t===""||i===""){console.log("Some parameters in Form.AddMessageError("+t+", "+i+") are empty or undefined");return}if($("#"+n+' [name="'+t+'"]').length<=0&&t!=="general"){console.log("Input in Form.AddMessageError("+t+", "+i+') with name "'+t+'" has not been found');return}if($("#"+n+' [data-form-message-for="'+t+'"]').length<=0&&t!=="general"){console.log("Message element in Form.AddMessageError("+t+", "+i+') with name "'+t+'" has not been found. Maybe you forgot to add data-form-message-for attribute to your .messageErrors element?');return}if(t==="general"&&$("#"+n+" .generalMessageErrors").length<=0){console.log("Input in Form.AddMessageError("+t+", "+i+") did not found .generalMessageErrors");return}t==="general"?$("#"+n+" .generalMessageErrors").append("<p>"+i+"<\/p>"):$("#"+n+' [data-form-message-for="'+t+'"]').append("<p>"+i+"<\/p>");a()}function a(){$("#"+n+" .messageErrors").each(function(){$(this).html()===""?$(this).addClass("emptyMessageErrors"):$(this).removeClass("emptyMessageErrors")})}function b(){if(MyLibrary.IsDefined(grecaptcha)===!1){console.log('When you called Form.ResetCaptcha(), class "grecaptcha" was not defined');return}o=null;f=!1;grecaptcha.reset()}var u=this,h=!1,f=!1,e=!0,c=!1,o=null,v=!1,t;this.Initialization=function(){c===!1&&($("#"+n+" .g-recaptcha").length<=0||$("#"+n+" .captchaWrapper").length<=0)&&(f=!0,e=!1);$("#"+n+" [type='submit'], #"+n+" .submit").prop("disabled",!0).addClass("disabled").removeClass("enabled");u.InitializeInputLimit()};$(function(){u.Initialization()});this.InitializeInputLimit=function(){$("#"+n+" .inputLimit").each(function(){var n=$(this).data("inputLimitSelector"),t,i,r,f;if($(n).length<=0){console.log("Element "+n+" in Form.InitializeInputLimit() was not found");return}t=$(n).data("inputLimit");i=$(n).prop("value").length;$(this).find(".inputLimitMaxCount").text(t);$(this).find(".inputLimitCurrentCount").text(i);u.AddInputLimit(n);r=$(n).prop("value").length;f=$(n).prop("id");r>0&&s(f)})};t=new k;t.Create("MustBeFilled-"+n);this.AddMustBeFilled=function(r){t.Add("MustBeFilled-"+n,r);i()};t.Create("MustBeEmail-"+n);this.AddMustBeEmail=function(r){t.Add("MustBeEmail-"+n,r);i()};t.Create("EventOnly-"+n);this.AddEventOnly=function(r){t.Add("EventOnly-"+n,r);i()};t.Create("MustBePhoneNumber-"+n);this.AddMustBePhoneNumber=function(r){t.Add("MustBePhoneNumber-"+n,r);i()};t.Create("TaxpayerIdentificationNumber-"+n);this.AddMustBeTaxpayerIdentificationNumber=function(r){t.Add("TaxpayerIdentificationNumber-"+n,r);i()};t.Create("MustBeChecked-"+n);this.AddMustBeChecked=function(r){t.Add("MustBeChecked-"+n,r);i()};t.Create("InputLimit-"+n);this.AddInputLimit=function(r){t.Add("InputLimit-"+n,r);i()};t.Create("RegExp-"+n);this.AddMustBeRegExp=function(r){t.Add("RegExp-"+n,r);i()};this.RemoveAllValidations=function(){var n=t.ReturnAll();n.forEach(function(n){$(n).off("input",r).off("change",r).off("blur",r);$(n).removeClass("validatedFormElement")});t.RemoveAll();u.InitializeInputLimit()};this.CheckStatus=function(n){s(n)};this.InitializeEvents=function(){i()};Callbacks.Create("OnStatusCheckCallback-"+n);this.OnStatusCheckCallback=function(t){Callbacks.DoOrAdd("OnStatusCheckCallback-"+n,t)};Callbacks.Create("OnStatusCheckAfterValidationCallback-"+n);this.OnStatusCheckAfterValidationCallback=function(t){Callbacks.DoOrAdd("OnStatusCheckAfterValidationCallback-"+n,t)};this.RemoveAllValidationClasses=function(){p()};this.RemoveAllMessageErrors=function(){l};this.Reset=function(){var r=t.ReturnAll(),i;r.forEach(function(t){var i="";MyLibrary.IsDefined($("#"+n+" "+t).data("formDefaultValue"))&&(i=$("#"+n+" "+t).data("formDefaultValue"));$("#"+n+" "+t).prop("value",i).trigger("change")});i=y();i.forEach(function(t){$("#"+n+" "+t).prop("checked",!1)});p();l();CustomInputs.UpdateCheckboxesByInput();b()};this.AddMessageError=function(n,t){w(n,t)};this.ImportMessageErrorsJSON=function(n){if(MyLibrary.IsDefined(n)===!1){console.log("Parameter in Form.ImportMessageErrorsJSON("+n+") is undefined");return}l();for(var t=0;t<n.length;t++)w(n[t].name,n[t].text)};this.UpdateMessageClass=function(){a()};this.CaptchaCallback=function(n){o=n;f=!0;h&&console.log("Captcha status is now: "+f);s()};this.GetCaptchaResponse=function(){if(o===null){console.log("Form.GetCaptchaResponse() cannot return response, because it's still null. Maybe Form.CaptchaCallback() was not called (thus captcha is not validated)?");return}return o};this.CaptchaManualSwitch=function(n){if(n!=="on"&&n!=="off"){console.log("Form.CaptchaManualSwitch("+n+") - unknown command");return}n==="on"?(c=!0,e=!0):n==="off"&&(c=!1,e=!1)};this.ResetCaptcha=function(){b()};this.IsEnabled=function(){return v}}function MenuObject(n,t,i){function e(){$("#"+n).addClass("open");r.OnMenuOpen()}function f(){$("#"+n).removeClass("open");r.OnMenuClose()}function o(){MyLibrary.windowWidth>=t||($("#"+n).hasClass("open")?f():e());r.OnMenuClick()}function s(){u>-1&&($("#"+n+" ul li").removeClass("hover"),$(this).addClass("hover"));r.OnHoverIn()}function h(){u>-1&&($("#"+n+" ul li").removeClass("hover"),$("#"+n+" ul li").each(function(n){n===u&&$(this).addClass("hover")}));r.OnHoverOut()}var r=this,c,u;this.breakPoint=t;this.scrollLimit=i;this.Initialize=function(){$("#"+n).off("click",o);$("#"+n).on("click",o);$("#"+n+" ul li").off("mouseenter",s).off("mouseleave",h);$("#"+n+" ul li").on("mouseenter",s).on("mouseleave",h)};$(function(){r.Initialize()});Callbacks.Create("OnTopScroll-"+n);this.OnTopScroll=function(t){Callbacks.DoOrAdd("OnTopScroll-"+n,t)};Callbacks.Create("OnBottomScroll-"+n);this.OnBottomScroll=function(t){Callbacks.DoOrAdd("OnBottomScroll-"+n,t)};Callbacks.Create("OnDesktopMenu-"+n);this.OnDesktopMenu=function(t){Callbacks.DoOrAdd("OnDesktopMenu-"+n,t)};Callbacks.Create("OnMobileMenu-"+n);this.OnMobileMenu=function(t){Callbacks.DoOrAdd("OnMobileMenu-"+n,t)};Callbacks.Create("OnMenuClick-"+n);this.OnMenuClick=function(t){Callbacks.DoOrAdd("OnMenuClick-"+n,t)};Callbacks.Create("OnMenuOpen-"+n);this.OnMenuOpen=function(t){Callbacks.DoOrAdd("OnMenuOpen-"+n,t)};Callbacks.Create("OnMenuClose-"+n);this.OnMenuClose=function(t){Callbacks.DoOrAdd("OnMenuClose-"+n,t)};Callbacks.Create("OnHoverIn-"+n);this.OnHoverIn=function(t){Callbacks.DoOrAdd("OnHoverIn-"+n,t)};Callbacks.Create("OnHoverOut-"+n);this.OnHoverOut=function(t){Callbacks.DoOrAdd("OnHoverOut-"+n,t)};Resize.Add(function(){MyLibrary.IsDefined(t)&&(MyLibrary.windowWidth>=t?($("#"+n).addClass("desktopMenu").removeClass("mobileMenu"),f(),r.OnDesktopMenu()):($("#"+n).removeClass("desktopMenu").addClass("mobileMenu"),r.OnMobileMenu()))});c=!0;Scroll.Add(function(){MyLibrary.IsDefined(i)&&(MyLibrary.scrollTop<=i?($("#"+n).removeClass("scroll"),r.OnTopScroll()):($("#"+n).addClass("scroll"),r.OnBottomScroll()))});this.Open=function(){e()};this.Close=function(){f()};u=-1;this.SetOpenedItem=function(t){if(MyLibrary.IsDefined(t)===!1){console.log("Parameter 'index' in SetOpenedItem() is undefined");return}if(t>$("#"+n+" ul li").length-1){console.log("Parameter 'index' in SetOpenedItem("+t+") is out of range");return}u=t;$("#"+n+" ul li").removeClass("selected");$("#"+n+" ul li").each(function(n){n===t&&$(this).addClass("selected").addClass("hover")})}}function CustomInputsObject(){function i(){function i(){$(this).closest(".customInput").find(".customInputElement").prop("value","").trigger("change").trigger("input")}function t(){var t=$(this).prop("value");t.length>0?$(this).closest(".customInput").find(".inputCross").addClass("enabled").removeClass("disabled"):$(this).closest(".customInput").find(".inputCross").addClass("disabled").removeClass("enabled");n()}var r=this;this.Initialize=function(){$(".customTextInput .inputCross").off("click",i);$(".customTextInput .inputCross").on("click",i);$(".customTextInput .customInputElement").off("input",t).off("change",t);$(".customTextInput .customInputElement").on("input",t).on("change",t)};$(function(){$(".customTextInput").length>0&&r.Initialize()})}function r(){function t(){$(this).closest(".customInput").find(".customSelectElement").prop("value","").trigger("change")}function i(){var t=$(this).prop("value");t.length>0?$(this).closest(".customInput").find(".inputCross").addClass("enabled").removeClass("disabled"):$(this).closest(".customInput").find(".inputCross").addClass("disabled").removeClass("enabled");n()}var r=this;this.Initialize=function(){$(".customSelectInput .inputCross").off("click",t);$(".customSelectInput .inputCross").on("click",t);$(".customSelectInput .customSelectElement").off("change",i);$(".customSelectInput .customSelectElement").on("change",i);$(".customSelectInput .customSelectElement .selectDefault").remove();$(".customSelectInput .customSelectElement").each(function(){var n="";MyLibrary.IsDefined($(this).data("placeholder"))&&(n=$(this).data("placeholder"));$(this).prepend('<option class="selectDefault" value="" selected hidden>'+n+"<\/option>")})};$(function(){$(".customSelectInput").length>0&&r.Initialize()})}function u(){function u(){$(this).closest(".customInput").find(".customDateElement").prop("value","").trigger("change").trigger("input");var n=$(this).closest(".customDateInput").prop("id"),t=$("#"+n).find(".calendar").prop("id");i(t,!1);r.Get(n).object.ResetSelectedCell()}function t(){var t=$(this).prop("value");t.length>0?$(this).closest(".customInput").find(".inputCross").addClass("enabled").removeClass("disabled"):$(this).closest(".customInput").find(".inputCross").addClass("disabled").removeClass("enabled");n()}function f(){$(this).blur()}function e(){var n=$(this).closest(".customDateInput").find(".calendar").prop("id");i(n)}function i(n,t){var i=!1,u,f;MyLibrary.IsDefined(t)===!0?i=t:($("#"+n).hasClass("open")&&(i=!0),i=!i);MyLibrary.StopAnimation("#"+n);i===!0?($("#"+n).css("pointer-events","auto").css("display","block"),$("#"+n).animate({opacity:"1"},200,function(){}),u=$("#"+n).closest(".customDateInput").prop("id"),f=r.Get(u).object,f.SetSelectedCellsMonth(),$("#"+n).addClass("open").removeClass("closed"),$("#"+n).closest(".customDateInput").addClass("open").removeClass("closed")):i===!1&&($("#"+n).css("pointer-events","none"),$("#"+n).animate({opacity:"0"},200,function(){$("#"+n).css("display","none")}),$("#"+n).addClass("closed").removeClass("open"),$("#"+n).closest(".customDateInput").addClass("closed").removeClass("open"))}function s(){$(".customDateInput").each(function(){var n=$(this).prop("id"),t=$("#"+n+" .calendar").prop("id");i(t,!1)})}function h(){function t(n,t,i){this.id=n;this.calendarId=t;this.object=i}var i=this,n=[];this.Add=function(i){var u=$("#"+i).find(".calendar").prop("id"),r,f;n.forEach(function(n){if(i===n.id){console.log("Duplicate IDs in .customDateInput");return}if(u===n.calendarId){console.log("Duplicate IDs in .customDateInput .calendar");return}});r=new CalendarObject(u);r.OnCellClickCallback(function(){var n=$("#"+i+" .selectedCell").data("date"),t=r.GetHumanString(r.DateStringFromJS(n));$("#"+i).closest(".customDateInput").find(".customDateElement").prop("value",t).trigger("change")});f=new t(i,u,r);n.push(f)};this.Get=function(t){var i="";if(n.forEach(function(n){n.id===t&&(i=n)}),i===""){console.log("Custom date input from dateInputStorage.Get("+t+") not found");return}return i}}var o=this,r;this.Initialize=function(){$(".customDateInput .inputCross").off("click",u);$(".customDateInput .inputCross").on("click",u);$(".customDateInput .customDateElement").off("input",t).off("change",t);$(".customDateInput .customDateElement").on("input",t).on("change",t);$(".customDateInput .customDateElementWrapper").off("click",e);$(".customDateInput .customDateElementWrapper").on("click",e);$(".customDateInput .customDateElement").off("focus",f);$(".customDateInput .customDateElement").on("focus",f);$(document).click(function(n){if($(n.target).closest(".customDateInput").length<=0)s();else{var t="";t=$(n.target).hasClass("customDateInput")?$(n.target).prop("id"):$(n.target).closest(".customDateInput").prop("id");$(".customDateInput").each(function(){var n=$(this).prop("id"),r;n!==t&&(r=$("#"+n+" .calendar").prop("id"),i(r,!1))})}});$(".customDateInput").each(function(){var n=$(this).prop("id");if(n===""||MyLibrary.IsDefined(n)===!1){console.log("Some custom date input has no ID");return}r.Add(n)});$(".customDateInput .calendar").css("pointer-events","none").css("display","none").css("opacity","0")};$(function(){$(".customDateInput").length>0&&o.Initialize()});r=new h}function n(){$(".validInput, .invalidInput").each(function(){var n="";$(this).hasClass("validInput")?n="validInput":$(this).hasClass("invalidInput")&&(n="invalidInput");$(this).closest(".customInput").removeClass("invalidInput").removeClass("validInput").addClass(n)})}function f(){function n(){$(this).closest(".customCheckboxInput").hasClass("checked")?($(this).closest(".customCheckboxInput").removeClass("checked"),$(this).closest(".customCheckboxInput").find(".customCheckboxFormElement").prop("checked",!1).trigger("change")):($(this).closest(".customCheckboxInput").addClass("checked"),$(this).closest(".customCheckboxInput").find(".customCheckboxFormElement").prop("checked",!0).trigger("change"))}var t=this;this.Initialize=function(){$(".customCheckboxInput .customCheckboxElementWrapper").off("click",n);$(".customCheckboxInput .customCheckboxElementWrapper").on("click",n)};$(function(){$(".customCheckboxInput").length>0&&t.Initialize()})}function e(){$(".customCheckboxInput").each(function(){$(this).hasClass("checked")?$(this).find(".customCheckboxFormElement").prop("checked",!0):$(this).closest(".customCheckboxInput").find(".customCheckboxFormElement").prop("checked",!1)})}function o(){$(".customCheckboxInput").each(function(){$(this).find(".customCheckboxFormElement").prop("checked")==!0?$(this).addClass("checked"):$(this).removeClass("checked")})}function s(){function n(){$(this).closest(".customFileInput").find(".customFileInputElement").trigger("click")}function i(){for(var f,n,i=[],r=0;r<$(this).get(0).files.length;r++)i.push($(this).get(0).files[r].name);var u=$(this).prop("value"),e=u.split("\\"),o=e[e.length-1];u.length>0?(f=o,i.length>1&&(f="Počet souborů: "+i.length),$(this).closest(".customFileInput").find(".customFileInputNameElement").text(f).removeClass("placeholder")):(n=$(this).closest(".customFileInput").find(".customFileInputName").data("placeholder"),MyLibrary.IsDefined(n)==!1&&(n=""),$(this).closest(".customFileInput").find(".customFileInputNameElement").text(n).addClass("placeholder"));u.length>0?$(this).closest(".customFileInput").find(".inputCross").addClass("enabled").removeClass("disabled"):$(this).closest(".customFileInput").find(".inputCross").addClass("disabled").removeClass("enabled");t()}function r(n){$(this).closest(".customFileInput").find(".customFileInputElement").prop("value","").trigger("change");n.preventDefault();return}var u=this;this.Initialize=function(){if($(".customFileInput").length>0){$(".customFileInput .customFileInputElement").off("change",i);$(".customFileInput .customFileInputElement").on("change",i);$(".customFileInput").each(function(){var n=$(this).find(".customFileInputName").data("placeholder");MyLibrary.IsDefined(n)&&$(this).find(".customFileInputNameElement").text(n).addClass("placeholder")});$(".customFileInput .inputCross").addClass("disabled").removeClass("enabled");$(".customFileInput .inputCross").off("click",r);$(".customFileInput .inputCross").on("click",r);$(".customFileInput .customFileInputButton, .customFileInput .customFileInputNameElement").off("click",n);$(".customFileInput .customFileInputButton, .customFileInput .customFileInputNameElement").on("click",n)}};$(function(){u.Initialize()})}function t(){$(".customFileInput").each(function(){var n=$(this).height(),t=$(this).find(".customFileInputButton").outerWidth(!0),f=$(this).find(".inputCross").height(),e=$(this).find(".inputCross").width(),i,r,u;$(this).find(".customFileInputButton").css("line-height",n+"px");i=(n-f)/2;$(this).find(".inputCross").css("top",i+"px");$(this).find(".inputCross").css("right",t+"px");r=10;u=t+e+r;$(this).find(".customFileInputName").css("padding-right",u+"px")})}var h=this;this.TextInput=new i;this.Select=new r;this.DateInput=new u;Resize.Add(function(){$(".customInput").each(function(){var n,t,i,f,r,u;if($(this).find(".customInputElement").length>0||$(this).find(".customSelectElement").length>0||$(this).find(".customDateElement").length>0){if(n=0,$(this).find(".inputCross").length>0&&(n=$(this).find(".inputCross").width()),t=0,$(this).find(".inputIcon").length>0&&(t=$(this).find(".inputIcon").width()),i=$(this).width(),$(this).find(".customInputElement, .customDateElement").length>0&&(f=$(this).find(".customInputElementWrapper").width(),r=i-n-t,$(this).find(".customInputElementWrapper").width(r)),$(this).find(".customSelectElement").length>0){var e=MyLibrary.CropPx($(this).find(".customSelectElement").css("padding-left")),o=MyLibrary.CropPx($(this).find(".customSelectElement").css("padding-right")),s=MyLibrary.CropPx($(this).find(".customSelectElement").css("margin-left")),h=MyLibrary.CropPx($(this).find(".customSelectElement").css("margin-right")),c=i-n-t-e-o-s-h;$(this).find(".customSelectElement").width(c)}$(this).find(".customDateElement").length>0&&(u=$(this).find(".customDateElement").position().left,$(this).find(".calendar").css("left",u+"px"))}})});this.MarkValidity=function(){n()};this.CheckboxInput=new f;this.UpdateCheckboxesByClass=function(){e()};this.UpdateCheckboxesByInput=function(){o()};this.FilesInput=new s;Resize.Add(t);this.FileInputResize=function(){t()}}function HashControllerObject(){function e(){function n(n,r){if(MyLibrary.IsDefined(n)===!1){console.log("HashElementStorage.Value("+n+") has undefined parameter");return}var f=!1,u=null;if(t.forEach(function(t){t.name===n&&(MyLibrary.IsDefined(r)?t.value=r:(u=t.value,t.type==="data"&&i()),f=!0)}),u!==null)return u;if(f===!1){console.log("HashElementStorage.Value("+n+") has not found any filter with that name");return}}function f(n,t,i,r){this.name=n;this.id=t;this.value;this.type=i;this.object=r}var e=this,t=[];this.Add=function(e,s,c,l){var a,v,y;if(MyLibrary.IsDefined(e)===!1||MyLibrary.IsDefined(s)===!1||MyLibrary.IsDefined(c)===!1){console.log("Some parameter in HashElementStorage.Add("+e+", "+s+", "+c+") is not defined");return}if(c==="text"||c==="select"||c==="multiselect"||c==="checkbox"){if($('[name="'+e+'"]').length<=0||$("#"+s).length<=0){console.log("Element with name "+e+" and id "+s+" was not found");return}}else if(c==="html"){if($("#"+s).length<=0){console.log("Element with id "+s+" was not found");return}}else if(c!=="data")if(c==="checkboxArray"){if($("."+s).length<=0){console.log("Element with class "+s+" was not found");return}}else if(c=="rangeSelector"){if(MyLibrary.IsUndefined(l)){console.log('Parameter "object" (4th) in HashController.Add('+e+", "+s+", "+c+", "+l+") is undefined");return}}else if(c=="paging"&&$("#"+s).length<=0){console.log("Element with id "+s+" was not found");return}if(a=new f(e,s,c,l),a.value=u(e),c==="text"||c==="select")$("#"+a.id).prop("value",a.value).trigger("change");else if(c==="checkbox")a.value===!0||a.value==="true"?$("#"+a.id).prop("checked",!0).trigger("change"):$("#"+a.id).prop("checked",!1).trigger("change"),CustomInputs.UpdateCheckboxesByInput();else if(c==="multiselect")v=a.value,v!==""&&v!==null&&(v=v.split(","),v.forEach(function(n){$("#"+a.id+' option[value="'+n+'"]').prop("selected",!0)}));else if(c==="html")a.value!==null&&a.value.indexOf("<script>")===-1&&$("#"+a.id).append(a.value);else if(c!=="data")if(c==="checkboxArray")a.value!==null&&(y=a.value.split(","),y.forEach(function(n){$("[data-checkbox-array-id='"+n+"']").prop("checked",!0)}),CustomInputs.UpdateCheckboxesByInput());else if(c=="rangeSelector"){if(a.value!==null){var p=a.value.split(","),w=p[0],b=p[1];a.object.MoveDotToValue(w,1);a.object.MoveDotToValue(b,2)}}else c=="paging";if(c==="text"||c==="select")$("#"+a.id).change(function(){var i=$(this).prop("name"),t=$(this).prop("value");t===""&&(t=null);n(i,t);r()});else if(c==="checkbox")$("#"+a.id).change(function(){var i=$(this).prop("name"),t=$(this).prop("checked");(t===!1||t==="false")&&(t=null);n(i,t);r()});else if(c==="multiselect")$("#"+a.id).change(function(){var i=$(this).prop("name"),t=[];$("#"+a.id+" option:selected").each(function(){var n=$(this).prop("value");n!==""&&t.push(n)});(t===""||t.length<=0)&&(t=null);n(i,t);r()});else if(c==="html")$("#"+a.id).on("DOMSubtreeModified",function(){var t=$(this).html();n(e,t);o()});else c==="data"||(c==="checkboxArray"?$("."+s).change(function(){var t=[];$("."+s).each(function(){$(this).prop("checked")===!0&&t.push($(this).data("checkboxArrayId"))});t.length===0&&(t="");n(e,t);r()}):c=="rangeSelector"?a.object.OnValueChange(function(){var t=a.object.GetCurrentValue(1);t+=",";t+=a.object.GetCurrentValue(2);n(e,t);r()}):c=="paging");t.push(a);c=="paging"&&(h(),i())};this.Value=function(t,i){return n(t,i)};this.ReturnElementArray=function(){return t}}function u(n){var t,i;if(MyLibrary.IsDefined(n)===!1||n===""){console.log("HashController.GetHashDataByName("+n+") has undefined or empty parameter");return}if(t=location.hash,t.indexOf(n+"=")===-1)return null;var u=t.indexOf(n+"="),f=u+n.length+1,r="";for(i=f;i<t.length;i++){if(MyLibrary.IsDefined(t[i])===!1||t[i]==="&")break;r+=t[i]}return r}function f(){var i=t.ReturnElementArray(),n="#";return i.forEach(function(t){t.value!==null&&t.value!==""&&t.value!==[]&&(n+=t.type==="multiselect"||t.type==="checkboxArray"?t.name+"="+t.value.toString()+"&":t.name+"="+t.value+"&")}),n=n.slice(0,-1),n===""&&(n="#empty"),n}function i(){var n=f();window.location.hash=n}function o(){n.OnAnyElementChange();i()}function r(){n.OnInputChange();n.OnAnyElementChange();i()}function s(){n.OnPageChange();n.OnAnyElementChange();i()}function h(){n.PagingReload()}var n=this,t;this.Initialization=function(){};$(function(){n.Initialization()});Callbacks.Create("OnAnyElementChange");this.OnAnyElementChange=function(n){Callbacks.DoOrAdd("OnAnyElementChange",n)};Callbacks.Create("OnPageChange");this.OnPageChange=function(n){Callbacks.DoOrAdd("OnPageChange",n)};Callbacks.Create("OnInputChange");this.OnInputChange=function(n){Callbacks.DoOrAdd("OnInputChange",n)};t=new e;this.GetHashDataByName=function(n){return u(n)};this.BuildHashData=function(){return f()};this.UpdateHashData=function(){i()};this.Add=function(n,i,r,u){t.Add(n,i,r,u)};this.Value=function(n,i){return t.Value(n,i)};this.PagingReload=function(){t.ReturnElementArray().forEach(function(n){n.type=="paging"&&($("#"+n.id+" a").each(function(){var n=$(this).prop("href");n==""?$(this).data("targetPage",-1):(n=n.split("="),$(this).data("targetPage",n[n.length-1]))}),n.value=$("#"+n.id+" .active a").text(),$("#"+n.id+" a").click(function(i){i.preventDefault();var r=$(this).data("targetPage");MyLibrary.IsDefined(r)&&r!=-1&&(t.Value(n.name,r),s())}))})}}function RangeSelectorObject(n){function l(n){return e.ProcessNumber(n)}function a(t){var i=$("#"+n).find(".dot").width();$("#"+n).off("mousedown",a);var r=MyLibrary.CursorPosition().x,e=$("#"+n+" .dot1").offset().left+i/2,u=Math.abs(r-e),o=$("#"+n+" .dot2").offset().left+i/2,f=Math.abs(r-o);u<=f?$("#"+n+" .dot1").trigger(t):u>f&&$("#"+n+" .dot2").trigger(t)}function b(t,u){var y=$("#"+n+" .containment").width(),p=MyLibrary.CropPx($("#"+n+" .dot1").css("left")),b=MyLibrary.CropPx($("#"+n+" .dot2").css("left")),k=$("#"+n).find(".dot").width(),f,l,e,a,s,c;u.position.left=u.position.left+h;f=$("#"+n+" .dot").width();$(this).hasClass("dot1")&&(l=u.position.left,e=b-f,l>e&&(u.position.left=e,i=r),v(1),o(1));$(this).hasClass("dot2")&&(a=u.position.left,s=p+f,a<s&&(u.position.left=s,r=i),v(2),o(2));c=y-k;u.position.left<0&&(u.position.left=0);u.position.left>=c&&(u.position.left=c);w();$(this).hasClass("dot1")===!1&&$(this).hasClass("dot2")===!1}function w(){var t=$("#"+n+" .backgroundLine").width(),i=MyLibrary.CropPx($("#"+n+" .dot1").css("left")),r=MyLibrary.CropPx($("#"+n+" .dot2").css("left")),u=t-r;$("#"+n+" .selectedLine").css("left",i+"px").css("right",u+"px")}function v(n){if(MyLibrary.IsDefined(n)===!1||n!==1&&n!==2){console.log("Parameter dotNumber:"+n+" from RangeSelector.UpdateDotValue() is not defined or is not '1' or '2'");return}n===1?(y(1),i=t.GetValue(u)):n===2&&(y(2),r=t.GetValue(f))}function y(t){var e,o;if(MyLibrary.IsDefined(t)===!1||t!==1&&t!==2){console.log("Parameter dotNumber:"+t+" from RangeSelector.UpdateDotPercent() is not defined or is not '1' or '2'");return}var s=MyLibrary.CropPx($("#"+n+" .dot1").css("left")),h=MyLibrary.CropPx($("#"+n+" .dot2").css("left")),i=$("#"+n).find(".dot").width(),c=$("#"+n+" .containment").width(),r=c-2*i;t===1?(e=s,u=e/r*100,u>100?u=100:u<0&&(u=0)):t===2&&(o=h-i,f=o/r*100,f>100?f=100:f<0&&(f=0))}function o(t){if(MyLibrary.IsDefined(t)===!1||t!==1&&t!==2){console.log("Parameter dotNumber:"+t+" from RangeSelector.UpdateNumberInput() is not defined or is not '1' or '2'");return}t===1&&i>r&&(i=r);t===2&&r<i&&(r=i);$("#"+n+" .customRangeSelectorNumberInput").length>0?t===1?$("#"+n+" .number1 .customInputElement").prop("value",l(p(i))).trigger("input"):t===2&&$("#"+n+" .number2 .customInputElement").prop("value",l(p(r))).trigger("input"):$("#"+n+" .customRangeSelectorPassiveIndicator").length>0&&(t===1&&$("#"+n+" .number1 .passiveIndicator").text(l(p(i))),t===2&&$("#"+n+" .number2 .passiveIndicator").text(l(p(r))));t===1?e.OnInputNumber1Change():t===2&&e.OnInputNumber2Change();e.OnInputChange()}function nt(){o(1);o(2)}function s(e,s){var h,v;if(MyLibrary.IsDefined(s)===!1||s!==1&&s!==2){console.log("Parameter dotNumber:"+s+" from RangeSelector.MoveDotToPercent() is not defined or is not '1' or '2'");return}if(MyLibrary.IsDefined(e)===!1){console.log("Parameter percent:"+e+" from RangeSelector.MoveDotToPercent() is not defined");return}var p=$("#"+n+" .containment").width(),l=MyLibrary.CropPx($("#"+n+" .dot1").css("left")),a=MyLibrary.CropPx($("#"+n+" .dot2").css("left")),c=$("#"+n).find(".dot").width(),b="#"+n+" .dot"+s,k=p-2*c,y=0;s===1?y=l:s===2&&(y=a-c);h=e*k/100;s===1?(l=h,h=l,u=e,i=t.GetValue(u),o(1)):s===2&&(a=h+c,h=a,f=e,r=t.GetValue(f),o(2));v=!1;l>=a-c&&(s===1?(h=a-c,i=r,o(1)):s===2&&(h=l+c,r=i,o(2)),v=!0);$(b).css("left",h+"px");w();v}function tt(n,i){if(MyLibrary.IsDefined(i)===!1||i!==1&&i!==2){console.log("Parameter dotNumber:"+i+" from RangeSelector.ModeDotToValue() is not defined or is not '1' or '2'");return}if(MyLibrary.IsDefined(n)===!1){console.log("Parameter value:"+n+" from RangeSelector.ModeDotToValue() is not defined");return}var r=t.GetPercent(n);s(r,i)}function k(){var f=t.GetValue(100),o=t.GetValue(0),n=$(this).prop("value").replace(/[^0-9]/g,""),u;isNaN(parseFloat(n))&&($(this).closest(".customRangeSelectorNumberInput").hasClass("number1")?(n=o,$(this).prop("value",n)):$(this).closest(".customRangeSelectorNumberInput").hasClass("number2")&&(n=f,$(this).prop("value",n)));n>f?n=f:n<o&&(n=o);var h=[0,100],c=[o,f],l=[i,r];for(u=1;u<=2;u++)$(this).closest(".customRangeSelectorNumberInput").hasClass("number"+u)&&(n===""?($(this).prop("value",c[u-1]),s(h[u-1],u)):l[u-1]!=n&&(s(t.GetPercent(n),u),$(this).find(".customInputElement").prop("value",n)));e.OnValueChange()}function d(){var n=$(this).prop("value").replace(/[^0-9]/g,"");isNaN(n)&&(n=n.replace(/\D/g,""),$(this).prop("value",n))}function g(){$(this).closest(".customRangeSelectorNumberInput").hasClass("number1")?$(this).closest(".customRangeSelectorNumberInput").find(".customInputElement").prop("value",t.GetValue(0)):$(this).closest(".customRangeSelectorNumberInput").hasClass("number2")&&$(this).closest(".customRangeSelectorNumberInput").find(".customInputElement").prop("value",t.GetValue(100));e.OnValueChange()}function p(n){if(c==null)return n;var n=parseFloat(n);return Math.round(n/c)*c}function it(){function t(n,t){this.percent=n;this.value=t}var n=[];this.Add=function(i,r){if(MyLibrary.IsDefined(i)===!1||MyLibrary.IsDefined(r)===!1){console.log("Function IndicatorPoints.Add() has some undefined parameters");return}if(i>100||i<0){console.log("Parameter 'percent' in IndicatorPoints.Add() is out of bounds");return}n.push(new t(i,r))};this.GetValue=function(t){var i;if(MyLibrary.IsDefined(t)===!1){console.log("Function IndicatorPoints.GetValue() has some undefined parameters");return}if(t>100||t<0){console.log("Parameter 'percent' IndicatorPoints.GetValue("+t+") in  is out of bounds");return}if(t==0)return n[0].value;if(t==100)return n[n.length-1].value;for(i=0;i<n.length;i++){if(n[i].percent===t)return n[i].value;if(n[i].percent<t&&n[i+1].percent>t){var r=n[i].value,u=n[i].percent,f=n[i+1].value,e=n[i+1].percent,o=(t-u)/(e-u)*100;return o*(f-r)/100+r}}};this.GetPercent=function(t){var i;if(MyLibrary.IsDefined(t)===!1){console.log("Function IndicatorPoints.GetPercent() has some undefined parameters");return}if(t>n[n.length-1].value||t<n[0].value){console.log("Parameter 'value' in IndicatorPoints.GetPercent() is out of bounds");return}if(t==n[n.length-1].value)return 100;if(t==n[0].value)return 0;for(i=0;i<n.length;i++){if(n[i].value==t)return n[i].percent;if(n[i].value<t&&n[i+1].value>t){var r=n[i].value,u=n[i].percent,f=n[i+1].value,e=n[i+1].percent,o=(t-r)/(f-r)*100;return o*(e-u)/100+u}}};this.Empty=function(){n=[]};this.Length=function(){return n.length}}var e=this,u=0,f=100,i=0,r=0,h=0,c=null,t;this.ProcessNumber=function(n){return n};this.Initialize=function(){if($("#"+n+" .customRangeSelectorNumberInput").length>0){$("#"+n+" .customRangeSelectorNumberInput input").off("change",k);$("#"+n+" .customRangeSelectorNumberInput input").on("change",k);$("#"+n+" .customRangeSelectorNumberInput .inputCross").off("click",g);$("#"+n+" .customRangeSelectorNumberInput .inputCross").on("click",g);$("#"+n+" .customRangeSelectorNumberInput.number1 input").prop("placeholder",t.GetValue(0));$("#"+n+" .customRangeSelectorNumberInput.number2 input").prop("placeholder",t.GetValue(100));$("#"+n+" .customRangeSelectorNumberInput input").off("input",d);$("#"+n+" .customRangeSelectorNumberInput input").on("input",d)}$(document).mouseup(function(){$("#"+n).off("mousedown",a);$("#"+n).on("mousedown",a)});$("#"+n+" .dot").draggable({axis:"x",start:function(){var t;h=0;var i=$("#"+n).find(".dot").width(),r=MyLibrary.CursorPosition().x,u=$(this).offset().left+i/2;h=r-u;t=MyLibrary.CropPx($(this).css("left"));$(this).css("left",t+h+"px");$("#"+n+" .dot").addClass("draggedDot")},drag:b,stop:function(t,i){b(t,i);$("#"+n+" .dot").removeClass("draggedDot");e.OnDragStop()}});$("#"+n).on("mousedown",a);if(i=t.GetValue(0),r=t.GetValue(100),u=0,f=100,t.Length()<2){console.log("Range selector (#"+n+") can not be initialized. There is less than two indicator points.");return}nt();var o=$("#"+n+" .containment").width(),s=$("#"+n).find(".dot").width();$("#"+n+" .dot1").css("left","0");$("#"+n+" .dot2").css("left",o-s+"px");w()};$(function(){e.Initialize();Resize.Add(function(){s(u,1);s(f,2)})});this.MoveDotToPercent=function(n,t){s(n,t)};this.MoveDotToValue=function(n,t){tt(n,t)};this.SetRounding=function(n){if(MyLibrary.IsUndefined(n)||!MyLibrary.IsNumber(n))return console.log('Parameter in RangeSelector("'+n+'") is undefined, forbidden value of "null" or NaN'),0;c=n};t=new it;this.AddIndicatorPoint=function(n,i){t.Add(n,i)};this.ClearIndicatorPoints=function(){t.Empty()};this.GetCurrentValue=function(t){if(MyLibrary.IsUndefined(t)||t>2||t<1)return console.log("RangeSelector.GetCurrentValue("+t+") has invalid input. It must be defined and 1 or 2. "),-1;var i;return $("#"+n+" .customRangeSelectorNumberInput").length>0?t===1?i=$("#"+n+" .number1 .customInputElement").prop("value"):t===2&&(i=$("#"+n+" .number2 .customInputElement").prop("value")):$("#"+n+" .customRangeSelectorPassiveIndicator").length>0&&(t===1&&(i=$("#"+n+" .number1 .passiveIndicator").text()),t===2&&(i=$("#"+n+" .number2 .passiveIndicator").text())),i.replace(/[^0-9]/g,"")};this.ValuesChanged=function(){return u<.5&&f>99.5?!1:!0};Callbacks.Create("OnInputChange-"+n);this.OnInputChange=function(t){Callbacks.DoOrAdd("OnInputChange-"+n,t)};Callbacks.Create("OnInputNumber1Change-"+n);this.OnInputNumber1Change=function(t){Callbacks.DoOrAdd("OnInputNumber1Change-"+n,t)};Callbacks.Create("OnInputNumber2Change-"+n);this.OnInputNumber2Change=function(t){Callbacks.DoOrAdd("OnInputNumber2Change-"+n,t)};Callbacks.Create("OnValueChange-"+n);this.OnValueChange=function(t){Callbacks.DoOrAdd("OnValueChange-"+n,t)};Callbacks.Create("OnDragStop-"+n);this.OnDragStop=function(t){Callbacks.DoOrAdd("OnDragStop-"+n,t)};e.OnDragStop(function(){e.OnValueChange()})}function AjaxQueueObject(){function i(){function i(n){this.name=n;this.queue=[];this.waiting=!1;this.always=function(){t.AjaxDone(n)}}function r(n){this.object=n;this.ajaxObject}var t=this,n=[];this.Add=function(i,u){var f,e;if(MyLibrary.IsDefined(i)===!1){console.log("AjaxQueue.Add() has undefined ajaxObject: "+ajaxObject);return}if(f="default",MyLibrary.IsDefined(u)&&(f=u),e=!1,n.forEach(function(n){if(n.name===f){var u=new r(i);n.queue.push(u);t.Refresh();e=!0}}),e===!1){console.log("AjaxQueue.Add() fileld name have not found any object: "+f);return}t.Refresh()};this.Create=function(t){var r,u;if(MyLibrary.IsDefined(t)===!1){console.log("AjaxQueuesStorage.Create() has undefined name: "+t);return}if(r=!1,n.forEach(function(n){n.name===t&&(r=!0)}),r){console.log("AjaxQueuesStorage.Create("+t+") - name already exists");return}u=new i(t);n.push(u)};this.Refresh=function(){n.forEach(function(n){n.waiting===!1&&MyLibrary.IsDefined(n.queue[0])&&(n.queue[0].ajaxObject=$.ajax(n.queue[0].object).always(n.always),n.waiting=!0)})};this.AjaxDone=function(i){if(MyLibrary.IsDefined(i)===!1){console.log("AjaxQueuesStorage.AjaxDone() has undefined queueName: "+i);return}n.forEach(function(n){n.name===i&&(n.queue.shift(),n.waiting=!1)});t.Refresh()};this.Stop=function(t){MyLibrary.IsDefined(t)&&n.forEach(function(n){n.name===t&&(n.waiting&&MyLibrary.IsDefined(n.queue[0])&&n.queue[0].ajaxObject.abort(),n.queue=[])});n.forEach(function(n){n.waiting&&MyLibrary.IsDefined(n.queue[0])&&n.queue[0].ajaxObject.abort();n.queue=[]})}}var t=this,n;this.Initialize=function(){n.Create("default")};$(function(){t.Initialize()});this.Add=function(t,i){n.Add(t,i)};this.Create=function(t){n.Create(t)};this.Stop=function(t){n.Stop(t)};n=new i}function YoutubeAPILoaderObject(){var n=this;this.youtubeApiLoadState="not ready";this.LoadYoutubeAPI=function(){n.youtubeApiLoadState==="not ready"&&(n.youtubeApiLoadState="loading",$.getScript(MyLibrary.GetPageProtocol()+"://www.youtube.com/iframe_api",function(){}),window.onYouTubePlayerAPIReady=function(){n.youtubeApiLoadState="ready";n.OnYoutubeAPIReady()})};$(function(){n.LoadYoutubeAPI()});Callbacks.Create("OnYoutubeAPIReady");this.OnYoutubeAPIReady=function(n){Callbacks.DoOrAdd("OnYoutubeAPIReady",n)}}function YoutubePlayerObject(n){function u(){r=!0;t.OnYoutubePlayerReady()}function f(n){if(r===!1){console.log("YoutubePlayer.YoutubePlayerStateChange() - iframe is not ready yet");return}n.data==YT.PlayerState.ENDED?t.OnYoutubePlayerStateChangeENDED():n.data==YT.PlayerState.PLAYING?t.OnYoutubePlayerStateChangePLAYING():n.data==YT.PlayerState.PAUSED?t.OnYoutubePlayerStateChangePAUSED():n.data==YT.PlayerState.BUFFERING?t.OnYoutubePlayerStateChangeBUFFERING():n.data==YT.PlayerState.CUED&&t.OnYoutubePlayerStateChangeCUED();t.OnYoutubePlayerStateChange()}function e(i){console.log("Youtube player with id #"+n+" encountered an error: ");console.log(i);t.OnYoutubePlayerError()}function o(n){if(MyLibrary.IsDefined(n)===!1){console.log("YoutubePlayer.LoadVideo("+n+") has undefined parameter");return}if(r===!1){console.log("YoutubePlayer.LoadVideo() - iframe is not ready yet");return}i.loadVideoById(n);t.currentVideoId=n}function s(){i.playVideo()}function h(){i.stopVideo()}function c(){i.pauseVideo()}var t=this,i=null,r;this.currentVideoId="";r=!1;this.customSettings={startingVideoId:""};this.Initialize=function(){if($("#"+n).length<=0){console.log("Youtube player element with ID "+n+" does not exists");return}i=new YT.Player(n,{host:"https://www.youtube.com",videoId:t.customSettings.startingVideoId,events:{onReady:u,onStateChange:f,onError:e}})};$(function(){t.Initialize()});this.Load=function(n){o(n)};this.Play=function(){s()};this.Stop=function(){h()};this.Pause=function(){c()};Callbacks.Create("OnYoutubePlayerReady-"+n);this.OnYoutubePlayerReady=function(t){Callbacks.DoOrAdd("OnYoutubePlayerReady-"+n,t)};Callbacks.Create("OnYoutubePlayerStateChange-"+n);this.OnYoutubePlayerStateChange=function(t){Callbacks.DoOrAdd("OnYoutubePlayerStateChange-"+n,t)};Callbacks.Create("OnYoutubePlayerError-"+n);this.OnYoutubePlayerError=function(t){Callbacks.DoOrAdd("OnYoutubePlayerError-"+n,t)};Callbacks.Create("OnYoutubePlayerStateChangeENDED-"+n);this.OnYoutubePlayerStateChangeENDED=function(t){Callbacks.DoOrAdd("OnYoutubePlayerStateChangeENDED-"+n,t)};Callbacks.Create("OnYoutubePlayerStateChangePLAYING-"+n);this.OnYoutubePlayerStateChangePLAYING=function(t){Callbacks.DoOrAdd("OnYoutubePlayerStateChangePLAYING-"+n,t)};Callbacks.Create("OnYoutubePlayerStateChangePAUSED-"+n);this.OnYoutubePlayerStateChangePAUSED=function(t){Callbacks.DoOrAdd("OnYoutubePlayerStateChangePAUSED-"+n,t)};Callbacks.Create("OnYoutubePlayerStateChangeBUFFERING-"+n);this.OnYoutubePlayerStateChangeBUFFERING=function(t){Callbacks.DoOrAdd("OnYoutubePlayerStateChangeBUFFERING-"+n,t)};Callbacks.Create("OnYoutubePlayerStateChangeCUED-"+n);this.OnYoutubePlayerStateChangeCUED=function(t){Callbacks.DoOrAdd("OnYoutubePlayerStateChangeCUED-"+n,t)}}function TimePickerObject(n){function e(){var t=$("#"+n+" .timePickerNumberElement p").outerHeight();$("#"+n+" .timePickerNumberWrapper").height(t);$("#"+n+" .timePickerNumber").each(function(){var n=$(this).find(".timePickerNumberInner").height(),t=$(this).height(),i=(t-n)/2.7;$(this).find(".timePickerNumberInner").css("margin-top",i+"px")})}function h(n,r){if(MyLibrary.IsDefined(n)==!1&&MyLibrary.IsDefined(r)==!1)c();else{if(MyLibrary.IsDefined(n)==!1||MyLibrary.IsDefined(r)==!1){console.log("TimePicker.UpdateNumberPosition("+n+", "+r+") has one undefined parameter.");return}t.hours=n;t.minutes=r}i()}function i(){var u=$("#"+n+" .timePickerNumberElement p").outerHeight(),i,r;if($("#"+n+" .timePickerHours .timePickerNumberElement p").removeClass("selectedTime"),$("#"+n+" .timePickerHours .timePickerNumberElement [data-time-picker-number='"+t.hours+"']").addClass("selectedTime"),i=$("#"+n+" .timePickerHours .timePickerNumberElement .selectedTime").index(),i<0){console.log("TimePicker.AnimateNumbers() could not find hour with class .selectedTime");return}if($("#"+n+" .timePickerHours .timePickerNumberElement").css("top",u*i*-1+"px"),$("#"+n+" .timePickerMinutes .timePickerNumberElement p").removeClass("selectedTime"),$("#"+n+" .timePickerMinutes .timePickerNumberElement [data-time-picker-number='"+t.minutes+"']").addClass("selectedTime"),r=$("#"+n+" .timePickerMinutes .timePickerNumberElement .selectedTime").index(),r<0){console.log("TimePicker.AnimateNumbers() could not find minute with class .selectedTime");return}$("#"+n+" .timePickerMinutes .timePickerNumberElement").css("top",u*r*-1+"px")}function u(){var u=$("#"+n+" .timePickerHours .timePickerNumberElement .selectedTime").index();u>=t.hoursList.length-1?u=0:u++;$("#"+n+" .timePickerHours .timePickerNumberElement p").each(function(n){n===u&&(t.hours=$(this).data("timePickerNumber"))});i();r()}function o(){var f=$("#"+n+" .timePickerMinutes .timePickerNumberElement .selectedTime").index();f>=t.minutesList.length-1?(f=0,u()):f++;$("#"+n+" .timePickerMinutes .timePickerNumberElement p").each(function(n){n===f&&(t.minutes=$(this).data("timePickerNumber"))});i();r()}function f(){var u=$("#"+n+" .timePickerHours .timePickerNumberElement .selectedTime").index();u<=0?u=t.hoursList.length-1:u--;$("#"+n+" .timePickerHours .timePickerNumberElement p").each(function(n){n===u&&(t.hours=$(this).data("timePickerNumber"))});i();r()}function s(){var u=$("#"+n+" .timePickerMinutes .timePickerNumberElement .selectedTime").index();u<=0?(u=t.minutesList.length-1,f()):u--;$("#"+n+" .timePickerMinutes .timePickerNumberElement p").each(function(n){n===u&&(t.minutes=$(this).data("timePickerNumber"))});i();r()}function r(){console.log("pls");$("#"+n).attr("data-hours",t.hours).attr("data-minutes",t.minutes)}function c(){var n=new Date;t.hours=n.getHours();t.minutes=l(n.getMinutes());r()}function l(n){var n=Math.ceil(n/5)*5;return n>55?n=55:n<0&&(n=0),n}var t=this;this.hours=0;this.minutes=0;this.hoursList=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];this.minutesList=[0,5,10,15,20,25,30,35,40,45,50,55];this.Initialize=function(){$("#"+n+" .timePickerHours .timePickerNumberElement").empty();t.hoursList.forEach(function(t){$("#"+n+" .timePickerHours .timePickerNumberElement").append("<p data-time-picker-number='"+t+"'>"+t+"<\/p>")});$("#"+n+" .timePickerMinutes .timePickerNumberElement").empty();t.minutesList.forEach(function(t){$("#"+n+" .timePickerMinutes .timePickerNumberElement").append("<p data-time-picker-number='"+t+"'>"+t+"<\/p>")});h();$("#"+n+" .timePickerHours .timePickerArrowUp").off("click",f);$("#"+n+" .timePickerHours .timePickerArrowUp").on("click",f);$("#"+n+" .timePickerHours .timePickerArrowDown").off("click",u);$("#"+n+" .timePickerHours .timePickerArrowDown").on("click",u);$("#"+n+" .timePickerMinutes .timePickerArrowUp").off("click",s);$("#"+n+" .timePickerMinutes .timePickerArrowUp").on("click",s);$("#"+n+" .timePickerMinutes .timePickerArrowDown").off("click",o);$("#"+n+" .timePickerMinutes .timePickerArrowDown").on("click",o)};$(function(){t.Initialize()});Resize.Add(e);this.TimePickerResize=function(){e()}}function CookieObject(){function i(){function t(n){this.name=n}var n=this;this.cookiesArray=[];this.Add=function(i){var r,u;if(MyLibrary.IsDefined(i)===!1||i===""){console.log("Cookie.List.Add("+i+") has undefined or empty parameter");return}for(r=0;r<n.cookiesArray.length;r++)if(cookiesArray[r].name===i){console.log("Cookie.List.Add("+i+") name already exists");return}u=new t(i);n.cookiesArray.push(u)};this.Empty=function(){n.cookiesArray=[]};this.Exists=function(t){if(MyLibrary.IsDefined(t)===!1||t===""){console.log("Cookie.List.Exists("+t+") has undefined or empty parameter");return}for(var i=0;i<n.cookiesArray.length;i++)if(n.cookiesArray[i].name===t)return!0;return!1};this.GetAll=function(){return n.cookiesArray}}var n=this,t;this.Initialize=function(){Cookie.Exists(MyLibrary.siteName+"-TermsAndConditions")===!1||Cookie.Get(MyLibrary.siteName+"-TermsAndConditions")!=="true"?n.Forbid():Cookie.Permit(!1)};$(function(){n.Initialize()});this.List=new i;this.Set=function(t,i,r){var e,f,u;if(MyLibrary.IsDefined(t)===!1||MyLibrary.IsDefined(i)===!1){console.log("Cookie.Set("+t+", value, "+r+", "+path+") has some undentified parameters");return}if(t===""||i===""||r===""){console.log("Cookie.Set("+t+", value, "+r+", "+path+") has some empty parameters");return}n.List.Exists(t)||console.log('Cookie "'+t+'" is not in list of cookies used on this website');e=365;MyLibrary.IsDefined(r)&&(e=r);f="";u=new Date;u.setTime(u.getTime()+r*864e5);f="expires="+u.toUTCString();document.cookie=t+"="+i+"; "+f+"; path=/"};this.Get=function(t){var u,f,r,i;if(MyLibrary.IsDefined(t)===!1||t===""){console.log("Cookie.Get("+t+") has undefined or empty parameter");return}for(n.List.Exists(t)||console.log('Cookie "'+t+'" is not in list of cookies used on this website'),u=t+"=",f=document.cookie.split(";"),r=0;r<f.length;r++){for(i=f[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(u)==0)return i.substring(u.length,i.length)}return console.log("Cookie.Get("+t+") not found"),null};this.Exists=function(n){var u,r,i,t;if(MyLibrary.IsDefined(n)===!1||n===""){console.log("Cookie.Exists("+n+") has undefined or empty parameter");return}for(u=n+"=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(t=r[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(u)==0)return!0}return!1};this.Delete=function(t){if(MyLibrary.IsDefined(t)===!1||t===""){console.log("Cookie.Delete("+t+", "+path+") has undefined or empty parameter");return}n.List.Exists(t)||console.log('Cookie "'+t+'" is not in list of cookies used on this website');var i=new Date,r=Math.floor(i.getTime()/864e5)+1;n.Set(t,"NULL",r*-1)};this.DeleteAll=function(){for(var i=n.List.GetAll(),t=0;t<i.length;t++)n.Exists(i[t].name)&&n.Delete(i[t].name)};t=!1;this.Permit=function(i){t=!0;(MyLibrary.IsDefined(i)===!1||MyLibrary.IsDefined(i)&&i===!0)&&Cookie.Set(MyLibrary.siteName+"-TermsAndConditions","true",365);n.OnConfirm()};this.Forbid=function(){t=!1;n.DeleteAll()};this.AllowedToUse=function(){return t};Callbacks.Create("OnConfirm");this.OnConfirm=function(n){Callbacks.DoOrAdd("OnConfirm",n)}}var pageIsReady,pageIsLoaded,menu,MapsCallback,CaptchaCallback;!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function ir(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function fi(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"!==r&&!i.isWindow(n)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n)}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function oi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):er.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&1===n.nodeType}))}function ar(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function nt(n){return n}function pt(n){throw n;}function vr(n,t,r,u){var f;try{n&&i.isFunction(f=n.promise)?f.call(n).done(t).fail(r):n&&i.isFunction(f=n.then)?f.call(n,t,r):t.apply(void 0,[n].slice(u))}catch(n){r.apply(void 0,[n])}}function bt(){u.removeEventListener("DOMContentLoaded",bt);n.removeEventListener("load",bt);i.ready()}function ht(){this.expando=i.expando+ht.uid++}function re(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:te.test(n)?JSON.parse(n):n)}function pr(n,t,i){var r;if(void 0===i&&1===n.nodeType)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),"string"==typeof i){try{i=re(i)}catch(u){}e.set(n,t,i)}else i=void 0;return i}function kr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ue(n){var r,f=n.ownerDocument,u=n.nodeName,t=si[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),"none"===t&&(t="block"),si[u]=t,t)}function tt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)u=n[i],u.style&&(e=u.style.display,t?("none"===e&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),""===u.style.display&&kt(u)&&(f[i]=ue(u))):"none"!==e&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)null!=f[i]&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&l(n,t)?i.merge([n],r):r}function hi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function iu(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||0===e)if("object"===i.type(e))i.merge(y,e.nodeType?[e]:e);else if(tu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(gr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&hi(s),r)for(v=0;e=s[v++];)nu.test(e.type||"")&&r.push(e);return h}function gt(){return!0}function it(){return!1}function uu(){try{return u.activeElement}catch(n){}}function ci(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)ci(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=it;else if(!f)return n;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function fu(n,t){return l(n,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")?i(">tbody",n)[0]||n:n}function ae(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function ve(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function eu(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;u<c;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ye(n,t){var i=t.nodeName.toLowerCase();"input"===i&&dr.test(n.type)?t.checked=n.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=n.defaultValue)}function rt(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&"string"==typeof y&&!f.checkClone&&he.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));rt(r,t,u,e)});if(v&&(l=iu(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,1===l.childNodes.length&&(l=p),p||e)){for(c=i.map(o(l,"script"),ae),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ve),h=0;h<a;h++)s=c[h],nu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):ir(s.textContent.replace(le,""),w))}return n}function ou(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&hi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&li.test(u)&&su.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),void 0!==u?u+"":u}function hu(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function be(n){if(n in vu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=au.length;t--;)if(n=au[t]+i,n in vu)return n}function yu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=be(n)||n),t}function pu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wu(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:"width"===t?1:0;e<4;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function bu(n,t,r){var o,e=ni(n),u=lt(n,t,e),s="border-box"===i.css(n,"boxSizing",!1,e);return li.test(u)?u:(o=s&&(f.boxSizingReliable()||u===n.style[t]),"auto"===u&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)]),u=parseFloat(u)||0,u+wu(n,t,r||(s?"border":"content"),o,e)+"px")}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function ai(){ti&&(u.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ai):n.setTimeout(ai,i.fx.interval),i.fx.tick())}function gu(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function ii(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function nf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ke(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),null==c.unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],ku.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&1===n.nodeType&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,null==o&&(o=r.get(n,"display")),l=i.css(n,"display"),"none"===l&&(o?l=o:(tt([n],!0),o=n.style.display||o,l=i.css(n,"display"),tt([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(s||(v.done(function(){h.display=o}),null==o&&(l=h.display,o="none"===l?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&tt([n],!0),v.done(function(){a||tt([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=nf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function de(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var e,o,s=0,l=a.prefilters.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=ut||gu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||gu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),h=u.props;for(de(h,u.opts.specialEasing);s<l;s++)if(e=a.prefilters[s].call(u,n,h,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(h,nf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u}function k(n){var t=n.match(h)||[];return t.join(" ")}function d(n){return n.getAttribute&&n.getAttribute("class")||""}function pi(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):pi(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)pi(n+"["+f+"]",t[f],r,u)}function cf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function lf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===wi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function so(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ho(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var p=[],u=n.document,pf=Object.getPrototypeOf,w=p.slice,gi=p.concat,ui=p.push,ot=p.indexOf,vt={},nr=vt.toString,yt=vt.hasOwnProperty,tr=yt.toString,wf=tr.call(Object),f={},rr="3.2.1",i=function(n,t){return new i.fn.init(n,t)},bf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,kf=/^-ms-/,df=/-([a-z])/g,gf=function(n,t){return t.toUpperCase()},y,ei,er,or,sr,hr,cr,lr,h,yr,wt,v,st,si,tu,ut,ti,ku,du,tf,ft,rf,uf,ff,vi,af,et,di,ri,vf,yf;i.fn=i.prototype={jquery:rr,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(n){return null==n?w.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ui,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if(null!=(e=arguments[u]))for(f in e)r=n[f],t=e[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(o?(o=!1,s=r&&Array.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(rr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isWindow:function(n){return null!=n&&n===n.window},isNumeric:function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==nr.call(n))&&(!(t=pf(n))||(i=yt.call(t,"constructor")&&t.constructor,"function"==typeof i&&tr.call(i)===wf))},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?vt[nr.call(n)]||"object":typeof n},globalEval:function(n){ir(n)},camelCase:function(n){return n.replace(kf,"ms-").replace(df,gf)},each:function(n,t){var r,i=0;if(fi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(bf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(fi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ui.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ot.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(fi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;if("string"==typeof t&&(u=n[t],t=n,n=u),i.isFunction(n))return f=w.call(arguments,2),r=function(){return n.apply(t||this,f.concat(w.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r},now:Date.now,support:f});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});y=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=cr.exec(n)))if(s=d[1]){if(9===v){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=di++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:wt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(f=s[0]=s[0].slice(0),f.length>2&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;i.escapeSelector=y.escape;var g=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},ur=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},fr=i.expr.match.needsContext;ei=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;er=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(oi(this,n||[],!1))},not:function(n){return this.pushStack(oi(this,n||[],!0))},is:function(n){return!!oi(this,"string"==typeof n&&fr.test(n)?i(n):n||[],!1).length}});sr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;hr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||or,"string"==typeof n){if(f="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:sr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ei.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)};hr.prototype=i.fn;or=i(u);cr=/^(?:parents|prev(?:Until|All))/;lr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!fr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ot.call(i(n),this[0]):ot.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return g(n,"parentNode")},parentsUntil:function(n,t,i){return g(n,"parentNode",i)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return g(n,"nextSibling")},prevAll:function(n){return g(n,"previousSibling")},nextUntil:function(n,t,i){return g(n,"nextSibling",i)},prevUntil:function(n,t,i){return g(n,"previousSibling",i)},siblings:function(n){return ur((n.parentNode||{}).firstChild,n)},children:function(n){return ur(n.firstChild)},contents:function(n){return l(n,"iframe")?n.contentDocument:(l(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(lr[n]||i.uniqueSort(f),cr.test(n)&&f.reverse()),this.pushStack(f)}});h=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n="string"==typeof n?ne(n):i.extend({},n);var e,r,h,u,t=[],o=[],f=-1,c=function(){for(u=u||n.once,h=e=!0;o.length;f=-1)for(r=o.shift();++f<t.length;)t[f].apply(r[0],r[1])===!1&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);e=!1;u&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(f=t.length-1,o.push(r)),function u(r){i.each(r,function(r,f){i.isFunction(f)?n.unique&&s.has(f)||t.push(f):f&&f.length&&"string"!==i.type(f)&&u(f)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return u=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=o=[],r||e||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,nt,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,nt,f),o(e,r,pt,f),o(e,r,nt,r.notifyWith))):(u!==nt&&(s=void 0,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==pt&&(s=void 0,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:nt,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:nt));u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return null!=n?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=w.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?w.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(vr(n,r.done(o(t)).resolve,r.reject,!f),"pending"===r.state()||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)vr(u[t],o(t),r.reject);return r.promise()}});yr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&yr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};wt=i.Deferred();i.fn.ready=function(n){return wt.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||wt.resolveWith(u,[i]))}});i.ready.then=wt.then;"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll?n.setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt));v=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)v(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};st=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};ht.uid=1;ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if("string"==typeof t)f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(Array.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=(t in r)?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(void 0===n){if(this.length&&(s=e.get(u),1===u.nodeType&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),pr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){e.set(this,n)}):v(this,function(t){var i;if(u&&void 0===t){if((i=e.get(u,n),void 0!==i)||(i=pr(u,n),void 0!==i))return i}else this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var wr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+wr+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,"none"===n.style.display||""===n.style.display&&i.contains(n.ownerDocument,n)&&"none"===i.css(n,"display")},br=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};si={};i.fn.extend({show:function(){return tt(this,!0)},hide:function(){return tt(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dr=/^(?:checkbox|radio)$/i,gr=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nu=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;tu=/<|&#?\w+;/;!function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var dt=u.documentElement,fe=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ru=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),t=(t||"").match(h)||[""],b=t.length;b--;)w=ru.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(c=ru.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),o){for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==s&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!("click"===n.type&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||r.disabled!==!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",void 0===s[u]&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==uu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===uu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&l(this,"input"))return this.click(),!1},_default:function(n){return l(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?gt:it,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={constructor:i.Event,isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.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(n){var t=n.button;return null==n.which&&fe.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&ee.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return ci(this,n,t,i,r)},one:function(n,t,i,r){return ci(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(oe,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ye(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)eu(s[u],e[u]);else eu(n,h);return e=o(h,"script"),e.length>0&&hi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;void 0!==(t=n[o]);o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[e.expando]&&(t[e.expando]=void 0)}}});i.fn.extend({detach:function(n){return ou(this,n,!0)},remove:function(n){return ou(this,n)},text:function(n){return v(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.appendChild(n)}})},prepend:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return v(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!se.test(n)&&!c[(gr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},1===t.nodeType&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return rt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ui.apply(f,u.get());return this.pushStack(f)}});var su=/^margin/,li=new RegExp("^("+wr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};!function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";dt.appendChild(e);var i=n.getComputedStyle(t);o="1%"!==i.top;c="2px"===i.marginLeft;s="4px"===i.width;t.style.marginRight="50%";h="4px"===i.marginRight;dt.removeChild(e);t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===t.style.backgroundClip,e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))}();var pe=/^(none|table(?!-c[ea]).+)/,cu=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"},au=["Webkit","Moz","ms"],vu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,s,o,c=i.camelCase(t),l=cu.test(t),h=n.style;return l||(t=yu(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r?o&&"get"in o&&void 0!==(e=o.get(n,!1,u))?e:h[t]:(s=typeof r,"string"===s&&(e=ct.exec(r))&&e[1]&&(r=kr(n,t,e),s="number"),null!=r&&r===r&&("number"===s&&(r+=e&&e[3]||(i.cssNumber[c]?"":"px")),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(h[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?h.setProperty(t,r):h[t]=r)),void 0)}},css:function(n,t,r,u){var f,o,e,s=i.camelCase(t),h=cu.test(t);return h||(t=yu(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=lt(n,t,u)),"normal"===f&&t in lu&&(f=lu[t]),""===r||r?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!pe.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?bu(n,t,u):br(n,we,function(){return bu(n,t,u)})},set:function(n,r,u){var f,e=u&&ni(n),o=u&&wu(n,t,u,"border-box"===i.css(n,"boxSizing",!1,e),e);return o&&(f=ct.exec(r))&&"px"!==(f[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),pu(n,r,o)}}});i.cssHooks.marginLeft=hu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-br(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};su.test(n)||(i.cssHooks[n+t].set=pu)});i.fn.extend({css:function(n,t){return v(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ni(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};ku=/^(?:toggle|show|hide)$/;du=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return kr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],a.tweeners[r]=a.tweeners[r]||[],a.tweeners[r].unshift(t)},prefilters:[ke],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return i.fx.off?u.duration=0:"number"!=typeof u.duration&&(u.duration=u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default),null!=u.queue&&u.queue!==!0||(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&du.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ii(t,!0),n,i,u)}});i.each({slideDown:ii("show"),slideUp:ii("hide"),slideToggle:ii("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ut=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ut=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){ti||(ti=!0,ai())};i.fx.stop=function(){ti=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=""!==n.value;f.optSelected=i.selected;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue="t"===n.value}();ft=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return v(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?tf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&l(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});tf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=null!=r(n,t,i)?u:null,ft[u]=e),f}});rf=/^(?:input|select|textarea|button)$/i;uf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return v(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):rf.test(n.nodeName)||uf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,d(this)))});if("string"==typeof n&&n)for(o=n.match(h)||[];t=this[c++];)if(u=d(t),r=1===t.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=k(r);u!==e&&t.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,d(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=1===r.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return"boolean"==typeof t&&"string"===u?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,d(this),t),t)}):this.each(function(){var t,e,f,o;if("string"===u)for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else void 0!==n&&"boolean"!==u||(t=d(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+k(d(t))+" ").indexOf(i)>-1)return!0;return!1}});ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(ff,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:k(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});vi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if(s=c=e=e||u,3!==e.nodeType&&8!==e.nodeType&&!vi.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),f=null==f?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,vi.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&st(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||l._default&&l._default.apply(p.pop(),f)!==!1||!st(e)||a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=void 0,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var at=n.location,ef=i.now(),yi=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)pi(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!dr.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/gm,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,sf={},wi={},hf="*/".concat("*"),bi=u.createElement("a");return bi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hf,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:cf(sf),ajaxTransport:cf(wi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||304===t,u&&(p=so(f,e,u)),p=ho(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),204===t||"HEAD"===f.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,g=p.error,y=!g)):(g=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",y?tt.resolveWith(c,[rt,l,e]):tt.rejectWith(c,[e,l,g]),e.statusCode(w),w=void 0,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,l]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,y,d,l,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=fo.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(oo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],null==f.crossDomain){l=u.createElement("a");try{l.href=f.url;l.href=l.href;f.crossDomain=bi.protocol+"//"+bi.host!=l.protocol+"//"+l.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=i.param(f.data,f.traditional)),lf(sf,f,r,e),s)return e;v=i.event&&f.global;v&&0==i.active++&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!eo.test(f.type);o=f.url.replace(ro,"");f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(io,"+")):(p=f.url.slice(o.length),f.data&&(o+=(yi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(uo,"$1"),p=(yi.test(o)?"&":"?")+"_="+ef+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+hf+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),a=lf(wi,f,r,e)){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;a.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},af={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(af[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),di=[],ri=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=di.pop()||i.expando+"_"+ef++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ri.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ri.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ri,"$1"+f):t.jsonp!==!1&&(t.url+=(yi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,di.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=void 0}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",2===n.childNodes.length}(),i.parseHTML=function(n,t,r){if("string"!=typeof n)return[];"boolean"==typeof t&&(r=t,t=!1);var s,e,o;return t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=ei.exec(n),o=!r&&[],e?[t.createElement(e[1])]:(e=iu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=k(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,f,e,t=this[0];if(t)return t.getClientRects().length?(f=t.getBoundingClientRect(),r=t.ownerDocument,u=r.documentElement,e=r.defaultView,{top:f.top+e.pageYOffset-u.clientTop,left:f.left+e.pageXOffset-u.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),l(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(u){return v(this,function(n,u,f){var e;return i.isWindow(n)?e=n:9===n.nodeType&&(e=n.defaultView),void 0===f?e?e[t]:n[u]:void(e?e.scrollTo(r?e.pageXOffset:f,r?f:e.pageYOffset):n[u]=f)},n,u,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=hu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),li.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(f===!0||e===!0?"margin":"border");return v(this,function(t,r,f){var e;return i.isWindow(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),vf=n.jQuery,yf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=yf),t&&n.jQuery===i&&(n.jQuery=vf),i},t||(n.jQuery=n.$=i),i}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){n.ui=n.ui||{};n.ui.version="1.12.1";"1.7"===n.fn.jquery.substring(0,3)&&(n.each(["Width","Height"],function(t,i){function r(t,i,r,u){return n.each(e,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var e="Width"===i?["Left","Right"]:["Top","Bottom"],u=i.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+i]=function(t){return void 0===t?f["inner"+i].call(this):this.each(function(){n(this).css(u,r(this,t)+"px")})};n.fn["outer"+i]=function(t,e){return"number"!=typeof t?f["outer"+i].call(this,t):this.each(function(){n(this).css(u,r(this,t,!0,e)+"px")})}}),n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});var t="ui-effects-",i="ui-effects-style",r="ui-effects-animated",u=n;n.effects={effect:{}},function(n,t){function f(n,t,i){var r=h[t.type]||{};return null==n?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n)?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:n>r.max?r.max:n)}function s(f){var o=i(),s=o._rgba=[];return f=f.toLowerCase(),r(v,function(n,i){var r,h=i.re.exec(f),c=h&&i.parse(h),e=i.space||"rgba";return c?(r=o[e](c),o[u[e].cache]=r[u[e].cache],s=o._rgba=r._rgba,!1):t}),s.length?("0,0,0,0"===s.join()&&n.extend(s,e.transparent),o):e[f]}function o(n,t,i){return i=(i+1)%1,1>6*i?n+6*(t-n)*i:1>2*i?t:2>3*i?n+6*(t-n)*(2/3-i):n}var e,a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[2.55*n[1],2.55*n[2],2.55*n[3],n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=i.support={},l=n("<p>")[0],r=n.each;l.style.cssText="background-color:rgba(1,1,1,.5)";c.rgba=l.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,h,c,l){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(h),h=t);var a=this,v=n.type(o),y=this._rgba=[];return h!==t&&(o=[o,h,c,l],v="array"),"string"===v?this.parse(s(o)||e._default):"array"===v?(r(u.rgba.props,function(n,t){y[t.idx]=f(o[t.idx],t)}),this):"object"===v?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if("alpha"===n||null==o[n])return;a[u]=i.to(a._rgba)}a[u][t.idx]=f(o[n],t,!0)});a[u]&&0>n.inArray(null,a[u].slice(0,3))&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):t},is:function(n){var o=i(n),f=!0,e=this;return r(u,function(n,i){var s,u=o[i.cache];return u&&(s=e[i.cache]||i.to&&i.to(e._rgba)||[],r(i.props,function(n,i){return null!=u[i.idx]?f=u[i.idx]===s[i.idx]:t})),f}),f},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var e=i(n),c=e._space(),o=u[c],l=0===this.alpha()?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),s=a.slice();return e=e[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=e[c],o=h[i.type]||{};null!==u&&(null===r?s[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),s[c]=f((u-r)*t+r,i)))}),this[c](s)},blend:function(t){if(1===this._rgba[3])return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return null==n?t>2?1:0:n});return 1===t[3]&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return null==n&&(n=t>2?1:0),t&&3>t&&(n=Math.round(100*n)+"%"),n});return 1===t[3]&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(255*r)),"#"+n.map(i,function(n){return n=(n||0).toString(16),1===n.length?"0"+n:n}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var s,h,i=n[0]/255,r=n[1]/255,f=n[2]/255,c=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,l=.5*o;return s=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,h=0===t?0:.5>=l?t/o:t/(2-o),[Math.round(s)%360,h,l,null==c?1:c]};u.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=.5>=t?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(255*o(f,i,r+1/3)),Math.round(255*o(f,i,r)),Math.round(255*o(f,i,r-1/3)),e]};r(u,function(u,e){var s=e.props,o=e.cache,h=e.to,c=e.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v="array"===a||"object"===a?u:arguments,e=this[o].slice();return r(s,function(n,t){var i=v["object"===a?n:t.idx];null==i&&(i=e[t.idx]);e[t.idx]=f(i,t)}),c?(l=i(c(e)),l[o]=e,l):i(e)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f,e=n.type(i),h="alpha"===t?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx];return"undefined"===e?s:("function"===e&&(i=i.call(this,s),e=n.type(i)),null==i&&r.empty?this:("string"===e&&(f=a.exec(i),f&&(i=s+parseFloat(f[2])*("+"===f[1]?1:-1))),o[r.idx]=i,this[h](o)))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if("transparent"!==u&&("string"!==n.type(u)||(o=s(u)))){if(u=i(o||u),!c.rgba&&1!==u._rgba[3]){for(f="backgroundColor"===r?t.parentNode:t;(""===e||"transparent"===e)&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(h){}u=u.blend(e&&"transparent"!==e?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(h){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};e=n.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(u),function(){function t(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],"string"==typeof i[r]&&(f[n.camelCase(r)]=i[r]);else for(r in i)"string"==typeof i[r]&&(f[r]=i[r]);return f}function i(t,i){var r,u,e={};for(r in i)u=i[r],t[r]!==u&&(f[r]||(n.fx.step[r]||!isNaN(parseFloat(u)))&&(e[r]=u));return e}var r=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){("none"===n.end||n.setAttr)&&(1!==n.pos||n.setAttr)||(u.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(u,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var o,e=n(this),h=e.attr("class")||"",f=s.children?e.find("*").addBack():e;f=f.map(function(){var i=n(this);return{el:i,start:t(this)}});o=function(){n.each(r,function(n,t){u[t]&&e[t+"Class"](u[t])})};o();f=f.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this});e.attr("class",h);f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,f.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(e[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return"boolean"==typeof r||void 0===r?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function u(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),("number"==typeof i||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:"number"==typeof r?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function f(t){return!t||"number"==typeof t||n.fx.speeds[t]?!0:"string"!=typeof t||n.effects.effect[t]?n.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}function e(n,t){var r=t.outerWidth(),u=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,r,u,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?r:parseFloat(i[2]),bottom:"auto"===i[3]?u:parseFloat(i[3]),left:parseFloat(i[4])||0}}n.expr&&n.expr.filters&&n.expr.filters.animated&&(n.expr.filters.animated=function(t){return function(i){return!!n(i).data(r)||t(i)}}(n.expr.filters.animated));n.uiBackCompat!==!1&&n.extend(n.effects,{save:function(n,i){for(var r=0,u=i.length;u>r;r++)null!==i[r]&&n.data(t+i[r],n[0].style[i[r]])},restore:function(n,i){for(var u,r=0,f=i.length;f>r;r++)null!==i[r]&&(u=n.data(t+i[r]),n.css(i[r],u))},setMode:function(n,t){return"toggle"===t&&(t=n.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).trigger("focus"),u=t.parent(),"static"===t.css("position")?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).trigger("focus")),t}});n.extend(n.effects,{version:"1.12.1",define:function(t,i,r){return r||(r=i,i="effect"),n.effects.effect[t]=r,n.effects.effect[t].mode=i,r},scaledDimensions:function(n,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==i?(t||100)/100:1,u="vertical"!==i?(t||100)/100:1;return{height:n.height()*u,width:n.width()*r,outerHeight:n.outerHeight()*u,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,t,i){var r=n.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,i)));n.dequeue()},saveStyle:function(n){n.data(i,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(i)||"";n.removeData(i)},mode:function(n,t){var i=n.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createPlaceholder:function(i){var r,u=i.css("position"),f=i.position();return i.css({marginTop:i.css("marginTop"),marginBottom:i.css("marginBottom"),marginLeft:i.css("marginLeft"),marginRight:i.css("marginRight")}).outerWidth(i.outerWidth()).outerHeight(i.outerHeight()),/^(static|relative)/.test(u)&&(u="absolute",r=n("<"+i[0].nodeName+">").insertAfter(i).css({display:/^(inline|ruby)/.test(i.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:i.css("marginTop"),marginBottom:i.css("marginBottom"),marginLeft:i.css("marginLeft"),marginRight:i.css("marginRight"),float:i.css("float")}).outerWidth(i.outerWidth()).outerHeight(i.outerHeight()).addClass("ui-effects-placeholder"),i.data(t+"placeholder",r)),i.css({position:u,left:f.left,top:f.top}),r},removePlaceholder:function(n){var i=t+"placeholder",r=n.data(i);r&&(r.remove(),n.removeData(i))},cleanUp:function(t){n.effects.restoreStyle(t);n.effects.removePlaceholder(t)},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function s(u){function c(){s.removeData(r);n.effects.cleanUp(s);"hide"===t.mode&&s.hide();h()}function h(){n.isFunction(e)&&e.call(s[0]);n.isFunction(u)&&u()}var s=n(this);t.mode=l.shift();n.uiBackCompat===!1||f?"none"===t.mode?(s[i](),h()):o.call(s[0],t,c):(s.is(":hidden")?"hide"===i:"show"===i)?(s[i](),h()):o.call(s[0],t,h)}var t=u.apply(this,arguments),o=n.effects.effect[t.effect],f=o.mode,h=t.queue,c=h||"fx",e=t.complete,i=t.mode,l=[],a=function(t){var e=n(this),u=n.effects.mode(e,i)||f;e.data(r,!0);l.push(u);f&&("show"===u||u===f&&"hide"===u)&&e.show();f&&"none"===u||n.effects.saveStyle(e);n.isFunction(t)&&t()};return n.fx.off||!o?i?this[i](t.duration,e):this.each(function(){e&&e.call(this)}):h===!1?this.each(a).each(s):this.queue(c,a).queue(c,s)},show:function(n){return function(t){if(f(t))return n.apply(this,arguments);var i=u.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(n.fn.show),hide:function(n){return function(t){if(f(t))return n.apply(this,arguments);var i=u.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(n.fn.hide),toggle:function(n){return function(t){if(f(t)||"boolean"==typeof t)return n.apply(this,arguments);var i=u.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):e(this.css("clip"),this)},transfer:function(t,i){var u=n(this),r=n(t.to),f="fixed"===r.css("position"),e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("<div class='ui-effects-transfer'><\/div>").appendTo("body").addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove();n.isFunction(i)&&i()})}});n.fx.step.clip=function(t){t.clipInit||(t.start=n(t.elem).cssClip(),"string"==typeof t.end&&(t.end=e(t.end,t.elem)),t.clipInit=!0);n(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return 0===n||1===n?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>n;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return.5>n?i(2*n)/2:1-i(-2*n+2)/2}})}();n.effects;n.effects.define("slide","show",function(t,i){var s,o,u=n(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},c=t.mode,f=t.direction||"left",e="up"===f||"down"===f?"top":"left",l="up"===f||"left"===f,a=t.distance||u["top"===e?"outerHeight":"outerWidth"](!0),r={};n.effects.createPlaceholder(u);s=u.cssClip();o=u.position()[e];r[e]=(l?-1:1)*a+o;r.clip=u.cssClip();r.clip[h[f][1]]=r.clip[h[f][0]];"show"===c&&(u.cssClip(r.clip),u.css(e,r[e]),r.clip=s,r[e]=o);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})});pageIsReady=!1;pageIsLoaded=!1;$(document).ready(OnPageReady);$(window).on("load",OnPageLoad);var loadAndReadyIntervalCounter=0,loadAndReadyInterval=setInterval(function(){loadAndReadyIntervalCounter++;loadAndReadyInterval>=200&&clearInterval(loadAndReadyInterval);pageIsLoaded&&pageIsReady&&(OnPageLoad(),clearInterval(loadAndReadyInterval))},50),MyLibrary=new MyLibraryObject,Callbacks=new CallbacksObject,Resize=new ResizeObject,Scroll=new ScrollObject,SlowScroll=new SlowScrollObject,LoadingAnimation=new LoadingAnimationObject,DialogWindow=new DialogWindowObject,CustomInputs=new CustomInputsObject,HashController=new HashControllerObject,AjaxQueue=new AjaxQueueObject,Cookie=new CookieObject;!function(n,t,i,r){function u(t,i){var e=this,f,o,s;if("object"==typeof i&&(delete i.refresh,delete i.render,n.extend(this,i)),this.$element=n(t),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src")),f=(this.position+"").toLowerCase().match(/\S+/g)||[],f.length<1&&f.push("center"),1==f.length&&f.push(f[0]),("top"==f[0]||"bottom"==f[0]||"left"==f[1]||"right"==f[1])&&(f=[f[1],f[0]]),this.positionX!=r&&(f[0]=this.positionX.toLowerCase()),this.positionY!=r&&(f[1]=this.positionY.toLowerCase()),e.positionX=f[0],e.positionY=f[1],"left"!=this.positionX&&"right"!=this.positionX&&(this.positionX=isNaN(parseInt(this.positionX))?"center":parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(this.positionY=isNaN(parseInt(this.positionY))?"center":parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=n("<div />").prependTo("body");o=this.$element.find(">.parallax-slider");s=!1;0==o.length?this.$slider=n("<img />").prependTo(this.$mirror):(this.$slider=o.prependTo(this.$mirror),s=!0);this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"});this.$slider.addClass("parallax-slider").one("load",function(){e.naturalHeight&&e.naturalWidth||(e.naturalHeight=this.naturalHeight||this.height||1,e.naturalWidth=this.naturalWidth||this.width||1);e.aspectRatio=e.naturalWidth/e.naturalHeight;u.isSetup||u.setup();u.sliders.push(e);u.isFresh=!1;u.requestRender()});s||(this.$slider[0].src=this.imageSrc);(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||o.length>0)&&this.$slider.trigger("load")}function f(r){return this.each(function(){var f=n(this),e="object"==typeof r&&r;this==t||this==i||f.is("body")?u.configure(e):f.data("px.parallax")?"object"==typeof r&&n.extend(f.data("px.parallax"),e):(e=n.extend({},f.data(),e),f.data("px.parallax",new u(this,e)));"string"==typeof r&&("destroy"==r?u.destroy(this):u[r]())})}!function(){for(var r=0,i=["ms","moz","webkit","o"],n=0;n<i.length&&!t.requestAnimationFrame;++n)t.requestAnimationFrame=t[i[n]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[i[n]+"CancelAnimationFrame"]||t[i[n]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(n){var i=(new Date).getTime(),u=Math.max(0,16-(i-r)),f=t.setTimeout(function(){n(i+u)},u);return r=i+u,f});t.cancelAnimationFrame||(t.cancelAnimationFrame=function(n){clearTimeout(n)})}();n.extend(u.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,refresh:function(){var n;this.boxWidth=this.$element.outerWidth();this.boxHeight=this.$element.outerHeight()+2*this.bleed;this.boxOffsetTop=this.$element.offset().top-this.bleed;this.boxOffsetLeft=this.$element.offset().left;this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var r=u.winHeight,e=u.docHeight,f=Math.min(this.boxOffsetTop,e-r),o=Math.max(this.boxOffsetTop+this.boxHeight-r,0),i=this.boxHeight+(f-o)*(1-this.speed)|0,t=(this.boxOffsetTop-f)*(1-this.speed)|0;i*this.aspectRatio>=this.boxWidth?(this.imageWidth=i*this.aspectRatio|0,this.imageHeight=i,this.offsetBaseTop=t,n=this.imageWidth-this.boxWidth,this.offsetLeft="left"==this.positionX?0:"right"==this.positionX?-n:isNaN(this.positionX)?-n/2|0:Math.max(this.positionX,-n)):(this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0,n=this.imageHeight-i,this.offsetBaseTop="top"==this.positionY?t:"bottom"==this.positionY?t-n:isNaN(this.positionY)?t-n/2|0:t+Math.max(this.positionY,-n))},render:function(){var n=u.scrollTop,t=u.scrollLeft,i=this.overScrollFix?u.overScroll:0,r=n+u.winHeight;this.boxOffsetBottom>n&&this.boxOffsetTop<=r?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-n,this.mirrorLeft=this.boxOffsetLeft-t,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden";this.$mirror.css({transform:"translate3d(0px, 0px, 0px)",visibility:this.visibility,top:this.mirrorTop-i,left:this.mirrorLeft,height:this.boxHeight,width:this.boxWidth});this.$slider.css({transform:"translate3d(0px, 0px, 0px)",position:"absolute",top:this.offsetTop,left:this.offsetLeft,height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}});n.extend(u,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1073741824,docWidth:1073741824,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){if(!this.isReady){var f=n(i),r=n(t),e=function(){u.winHeight=r.height();u.winWidth=r.width();u.docHeight=f.height();u.docWidth=f.width()},o=function(){var n=r.scrollTop(),t=u.docHeight-u.winHeight,i=u.docWidth-u.winWidth;u.scrollTop=Math.max(0,Math.min(t,n));u.scrollLeft=Math.max(0,Math.min(i,r.scrollLeft()));u.overScroll=Math.max(n-t,Math.min(n,0))};r.on("resize.px.parallax load.px.parallax",function(){e();u.isFresh=!1;u.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){o();u.requestRender()});e();o();this.isReady=!0}},configure:function(t){"object"==typeof t&&(delete t.refresh,delete t.render,n.extend(this.prototype,t))},refresh:function(){n.each(this.sliders,function(){this.refresh()});this.isFresh=!0},render:function(){this.isFresh||this.refresh();n.each(this.sliders,function(){this.render()})},requestRender:function(){var n=this;this.isBusy||(this.isBusy=!0,t.requestAnimationFrame(function(){n.render();n.isBusy=!1}))},destroy:function(i){var r,f=n(i).data("px.parallax");for(f.$mirror.remove(),r=0;r<this.sliders.length;r+=1)this.sliders[r]==f&&this.sliders.splice(r,1);n(i).data("px.parallax",!1);0===this.sliders.length&&(n(t).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,u.isSetup=!1)}});var e=n.fn.parallax;n.fn.parallax=f;n.fn.parallax.Constructor=u;n.fn.parallax.noConflict=function(){return n.fn.parallax=e,this};n(i).on("ready.px.parallax.data-api",function(){n('[data-parallax="scroll"]').parallax()})}(jQuery,window,document);menu=new MenuObject("menu",1e3,10);menu.OnMenuOpen(function(){var n=$("#menu ul li").outerHeight(!0),t=$("#menu ul li").length;$("#menu ul").css("max-height",t*n+"px")});menu.OnMenuClose(function(){$("#menu ul").css("max-height","0px")});$(function(){Resize.Add(function(){SlowScroll.offset=$("#menu").height()})});MapsCallback=function(){if($("#googleMap").length>0){var n={lat:50.0371632,lng:14.48154},t=new google.maps.Map(document.getElementById("googleMap"),{zoom:16,center:n,disableDefaultUI:!0,panControl:!0,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.DEFAULT},mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR},streetViewControl:!0,mapTypeId:google.maps.MapTypeId.ROADMAP}),i=new google.maps.Marker({position:n,map:t});google.maps.event.addListener(i,"click",function(){window.open("http://maps.google.com/?q="+n.lat+","+n.lng)})}};CaptchaCallback=function(){$("#contactForm").length>0&&grecaptcha.render("contactFormCaptcha",{sitekey:"6LcapSsUAAAAAOqSL8B758iEsjutv5iZSPTKvQmZ",callback:contactForm.CaptchaCallback})}