function findBootstrapEnvironment(){var r=["sm","md","lg","xl"],i="",n=$("<div>"),t;for(n.appendTo($("body")),n.addClass("d-block"),t=r.length-1;t>=0;t--)if(i=r[t],n.addClass("d-"+i+"-none"),n.is(":hidden"))return n.remove(),i;return n.remove(),"xs"}function onYouTubeIframeAPIReady(){bootstrapEnv=findBootstrapEnvironment();$(".video-player-banner-spp").each(function(n,t){new YT.Player($(t).attr("id"),{videoId:$(t).attr("data-youtube-id"),playerVars:{autohide:1,modestbranding:0,controls:1,theme:"light",html5:1,showinfo:0,rel:0,loop:1,listType:$(t).attr("data-youtube-playlist"),list:$(t).attr("data-youtube-playlist-id"),playlist:$(t).attr("data-youtube-id")},events:{onReady:onPlayerReadyBanner}})});$(".video-player-inline-spp").each(function(n,t){new YT.Player($(t).attr("id"),{videoId:$(t).attr("data-youtube-id"),playerVars:{autohide:1,modestbranding:0,controls:1,theme:"light",html5:1,showinfo:0,rel:0,loop:1,listType:$(t).attr("data-youtube-playlist"),list:$(t).attr("data-youtube-playlist-id"),playlist:$(t).attr("data-youtube-id")}})})}function onPlayerReadyBanner(n){$(".playVideoBtn").click(function(){playVideoBanner(n.target,this)});$(".video-close").click(function(){stopVideoBanner(n.target,this)})}function onPlayerStateChangeBanner(n){0===n.data&&stopVideoBanner(n.target)}function stopVideoBanner(n,t){var u,f,i,r;if("md"!==bootstrapEnv&&"lg"!==bootstrapEnv||n.stopVideo(),u=$(t).closest(".banner-video-spp"),u.children(".video-container").hide(),u.children(".video-text").show(),u.parent().addClass("top-padding-30"),f=f||[],f.push({event:"stopYouTubeVideo",youTubeTS:n.getCurrentTime()}),i=document.getElementsByTagName("iframe"),null!=i)for(r=0;r<i.length;r++)"youtube"==i[r].src.substring(12,19)&&(i[r].src=i[r].src)}function playVideoBanner(n,t){var i=$(t).closest(".banner-video-spp"),r;i.parent().removeClass("top-padding-30");i.children(".video-text").hide();i.children(".video-container").show(0,function(){"md"!==bootstrapEnv&&"lg"!==bootstrapEnv||n.playVideo()});r=r||[];r.push({event:"startYouTubeVideo"})}function getQueryHashTableFromUrl(n){for(var i=[],t,u=n.slice(n.indexOf("?")+1).split("&"),r=0;r<u.length;r++)t=u[r].split("="),i.push(t[0]),i[t[0]]=t[1];return i}function companyautocomplete(n){function r(n,t){var i,e;let r=["data-companyId","data-companyName","data-legalGroupCode","data-legalGroupText","data-town"];for(i=0;i<r.length;i++)if(e=n.getElementsByClassName(r[i])[0],e){let n=t.getAttribute(r[i]);(n==null||n===undefined)&&(n="");e.value=n}let h="input:hidden.Form__Element.FormHidden",c=f(t,"data-companyId"),l=f(t,"data-town"),o="roaring_orgnumber",s="roaring_town";$(h).length&&$(h).each(function(n,t){var i=$(t);(c.length&&i.val()===o||i.hasClass(o))&&u(i,o,c);(l.length&&i.val()===s||i.hasClass(s))&&u(i,s,l)})}function u(n,t,i){(n.val()===t||n.hasClass(t))&&(n.hasClass(t)||n.addClass(t),n.val(i))}function f(n,t){if(n===null||n===undefined||!n)return"";let i=n.getAttribute(t);return(i==null||i===undefined)&&(i=""),i}function h(n,t){var i=new RegExp(t,"gi");return n.replace(i,function(n){return"<span style='background-color: #ddd;'>"+n+"<\/span>"})}function e(n){if(!n)return!1;c(n);t>=n.length&&(t=0);t<0&&(t=n.length-1);n[t].classList.add("autocomplete-active")}function c(n){for(var t=0;t<n.length;t++)n[t].classList.remove("autocomplete-active")}function i(t){for(var r=document.getElementsByClassName("autocomplete-items"),i=0;i<r.length;i++)t!=r[i]&&t!=n&&r[i].parentNode.removeChild(r[i])}var t,o=window.spp.publicWeb.debounce,s=o(function(){var f,u,e,o=this.value;if(i(),!o||o.length<2)return!1;t=-1;f=document.createElement("DIV");f.setAttribute("id",this.id+"autocomplete-list");f.setAttribute("class","autocomplete-items");this.parentNode.appendChild(f);$.ajax({type:"GET",url:"/api/CompanySearcherApi?query="+o,contentType:"application/json; charset=utf-8",dataType:"json",success:function(t){var c;if(t!=null&&t!==undefined){if(t.hits!=null&&t.hits.length)for(c=t.hits,e=0;e<c.length;e++){var s=c[e],l=n.parentElement,a=s.companyName+" "+s.town;u=document.createElement("DIV");u.setAttribute("data-companyId",s.companyId);u.setAttribute("data-companyName",s.companyName);u.setAttribute("data-legalGroupCode",s.legalGroupCode);u.setAttribute("data-legalGroupText",s.legalGroupText);u.setAttribute("data-town",s.town);e==0&&r(l,u);u.innerHTML=h(a,o);u.innerHTML+="<input type='hidden' value='"+a+"'>";u.addEventListener("click",function(){n.value=this.getElementsByTagName("input")[0].value;r(l,this);i()});f.appendChild(u)}console.log("hit-count: "+t.hitCount);t.Message&&console.log(t.Message);t.HasError&&console.log("ERROR: "+t.ErrorMessage)}else console.log("Failed to search companies")}})},500);n.addEventListener("input",s);n.addEventListener("keydown",function(n){var i=document.getElementById(this.id+"autocomplete-list");i&&(i=i.getElementsByTagName("div"));n.keyCode==40?(t++,e(i)):n.keyCode==38?(t--,e(i)):n.keyCode==13&&(n.preventDefault(),t>-1&&i&&i[t].click())});document.addEventListener("click",function(n){i(n.target)})}var spp=window.spp||{},s,sppsearch,analysisCookies,cookies,iframeblockjs;spp.publicWeb=function(){var n=function(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}};return{debounce:n}}(),function(){typeof String.prototype.endsWith!="function"&&(String.prototype.endsWith=function(n){return this.indexOf(n,this.length-n.length)!==-1});window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)}(),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var o=-1,r=-1,i=function(n){return parseFloat(n)||0},s=function(t){var f=1,e=n(t),u=null,r=[];return e.each(function(){var t=n(this),e=t.offset().top-i(t.css("margin-top")),o=r.length>0?r[r.length-1]:null;o===null?r.push(t):Math.floor(Math.abs(u-e))<=f?r[r.length-1]=o.add(t):r.push(t);u=e}),r},u=function(t){var i={byRow:!0,property:"height",target:null,remove:!1};return typeof t=="object"?n.extend(i,t):(typeof t=="boolean"?i.byRow=t:t==="remove"&&(i.remove=!0),i)},t=n.fn.matchHeight=function(i){var r=u(i),f;return r.remove?(f=this,this.css(r.property,""),n.each(t._groups,function(n,t){t.elements=t.elements.not(f)}),this):this.length<=1&&!r.target?this:(t._groups.push({elements:this,options:r}),t._apply(this,r),this)},f,e;t.version="0.7.2";t._groups=[];t._throttle=80;t._maintainScroll=!1;t._beforeUpdate=null;t._afterUpdate=null;t._rows=s;t._parse=i;t._parseOptions=u;t._apply=function(r,f){var e=u(f),o=n(r),c=[o],l=n(window).scrollTop(),a=n("html").outerHeight(!0),h=o.parents().filter(":hidden");return h.each(function(){var t=n(this);t.data("style-cache",t.attr("style"))}),h.css("display","block"),e.byRow&&!e.target&&(o.each(function(){var i=n(this),t=i.css("display");t!=="inline-block"&&t!=="flex"&&t!=="inline-flex"&&(t="block");i.data("style-cache",i.attr("style"));i.css({display:t,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=s(o),o.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||"")})),n.each(c,function(t,r){var u=n(r),f=0;if(e.target)f=e.target.outerHeight(!1);else{if(e.byRow&&u.length<=1){u.css(e.property,"");return}u.each(function(){var t=n(this),u=t.attr("style"),i=t.css("display"),r;i!=="inline-block"&&i!=="flex"&&i!=="inline-flex"&&(i="block");r={display:i};r[e.property]="";t.css(r);t.outerHeight(!1)>f&&(f=t.outerHeight(!1));u?t.attr("style",u):t.css("display","")})}u.each(function(){var t=n(this),r=0;e.target&&t.is(e.target)||(t.css("box-sizing")!=="border-box"&&(r+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),r+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(e.property,f-r+"px"))})}),h.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||null)}),t._maintainScroll&&n(window).scrollTop(l/a*n("html").outerHeight(!0)),this};t._applyDataApi=function(){var t={};n("[data-match-height], [data-mh]").each(function(){var i=n(this),r=i.attr("data-mh")||i.attr("data-match-height");t[r]=r in t?t[r].add(i):i});n.each(t,function(){this.matchHeight(!0)})};f=function(i){t._beforeUpdate&&t._beforeUpdate(i,t._groups);n.each(t._groups,function(){t._apply(this.elements,this.options)});t._afterUpdate&&t._afterUpdate(i,t._groups)};t._update=function(i,u){if(u&&u.type==="resize"){var e=n(window).width();if(e===o)return;o=e}i?r===-1&&(r=setTimeout(function(){f(u);r=-1},t._throttle)):f(u)};n(t._applyDataApi);e=n.fn.on?"on":"bind";n(window)[e]("load",function(n){t._update(!1,n)});n(window)[e]("resize orientationchange",function(n){t._update(!0,n)})});$(document).ready(function(){var n=document.createElement("script"),t;n.src="https://www.youtube.com/iframe_api";window.oneTrustActive&&(n.type="text/plain",n.className="optanon-category-C0004");t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t)});String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});$.extend({distinct:function(n){var t=[];return $.each(n,function(n,i){$.inArray(i,t)==-1&&t.push(i)}),t}});$(function(){function n(){var r=$(this).closest(".upload-container-files"),i,n;for($(this).closest(".upload-container-file").remove(),i=r.children(),n=0;n<i.length;n++)$(i[n]).find("div").length===0&&$(i[n]).remove();r.children().length===0&&t()}function t(){$("#btnUploadFile").html("Välj fil");$("#btnUploadFile").removeClass("fileUploadButton");$("#btnUploadFile").parent().find("div").first().show()}function i(){$("#btnUploadFile").html("Lägg till ny fil");$("#btnUploadFile").addClass("fileUploadButton");$("#btnUploadFile").parent().find("div").first().hide()}function r(n){var r=$(n).prev(".upload-container-files").children(),t="filesdfsdf"+(new Date).getTime(),i=$("<div class='upload-container-file'><input type='file' id='"+t+"' name='files' class='attachmentUpload uploadfilename' /><\/div>");$(".upload-container-files").append(i);$("#"+t).trigger("click")}function u(t){var i=$("<div><span class='stb filemargin'>"+t+"<\/span><\/div>"),r=$("<span class='stb-sprite-small remove cursor-pointer '><\/span>");r.on("click",n);return i.append(r),i}$(document).on("change",".upload-container-files input[name=files]",function(n){var t=u(n.target.files[0].name);$(this).parent().append(t);i();$("#btnUploadFile").focus(function(){this.blur()})});$("#btnUploadFile").on("click",function(n){n.preventDefault();r(this)})}),function(){function t(n){var t=n.replace(/[^0-9]/g,"").toString();return t.match(/[0-9]{12}/)?t.match(/([0-9][0-9]).{8}/)?t.match(/.{2}(0[1-9]|1[0-2]).{6}/)?t.match(/.{4}(0[1-9]|[1-2][0-9]|3[0-1]).{4}/)?!0:!1:!1:!1:!1}function u(){$("#checkboxOtherDevice").click(function(){$("#otherDeviceDiv, #thisDeviceDiv").slideToggle(400)});$("#checkboxOtherDeviceXS").click(function(){$("#bankIDFormMobilXS, #bankIdOtherDeviceFormMobilXS").slideToggle(400)})}function f(){var n=i("ERRCODE")=="yes"||i("ERRCODE")=="yes?";n&&($("#bankID, #bankIDMob, #telia").removeClass("active"),$("#bankIdBox, #mobiltBankIdBox, #teliaBox").removeClass("active"),$("#collapseTwo, #collapseFour").removeClass("active"),$("#mobiltBankdIdPanel, #teliaPanel").removeClass("active"),$("#headingTwo .chevron-up, #headingFour .chevron-up").removeClass("chevron-up red").addClass("chevron-down"),$("#storebrandpassword").addClass("active"),$("#usernamePasswordBox").addClass("active"),$("#username-password-message small").show(),$("#usernamePasswordPanel").addClass("active"),$("#headingThree .chevron-down, #headingFour .chevron-up").removeClass("chevron-down").addClass("chevron-up red"),$("#username-password-message-xs small").show());$("#frmPwLogIn").submit(function(n){var i=$("#brukernavn-1").val(),r=$("#passord-1").val(),t=!1;i.length==0?($("#passwFnr-message small").show(),$("#username-password-message small").hide(),t=!0):$("#passwFnr-message small").hide();r.length==0?($("#passw-message small").show(),$("#username-password-message small").hide(),t=!0):$("#passw-message small").hide();t&&n.preventDefault()});$("#frmPpLogInXS").submit(function(n){var i=$("#brukernavn-1XS").val(),r=$("#passord-1XS").val(),t=!1;i.length==0?($("#passwFnr-message-xs small").show(),$("#username-password-message-xs small").hide(),t=!0):$("#passwFnr-message-xs small").hide();r.length==0?($("#passw-message-xs small").show(),$("#username-password-message-xs small").hide(),t=!0):$("#passw-message-xs small").hide();t&&n.preventDefault()})}function i(n){for(var i,u=window.location.search.substring(1),r=u.split("&"),t=0;t<r.length;t++)if(i=r[t].split("="),i[0]==n)return i[1];return null}function n(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+";domain=.spp.se;path=/"}var r=$("div.login-page").length!=0;r&&$(document).ready(function(){u();f();$(".modal").on("shown",function(){$(this).find("[autofocus]").focus()});$("#modalSocialNumber").keydown(function(n){n.keyCode==13&&$("#startOnOtherDevice").trigger("click")});$("#usernamepasswordButton").on("click",function(){n("bankid_autostart",!1,0)});$("#teliaButton").on("click",function(t){t.preventDefault();var i=$(this).attr("href");n("bankid_autostart",!1,0);window.location=i});$("#startOnThisDevice, #startOnThisDeviceXS").on("click",function(t){t.preventDefault();var i=$(this).attr("href");n("bankid_autostart",!0,0);window.location=i});$("#startOnOtherDevice").click(function(i){var r,u,f;if($("#presetid-errormessage").hide(),r=$("#presetid").val().replace("-",""),!t(r))return $("#presetid-errormessage").show(),!1;i.preventDefault();n("bankid_autostart",!1,0);u=sppT.Base64.encode(r);f=$("#startOnOtherDevice").attr("data-href")+"&presetid="+u;i.preventDefault();i.stopImmediatePropagation();window.location=f});$("#startOnOtherDeviceXs").click(function(i){var r,u,f;if($("#presetidXs-errormessage").hide(),r=$("#presetidXs").val().replace("-",""),!t(r))return $("#presetidXs-errormessage").show(),!1;n("bankid_autostart",!1,0);u=sppT.Base64.encode(r);f=$("#startOnOtherDeviceXs").attr("data-href")+"&presetid="+u;i.preventDefault();i.stopImmediatePropagation();window.location=f});navigator.userAgent.match(/Android.*Chrome\/[.0-9]*/)!=null&&($("#checkboxOtherDeviceXS").prop("checked",!0),$("#checkboxGroupOtherDevices").hide(),$("#bankIDFormMobilXS").hide(),$("#bankIdOtherDeviceFormMobilXS").show())})}();sppsearch={settings:{start:0,searchParentWidthPercent:"",backgroundColor:"",maximized:"",animating:"",animSpeed:"",initialWidth:""},restUrl:$("#SearchResultPopup").data("resturl"),userInput:"",stripChars:function(n){return n.replace(/<[^>]+>/ig,"")},init:function(){function t(n,t){var i=t+"?q="+sppsearch.stripChars(n);window.location=i}function i(n,t,i,r){var u=t?"eventSearchWithSuggestion":"eventSearchWithNoSuggestion";window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:u,layerSearchPhrase:n});r(n,i)}function n(n){$("#searchPageSpinner").spin("stb");var r=n.data("search-url");i(n.val(),$("#SearchResultPopup ul li").length>0,r,t)}s=this.settings;$(".searchblockbox").keydown(function(n){n.which===13&&(n.preventDefault(),$.trim($(this).val())&&$(this).closest("form").submit())});$(".searchbox").keydown(function(t){t.which===13&&(t.preventDefault(),n($(this)))});$("#searchpageinput").keyup(function(){let n=$("#clear_search_button");$("#searchpageinput").val().length>0?n.removeClass("invisible"):n.addClass("invisible")});$(".searchblockbox").keyup(function(){let n=$(this).siblings(".search-icons").children("#clear_searchblock_button");$(this).val().length>0?n.removeClass("invisible"):n.addClass("invisible")});$(".navbar-nav .typeahead.tt-input").focus(function(n){n.preventDefault();s.maximized||s.animating||sppsearch.maximizeSearch()});$("input.searchbox").keydown(function(n){n.which===27&&$("#sidebar").removeClass("active")});$(document).scroll(function(){$("#SearchResultPopup").hide()});$(".search-trigger-desktop").click(function(t){t.preventDefault();var i=$("#cms-search-desktop-input");i.val()!==""?n(i):sppsearch.minimizeSearch()});$(".search-trigger-mobile").click(function(t){t.preventDefault();var i=$("#cms-search-mobile-input");i.val()!==""&&n(i)});$("#second_search").on("click",function(){n($("#searchpageinput"))});$("#clear_search_button").on("click",function(){$("#searchpageinput").val(null);$("#clear_search_button").addClass("invisible")});$("#clear_searchblock_button").on("click",function(){let n=$(this).parent().siblings(".searchblockbox");n.val(null);n.focus();$(this).addClass("invisible")});$("#mobile_second_search").on("click",function(){n($("#searchpageinput"))});restUrl=$("#SearchResultPopup").data("resturl");sppsearch.initExtendedSearch();sppsearch.searchAutocomplete($(".autocomplete-input"))},searchAutocomplete:function(n){n.length&&n.autocomplete({source:function(t,i){$.ajax({url:n.data("public-proxy-path")+"/_autocomplete?prefix="+encodeURIComponent(t.term)+"&size=5&tags="+encodeURIComponent(n.data("search-tags")),success:function(n){i($.map(n.hits,function(n){return{label:n.query,value:n.query}}))}})},minLength:2,open:function(){let n=$(this).data("ui-autocomplete");n.menu.element.find("li").each(function(){let t=$(this).find("div.ui-menu-item-wrapper"),i=$.trim(n.term).split(" ").join("|");t.html(t.text().replace(new RegExp("("+i+")","gi"),"<b>$1<\/b>"))})}})},performAutocomplete:function(n,t){var i;if(t.length<3){$("#SearchResultPopup").hide();$("#SearchResultPopup ul").empty();return}var r=$(n).offset().left,u=$(n).offset().top+$(n).outerHeight(),f=$(n).width()+7;$("#SearchResultPopup").show();$("#SearchResultPopup").offset({left:r,top:u});$("#SearchResultPopup").width(f);t.length>=1&&(i=[],userInput=t,$.get(restUrl+"/_autocomplete?prefix="+t+"&size=10",function(n){$.each(n.hits,function(n,t){i.push(t)});$("#SearchResultPopup ul").empty();$.each($.distinct(i),function(n,t){n===0&&$(".searchbox.tt-hint").val(t.query);var i=$($("#AutocompleteItemTemplate").html().format(t.query,t.query));$("#SearchResultPopup ul").prepend(i)})},"json"));$(document).on({mouseenter:function(){$(this).addClass("selected")},mouseleave:function(){$(this).removeClass("selected")}},"#SearchResultPopup ul li")},performKeyInput:function(n){var i=$("#SearchResultPopup ul li"),t=$("#SearchResultPopup ul li.selected"),r,u;switch(n.which){case 38:t.removeClass("selected");r=t.prev().text().trim();r===""?i.eq(i.length-1).addClass("selected"):t.prev().addClass("selected");t=$("#SearchResultPopup ul li.selected");$(".searchbox.tt-hint").val(t.text().trim());$(".searchbox.tt-input").val(t.text().trim());n.preventDefault();break;case 40:t.removeClass("selected");u=t.next().text().trim();u===""?i.eq(0).addClass("selected"):t.next().addClass("selected");t=$("#SearchResultPopup ul li.selected");$(".searchbox.tt-hint").val(t.text().trim());$(".searchbox.tt-input").val(t.text().trim());n.preventDefault()}},initExtendedSearch:function(){s.maximized=!1;s.animating=!1;s.animSpeed=800;s.initialWidth=$(".navbar-nav .twitter-typeahead").css("width");$(".navbar-nav .search .remove").click(function(){sppsearch.minimizeSearch()});$(".navbar-nav .typeahead.tt-input").blur(function(n){n.preventDefault();s.maximized&&!s.animating&&$(".tt-desktop.typeahead.tt-input").val().trim().length===0&&sppsearch.minimizeSearch()});$(".navbar-nav .typeahead.tt-hint").focus(function(n){n.preventDefault();$("input.searchbox.tt-input.tt-desktop").focus()});$("#searchFieldLarge").focus(function(n){n.preventDefault();s.maximized||s.animating||sppsearch.maximizeSearch()})},minimizeSearch:function(){s.maximized&&!s.animating&&(s.animating=!0,$(".navbar-nav .typeahead").prop("disabled",!0),$(".navbar-nav li.search .remove").toggle(),$(".navbar-nav > li.search").animate({width:s.searchParentWidthPercent+"%"},s.animSpeed),$(".navbar-nav .typeahead").animate({backgroundColor:s.backgroundColor,color:"#fff"},s.animSpeed),$(".navbar-nav .search-icon .search").fadeOut(s.animSpeed/4),setTimeout(function(){$(".navbar-nav .search-icon .search").removeClass("charcoal").removeClass("white").fadeIn(s.animSpeed/2)},s.animSpeed/4),$(".navbar-nav .search-icon").animate({backgroundColor:s.backgroundColor},s.animSpeed),setTimeout(function(){$(".navbar-nav > li.group").toggle();$(".navbar-nav .twitter-typeahead").css("width",s.initialWidth);s.maximized=!1;s.animating=!1;$(".navbar-nav .typeahead").prop("disabled",!1)},s.animSpeed))},maximizeSearch:function(){if(!s.maximized&&!s.animating){s.animating=!0;s.maximized=!0;$(".shadow-overlay").hide();var n=$(".navbar-nav > li.search").css("width");s.backgroundColor=$(".navbar-nav .typeahead").css("background-color");s.searchParentWidthPercent=Math.round(100*(parseInt(n)/$(".navbar-nav").width()));$(".navbar-nav > li.group").toggle();$(".navbar-nav > li.search").css("width","95%");$(".navbar-nav .search-icon .search").fadeOut(s.animSpeed/4);setTimeout(function(){$(".navbar-nav .search-icon .search").removeClass("white").fadeIn(s.animSpeed/2)},s.animSpeed/4);$(".navbar-nav .search-icon").animate({backgroundColor:'"fff'},s.animSpeed);$(".navbar-nav .typeahead").animate({width:"100%",backgroundColor:'"fff',color:"#000"},s.animSpeed);$(".navbar-nav .twitter-typeahead").animate({width:"100%",backgroundColor:'"fff',color:"#000"},s.animSpeed);$(".navbar-nav li.search .remove").attr("id","removeIcon");setTimeout(function(){$(".navbar-nav li.search .remove").toggle();s.animating=!1},s.animSpeed)}}};$(function(){$(".marketCheckIskLabel").prepend("<span><\/span>");$(".input-prepend-span").prepend("<span><\/span>");$(".display-help-for-textbox").on("keyup",function(n){n.preventDefault();var t=$(this).prev("span");$(this).val().length>0?t.fadeIn():t.fadeOut()});$("#radiobuttons1 input").addClass("stb-radio");$(".js-menuLi").on("click",function(){if($(this).hasClass("current"))$(this).addClass("current"),$(this).siblings(".js-menuLi").each(function(n,t){$(t).removeClass("current")});else{$(this).find("#sidebar").remove();$(this).siblings(".js-menuLi").each(function(n,t){$(t).removeClass("current");$(t).find("a > span").first().removeClass("active")});var n=$(this).data("menu-url");$(this).find("#sidebar").remove();document.location.href=n}})});$(document).ready(function(){$(".dateContainer").datetimepicker({format:"L"})});$(function(){var n=document.getElementsByClassName("pw-login-toggle"),t=document.getElementsByClassName("pw-login-toggle-menu"),i,r;document.addEventListener("click",function(u){var e=u.target,f;n.length>0&&t.length>0&&(f=t[0],e==n[0]?i(f):r(f))});i=function(n){n.classList.toggle("is-visible")};r=function(n){n.classList.remove("is-visible")}}),function(n){function g(n,t,i){switch(arguments.length){case 2:return null!=n?n:t;case 3:return null!=n?n:null!=t?t:i;default:throw new Error("Implement me");}}function p(n,t){return nf.call(n,t)}function st(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function ni(n){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function e(n,t){var i=!0;return w(function(){return i&&(ni(n),i=!1),t.apply(this,arguments)},t)}function br(n,t){pr[n]||(ni(t),pr[n]=!0)}function ti(n,t){return function(i){return r(n.call(this,i),t)}}function kr(n,t){return function(i){return this.localeData().ordinal(n.call(this,i),t)}}function ii(){}function rt(n,t){t!==!1&&ai(n);ri(this,n);this._d=new Date(+n._d)}function ht(n){var i=si(n),r=i.year||0,u=i.quarter||0,f=i.month||0,e=i.week||0,o=i.day||0,s=i.hour||0,h=i.minute||0,c=i.second||0,l=i.millisecond||0;this._milliseconds=+l+1e3*c+6e4*h+36e5*s;this._days=+o+7*e;this._months=+f+3*u+12*r;this._data={};this._locale=t.localeData();this._bubble()}function w(n,t){for(var i in t)p(t,i)&&(n[i]=t[i]);return p(t,"toString")&&(n.toString=t.toString),p(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ri(n,t){var u,i,r;if("undefined"!=typeof t._isAMomentObject&&(n._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(n._i=t._i),"undefined"!=typeof t._f&&(n._f=t._f),"undefined"!=typeof t._l&&(n._l=t._l),"undefined"!=typeof t._strict&&(n._strict=t._strict),"undefined"!=typeof t._tzm&&(n._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(n._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(n._offset=t._offset),"undefined"!=typeof t._pf&&(n._pf=t._pf),"undefined"!=typeof t._locale&&(n._locale=t._locale),et.length>0)for(u in et)i=et[u],r=t[i],"undefined"!=typeof r&&(n[i]=r);return n}function o(n){return 0>n?Math.ceil(n):Math.floor(n)}function r(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function ui(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function dr(n,t){var i;return t=ft(t,n),n.isBefore(t)?i=ui(n,t):(i=ui(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function fi(n,i){return function(r,u){var f,e;return null===u||isNaN(+u)||(br(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period)."),e=r,r=u,u=e),r="string"==typeof r?+r:r,f=t.duration(r,u),ei(this,f,n),this}}function ei(n,i,r,u){var o=i._milliseconds,f=i._days,e=i._months;u=null==u?!0:u;o&&n._d.setTime(+n._d+o*r);f&&tr(n,"Date",pt(n,"Date")+f*r);e&&nr(n,pt(n,"Month")+e*r);u&&t.updateOffset(n,f||e)}function ut(n){return"[object Array]"===Object.prototype.toString.call(n)}function gr(n){return"[object Date]"===Object.prototype.toString.call(n)||n instanceof Date}function oi(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;e>u;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function f(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=kf[n]||df[t]||t}return n}function si(n){var i,t,r={};for(t in n)p(n,t)&&(i=f(t),i&&(r[i]=n[t]));return r}function nu(i){var r,u;if(0===i.indexOf("week"))r=7,u="day";else{if(0!==i.indexOf("month"))return;r=12;u="month"}t[i]=function(f,e){var o,s,c=t._locale[i],h=[];if("number"==typeof f&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t._locale,i,f||"")},null!=e)return s(e);for(o=0;r>o;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function ct(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function hi(n,i,r){return b(t([n,11,31+i-r]),i,r).week}function ci(n){return li(n)?366:365}function li(n){return n%4==0&&n%100!=0||n%400==0}function ai(n){var t;n._a&&-2===n._pf.overflow&&(t=n._a[l]<0||n._a[l]>11?l:n._a[s]<1||n._a[s]>ct(n._a[c],n._a[l])?s:n._a[a]<0||n._a[a]>23?a:n._a[nt]<0||n._a[nt]>59?nt:n._a[tt]<0||n._a[tt]>59?tt:n._a[it]<0||n._a[it]>999?it:-1,n._pf._overflowDayOfYear&&(c>t||t>s)&&(t=s),n._pf.overflow=t)}function vi(n){return null==n._isValid&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&0===n._pf.charsLeftOver&&0===n._pf.unusedTokens.length)),n._isValid}function yi(n){return n?n.toLowerCase().replace("_","-"):n}function tu(n){for(var i,t,f,r,u=0;u<n.length;){for(r=yi(n[u]).split("-"),i=r.length,t=yi(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=pi(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&oi(r,t,!0)>=i-1)break;i--}u++}return null}function pi(n){var i=null;if(!d[n]&&er)try{i=t.locale();require("./locale/"+n);t.locale(i)}catch(r){}return d[n]}function ft(n,i){return i._isUTC?t(n).zone(i._offset||0):t(n).local()}function iu(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ru(n){for(var i=n.match(or),t=0,r=i.length;r>t;t++)i[t]=v[i[t]]?v[i[t]]:iu(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function lt(n,t){return n.isValid()?(t=wi(t,n.localeData()),gt[t]||(gt[t]=ru(t)),gt[t](n)):n.localeData().invalidDate()}function wi(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ot.lastIndex=0;i>=0&&ot.test(n);)n=n.replace(ot,r),ot.lastIndex=0,i-=1;return n}function uu(n,t){var i=t._strict;switch(n){case"Q":return hr;case"DDDD":return lr;case"YYYY":case"GGGG":case"gggg":return i?vf:ef;case"Y":case"G":case"g":return pf;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?yf:of;case"S":if(i)return hr;case"SS":if(i)return cr;case"SSS":if(i)return lr;case"DDD":return ff;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return hf;case"a":case"A":return t._locale._meridiemParse;case"X":return lf;case"Z":case"ZZ":return bt;case"T":return cf;case"SSSS":return sf;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?cr:sr;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return sr;case"Do":return af;default:return new RegExp(cu(hu(n.replace("\\","")),"i"))}}function bi(n){n=n||"";var r=n.match(bt)||[],f=r[r.length-1]||[],t=(f+"").match(bf)||["-",0,0],u=+(60*t[1])+i(t[2]);return"+"===t[0]?-u:u}function fu(n,r,u){var e,f=u._a;switch(n){case"Q":null!=r&&(f[l]=3*(i(r)-1));break;case"M":case"MM":null!=r&&(f[l]=i(r)-1);break;case"MMM":case"MMMM":e=u._locale.monthsParse(r);null!=e?f[l]=e:u._pf.invalidMonth=r;break;case"D":case"DD":null!=r&&(f[s]=i(r));break;case"Do":null!=r&&(f[s]=i(parseInt(r,10)));break;case"DDD":case"DDDD":null!=r&&(u._dayOfYear=i(r));break;case"YY":f[c]=t.parseTwoDigitYear(r);break;case"YYYY":case"YYYYY":case"YYYYYY":f[c]=i(r);break;case"a":case"A":u._isPm=u._locale.isPM(r);break;case"H":case"HH":case"h":case"hh":f[a]=i(r);break;case"m":case"mm":f[nt]=i(r);break;case"s":case"ss":f[tt]=i(r);break;case"S":case"SS":case"SSS":case"SSSS":f[it]=i(1e3*("0."+r));break;case"X":u._d=new Date(1e3*parseFloat(r));break;case"Z":case"ZZ":u._useUTC=!0;u._tzm=bi(r);break;case"dd":case"ddd":case"dddd":e=u._locale.weekdaysParse(r);null!=e?(u._w=u._w||{},u._w.d=e):u._pf.invalidWeekday=r;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":n=n.substr(0,1);case"gggg":case"GGGG":case"GGGGG":n=n.substr(0,2);r&&(u._w=u._w||{},u._w[n]=i(r));break;case"gg":case"GG":u._w=u._w||{};u._w[n]=t.parseTwoDigitYear(r)}}function eu(n){var i,o,f,u,r,e,s;i=n._w;null!=i.GG||null!=i.W||null!=i.E?(r=1,e=4,o=g(i.GG,n._a[c],b(t(),1,4).year),f=g(i.W,1),u=g(i.E,1)):(r=n._locale._week.dow,e=n._locale._week.doy,o=g(i.gg,n._a[c],b(t(),r,e).year),f=g(i.w,1),null!=i.d?(u=i.d,r>u&&++f):u=null!=i.e?i.e+r:r);s=du(o,f,u,e,r);n._a[c]=s.year;n._dayOfYear=s.dayOfYear}function at(n){var t,i,r,u,f=[];if(!n._d){for(r=su(n),n._w&&null==n._a[s]&&null==n._a[l]&&eu(n),n._dayOfYear&&(u=g(n._a[c],r[c]),n._dayOfYear>ci(u)&&(n._pf._overflowDayOfYear=!0),i=yt(u,0,n._dayOfYear),n._a[l]=i.getUTCMonth(),n._a[s]=i.getUTCDate()),t=0;3>t&&null==n._a[t];++t)n._a[t]=f[t]=r[t];for(;7>t;t++)n._a[t]=f[t]=null==n._a[t]?2===t?1:0:n._a[t];n._d=(n._useUTC?yt:pu).apply(null,f);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()+n._tzm)}}function ou(n){var t;n._d||(t=si(n._i),n._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],at(n))}function su(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function vt(n){if(n._f===t.ISO_8601)return void ki(n);n._a=[];n._pf.empty=!0;for(var i,u,o,r=""+n._i,h=r.length,s=0,e=wi(n._f,n._locale).match(or)||[],f=0;f<e.length;f++)u=e[f],i=(r.match(uu(u,n))||[])[0],i&&(o=r.substr(0,r.indexOf(i)),o.length>0&&n._pf.unusedInput.push(o),r=r.slice(r.indexOf(i)+i.length),s+=i.length),v[u]?(i?n._pf.empty=!1:n._pf.unusedTokens.push(u),fu(u,i,n)):n._strict&&!i&&n._pf.unusedTokens.push(u);n._pf.charsLeftOver=h-s;r.length>0&&n._pf.unusedInput.push(r);n._isPm&&n._a[a]<12&&(n._a[a]+=12);n._isPm===!1&&12===n._a[a]&&(n._a[a]=0);at(n);ai(n)}function hu(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function cu(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function lu(n){var t,f,u,r,i;if(0===n._f.length)return n._pf.invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=ri({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._pf=st(),t._f=n._f[r],vt(t),vi(t)&&(i+=t._pf.charsLeftOver,i+=10*t._pf.unusedTokens.length,t._pf.score=i,(null==u||u>i)&&(u=i,f=t));w(n,f||t)}function ki(n){var t,i,r=n._i,u=wf.exec(r);if(u){for(n._pf.iso=!0,t=0,i=kt.length;i>t;t++)if(kt[t][1].exec(r)){n._f=kt[t][0]+(u[6]||" ");break}for(t=0,i=dt.length;i>t;t++)if(dt[t][1].exec(r)){n._f+=dt[t][0];break}r.match(bt)&&(n._f+="Z");vt(n)}else n._isValid=!1}function au(n){ki(n);n._isValid===!1&&(delete n._isValid,t.createFromInputFallback(n))}function vu(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function yu(i){var u,r=i._i;r===n?i._d=new Date:gr(r)?i._d=new Date(+r):null!==(u=tf.exec(r))?i._d=new Date(+u[1]):"string"==typeof r?au(i):ut(r)?(i._a=vu(r.slice(0),function(n){return parseInt(n,10)}),at(i)):"object"==typeof r?ou(i):"number"==typeof r?i._d=new Date(r):t.createFromInputFallback(i)}function pu(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 1970>n&&o.setFullYear(n),o}function yt(n){var t=new Date(Date.UTC.apply(null,arguments));return 1970>n&&t.setUTCFullYear(n),t}function wu(n,t){if("string"==typeof n)if(isNaN(n)){if(n=t.weekdaysParse(n),"number"!=typeof n)return null}else n=parseInt(n,10);return n}function bu(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function ku(n,i,r){var u=t.duration(n).abs(),c=k(u.as("s")),e=k(u.as("m")),o=k(u.as("h")),s=k(u.as("d")),h=k(u.as("M")),l=k(u.as("y")),f=c<y.s&&["s",c]||1===e&&["m"]||e<y.m&&["mm",e]||1===o&&["h"]||o<y.h&&["hh",o]||1===s&&["d"]||s<y.d&&["dd",s]||1===h&&["M"]||h<y.M&&["MM",h]||1===l&&["y"]||["yy",l];return f[2]=i,f[3]=+n>0,f[4]=r,bu.apply({},f)}function b(n,i,r){var f,e=r-i,u=r-n.day();return u>e&&(u-=7),e-7>u&&(u+=7),f=t(n).add(u,"d"),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function du(n,t,i,r,u){var o,e,f=yt(n,0,1).getUTCDay();return f=0===f?7:f,i=null!=i?i:u,o=u-f+(f>r?7:0)-(u>f?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:ci(n-1)+e}}function di(i){var r=i._i,u=i._f;return i._locale=i._locale||t.localeData(i._l),null===r||u===n&&""===r?t.invalid({nullInput:!0}):("string"==typeof r&&(i._i=r=i._locale.preparse(r)),t.isMoment(r)?new rt(r,!0):(u?ut(u)?lu(i):vt(i):yu(i),new rt(i)))}function gi(n,i){var u,r;if(1===i.length&&ut(i[0])&&(i=i[0]),!i.length)return t();for(u=i[0],r=1;r<i.length;++r)i[r][n](u)&&(u=i[r]);return u}function nr(n,t){var i;return"string"==typeof t&&(t=n.localeData().monthsParse(t),"number"!=typeof t)?n:(i=Math.min(n.date(),ct(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function pt(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function tr(n,t,i){return"Month"===t?nr(n,i):n._d["set"+(n._isUTC?"UTC":"")+t](i)}function h(n,i){return function(r){return null!=r?(tr(this,n,r),t.updateOffset(this,i),this):pt(this,n)}}function ir(n){return 400*n/146097}function rr(n){return 146097*n/400}function gu(n){t.duration.fn[n]=function(){return this._data[n]}}function ur(n){"undefined"==typeof ender&&(fr=wt.moment,wt.moment=n?e("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",t):t)}for(var t,fr,u,wt="undefined"!=typeof global?global:this,k=Math.round,nf=Object.prototype.hasOwnProperty,c=0,l=1,s=2,a=3,nt=4,tt=5,it=6,d={},et=[],er="undefined"!=typeof module&&module.exports,tf=/^\/?Date\((\-?\d+)/i,rf=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,uf=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,or=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,ot=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,sr=/\d\d?/,ff=/\d{1,3}/,ef=/\d{1,4}/,of=/[+\-]?\d{1,6}/,sf=/\d+/,hf=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,bt=/Z|[\+\-]\d\d:?\d\d/gi,cf=/T/i,lf=/[\+\-]?\d+(\.\d{1,3})?/,af=/\d{1,2}/,hr=/\d/,cr=/\d\d/,lr=/\d{3}/,vf=/\d{4}/,yf=/[+-]?\d{6}/,pf=/[+-]?\d+/,wf=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],dt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],bf=/([\+\-]|\d\d)/gi,ar=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),kf={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},df={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},gt={},y={s:45,m:45,h:22,d:26,M:11},vr="DDD w W M D d".split(" "),yr="M D H h m s w W".split(" "),v={M:function(){return this.month()+1},MMM:function(n){return this.localeData().monthsShort(this,n)},MMMM:function(n){return this.localeData().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.localeData().weekdaysMin(this,n)},ddd:function(n){return this.localeData().weekdaysShort(this,n)},dddd:function(n){return this.localeData().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var n=this.year(),t=n>=0?"+":"-";return t+r(Math.abs(n),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return r(i(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+r(i(n/60),2)+":"+r(i(n)%60,2)},ZZ:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+r(i(n/60),2)+r(i(n)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},pr={},wr=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];vr.length;)u=vr.pop(),v[u+"o"]=kr(v[u],u);for(;yr.length;)u=yr.pop(),v[u+u]=ti(v[u],2);for(v.DDDD=ti(v.DDD,3),w(ii.prototype,{set:function(n){var t;for(var i in n)t=n[i],"function"==typeof t?this[i]=t:this["_"+i]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n){var i,r,u;for(this._monthsParse||(this._monthsParse=[]),i=0;12>i;i++)if(this._monthsParse[i]||(r=t.utc([2e3,i]),u="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),this._monthsParse[i].test(n))return i},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;7>i;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return"p"===(n+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t){var i=this._calendar[n];return"function"==typeof i?i.apply(t):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return"function"==typeof u?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",preparse:function(n){return n},postformat:function(n){return n},week:function(n){return b(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f={},f._isAMomentObject=!0,f._i=t,f._f=i,f._l=r,f._strict=u,f._isUTC=!1,f._pf=st(),di(f)},t.suppressDeprecationWarnings=!1,t.createFromInputFallback=e("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i)}),t.min=function(){var n=[].slice.call(arguments,0);return gi("isBefore",n)},t.max=function(){var n=[].slice.call(arguments,0);return gi("isAfter",n)},t.utc=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f={},f._isAMomentObject=!0,f._useUTC=!0,f._isUTC=!0,f._l=r,f._i=t,f._f=i,f._strict=u,f._pf=st(),di(f).utc()},t.unix=function(n){return t(1e3*n)},t.duration=function(n,r){var e,h,o,c,f=n,u=null;return t.isDuration(n)?f={ms:n._milliseconds,d:n._days,M:n._months}:"number"==typeof n?(f={},r?f[r]=n:f.milliseconds=n):(u=rf.exec(n))?(e="-"===u[1]?-1:1,f={y:0,d:i(u[s])*e,h:i(u[a])*e,m:i(u[nt])*e,s:i(u[tt])*e,ms:i(u[it])*e}):(u=uf.exec(n))?(e="-"===u[1]?-1:1,o=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e},f={y:o(u[2]),M:o(u[3]),d:o(u[4]),h:o(u[5]),m:o(u[6]),s:o(u[7]),w:o(u[8])}):"object"==typeof f&&("from"in f||"to"in f)&&(c=dr(t(f.from),t(f.to)),f={},f.ms=c.milliseconds,f.M=c.months),h=new ht(f),t.isDuration(n)&&p(n,"_locale")&&(h._locale=n._locale),h},t.version="2.8.3",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.ISO_8601=function(){},t.momentProperties=et,t.updateOffset=function(){},t.relativeTimeThreshold=function(t,i){return y[t]===n?!1:i===n?y[t]:(y[t]=i,!0)},t.lang=e("moment.lang is deprecated. Use moment.locale instead.",function(n,i){return t.locale(n,i)}),t.locale=function(n,i){var r;return n&&(r="undefined"!=typeof i?t.defineLocale(n,i):t.localeData(n),r&&(t.duration._locale=t._locale=r)),t._locale._abbr},t.defineLocale=function(n,i){return null!==i?(i.abbr=n,d[n]||(d[n]=new ii),d[n].set(i),t.locale(n),d[n]):(delete d[n],null)},t.langData=e("moment.langData is deprecated. Use moment.localeData instead.",function(n){return t.localeData(n)}),t.localeData=function(n){var i;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return t._locale;if(!ut(n)){if(i=pi(n))return i;n=[n]}return tu(n)},t.isMoment=function(n){return n instanceof rt||null!=n&&p(n,"_isAMomentObject")},t.isDuration=function(n){return n instanceof ht},u=wr.length-1;u>=0;--u)nu(wr[u]);t.normalizeUnits=function(n){return f(n)};t.invalid=function(n){var i=t.utc(NaN);return null!=n?w(i._pf,n):i._pf.userInvalidated=!0,i};t.parseZone=function(){return t.apply(null,arguments).parseZone()};t.parseTwoDigitYear=function(n){return i(n)+(i(n)>68?1900:2e3)};w(t.fn=rt.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var n=t(this).utc();return 0<n.year()&&n.year()<=9999?lt(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):lt(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return vi(this)},isDSTShifted:function(){return this._a?this.isValid()&&oi(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return w({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(n){return this.zone(0,n)},local:function(n){return this._isUTC&&(this.zone(0,n),this._isUTC=!1,n&&this.add(this._dateTzOffset(),"m")),this},format:function(n){var i=lt(this,n||t.defaultFormat);return this.localeData().postformat(i)},add:fi(1,"add"),subtract:fi(-1,"subtract"),diff:function(n,i,r){var u,s,h,e=ft(n,this),c=6e4*(this.zone()-e.zone());return i=f(i),"year"===i||"month"===i?(u=432e5*(this.daysInMonth()+e.daysInMonth()),s=12*(this.year()-e.year())+(this.month()-e.month()),h=this-t(this).startOf("month")-(e-t(e).startOf("month")),h-=6e4*(this.zone()-t(this).startOf("month").zone()-(e.zone()-t(e).startOf("month").zone())),s+=h/u,"year"===i&&(s/=12)):(u=this-e,s="second"===i?u/1e3:"minute"===i?u/6e4:"hour"===i?u/36e5:"day"===i?(u-c)/864e5:"week"===i?(u-c)/6048e5:u),r?s:o(s)},from:function(n,i){return t.duration({to:this,from:n}).locale(this.locale()).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(n){var r=n||t(),u=ft(r,this).startOf("day"),i=this.diff(u,"days",!0),f=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(this.localeData().calendar(f,this))},isLeapYear:function(){return li(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=wu(n,this.localeData()),this.add(n-t,"d")):t},month:h("Month",!0),startOf:function(n){switch(n=f(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n?this.weekday(0):"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(n){return n=f(n),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms")},isAfter:function(n,i){return i=f("undefined"!=typeof i?i:"millisecond"),"millisecond"===i?(n=t.isMoment(n)?n:t(n),+this>+n):+this.clone().startOf(i)>+t(n).startOf(i)},isBefore:function(n,i){return i=f("undefined"!=typeof i?i:"millisecond"),"millisecond"===i?(n=t.isMoment(n)?n:t(n),+n>+this):+this.clone().startOf(i)<+t(n).startOf(i)},isSame:function(n,i){return i=f(i||"millisecond"),"millisecond"===i?(n=t.isMoment(n)?n:t(n),+this==+n):+this.clone().startOf(i)==+ft(n,this).startOf(i)},min:e("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),this>n?this:n}),max:e("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),n>this?this:n}),zone:function(n,i){var r,u=this._offset||0;return null==n?this._isUTC?u:this._dateTzOffset():("string"==typeof n&&(n=bi(n)),Math.abs(n)<16&&(n=60*n),!this._isUTC&&i&&(r=this._dateTzOffset()),this._offset=n,this._isUTC=!0,null!=r&&this.subtract(r,"m"),u!==n&&(!i||this._changeInProgress?ei(this,t.duration(u-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,(this.zone()-n)%60==0},daysInMonth:function(){return ct(this.year(),this.month())},dayOfYear:function(n){var i=k((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return null==n?i:this.add(n-i,"d")},quarter:function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)},weekYear:function(n){var t=b(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==n?t:this.add(n-t,"y")},isoWeekYear:function(n){var t=b(this,1,4).year;return null==n?t:this.add(n-t,"y")},week:function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")},isoWeek:function(n){var t=b(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")},weekday:function(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")},isoWeekday:function(n){return null==n?this.day()||7:this.day(this.day()%7?n:n-7)},isoWeeksInYear:function(){return hi(this.year(),1,4)},weeksInYear:function(){var n=this.localeData()._week;return hi(this.year(),n.dow,n.doy)},get:function(n){return n=f(n),this[n]()},set:function(n,t){return n=f(n),"function"==typeof this[n]&&this[n](t),this},locale:function(i){var r;return i===n?this._locale._abbr:(r=t.localeData(i),null!=r&&(this._locale=r),this)},lang:e("moment().lang() is deprecated. Use moment().localeData() instead.",function(t){return t===n?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}});t.fn.millisecond=t.fn.milliseconds=h("Milliseconds",!1);t.fn.second=t.fn.seconds=h("Seconds",!1);t.fn.minute=t.fn.minutes=h("Minutes",!1);t.fn.hour=t.fn.hours=h("Hours",!0);t.fn.date=h("Date",!0);t.fn.dates=e("dates accessor is deprecated. Use date instead.",h("Date",!0));t.fn.year=h("FullYear",!0);t.fn.years=e("years accessor is deprecated. Use year instead.",h("FullYear",!0));t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.quarters=t.fn.quarter;t.fn.toJSON=t.fn.toISOString;w(t.duration.fn=ht.prototype,{_bubble:function(){var u,f,e,s=this._milliseconds,t=this._days,i=this._months,n=this._data,r=0;n.milliseconds=s%1e3;u=o(s/1e3);n.seconds=u%60;f=o(u/60);n.minutes=f%60;e=o(f/60);n.hours=e%24;t+=o(e/24);r=o(ir(t));t-=o(rr(r));i+=o(t/30);t%=30;r+=o(i/12);i%=12;n.days=t;n.months=i;n.years=r},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return o(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*i(this._months/12)},humanize:function(n){var t=ku(this,!n,this.localeData());return n&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=f(n),this[n.toLowerCase()+"s"]()},as:function(n){var t,i;if(n=f(n),"month"===n||"year"===n)return t=this._days+this._milliseconds/864e5,i=this._months+12*ir(t),"month"===n?i:i/12;switch(t=this._days+rr(this._months/12),n){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 1440*t+this._milliseconds/6e4;case"second":return 86400*t+this._milliseconds/1e3;case"millisecond":return Math.floor(864e5*t)+this._milliseconds;default:throw new Error("Unknown unit "+n);}},lang:t.fn.lang,locale:t.fn.locale,toIsoString:e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale}});t.duration.fn.toString=t.duration.fn.toISOString;for(u in ar)p(ar,u)&&gu(u.toLowerCase());t.duration.fn.asMilliseconds=function(){return this.as("ms")};t.duration.fn.asSeconds=function(){return this.as("s")};t.duration.fn.asMinutes=function(){return this.as("m")};t.duration.fn.asHours=function(){return this.as("h")};t.duration.fn.asDays=function(){return this.as("d")};t.duration.fn.asWeeks=function(){return this.as("weeks")};t.duration.fn.asMonths=function(){return this.as("M")};t.duration.fn.asYears=function(){return this.as("y")};t.locale("en",{ordinal:function(n){var t=n%10,r=1===i(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+r}});er?module.exports=t:"function"==typeof define&&define.amd?(define("moment",function(n,i,r){return r.config&&r.config()&&r.config().noGlobal===!0&&(wt.moment=fr),t}),ur(!0)):ur()}.call(this),function(n,t){typeof exports=="object"&&typeof module!="undefined"&&typeof require=="function"?t(require("../moment")):typeof define=="function"&&define.amd?define(["moment"],t):t(n.moment)}(this,function(n){"use strict";return n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"e":t===1?"a":t===2?"a":t===3?"e":"e";return n+i},week:{dow:1,doy:4}})});!function(n,t){"use strict";if("function"==typeof define&&define.amd)define(["../bower_components/jquery/jquery","moment"],t);else if("object"==typeof exports)t(require("jquery"),require("moment"));else{if(!jQuery)throw new Error("bootstrap-datetimepicker requires jQuery to be loaded first");if(!moment)throw new Error("bootstrap-datetimepicker requires moment.js to be loaded first");t(n.jQuery,moment)}}(this,function(n,t){"use strict";if("undefined"==typeof t)throw new Error("momentjs is required");var i=0,r=function(r,u){var g,ht=n.fn.datetimepicker.defaults,ct={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},f=this,nt=!1,lt=function(){var s,h,o=!1;if(f.options=n.extend({},ht,u),f.options.icons=n.extend({},ct,f.options.icons),f.element=n(r),at(),!f.options.pickTime&&!f.options.pickDate)throw new Error("Must choose at least one picker");if(f.id=i++,t.locale(f.options.language),f.date=t(),f.unset=!1,f.isInput=f.element.is("input"),f.component=!1,f.element.hasClass("input-group")&&(f.component=f.element.find(0===f.element.find(".datepickerbutton").size()?'[class^="input-group-"]':".datepickerbutton")),f.format=f.options.format,s=t().localeData(),f.format||(f.format=f.options.pickDate?s.longDateFormat("L"):"",f.options.pickDate&&f.options.pickTime&&(f.format+=" "),f.format+=f.options.pickTime?s.longDateFormat("LT"):"",f.options.useSeconds&&(-1!==s.longDateFormat("LT").indexOf(" A")?f.format=f.format.split(" A")[0]+":ss A":f.format+=":ss")),f.use24hours=f.format.toLowerCase().indexOf("a")<0&&f.format.indexOf("h")<0,f.component&&(o=f.component.find("span")),f.options.pickTime&&o&&o.addClass(f.options.icons.time),f.options.pickDate&&o&&(o.removeClass(f.options.icons.time),o.addClass(f.options.icons.date)),f.options.widgetParent="string"==typeof f.options.widgetParent&&f.options.widgetParent||f.element.parents().filter(function(){return"scroll"===n(this).css("overflow-y")}).get(0)||"body",f.widget=n(ii()).appendTo(f.options.widgetParent),f.minViewMode=f.options.minViewMode||0,"string"==typeof f.minViewMode)switch(f.minViewMode){case"months":f.minViewMode=1;break;case"years":f.minViewMode=2;break;default:f.minViewMode=0}if(f.viewMode=f.options.viewMode||0,"string"==typeof f.viewMode)switch(f.viewMode){case"months":f.viewMode=1;break;case"years":f.viewMode=2;break;default:f.viewMode=0}f.viewMode=Math.max(f.viewMode,f.minViewMode);f.options.disabledDates=d(f.options.disabledDates);f.options.enabledDates=d(f.options.enabledDates);f.startViewMode=f.viewMode;f.setMinDate(f.options.minDate);f.setMaxDate(f.options.maxDate);vt();yt();pt();wt();bt();c();b();e().prop("disabled")||ft();""!==f.options.defaultDate&&""===e().val()&&f.setValue(f.options.defaultDate);1!==f.options.minuteStepping&&(h=f.options.minuteStepping,f.date.minutes(Math.round(f.date.minutes()/h)*h%60).seconds(0))},e=function(){var n;if(f.isInput)return f.element;if(n=f.element.find(".datepickerinput"),0===n.size())n=f.element.find("input");else if(!n.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return n},at=function(){var n;n=f.element.is("input")?f.element.data():f.element.find("input").data();void 0!==n.dateFormat&&(f.options.format=n.dateFormat);void 0!==n.datePickdate&&(f.options.pickDate=n.datePickdate);void 0!==n.datePicktime&&(f.options.pickTime=n.datePicktime);void 0!==n.dateUseminutes&&(f.options.useMinutes=n.dateUseminutes);void 0!==n.dateUseseconds&&(f.options.useSeconds=n.dateUseseconds);void 0!==n.dateUsecurrent&&(f.options.useCurrent=n.dateUsecurrent);void 0!==n.calendarWeeks&&(f.options.calendarWeeks=n.calendarWeeks);void 0!==n.dateMinutestepping&&(f.options.minuteStepping=n.dateMinutestepping);void 0!==n.dateMindate&&(f.options.minDate=n.dateMindate);void 0!==n.dateMaxdate&&(f.options.maxDate=n.dateMaxdate);void 0!==n.dateShowtoday&&(f.options.showToday=n.dateShowtoday);void 0!==n.dateCollapse&&(f.options.collapse=n.dateCollapse);void 0!==n.dateLanguage&&(f.options.language=n.dateLanguage);void 0!==n.dateDefaultdate&&(f.options.defaultDate=n.dateDefaultdate);void 0!==n.dateDisableddates&&(f.options.disabledDates=n.dateDisableddates);void 0!==n.dateEnableddates&&(f.options.enabledDates=n.dateEnableddates);void 0!==n.dateIcons&&(f.options.icons=n.dateIcons);void 0!==n.dateUsestrict&&(f.options.useStrict=n.dateUsestrict);void 0!==n.dateDirection&&(f.options.direction=n.dateDirection);void 0!==n.dateSidebyside&&(f.options.sideBySide=n.dateSidebyside);void 0!==n.dateDaysofweekdisabled&&(f.options.daysOfWeekDisabled=n.dateDaysofweekdisabled)},ut=function(){var r,u="absolute",t=f.component?f.component.offset():f.element.offset(),i=n(window);f.width=f.component?f.component.outerWidth():f.element.outerWidth();t.top=t.top+f.element.outerHeight();"up"===f.options.direction?r="top":"bottom"===f.options.direction?r="bottom":"auto"===f.options.direction&&(r=t.top+f.widget.height()>i.height()+i.scrollTop()&&f.widget.height()+f.element.outerHeight()<t.top?"top":"bottom");"top"===r?(t.bottom=i.height()-t.top+f.element.outerHeight()+3,f.widget.addClass("top").removeClass("bottom")):(t.top+=1,f.widget.addClass("bottom").removeClass("top"));void 0!==f.options.width&&f.widget.width(f.options.width);"left"===f.options.orientation&&(f.widget.addClass("left-oriented"),t.left=t.left-f.widget.width()+20);ti()&&(u="fixed",t.top-=i.scrollTop(),t.left-=i.scrollLeft());i.width()<t.left+f.widget.outerWidth()?(t.right=i.width()-t.left-f.width,t.left="auto",f.widget.addClass("pull-right")):(t.right="auto",f.widget.removeClass("pull-right"));f.widget.css("top"===r?{position:u,bottom:t.bottom,top:"auto",left:t.left,right:t.right}:{position:u,top:t.top,bottom:"auto",left:t.left,right:t.right})},o=function(n,i){(!t(f.date).isSame(t(n))||nt)&&(nt=!1,f.element.trigger({type:"dp.change",date:t(f.date),oldDate:t(n)}),"change"!==i&&f.element.change())},tt=function(n){nt=!0;f.element.trigger({type:"dp.error",date:t(n,f.format,f.options.useStrict)})},c=function(n){t.locale(f.options.language);var i=n;i||(i=e().val(),i&&(f.date=t(i,f.format,f.options.useStrict)),f.date||(f.date=t()));f.viewDate=t(f.date).startOf("month");v();it()},vt=function(){t.locale(f.options.language);var i,r=n("<tr>"),u=t.weekdaysMin();if(f.options.calendarWeeks===!0&&r.append('<th class="cw">#<\/th>'),0===t().localeData()._week.dow)for(i=0;7>i;i++)r.append('<th class="dow">'+u[i]+"<\/th>");else for(i=1;8>i;i++)r.append(7===i?'<th class="dow">'+u[0]+"<\/th>":'<th class="dow">'+u[i]+"<\/th>");f.widget.find(".datepicker-days thead").append(r)},yt=function(){t.locale(f.options.language);for(var i="",r=t.monthsShort(),n=0;12>n;n++)i+='<span class="month">'+r[n]+"<\/span>";f.widget.find(".datepicker-months td").append(i)},v=function(){if(f.options.pickDate){t.locale(f.options.language);var y,r,p,a,e,u,w,b,v,i=f.viewDate.year(),h=f.viewDate.month(),o=f.options.minDate.year(),d=f.options.minDate.month(),s=f.options.maxDate.year(),g=f.options.maxDate.month(),c=[],l=t.months();for(f.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),f.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),f.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),f.widget.find(".datepicker-days th:eq(1)").text(l[h]+" "+i),r=t(f.viewDate,f.format,f.options.useStrict).subtract(1,"months"),w=r.daysInMonth(),r.date(w).startOf("week"),(i===o&&d>=h||o>i)&&f.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(i===s&&h>=g||i>s)&&f.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),p=t(r).add(42,"d");r.isBefore(p);){if(r.weekday()===t().startOf("week").weekday()&&(a=n("<tr>"),c.push(a),f.options.calendarWeeks===!0&&a.append('<td class="cw">'+r.week()+"<\/td>")),e="",r.year()<i||r.year()===i&&r.month()<h?e+=" old":(r.year()>i||r.year()===i&&r.month()>h)&&(e+=" new"),r.isSame(t({y:f.date.year(),M:f.date.month(),d:f.date.date()}))&&(e+=" active"),(k(r,"day")||!st(r))&&(e+=" disabled"),f.options.showToday===!0&&r.isSame(t(),"day")&&(e+=" today"),f.options.daysOfWeekDisabled)for(u=0;u<f.options.daysOfWeekDisabled.length;u++)if(r.day()===f.options.daysOfWeekDisabled[u]){e+=" disabled";break}a.append('<td class="day'+e+'">'+r.date()+"<\/td>");y=r.date();r.add(1,"d");y===r.date()&&r.add(1,"d")}for(f.widget.find(".datepicker-days tbody").empty().append(c),v=f.date.year(),l=f.widget.find(".datepicker-months").find("th:eq(1)").text(i).end().find("span").removeClass("active"),v===i&&l.eq(f.date.month()).addClass("active"),o>i-1&&f.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),i+1>s&&f.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),u=0;12>u;u++)i===o&&d>u||o>i?n(l[u]).addClass("disabled"):(i===s&&u>g||i>s)&&n(l[u]).addClass("disabled");for(c="",i=10*parseInt(i/10,10),b=f.widget.find(".datepicker-years").find("th:eq(1)").text(i+"-"+(i+9)).parents("table").find("td"),f.widget.find(".datepicker-years").find("th").removeClass("disabled"),o>i&&f.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),i+9>s&&f.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),i-=1,u=-1;11>u;u++)c+='<span class="year'+(-1===u||10===u?" old":"")+(v===i?" active":"")+(o>i||i>s?" disabled":"")+'">'+i+"<\/span>",i+=1;b.html(c)}},pt=function(){t.locale(f.options.language);var i,r,u,e=f.widget.find(".timepicker .timepicker-hours table"),n="";if(e.parent().hide(),f.use24hours)for(i=0,r=0;6>r;r+=1){for(n+="<tr>",u=0;4>u;u+=1)n+='<td class="hour">'+s(i.toString())+"<\/td>",i++;n+="<\/tr>"}else for(i=1,r=0;3>r;r+=1){for(n+="<tr>",u=0;4>u;u+=1)n+='<td class="hour">'+s(i.toString())+"<\/td>",i++;n+="<\/tr>"}e.html(n)},wt=function(){var i,r,e=f.widget.find(".timepicker .timepicker-minutes table"),n="",u=0,t=f.options.minuteStepping;for(e.parent().hide(),1===t&&(t=5),i=0;i<Math.ceil(15/t);i++){for(n+="<tr>",r=0;4>r;r+=1)60>u?(n+='<td class="minute">'+s(u.toString())+"<\/td>",u+=t):n+="<td><\/td>";n+="<\/tr>"}e.html(n)},bt=function(){var t,i,r=f.widget.find(".timepicker .timepicker-seconds table"),n="",u=0;for(r.parent().hide(),t=0;3>t;t++){for(n+="<tr>",i=0;4>i;i+=1)n+='<td class="second">'+s(u.toString())+"<\/td>",u+=5;n+="<\/tr>"}r.html(n)},it=function(){if(f.date){var t=f.widget.find(".timepicker span[data-time-component]"),n=f.date.hours(),i=f.date.format("A");f.use24hours||(0===n?n=12:12!==n&&(n%=12),f.widget.find(".timepicker [data-action=togglePeriod]").text(i));t.filter("[data-time-component=hours]").text(s(n));t.filter("[data-time-component=minutes]").text(s(f.date.minutes()));t.filter("[data-time-component=seconds]").text(s(f.date.second()))}},kt=function(i){i.stopPropagation();i.preventDefault();f.unset=!1;var u,e,s,h,r=n(i.target).closest("span, td, th"),c=t(f.date);if(1===r.length&&!r.is(".disabled"))switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"picker-switch":b(1);break;case"prev":case"next":s=rt.modes[f.viewMode].navStep;"prev"===r[0].className&&(s=-1*s);f.viewDate.add(s,rt.modes[f.viewMode].navFnc);v()}break;case"span":r.is(".month")?(u=r.parent().find("span").index(r),f.viewDate.month(u)):(e=parseInt(r.text(),10)||0,f.viewDate.year(e));f.viewMode===f.minViewMode&&(f.date=t({y:f.viewDate.year(),M:f.viewDate.month(),d:f.viewDate.date(),h:f.date.hours(),m:f.date.minutes(),s:f.date.seconds()}),l(),o(c,i.type));b(-1);v();break;case"td":r.is(".day")&&(h=parseInt(r.text(),10)||1,u=f.viewDate.month(),e=f.viewDate.year(),r.is(".old")?0===u?(u=11,e-=1):u-=1:r.is(".new")&&(11===u?(u=0,e+=1):u+=1),f.date=t({y:e,M:u,d:h,h:f.date.hours(),m:f.date.minutes(),s:f.date.seconds()}),f.viewDate=t({y:e,M:u,d:Math.min(28,h)}),v(),l(),o(c,i.type))}},y={incrementHours:function(){a("add","hours",1)},incrementMinutes:function(){a("add","minutes",f.options.minuteStepping)},incrementSeconds:function(){a("add","seconds",1)},decrementHours:function(){a("subtract","hours",1)},decrementMinutes:function(){a("subtract","minutes",f.options.minuteStepping)},decrementSeconds:function(){a("subtract","seconds",1)},togglePeriod:function(){var n=f.date.hours();n>=12?n-=12:n+=12;f.date.hours(n)},showPicker:function(){f.widget.find(".timepicker > div:not(.timepicker-picker)").hide();f.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){f.widget.find(".timepicker .timepicker-picker").hide();f.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){f.widget.find(".timepicker .timepicker-picker").hide();f.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){f.widget.find(".timepicker .timepicker-picker").hide();f.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var i=parseInt(n(t.target).text(),10);f.use24hours||(f.date.hours()>=12?12!==i&&(i+=12):12===i&&(i=0));f.date.hours(i);y.showPicker.call(f)},selectMinute:function(t){f.date.minutes(parseInt(n(t.target).text(),10));y.showPicker.call(f)},selectSecond:function(t){f.date.seconds(parseInt(n(t.target).text(),10));y.showPicker.call(f)}},dt=function(i){var r=t(f.date),u=n(i.currentTarget).data("action"),e=y[u].apply(f,arguments);return p(i),f.date||(f.date=t({y:1970})),l(),it(),o(r,i.type),e},p=function(n){n.stopPropagation();n.preventDefault()},gt=function(n){27===n.keyCode&&f.hide()},w=function(i){t.locale(f.options.language);var e=n(i.target),u=t(f.date),r=t(e.val(),f.format,f.options.useStrict);r.isValid()&&!k(r)&&st(r)?(c(),f.setValue(r),o(u,i.type),l()):(f.viewDate=u,f.unset=!0,o(u,i.type),tt(r))},b=function(n){n&&(f.viewMode=Math.max(f.minViewMode,Math.min(2,f.viewMode+n)));f.widget.find(".datepicker > div").hide().filter(".datepicker-"+rt.modes[f.viewMode].clsName).show()},ft=function(){var i,r,t,e,u;f.widget.on("click",".datepicker *",n.proxy(kt,this));f.widget.on("click","[data-action]",n.proxy(dt,this));f.widget.on("mousedown",n.proxy(p,this));f.element.on("keydown",n.proxy(gt,this));f.options.pickDate&&f.options.pickTime&&f.widget.on("click.togglePicker",".accordion-toggle",function(o){if(o.stopPropagation(),i=n(this),r=i.closest("ul"),t=r.find(".in"),e=r.find(".collapse:not(.in)"),t&&t.length){if(u=t.data("collapse"),u&&u.transitioning)return;t.collapse("hide");e.collapse("show");i.find("span").toggleClass(f.options.icons.time+" "+f.options.icons.date);f.component&&f.component.find("span").toggleClass(f.options.icons.time+" "+f.options.icons.date)}});f.isInput?f.element.on({click:n.proxy(f.show,this),focus:n.proxy(f.show,this),change:n.proxy(w,this),blur:n.proxy(f.hide,this)}):(f.element.on({change:n.proxy(w,this)},"input"),f.component?(f.component.on("click",n.proxy(f.show,this)),f.component.on("mousedown",n.proxy(p,this))):f.element.on("click",n.proxy(f.show,this)))},ni=function(){n(window).on("resize.datetimepicker"+f.id,n.proxy(ut,this));f.isInput||n(document).on("mousedown.datetimepicker"+f.id,n.proxy(f.hide,this))},et=function(){f.widget.off("click",".datepicker *",f.click);f.widget.off("click","[data-action]");f.widget.off("mousedown",f.stopEvent);f.options.pickDate&&f.options.pickTime&&f.widget.off("click.togglePicker");f.isInput?f.element.off({focus:f.show,change:w,click:f.show,blur:f.hide}):(f.element.off({change:w},"input"),f.component?(f.component.off("click",f.show),f.component.off("mousedown",f.stopEvent)):f.element.off("click",f.show))},ot=function(){n(window).off("resize.datetimepicker"+f.id);f.isInput||n(document).off("mousedown.datetimepicker"+f.id)},ti=function(){if(f.element){for(var i=f.element.parents(),r=!1,t=0;t<i.length;t++)if("fixed"===n(i[t]).css("position")){r=!0;break}return r}return!1},l=function(){t.locale(f.options.language);var n="";f.unset||(n=t(f.date).format(f.format));e().val(n);f.element.data("date",n);f.options.pickTime||f.hide()},a=function(n,i,r){t.locale(f.options.language);var u;return"add"===n?(u=t(f.date),23===u.hours()&&u.add(r,i),u.add(r,i)):u=t(f.date).subtract(r,i),k(t(u.subtract(r,i)))||k(u)?void tt(u.format(f.format)):("add"===n?f.date.add(r,i):f.date.subtract(r,i),void(f.unset=!1))},k=function(n,i){t.locale(f.options.language);var r=t(f.options.maxDate,f.format,f.options.useStrict),u=t(f.options.minDate,f.format,f.options.useStrict);return i&&(r=r.endOf(i),u=u.startOf(i)),n.isAfter(r)||n.isBefore(u)?!0:f.options.disabledDates===!1?!1:f.options.disabledDates[n.format("YYYY-MM-DD")]===!0},st=function(n){return t.locale(f.options.language),f.options.enabledDates===!1?!0:f.options.enabledDates[n.format("YYYY-MM-DD")]===!0},d=function(n){for(var r={},u=0,i=0;i<n.length;i++)g=t.isMoment(n[i])||n[i]instanceof Date?t(n[i]):t(n[i],f.format,f.options.useStrict),g.isValid()&&(r[g.format("YYYY-MM-DD")]=!0,u++);return u>0?r:!1},s=function(n){return n=n.toString(),n.length>=2?n:"0"+n},ii=function(){var n='<thead><tr><th class="prev">&lsaquo;<\/th><th colspan="'+(f.options.calendarWeeks?"6":"5")+'" class="picker-switch"><\/th><th class="next">&rsaquo;<\/th><\/tr><\/thead>',r='<tbody><tr><td colspan="'+(f.options.calendarWeeks?"8":"7")+'"><\/td><\/tr><\/tbody>',t='<div class="datepicker-days"><table class="table-condensed">'+n+'<tbody><\/tbody><\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+n+r+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+n+r+"<\/table><\/div>",i="";return f.options.pickDate&&f.options.pickTime?(i='<div class="bootstrap-datetimepicker-widget'+(f.options.sideBySide?" timepicker-sbs":"")+(f.use24hours?" usetwentyfour":"")+' dropdown-menu" style="z-index:9999 !important;">',i+=f.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+t+'<\/div><div class="col-sm-6 timepicker">'+h.getTemplate()+"<\/div><\/div>":'<ul class="list-unstyled"><li'+(f.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+t+'<\/div><\/li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+f.options.icons.time+'"><\/span><\/a><\/li><li'+(f.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+h.getTemplate()+"<\/div><\/li><\/ul>",i+="<\/div>"):f.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+h.getTemplate()+"<\/div><\/div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+t+"<\/div><\/div>"},rt={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}]},h={hourTemplate:'<span data-action="showHours"   data-time-component="hours"   class="timepicker-hour"><\/span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"><\/span>',secondTemplate:'<span data-action="showSeconds"  data-time-component="seconds" class="timepicker-second"><\/span>'};h.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+f.options.icons.up+'"><\/span><\/a><\/td><td class="separator"><\/td><td>'+(f.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+f.options.icons.up+'"><\/span><\/a>':"")+"<\/td>"+(f.options.useSeconds?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+f.options.icons.up+'"><\/span><\/a><\/td>':"")+(f.use24hours?"":'<td class="separator"><\/td>')+"<\/tr><tr><td>"+h.hourTemplate+'<\/td> <td class="separator">:<\/td><td>'+(f.options.useMinutes?h.minuteTemplate:'<span class="timepicker-minute">00<\/span>')+"<\/td> "+(f.options.useSeconds?'<td class="separator">:<\/td><td>'+h.secondTemplate+"<\/td>":"")+(f.use24hours?"":'<td class="separator"><\/td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"><\/button><\/td>')+'<\/tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+f.options.icons.down+'"><\/span><\/a><\/td><td class="separator"><\/td><td>'+(f.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+f.options.icons.down+'"><\/span><\/a>':"")+"<\/td>"+(f.options.useSeconds?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+f.options.icons.down+'"><\/span><\/a><\/td>':"")+(f.use24hours?"":'<td class="separator"><\/td>')+'<\/tr><\/table><\/div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"><\/table><\/div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"><\/table><\/div>'+(f.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"><\/table><\/div>':"")};f.destroy=function(){et();ot();f.widget.remove();f.element.removeData("DateTimePicker");f.component&&f.component.removeData("DateTimePicker")};f.show=function(n){if(!e().prop("disabled")){if(f.options.useCurrent&&""===e().val()){if(1!==f.options.minuteStepping){var i=t(),r=f.options.minuteStepping;i.minutes(Math.round(i.minutes()/r)*r%60).seconds(0);f.setValue(i.format(f.format))}else f.setValue(t().format(f.format));o("",n.type)}n&&"click"===n.type&&f.isInput&&f.widget.hasClass("picker-open")||(f.widget.hasClass("picker-open")?(f.widget.hide(),f.widget.removeClass("picker-open")):(f.widget.show(),f.widget.addClass("picker-open")),f.height=f.component?f.component.outerHeight():f.element.outerHeight(),ut(),f.element.trigger({type:"dp.show",date:t(f.date)}),ni(),n&&p(n))}};f.disable=function(){var n=e();n.prop("disabled")||(n.prop("disabled",!0),et())};f.enable=function(){var n=e();n.prop("disabled")&&(n.prop("disabled",!1),ft())};f.hide=function(){for(var i,r=f.widget.find(".collapse"),n=0;n<r.length;n++)if(i=r.eq(n).data("collapse"),i&&i.transitioning)return;f.widget.hide();f.widget.removeClass("picker-open");f.viewMode=f.startViewMode;b();f.element.trigger({type:"dp.hide",date:t(f.date)});ot()};f.setValue=function(n){t.locale(f.options.language);n?f.unset=!1:(f.unset=!0,l());n=t.isMoment(n)?n.locale(f.options.language):n instanceof Date?t(n):t(n,f.format,f.options.useStrict);n.isValid()?(f.date=n,l(),f.viewDate=t({y:f.date.year(),M:f.date.month()}),v(),it()):tt(n)};f.getDate=function(){return f.unset?null:t(f.date)};f.setDate=function(n){var i=t(f.date);f.setValue(n?n:null);o(i,"function")};f.setDisabledDates=function(n){f.options.disabledDates=d(n);f.viewDate&&c()};f.setEnabledDates=function(n){f.options.enabledDates=d(n);f.viewDate&&c()};f.setMaxDate=function(n){void 0!==n&&(f.options.maxDate=t.isMoment(n)||n instanceof Date?t(n):t(n,f.format,f.options.useStrict),f.viewDate&&c())};f.setMinDate=function(n){void 0!==n&&(f.options.minDate=t.isMoment(n)||n instanceof Date?t(n):t(n,f.format,f.options.useStrict),f.viewDate&&c())};lt()};n.fn.datetimepicker=function(t){return this.each(function(){var i=n(this),u=i.data("DateTimePicker");u||i.data("DateTimePicker",new r(this,t))})};n.fn.datetimepicker.defaults={format:!1,pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,calendarWeeks:!1,minuteStepping:1,minDate:t({y:1900}),maxDate:t().add(100,"y"),showToday:!0,collapse:!0,language:t.locale(),defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:[],widgetParent:!1}});$(function(){if(typeof dataLayer!="undefined"){$(document).on("click",".gtm-register-event",function(){var n=$(this).data("gtm-event-data");n!=undefined&&dataLayer.push(n)});if($(".gtmPageNotFound").length>0)dataLayer.push({event:"event404"})}});$(document).ready(function(){cookies.init()});analysisCookies=["_ga","_gid","_gat","_gcl_au","AMP_TOKEN","_hjid","_hjIncludedInSample","M_INTERCEPT_QUARANTINE"];cookies={init:function(){var u=cookies.read("hideSppInfoMessage"),n;u!="Hide"&&$("#sppInfoMessage").slideDown("slow");n=cookies.read(ACCEPTLEVELCOOKIE);document.cookieConsentLevel=n;var r=document.getElementById("cookie-banner-link"),t=document.getElementById("cookie-information"),i=document.getElementById("cookie-settings");n==null&&r&&t&&i&&(r.click(),t.style.display="block",i.style.display="none");n>0&&t&&i&&(t.style.display="none",i.style.display="block",cookies.setSelectedConsent(n));document.addEventListener("cookieLevelChanged",function(){var n=cookies.read(ACCEPTLEVELCOOKIE);n==CONSENTLEVEL.FUNCTIONAL&&(cookies.removeAnalysisCookies(),cookies.removeMarketingCookies());n==CONSENTLEVEL.ANALYSIS&&cookies.removeMarketingCookies();location.reload()})},accept:function(n,t,i){String.prototype.endsWith||(String.prototype.endsWith=function(n,t){var i=this.toString(),r;return(typeof t!="number"||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=n.length,r=i.lastIndexOf(n,t),r!==-1&&r===t});cookies.create(n,t,365,location.hostname);n==ACCEPTLEVELCOOKIE&&(document.cookieConsentLevel=t);i?i():location.reload()},create:function(n,t,i){var u="expires=0",r;i>0&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="expires="+r.toUTCString());document.cookie=n+"="+t+";"+u+";path=/"},read:function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)===" ";)t=t.substring(1,t.length);if(t.indexOf(r)===0)return t.substring(r.length,t.length)}return null},showBannerSettings:function(){$("#cookie-information").hide();$("#cookie-settings").show()},saveConsent:function(){var n="";$("#cookiebanner input:checkbox:checked").each(function(){n=this.value});cookies.accept(ACCEPTLEVELCOOKIE,n,function(){var n=new Event("cookieLevelChanged",{bubbles:!0});document.dispatchEvent(n)})},handleChangedConsent:function(n){n.checked||n.value!=CONSENTLEVEL.ANALYSIS||(document.getElementById("checkbox-marketing-cookies").checked=!1);n.checked&&cookies.setSelectedConsent(n.value)},setSelectedConsent:function(n){n==CONSENTLEVEL.ANALYSIS&&(document.getElementById("checkbox-analysis-cookies").checked=!0,document.getElementById("checkbox-marketing-cookies").checked=!1);n==CONSENTLEVEL.MARKETING&&(document.getElementById("checkbox-analysis-cookies").checked=!0,document.getElementById("checkbox-marketing-cookies").checked=!0)},deleteCookie:function(n){document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},removeMarketingCookies:function(){console.log("Remove marketing related cookies")},removeAnalysisCookies:function(){var r,t,n,i,u;for(console.log("remove analysis cookies"),r=document.cookie.split(";"),t=0;t<r.length;t++)for(n=r[t],n.trim().startsWith("_ga")&&cookies.deleteCookie(n),i=0;i<analysisCookies.length;i++)u=analysisCookies[i],n.trim().startsWith(u)&&cookies.deleteCookie(n)},showCookieInformation:function(){$("#cookie-settings").hide();$("#cookie-information").hide();$("#cookie-information-text").show()},closeCookieInformation:function(){$("#cookie-information-text").hide();$("#cookie-information").show()}};iframeblockjs={iFrame:null,iframeDivId:"",iframeHeight:"",allowFullscreen:!1,init:function(n,t,i,r,u,f){let e=document.createElement("iFrame");e.src=n;e.title=t;e.id="ContentIFrame-"+i;this.iFrame=e;this.iframeDivId=i;this.iframeHeight=r;this.allowFullscreen=f;iframeblockjs.showIframe(this.iFrame,i)},showIframe:function(n,t){n.setAttribute("frameborder",0);n.setAttribute("width","100%");n.setAttribute("height",iframeblockjs.iframeHeight+"px");n.addEventListener("load",function(){$(window).scrollTop(0)});n.setAttribute("allow","encrypted-media");iframeblockjs.allowFullscreen&&n.setAttribute("allow","fullscreen; encrypted-media");document.getElementById(t).appendChild(n)},gaLoadedEventHandler:function(){ga(function(){let n=ga.getByName("spp");window.linker=window.linker||new window.gaplugins.Linker(n);iframeblockjs.iFrame.src=window.linker.decorate(iframeblockjs.iFrame.src);iframeblockjs.showIframe(iframeblockjs.iFrame,iframeblockjs.iframeDivId)})},addEventHandler:function(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i)}};$(document).ready(function(){$(".EPiServerForms").addClass("stb-form");$(".Form__Element.FormChoice").addClass("radiobuttons");$(".EPiServerForms select").addClass("form-control");$(".Form__Element.FormTextbox").addClass("stb-form-group")});$(function(){$("input.business-search").each(function(n,t){var i=$(t).attr("id");companyautocomplete(document.getElementById(i))})})