d7223fedb473b9fb7b5149b835cce6334ffa697b52f06d06b8919daa29b55480

Source Code:

function Stickybar(n,t,i,r){"use strict";function s(){f||(e=u.offset().top-r);var t=n(window).scrollTop(),o=t-i;t>=e&&n("#block").show();o>=e?(r>0&&u.css("top",r),u.addClass("fixed"),f=!0):(r>0&&u.css("top",0),u.removeClass("fixed"),f=!1)}var o;if(!(n(".publish-mode").length>0)){var u=null,f=!1,e=0;u=n(t);u.length>0&&(u.addClass("stickybar"),o=["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0,o==!0&&u.addClass("ios"),r||(r=0),n(window).scroll(s),document.addEventListener("touchmove",s,!1),o==!1&&n(window).scrollTop()>1&&s())}}function McAjaxRequestToUserControl(n,t,i,r,u){return ReqAjax(n,t,i,r,u,!0)}function McAjaxGetRequestToUserControl(n,t,i,r,u){return ReqAjaxGet(n,t,i,r,u,!0)}function McAjaxRequest(n,t,i,r,u){return ReqAjax(n,t,i,r,u,!1)}function ReqAjax(n,t,i,r,u,f){return u||(u=function(){console.log("Error calling url: "+n+", action: "+t+", params: "+JSON.stringify(i))}),n=f==!0?"/webpages/ajaxcall.aspx?ajax=true&action="+t+"&control="+n:n.search("\\?")==-1?n+"?ajax=true&action="+t:n+"&ajax=true&action="+t,jQuery.ajax({type:"POST",url:n,data:JSON.stringify(i),contentType:"application/json; charset=utf-8",dataType:"json",success:r,error:u})}function ReqAjaxGet(n,t,i,r,u,f){return u||(u=function(){console.log("Error calling url: "+n+", action: "+t+", params: "+JSON.stringify(i))}),n=f==!0?"/webpages/ajaxcall.aspx?ajax=true&action="+t+"&control="+n+"&data="+JSON.stringify(i):n.search("\\?")==-1?n+"?ajax=true&action="+t:n+"&ajax=true&action="+t,jQuery.ajax({type:"GET",url:n,contentType:"application/json; charset=utf-8",dataType:"json",success:r,error:u})}function DoLazyLoad(){jQuery(function(){jQuery("img.lazy:in-viewport").lazyload({event:"sporty",skip_invisible:!1})});jQuery(window).bind("load",function(){jQuery("img.lazy").lazyload({threshold:200});jQuery("img.lazy-slideshow").lazyload({threshold:250})})}function reloadLazyLoading(){var n=jQuery("img.lazy");n!=null&&n.lazyload()}function startUpdateIcon(){var n=document.getElementById("UpdateIcon");n.style.display="block"}function stopUpdateIcon(){var n=document.getElementById("UpdateIcon");n.style.display="none"}function InitializeAnimationsInArticleWithBackground(){jQuery(".ArticleWithBackground .can-animate").each(function(n,t){if(isScrolledIntoView(t)){var i=jQuery(t),r=i.data("animation");!r||i.addClass("animated "+r)}})}function isScrolledIntoView(n){var t=jQuery(n),i=jQuery(window),u=i.scrollTop(),f=u+i.height(),r=t.offset().top,e=r+t.height();return f>r}function EnableLinksForArticlesWithBackground(){jQuery(".ArticleWithBackground").each(function(n,t){!!jQuery(t).data("link")&&jQuery(t).data("link").length>0&&jQuery(t).click(function(){document.location=decodeURIComponent(jQuery(t).data("link"))})})}function InitializeRoyalSliderInAds(n){jQuery(function(){function i(n,t){jQuery(n).is(":visible")?u(n):t<5e3&&(t+=200,setTimeout(i,200,n,t))}function u(n){var t=r,f=jQuery(n).parents(".prod-image-container").find(".variant-slider-options"),i,u;f.length>0&&(t=f.data("slider-options"));i=jQuery(n).parents(".Layout3Element");i.length>0&&(u=i.data("first-image-index"),u!==undefined&&(t.startSlideId=u));jQuery(n).royalSlider(t)}var r={controlNavigation:"thumbnails",numImagesToPreload:1,autoScaleSlider:!0,autoScaleSliderWidth:300,autoScaleSliderHeight:320,imageAlignCenter:!1,navigateByClick:!1,imageScalePadding:0,arrowsNav:!1,thumbs:{fitInViewport:!1},fullscreen:{enabled:!1}},t=".variant-slider";n!=undefined&&(t=n);jQuery(t).each(function(n,t){i(t,0)})})}function InitializeRoyalSliderForPreview(n,t,i,r){jQuery(function(){var o={controlNavigation:"bullets",keyboardNavEnabled:!0,numImagesToPreload:1,navigateByClick:!1,arrowsNav:!1,imageScaleMode:"fit",thumbs:!1,video:{disableCSS3inFF:!1},fullscreen:{enabled:!0}},s={controlNavigation:"bullets",keyboardNavEnabled:!0,numImagesToPreload:1,navigateByClick:!1,imageScaleMode:"fit",thumbs:!1,video:{disableCSS3inFF:!1},fullscreen:{enabled:!0}},h={controlNavigation:"thumbnails",keyboardNavEnabled:!0,numImagesToPreload:1,navigateByClick:!1,imageScaleMode:"fit",thumbs:{spacing:10,orientation:"vertical",autoCenter:!1},video:{disableCSS3inFF:!1},fullscreen:{enabled:!0}},f,e,u;jQuery.extend(o,n);jQuery.extend(s,t);jQuery.extend(h,i);f={};switch(mcWeb.responsive.getScreenSize()){case"xs":f=o;break;case"sm":f=s;break;default:f=h}e=jQuery(r+" .prod-image-slider");u=e.royalSlider(f).data("royalSlider");e.prepend(e.find(".rsNav"));u.ev.on("rsEnterFullscreen",function(){jQuery(r+".product-image-container").addClass("rs-full-view")});u.ev.on("rsExitFullscreen",function(){jQuery(r+".product-image-container").removeClass("rs-full-view")});u.ev.on("rsSlideClick",function(){u.isFullscreen?u.exitFullscreen():u.enterFullscreen()})})}function InitializeRoyalSlider(n,t,i){jQuery(function(){var o={controlNavigation:"bullets",keyboardNavEnabled:!0,numImagesToPreload:1,navigateByClick:!1,arrowsNav:!1,imageScaleMode:"fit",thumbs:!1,video:{disableCSS3inFF:!1},fullscreen:{enabled:!0}},s={controlNavigation:"bullets",keyboardNavEnabled:!0,numImagesToPreload:1,navigateByClick:!1,imageScaleMode:"fit",thumbs:!1,video:{disableCSS3inFF:!1},fullscreen:{enabled:!0}},h={controlNavigation:"thumbnails",keyboardNavEnabled:!0,numImagesToPreload:1,navigateByClick:!1,imageScaleMode:"fit",thumbs:{spacing:10,orientation:"vertical",autoCenter:!1},video:{disableCSS3inFF:!1},fullscreen:{enabled:!0}},u,f,r,e;jQuery.extend(o,n);jQuery.extend(s,t);jQuery.extend(h,i);u={};switch(mcWeb.responsive.getScreenSize()){case"xs":u=o;break;case"sm":u=s;break;default:u=h}f=jQuery(".ProductInfo .prod-image-slider");r=f.royalSlider(u).data("royalSlider");f.prepend(f.find(".rsNav"));r.ev.on("rsEnterFullscreen",function(){jQuery(".product-image-container").addClass("rs-full-view")});r.ev.on("rsExitFullscreen",function(){jQuery(".product-image-container").removeClass("rs-full-view")});r.ev.on("rsSlideClick",function(){r.isFullscreen?r.exitFullscreen():r.enterFullscreen()});e=jQuery(".rsContent.zindex-off");e!=null&&setTimeout(function(){e.removeClass("zindex-off")},1e3)})}function getTopMenuHeight(){var t=jQuery,f=t(".use-sticky-header .m-header-dock.stickybar"),n=-1,i,r,u,e;return(f.length>0?n=f.outerHeight():t(".use-sticky-header").length>0&&(n=0),n>-1)?(i=t(".m-header-dock.stickybar .top-menu"),i.length>0&&i.filter(":visible").length>0&&(n-=i.length>0?i.outerHeight()+1:0),r=t(".stickybar .free-shipping-counter"),r.length>0&&r.filter(":visible").length>0&&(n-=r.length>0?r.outerHeight():0),u=t(".use-sticky-header .menu-container.stickybar"),e=u.length>0?u.outerHeight():0,e+n):0}function scrollToSection(n){var t=getTopMenuHeight(),i,r;jQuery(".menu-container.stickybar.fixed").length===0&&(t=t*2);i=jQuery(".ProductInfo .section-menu.stickybar");r=i.length>0?i.outerHeight():0;jQuery(n).animateScrollTo(-(t+r))}function closedLoginRedirect(n){n||window.location.pathname.toLowerCase().indexOf("/webpages/kunde/")!==-1?window.location.hash="#closedlogin":window.location.href="/#closedlogin"}function makeAdLinkToProduct(n,t){jQuery("#"+n).click(function(n){var i=jQuery(n.target),r=i.parent();i.is("button")||i.is("a")||r.is("button")||r.is("a")||i.is(".rsTmb")||i.parents(".checkbox").length>0||i.is(".rsThumbsArrow")||i.is(".rsThumbsArrowIcn")||t&&t.length>0&&(window.location.href=t)})}function WidthChange(n){var t=jQuery,i=t("#PageWrapper");if(n.matches){i.on("mouseenter",".Layout2Element",function(){t(this).find(".ShowOnHover").each(function(){t(this).show()})});i.on("mouseleave",".Layout2Element",function(){t(this).find(".ShowOnHover").each(function(){t(this).hide()})});i.find(".ShowOnHover").hide()}else i.off("mouseenter",".Layout2Element",function(){}),i.off("mouseleave",".Layout2Element",function(){})}function getViewportSize(){return typeof innerWidth!="undefined"?[window.innerWidth,window.innerHeight]:typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0?[document.documentElement.clientWidth,document.documentElement.clientHeight]:[document.getElementsByTagName("body")[0].clientWidth,document.getElementsByTagName("body")[0].clientHeight]}function MakeAdLinksOpenInNewWindow(){jQuery("div.textContent").each(function(){var n=jQuery(this);n.find("a[href]").not("[class]").filter('[href^="http"]').each(function(){var n=jQuery(this);n.attr("target","_blank")})})}function ShowHeightAdjustmentWarning(){if(jQuery("#height-adjust-warning").length==0){var n=jQuery("#pub-hidden-warning-performance").text();jQuery("#aspnetForm").prepend('<div id = "height-adjust-warning"style = "text-align:center; background-color:red; ">'+n+"<\/div> ")}}function RemoveHeightAdjustmentWarning(){jQuery("#height-adjust-warning").remove()}function resizeElementsForSlideShowPreview(){resizeElementsForSlideShow2("div.gaiax-window-content .around_slides div.slides_container")}function resizeElementsForSlideShow(){resizeElementsForSlideShow2("#PageContainer .around_slides div.slides_container")}function resizeElementsForSlideShow2(n){if(jQuery(".WebPubElementEdit").length>75){ShowHeightAdjustmentWarning();return}if(RemoveHeightAdjustmentWarning(),!(jQuery(n).find(".LayoutVersion1").length<1)){var t=0;jQuery(n).each(function(){var i=0,n=jQuery(this),r;n.children().length>0&&(jQuery(".ElementDivider").each(function(){var n=0;parseInt(jQuery(this).css("margin-bottom"))>0&&(n=parseInt(jQuery(this).css("margin-bottom")));n>t&&(t=n)}),r={"div.Element":["div.ReviewScore","h3","div.EtilizeTinyBodyText","div.prodImg","div.prodImgXSmall","div.textContent","table.PriceCell","table.Klarna","table.PriceContainer"],"div.ElementTiny":["div.ReviewScore","h3","div.textContent","table"],"div.ElementTinyAttributesExtended":["div.ReviewScore","h3","div.scriptElementContent"],"div.ElementGorilla":["h3","div.textContent","div.prodImg","table"],"div.ElementBonobo":["h3","div.textContent","table"],"div.ElementBaboon":["h3","div.description-two","div.read-more-content"],"div.ElementMacaque":["h3","div.description-two","div.price"],"div.ElementPotto":["div.prodImg","h3","div.textContent","div.PottoPriceText","div.PottoRightContent"],"div.ElementGibbon":["div.ElementGibbonHeader","div.prodImg","h3","table.GibbonTable"],"div.ElementLorier":["h3","div.LorierClientText","div.textContent","div.LorierPriceButton","h2.AdSmallpris","div.prodImg"],"div.ElementMangaBeyBlack":["h3","div.MangaBeyBlackprodImg","div.textContent","div.ElementMangaBeyBlackLeftSide","div.ElementMangaBeyBlackRightsideBottom","table"],"div.ElementMangaBeyGrey":["h3","div.MangaBeyGreyprodImg","div.textContent","div.ElementMangaBeyBlackLeftSide","div.ElementMangaBeyBlackRightsideBottom","table"],"div.ElementMandrillTiny":["h3","div.prodImg","div.textContent","table"],"div.ElementMandrillSmall":["h3","div.prodImg","div.textContent","table"],"div.ElementStandardArticle":[".textContent"],"div.ElementTiny_Attribute":["h3","div.textContent","table"],"div.ElementImageLeftTiny":["div.ReviewScore","h3","div.ContentContainer","div.ProdusentLogo","div.PriceContainer"],"div.ElementImageLeftSmall":["div.ReviewScore","h3","div.ContentContainer","div.PriceContainer"],"div.ElementImageLeftFull":["div.ReviewScore","h3","div.ContentContainer","div.PriceContainer"],"div.ElementImageTopTiny":["div.ReviewScore","div.ContentContainer","div.PriceContainer"],"div.ElementImageTopSmall":["div.ReviewScore","div.ContentContainer","div.PriceContainer"]},jQuery.each(r,function(t,i){try{i.each(function(i){for(var r,u=0;u<3;u++)r=0,n.find(t).find(i+":eq("+u+")").each(function(){jQuery(this).css("height","auto");jQuery(this).height()>r&&(r=jQuery(this).height())}),n.find(t).find(i+":eq("+u+")").each(function(){if(r>jQuery(this).height())jQuery(this).height(r);else if(r==0&&jQuery(this).height()>0)var n=this})})}catch(r){alert(r)}}),jQuery.each(r,function(t){n.find(t).each(function(){jQuery(this).height("auto");jQuery(this).outerHeight(!0)>i&&(i=jQuery(this).outerHeight(!0))})}),i>0&&jQuery.each(r,function(t){n.find(t).each(function(){var n=i;parseInt(jQuery(this).css("padding-top"))>0&&(n-=parseInt(jQuery(this).css("padding-top")));parseInt(jQuery(this).css("padding-bottom"))>0&&(n-=parseInt(jQuery(this).css("padding-bottom")));parseInt(jQuery(this).css("border-top-width"))>0&&(n-=parseInt(jQuery(this).css("border-top-width")));parseInt(jQuery(this).css("border-bottom-width"))>0&&(n-=parseInt(jQuery(this).css("border-bottom-width")));parseInt(jQuery(this).css("margin-top"))>0&&(n-=parseInt(jQuery(this).css("margin-top")));parseInt(jQuery(this).css("margin-bottom"))>0&&(n-=parseInt(jQuery(this).css("margin-bottom")));jQuery(this).height(n)})}));n.height(i+t)})}}function resizeElements(){if(jQuery(".WebPubElementEdit").length>75){ShowHeightAdjustmentWarning();return}RemoveHeightAdjustmentWarning();updateLayoutVersion2();jQuery(".NoSlide div.LayoutVersion1").each(function(){var n=jQuery(this),i,t;n.children().length>1&&(i={"div.Element":["div.ReviewScore","h3","div.EtilizeTinyBodyText","div.prodImg","div.prodImgXSmall","div.textContent","table"],"div.ElementTiny":["div.ReviewScore","h3","div.textContent","table"],"div.ElementTinyAttributesExtended":["div.ReviewScore","h3","div.scriptElementContent"],"div.ElementGorilla":["h3","div.textContent","div.prodImg","table"],"div.ElementBonobo":["h3","div.textContent","table"],"div.ElementBaboon":["h3","div.description-two","div.read-more-content"],"div.ElementMacaque":["h3","div.description-two","div.price"],"div.ElementPotto":["div.prodImg","h3","div.textContent","div.PottoPriceText","div.PottoRightContent"],"div.ElementGibbon":["div.ElementGibbonHeader","div.prodImg","h3","table.GibbonTable"],"div.ElementLorier":["h3","div.LorierClientText","div.textContent","div.LorierPriceButton","h2.AdSmallpris","div.prodImg"],"div.ElementMangaBeyBlack":["h3","div.MangaBeyBlackprodImg","div.textContent","div.ElementMangaBeyBlackLeftSide","div.ElementMangaBeyBlackRightsideBottom","table"],"div.ElementMangaBeyGrey":["h3","div.MangaBeyGreyprodImg","div.textContent","div.ElementMangaBeyBlackLeftSide","div.ElementMangaBeyBlackRightsideBottom","table"],"div.ElementMandrillTiny":["h3","div.prodImg","div.textContent","table"],"div.ElementMandrillSmall":["h3","div.prodImg","div.textContent","table"],"div.ElementStandardArticle":[".textContent"],"div.ElementTiny_Attribute":["h3","div.textContent","table"],"div.ElementImageLeftTiny":["div.ReviewScore","h3","div.ContentContainer","div.ProdusentLogo","div.PriceContainer"],"div.ElementImageLeftSmall":["div.ReviewScore","h3","div.ContentContainer","div.PriceContainer"],"div.ElementImageLeftFull":["div.ReviewScore","h3","div.ContentContainer","div.PriceContainer"],"div.ElementImageTopTiny":["div.ReviewScore","div.ContentContainer","div.PriceContainer"],"div.ElementImageTopSmall":["div.ReviewScore","div.ContentContainer","div.PriceContainer"],"div.MacaqueInkmann":["div.macaque-info"]},jQuery.each(i,function(t,i){try{i.each(function(i){for(var u,r=0;r<3;r++)u=0,n.find(t).find(i+":eq("+r+")").each(function(){jQuery(this).css("height","auto");jQuery(this).height()>u&&(u=jQuery(this).height())}),n.find(t).find(i+":eq("+r+")").each(function(){jQuery(this).height(u)})})}catch(r){alert(r)}}),t=0,jQuery.each(i,function(i){n.find(i).each(function(){jQuery(this).height("auto");jQuery(this).outerHeight(!0)>t&&(t=jQuery(this).outerHeight(!0))})}),t>0&&jQuery.each(i,function(i){n.find(i).each(function(){var n=t;parseInt(jQuery(this).css("padding-top"))>0&&(n-=parseInt(jQuery(this).css("padding-top")));parseInt(jQuery(this).css("padding-bottom"))>0&&(n-=parseInt(jQuery(this).css("padding-bottom")));parseInt(jQuery(this).css("border-top-width"))>0&&(n-=parseInt(jQuery(this).css("border-top-width")));parseInt(jQuery(this).css("border-bottom-width"))>0&&(n-=parseInt(jQuery(this).css("border-bottom-width")));parseInt(jQuery(this).css("margin-top"))>0&&(n-=parseInt(jQuery(this).css("margin-top")));parseInt(jQuery(this).css("margin-bottom"))>0&&(n-=parseInt(jQuery(this).css("margin-bottom")));jQuery(this).height(n)})}))})}function OrderInfoOpenWindow(n){var t=window.open("Kundesenter_ordrerestinfo.aspx?OrdreLinjeID="+n,"OrderWindow","toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=0,resizable=0,width=350,height=200,top=200,left=200")}function ConfirmDeleteOrdre(n){return confirm(n)?!0:!1}function ConfirmDeleteKndKontakt(n,t){var i=new WebApiService("Conditions"),r=i.PostAction("ListAcceptDocumentsNotAcceptedOrIsRepeatable",{UsageArea:5,FunctionName:"DELETE-CUSTOMER",ForUnknownUser:!1}).done(function(result){if(result)if(result.length>0){var lightboxOptions={backdrop:"static",keyboard:!1,show:!0};PubSub.publish(mcWeb.lightbox.events.onShowLightbox,lightboxOptions);jQuery("#lightbox-placeholder").load("/Webpages/ViewProvider.aspx?view=deleteuser",function(){var n=PubSub.subscribe(mcWeb.deleteuser.events.onDeleteUserOK,function(evt,isUserToBeDeleted){PubSub.unsubscribe(n);isUserToBeDeleted?(console.log("GDPR:Delete user"),eval(t.replace("javascript:",""))):console.log("GDPR:Dont delete user")})})}else confirm(n)?(console.log("Delete user"),eval(t.replace("javascript:",""))):console.log("Dont delete user")});return!1}function ConfirmRefreshAds(n){return confirm(n)?!0:!1}function ConfirmIsAddressEmpty(n,t){var i=document.getElementById(n),r;return i!=null&&(r=i.value.replace("/^s+|s+$/g",""),r.length<1)?confirm(t)?!0:!1:!0}function ConfirmEmptyAddress(n,t,i,r){var u=document.getElementById(i);return u!=null?u.checked==!1&&!ConfirmIsAddressEmpty(t,r)?!1:ConfirmIsAddressEmpty(n,r):!0}function LeftAndRightColumnBorder(){var n=document.getElementById("PageContainer").offsetHeight;document.getElementById("PageColumnLeft").style.height=n+"px";document.getElementById("PageColumnRight").style.height=n+"px"}function SearchFilterShow(n,t,i,r){document.getElementById("BalloonLayer").style.visibility=="visible"?balloonHide():displayBalloon(t,i,document.getElementById(r).innerHTML,"BalloonLayer")}function balloonShow(n,t,i){displayBalloon(n,t,document.getElementById(i).innerHTML,"BalloonLayer")}function balloonShowLagerKonfigInfo(n,t,i){displayBalloonLagerKonfigInfo(n,t,document.getElementById(i).innerHTML,"BalloonLayer")}function balloonShowLagerStatus(n,t,i,r,u,f,e){var o="";isNaN(i)&&(i=i.trim());isNaN(r)&&(r=r.trim());(i=="Ubekreftet"||i=="Unconfirmed"||i=="Ubekr.")&&(i=0);(i=="20+"||i=="100+")&&(i=20);(r=="Ubekreftet"||r=="Unconfirmed"||r=="Ubekr.")&&(r=0);(r=="20+"||r=="100+")&&(r=20);i>0?o="BalloonLayer1":i==0&&r==0&&(u==1||u==4)?o=f.toLowerCase()=="true"?"BalloonLayer2":e.toLowerCase()=="true"?"BalloonLayer3":"BalloonLayer4":i==0&&r>0&&(u==1||u==4)?o=visFjernlager=="True"&&summerEgetLagerOgLev=="False"?"BalloonLayer5":"BalloonLayer6":i==0&&u==2&&(o="BalloonLayer4");displayBalloonLagerStatus(n,t,o)}function balloonShowLagerStatusFjernlager(n,t,i,r){isNaN(i)&&(i=i.trim());isNaN(r)&&(r=r.trim());var u="";(i=="20+"||i=="100+")&&(i=20);(r=="20+"||r=="100+")&&(r=20);u=r>0?"BalloonLayerSupplierWithStock":i>0?"BalloonLayerSupplierWithStock":"BalloonLayerSupplierWithoutStock";displayBalloonLagerStatus(n,t,u)}function ShowPublisher(n){if(jQuery("#DivPubMenu").css("display","block"),jQuery(document.body).click(function(){PublisherOverlayHide()}),!n)var n=window.event;n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()}function ShowPublisherCopyLinks(n){document.getElementById("DivPubMenu3").style.display="block";var t=document.getElementById(n);t!=null&&(t.focus(),t.select())}function ShowPublisherLinks(){document.getElementById("DivPubMenu2").style.display="block"}function displayBalloon(n,t,i,r){var u,f;u=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;f=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;u=u+n.clientX-30;f=f+n.clientY+20;document.getElementById(r).innerHTML=i;document.getElementById(r).style.left=u+"px";document.getElementById(r).style.top=f+"px";document.getElementById(r).style.width=t;document.getElementById(r).style.visibility="visible";document.getElementById(r).style.display="block"}function displayBalloonLagerKonfigInfo(n,t,i,r){var u,f;u=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;f=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;u=u+n.clientX+20;f=f+n.clientY-300;document.getElementById(r).innerHTML=i;document.getElementById(r).style.left=u+"px";document.getElementById(r).style.top=f+"px";document.getElementById(r).style.width=t;document.getElementById(r).style.visibility="visible"}function displayBalloonLagerStatus(n,t,i){var u,f,r;u=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;f=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;u=u+n.clientX-30;f=f+n.clientY+20;r=document.getElementById(i);r!=null&&(r.style.left=u+"px",r.style.top=f+"px",r.style.width=t,r.style.visibility="visible")}function balloonHide(){document.getElementById("BalloonLayer").style.visibility="hidden"}function balloonHide2(){document.getElementById("BalloonLayer6").style.visibility="hidden"}function balloonHideLagerStatus(){try{document.getElementById("BalloonLayer1").style.visibility="hidden";document.getElementById("BalloonLayer2").style.visibility="hidden";document.getElementById("BalloonLayer3").style.visibility="hidden";document.getElementById("BalloonLayer4").style.visibility="hidden";document.getElementById("BalloonLayer5").style.visibility="hidden";var n=document.getElementById("BalloonLayerSupplierWithStock");n!=null&&(n.style.visibility="hidden");n=document.getElementById("BalloonLayerSupplierWithoutStock");n!=null&&(n.style.visibility="hidden");n=document.getElementById("BalloonLayer6");n!=null&&(n.style.visibility="hidden")}catch(t){}}function WebCartCountChar(n,t){var i=n.value;i.length>t&&(alert("Antall bokstaver kan ikke være over "+t+"."),n.value=i.substring(0,t),n.focus())}function SetRadioButtonChecked(){document.forms[0].RadioList!=undefined&&(document.forms[0].RadioList[0].checked=!0)}function FCKUpdateLinkedField(n,t){try{var i=CKEDITOR.instances[n].getData(),r=document.getElementById("FCK"+t);r.value=i}catch(u){console.log(u)}}function CreateCKInstances(n,t,i){var r,u,f;try{if(n.length>0&&document.getElementById(n)){if(r=t.length>0?t:"fullConfig.js",u=i.split(","),CKEDITOR.dom.element.get(n).getEditor()!=null)return;f=CKEDITOR.replace(n,{customConfig:r,contentsCss:u,on:{instanceReady:function(){var t=n.substring(0,n.lastIndexOf("_")),i;t=t.substring(0,t.lastIndexOf("_"));i=null;i=n.indexOf("CKeditorInList")>-1?document.getElementById(t+"_HdnFldFCKeditorInListLoadStat"):document.getElementById(t+"_HdnFldFCKeditor1LoadStat");i&&(i.value="true")}}});CKFinder.setupCKEditor(f,"/ckfinder/")}}catch(e){console.log(e)}}function RunBackgroundFCKUpdateLinkedField(n,t){var i=document.getElementById("FCKTimer");i.value=setInterval("FCKUpdateLinkedField('"+n+"','"+t+"');",15e3)}function ClearBackupTimer(){var n=document.getElementById("FCKTimer");clearInterval(n.value)}function switchImg(n,t){document.getElementById(t).src=imgDir+mediumImg[n.getAttribute("imgID")];selectedImgID=n.getAttribute("imgID");placeholderID=n.getAttribute("imgID")}function switchImgOff(){}function switchBigImg(n){document.getElementById("bigImg").src=imgDir+bigImg[n.getAttribute("imgID")];boxImageID=n.getAttribute("imgID")}function showImg(){document.getElementById("bigImg").src=imgDir+bigImg[selectedImgID];showBox()}function nextBigImgClick(){boxImageID++;boxImageID<bigImg.length?document.getElementById("bigImg").src=imgDir+bigImg[boxImageID]:(boxImageID=0,document.getElementById("bigImg").src=imgDir+bigImg[0])}function nextImg(n,t){var i="";selectedImgID++;selectedImgID==mediumImg.length?(i=mediumImg[0],selectedImgID=0):i=mediumImg[selectedImgID];document.getElementById(t).src=imgDir+i;changeThumbernailOrderNext(t)}function changeThumbernailOrderNext(n){var t,i;if(placeholderID++,placeholderID>=numberOfVisibleThumbImages)for(placeholderID=numberOfVisibleThumbImages-1,t=selectedImgID<numberOfVisibleThumbImages?smallImg.length+selectedImgID-(numberOfVisibleThumbImages-1):selectedImgID-(numberOfVisibleThumbImages-1),i=0;i<numberOfVisibleThumbImages;i++)t>smallImg.length-1&&(t=0),document.getElementById(n+"_thumb"+i).src=imgDir+smallImg[t],document.getElementById(n+"_thumb"+i).setAttribute("imgID",t),t++}function previousImg(n,t){var i="";selectedImgID--;selectedImgID<0?(i=mediumImg[mediumImg.length-1],selectedImgID=mediumImg.length-1):i=mediumImg[selectedImgID];document.getElementById(t).src=imgDir+i;changeThumbernailOrderPrevious(t)}function changeThumbernailOrderPrevious(n){var t=selectedImgID,i;if(placeholderID--,placeholderID<0&&(placeholderID=0),placeholderID==0)for(i=0;i<numberOfVisibleThumbImages;i++)t>smallImg.length-1&&(t=0),document.getElementById(n+"_thumb"+i).src=imgDir+smallImg[t],document.getElementById(n+"_thumb"+i).setAttribute("imgID",t),t++}function showBox(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","3"),n("#overlay").show(),center("box"),centerRelativeToPageColumnCenter("box"),!1}function hideBox(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","4"),n("#box").hide(),n("#overlay").hide(),!1}function showBoxVideo(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","3"),n("#overlayVideo").show(),center("boxVideo"),!1}function hideBoxVideo(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","4"),n("#boxVideo").hide(),n("#overlayVideo").hide(),window.navigator.appName=="Opera"&&location.reload(!0),!1}function showBox3DViewer(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","3"),n("#overlay3DViewer").show(),center("box3DViewer"),n("#box3DViewer").css({visibility:"visible"}),!1}function showBox360Viewer(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","3"),n("#overlay360Viewer").show(),center("box360Viewer"),!1}function showBox360ViewerOrdrebok(){var n=jQuery;return n("#overlay360Viewer").show(),center("box360Viewer"),!1}function hideBox3DViewer(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","4"),n("#box3DViewer").hide(),n("#overlay3DViewer").hide(),window.navigator.appName=="Opera"&&location.reload(!0),!1}function hideBox360Viewer(){var n=jQuery,t=n("#ProdImgLogo");return t.length>0&&t.css("zIndex","4"),n("#box360Viewer").hide(),n("#overlay360Viewer").hide(),window.navigator.appName=="Opera"&&location.reload(!0),!1}function hideBox360ViewerOrdrebok(){var n=jQuery;return n("#box360Viewer").hide(),n("#overlay360Viewer").hide(),window.navigator.appName=="Opera"&&location.reload(!0),!1}function showBoxFlash(){var i=jQuery,r=i("#ProdImgLogo"),t,n;for(r.length>0&&r.css("zIndex","3"),i("#overlayFlash").show(),t=$$(".fb_iframe_widget"),n=0;n<t.length;n++)t[n].hide();return center("boxFlash"),!1}function hideBoxFlash(){var t=jQuery,r=t("#ProdImgLogo"),i,n;for(r.length>0&&r.css("zIndex","4"),t("#boxFlash").hide(),t("#overlayFlash").hide(),i=$$(".fb_iframe_widget"),n=0;n<i.length;n++)i[n].hide();return window.navigator.appName=="Opera"&&location.reload(!0),!1}function showBoxYouTube(){var i=jQuery,r=i("#ProdImgLogo"),t,n;for(r.length>0&&r.css("zIndex","3"),i("#overlayYouTube").show(),t=$$(".fb_iframe_widget"),n=0;n<t.length;n++)t[n].hide();return center("boxYouTube"),!1}function hideBoxYouTube(){var t=jQuery,r=t("#ProdImgLogo"),i,n;for(r.length>0&&r.css("zIndex","4"),t("#boxYouTube").hide(),t("#overlayYouTube").hide(),i=$$(".fb_iframe_widget"),n=0;n<i.length;n++)i[n].show();return window.navigator.appName=="Opera"&&location.reload(!0),!1}function showBoxVimeo(){var t=jQuery,r=t("#ProdImgLogo"),i,n;for(r.length>0&&r.css("zIndex","3"),t("#overlayVimeo").show(),i=t(".fb_iframe_widget"),n=0;n<i.length;n++)i[n].hide();return center("boxVimeo"),!1}function showBoxMcVideo(n){var e=jQuery,t="overlayMcVideo",i,o,h,s,r,u,f;for(t=t.concat(n),i="boxMcVideo",i=i.concat(n),o=e("#ProdImgLogo"),o.length>0&&o.css("zIndex","3"),isIE&&(h=document.getElementById(t),h.className="overlayMcVideoIE"),e("#"+t).show(),s=e(".fb_iframe_widget"),r=0;r<s.length;r++)s[r].hide();if(center(i),u="html5VideoPlayer",u=u.concat(n),f=document.getElementById(u),f!=null)try{f.canPlayType&&f.play()}catch(c){}return!1}function hideBoxMcVideo(n){var t=jQuery,o="html5VideoPlayer",u,f,i,r,c,s,h,e;if(o=o.concat(n),u=document.getElementById(o),u!=null)try{u.canPlayType&&u.pause()}catch(l){}for(f="overlayMcVideo",f=f.concat(n),i="boxMcVideo",i=i.concat(n),r=t("#"+i).find("iframe"),r.length>0&&(c=r.attr("src"),r.attr("src","about:blank"),r.attr("src",c)),s=t("#ProdImgLogo"),s.length>0&&s.css("zIndex","4"),t("#"+i).hide(),t("#"+f).hide(),h=t(".fb_iframe_widget"),e=0;e<h.length;e++)h[e].show();return window.navigator.appName=="Opera"&&location.reload(!0),!1}function getPageColumnCenterTopOffset(n){var t=$(n),r=$(document.getElementById("PageColumnCenter")),i=$(t.getOffsetParent()),i=$(t.getOffsetParent());return i.cumulativeOffset().top}function centerRelativeToPageColumnCenter(n){var r=document.getElementById(n),t=$(r),i=$(document.getElementById("PageColumnCenter")),u=i.getWidth(),f=t.getWidth(),s=i.cumulativeOffset().top,e=u-f,o;t.style.position="absolute";t.style.zIndex=999;t.style.left=e/2+"px";t.style.top="-100px";o=$(t.getOffsetParent())}function center(n){var t,i;try{n=$(n)}catch(o){return}t=0;i=0;typeof innerWidth=="number"?(t=window.innerWidth,i=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(t=document.documentElement.clientWidth,i=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(t=document.body.clientWidth,i=document.body.clientHeight);n.style.position="fixed";n.style.zIndex=999;var e=0-getPageColumnCenterTopOffset(n)/2,f=Element.getDimensions(n),r=(t-f.width)/2,u=(i-f.height)/2+e;r=r<0?0:r;u=u<0?0:u;n.style.left=r+"px";n.style.top=u+"px";n.style.display="block"}function centerWindow(n){var i,r,t;try{n=$(n)}catch(o){return}i=0;r=0;typeof innerWidth=="number"?(i=window.innerWidth,r=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(i=document.documentElement.clientWidth,r=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(i=document.body.clientWidth,r=document.body.clientHeight);t=0;document.documentElement&&document.documentElement.scrollTop?t=document.documentElement.scrollTop:document.body&&document.body.scrollTop?t=document.body.scrollTop:window.pageYOffset?t=window.pageYOffset:window.scrollY&&(t=window.scrollY);var e=Element.getDimensions(n),u=(i-e.width)/2,f=(r-e.height)/2+t;u=u<0?0:u;f=f<0?0:f;n.style.left=u+"px";n.style.top=f+"px";n.style.display="block"}function focusOnSearch(n){n.className="TextBoxSearchEnable";n.value=""}function HideElement(n){n.style.display="none"}function PublisherOverlayClick(n){if(!n)var n=window.event;n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()}function PublisherOverlayHide(n){n?jQuery("#"+n).hide():jQuery(".PublisherOverlay").hide()}function PublisherOverlayOut(n,t){t?publisherOverlayTimer[t]=window.setTimeout("PublisherOverlayHide('"+t+"');",2500):publisherOverlayTimer[0]=window.setTimeout("PublisherOverlayHide();",2500)}function PublisherOverlayOver(n,t){t&&publisherOverlayTimer[t]?window.clearTimeout(publisherOverlayTimer[t]):publisherOverlayTimer[0]&&window.clearTimeout(publisherOverlayTimer[0])}function SelectElement(n,t,i,r){document.getElementById("SelectedAreaUniqueName").value=n;document.getElementById("SelectedWebPubFieldID").value=t;document.getElementById("SelectedWebPubElementID").value=i;document.getElementById("SelectedWebSiteMapNodeID").value=r}function ShowElementMenu(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d){var tt=document.getElementById(t),nt,g,it,rt,ut;jQuery(document.body).click(function(){PublisherOverlayHide()});n||(n=window.event);n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation();nt=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;g=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;nt=nt+n.clientX-10;g=g+n.clientY-13;document.getElementById("SelectedAreaUniqueName").value=i;document.getElementById("SelectedWebPubFieldID").value=r;document.getElementById("SelectedWebPubElementID").value=u;document.getElementById("ActiveFieldControl").value=e;document.getElementById("ActiveElementControl").value=o;document.getElementById("ActiveAreaControl").value=f;document.getElementById("SelectedWebSiteMapNodeID").value=w;i=="FooterContent1"&&(g=g-140);tt.style.left=nt+"px";tt.style.top=g+"px";tt.style.display="inline";it=document.getElementById(s);it.style.display=h;rt=document.getElementById(b);ut=document.getElementById(d);rt.style.display=k;ut.style.display=k;var ft=document.getElementById(c),et=document.getElementById(v),ot=document.getElementById(l),st=document.getElementById(y);ft.style.display=a;ot.style.display=a;et.style.display=p;st.style.display=p}function ShowInlineEdit(n,t,i,r){document.getElementById("ActiveFieldControl").value=i;var f,u;f=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;u=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;f=f+n.clientX-10;u=u+n.clientY;r=="FooterContent1"&&(u=u-265);document.getElementById("InlnEdX").value=f;document.getElementById("InlnEdY").value=u}function SetSearchBoxCoord(n,t){var u=document.getElementById("InstSearchDiv"),i=$(u),r;Element.clonePosition(i,$(t),{setWidth:"true",setHeight:"false",offsetTop:25});i.style.left=$(t).cumulativeOffset().left+"px";i.style.position="absolute";r=i.getWidth();r<250&&i.setStyle({width:"250px"})}function SetSearchBoxCoordFixed(n,t){var u=document.getElementById("InstSearchDiv"),i=$(u),r;Element.clonePosition(i,$(t),{setWidth:"true",setHeight:"false",offsetTop:25});i.style.left=$(t).cumulativeOffset().left+"px";i.setStyle({top:"92px"});i.style.position="fixed";i.style.zIndex="120";r=i.getWidth();r<250&&i.setStyle({width:"250px"})}function ShowFieldMenu(n,t,i,r,u,f,e){var h=document.getElementById(t),n,s,o;jQuery(document.body).click(function(){PublisherOverlayHide()});n||(n=window.event);n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation();s=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;o=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;s=s+n.clientX-10;o=o+n.clientY;document.getElementById("SelectedAreaUniqueName").value=i;document.getElementById("SelectedWebPubFieldID").value=r;document.getElementById("ActiveFieldControl").value=f;document.getElementById("ActiveAreaControl").value=u;document.getElementById("SelectedWebSiteMapNodeID").value=e;i=="FooterContent1"&&(o=o-265);h.style.left=s+"px";h.style.top=o+"px";h.style.display="inline"}function ShowAreaMenu(n,t,i,r,u){var o=document.getElementById(t),n,e,f;jQuery(document.body).click(function(){PublisherOverlayHide()});n||(n=window.event);n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation();e=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;f=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;e=e+n.clientX-10;f=f+n.clientY;document.getElementById("SelectedAreaUniqueName").value=i;document.getElementById("ActiveAreaControl").value=r;document.getElementById("SelectedWebSiteMapNodeID").value=u;i=="FooterContent1"&&(f=f-250);o.style.left=e+"px";o.style.top=f+"px";o.style.display="inline"}function ShowAreaSubmenu(n,t){var u=document.getElementById(t),n,i,r;jQuery(document.body).click(function(){PublisherOverlayHide()});n||(n=window.event);n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation();i=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;r=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;i=i+n.clientX-10;r=r+n.clientY-13;u.style.left=i+"px";u.style.top=r+"px";u.style.display="inline"}function AddPublisherHide(){jQuery(document.body).click(function(){PublisherOverlayHide()})}function ShowProductOptionsMenuWithNoUpdate(n,t,i){var f=document.getElementById(i),n,r,u;jQuery(document.body).click(function(){PublisherOverlayHide()});n||(n=window.event);n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation();r=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;u=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;r=r+n.clientX-10;u=u+n.clientY-13;document.getElementById("SelectedWebSiteMapNodeID").value=t;f.style.left=r+"px";f.style.top=u+"px";f.style.display="block"}function ShowProductOptionsMenu(n,t,i){var f=document.getElementById(i),r,u;jQuery(document.body).click(function(){PublisherOverlayHide()});r=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;u=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;r=r+n.clientX-10;u=u+n.clientY-13;document.getElementById("SelectedWebSiteMapNodeID").value=t;f.style.left=r+"px";f.style.top=u+"px";f.style.display="block"}function ShowProductOptionsMenuTopLevel(n,t,i){var f=document.getElementById(i),r,u;jQuery(document.body).click(function(){PublisherOverlayHide()});n.stopPropagation&&n.stopPropagation();r=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;u=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;r=r+n.clientX-10;u=u+n.clientY-13;document.getElementById("SelectedWebSiteMapNodeID").value=t;f.style.left=r+"px";f.style.top=u+"px";f.style.display="block"}function SelectActiveField(n,t){document.getElementById(n).value=t}function getPageContainerOffsetX(n){while(n!=null){if(n.id=="PageColumnRight")return n.offsetLeft;n=n.parentNode}return 0}function getPageContainerOffsetY(n){while(n!=null){if(n.id=="PageColumnRight")return n.offsetTop;n=n.parentNode}return 0}function getPosX(n){for(var t=0;n!=null;)if(n.id=="PageContainer")break;else t+=n.offsetLeft,n=n.offsetParent;return t}function getPosY(n){for(var t=0;n!=null;)if(n.id=="PageContainer")break;else t+=n.offsetTop,n=n.offsetParent;return t}function getPosFieldMenuX(n){for(var t=0;n!=null;)if(n.id=="PageContainer"){t+=n.offsetLeft;break}else t+=n.offsetLeft,n=n.offsetParent;return t}function getPosFieldMenuY(n){for(var t=0;n!=null;)if(n.id=="PageContainer"){t+=n.offsetTop;break}else t+=n.offsetTop,n=n.offsetParent;return t}function updateKonfigInputRowVisibility(n,t){var r=jQuery(t.parentNode.parentNode.parentNode).find(".config-i-r"),i;r.hide();i=jQuery("#"+n);i.show()}function checkInputLength(n,t){var r=t.value,i=jQuery(t).data("maxlength"),u=r.replace(/\s/g,"").length;if(u<=i){jQuery(t).removeClass("text-danger");return}n=n.replace("{0}",i);jQuery(t).addClass("text-danger");jQuery(t).qtip({content:{text:n},position:{my:"bottom center",at:"top center"},style:{classes:"qtip-bootstrap qtip-warning"},show:!0,hide:{inactive:4e3,event:"click",effect:function(){jQuery(this).slideUp();jQuery(t).qtip("destroy")}},prerender:!0})}function checkConfigInputLength(n,t,i){var u=jQuery(".input-comment:visible"),e=!1,f,r,o,s;if(u!=null&&u.length>0)for(f=0;f<u.length;f++){if(r=u[f],r.value.length===0)return jQuery(r).addClass("text-danger"),jQuery(r).qtip({content:{text:t},position:{my:"bottom center",at:"top center"},style:{classes:"qtip-bootstrap qtip-warning"},show:!0,hide:{inactive:4e3,event:"click",effect:function(){jQuery(this).slideUp();jQuery(r).qtip("destroy")}},prerender:!0}),n.stopImmediatePropagation(),!1;o=jQuery(r).data("maxlength");s=r.value.replace(/\s/g,"").length;s<=o?jQuery(r).removeClass("text-danger"):e=!0}if(e)return window.confirm(i)?!0:(n.stopImmediatePropagation(),!1)}function getKonfigPrices(n,t,i,r,u,f){var e=n+"webpages/produkt/AjaxProduktKonfigUpd.aspx",o=new Ajax.Updater(i,e,{method:"get",parameters:t,onComplete:new Function("updateKonfigPrices('"+i+"','"+r+"','"+u+"','"+f+"');")})}function getIsKonfigValid(n,t,i,r,u,f){var e=n+"webpages/produkt/AjaxProduktKonfigUpd.aspx",o=new Ajax.Updater(i,e,{method:"get",parameters:t,onComplete:new Function("updateKonfigValidity('"+i+"','"+r+"','"+u+"','"+f+"');")})}function getKonfigInfo(n,t,i){var r=n+"webpages/produkt/AjaxProduktKonfigUpd.aspx",u=new Ajax.Updater(i,r,{method:"get",parameters:t})}function getKonfigSum(n,t,i){var r=n+"webpages/produkt/AjaxProduktKonfigUpd.aspx",u=new Ajax.Updater(i,r,{method:"get",parameters:t})}function updateKonfigValidity(n,t,i,r){var f=$(n).innerHTML,u;f!="true\n"&&(u=f.split("§"),jQuery($(r)).css("display","none"),updateKonfigProduct(i,u[1]),updateKonfigProduct(t,u[2]))}function updateKonfigPrices(n,t,r,u){var s=$(n).innerHTML,f,e,o;if(s!=""){for(f=s.split("§"),e=f[0].split(";"),i=0;i<e.length;i++)o=e[i].split("|"),updateKonfigProduct(o[0],o[1]);updateKonfigProduct(r,f[1]);updateKonfigProduct(t,f[2]);updateKonfigProduct(u,f[3])}}function updateKonfigProduct(n,t){n!=""&&$(n)!=undefined&&$(n).update(t)}function getGA(n,t){var i=new Ajax.Updater(t,n,{method:"get"})}function updateHeightMerSalg(n,t){var r=$(n).getElementsByClassName(t),u=0;for(i=0;i<r.length;i++)r[i].offsetHeight>u&&(u=r[i].offsetHeight);for(i=0;i<r.length;i++)r[i].style.height=u-22+"px"}function ts(n,t){if(document.getElementById){var o=document,r=null,i=startSz,u,f,e;for(t==0?(i=defaultSz,startSz=defaultSz):(i+=t,i<0&&(i=0),i>3&&(i=3),startSz=i),(r=o.getElementById(n))||(r=o.getElementsByTagName(n)[0]),r.style.fontSize=szs[i],u=0;u<tgs.length;u++)for(e=r.getElementsByTagName(tgs[u]),f=0;f<e.length;f++)e[f].style.fontSize=szs[i]}}function tsConst(n,t){if(document.getElementById){var o=document,i=null,f=startSz,r,u,e;for(f=t,(i=o.getElementById(n))||(i=o.getElementsByTagName(n)[0]),i.style.fontSize=szs[f],r=0;r<tgs.length;r++)for(e=i.getElementsByTagName(tgs[r]),u=0;u<e.length;u++)e[u].style.fontSize=szs[f]}}function refreshUploadTextBox(n,t){var i=document.getElementById(n);i.value=t;i.style.display="";_ifrPhoto.style.display="none"}function initPhotoUpload(){_divUploadMessage=document.getElementById("divUploadMessage");_divUploadProgress=document.getElementById("divUploadProgress");_ifrPhoto=document.getElementById("ifrPhoto");var n=_ifrPhoto.contentWindow.document.getElementById("ButtonUpload");n&&(n.onclick=function(){var n=_ifrPhoto.contentWindow.document.getElementById("filPhoto");if(_divUploadMessage.style.display="none",n.value.length==0){_divUploadMessage.innerHTML='<span style="color:#ff0000">Please specify the file.<\/span>';_divUploadMessage.style.display="";n.focus();return}beginPhotoUploadProgress();_ifrPhoto.contentWindow.document.getElementById("photoUpload").submit()})}function beginPhotoUploadProgress(){_divUploadProgress.style.display="";clearPhotoUploadProgress();_photoUploadProgressTimer=setTimeout(updatePhotoUploadProgress,PROGRESS_INTERVAL)}function clearPhotoUploadProgress(){for(var n=1;n<=_maxLoop;n++)document.getElementById("tdProgress"+n).style.backgroundColor="transparent";document.getElementById("tdProgress1").style.backgroundColor=PROGRESS_COLOR;_loopCounter=1}function updatePhotoUploadProgress(){try{_loopCounter+=1;_loopCounter<=_maxLoop?document.getElementById("tdProgress"+_loopCounter).style.backgroundColor=PROGRESS_COLOR:clearPhotoUploadProgress();_photoUploadProgressTimer&&clearTimeout(_photoUploadProgressTimer);_photoUploadProgressTimer=setTimeout(updatePhotoUploadProgress,PROGRESS_INTERVAL)}catch(n){}}function photoUploadComplete(n,t){if(clearPhotoUploadProgress(),_photoUploadProgressTimer&&clearTimeout(_photoUploadProgressTimer),_divUploadProgress.style.display="none",_divUploadMessage.style.display="none",n.length){var i=t?"#ff0000":"#008000";_divUploadMessage.innerHTML='<span style="color:'+i+';font-weight:bold">'+n+"<\/span>";_divUploadMessage.style.display="";t&&_ifrPhoto.contentWindow.document.getElementById("filPhoto").focus()}}function updateControl(n,t){var i,r;i=n.clientX-15;r=n.clientY-50;document.getElementById(t).style.left=i+"px";document.getElementById(t).style.top=r+"px"}function ChangeBgColor(n,t){n="tr"+n;var i=document.getElementById("hiddenBgID").value;document.getElementById(i)!=undefined&&i!=""&&(document.getElementById(i).style.backgroundColor="");document.getElementById(n).style.backgroundColor=t;document.getElementById("hiddenBgID").value=n}function changeTextBoxType(n,t,i){if(t=="password"&&n.type=="text"){oldPasswordTextBoxID=n.id;var r=document.createElement("input");r.type=t;n.size&&(r.size=n.size);n.value&&(r.value=n.value);n.name&&(r.name=n.name);n.id&&(r.id=n.id);n.className&&(r.className=n.className);n.tabIndex&&(r.tabIndex=n.tabIndex);n.parentNode.replaceChild(r,n);i=="true"&&(r.value="");setTimeout("changeTextBoxTypeSetFocus();",10)}i=="true"&&(n.value="")}function changeTextBoxTypeSetFocus(){oldPasswordTextBoxID!=0&&document.getElementById(oldPasswordTextBoxID).focus()}function showMenuLinks(n,t,r){n.style.display="none";var u=t.toString().split(",");for(i=0;i<u.length;i=i+1)$(u[i]).style.display="block";$(r).style.display="block"}function hideMenuLinks(n,t,r){n.style.display="none";var u=t.toString().split(",");for(i=0;i<u.length;i=i+1)$(u[i]).style.display="";$(r).style.display="block"}function fbs_click(){return u=location.href,t=document.title,window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436"),!1}function showAttrib(n){var t=0;new Effect.Fade($(n+"-show"),{queue:"front",scope:"attrib",duration:.2});document.getElementById(n)&&$(n).getElementsBySelector("li").each(function(n){t++;t>StdAntAttr&&new Effect.BlindDown(n,{queue:"end",scope:"attrib",duration:.02})});new Effect.BlindDown($(n+"-hide"),{queue:"end",scope:"attrib",duration:.2})}function HideAttrib(n){var t=0;document.getElementById(n)&&$(n).getElementsBySelector("li").each(function(n){t++;t>StdAntAttr&&new Effect.BlindUp(n,{queue:"front",scope:"attrib",duration:.02})});new Effect.Fade($(n+"-hide"),{queue:"front",scope:"attrib",duration:.2});new Effect.Appear($(n+"-show"),{queue:"front",scope:"attrib",duration:.3})}function showVariants(n,t){var i,r;try{if(i=document.getElementById(n),i!=null&&i.style!=null&&i.style.display!=null)try{jQuery(i).find(".OuterPanel").css("display","none");i.style.display="table-row";jQuery(i).find(".OuterPanel").slideDown("slow")}catch(u){i.style.display="inline"}r=document.getElementById(t);r!=null&&(r.className=r.className==""?"VariantMother":"VariantMother RowColor")}catch(u){}}function hideVariantsWithTimer(n,t,i){var r=document.getElementById(n);if(r!=null)try{jQuery(r).find(".OuterPanel").slideUp("slow")}catch(u){}setTimeout("hideVariants('"+n+"','"+t+"')",i)}function hideVariants(n,t){var e=document.getElementById(n),u,r,f;if(e!=null&&(e.style.display="none"),u=document.getElementById(t),u!=null)if(r=u.className.split(" "),r.length>1){for(f="",i=0;i<r.length;i++)r[i]!="VariantMother"&&(f+=r[i]+" ");u.className=f}else r.length==1&&r[0]!="RowColor"&&(u.className="")}function RunEventTest(n){var t=n.toLocaleString()}function focusOnUsername(n){n.value=""}function sizeProductListElements(){$$("TableListAnnonse, div.Row").each(function(n){var t=0;t=getProductListHeight(n,"TableListAnnonse, div.Title");setProductListSelectorHeight(n,"TableListAnnonse, div.Title",t);t=getProductListHeight(n,"TableListAnnonse, div.Text");setProductListSelectorHeight(n,"TableListAnnonse, div.Text",t);t=getProductListHeight(n,"TableListAnnonse, div.Price");setProductListSelectorHeight(n,"TableListAnnonse, div.Price",t)})}function getProductListHeight(n,t){var i=0;return $(n).getElementsBySelector(t).each(function(n){var t=n.getDimensions();t.height>i&&(i=t.height)}),i}function setProductListSelectorHeight(n,t,i){$(n).getElementsBySelector(t).each(function(n){$(n).setStyle({height:i+"px"})})}function ControlVersion(){var n,t;try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");n=t.GetVariable("$version")}catch(i){}if(!n)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");n="WIN 6,0,21,0";t.AllowScriptAccess="always";n=t.GetVariable("$version")}catch(i){}if(!n)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");n=t.GetVariable("$version")}catch(i){}if(!n)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");n="WIN 3,0,18,0"}catch(i){}if(!n)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");n="WIN 2,0,0,11"}catch(i){n=-1}return n}function GetSwfVer(){var t=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var u=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"",f=navigator.plugins["Shockwave Flash"+u].description,i=f.split(" "),r=i[2].split("."),e=r[0],o=r[1],n=i[3];n==""&&(n=i[4]);n[0]=="d"?n=n.substring(1):n[0]=="r"&&(n=n.substring(1),n.indexOf("d")>0&&(n=n.substring(0,n.indexOf("d"))));t=e+"."+o+"."+n}}else navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1?t=4:navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1?t=3:navigator.userAgent.toLowerCase().indexOf("webtv")!=-1?t=2:isIE&&isWin&&!isOpera&&(t=ControlVersion());return t}function DetectFlashVer(n,t,i){if(versionStr=GetSwfVer(),versionStr==-1)return!1;if(versionStr!=0){isIE&&isWin&&!isOpera?(tempArray=versionStr.split(" "),tempString=tempArray[1],versionArray=tempString.split(",")):versionArray=versionStr.split(".");var r=versionArray[0],u=versionArray[1],f=versionArray[2];return r>parseFloat(n)?!0:r==parseFloat(n)&&(u>parseFloat(t)||u==parseFloat(t)&&f>=parseFloat(i))?!0:!1}}function AC_AddExtension(n,t){return n.indexOf("?")!=-1?n.replace(/\?/,t+"?"):n+t}function AC_Generateobj(n,t,i){var u="",r;if(isIE&&isWin&&!isOpera){u+="<object ";for(r in n)u+=r+'="'+n[r]+'" ';for(r in t)u+='><param name="'+r+'" value="'+t[r]+'" /> ';u+="><\/object>"}else{u+="<embed ";for(r in i)u+=r+'="'+i[r]+'" ';u+="> <\/embed>"}document.write(u)}function AC_FL_RunContent(){var n=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(n.objAttrs,n.params,n.embedAttrs)}function AC_GetArgs(n,t,i,r,u){var e={},f,o;for(e.embedAttrs={},e.params={},e.objAttrs={},f=0;f<n.length;f=f+2){o=n[f].toLowerCase();switch(o){case"classid":break;case"pluginspage":e.embedAttrs[n[f]]=n[f+1];break;case"src":case"movie":n[f+1]=AC_AddExtension(n[f+1],t);e.embedAttrs.src=n[f+1];e.params[i]=n[f+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":e.objAttrs[n[f]]=n[f+1];break;case"id":case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":e.embedAttrs[n[f]]=e.objAttrs[n[f]]=n[f+1];break;default:e.embedAttrs[n[f]]=e.params[n[f]]=n[f+1]}}return e.objAttrs.classid=r,u&&(e.embedAttrs.type=u),e}function GetInnerText(n){var t=n.innerText!=undefined?!0:!1;return t?n.innerText:n.textContent}function MoveElementToPosition(n,t,i,r){var u=document.getElementById(n),f=document.getElementById(t),e=$(f),o=$(u);Element.clonePosition(o,$(e),{setWidth:"false",setHeight:"false",offsetTop:r,offsetLeft:i})}function isAjaxCallerInView(){var t=getWindowSize(),i=scrollBoxPos(),n=!1;return i<t[1]&&(n=!0),n}function scrollBoxPos(){var n=$("HiddenBox"),t,i;return n!=null?(t=n.offsetTop,i=document.documentElement.scrollTop>=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,t-i):0}function stopFCKBackupTimer(){var n=$("BackupTimer");n!=null&&clearInterval(n.value)}function backupFCKToHiddenFields(n,t){var f=$(n),e=$(t),o=$("BackupTimer"),u,s,r,h;if(f==null||e==null){if(o==null)return;clearInterval(o.value);return}for(u=f.value.split(","),s=e.value.split(","),i=0;i<u.length;i++)r=u[i],h=s[i],r!=null&&r.length>0&&FCKUpdateLinkedField(r,h)}function ShowOrHide(n){var t=$(n);t!=null&&(t.style.display=="none"?t.show():t.hide())}function MoveContentToTable(n,t){var r=$(n);alert(r.innerHTML);var u=$(t),i=u.innerHTML,f=i.lastIndexOf("<\/tbody>");i=i.substring(0,f);i+=r.innerHTML;i+="<\/tbody><\/table>";u.innerHTML=i;alert(i);alert(u.innerHTML);r.innerHTML=""}function SetActiveScrolling(n,t){var i=$(n);i.value="true";$(t).style.display="block"}function StartInitialScrolling(n,t){setTimeout("InitialiseStartScrolling('"+n+"','"+t+"')",500)}function ExpandAttribute(n){Gaia.Control.callPageMethod("ExpandAttribute",[n])}function ContractAttribute(n){window.Gaia.Control.callPageMethod("ContractAttribute",[n])}function InitialiseStartScrolling(n,t){var i=$("HiddenFilterWasUsed");i!=null?i.value!="true"&&(SetActiveScrolling(n,t),Gaia.Control.callPageMethod("RefreshPaging",["1","2"],hideFilterScrollUpdateIcon)):(SetActiveScrolling(n,t),Gaia.Control.callPageMethod("RefreshPaging",["1","2"],hideFilterScrollUpdateIcon))}function InitialiseContinueScrolling(n,t,i){var r=$("HiddenFilterWasUsed");r!=null?r.value!="true"&&(SetActiveScrolling(t,i),Gaia.Control.callPageMethod("RefreshPaging",["1",n],hideFilterScrollUpdateIcon)):(SetActiveScrolling(t,i),Gaia.Control.callPageMethod("RefreshPaging",["1",n],hideFilterScrollUpdateIcon))}function FilterWasUsed(){return!0}function FilterWasNotUsed(){}function escapeRegExp(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function replaceAll(n,t,i){return i.replace(new RegExp(escapeRegExp(n),"g"),t)}function RemovePageNumberFromLink(n){var r=n.indexOf("pageID=");if(r>=0){var t=n.substring(r,n.length),i=t.substring(7,t.length),u=i.indexOf("&",1);return u>0?i.substring(u,i.length):replaceAll(t,"",n)}return n}function McIndexOf(n,t){for(var i=0,r=-1;i!=-1;){if(i=n.indexOf(t,r+1),i>0&&!jQuery.isNumeric(n[i-1]))return i;r++}return i}function CreateUrl(n,t){var i=decodeURIComponent(n),r;if(i=RemovePageNumberFromLink(i),r=i.indexOf("Filter="),r>=0){r+=7;var e=t.indexOf(":"),u=t.substr(0,e),f=McIndexOf(i,u+":");if(f>=0){var o=i.substr(0,f+u.length+1),s=i.substr(f+u.length+1,i.length),h=t.substr(e+1,t.length);return o+h+"^"+s}return i.substring(0,r)+t+"|"+i.substring(r,i.length)}return i.indexOf("?")<0?i+="?":i.substr(i.length-1,1)!="&"&&i.substr(i.length-1,1)!="?"&&(i+="&"),i+("Filter="+t)}function ChangeSortType(n){var t=jQuery(n);McAjaxRequest("/WebPages/Extras/SessionStateApi.aspx","ChangeSort",t.val(),reloadPageCallback)}function SetViewToGrid(){McAjaxRequest("/WebPages/Extras/SessionStateApi.aspx","SetViewToGrid","",reloadPageCallback)}function SetViewToList(){McAjaxRequest("/WebPages/Extras/SessionStateApi.aspx","SetViewToList","",reloadPageCallback)}function RemoveAttributeValueFromLink(n,t){var i=new String(document.location.href),f,r,e,o,u;for(i=decodeURIComponent(i),f=new RegExp(t,"ig"),e=/[/^%~]/i;m=f.exec(i);)if(r=m.index,o=m.index+t.length,o>=i.length)break;else if(e.test(i.substr(r+t.length,1)))break;u="";i.substr(r-1,1)=="^"||i.substr(r+t.length,1)=="^"?(u=i.substr(r-1,1)==":"?i.replace(t+"^",""):i.replace("^"+t,""),document.location=encodeURI(u)):RemoveAttribute(i,n+":"+t)}function RemoveAttributeValue(n){var t=jQuery(n).attr("Filter"),i=new String(document.location.href);return RemoveAttribute(i,t)}function RemoveAttribute(n,t){var u=decodeURIComponent(n),i=u.replace(t,""),r;i.substring(i.length-1)=="|"&&(i=i.substring(0,i.length-1));r=i.indexOf("Filter=|");r>1&&(i=i.replace("|",""));i.substring(i.length-7)=="Filter="&&(i=i.substring(0,i.length-7));i.substring(i.length-1)=="&"&&(i=i.substring(0,i.length-1));i.substring(i.length-1)=="?"&&(i=i.substring(0,i.length-1));i=i.replace("||","|");document.location=encodeURI(i)}function addParameter(n,t,i,r){var s,e,u,h,o,f;if(n.indexOf("#")>0?(s=n.indexOf("#"),urlhash=n.substring(n.indexOf("#"),n.length)):(urlhash="",s=n.length),sourceUrl=n.substring(0,s),e=sourceUrl.split("?"),u="",e.length>1)for(h=e[1].split("&"),o=0;o<h.length;o++)f=h[o].split("="),!0&&f[0]==t||(u==""?u="?":u+="&",u+=f[0]+"="+(f[1]?f[1]:""));return u==""&&(u="?"),r?u="?"+t+"="+i+(u.length>1?"&"+u.substring(1):""):(u!==""&&u!="?"&&(u+="&"),u+=t+"="+(i?i:"")),e[0]+u+urlhash}function AddAttributeValueToQueryString(n){var t=document.location.href,i=CreateUrl(t,jQuery(n).val());window.location.href=encodeURI(i)}function AddAttributeValueToQueryStringFromLink(n,t){var r=document.location.href,i=encodeURI(CreateUrl(r,n));window.location.href=t?i.indexOf(keepFilterOpen)>=0?i:i+keepFilterOpen:i}function changePriceFilter(n,t){var r=jQuery("#slider-range-min"),i;r!=null&&r.val(n);i=jQuery("#slider-range-max");i!=null&&i.val(t)}function priceSliderChangeOnEnter(n){n.keyCode==13&&(priceSliderOnChange(),n.preventDefault())}function priceSliderOnChange(){var n=jQuery("#slider-range-min"),t=jQuery("#slider-range-max");n.length>0&&t.length>0&&jQuery("#slider-range").slider("option","values",[n[0].value,t[0].value])}function priceSliderDoUpdate(){var t=jQuery("#slider-range").slider("option","values"),i,n;t.length>1&&(i=document.location.href,n=addParameter(i,"minPrice",t[0],!1),n=addParameter(n,"maxPrice",t[1]),window.location.href=n)}function RemoveFilter(){var n=new String(document.location.href),t,u,r,i;n=n.replace(keepFilterOpen,"");t=n.indexOf("&Filter=",0);u=t>=0?1:0;t<0&&(t=n.indexOf("Filter=",0));r=n.indexOf("&",t+u);t>=0?(i=n.substring(0,t),r>0&&(i=i+n.substring(r,n.length-1)),document.location=i):location.reload(!0)}function ToggleOffAllAttributeValues(){var n=jQuery,t=n("#max-attributes"),i;t!=null&&(_max_attribute_values=Number(t.data("max"))+2);i=n("#AttributeListBox");i.find(".AttributeBox").each(function(){ToggleAttributeValues(this)})}function ToggleAttributeValues(n){var i=jQuery,t=_max_attribute_values,r=i(n);r[0].id.indexOf("PrdMnu")>=0&&(t=--t);r.children("div").each(function(n){n>=t&&i(this).toggle()})}function MoveElementToLocation(n,t){var i=jQuery("#"+n).detach(),r=jQuery("#"+t);i.css("display","none");r.append(i)}function MoveElementToNewLocation(n,t,i,r,u){var f=jQuery("#"+n).detach(),e=jQuery("#"+t),o=jQuery("#"+u);f.css("top",r+"px");f.css("left",i+"px");f.css("position","absolute");f.mouseleave(function(){MoveElementToLocation(n,u)});e.append(f)}function MoveToEndOfTextBox(n){var t=document.getElementById(n),i;jQuery(t).focus();t.setSelectionRange?(i=jQuery(t).val().length*2,t.setSelectionRange(i,i)):jQuery(t).val(jQuery(t).val());t.scrollTop=999999}function InformOfTooLowStockForExpiredProduct(n,t){alert(n);window.location=t}function SetButtonTextAfterInlineEdit(n,t,i){(i.length===0||i===" ")&&(i="<empty>");switch(t){case"button":jQuery("#"+n).attr("value",i);break;case"linkbutton":case"label":jQuery("#"+n).text(i);break;case"radiobutton":jQuery('[for="'+n+'"]').text(i);break;case"checkbox":jQuery('[for="'+n+'"]').text(i);jQuery('[for="'+n+'_ctl"]').text(i)}jQuery("#LanguageEditWindowContainer").hide()}function AddButtonEditStyle(){jQuery('[IsButtonInlineEdit="true"]').each(function(){var n=jQuery(this);n.css({outline:"orange dotted 2px"});(n.text().length===0||n.text()===" ")&&n.text("<empty>")})}function InitializeSlideshow(n,t,i,r,u,f,e,o,s,h,c){jQuery(function(){jQuery(".around_slides").addClass("Show");jQuery("#"+n).slides({play:t,pause:i,hoverPause:r,generateNextPrev:u,generatePagination:f,fadeSpeed:o,slideSpeed:s,effect:h,crossfade:c})})}function ShowCity(n){document.getElementById(n).style.textDecoration=="underline"?document.getElementById(n).style.textDecoration="none":(document.getElementById(n).style.textDecoration="underline",document.getElementById(n).style.color="#f04E23")}function reloadCKEditor(n){var t=CKEDITOR.instances[n];t&&t.destroy(!0);CKEDITOR.replace(n)}function loadCKEditor(n){$("textarea."+n).ckeditor()}function newItenInCartNotifier(){var n=jQuery("#NewItemInCartNotifier");n!=null&&(jQuery("body").append(n),n.fadeIn(1500).delay(900).fadeOut(1500))}function UpdateLink(n,t){document.getElementById(n).href=t}function KeepAlive(){jQuery.get("/WebUserControls/Publisher/Ping.ashx");var n=document.getElementById("PingTimer");n!=null&&(n.value==null||n.value=="")&&(n.value=setInterval(KeepAlive,2e4))}function StopKeepAlive(){var n=document.getElementById("PingTimer");n!=null&&n.value!=null&&n.value!=""}function AcquireFieldWidthForPreview(n){var i=document.getElementById("FieldWidthHidden"),t,r;i!=null&&(t=document.getElementById("Field_"+n),t!=null&&(r=jQuery(t),i.value=r.outerWidth(!0)+20))}function NavigateToSelectedPath(n,t){var i=document.getElementById(n),r;i!=null&&(r=t+i.options[i.selectedIndex].value,document.location=r)}function AddQtips(){for(var n=0;n<_qtip_ids.length;n++)jQuery("#"+_qtip_ids[n]).removeData("qtip").qtip({content:{text:_qtip_texts[n],title:{text:_qtip_titles[n],button:_qtip_showButtons[n]}},position:{my:_qtip_my[n],at:_qtip_at[n]},show:{event:_qtip_doShows[n],ready:_qtip_showWhenReady[n]},hide:{event:_qtip_doHides[n]},style:{classes:"ui-tooltip-shadow ui-tooltip-"+_qtip_styles[n]}})}function showTabPanel(n){var t="TabContent"+n,i="TabHeader"+n,r;jQuery("."+i).length==0&&(n=0,t="TabContent"+n,i="TabHeader"+n);jQuery(".TabContent").each(function(){jQuery(this).hide()});jQuery("."+t).show();jQuery(".TabHeaderActive").removeClass("TabHeaderActive");jQuery("."+i).addClass("TabHeaderActive");window.StorageService.localStorage.setItem("lastOpenTab",n);r=jQuery("img.lazy");r!=null&&(jQuery("."+t+" .LayoutVersion2").each(function(){updateLayout(jQuery(this))}),r.lazyload({threshold:1e4}))}function showLastUsedTab(){var n=window.StorageService.localStorage.getItem("lastOpenTab");n!==null&&showTabPanel(n)}function openSelectedMenu(n){hasTouch()&&(adjustMenuPosition(n),openSelectedMenuByHover(n))}function hasTouch(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}function adjustMenuPositionInPublishMode(n){adjustMenuPosition(n);var t=jQuery(n),i=t.offset(),r=jQuery("#menu li:not(.header-nav-li)").last().offset(),u=0+t.height()+(r.top-i.top),f=jQuery(jQuery(n).find(".dropdown_columns")[0]);f.css("top",u+"px")}function setupMegaMenuNormalMode(){jQuery("#menu li").hover(function(){var n=this;adjustMenuPosition(n);window.mytimeout=setTimeout(function(){openSelectedMenuByHover(n);updateLayoutVersion2()},200)},function(){var n=this;clearTimeout(window.mytimeout);closeSelectedMenu(n)})}function adjustMenuPosition(n){var i=document.getElementById("menu"),r=jQuery(i).offset(),u=jQuery(n).offset(),f=0-(u.left-r.left),e=jQuery(jQuery(n).find(".dropdown_columns")[0]),t;e.css("left",f+"px");t=jQuery("img.lazy");t!=null&&t.lazyload()}function openSelectedMenuByHover(n){var t=jQuery(jQuery(n).find(".dropdown_columns")[0]);t.show()}function closeSelectedMenu(n){var t=jQuery(jQuery(n).find(".dropdown_columns")[0]);t.hide()}function closeAllMenues(){for(var t,r=document.getElementById("menu"),i=r.getElementsByTagName("li"),n=0;n<i.length;n++)t=i[n].getElementsByTagName("div"),jQuery(t[0]).removeClass("openMenu"),jQuery(t[0]).hide()}function hideMenu(){closeAllMenues();jQuery("#menuOverlay").hide()}function LoadLayoutEditorV2(n){var t=jQuery("#LayoutEditDialog");t.length?t.html(""):(t=jQuery("<div id='LayoutEditDialog'><\/div>"),t.dialog({width:744,appendTo:"body"}));t.load("/webpages/adbuilder/layoutbuilder.aspx?layoutId="+n,function(){t.dialog("open")})}function openSmallCart(n){var t=jQuery("#"+n+""),i=jQuery("#cartOverlay");t.fadeIn(200);i.show()}function closeSmallCart(n){var t=jQuery("#"+n+""),i=jQuery("#cartOverlay");t.fadeOut();i.hide()}function updateSmallCartSummary(n,t){var i=jQuery("#cartCounter"),r=jQuery("#cartSummary");n>0&&(i.html("("+n+")"),r.html(t))}function showProdInfoOrdrebok(n){var t=document.getElementById("ordrebok-bottom-bar-close");t.style.display="inline";n.style.display="none";jQuery("#ordrebok-prodinfo").animateAuto("height",700,!1)}function hideProdInfoOrdrebok(n){var t=document.getElementById("ordrebok-bottom-bar-open");t.style.display="inline";n.style.display="none";jQuery("#ordrebok-prodinfo").animateAuto("height",700,!0)}function validateTextBoxAntall(n,t){n.focus(function(n){var t=jQuery(n.currentTarget);t.data("tmpValue",t.val());t.val("");hidePackageSizeWarning()});n.blur(function(n){var t=jQuery(n.currentTarget);t.val()==""&&t.val(t.data("tmpValue"))});n.keypress(function(n){return!t&&n.which!=13&&n.which!=8&&n.which!=0&&(n.which<48||n.which>57)?(jQuery(n.currentTarget).next(".text-antall-error-msg").html("[0-9]").show().fadeOut("slow"),!1):t&&n.which!=13&&n.which!=8&&n.which!=0&&n.which!=44&&n.which!=46&&(n.which<48||n.which>57)?(jQuery(n.currentTarget).next(".text-antall-error-msg").html("[0-9]").show().fadeOut("slow"),!1):n.which==13?(this.blur(),!1):void 0})}function allowDrop(n){n.preventDefault()}function addHighlight(n){var t=jQuery(n);t!=null&&(t.addClass("drop-target-active"),t.find("table").addClass("drop-target-active"))}function removeHighlight(n){var t=jQuery(n);t!=null&&(t.removeClass("drop-target-active"),t.find("table").removeClass("drop-target-active"))}function drag(n,t,i){var r=""+t+","+i;n.dataTransfer.setData("Text",r);n.dataTransfer.setData("sourceElementId",t);n.dataTransfer.setData("sourceWebPubFieldId",i)}function dragToCreateNewElement(n,t){n.dataTransfer.setData("Text",t)}function dropRight(n,t,i,r,u){dropToTarget(n,t,i,r,"right",u)}function dropLeft(n,t,i,r,u){dropToTarget(n,t,i,r,"left",u)}function dropOnArea(n,t,i){dropToTarget(n,-1,-1,t,"notset",i)}function dropOnField(n,t,i,r){dropToTarget(n,-1,t,i,"notset",r)}function dropToTarget(n,t,i,r,u,f){var c,e,o,s,h,l;n.preventDefault();c=n.dataTransfer.getData("Text");e=c.split(",");e.length>=2?(o=e[0],s=e[1],h=-1):(h=c,o=-1,s=-1);l=jQuery("#McCommonControlsInUse");l.length>0?Gaia.Control.callPageMethod("McCmn.AcPub.MoveElement",[t,i,r,u,s,o,h,f],null):Gaia.Control.callPageMethod("ActivatePublisher1.MoveElement",[t,i,r,u,s,o,h,f],null)}function registerBackgroundClick(n){var t="http://",i="https://";n.substring(0,t.length)!==t&&n.substring(0,i.length)!==i&&(n=t+n);jQuery("body").click(function(t){(jQuery(t.target).attr("id")=="aspnetForm"||jQuery(t.target)[0]==jQuery("#aspnetForm .row")[0])&&window.open(n,"_blank")})}function getSumOfRow(n){var t=0;return n.each(function(n,i){t+=parseInt(jQuery(i).val())}),t}function goBack(){history.go(-1)}function loadModule(n,t,i,r,u){n.instances==undefined&&(n.instances=[]);var f=new n.vm(i);n.instances[t]=f;f.load(r,u);ko.applyBindings(f,document.getElementById(i))}function showPackageSizeWarning(){var n=jQuery(".qty-changed-warning");n.length&&n.show()}function hidePackageSizeWarning(){var n=jQuery(".qty-changed-warning");n.length&&n.hide()}var mcWeb,CKEDITOR_BASEPATH,PageLoad,publisherOverlayTimer,oldPasswordTextBoxID,StdAntAttr,reloadPageCallback,keepFilterOpen,_max_attribute_values,Demonstrare2ImageViewer;!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 br(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in ee)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function it(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[pr.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return!u(n)&&!tt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(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-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function uu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ut(n){return n}function fi(n){throw n;}function fu(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function ce(n,t){return t.toUpperCase()}function y(n){return n.replace(se,"ms-").replace(he,ce)}function pt(){this.expando=i.expando+pt.uid++}function ou(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:le.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function hu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&wt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function et(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&kt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=di[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),di[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function gi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function vu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===it(e))i.merge(y,e.nodeType?[e]:e);else if(au.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(cu.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=ft(e),o=s(c.appendChild(e),"script"),w&&gi(o),r)for(v=0;e=o[v++];)lu.test(e.type||"")&&r.push(e);return c}function ot(){return!0}function st(){return!1}function we(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function nr(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)nr(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)),!1===f)f=st;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=b.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ot)}function pu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function no(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function to(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wu(n,t){var u,c,f,s,h,l,a,e;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),e=s.events))for(f in delete h.handle,h.events={},e)for(u=0,c=e[f].length;u<c;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ht(n,t,f,o){t=yr.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||1<y&&"string"==typeof p&&!e.checkClone&&de.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ht(r,t,f,o)});if(y&&(w=(a=vu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=w),w||o)){for(v=(l=i.map(s(a,"script"),no)).length;c<y;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=l[l.length-1].ownerDocument,i.map(l,to),c=0;c<v;c++)h=l[c],lu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")}):br(h.textContent.replace(ge,""),h,b))}return n}function bu(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(s(u)),u.parentNode&&(r&&ft(u)&&gi(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,f,u=n.style;return(r=r||ci(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||ft(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&tr.test(f)&&io.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function ku(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function ir(n){var t=i.cssProps[n]||nf[n];return t||(n in gu?n:nf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=du.length;t--;)if((n=du[t]+i)in gu)return n}(n)||n)}function uf(n,t,i){var r=wt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function rr(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+w[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+w[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),"padding"!==r?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function ff(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(tr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+rr(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function ur(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ur):n.setTimeout(ur,i.fx.interval),i.fx.tick())}function hf(){return n.setTimeout(function(){ct=void 0}),ct=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=w[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function cf(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=ct||hf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ct||hf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],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])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,cf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){return(n.match(l)||[]).join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function fr(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function hr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):hr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==it(t))u(n,t);else for(f in t)hr(n+"["+f+"]",t[f],r,u)}function df(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function gf(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===cr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ar(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}var d=[],f=n.document,ue=Object.getPrototypeOf,b=d.slice,yr=d.concat,yi=d.push,ii=d.indexOf,ri={},pr=ri.toString,ui=ri.hasOwnProperty,wr=ui.toString,fe=wr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},tt=function(n){return null!=n&&n===n.window},ee={type:!0,src:!0,nonce:!0,noModule:!0},kr="3.4.1",i=function(n,t){return new i.fn.init(n,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,k,wi,nu,tu,iu,ru,l,eu,ei,yt,kt,ki,di,gt,si,au,ct,li,lt,ef,of,sf,lf,at,af,vf,yf,er,or,ne,vt,te,vr,vi,ie,re;i.fn=i.prototype={jquery:kr,constructor:i,length:0,toArray:function(){return b.call(this)},get:function(n){return null==n?b.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(b.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(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:d.sort,splice:d.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(kr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==pr.call(n))&&(!(t=ue(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&wr.call(i)===fe)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n,t){br(n,{nonce:t&&t.nonce})},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},trim:function(n){return null==n?"":(n+"").replace(oe,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.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=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return yr.apply([],f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=d[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ri["[object "+t+"]"]=t.toLowerCase()});k=function(n){function u(n,t,r,u){var s,p,l,v,w,d,g,y=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==a&&(w=ar.exec(n)))if(s=w[1]){if(9===a){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(y&&(l=y.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(w[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=w[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(g=n,y=t,1===a&&er.test(n)){for((v=t.getAttribute("id"))?v=v.replace(yi,pi):t.setAttribute("id",v=f),p=(d=ft(n)).length;p--;)d[p]="#"+v+" "+pt(d[p]);g=d.join(",");y=ti.test(n)&&ri(t.parentNode)||t}try{return k.apply(r,y.querySelectorAll(g)),r}catch(t){lt(n,!0)}finally{v===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){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 bi(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 yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function ki(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(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 di(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=gi++;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(l=(a=t[f]||(t[f]={}))[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)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(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,e,o){return r&&!r[f]&&(r=fi(r)),e&&!e[f]&&(e=fi(e,o)),l(function(f,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=f||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!f&&t?d:bt(d,w,n,s,h),c=i?e||(f?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(f){if(e||n){if(e){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);e(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=e?nt(f,v):w[l])&&(f[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),e?e(null,o,c,h):k.apply(o,c)})}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=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},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=[wt(ui(e),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(e),1<i&&pt(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&&pt(n))}e.push(u)}return ui(e)}var rt,e,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,gi=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},nr={}.hasOwnProperty,g=[],tr=g.pop,ir=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="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])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",rr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ur=new RegExp("^"+r+"*,"+r+"*"),fr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),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("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,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)},yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},wi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){ir.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in e=u.support={},oi=u.isXML=function(n){var i=n.namespaceURI,t=(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement&&(s=(i=l).documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",wi,!1):u.attachEvent&&u.attachEvent("onunload",wi)),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 r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}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|"+gt+")");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("!=",ni)}),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},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!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 bi(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?bi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0}),i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),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(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},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&&nr.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(yi,pi)},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(dt),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&&or.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&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(rr," ")+" ").indexOf(i):"|="===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,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):1<r.length?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(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 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return sr.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())===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:ki(!1),disabled:ki(!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,!0===n.selected},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 lr.test(n.nodeName)},input:function(n){return cr.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:t<i?t:i;0<=--r;)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})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return di.prototype=t.filters=t.pseudos,t.setFilters=new di,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;){for(o in e&&!(f=ur.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=fr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),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)},kt=u.compile=function(n,r){var s,c,a,o,y,p,w=[],d=[],e=li[n+" "];if(!e){for(r||(r=ft(n)),s=r.length;s--;)(e=ei(r[s]))[f]?w.push(e):d.push(e);(e=li(n,(c=d,o=0<(a=w).length,y=0<c.length,p=function(n,r,f,e,s){var l,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r===i||r||s);p!==ft&&null!=(l=rt[p]);p++){if(y&&l){for(nt=0,r||l.ownerDocument===i||(b(l),f=!h);d=c[nt++];)if(d(l,r||i,f)){e.push(l);break}s&&(v=ut)}o&&((l=!d&&l)&&g--,n&&tt.push(l))}if(g+=p,o&&p!==g){for(nt=0;d=a[nt++];)d(tt,w,r,f);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=tr.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+a.length&&u.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?l(p):p))).selector=n}return e},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(2<(f=s[0]=s[0].slice(0)).length&&"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]))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),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(dt).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(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=k;i.expr=k.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=k.uniqueSort;i.text=k.getText;i.isXMLDoc=k.isXML;i.contains=k.contains;i.escapeSelector=k.escape;var rt=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},dr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},gr=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;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 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&gr.test(n)?i(n):n||[],!1).length}});tu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||nu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:tu.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;nu=i(f);iu=/^(?:parents|prev(?:Until|All))/;ru={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(!gr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.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 rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return uu(n,"nextSibling")},prev:function(n){return uu(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return dr((n.parentNode||{}).firstChild,n)},children:function(n){return dr(n.firstChild)},contents:function(n){return"undefined"!=typeof n.contentDocument?n.contentDocument:(c(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)),1<this.length&&(ru[n]||i.uniqueSort(f),iu.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==it(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["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"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(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,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,fi,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].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}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=b.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?b.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(fu(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)fu(f[t],s(t),r.reject);return r.promise()}});eu=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&eu.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===it(r))for(h in e=!0,r)p(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},se=/^-ms-/,he=/-([a-z])/g;yt=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};pt.uid=1;pt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},yt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(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(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).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 pt,o=new pt,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.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 f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),ou(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=ou(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.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);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},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.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var su=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=new RegExp("^(?:([+-])=|)("+su+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],bt=f.documentElement,ft=function(n){return i.contains(n.ownerDocument,n)},ve={composed:!0};bt.getRootNode&&(ft=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ve)===n.ownerDocument});kt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&ft(n)&&"none"===i.css(n,"display")};ki=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];for(u in f=i.apply(n,r||[]),t)n.style[u]=e[u];return f};di={};i.fn.extend({show:function(){return et(this,!0)},hide:function(){return et(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 dt=/^(?:checkbox|radio)$/i,cu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,lu=/^$|^module$|\/(?:java|ecma)script/i,h={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,"",""]};h.optgroup=h.option;h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;au=/<|&#?\w+;/;gt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");gt.appendChild(si);e.checkClone=gt.cloneNode(!0).cloneNode(!0).lastChild.checked;gt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!gt.cloneNode(!0).lastChild.defaultValue;var ye=/^key/,pe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,v,k,y,w,h,s,c,o,b,d,a=r.get(n);if(a)for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(bt,e),u.guid||(u.guid=i.guid++),(y=a.events)||(y=a.events={}),(v=a.handle)||(v=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=yu.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=y[o])||((c=y[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,v)||n.addEventListener&&n.addEventListener(o,v)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=yu.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||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--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||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 u,h,c,e,f,l,t=i.event.fix(n),s=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(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},click:{setup:function(n){var t=this||n;return dt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ot),!1},trigger:function(n){var t=this||n;return dt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return dt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"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){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ot:st,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||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:st,isPropagationStopped:st,isImmediatePropagationStopped:st,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ot;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ot;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ot;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,code:!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&&ye.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&pe.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,we),!1},trigger:function(){return hi(this,n),!0},delegateType:t}});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,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return nr(this,n,t,i,r)},one:function(n,t,i,r){return nr(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!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=st),this.each(function(){i.event.remove(this,n,r,t)})}});var be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ke=/<script|<style|<link/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,ge=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(be,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=ft(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&dt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)wu(o[u],f[u]);else wu(n,h);return 0<(f=s(h,"script")).length&&gi(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(yt(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[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return bu(this,n,!0)},remove:function(n){return bu(this,n)},text:function(n){return p(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 ht(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pu(this,n).appendChild(n)})},prepend:function(){return ht(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ht(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ht(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(s(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 p(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&&!ke.test(n)&&!h[(cu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ht(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(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),yi.apply(f,u.get());return this.pushStack(f)}});var tr=new RegExp("^("+su+")(?!px)[a-z%]+$","i"),ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},io=new RegExp(w.join("|"),"i");!function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";bt.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s="1%"!==i.top;a=12===u(i.marginLeft);t.style.right="60%";l=36===u(i.right);h=36===u(i.width);t.style.position="absolute";c=12===u(t.offsetWidth/3);bt.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))}();var du=["Webkit","Moz","ms"],gu=f.createElement("div").style,nf={};var ro=/^(none|table(?!-c[ea]).+)/,tf=/^--/,uo={position:"absolute",visibility:"hidden",display:"block"},rf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=tf.test(t),s=n.style;if(l||(t=ir(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=wt.exec(r))&&f[1]&&(r=hu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return tf.test(t)||(t=ir(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in rf&&(f=rf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!ro.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ff(n,t,u):ki(n,uo,function(){return ff(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?rr(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-rr(n,t,"border",!1,f)-.5)),o&&(s=wt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),uf(0,r,o)}}});i.cssHooks.marginLeft=ku(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-ki(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+w[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=uf)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(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,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,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=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.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):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.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,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[ir(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.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=a.prototype.init;i.fx.step={};of=/^(?:toggle|show|hide)$/;sf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return hu(i.elem,n,wt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).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()})})),t)if(y=t[f],of.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((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(et([n],!0),o=n.style.display||o,l=i.css(n,"display"),et([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&et([n],!0),v.done(function(){for(f in a||et([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=cf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};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=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?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&&!1!==n&&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&&sf.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!1!==n&&(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(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("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(ct=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ct=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,ur())};i.fx.stop=function(){li=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,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};lt=f.createElement("input");ef=f.createElement("select").appendChild(f.createElement("option"));lt.type="checkbox";e.checkOn=""!==lt.value;e.optSelected=ef.selected;(lt=f.createElement("input")).value="t";lt.type="radio";e.radioValue="t"===lt.value;at=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,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)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?lf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(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(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});lf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=at[t]||i.find.attr;at[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=at[u],at[u]=f,f=null!=r(n,t,i)?u:null,at[u]=e),f}});af=/^(?:input|select|textarea|button)$/i;vf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,1<arguments.length)},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):af.test(n.nodeName)||vf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.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,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if((o=fr(n)).length)while(t=this[c++])if(f=nt(t),r=1===t.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=g(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if((o=fr(n)).length)while(r=this[c++])if(f=nt(r),t=1===r.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)while(-1<t.indexOf(" "+e+" "))t=t.replace(" "+e+" "," ");f!==(h=g(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=fr(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=nt(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+g(nt(t))+" ").indexOf(i))return!0;return!1}});yf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?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()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(yf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:g(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]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;er=/^(?:focusinfocus|focusoutblur)$/;or=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!er.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,er.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&yt(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!yt(o)||v&&u(o[h])&&!tt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,or),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,or),i.event.triggered=void 0,l&&(o[v]=l)),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)}});e.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 ti=n.location,pf=Date.now(),sr=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var fo=/\[\]$/,wf=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)hr(r,n[r],t,e);return f.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")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!dt.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(wf,"\r\n")}}):{name:t.name,value:r.replace(wf,"\r\n")}}).get()}});var so=/%20/g,ho=/#.*$/,co=/([?&])_=[^&]*/,lo=/^(.*?):[ \t]*([^\r\n]*)$/gm,ao=/^(?:GET|HEAD)$/,vo=/^\/\//,bf={},cr={},kf="*/".concat("*"),lr=f.createElement("a");return lr.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kf,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?ar(ar(n,i.ajaxSettings),t):ar(i.ajaxSettings,n)},ajaxPrefilter:df(bf),ajaxTransport:df(cr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(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]}(u,e,f)),p=function(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]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=lo.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},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&&(u.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),u.url=((t||u.url||ti.href)+"").replace(vo,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=lr.protocol+"//"+lr.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),gf(bf,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!ao.test(u.type),o=u.url.replace(ho,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(so,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(sr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(co,"$1"),p=(sr.test(o)?"&":"?")+"_="+pf+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+kf+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=gf(cr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}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,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n,t){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(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 u(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=u(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){}},ne={0:200,1223:204},vt=i.ajaxSettings.xhr(),e.cors=!!vt&&"withCredentials"in vt,e.ajax=vt=!!vt,i.ajaxTransport(function(t){var i,r;if(e.cors||vt&&!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];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(ne[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=e.ontimeout=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(u){if(i)throw u;}},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){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).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)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),vr=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=vr.pop()||i.expando+"_"+pf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(sr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,vr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((te=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===te.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=vu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[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 v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},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,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||bt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=ku(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),tr.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||(!0===f||!0===e?"margin":"border");return p(this,function(t,r,f){var e;return tt(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.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 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),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.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=b.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(b.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),ie=n.jQuery,re=n.$,i.noConflict=function(t){return n.$===i&&(n.$=re),t&&n.jQuery===i&&(n.jQuery=ie),i},t||(n.jQuery=n.$=i),i});void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(n){"function"==typeof define&&define.amd?define(["jquery"],window,n):"object"==typeof module&&module.exports?module.exports=n(require("jquery"),window):n(jQuery,window)}(function(n,t){"use strict";function i(i){var r=t.console;e[i]||(e[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function f(n,t,r,u){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){return i(u),r},set:function(n){i(u);r=n}})}function r(n,t,r,u){n[t]=function(){return i(u),r.apply(this,arguments)}}var e,s,l,h,u,a,v,y,p,w,c,b;n.migrateVersion="3.0.1",function(){t.console&&t.console.log&&(n&&!/^[12]\./.test(n.fn.jquery)||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),n.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(n.migrateMute?"":" with logging active")+", version "+n.migrateVersion))}();e={};n.migrateWarnings=[];void 0===n.migrateTrace&&(n.migrateTrace=!0);n.migrateReset=function(){e={};n.migrateWarnings.length=0};"BackCompat"===t.document.compatMode&&i("jQuery is not compatible with Quirks Mode");var k=n.fn.init,d=n.isNumeric,o=n.find,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,nt=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;n.fn.init=function(n){var t=Array.prototype.slice.call(arguments);return"string"==typeof n&&"#"===n&&(i("jQuery( '#' ) is not a valid selector"),t[0]=[]),k.apply(this,t)};n.fn.init.prototype=n.fn;n.find=function(n){var r=Array.prototype.slice.call(arguments);if("string"==typeof n&&g.test(n))try{t.document.querySelector(n)}catch(u){n=n.replace(nt,function(n,t,i,r){return"["+t+i+'"'+r+'"]'});try{t.document.querySelector(n);i("Attribute selector with '#' must be quoted: "+r[0]);r[0]=n}catch(n){i("Attribute selector with '#' was not fixed: "+r[0])}}return o.apply(this,r)};for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n.find[s]=o[s]);n.fn.size=function(){return i("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length};n.parseJSON=function(){return i("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)};n.isNumeric=function(t){var u=d(t),r=function(t){var i=t&&t.toString();return!n.isArray(t)&&i-parseFloat(i)+1>=0}(t);return u!==r&&i("jQuery.isNumeric() should not be called on constructed objects"),r};r(n,"holdReady",n.holdReady,"jQuery.holdReady is deprecated");r(n,"unique",n.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort");f(n.expr,"filters",n.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");f(n.expr,":",n.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");l=n.ajax;n.ajax=function(){var n=l.apply(this,arguments);return n.promise&&(r(n,"success",n.done,"jQXHR.success is deprecated and removed"),r(n,"error",n.fail,"jQXHR.error is deprecated and removed"),r(n,"complete",n.always,"jQXHR.complete is deprecated and removed")),n};var tt=n.fn.removeAttr,it=n.fn.toggleClass,rt=/\S+/g;n.fn.removeAttr=function(t){var r=this;return n.each(t.match(rt),function(t,u){n.expr.match.bool.test(u)&&(i("jQuery.fn.removeAttr no longer sets boolean properties: "+u),r.prop(u,!1))}),tt.apply(this,arguments)};n.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?it.apply(this,arguments):(i("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var i=this.getAttribute&&this.getAttribute("class")||"";i&&n.data(this,"__className__",i);this.setAttribute&&this.setAttribute("class",i||!1===t?"":n.data(this,"__className__")||"")}))};h=!1;n.swap&&n.each(["height","width","reliableMarginRight"],function(t,i){var r=n.cssHooks[i]&&n.cssHooks[i].get;r&&(n.cssHooks[i].get=function(){var n;return h=!0,n=r.apply(this,arguments),h=!1,n})});n.swap=function(n,t,r,u){var e,f,o={};h||i("jQuery.swap() is undocumented and deprecated");for(f in t)o[f]=n.style[f],n.style[f]=t[f];e=r.apply(n,u||[]);for(f in t)n.style[f]=o[f];return e};u=n.data;n.data=function(t,r,f){var o,s,e;if(r&&"object"==typeof r&&2===arguments.length){o=n.hasData(t)&&u.call(this,t);s={};for(e in r)e!==n.camelCase(e)?(i("jQuery.data() always sets/gets camelCased names: "+e),o[e]=r[e]):s[e]=r[e];return u.call(this,t,s),r}return r&&"string"==typeof r&&r!==n.camelCase(r)&&(o=n.hasData(t)&&u.call(this,t))&&r in o?(i("jQuery.data() always sets/gets camelCased names: "+r),arguments.length>2&&(o[r]=f),o[r]):u.apply(this,arguments)};a=n.Tween.prototype.run;v=function(n){return n};n.Tween.prototype.run=function(){n.easing[this.easing].length>1&&(i("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),n.easing[this.easing]=v);a.apply(this,arguments)};n.fx.interval=n.fx.interval||13;t.requestAnimationFrame&&f(n.fx,"interval",n.fx.interval,"jQuery.fx.interval is deprecated");var ut=n.fn.load,ft=n.event.add,et=n.event.fix;return n.event.props=[],n.event.fixHooks={},f(n.event.props,"concat",n.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),n.event.fix=function(t){var f,e=t.type,u=this.fixHooks[e],r=n.event.props;if(r.length)for(i("jQuery.event.props are deprecated and removed: "+r.join());r.length;)n.event.addProp(r.pop());if(u&&!u._migrated_&&(u._migrated_=!0,i("jQuery.event.fixHooks are deprecated and removed: "+e),(r=u.props)&&r.length))for(;r.length;)n.event.addProp(r.pop());return f=et.call(this,t),u&&u.filter?u.filter(f,t):f},n.event.add=function(n,r){return n===t&&"load"===r&&"complete"===t.document.readyState&&i("jQuery(window).on('load'...) called after load event occurred"),ft.apply(this,arguments)},n.each(["load","unload","error"],function(t,r){n.fn[r]=function(){var n=Array.prototype.slice.call(arguments,0);return"load"===r&&"string"==typeof n[0]?ut.apply(this,n):(i("jQuery.fn."+r+"() is deprecated"),n.splice(0,0,r),arguments.length?this.on.apply(this,n):(this.triggerHandler.apply(this,n),this))}}),n.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(t,r){n.fn[r]=function(n,t){return i("jQuery.fn."+r+"() event shorthand is deprecated"),arguments.length>0?this.on(r,null,n,t):this.trigger(r)}}),n(function(){n(t.document).triggerHandler("ready")}),n.event.special.ready={setup:function(){this===t.document&&i("'ready' event is deprecated")}},n.fn.extend({bind:function(n,t,r){return i("jQuery.fn.bind() is deprecated"),this.on(n,null,t,r)},unbind:function(n,t){return i("jQuery.fn.unbind() is deprecated"),this.off(n,null,t)},delegate:function(n,t,r,u){return i("jQuery.fn.delegate() is deprecated"),this.on(t,n,r,u)},undelegate:function(n,t,r){return i("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(n,"**"):this.off(t,n||"**",r)},hover:function(n,t){return i("jQuery.fn.hover() is deprecated"),this.on("mouseenter",n).on("mouseleave",t||n)}}),y=n.fn.offset,n.fn.offset=function(){var u,r=this[0],f={top:0,left:0};return r&&r.nodeType?(u=(r.ownerDocument||t.document).documentElement,n.contains(u,r)?y.apply(this,arguments):(i("jQuery.fn.offset() requires an element connected to a document"),f)):(i("jQuery.fn.offset() requires a valid DOM element"),f)},p=n.param,n.param=function(t,r){var u=n.ajaxSettings&&n.ajaxSettings.traditional;return void 0===r&&u&&(i("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),r=u),p.call(this,t,r)},w=n.fn.andSelf||n.fn.addBack,n.fn.andSelf=function(){return i("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),w.apply(this,arguments)},c=n.Deferred,b=[["resolve","done",n.Callbacks("once memory"),n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory"),n.Callbacks("memory")]],n.Deferred=function(t){var r=c(),u=r.promise();return r.pipe=u.pipe=function(){var t=arguments;return i("deferred.pipe() is deprecated"),n.Deferred(function(i){n.each(b,function(f,e){var o=n.isFunction(t[f])&&t[f];r[e[1]](function(){var t=o&&o.apply(this,arguments);t&&n.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[e[0]+"With"](this===u?i.promise():this,o?[t]:arguments)})});t=null}).promise()},t&&t.call(r,r),r},n.Deferred.exceptionHook=c.exceptionHook,n}),function(n,t,i,r){var u=n(t);n.fn.lazyload=function(f){function s(){var t=0;o.each(function(){var i=n(this);if((!e.skip_invisible||i.is(":visible"))&&!n.abovethetop(this,e)&&!n.leftofbegin(this,e))if(n.belowthefold(this,e)||n.rightoffold(this,e)){if(++t>e.failure_limit)return!1}else i.trigger("appear"),t=0})}var o=this,h,e={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(r!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),r!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),n.extend(e,f)),h=e.container===r||e.container===t?u:n(e.container),0===e.event.indexOf("scroll")&&h.bind(e.event,function(){return s()}),this.each(function(){var i=this,t=n(i);i.loaded=!1;(t.attr("src")===r||t.attr("src")===!1)&&t.is("img")&&t.attr("src",e.placeholder);t.one("appear",function(){if(!this.loaded){if(e.appear){var r=o.length;e.appear.call(i,r,e)}n("<img />").bind("load",function(){var r=t.attr("data-"+e.data_attribute),u,f;t.hide();t.is("img")?t.attr("src",r):t.css("background-image","url('"+r+"')");t[e.effect](e.effect_speed);i.loaded=!0;u=n.grep(o,function(n){return!n.loaded});o=n(u);e.load&&(f=o.length,e.load.call(i,f,e))}).attr("src",t.attr("data-"+e.data_attribute))}});0!==e.event.indexOf("scroll")&&t.bind(e.event,function(){i.loaded||t.trigger("appear")})}),u.bind("resize",function(){s()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&u.bind("pageshow",function(t){t!=null&&t.originalEvent!=null&&t.originalEvent.persisted&&o.each(function(){n(this).trigger("appear")})}),n(i).ready(function(){s()}),this};n.belowthefold=function(i,f){var e;return e=f.container===r||f.container===t?(t.innerHeight?t.innerHeight:u.height())+u.scrollTop():n(f.container).offset().top+n(f.container).height(),e<=n(i).offset().top-f.threshold};n.rightoffold=function(i,f){var e;return e=f.container===r||f.container===t?u.width()+u.scrollLeft():n(f.container).offset().left+n(f.container).width(),e<=n(i).offset().left-f.threshold};n.abovethetop=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollTop():n(f.container).offset().top,e>=n(i).offset().top+f.threshold+n(i).height()};n.leftofbegin=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollLeft():n(f.container).offset().left,e>=n(i).offset().left+f.threshold+n(i).width()};n.inviewport=function(t,i){return!n.rightoffold(t,i)&&!n.leftofbegin(t,i)&&!n.belowthefold(t,i)&&!n.abovethetop(t,i)};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return n.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!n.rightoffold(t,{threshold:0})},"in-viewport":function(t){return n.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return n.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!n.rightoffold(t,{threshold:0})}})}(jQuery,window,document),function(){(function(n){var r=this||eval("this"),t=r.document,f=r.navigator,i=r.jQuery,u=r.JSON;(function(n){"function"==typeof define&&define.amd?define(["exports","require"],n):"object"==typeof exports&&"object"==typeof module?n(module.exports||exports):n(r.ko={})})(function(e,o){function b(n,t){return null===n||typeof n in nt?n===t:!1}function tt(t,i){var r;return function(){r||(r=s.a.setTimeout(function(){r=n;t()},i))}}function it(n,t){var i;return function(){clearTimeout(i);i=s.a.setTimeout(n,t)}}function rt(n,t){t&&t!==v?"beforeChange"===t?this.Ob(n):this.Ja(n,t):this.Pb(n)}function ut(n,t){null!==t&&t.k&&t.k()}function ft(n,t){var i=this.Mc,r=i[h];r.T||(this.ob&&this.Oa[t]?(i.Sb(t,n,this.Oa[t]),this.Oa[t]=null,--this.ob):r.s[t]||i.Sb(t,n,r.t?{$:n}:i.yc(n)),n.Ha&&n.Hc())}function k(n,t,i,r){s.d[n]={init:function(n,u,f,e,o){var c,h;return s.m(function(){var l=u(),f=s.a.c(l),f=!i!=!f,e=!h;(e||t||f!==c)&&(e&&s.xa.Ca()&&(h=s.a.wa(s.f.childNodes(n),!0)),f?(e||s.f.fa(n,s.a.wa(h)),s.hb(r?r(o,l):o,n)):s.f.za(n),c=f)},null,{i:n}),{controlsDescendantBindings:!0}}};s.h.va[n]=!1;s.f.aa[n]=!0}var s="undefined"!=typeof e?e:{},nt,v,l,y,a,p,h,d,g,w;s.b=function(n,t){for(var i=n.split("."),r=s,u=0;u<i.length-1;u++)r=r[i[u]];r[i[i.length-1]]=t};s.H=function(n,t,i){n[t]=i};s.version="3.4.2";s.b("version",s.version);s.options={deferUpdates:!1,useOnlyNativeEvents:!1};s.a=function(){function o(n,t){for(var i in n)n.hasOwnProperty(i)&&t(i,n[i])}function l(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function a(n,t){return n.__proto__=t,n}function v(n,t,i,r){var u=n[t].match(c)||[];s.a.r(i.match(c),function(n){s.a.ra(u,n,r)});n[t]=u.join(" ")}var y={__proto__:[]}instanceof Array,w="function"==typeof Symbol,h={},p={};h[f&&/Firefox\/2/i.test(f.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"];h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" ");o(h,function(n,t){if(t.length)for(var i=0,r=t.length;i<r;i++)p[t[i]]=n});var b={propertychange:!0},e=t&&function(){for(var i=3,r=t.createElement("div"),u=r.getElementsByTagName("i");r.innerHTML="<!--[if gt IE "+ ++i+"]><i><\/i><![endif]-->",u[0];);return 4<i?i:n}(),c=/\S+/g;return{gc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],r:function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i],i)},o:function(n,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(n,t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},Vb:function(n,t,i){for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r],r))return n[r];return null},Na:function(n,t){var i=s.a.o(n,t);0<i?n.splice(i,1):0===i&&n.shift()},Wb:function(n){n=n||[];for(var i=[],t=0,r=n.length;t<r;t++)0>s.a.o(i,n[t])&&i.push(n[t]);return i},ib:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)r.push(t(n[i],i));return r},Ma:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)t(n[i],i)&&r.push(n[i]);return r},ta:function(n,t){if(t instanceof Array)n.push.apply(n,t);else for(var i=0,r=t.length;i<r;i++)n.push(t[i]);return n},ra:function(n,t,i){var r=s.a.o(s.a.Bb(n),t);0>r?i&&n.push(t):i||n.splice(r,1)},la:y,extend:l,$a:a,ab:y?a:l,D:o,Ea:function(n,t){if(!n)return n;var r={};for(var i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i],i,n));return r},rb:function(n){for(;n.firstChild;)s.removeNode(n.firstChild)},nc:function(n){n=s.a.W(n);for(var r=(n[0]&&n[0].ownerDocument||t).createElement("div"),i=0,u=n.length;i<u;i++)r.appendChild(s.ba(n[i]));return r},wa:function(n,t){for(var r,i=0,f=n.length,u=[];i<f;i++)r=n[i].cloneNode(!0),u.push(t?s.ba(r):r);return u},fa:function(n,t){if(s.a.rb(n),t)for(var i=0,r=t.length;i<r;i++)n.appendChild(t[i])},uc:function(n,t){var r=n.nodeType?[n]:n;if(0<r.length){for(var f=r[0],e=f.parentNode,i=0,u=t.length;i<u;i++)e.insertBefore(t[i],f);for(i=0,u=r.length;i<u;i++)s.removeNode(r[i])}},Ba:function(n,t){if(n.length){for(t=8===t.nodeType&&t.parentNode||t;n.length&&n[0].parentNode!==t;)n.splice(0,1);for(;1<n.length&&n[n.length-1].parentNode!==t;)n.length--;if(1<n.length){var i=n[0],r=n[n.length-1];for(n.length=0;i!==r;)n.push(i),i=i.nextSibling;n.push(r)}}return n},wc:function(n,t){7>e?n.setAttribute("selected",t):n.selected=t},cb:function(t){return null===t||t===n?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},sd:function(n,t){return n=n||"",t.length>n.length?!1:n.substring(0,t.length)===t},Rc:function(n,t){if(n===t)return!0;if(11===n.nodeType)return!1;if(t.contains)return t.contains(3===n.nodeType?n.parentNode:n);if(t.compareDocumentPosition)return 16==(t.compareDocumentPosition(n)&16);for(;n&&n!=t;)n=n.parentNode;return!!n},qb:function(n){return s.a.Rc(n,n.ownerDocument.documentElement)},Tb:function(n){return!!s.a.Vb(n,s.a.qb)},A:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},Zb:function(n){return s.onError?function(){try{return n.apply(this,arguments)}catch(t){throw s.onError&&s.onError(t),t;}}:n},setTimeout:function(n,t){return setTimeout(s.a.Zb(n),t)},dc:function(n){setTimeout(function(){s.onError&&s.onError(n);throw n;},0)},q:function(n,t,r){var u=s.a.Zb(r),f,o;if(r=e&&b[t],s.options.useOnlyNativeEvents||r||!i)if(r||"function"!=typeof n.addEventListener)if("undefined"!=typeof n.attachEvent)f=function(t){u.call(n,t)},o="on"+t,n.attachEvent(o,f),s.a.G.qa(n,function(){n.detachEvent(o,f)});else throw Error("Browser doesn't support addEventListener or attachEvent");else n.addEventListener(t,u,!1);else i(n).bind(t,u)},Fa:function(n,u){if(!n||!n.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var f;if("input"===s.a.A(n)&&n.type&&"click"==u.toLowerCase()?(f=n.type,f="checkbox"==f||"radio"==f):f=!1,s.options.useOnlyNativeEvents||!i||f)if("function"==typeof t.createEvent)if("function"==typeof n.dispatchEvent)f=t.createEvent(p[u]||"HTMLEvents"),f.initEvent(u,!0,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,n),n.dispatchEvent(f);else throw Error("The supplied element doesn't support dispatchEvent");else if(f&&n.click)n.click();else if("undefined"!=typeof n.fireEvent)n.fireEvent("on"+u);else throw Error("Browser doesn't support triggering events");else i(n).trigger(u)},c:function(n){return s.I(n)?n():n},Bb:function(n){return s.I(n)?n.p():n},fb:function(n,t,i){var r;t&&("object"==typeof n.classList?(r=n.classList[i?"add":"remove"],s.a.r(t.match(c),function(t){r.call(n.classList,t)})):"string"==typeof n.className.baseVal?v(n.className,"baseVal",t,i):v(n,"className",t,i))},bb:function(t,i){var r=s.a.c(i),u;(null===r||r===n)&&(r="");u=s.f.firstChild(t);!u||3!=u.nodeType||s.f.nextSibling(u)?s.f.fa(t,[t.ownerDocument.createTextNode(r)]):u.data=r;s.a.Wc(t)},vc:function(n,i){if(n.name=i,7>=e)try{n.mergeAttributes(t.createElement("<input name='"+n.name+"'/>"),!1)}catch(r){}},Wc:function(n){9<=e&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},Sc:function(n){if(e){var t=n.style.width;n.style.width=0;n.style.width=t}},nd:function(n,t){n=s.a.c(n);t=s.a.c(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},W:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},bc:function(n){return w?Symbol(n):n},xd:6===e,yd:7===e,C:e,ic:function(n,t){for(var r=s.a.W(n.getElementsByTagName("input")).concat(s.a.W(n.getElementsByTagName("textarea"))),f="string"==typeof t?function(n){return n.name===t}:function(n){return t.test(n.name)},u=[],i=r.length-1;0<=i;i--)f(r[i])&&u.push(r[i]);return u},kd:function(n){return"string"==typeof n&&(n=s.a.cb(n))?u&&u.parse?u.parse(n):new Function("return "+n)():null},Gb:function(n,t,i){if(!u||!u.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return u.stringify(s.a.c(n),t,i)},ld:function(n,i,r){var v,e,h,f,u,c;r=r||{};var l=r.params||{},a=r.includeFields||this.gc,v=n;if("object"==typeof n&&"form"===s.a.A(n))for(v=n.action,e=a.length-1;0<=e;e--)for(h=s.a.ic(n,a[e]),f=h.length-1;0<=f;f--)l[h[f].name]=h[f].value;i=s.a.c(i);u=t.createElement("form");u.style.display="none";u.action=v;u.method="post";for(c in i)n=t.createElement("input"),n.type="hidden",n.name=c,n.value=s.a.Gb(s.a.c(i[c])),u.appendChild(n);o(l,function(n,i){var r=t.createElement("input");r.type="hidden";r.name=n;r.value=i;u.appendChild(r)});t.body.appendChild(u);r.submitter?r.submitter(u):u.submit();setTimeout(function(){u.parentNode.removeChild(u)},0)}}}();s.b("utils",s.a);s.b("utils.arrayForEach",s.a.r);s.b("utils.arrayFirst",s.a.Vb);s.b("utils.arrayFilter",s.a.Ma);s.b("utils.arrayGetDistinctValues",s.a.Wb);s.b("utils.arrayIndexOf",s.a.o);s.b("utils.arrayMap",s.a.ib);s.b("utils.arrayPushAll",s.a.ta);s.b("utils.arrayRemoveItem",s.a.Na);s.b("utils.extend",s.a.extend);s.b("utils.fieldsIncludedWithJsonPost",s.a.gc);s.b("utils.getFormFields",s.a.ic);s.b("utils.peekObservable",s.a.Bb);s.b("utils.postJson",s.a.ld);s.b("utils.parseJson",s.a.kd);s.b("utils.registerEventHandler",s.a.q);s.b("utils.stringifyJson",s.a.Gb);s.b("utils.range",s.a.nd);s.b("utils.toggleDomNodeCssClass",s.a.fb);s.b("utils.triggerEvent",s.a.Fa);s.b("utils.unwrapObservable",s.a.c);s.b("utils.objectForEach",s.a.D);s.b("utils.addOrRemoveItem",s.a.ra);s.b("utils.setTextContent",s.a.bb);s.b("unwrap",s.a.c);Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i;return 1===arguments.length?function(){return t.apply(n,arguments)}:(i=Array.prototype.slice.call(arguments,1),function(){var r=i.slice(0);return r.push.apply(r,arguments),t.apply(n,r)})});s.a.e=new function(){function r(r,f){var e=r[t];if(!e||"null"===e||!i[e]){if(!f)return n;e=r[t]="ko"+u++;i[e]={}}return i[e]}var u=0,t="__ko__"+(new Date).getTime(),i={};return{get:function(t,i){var u=r(t,!1);return u===n?n:u[i]},set:function(t,i,u){(u!==n||r(t,!1)!==n)&&(r(t,!0)[i]=u)},clear:function(n){var r=n[t];return r?(delete i[r],n[t]=null,!0):!1},J:function(){return u+++t}}};s.b("utils.domData",s.a.e);s.b("utils.domData.clear",s.a.e.clear);s.a.G=new function(){function t(t,i){var r=s.a.e.get(t,u);return r===n&&i&&(r=[],s.a.e.set(t,u,r)),r}function r(n){var i=t(n,!1),u;if(i)for(i=i.slice(0),u=0;u<i.length;u++)i[u](n);if(s.a.e.clear(n),s.a.G.cleanExternalData(n),f[n.nodeType])for(i=n.firstChild;n=i;)i=n.nextSibling,8===n.nodeType&&r(n)}var u=s.a.e.J(),e={1:!0,8:!0,9:!0},f={1:!0,9:!0};return{qa:function(n,i){if("function"!=typeof i)throw Error("Callback must be a function");t(n,!0).push(i)},tc:function(i,r){var f=t(i,!1);f&&(s.a.Na(f,r),0==f.length&&s.a.e.set(i,u,n))},ba:function(n){var t,i,u;if(e[n.nodeType]&&(r(n),f[n.nodeType]))for(t=[],s.a.ta(t,n.getElementsByTagName("*")),i=0,u=t.length;i<u;i++)r(t[i]);return n},removeNode:function(n){s.ba(n);n.parentNode&&n.parentNode.removeChild(n)},cleanExternalData:function(n){i&&"function"==typeof i.cleanData&&i.cleanData([n])}}};s.ba=s.a.G.ba;s.removeNode=s.a.G.removeNode;s.b("cleanNode",s.ba);s.b("removeNode",s.removeNode);s.b("utils.domNodeDisposal",s.a.G);s.b("utils.domNodeDisposal.addDisposeCallback",s.a.G.qa);s.b("utils.domNodeDisposal.removeDisposeCallback",s.a.G.tc),function(){var h=[0,"",""],u=[1,"<table>","<\/table>"],f=[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],e=[1,"<select multiple='multiple'>","<\/select>"],c={thead:u,tbody:u,tfoot:u,tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:f,th:f,option:e,optgroup:e},o=8>=s.a.C;s.a.na=function(n,u){var f,e;if(i){if(i.parseHTML)f=i.parseHTML(n,u)||[];else if((f=i.clean([n],u))&&f[0]){for(e=f[0];e.parentNode&&11!==e.parentNode.nodeType;)e=e.parentNode;e.parentNode&&e.parentNode.removeChild(e)}}else{(f=u)||(f=t);var e=f.parentWindow||f.defaultView||r,v=s.a.cb(n).toLowerCase(),l=f.createElement("div"),a;for(a=(v=v.match(/^<([a-z]+)[ >]/))&&c[v[1]]||h,v=a[0],a="ignored<div>"+a[1]+n+a[2]+"<\/div>","function"==typeof e.innerShiv?l.appendChild(e.innerShiv(a)):(o&&f.appendChild(l),l.innerHTML=a,o&&l.parentNode.removeChild(l));v--;)l=l.lastChild;f=s.a.W(l.lastChild.childNodes)}return f};s.a.Eb=function(t,r){if(s.a.rb(t),r=s.a.c(r),null!==r&&r!==n)if("string"!=typeof r&&(r=r.toString()),i)i(t).html(r);else for(var f=s.a.na(r,t.ownerDocument),u=0;u<f.length;u++)t.appendChild(f[u])}}();s.b("utils.parseHtmlFragment",s.a.na);s.b("utils.setHtml",s.a.Eb);s.N=function(){function i(n,t){var r;if(n)if(8==n.nodeType)r=s.N.pc(n.nodeValue),null!=r&&t.push({Qc:n,hd:r});else if(1==n.nodeType)for(var r=0,u=n.childNodes,f=u.length;r<f;r++)i(u[r],t)}var t={};return{yb:function(n){if("function"!=typeof n)throw Error("You can only pass a function to ko.memoization.memoize()");var i=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[i]=n,"<!--[ko_memo:"+i+"]-->"},Bc:function(i,r){var u=t[i];if(u===n)throw Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized.");try{return u.apply(null,r||[]),!0}finally{delete t[i]}},Cc:function(n,t){var f=[],u,o,r,e;for(i(n,f),u=0,o=f.length;u<o;u++)r=f[u].Qc,e=[r],t&&s.a.ta(e,t),s.N.Bc(f[u].hd,e),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)},pc:function(n){return(n=n.match(/^\[ko_memo\:(.*?)\]$/))?n[1]:null}}}();s.b("memoization",s.N);s.b("memoization.memoize",s.N.yb);s.b("memoization.unmemoize",s.N.Bc);s.b("memoization.parseMemoText",s.N.pc);s.b("memoization.unmemoizeDomNodeAndDescendants",s.N.Cc);s.Z=function(){function f(){if(n)for(var t=n,r=0,f;i<n;)if(f=u[i++]){if(i>t){if(5e3<=++r){i=n;s.a.dc(Error("'Too much recursion' after processing "+r+" task groups."));break}t=n}try{f()}catch(e){s.a.dc(e)}}}function e(){f();i=n=u.length=0}var u=[],n=0,o=1,i=0;return{scheduler:r.MutationObserver?function(n){var i=t.createElement("div");return new MutationObserver(n).observe(i,{attributes:!0}),function(){i.classList.toggle("foo")}}(e):t&&"onreadystatechange"in t.createElement("script")?function(n){var i=t.createElement("script");i.onreadystatechange=function(){i.onreadystatechange=null;t.documentElement.removeChild(i);i=null;n()};t.documentElement.appendChild(i)}:function(n){setTimeout(n,0)},Za:function(t){return n||s.Z.scheduler(e),u[n++]=t,o++},cancel:function(t){t-=o-n;t>=i&&t<n&&(u[t]=null)},resetForTesting:function(){var t=n-i;return i=n=u.length=0,t},rd:f}}();s.b("tasks",s.Z);s.b("tasks.schedule",s.Z.Za);s.b("tasks.runEarly",s.Z.rd);s.Aa={throttle:function(n,t){n.throttleEvaluation=t;var i=null;return s.B({read:n,write:function(r){clearTimeout(i);i=s.a.setTimeout(function(){n(r)},t)}})},rateLimit:function(n,t){var i,r,u;"number"==typeof t?i=t:(i=t.timeout,r=t.method);n.gb=!1;u="notifyWhenChangesStop"==r?it:tt;n.Wa(function(n){return u(n,i)})},deferred:function(t,i){if(!0!==i)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t.gb||(t.gb=!0,t.Wa(function(i){var u,r=!1;return function(){if(!r){s.Z.cancel(u);u=s.Z.Za(i);try{r=!0;t.notifySubscribers(n,"dirty")}finally{r=!1}}}}))},notify:function(n,t){n.equalityComparer="always"==t?null:b}};nt={undefined:1,boolean:1,number:1,string:1};s.b("extenders",s.Aa);s.zc=function(n,t,i){this.$=n;this.jb=t;this.Pc=i;this.T=!1;s.H(this,"dispose",this.k)};s.zc.prototype.k=function(){this.T=!0;this.Pc()};s.K=function(){s.a.ab(this,l);l.ub(this)};v="change";l={ub:function(n){n.F={change:[]};n.Qb=1},Y:function(n,t,i){var r=this,u;return i=i||v,u=new s.zc(r,t?n.bind(t):n,function(){s.a.Na(r.F[i],u);r.Ka&&r.Ka(i)}),r.ua&&r.ua(i),r.F[i]||(r.F[i]=[]),r.F[i].push(u),u},notifySubscribers:function(n,t){var u,i,r;if(t=t||v,t===v&&this.Kb(),this.Ra(t)){u=t===v&&this.Fc||this.F[t].slice(0);try{for(s.l.Xb(),i=0;r=u[i];++i)r.T||r.jb(n)}finally{s.l.end()}}},Pa:function(){return this.Qb},Zc:function(n){return this.Pa()!==n},Kb:function(){++this.Qb},Wa:function(n){var t=this,o=s.I(t),u,f,r,i,e;t.Ja||(t.Ja=t.notifySubscribers,t.notifySubscribers=rt);e=n(function(){t.Ha=!1;o&&i===t&&(i=t.Mb?t.Mb():t());var n=f||t.Ua(r,i);f=u=!1;n&&t.Ja(r=i)});t.Pb=function(n){t.Fc=t.F[v].slice(0);t.Ha=u=!0;i=n;e()};t.Ob=function(n){u||(r=n,t.Ja(n,"beforeChange"))};t.Hc=function(){t.Ua(r,t.p(!0))&&(f=!0)}},Ra:function(n){return this.F[n]&&this.F[n].length},Xc:function(n){if(n)return this.F[n]&&this.F[n].length||0;var t=0;return s.a.D(this.F,function(n,i){"dirty"!==n&&(t+=i.length)}),t},Ua:function(n,t){return!this.equalityComparer||!this.equalityComparer(n,t)},extend:function(n){var t=this;return n&&s.a.D(n,function(n,i){var r=s.Aa[n];"function"==typeof r&&(t=r(t,i)||t)}),t}};s.H(l,"subscribe",l.Y);s.H(l,"extend",l.extend);s.H(l,"getSubscriptionsCount",l.Xc);s.a.la&&s.a.$a(l,Function.prototype);s.K.fn=l;s.lc=function(n){return null!=n&&"function"==typeof n.Y&&"function"==typeof n.notifySubscribers};s.b("subscribable",s.K);s.b("isSubscribable",s.lc);s.xa=s.l=function(){function t(t){r.push(n);n=t}function i(){n=r.pop()}var r=[],n,u=0;return{Xb:t,end:i,sc:function(t){if(n){if(!s.lc(t))throw Error("Only subscribable things can act as dependencies");n.jb.call(n.Lc,t,t.Gc||(t.Gc=++u))}},w:function(n,r,u){try{return t(),n.apply(r,u||[])}finally{i()}},Ca:function(){if(n)return n.m.Ca()},Va:function(){if(n)return n.Va}}}();s.b("computedContext",s.xa);s.b("computedContext.getDependenciesCount",s.xa.Ca);s.b("computedContext.isInitial",s.xa.Va);s.b("ignoreDependencies",s.wd=s.l.w);y=s.a.bc("_latestValue");s.O=function(n){function t(){return 0<arguments.length?(t.Ua(t[y],arguments[0])&&(t.ia(),t[y]=arguments[0],t.ha()),this):(s.l.sc(t),t[y])}return t[y]=n,s.a.la||s.a.extend(t,s.K.fn),s.K.fn.ub(t),s.a.ab(t,a),s.options.deferUpdates&&s.Aa.deferred(t,!0),t};a={equalityComparer:b,p:function(){return this[y]},ha:function(){this.notifySubscribers(this[y])},ia:function(){this.notifySubscribers(this[y],"beforeChange")}};s.a.la&&s.a.$a(a,s.K.fn);p=s.O.md="__ko_proto__";a[p]=s.O;s.Qa=function(t,i){return null===t||t===n||t[p]===n?!1:t[p]===i?!0:s.Qa(t[p],i)};s.I=function(n){return s.Qa(n,s.O)};s.Da=function(n){return"function"==typeof n&&n[p]===s.O||"function"==typeof n&&n[p]===s.B&&n.$c?!0:!1};s.b("observable",s.O);s.b("isObservable",s.I);s.b("isWriteableObservable",s.Da);s.b("isWritableObservable",s.Da);s.b("observable.fn",a);s.H(a,"peek",a.p);s.H(a,"valueHasMutated",a.ha);s.H(a,"valueWillMutate",a.ia);s.ma=function(n){if(n=n||[],"object"!=typeof n||!("length"in n))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return n=s.O(n),s.a.ab(n,s.ma.fn),n.extend({trackArrayChanges:!0})};s.ma.fn={remove:function(n){for(var u,r=this.p(),i=[],f="function"!=typeof n||s.I(n)?function(t){return t===n}:n,t=0;t<r.length;t++)u=r[t],f(u)&&(0===i.length&&this.ia(),i.push(u),r.splice(t,1),t--);return i.length&&this.ha(),i},removeAll:function(t){if(t===n){var i=this.p(),r=i.slice(0);return this.ia(),i.splice(0,i.length),this.ha(),r}return t?this.remove(function(n){return 0<=s.a.o(t,n)}):[]},destroy:function(n){var i=this.p(),r="function"!=typeof n||s.I(n)?function(t){return t===n}:n,t;for(this.ia(),t=i.length-1;0<=t;t--)r(i[t])&&(i[t]._destroy=!0);this.ha()},destroyAll:function(t){return t===n?this.destroy(function(){return!0}):t?this.destroy(function(n){return 0<=s.a.o(t,n)}):[]},indexOf:function(n){var t=this();return s.a.o(t,n)},replace:function(n,t){var i=this.indexOf(n);0<=i&&(this.ia(),this.p()[i]=t,this.ha())}};s.a.la&&s.a.$a(s.ma.fn,s.O.fn);s.a.r("pop push reverse shift sort splice unshift".split(" "),function(n){s.ma.fn[n]=function(){var t=this.p(),i;return this.ia(),this.Yb(t,n,arguments),i=t[n].apply(t,arguments),this.ha(),i===t?this:i}});s.a.r(["slice"],function(n){s.ma.fn[n]=function(){var t=this();return t[n].apply(t,arguments)}});s.b("observableArray",s.ma);s.Aa.trackArrayChanges=function(t,i){function l(){if(!f){f=!0;u=t.notifySubscribers;t.notifySubscribers=function(n,t){return t&&t!==v||++e,u.apply(this,arguments)};var n=[].concat(t.p()||[]);r=null;o=t.Y(function(i){if(i=[].concat(i||[]),t.Ra("arrayChange")){var u;(!r||1<e)&&(r=s.a.lb(n,i,t.kb));u=r}n=i;r=null;e=0;u&&u.length&&t.notifySubscribers(u,"arrayChange")})}}if(t.kb={},i&&"object"==typeof i&&s.a.extend(t.kb,i),t.kb.sparse=!0,!t.Yb){var f=!1,r=null,o,e=0,u,h=t.ua,c=t.Ka;t.ua=function(n){h&&h.call(t,n);"arrayChange"===n&&l()};t.Ka=function(i){c&&c.call(t,i);"arrayChange"!==i||t.Ra("arrayChange")||(u&&(t.notifySubscribers=u,u=n),o.k(),f=!1)};t.Yb=function(n,t,i){function c(n,t,i){return l[l.length]={status:n,value:t,index:i}}if(f&&!e){var l=[],u=n.length,h=i.length,o=0;switch(t){case"push":o=u;case"unshift":for(t=0;t<h;t++)c("added",i[t],o+t);break;case"pop":o=u-1;case"shift":u&&c("deleted",n[o],o);break;case"splice":t=Math.min(Math.max(0,0>i[0]?u+i[0]:i[0]),u);for(var u=1===h?u:Math.min(t+(i[1]||0),u),h=t+h-2,o=Math.max(u,h),a=[],v=[],y=2;t<o;++t,++y)t<u&&v.push(c("deleted",n[t],t)),t<h&&a.push(c("added",i[y],t));s.a.hc(v,a);break;default:return}r=l}}}};h=s.a.bc("_state");s.m=s.B=function(t,i,r){function u(){if(0<arguments.length){if("function"==typeof e)e.apply(f.sb,arguments);else throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return this}return s.l.sc(u),(f.V||f.t&&u.Sa())&&u.U(),f.M}if("object"==typeof t?r=t:(r=r||{},t&&(r.read=t)),"function"!=typeof r.read)throw Error("Pass a function that returns the value of the ko.computed");var e=r.write,f={M:n,da:!0,V:!0,Ta:!1,Hb:!1,T:!1,Ya:!1,t:!1,od:r.read,sb:i||r.owner,i:r.disposeWhenNodeIsRemoved||r.i||null,ya:r.disposeWhen||r.ya,pb:null,s:{},L:0,fc:null};return u[h]=f,u.$c="function"==typeof e,s.a.la||s.a.extend(u,s.K.fn),s.K.fn.ub(u),s.a.ab(u,c),r.pure?(f.Ya=!0,f.t=!0,s.a.extend(u,et)):r.deferEvaluation&&s.a.extend(u,ot),s.options.deferUpdates&&s.Aa.deferred(u,!0),f.i&&(f.Hb=!0,f.i.nodeType||(f.i=null)),f.t||r.deferEvaluation||u.U(),f.i&&u.ca()&&s.a.G.qa(f.i,f.pb=function(){u.k()}),u};var c={equalityComparer:b,Ca:function(){return this[h].L},Sb:function(n,t,i){if(this[h].Ya&&t===this)throw Error("A 'pure' computed must not be called recursively");this[h].s[n]=i;i.Ia=this[h].L++;i.pa=t.Pa()},Sa:function(){var t,n,i=this[h].s;for(t in i)if(i.hasOwnProperty(t)&&(n=i[t],this.oa&&n.$.Ha||n.$.Zc(n.pa)))return!0},gd:function(){this.oa&&!this[h].Ta&&this.oa(!1)},ca:function(){var n=this[h];return n.V||0<n.L},qd:function(){this.Ha?this[h].V&&(this[h].da=!0):this.ec()},yc:function(n){if(n.gb&&!this[h].i){var t=n.Y(this.gd,this,"dirty"),i=n.Y(this.qd,this);return{$:n,k:function(){t.k();i.k()}}}return n.Y(this.ec,this)},ec:function(){var n=this,t=n.throttleEvaluation;t&&0<=t?(clearTimeout(this[h].fc),this[h].fc=s.a.setTimeout(function(){n.U(!0)},t)):n.oa?n.oa(!0):n.U(!0)},U:function(n){var t=this[h],i=t.ya,r=!1;if(!t.Ta&&!t.T){if(t.i&&!s.a.qb(t.i)||i&&i()){if(!t.Hb){this.k();return}}else t.Hb=!1;t.Ta=!0;try{r=this.Vc(n)}finally{t.Ta=!1}return t.L||this.k(),r}},Vc:function(t){var i=this[h],u=!1,f=i.Ya?n:!i.L,r={Mc:this,Oa:i.s,ob:i.L};return s.l.Xb({Lc:r,jb:ft,m:this,Va:f}),i.s={},i.L=0,r=this.Uc(i,r),this.Ua(i.M,r)&&(i.t||this.notifySubscribers(i.M,"beforeChange"),i.M=r,i.t?this.Kb():t&&this.notifySubscribers(i.M),u=!0),f&&this.notifySubscribers(i.M,"awake"),u},Uc:function(n,t){try{var i=n.od;return n.sb?i.call(n.sb):i()}finally{s.l.end();t.ob&&!n.t&&s.a.D(t.Oa,ut);n.da=n.V=!1}},p:function(n){var t=this[h];return(t.V&&(n||!t.L)||t.t&&this.Sa())&&this.U(),t.M},Wa:function(n){s.K.fn.Wa.call(this,n);this.Mb=function(){return this[h].da?this.U():this[h].V=!1,this[h].M};this.oa=function(n){this.Ob(this[h].M);this[h].V=!0;n&&(this[h].da=!0);this.Pb(this)}},k:function(){var n=this[h];!n.t&&n.s&&s.a.D(n.s,function(n,t){t.k&&t.k()});n.i&&n.pb&&s.a.G.tc(n.i,n.pb);n.s=null;n.L=0;n.T=!0;n.da=!1;n.V=!1;n.t=!1;n.i=null}},et={ua:function(n){var i=this,t=i[h],r;!t.T&&t.t&&"change"==n&&(t.t=!1,t.da||i.Sa()?(t.s=null,t.L=0,i.U()&&i.Kb()):(r=[],s.a.D(t.s,function(n,t){r[t.Ia]=n}),s.a.r(r,function(n,r){var f=t.s[n],u=i.yc(f.$);u.Ia=r;u.pa=f.pa;t.s[n]=u})),t.T||i.notifySubscribers(t.M,"awake"))},Ka:function(t){var i=this[h];i.T||"change"!=t||this.Ra("change")||(s.a.D(i.s,function(n,t){t.k&&(i.s[n]={$:t.$,Ia:t.Ia,pa:t.pa},t.k())}),i.t=!0,this.notifySubscribers(n,"asleep"))},Pa:function(){var n=this[h];return n.t&&(n.da||this.Sa())&&this.U(),s.K.fn.Pa.call(this)}},ot={ua:function(n){"change"!=n&&"beforeChange"!=n||this.p()}};s.a.la&&s.a.$a(c,s.K.fn);d=s.O.md;s.m[d]=s.O;c[d]=s.m;s.bd=function(n){return s.Qa(n,s.m)};s.cd=function(n){return s.Qa(n,s.m)&&n[h]&&n[h].Ya};s.b("computed",s.m);s.b("dependentObservable",s.m);s.b("isComputed",s.bd);s.b("isPureComputed",s.cd);s.b("computed.fn",c);s.H(c,"peek",c.p);s.H(c,"dispose",c.k);s.H(c,"isActive",c.ca);s.H(c,"getDependenciesCount",c.Ca);s.rc=function(n,t){return"function"==typeof n?s.m(n,t,{pure:!0}):(n=s.a.extend({},n),n.pure=!0,s.m(n,t))};s.b("pureComputed",s.rc),function(){function t(u,f,e){if(e=e||new i,u=f(u),"object"!=typeof u||null===u||u===n||u instanceof RegExp||u instanceof Date||u instanceof String||u instanceof Number||u instanceof Boolean)return u;var o=u instanceof Array?[]:{};return e.save(u,o),r(u,function(i){var r=f(u[i]),s;switch(typeof r){case"boolean":case"number":case"string":case"function":o[i]=r;break;case"object":case"undefined":s=e.get(r);o[i]=s!==n?s:t(r,f,e)}}),o}function r(n,t){if(n instanceof Array){for(var i=0;i<n.length;i++)t(i);"function"==typeof n.toJSON&&t("toJSON")}else for(i in n)t(i)}function i(){this.keys=[];this.Lb=[]}s.Ac=function(n){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(n,function(n){for(var t=0;s.I(n)&&10>t;t++)n=n();return n})};s.toJSON=function(n,t,i){return n=s.Ac(n),s.a.Gb(n,t,i)};i.prototype={save:function(n,t){var i=s.a.o(this.keys,n);0<=i?this.Lb[i]=t:(this.keys.push(n),this.Lb.push(t))},get:function(t){return t=s.a.o(this.keys,t),0<=t?this.Lb[t]:n}}}();s.b("toJS",s.Ac);s.b("toJSON",s.toJSON),function(){s.j={u:function(t){switch(s.a.A(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?s.a.e.get(t,s.d.options.zb):7>=s.a.C?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?s.j.u(t.options[t.selectedIndex]):n;default:return t.value}},ja:function(t,i,r){switch(s.a.A(t)){case"option":switch(typeof i){case"string":s.a.e.set(t,s.d.options.zb,n);"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__;t.value=i;break;default:s.a.e.set(t,s.d.options.zb,i);t.__ko__hasDomDataOptionValue__=!0;t.value="number"==typeof i?i:""}break;case"select":(""===i||null===i)&&(i=n);for(var f=-1,u=0,o=t.options.length,e;u<o;++u)if(e=s.j.u(t.options[u]),e==i||""==e&&i===n){f=u;break}(r||0<=f||i===n&&1<t.size)&&(t.selectedIndex=f);break;default:(null===i||i===n)&&(i="");t.value=i}}}}();s.b("selectExtensions",s.j);s.b("selectExtensions.readValue",s.j.u);s.b("selectExtensions.writeValue",s.j.ja);s.h=function(){function n(n){var c,u,i;n=s.a.cb(n);123===n.charCodeAt(0)&&(n=n.slice(1,-1));var a=[],h=n.match(t),o,r=[],l=0;if(h)for(h.push(","),c=0;u=h[c];++c){if(i=u.charCodeAt(0),44===i){if(0>=l){a.push(o&&r.length?{key:o,value:r.join("")}:{unknown:o||r.join("")});o=l=0;r=[];continue}}else if(58===i){if(!l&&!o&&1===r.length){o=r.pop();continue}}else 47===i&&c&&1<u.length?(i=h[c-1].match(f))&&!e[i[0]]&&(n=n.substr(n.indexOf(u)+1),h=n.match(t),h.push(","),c=-1,u="/"):40===i||123===i||91===i?++l:41===i||125===i||93===i?--l:o||r.length||34!==i&&39!==i||(u=u.slice(1,-1));r.push(u)}return a}var r=["true","false","null","undefined"],u=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,t=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),f=/[\])"'A-Za-z0-9_$]+$/,e={"in":1,"return":1,"typeof":1},i={};return{va:[],ga:i,Ab:n,Xa:function(t,f){function e(n,t){var a,f;if(!l){if(f=s.getBindingHandler(n),f&&f.preprocess&&!(t=f.preprocess(t,n,e)))return;(f=i[n])&&(a=t,0<=s.a.o(r,a)?a=!1:(f=a.match(u),a=null===f?!1:f[1]?"Object("+f[1]+")"+f[2]:a),f=a);f&&o.push("'"+n+"':function(_z){"+a+"=_z}")}c&&(t="function(){return "+t+" }");h.push("'"+n+"':"+t)}f=f||{};var h=[],o=[],c=f.valueAccessors,l=f.bindingParams,a="string"==typeof t?n(t):t;return s.a.r(a,function(n){e(n.key||n.unknown,n.value)}),o.length&&e("_ko_property_writers","{"+o.join(",")+" }"),h.join(",")},fd:function(n,t){for(var i=0;i<n.length;i++)if(n[i].key==t)return!0;return!1},Ga:function(n,t,i,r,u){n&&s.I(n)?!s.Da(n)||u&&n.p()===r||n(r):(n=t.get("_ko_property_writers"))&&n[i]&&n[i](r)}}}();s.b("expressionRewriting",s.h);s.b("expressionRewriting.bindingRewriteValidators",s.h.va);s.b("expressionRewriting.parseObjectLiteral",s.h.Ab);s.b("expressionRewriting.preProcessBindings",s.h.Xa);s.b("expressionRewriting._twoWayBindings",s.h.ga);s.b("jsonExpressionRewriting",s.h);s.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",s.h.Xa),function(){function n(n){return 8==n.nodeType&&e.test(i?n.text:n.nodeValue)}function r(n){return 8==n.nodeType&&o.test(i?n.text:n.nodeValue)}function u(t,i){for(var u=t,f=1,e=[];u=u.nextSibling;){if(r(u)&&(f--,0===f))return e;e.push(u);n(u)&&f++}if(!i)throw Error("Cannot find closing comment tag to match: "+t.nodeValue);return null}function f(n,t){var i=u(n,t);return i?0<i.length?i[i.length-1].nextSibling:n.nextSibling:null}var i=t&&"<!--test-->"===t.createComment("test").text,e=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,o=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,h={ul:!0,ol:!0};s.f={aa:{},childNodes:function(t){return n(t)?u(t):t.childNodes},za:function(t){if(n(t)){t=s.f.childNodes(t);for(var i=0,r=t.length;i<r;i++)s.removeNode(t[i])}else s.a.rb(t)},fa:function(t,i){if(n(t)){s.f.za(t);for(var u=t.nextSibling,r=0,f=i.length;r<f;r++)u.parentNode.insertBefore(i[r],u)}else s.a.fa(t,i)},qc:function(t,i){n(t)?t.parentNode.insertBefore(i,t.nextSibling):t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},kc:function(t,i,r){r?n(t)?t.parentNode.insertBefore(i,r.nextSibling):r.nextSibling?t.insertBefore(i,r.nextSibling):t.appendChild(i):s.f.qc(t,i)},firstChild:function(t){return n(t)?!t.nextSibling||r(t.nextSibling)?null:t.nextSibling:t.firstChild},nextSibling:function(t){return n(t)&&(t=f(t)),t.nextSibling&&r(t.nextSibling)?null:t.nextSibling},Yc:n,vd:function(n){return(n=(i?n.text:n.nodeValue).match(e))?n[1]:null},oc:function(t){var o,i,u,e;if(h[s.a.A(t)]&&(o=t.firstChild,o))do if(1===o.nodeType){if(i=o.firstChild,u=null,i)do u?u.push(i):n(i)?(e=f(i,!0),e?i=e:u=[i]):r(i)&&(u=[i]);while(i=i.nextSibling);if(i=u)for(u=o.nextSibling,e=0;e<i.length;e++)u?t.insertBefore(i[e],u):t.appendChild(i[e])}while(o=o.nextSibling)}}}();s.b("virtualElements",s.f);s.b("virtualElements.allowedBindings",s.f.aa);s.b("virtualElements.emptyNode",s.f.za);s.b("virtualElements.insertAfter",s.f.kc);s.b("virtualElements.prepend",s.f.qc);s.b("virtualElements.setDomNodeChildren",s.f.fa),function(){s.S=function(){this.Kc={}};s.a.extend(s.S.prototype,{nodeHasBindings:function(n){switch(n.nodeType){case 1:return null!=n.getAttribute("data-bind")||s.g.getComponentNameForNode(n);case 8:return s.f.Yc(n);default:return!1}},getBindings:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n):null;return s.g.Rb(i,n,t,!1)},getBindingAccessors:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n,{valueAccessors:!0}):null;return s.g.Rb(i,n,t,!0)},getBindingsString:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind");case 8:return s.f.vd(n);default:return null}},parseBindingsString:function(n,t,i,r){var u,f,e,h,c;try{return u=this.Kc,f=n+(r&&r.valueAccessors||""),(e=u[f])||(c="with($context){with($data||{}){return{"+s.h.Xa(n,r)+"}}}",h=new Function("$context","$element",c),e=u[f]=h),e(t,i)}catch(o){throw o.message="Unable to parse bindings.\nBindings value: "+n+"\nMessage: "+o.message,o;}}});s.S.instance=new s.S}();s.b("bindingProvider",s.S),function(){function v(n){return function(){return n}}function u(n){return n()}function o(n){return s.a.Ea(s.l.w(n),function(t,i){return function(){return n()[i]}})}function y(n,t,i){return"function"==typeof n?o(n.bind(null,t,i)):s.a.Ea(n,v)}function p(n,t){return o(this.getBindings.bind(this,n,t))}function h(n,t,i){var r,u=s.f.firstChild(t),f=s.S.instance,e=f.preprocessNode;if(e){for(;r=u;)u=s.f.nextSibling(r),e.call(f,r);u=s.f.firstChild(t)}for(;r=u;)u=s.f.nextSibling(r),c(n,r,i)}function c(n,t,i){var u=!0,r=1===t.nodeType;r&&s.f.oc(t);(r&&i||s.S.instance.nodeHasBindings(t))&&(u=l(t,null,n,i).shouldBindDescendants);u&&!a[s.a.A(t)]&&h(n,t,!r)}function w(n){var i=[],r={},t=[];return s.a.D(n,function u(f){if(!r[f]){var e=s.getBindingHandler(f);e&&(e.after&&(t.push(f),s.a.r(e.after,function(i){if(n[i]){if(-1!==s.a.o(t,i))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+t.join(", "));u(i)}}),t.length--),i.push({key:f,jc:e}));r[f]=!0}}),i}function l(t,i,r,e){var v=s.a.e.get(t,f),o,l,a,c;if(!i){if(v)throw Error("You cannot apply bindings multiple times to the same element.");s.a.e.set(t,f,!0)}if(!v&&e&&s.xc(t,r),i&&"function"!=typeof i)o=i;else{var y=s.S.instance,b=y.getBindingAccessors||p,h=s.B(function(){return(o=i?i(r,t):b.call(y,t,r))&&r.Q&&r.Q(),o},null,{i:t});o&&h.ca()||(h=null)}return o&&(a=h?function(n){return function(){return u(h()[n])}}:function(n){return o[n]},c=function(){return s.a.Ea(h?h():o,u)},c.get=function(n){return o[n]&&u(a(n))},c.has=function(n){return n in o},e=w(o),s.a.r(e,function(i){var e=i.jc.init,h=i.jc.update,u=i.key;if(8===t.nodeType&&!s.f.aa[u])throw Error("The binding '"+u+"' cannot be used with virtual elements");try{"function"==typeof e&&s.l.w(function(){var i=e(t,a(u),c,r.$data,r);if(i&&i.controlsDescendantBindings){if(l!==n)throw Error("Multiple bindings ("+l+" and "+u+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");l=u}});"function"==typeof h&&s.B(function(){h(t,a(u),c,r.$data,r)},null,{i:t})}catch(f){throw f.message='Unable to process binding "'+u+": "+o[u]+'"\nMessage: '+f.message,f;}})),{shouldBindDescendants:l===n}}function t(n){return n&&n instanceof s.R?n:new s.R(n)}var a,f,e;s.d={};a={script:!0,textarea:!0,template:!0};s.getBindingHandler=function(n){return s.d[n]};s.R=function(t,i,r,u,f){function c(){var f=a?t():t,n=s.a.c(f);return i?(i.Q&&i.Q(),s.a.extend(e,i),e.Q=o):(e.$parents=[],e.$root=n,e.ko=s),e.$rawData=f,e.$data=n,r&&(e[r]=n),u&&u(e,i,n),e.$data}function l(){return h&&!s.a.Tb(h)}var e=this,a="function"==typeof t&&!s.I(t),h,o;f&&f.exportDependencies?c():(o=s.B(c,null,{ya:l,i:!0}),o.ca()&&(e.Q=o,o.equalityComparer=null,h=[],o.Dc=function(t){h.push(t);s.a.G.qa(t,function(t){s.a.Na(h,t);h.length||(o.k(),e.Q=o=n)})}))};s.R.prototype.createChildContext=function(n,t,i,r){return new s.R(n,this,t,function(n,t){n.$parentContext=t;n.$parent=t.$data;n.$parents=(t.$parents||[]).slice(0);n.$parents.unshift(n.$parent);i&&i(n)},r)};s.R.prototype.extend=function(n){return new s.R(this.Q||this.$data,this,null,function(t,i){t.$rawData=i.$rawData;s.a.extend(t,"function"==typeof n?n():n)})};s.R.prototype.ac=function(n,t){return this.createChildContext(n,t,null,{exportDependencies:!0})};f=s.a.e.J();e=s.a.e.J();s.xc=function(n,t){if(2==arguments.length)s.a.e.set(n,e,t),t.Q&&t.Q.Dc(n);else return s.a.e.get(n,e)};s.La=function(n,i,r){return 1===n.nodeType&&s.f.oc(n),l(n,i,t(r),!0)};s.Ic=function(n,i,r){return r=t(r),s.La(n,y(i,r,n),r)};s.hb=function(n,i){1!==i.nodeType&&8!==i.nodeType||h(t(n),i,!0)};s.Ub=function(n,u){if(!i&&r.jQuery&&(i=r.jQuery),u&&1!==u.nodeType&&8!==u.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");u=u||r.document.body;c(t(n),u,!0)};s.nb=function(t){switch(t.nodeType){case 1:case 8:var i=s.xc(t);if(i)return i;if(t.parentNode)return s.nb(t.parentNode)}return n};s.Oc=function(t){return(t=s.nb(t))?t.$data:n};s.b("bindingHandlers",s.d);s.b("applyBindings",s.Ub);s.b("applyBindingsToDescendants",s.hb);s.b("applyBindingAccessorsToNode",s.La);s.b("applyBindingsToNode",s.Ic);s.b("contextFor",s.nb);s.b("dataFor",s.Oc)}(),function(n){function u(t,u){var e=i.hasOwnProperty(t)?i[t]:n,o;e?e.Y(u):(e=i[t]=new s.K,e.Y(u),f(t,function(n,u){var f=!(!u||!u.synchronous);r[t]={definition:n,dd:f};delete i[t];o||f?e.notifySubscribers(n):s.Z.Za(function(){e.notifySubscribers(n)})}),o=!0)}function f(n,i){t("getConfig",[n],function(r){r?t("loadComponent",[n,r],function(n){i(n,r)}):i(null,null)})}function t(i,r,u,f){var e,o,h;if(f||(f=s.g.loaders.slice(0)),e=f.shift(),e)if(o=e[i],o){if(h=!1,o.apply(e,r.concat(function(n){h?u(null):null!==n?u(n):t(i,r,u,f)}))!==n&&(h=!0,!e.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else t(i,r,u,f);else u(null)}var i={},r={};s.g={get:function(t,i){var f=r.hasOwnProperty(t)?r[t]:n;f?f.dd?s.l.w(function(){i(f.definition)}):s.Z.Za(function(){i(f.definition)}):u(t,i)},$b:function(n){delete r[n]},Nb:t};s.g.loaders=[];s.b("components",s.g);s.b("components.get",s.g.get);s.b("components.clearCachedDefinition",s.g.$b)}(),function(){function l(n,t,r,f){function e(){0==--c&&f(o)}var o={},c=2,h=r.template;r=r.viewModel;h?u(t,h,function(t){s.g.Nb("loadTemplate",[n,t],function(n){o.template=n;e()})}):e();r?u(t,r,function(t){s.g.Nb("loadViewModel",[n,t],function(n){o[i]=n;e()})}):e()}function e(n,t,r){if("function"==typeof t)r(function(n){return new t(n)});else if("function"==typeof t[i])r(t[i]);else if("instance"in t){var u=t.instance;r(function(){return u})}else"viewModel"in t?e(n,t.viewModel,r):n("Unknown viewModel value: "+t)}function h(n){switch(s.a.A(n)){case"script":return s.a.na(n.text);case"textarea":return s.a.na(n.value);case"template":if(c(n.content))return s.a.wa(n.content.childNodes)}return s.a.wa(n.childNodes)}function c(n){return r.DocumentFragment?n instanceof DocumentFragment:n&&11===n.nodeType}function u(n,t,i){"string"==typeof t.require?o||r.require?(o||r.require)([t.require],i):n("Uses require, but no AMD loader is present"):i(t)}function f(n){return function(t){throw Error("Component '"+n+"': "+t);}}var n={},i;s.g.register=function(t,i){if(!i)throw Error("Invalid configuration for "+t);if(s.g.wb(t))throw Error("Component "+t+" is already registered");n[t]=i};s.g.wb=function(t){return n.hasOwnProperty(t)};s.g.ud=function(t){delete n[t];s.g.$b(t)};s.g.cc={getConfig:function(t,i){i(n.hasOwnProperty(t)?n[t]:null)},loadComponent:function(n,t,i){var r=f(n);u(r,t,function(t){l(n,r,t,i)})},loadTemplate:function(n,i,u){if(n=f(n),"string"==typeof i)u(s.a.na(i));else if(i instanceof Array)u(i);else if(c(i))u(s.a.W(i.childNodes));else if(i.element)if(i=i.element,r.HTMLElement?i instanceof HTMLElement:i&&i.tagName&&1===i.nodeType)u(h(i));else if("string"==typeof i){var e=t.getElementById(i);e?u(h(e)):n("Cannot find element with ID "+i)}else n("Unknown element type: "+i);else n("Unknown template value: "+i)},loadViewModel:function(n,t,i){e(f(n),t,i)}};i="createViewModel";s.b("components.register",s.g.register);s.b("components.isRegistered",s.g.wb);s.b("components.unregister",s.g.ud);s.b("components.defaultLoader",s.g.cc);s.g.loaders.push(s.g.cc);s.g.Ec=n}(),function(){function n(n,t){var r=n.getAttribute("params");if(r){var r=i.parseBindingsString(r,t,n,{valueAccessors:!0,bindingParams:!0}),r=s.a.Ea(r,function(t){return s.m(t,null,{i:n})}),u=s.a.Ea(r,function(t){var i=t.p();return t.ca()?s.m({read:function(){return s.a.c(t())},write:s.Da(i)&&function(n){t()(n)},i:n}):i});return u.hasOwnProperty("$raw")||(u.$raw=r),u}return{$raw:{}}}s.g.getComponentNameForNode=function(n){var t=s.a.A(n);if(s.g.wb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+n||8>=s.a.C&&n.tagName===t))return t};s.g.Rb=function(t,i,r,u){var f,e;if(1===i.nodeType&&(f=s.g.getComponentNameForNode(i),f)){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');e={name:f,params:n(i,r)};t.component=u?function(){return e}:e}return t};var i=new s.S;9>s.a.C&&(s.g.register=function(n){return function(i){return t.createElement(i),n.apply(this,arguments)}}(s.g.register),t.createDocumentFragment=function(n){return function(){var t=n(),i=s.g.Ec;for(var r in i)i.hasOwnProperty(r)&&t.createElement(r);return t}}(t.createDocumentFragment))}(),function(n){function t(n,t,i){if(t=t.template,!t)throw Error("Component '"+n+"' has no template");n=s.a.wa(t);s.f.fa(i,n)}function i(n,t,i,r){var u=n.createViewModel;return u?u.call(n,r,{element:t,templateNodes:i}):r}var r=0;s.d.component={init:function(u,f,e,o,h){function a(){var n=c&&c.dispose;"function"==typeof n&&n.call(c);l=c=null}var c,l,v=s.a.W(s.f.childNodes(u));return s.a.G.qa(u,a),s.m(function(){var o=s.a.c(f()),e,y,p;if("string"==typeof o?e=o:(e=s.a.c(o.name),y=s.a.c(o.params)),!e)throw Error("No component name specified");p=l=++r;s.g.get(e,function(r){if(l===p){if(a(),!r)throw Error("Unknown component '"+e+"'");t(e,r,u);var f=i(r,u,v,y);r=h.createChildContext(f,n,function(n){n.$component=f;n.$componentTemplateNodes=v});c=f;s.hb(r,u)}})},null,{i:u}),{controlsDescendantBindings:!0}}};s.f.aa.component=!0}();g={"class":"className","for":"htmlFor"};s.d.attr={update:function(t,i){var r=s.a.c(i())||{};s.a.D(r,function(i,r){r=s.a.c(r);var u=!1===r||null===r||r===n;u&&t.removeAttribute(i);8>=s.a.C&&i in g?(i=g[i],u?t.removeAttribute(i):t[i]=r):u||t.setAttribute(i,r.toString());"name"===i&&s.a.vc(t,u?"":r.toString())})}},function(){s.d.checked={after:["value","attr"],init:function(t,i,r){function l(){var l=t.checked,o=y?f():l,n,h;s.xa.Va()||e&&!l||(n=s.l.w(i),u?(h=a?n.p():n,c!==o?(l&&(s.a.ra(h,o,!0),s.a.ra(h,c,!1)),c=o):s.a.ra(h,o,l),a&&s.Da(n)&&n(h)):s.h.Ga(n,r,"checked",o,!0))}function v(){var n=s.a.c(i());t.checked=u?0<=s.a.o(n,f()):h?n:f()===n}var f=s.rc(function(){return r.has("checkedValue")?s.a.c(r.get("checkedValue")):r.has("value")?s.a.c(r.get("value")):t.value}),h="checkbox"==t.type,e="radio"==t.type;if(h||e){var o=i(),u=h&&s.a.c(o)instanceof Array,a=!(u&&o.push&&o.splice),c=u?f():n,y=e||u;e&&!t.name&&s.d.uniqueName.init(t,function(){return!0});s.m(l,null,{i:t});s.a.q(t,"click",l);s.m(v,null,{i:t});o=n}}};s.h.ga.checked=!0;s.d.checkedValue={update:function(n,t){n.value=s.a.c(t())}}}();s.d.css={update:function(n,t){var i=s.a.c(t());null!==i&&"object"==typeof i?s.a.D(i,function(t,i){i=s.a.c(i);s.a.fb(n,t,i)}):(i=s.a.cb(String(i||"")),s.a.fb(n,n.__ko__cssValue,!1),n.__ko__cssValue=i,s.a.fb(n,i,!0))}};s.d.enable={update:function(n,t){var i=s.a.c(t());i&&n.disabled?n.removeAttribute("disabled"):i||n.disabled||(n.disabled=!0)}};s.d.disable={update:function(n,t){s.d.enable.update(n,function(){return!s.a.c(t())})}};s.d.event={init:function(n,t,i,r,u){var f=t()||{};s.a.D(f,function(f){"string"==typeof f&&s.a.q(n,f,function(n){var o,h=t()[f],e;if(h){try{e=s.a.W(arguments);r=u.$data;e.unshift(r);o=h.apply(r,e)}finally{!0!==o&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}!1===i.get(f+"Bubble")&&(n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation())}})})}};s.d.foreach={mc:function(n){return function(){var i=n(),t=s.a.Bb(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:s.X.vb}:(s.a.c(i),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:s.X.vb})}},init:function(n,t){return s.d.template.init(n,s.d.foreach.mc(t))},update:function(n,t,i,r,u){return s.d.template.update(n,s.d.foreach.mc(t),i,r,u)}};s.h.va.foreach=!1;s.f.aa.foreach=!0;s.d.hasfocus={init:function(n,t,i){function r(r){var u,f;if(n.__ko_hasfocusUpdating=!0,u=n.ownerDocument,"activeElement"in u){try{f=u.activeElement}catch(e){f=u.body}r=f===n}u=t();s.h.Ga(u,i,"hasfocus",r,!0);n.__ko_hasfocusLastValue=r;n.__ko_hasfocusUpdating=!1}var u=r.bind(null,!0),f=r.bind(null,!1);s.a.q(n,"focus",u);s.a.q(n,"focusin",u);s.a.q(n,"blur",f);s.a.q(n,"focusout",f)},update:function(n,t){var i=!!s.a.c(t());n.__ko_hasfocusUpdating||n.__ko_hasfocusLastValue===i||(i?n.focus():n.blur(),!i&&n.__ko_hasfocusLastValue&&n.ownerDocument.body.focus(),s.l.w(s.a.Fa,null,[n,i?"focusin":"focusout"]))}};s.h.ga.hasfocus=!0;s.d.hasFocus=s.d.hasfocus;s.h.ga.hasFocus=!0;s.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.Eb(n,t())}};k("if");k("ifnot",!1,!0);k("with",!0,!1,function(n,t){return n.ac(t)});w={};s.d.options={init:function(n){if("select"!==s.a.A(n))throw Error("options binding applies only to SELECT elements");for(;0<n.length;)n.remove(0);return{controlsDescendantBindings:!0}},update:function(t,i,r){function a(){return s.a.Ma(t.options,function(n){return n.selected})}function v(n,t,i){var r=typeof t;return"function"==r?t(n):"string"==r?n[t]:i}function y(n,i){if(o&&e)s.j.ja(t,s.a.c(r.get("value")),!0);else if(f.length){var u=0<=s.a.o(f,s.j.u(i[0]));s.a.wc(i[0],u);o&&!u&&s.l.w(s.a.Fa,null,[t,"change"])}}var h=t.multiple,c=0!=t.length&&h?t.scrollTop:null,u=s.a.c(i()),e=r.get("valueAllowUnset")&&r.has("value"),p=r.get("optionsIncludeDestroyed"),l,f,o;i={};f=[];e||(h?f=s.a.ib(a(),s.j.u):0<=t.selectedIndex&&f.push(s.j.u(t.options[t.selectedIndex])));u&&("undefined"==typeof u.length&&(u=[u]),l=s.a.Ma(u,function(t){return p||t===n||null===t||!s.a.c(t._destroy)}),r.has("optionsCaption")&&(u=s.a.c(r.get("optionsCaption")),null!==u&&u!==n&&l.unshift(w)));o=!1;i.beforeRemove=function(n){t.removeChild(n)};u=y;r.has("optionsAfterRender")&&"function"==typeof r.get("optionsAfterRender")&&(u=function(t,i){y(0,i);s.l.w(r.get("optionsAfterRender"),null,[i[0],t!==w?t:n])});s.a.Db(t,l,function(i,u,h){return h.length&&(f=!e&&h[0].selected?[s.j.u(h[0])]:[],o=!0),u=t.ownerDocument.createElement("option"),i===w?(s.a.bb(u,r.get("optionsCaption")),s.j.ja(u,n)):(h=v(i,r.get("optionsValue"),i),s.j.ja(u,s.a.c(h)),i=v(i,r.get("optionsText"),h),s.a.bb(u,i)),[u]},i,u);s.l.w(function(){e?s.j.ja(t,s.a.c(r.get("value")),!0):(h?f.length&&a().length<f.length:f.length&&0<=t.selectedIndex?s.j.u(t.options[t.selectedIndex])!==f[0]:f.length||0<=t.selectedIndex)&&s.a.Fa(t,"change")});s.a.Sc(t);c&&20<Math.abs(c-t.scrollTop)&&(t.scrollTop=c)}};s.d.options.zb=s.a.e.J();s.d.selectedOptions={after:["options","foreach"],init:function(n,t,i){s.a.q(n,"change",function(){var u=t(),r=[];s.a.r(n.getElementsByTagName("option"),function(n){n.selected&&r.push(s.j.u(n))});s.h.Ga(u,i,"selectedOptions",r)})},update:function(n,t){if("select"!=s.a.A(n))throw Error("values binding applies only to SELECT elements");var i=s.a.c(t()),r=n.scrollTop;i&&"number"==typeof i.length&&s.a.r(n.getElementsByTagName("option"),function(n){var t=0<=s.a.o(i,s.j.u(n));n.selected!=t&&s.a.wc(n,t)});n.scrollTop=r}};s.h.ga.selectedOptions=!0;s.d.style={update:function(t,i){var r=s.a.c(i()||{});s.a.D(r,function(i,r){r=s.a.c(r);(null===r||r===n||!1===r)&&(r="");t.style[i]=r})}};s.d.submit={init:function(n,t,i,r,u){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");s.a.q(n,"submit",function(i){var r,f=t();try{r=f.call(u.$data,n)}finally{!0!==r&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}})}};s.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.bb(n,t())}};s.f.aa.text=!0,function(){if(r&&r.navigator)var t=function(n){if(n)return parseFloat(n[1])},e=r.opera&&r.opera.version&&parseInt(r.opera.version()),i=r.navigator.userAgent,o=t(i.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),h=t(i.match(/Firefox\/([^ ]*)/));if(10>s.a.C)var u=s.a.e.J(),f=s.a.e.J(),c=function(n){var t=this.activeElement;(t=t&&s.a.e.get(t,f))&&t(n)},l=function(n,t){var i=n.ownerDocument;s.a.e.get(i,u)||(s.a.e.set(i,u,!0),s.a.q(i,"selectionchange",c));s.a.e.set(n,f,t)};s.d.textInput={init:function(t,i,r){function u(n,i){s.a.q(t,n,i)}function p(){var r=s.a.c(i());(null===r||r===n)&&(r="");v!==n&&r===v?s.a.setTimeout(p,4):t.value!==r&&(y=r,t.value=r)}function c(){a||(v=t.value,a=s.a.setTimeout(f,4))}function f(){clearTimeout(a);v=a=n;var u=t.value;y!==u&&(y=u,s.h.Ga(i(),r,"textInput",u))}var y=t.value,a,v,w=9==s.a.C?c:f;10>s.a.C?(u("propertychange",function(n){"value"===n.propertyName&&w(n)}),8==s.a.C&&(u("keyup",f),u("keydown",f)),8<=s.a.C&&(l(t,w),u("dragend",c))):(u("input",f),5>o&&"textarea"===s.a.A(t)?(u("keydown",c),u("paste",c),u("cut",c)):11>e?u("keydown",c):4>h&&(u("DOMAutoComplete",f),u("dragdrop",f),u("drop",f)));u("change",f);s.m(p,null,{i:t})}};s.h.ga.textInput=!0;s.d.textinput={preprocess:function(n,t,i){i("textInput",n)}}}();s.d.uniqueName={init:function(n,t){if(t()){var i="ko_unique_"+ ++s.d.uniqueName.Nc;s.a.vc(n,i)}}};s.d.uniqueName.Nc=0;s.d.value={after:["options","foreach"],init:function(n,t,i){var o,h;if("input"!=n.tagName.toLowerCase()||"checkbox"!=n.type&&"radio"!=n.type){var r=["change"],u=i.get("valueUpdate"),f=!1,e=null;u&&("string"==typeof u&&(u=[u]),s.a.ta(r,u),r=s.a.Wb(r));o=function(){e=null;f=!1;var r=t(),u=s.j.u(n);s.h.Ga(r,i,"value",u)};!s.a.C||"input"!=n.tagName.toLowerCase()||"text"!=n.type||"off"==n.autocomplete||n.form&&"off"==n.form.autocomplete||-1!=s.a.o(r,"propertychange")||(s.a.q(n,"propertychange",function(){f=!0}),s.a.q(n,"focus",function(){f=!1}),s.a.q(n,"blur",function(){f&&o()}));s.a.r(r,function(t){var i=o;s.a.sd(t,"after")&&(i=function(){e=s.j.u(n);s.a.setTimeout(o,0)},t=t.substring(5));s.a.q(n,t,i)});h=function(){var r=s.a.c(t()),u=s.j.u(n),f;null!==e&&r===e?s.a.setTimeout(h,0):r!==u&&("select"===s.a.A(n)?(f=i.get("valueAllowUnset"),u=function(){s.j.ja(n,r,f)},u(),f||r===s.j.u(n)?s.a.setTimeout(u,0):s.l.w(s.a.Fa,null,[n,"change"])):s.j.ja(n,r))};s.m(h,null,{i:n})}else s.La(n,{checkedValue:t})},update:function(){}};s.h.ga.value=!0;s.d.visible={update:function(n,t){var i=s.a.c(t()),r="none"!=n.style.display;i&&!r?n.style.display="":!i&&r&&(n.style.display="none")}},function(n){s.d[n]={init:function(t,i,r,u,f){return s.d.event.init.call(this,t,function(){var t={};return t[n]=i(),t},r,u,f)}}}("click");s.P=function(){};s.P.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};s.P.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock");};s.P.prototype.makeTemplateSource=function(n,i){if("string"==typeof n){i=i||t;var r=i.getElementById(n);if(!r)throw Error("Cannot find template with ID "+n);return new s.v.n(r)}if(1==n.nodeType||8==n.nodeType)return new s.v.sa(n);throw Error("Unknown template type: "+n);};s.P.prototype.renderTemplate=function(n,t,i,r){return n=this.makeTemplateSource(n,r),this.renderTemplateSource(n,t,i,r)};s.P.prototype.isTemplateRewritten=function(n,t){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(n,t).data("isRewritten")};s.P.prototype.rewriteTemplate=function(n,t,i){n=this.makeTemplateSource(n,i);t=t(n.text());n.text(t);n.data("isRewritten",!0)};s.b("templateEngine",s.P);s.Ib=function(){function n(n,t,i,r){var o,f,u,e;for(n=s.h.Ab(n),o=s.h.va,f=0;f<n.length;f++)if(u=n[f].key,o.hasOwnProperty(u))if(e=o[u],"function"==typeof e){if(u=e(n[f].value))throw Error(u);}else if(!e)throw Error("This template engine does not support the '"+u+"' binding within its templates");return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+s.h.Xa(n,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Tc:function(n,t,i){t.isTemplateRewritten(n,i)||t.rewriteTemplate(n,function(n){return s.Ib.jd(n,t)},i)},jd:function(r,u){return r.replace(t,function(t,i,r,f,e){return n(e,i,r,u)}).replace(i,function(t,i){return n(i,"<!-- ko -->","#comment",u)})},Jc:function(n,t){return s.N.yb(function(i,r){var u=i.nextSibling;u&&u.nodeName.toLowerCase()===t&&s.La(u,n,r)})}}}();s.b("__tr_ambtns",s.Ib.Jc),function(){var i,t;s.v={};s.v.n=function(n){if(this.n=n){var t=s.a.A(n);this.eb="script"===t?1:"textarea"===t?2:"template"==t&&n.content&&11===n.content.nodeType?3:4}};s.v.n.prototype.text=function(){var n=1===this.eb?"text":2===this.eb?"value":"innerHTML",t;if(0==arguments.length)return this.n[n];t=arguments[0];"innerHTML"===n?s.a.Eb(this.n,t):this.n[n]=t};i=s.a.e.J()+"_";s.v.n.prototype.data=function(n){if(1===arguments.length)return s.a.e.get(this.n,i+n);s.a.e.set(this.n,i+n,arguments[1])};t=s.a.e.J();s.v.n.prototype.nodes=function(){var i=this.n;if(0==arguments.length)return(s.a.e.get(i,t)||{}).mb||(3===this.eb?i.content:4===this.eb?i:n);s.a.e.set(i,t,{mb:arguments[0]})};s.v.sa=function(n){this.n=n};s.v.sa.prototype=new s.v.n;s.v.sa.prototype.text=function(){if(0==arguments.length){var i=s.a.e.get(this.n,t)||{};return i.Jb===n&&i.mb&&(i.Jb=i.mb.innerHTML),i.Jb}s.a.e.set(this.n,t,{Jb:arguments[0]})};s.b("templateSources",s.v);s.b("templateSources.domElement",s.v.n);s.b("templateSources.anonymousTemplate",s.v.sa)}(),function(){function t(n,t,i){var r;for(t=s.f.nextSibling(t);n&&(r=n)!==t;)n=s.f.nextSibling(r),i(r,n)}function f(n,i){if(n.length){var r=n[0],u=n[n.length-1],f=r.parentNode,e=s.S.instance,o=e.preprocessNode;if(o){if(t(r,u,function(n,t){var f=n.previousSibling,i=o.call(e,n);i&&(n===r&&(r=i[0]||t),n===u&&(u=i[i.length-1]||f))}),n.length=0,!r)return;r===u?n.push(r):(n.push(r,u),s.a.Ba(n,f))}t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.Ub(i,n)});t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.N.Cc(n,[i])});s.a.Ba(n,f)}}function i(n){return n.nodeType?n:0<n.length?n[0]:null}function e(n,t,u,e,o){o=o||{};var h=(n&&i(n)||u||{}).ownerDocument,c=o.templateEngine||r;if(s.Ib.Tc(u,c,h),u=c.renderTemplate(u,e,o,h),"number"!=typeof u.length||0<u.length&&"number"!=typeof u[0].nodeType)throw Error("Template engine must return an array of DOM nodes");h=!1;switch(t){case"replaceChildren":s.f.fa(n,u);h=!0;break;case"replaceNode":s.a.uc(n,u);h=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t);}return h&&(f(u,e),o.afterRender&&s.l.w(o.afterRender,null,[u,e.$data])),u}function o(n,t,i){return s.I(n)?n():"function"==typeof n?n(t,i):n}var r,u;s.Fb=function(t){if(t!=n&&!(t instanceof s.P))throw Error("templateEngine must inherit from ko.templateEngine");r=t};s.Cb=function(t,u,f,h,c){if(f=f||{},(f.templateEngine||r)==n)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",h){var l=i(h);return s.B(function(){var n=u&&u instanceof s.R?u:new s.R(u,null,null,null,{exportDependencies:!0}),r=o(t,n.$data,n),n=e(h,c,r,n,f);"replaceNode"==c&&(h=n,l=i(h))},null,{ya:function(){return!l||!s.a.qb(l)},i:l&&"replaceNode"==c?l.parentNode:l})}return s.N.yb(function(n){s.Cb(t,u,f,n,"replaceNode")})};s.pd=function(t,i,r,u,h){function l(n,t){f(t,c);r.afterRender&&r.afterRender(t,n);c=null}function a(n,i){c=h.createChildContext(n,r.as,function(n){n.$index=i});var u=o(t,n,c);return e(null,"ignoreTargetNode",u,c,r)}var c;return s.B(function(){var t=s.a.c(i)||[];"undefined"==typeof t.length&&(t=[t]);t=s.a.Ma(t,function(t){return r.includeDestroyed||t===n||null===t||!s.a.c(t._destroy)});s.l.w(s.a.Db,null,[u,t,a,r,l])},null,{i:u})};u=s.a.e.J();s.d.template={init:function(n,t){var i=s.a.c(t());if("string"==typeof i||i.name)s.f.za(n);else{if("nodes"in i){if(i=i.nodes||[],s.I(i))throw Error('The "nodes" option must be a plain, non-observable array.');}else i=s.f.childNodes(n);i=s.a.nc(i);new s.v.sa(n).nodes(i)}return{controlsDescendantBindings:!0}},update:function(t,i,r,f,e){var o=i();i=s.a.c(o);r=!0;f=null;"string"==typeof i?i={}:(o=i.name,"if"in i&&(r=s.a.c(i["if"])),r&&"ifnot"in i&&(r=!s.a.c(i.ifnot)));"foreach"in i?f=s.pd(o||t,r&&i.foreach||[],i,t,e):r?(e="data"in i?e.ac(i.data,i.as):e,f=s.Cb(o||t,e,i,t)):s.f.za(t);e=f;(i=s.a.e.get(t,u))&&"function"==typeof i.k&&i.k();s.a.e.set(t,u,e&&e.ca()?e:n)}};s.h.va.template=function(n){return n=s.h.Ab(n),1==n.length&&n[0].unknown||s.h.fd(n,"name")?null:"This template engine does not support anonymous templates nested within its templates"};s.f.aa.template=!0}();s.b("setTemplateEngine",s.Fb);s.b("renderTemplate",s.Cb);s.a.hc=function(n,t,i){if(n.length&&t.length)for(var o,r,f,e,u=o=0;(!i||u<i)&&(f=n[o]);++o){for(r=0;e=t[r];++r)if(f.value===e.value){f.moved=e.index;e.moved=f.index;t.splice(r,1);u=r=0;break}u+=r}};s.a.lb=function(){function n(n,t,i,r,u){for(var o=Math.min,l=Math.max,a=[],c=n.length,f,h=t.length,v=h-c||1,w=c+h+1,y,p,b,e=0;e<=c;e++)for(p=y,a.push(y=[]),b=o(h,e+v),f=l(0,e-1);f<=b;f++)y[f]=f?e?n[e-1]===t[f-1]?p[f-1]:o(p[f]||w,y[f-1]||w)+1:f+1:e+1;for(o=[],l=[],v=[],e=c,f=h;e||f;)h=a[e][f]-1,f&&h===a[e][f-1]?l.push(o[o.length]={status:i,value:t[--f],index:f}):e&&h===a[e-1][f]?v.push(o[o.length]={status:r,value:n[--e],index:e}):(--f,--e,u.sparse||o.push({status:"retained",value:t[f]}));return s.a.hc(v,l,!u.dontLimitMoves&&10*c),o.reverse()}return function(t,i,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],i=i||[],t.length<i.length?n(t,i,"added","deleted",r):n(i,t,"deleted","added",r)}}();s.b("utils.compareArrays",s.a.lb),function(){function r(t,i,r,u,f){var e=[],o=s.B(function(){var n=i(r,f,s.a.Ba(e,t))||[];0<e.length&&(s.a.uc(e,n),u&&s.l.w(u,null,[r,n,f]));e.length=0;s.a.ta(e,n)},null,{i:t,ya:function(){return!s.a.Tb(e)}});return{ea:e,B:o.ca()?o:n}}var t=s.a.e.J(),i=s.a.e.J();s.a.Db=function(u,f,e,o,h){function ut(n,t){c=g[t];tt!==t&&(rt[n]=c);c.tb(tt++);s.a.Ba(c.ea,u);w.push(c);b.push(c)}function y(n,t){if(n)for(var i=0,r=t.length;i<r;i++)t[i]&&s.a.r(t[i].ea,function(r){n(r,i,t[i].ka)})}var l,p,ft;f=f||[];o=o||{};var p=s.a.e.get(u,t)===n,g=s.a.e.get(u,t)||[],nt=s.a.ib(g,function(n){return n.ka}),a=s.a.lb(nt,f,o.dontLimitMoves),w=[],v=0,tt=0,it=[],b=[];f=[];for(var rt=[],nt=[],c,l=0,k,d;k=a[l];l++)switch(d=k.moved,k.status){case"deleted":d===n&&(c=g[v],c.B&&(c.B.k(),c.B=n),s.a.Ba(c.ea,u).length&&(o.beforeRemove&&(w.push(c),b.push(c),c.ka===i?c=null:f[l]=c),c&&it.push.apply(it,c.ea)));v++;break;case"retained":ut(l,v++);break;case"added":d!==n?ut(l,d):(c={ka:k.value,tb:s.O(tt++)},w.push(c),b.push(c),p||(nt[l]=c))}for(s.a.e.set(u,t,w),y(o.beforeMove,rt),s.a.r(it,o.beforeRemove?s.ba:s.removeNode),l=0,p=s.f.firstChild(u);c=b[l];l++){for(c.ea||s.a.extend(c,r(u,e,c.ka,h,c.tb)),v=0;a=c.ea[v];p=a.nextSibling,ft=a,v++)a!==p&&s.f.kc(u,a,ft);!c.ad&&h&&(h(c.ka,c.ea,c.tb),c.ad=!0)}for(y(o.beforeRemove,f),l=0;l<f.length;++l)f[l]&&(f[l].ka=i);y(o.afterMove,rt);y(o.afterAdd,nt)}}();s.b("utils.setDomNodeChildrenFromArrayMapping",s.a.Db);s.X=function(){this.allowTemplateRewriting=!1};s.X.prototype=new s.P;s.X.prototype.renderTemplateSource=function(n,t,i,r){return(t=(9>s.a.C?0:n.nodes)?n.nodes():null)?s.a.W(t.cloneNode(!0).childNodes):(n=n.text(),s.a.na(n,r))};s.X.vb=new s.X;s.Fb(s.X.vb);s.b("nativeTemplateEngine",s.X),function(){s.xb=function(){var n=this.ed=function(){if(!i||!i.tmpl)return 0;try{if(0<=i.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(r,u,f,e){if(e=e||t,f=f||{},2>n)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=r.data("precompiled");return o||(o=r.text()||"",o=i.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),r.data("precompiled",o)),r=[u.$data],u=i.extend({koBindingContext:u},f.templateOptions),u=i.tmpl(o,r,u),u.appendTo(e.createElement("div")),i.fragments={},u};this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"};this.addTemplate=function(n,i){t.write("<script type='text/html' id='"+n+"'>"+i+"<\/script>")};0<n&&(i.tmpl.tag.ko_code={open:"__.push($1 || '');"},i.tmpl.tag.ko_with={open:"with($1) {",close:"} "})};s.xb.prototype=new s.P;var n=new s.xb;0<n.ed&&s.Fb(n);s.b("jqueryTmplTemplateEngine",s.xb)}()})})()}(),function(){function t(n){var t,i;if(typeof n.length!="number"||n.length===0)return[];t=[];for(i in n[0])t.push({headerText:i,rowText:i});return t}ko.simpleGrid={viewModel:function(n){this.data=n.data;this.currentPageIndex=ko.observable(0);this.pageSize=n.pageSize||5;this.columns=n.columns||t(ko.utils.unwrapObservable(this.data));this.itemsOnCurrentPage=ko.computed(function(){var n=this.pageSize*this.currentPageIndex();return ko.utils.unwrapObservable(this.data).slice(n,n+this.pageSize)},this);this.maxPageIndex=ko.computed(function(){return Math.ceil(ko.utils.unwrapObservable(this.data).length/this.pageSize)-1},this)}};var n=new ko.nativeTemplateEngine;n.addTemplate=function(n,t){document.write("<script type='text/html' id='"+n+"'>"+t+"<\/script>")};n.addTemplate("ko_simpleGrid_grid",'                    <table class="ko-grid" cellspacing="0">                        <thead>                            <tr data-bind="foreach: columns">                               <th data-bind="text: headerText"><\/th>                            <\/tr>                        <\/thead>                        <tbody data-bind="foreach: itemsOnCurrentPage">                           <tr data-bind="foreach: $parent.columns">                               <td data-bind="text: typeof rowText == \'function\' ? rowText($parent) : $parent[rowText] "><\/td>                            <\/tr>                        <\/tbody>                    <\/table>');n.addTemplate("ko_simpleGrid_pageLinks",'                    <div class="ko-grid-pageLinks">                        <span>Page:<\/span>                        <!-- ko foreach: ko.utils.range(0, maxPageIndex) -->                               <a href="#" data-bind="text: $data + 1, click: function() { $root.currentPageIndex($data) }, css: { selected: $data == $root.currentPageIndex() }">                            <\/a>                        <!-- /ko -->                    <\/div>');ko.bindingHandlers.simpleGrid={init:function(){return{controlsDescendantBindings:!0}},update:function(t,i,r){for(var u=i(),f=r(),e;t.firstChild;)ko.removeNode(t.firstChild);var o=f.simpleGridTemplate||"ko_simpleGrid_grid",s=f.simpleGridPagerTemplate||"ko_simpleGrid_pageLinks",h=t.appendChild(document.createElement("DIV"));ko.renderTemplate(o,u,{templateEngine:n},h,"replaceNode");e=t.appendChild(document.createElement("DIV"));ko.renderTemplate(s,u,{templateEngine:n},e,"replaceNode")}}}();jQuery(document).ready(function(){var n=jQuery;ko.bindingHandlers.fadeVisible={init:function(t,i){var r=i();n(t).toggle(ko.unwrap(r))},update:function(t,i){var r=i();ko.unwrap(r)?n(t).fadeIn("fast"):n(t).fadeOut("slow")}};ko.bindingHandlers.slideVisible={init:function(t,i){var r=i();n(t).toggle(ko.unwrap(r))},update:function(t,i){var r=i();ko.unwrap(r)?n(t).slideDown():n(t).slideUp()}}});jQuery(document).ready(function(){var n,t;(jQuery(window).scroll(function(){InitializeAnimationsInArticleWithBackground()}),InitializeAnimationsInArticleWithBackground(),EnableLinksForArticlesWithBackground(),typeof paraxify!="undefined")&&(n=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),n?jQuery("html").addClass("ios-detected"):(t=paraxify(".article-parallax",{speed:.8,boost:0}),setTimeout(function(){t.update();jQuery(".article-parallax").fadeTo(100,1)},1)))}),function(n){n.fn.animateScrollTo=function(t,i){return isNaN(t)&&(t=0),i==null&&(i="fast"),n("html, body").animate({scrollTop:n(this).offset().top+t+"px"},i),this};n.fn.scrollToTop=function(){return n("html, body").animate({scrollTop:0},"fast"),this};n("document").ready(function(n){var t=!1,i=null;n(document).on("header-menu-ready",function(){t||(t=!0,i==null&&(i=new Stickybar(jQuery,".ProductInfo .section-menu",0,getTopMenuHeight())))})})}(jQuery);mcWeb={};CKEDITOR_BASEPATH="/Scripts/ckeditor/";jQuery.noConflict();jQuery(window).load(function(){resizeElements();resizeElementsForSlideShow();jQuery(document).trigger("mcSlideEvent")});PageLoad=function(n){jQuery(document).ready(function(){var t,i;try{if(matchMedia&&(t=window.matchMedia("(min-width: 1025px)"),t.addListener(WidthChange),WidthChange(t)),sizeProductListElements(),jQuery(".DynamicStockTooltipContainer").tooltip(),n)window.initGmapsLoader&&window.initGmapsLoader(),i=jQuery("#checkout").length>0?300:0,setTimeout(function(){resizeElements();resizeElementsForSlideShow()},i);else{jQuery("#PageWrapper").on("dragenter dragover",".drop-target",function(){addHighlight(this)});jQuery("#PageWrapper").on("dragleave dragexit",".drop-target",function(){removeHighlight(this)})}}catch(r){console.log(r)}})};var activateLoggingOfNavigation=function(){jQuery(document).ready(function(){var n,t;try{jQuery("#PageWrapper").on("click","a",function(){var n=navigationLogging.extractLoggingData(this);window.StorageService.localStorage.setItem("loggingData",JSON.stringify(n))});window.StorageService.localStorage.getItem("loggingData")!==null&&(n=JSON.parse(window.StorageService.localStorage.getItem("loggingData")),n.toWebSiteMapNodeId=jQuery("#NodeIDContainer").text(),t=jQuery("#PlidContainer"),t!=null&&(n.toProduktLagerId=t.text()),navigationLogging.addToLog(n),window.StorageService.localStorage.removeItem("loggingData"))}catch(i){console.log(i)}})},updateLayoutVersion2=function(){jQuery("div.LayoutVersion2").each(function(){updateLayout(jQuery(this))})},updateLayout=function(n){var t=n.parent("div"),i=!1;t.hasClass("slides_container")?i=!0:(t=t.parent("div"),t.hasClass("slides_container")&&(i=!0));var u=n.children("div"),o=n.data("width"),h=i?t.innerWidth():n.parent().innerWidth();var r=10,f=(h-r*(o-1))/o,e=0,s=!1;u.each(function(n){var c=jQuery(this).children("div"),h=0,o=0,t=0;c.each(function(){var l=jQuery(this),c=jQuery(l.find(".Layout2Element")[0]),v=c.data("width"),a=c.data("height");v||(v=1);a||(a=1);h=c.outerWidth()-c.width();o=f*v+(v-1)*r;t=f*a+(a-1)*r;l.css("width",o+"px");(c.hasClass("Demonstrare2News")||c.hasClass("Demonstrare2List")||c.hasClass("Demonstrare2List_VVParts"))&&(t=f*a);i||c.hasClass("Demonstrare2News")||c.hasClass("Demonstrare2List")||c.hasClass("Demonstrare2List_VVParts")||l.css("margin-bottom",r+"px");c.hasClass("ArticleAutoHeight")?s=!0:c.css("height",t-h+"px");n<u.length-1?l.css("margin-right",r+"px"):u.length>1?l.css("width",o-1+"px"):l.css("width",o+"px");t>e&&(e=t)})});i&&!s&&t.css("height",e+"px")};window.onresize=function(){typeof g_prevSize=="undefined"&&(window.g_prevSize=getViewportSize(),resizeElements(),resizeElementsForSlideShow());var n=getViewportSize();(n[0]!=g_prevSize[0]||n[1]!=g_prevSize[1])&&(g_prevSize=n,resizeElements())};var selectedImgID=0,placeholderID=0,boxImageID=0;publisherOverlayTimer={};var tgs=["p","td","tr"],szs=["6pt","9pt","10pt","12pt"],startSz=0,defaultSz=1;var PROGRESS_INTERVAL=500,PROGRESS_COLOR="#000080",_divFrame,_divUploadMessage,_divUploadProgress,_ifrPhoto,_loopCounter=1,_maxLoop=10,_photoUploadProgressTimer;oldPasswordTextBoxID=0;StdAntAttr=5;var isIE=navigator.appVersion.indexOf("MSIE")!=-1?!0:!1,isWin=navigator.appVersion.toLowerCase().indexOf("win")!=-1?!0:!1,isOpera=navigator.userAgent.indexOf("Opera")!=-1?!0:!1,requiredMajorVersion=8,requiredMinorVersion=0,requiredRevision=0;getWindowSize=function(n){n=n?n:window;var t=n.innerWidth||n.document.documentElement.clientWidth||n.document.body.clientWidth,i=n.innerHeight||n.document.documentElement.clientHeight||n.document.body.clientHeight;return[t,i]};reloadPageCallback=function(){location.reload(!0)};keepFilterOpen="&Keep=true";_max_attribute_values=10;Demonstrare2ImageViewer=function(){this.selectedIndex=0;this.numberOfVisibleThumbnails=4;this.thumbnailOffset=0;this.smallImages=[];this.mediumImages=[];this.largeImages=[];this.zoomControl=null;this.disableZoom=!1};Demonstrare2ImageViewer.prototype.initialize=function(n,t,i){this.container=jQuery("#ProductImageWindow");this.disableZoom=n;i&&i.length>0||(i="ctl00_ctl00_CPHCnt_CPHCnt_ctl00_ZoomContainer");this.slidejs=this.container.slides({preload:!0,preloadImage:"/App_Themes/MASTER/Images/ajax_special_updater.gif",effect:"fade",crossfade:!0,slideSpeed:350,fadeSpeed:500,generateNextPrev:!0,generatePagination:!0});this.container.dialog({modal:!0,draggable:!1,resizable:!1,dialogClass:"ProdImageDialog",width:jQuery("#ProductImageWindow .slides_container").width(),autoOpen:!1,open:function(){jQuery(".ui-widget-overlay").bind("click",function(){jQuery("#ProductImageWindow").dialog("close")})}});!this.disableZoom&&mcWeb.responsive.isMedium()&&(jQuery("#MainProdImg").elevateZoom({zoomWindowPosition:i,borderSize:0,zoomWindowWidth:t}),this.zoomControl=jQuery("#MainProdImg").data("elevateZoom"))};Demonstrare2ImageViewer.prototype.setZoomImage=function(n,t){this.selectedIndex=n;this.selectedIndex>=this.mediumImages.length&&(this.selectedIndex=this.mediumImages.length-1);this.selectedIndex<=0&&(this.selectedIndex=0);var i=this.selectedIndex+this.thumbnailOffset,r=jQuery("#MainProdImg")[0],u=new Image;u.onload=function(){r.src=this.src;t!=undefined&&t()};r.complete&&jQuery(r).load();jQuery(r).data("zoom-image",this.largeImages[i]);u.src=this.mediumImages[i];this.disableZoom||this.zoomControl==null||this.zoomControl.swaptheimage(this.mediumImages[i],this.largeImages[i])};Demonstrare2ImageViewer.prototype.nextZoomImage=function(n){this.setZoomImage(++this.selectedIndex,n);this.setThumbnailOffset(++this.thumbnailOffset)};Demonstrare2ImageViewer.prototype.prevZoomImage=function(n){this.setZoomImage(--this.selectedIndex,n);this.setThumbnailOffset(--this.thumbnailOffset)};Demonstrare2ImageViewer.prototype.openImagePopUp=function(){this.container.dialog("open");jQuery(jQuery(".pagination > li a")[this.selectedIndex+this.thumbnailOffset]).trigger("click")};Demonstrare2ImageViewer.prototype.setThumbnailOffset=function(n){var i,t;for(this.thumbnailOffset=n,i=this.mediumImages.length-this.numberOfVisibleThumbnails,this.thumbnailOffset>=i&&(this.thumbnailOffset=i),this.thumbnailOffset<0&&(this.thumbnailOffset=0),t=0;t<this.numberOfVisibleThumbnails;t++)jQuery("#MainProdImg_thumb"+t).attr("src",this.smallImages[this.thumbnailOffset+t])};jQuery(document).ready(function(){if(!(jQuery(".qty-control.api-qty").length>0)){jQuery(".less-qty").on("click",function(){var n=jQuery(this).parent().find("input"),i=n.data("pack"),r=n.val(),t=parseFloat(r)-parseFloat(i);t<1&&(t=1);n.focus();n.val(t);n.blur()});jQuery(".more-qty").on("click",function(){var n=jQuery(this).parent().find("input"),t=n.data("pack"),i=n.val(),r=parseFloat(i)+parseFloat(t);n.focus();n.val(r);n.blur()})}});jQuery.fn.animateAuto=function(n,t,i,r){var u,f;return this.each(function(e,o){o=jQuery(o);u=o.clone().css({height:"auto"}).appendTo(o.parent());f=u.css("height");u.remove();n==="height"&&(i&&(f="200px"),o.animate({height:f},t,r))})}