function setDatePicker(){$(".date-picker").each(function(){$(this).attr("id");var t=$(this).attr("min"),e=$(this).attr("max"),i=$(this).val();$(this).datepicker({dateFormat:"dd/mm/yy"}),void 0!==t&&$(this).datepicker("option","minDate",t),void 0!==e&&$(this).datepicker("option","maxDate",e),void 0!==i&&$(this).datepicker("setDate",i)})}(sg=sg||{}).Type={init:function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||$(".js-Type-phoneFallback").each(function(){var t=$(this).attr("data-type-phonefallback")||sg.Type.defaultPhoneFallbackUrl;t&&$(this).attr({href:t,target:"_blank"})})}},$(function(){sg.Type.init()}),function(t){t.fn.responsiveRadioScale=function(){t(window).on("load resize",function(){var e=t(".js-Radio--responsiveScale"),i=t(".js-Radio--responsiveScale .sg-Radio");if(i){var s=i.position().top,a=!1;i.each(function(){t(this).position().top-s>1&&(a=!0)}),a?e.addClass("is-active"):e.removeClass("is-active")}})}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){var e,i=navigator.userAgent,s=/iphone/i.test(i),a=/chrome/i.test(i),n=/android/i.test(i);t.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},t.fn.extend({caret:function(t,e){var i;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof t?(e="number"==typeof e?e:t,this.each(function(){this.setSelectionRange?this.setSelectionRange(t,e):this.createTextRange&&((i=this.createTextRange()).collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select())})):(this[0].setSelectionRange?(t=this[0].selectionStart,e=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),t=0-i.duplicate().moveStart("character",-1e5),e=t+i.text.length),{begin:t,end:e})},unmask:function(){return this.trigger("unmask")},mask:function(i,o){var r,l,d,c,h,u,p,f;if(!i&&this.length>0){var g=(r=t(this[0])).data(t.mask.dataName);return g?g():void 0}return o=t.extend({autoclear:t.mask.autoclear,placeholder:t.mask.placeholder,completed:null},o),l=t.mask.definitions,d=[],c=p=i.length,h=null,t.each(i.split(""),function(t,e){"?"==e?(p--,c=t):l[e]?(d.push(new RegExp(l[e])),null===h&&(h=d.length-1),c>t&&(u=d.length-1)):d.push(null)}),this.trigger("unmask").each(function(){function r(){if(o.completed){for(var t=h;u>=t;t++)if(d[t]&&D[t]===g(t))return;o.completed.call(C)}}function g(t){return o.placeholder.charAt(t<o.placeholder.length?t:0)}function m(t){for(;++t<p&&!d[t];);return t}function b(t){for(;--t>=0&&!d[t];);return t}function v(t,e){var i,s;if(!(0>t)){for(i=t,s=m(e);p>i;i++)if(d[i]){if(!(p>s&&d[i].test(D[s])))break;D[i]=D[s],D[s]=g(s),s=m(s)}T(),C.caret(Math.max(h,t))}}function y(t){var e,i,s,a;for(e=t,i=g(t);p>e;e++)if(d[e]){if(s=m(e),a=D[e],D[e]=i,!(p>s&&d[s].test(a)))break;i=a}}function w(){$(),C.val()!=P&&C.change()}function k(t,e){var i;for(i=t;e>i&&p>i;i++)d[i]&&(D[i]=g(i))}function T(){C.val(D.join(""))}function $(t){var e,i,s,a=C.val(),n=-1;for(e=0,s=0;p>e;e++)if(d[e]){for(D[e]=g(e);s++<a.length;)if(i=a.charAt(s-1),d[e].test(i)){D[e]=i,n=e;break}if(s>a.length){k(e+1,p);break}}else D[e]===a.charAt(s)&&s++,c>e&&(n=e);return t?T():c>n+1?o.autoclear||D.join("")===M?(C.val()&&C.val(""),k(0,p)):T():(T(),C.val(C.val().substring(0,n+1))),c?e:h}var C=t(this),D=t.map(i.split(""),function(t,e){return"?"!=t?l[t]?g(e):t:void 0}),M=D.join(""),P=C.val();C.data(t.mask.dataName,function(){return t.map(D,function(t,e){return d[e]&&t!=g(e)?t:null}).join("")}),C.one("unmask",function(){C.off(".mask").removeData(t.mask.dataName)}).on("focus.mask",function(){if(!C.prop("readonly")){clearTimeout(e);var t;P=C.val(),t=$(),e=setTimeout(function(){T(),t==i.replace("?","").length?C.caret(0,t):C.caret(t)},10)}}).on("blur.mask",w).on("keydown.mask",function(t){if(!C.prop("readonly")){var e,i,a,n=t.which||t.keyCode;f=C.val(),8===n||46===n||s&&127===n?(e=C.caret(),i=e.begin,(a=e.end)-i==0&&(i=46!==n?b(i):a=m(i-1),a=46===n?m(a):a),k(i,a),v(i,a-1),t.preventDefault()):13===n?w.call(this,t):27===n&&(C.val(P),C.caret(0,$()),t.preventDefault())}}).on("keypress.mask",function(e){if(!C.prop("readonly")){var i,s,a,o=e.which||e.keyCode,l=C.caret();e.ctrlKey||e.altKey||e.metaKey||32>o||!o||13===o||(l.end-l.begin!=0&&(k(l.begin,l.end),v(l.begin,l.end-1)),i=m(l.begin-1),p>i&&(s=String.fromCharCode(o),d[i].test(s))&&(y(i),D[i]=s,T(),a=m(i),n?setTimeout(function(){t.proxy(t.fn.caret,C,a)()},0):C.caret(a),l.begin<=u&&r()),e.preventDefault())}}).on("input.mask paste.mask",function(){C.prop("readonly")||setTimeout(function(){var t=$(!0);C.caret(t),r()},0)}),a&&n&&C.off("input.mask").on("input.mask",function(){var t=C.val(),e=C.caret();if(t.length<f.length){for($(!0);e.begin>0&&!d[e.begin-1];)e.begin--;if(0===e.begin)for(;e.begin<h&&!d[e.begin];)e.begin++;C.caret(e.begin,e.begin)}else{for($(!0);e.begin<p&&!d[e.begin];)e.begin++;C.caret(e.begin,e.begin)}r()}),$()})}})}),$(function(){setDatePicker(),$(".date-field").mask("99/99/9999"),$(".month-field").mask("99/99")}),(sg=sg||{}).Input={init:function(){sg.Input.showPasswordToggle(),$(".js-Input-toggleMask").click(function(){var t=$("#"+$(this).attr("data-input-toggle-pwd-mask"));sg.Input.togglePasswordMask(t)})},supportsChangingTypeAttribute:function(){var t=document.createElement("input");try{t.type="password",t.type="text"}catch(t){return!1}return"text"==t.type},showPasswordToggle:function(){if(!sg.Input.supportsChangingTypeAttribute)return!1;$(".js-Input-toggleMask").parent(".sg-Input-passwordMaskLabel").css("display","table-cell")},togglePasswordMask:function(t){if(!sg.Input.supportsChangingTypeAttribute)return!1;"text"==t.prop("type")?t.prop("type","password"):t.prop("type","text")}},$(function(){sg.Input.init()});var sg=sg||{};+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,s=this;t(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||t(s).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";function e(e,i){return this.each(function(){var s=t(this),a=s.data("bs.sgmodal"),n=t.extend({},sg.sgModal.DEFAULTS,s.data(),"object"==typeof e&&e);a||s.data("bs.sgmodal",a=new sg.sgModal(this,n)),"string"==typeof e?a[e](i):n.show&&a.show(i)})}sg.sgModal=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".sg-Modal-wrapper"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".sg-Modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.sgmodal")},this))},sg.sgModal.VERSION="3.3.4",sg.sgModal.TRANSITION_DURATION=300,sg.sgModal.BACKDROP_TRANSITION_DURATION=150,sg.sgModal.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},sg.sgModal.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},sg.sgModal.prototype.show=function(e){var i=this,s=t.Event("show.bs.sgmodal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("sg-Body--modalOpen"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.sgmodal",'[data-dismiss="sgmodal"]',t.proxy(this.hide,this)),this.$element.on("click.dismiss.bs.sgmodal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.sgmodal",function(){i.$element.one("mouseup.dismiss.bs.sgmodal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&i.$element.hasClass("sg-Modal--animate");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),s&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var a=t.Event("shown.bs.sgmodal",{relatedTarget:e});s?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(sg.sgModal.TRANSITION_DURATION):i.$element.trigger("focus").trigger(a)}))},sg.sgModal.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.sgmodal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.sgmodal"),this.$element.removeClass("in").off("click.dismiss.bs.sgmodal").off("mouseup.dismiss.bs.sgmodal"),this.$dialog.off("mousedown.dismiss.bs.sgmodal"),t.support.transition&&this.$element.hasClass("sg-Modal--animate")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(sg.sgModal.TRANSITION_DURATION):this.hideModal())},sg.sgModal.prototype.enforceFocus=function(){t(document).off("focusin.bs.sgmodal").on("focusin.bs.sgmodal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},sg.sgModal.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.sgmodal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.sgmodal")},sg.sgModal.prototype.resize=function(){this.isShown?t(window).on("resize.bs.sgmodal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.sgmodal")},sg.sgModal.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("sg-Body--modalOpen"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.sgmodal")})},sg.sgModal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},sg.sgModal.prototype.backdrop=function(e){var i=this,s=this.$element.hasClass("sg-Modal--animate")?"sg-Modal--animate":"";if(this.isShown&&this.options.backdrop){var a=t.support.transition&&s;if(this.$backdrop=t(document.createElement("div")).addClass("sg-Modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.sgmodal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;a?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(sg.sgModal.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("sg-Modal--animate")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(sg.sgModal.BACKDROP_TRANSITION_DURATION):n()}else e&&e()},sg.sgModal.prototype.handleUpdate=function(){this.adjustDialog()},sg.sgModal.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},sg.sgModal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},sg.sgModal.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},sg.sgModal.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},sg.sgModal.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},sg.sgModal.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="sg-Modal-scrollbarMeasure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.sgmodal;t.fn.sgmodal=e,t.fn.sgmodal.Constructor=sg.sgModal,t.fn.sgmodal.noConflict=function(){return t.fn.sgmodal=i,this},t(document).on("click.bs.sgmodal.data-api",'[data-toggle="modal"],[data-toggle="sgmodal"]',function(i){var s=t(this),a=s.attr("href"),n=t(s.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,"")),o=n.data("bs.sgmodal")?"toggle":t.extend({remote:!/#/.test(a)&&a},n.data(),s.data());s.is("a")&&i.preventDefault(),n.one("show.bs.sgmodal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.sgmodal",function(){s.is(":visible")&&s.trigger("focus")})}),e.call(n,o,this)})}(jQuery);var sg=sg||{};!function(t,e){sg.sgTooltip=function(t){this.elem=t,this.$tooltip=e(t),this.$content=e(this.$tooltip.data("contentId")),this.$arrow=this.$content.find(".js-Arrow"),this.settings={tooltipMargin:20},this.tooltipShown=!1,this.init()},sg.sgTooltip.prototype={init:function(){try{var i=this.$tooltip;e.extend(this.settings,this.$tooltip.data()),this.$content.appendTo("body"),this.settings.tooltipWidth=parseInt(this.$content.css("max-width").replace("px","")),this.$tooltip.on("sg.sgtooltip.open",e.proxy(this.showTooltip,this)).on("sg.sgtooltip.close",e.proxy(this.hideTooltip,this)).on("sg.sgtooltip.resize",e.proxy(this.resizeTooltip,this)),this.$tooltip.on("click",function(){e(this).trigger("sg.sgtooltip.open")}),this.$content.find(".js-closeModal").each(function(){e(this).on("click",function(){i.trigger("sg.sgtooltip.close")})}),e(t).on("resize",function(){i.trigger("sg.sgtooltip.resize")})}catch(t){throw this.$content.nodetype?new Error(t.message):new Error("Tooltip ["+this.$content.selector+"] does not exist.")}return this},showTooltip:function(){this.tooltipShown=!0,this.positionTooltip(),this.$tooltip.addClass("is-activated"),this.$content.removeClass("is-closed").addClass("is-open")},hideTooltip:function(){this.tooltipShown=!1,this.$tooltip.removeClass("is-activated"),this.$content.removeClass("is-open").addClass("is-closed")},positionTooltip:function(){var i=this.$tooltip.offset(),s={width:e(t).width(),height:e(t).height(),scrollLeft:e(t).scrollLeft(),scrollTop:e(t).scrollTop()},a=this.settings.tooltipWidth+2*this.settings.tooltipMargin,n=a<=s.width,o=this.$arrow.outerHeight(),r={top:i.top+this.$tooltip.outerHeight()+o,bottom:"auto",left:"auto",right:"auto",position:"absolute"};this.$arrow.removeClass("is-hidden"),n?(this.$content.innerWidth(this.settings.tooltipWidth),a<=s.width-i.left?r.left=i.left:r.right=this.settings.tooltipMargin):(r.width="auto",r.left=this.settings.tooltipMargin,r.right=this.settings.tooltipMargin),this.$content.css(r);var l=this.$content.outerHeight(),d=e(document).height(),c=1.5*this.settings.tooltipMargin;if(l<d-i.top-this.$tooltip.outerHeight()-o||(this.$arrow.addClass("is-hidden"),r.top=s.scrollTop+s.height-(l+c)),this.$content.css(r),this.$arrow.hasClass("is-hidden"))r.top-=o;else{this.$content.css("display","block");var h=Math.sqrt(this.$arrow.outerWidth()*this.$arrow.outerWidth()*2),u=Math.abs(this.$content.offset().left-this.$tooltip.offset().left)+(this.$tooltip.outerWidth()/2-5);u+h>this.$content.outerWidth()&&(u=this.$content.outerWidth()-h),this.$content.css("display",""),this.$arrow.css({left:u})}},resizeTooltip:function(){this.tooltipShown&&this.positionTooltip()}},e.fn.sgtooltip=function(t){return this.each(function(){if($currentTrigger=e(this),e.data(this,"plugin_sgtooltip")){i=e.data(this,"plugin_sgtooltip");e(this).trigger("sg.sgtooltip."+t)}else{var i=new sg.sgTooltip(this,t);e.data(this,"plugin_sgtooltip",i)}})},e(document).on("mouseup keyup touchend",function(t){27!==t.keyCode&&0!==e(t.target).closest(".js-TooltipContent").length||e(".js-Tooltip.is-activated").each(function(){e(this).trigger("sg.sgtooltip.close")})}),t.sg=sg}(window,jQuery),(sg=sg||{}).overlay=function(t){t=t||{};var e=$(".loading-overlay");if(!e.length){if(e=$('<div class="loading-overlay"><div class="loading-overlay-bg"></div></div>'),$("body").append(e),t.raise){var i=t.raise;$(i).each(function(){"static"==$(this).css("position")&&$(this).addClass("was-static"),$(this).addClass("raise-above-overlay"),$(this).parents().each(function(){"auto"!=$(this).css("z-index")&&$(this).addClass("raise-above-overlay")})}),$(i)[0].focus()}t.invisible?e.children(".loading-overlay-bg").fadeTo(300,.32):(e.append('<div class="loading-icon"><i></i></div>'),e.children(".loading-icon").fadeTo(300,1),e.children(".loading-overlay-bg").fadeTo(300,.6))}},sg.removeOverlay=function(){var t=$(".loading-overlay");if(t){var e=t;t.children().fadeTo(300,0,function(){e.remove()}),t.remove(),$(".raise-above-overlay").removeClass("raise-above-overlay"),$(".was-static").removeClass("was-static")}},$(function(){$("form").submit(sg.overlay)}),function(t){t.fn.handleResponsiveQuotePanel=function(){return this.each(function(){function e(t){i(),t?a():s()}function i(){d.detach(),c.detach(),h.detach()}function s(){d.removeClass("inline"),d.each(function(){t(this).data("originalParent")&&t(this).data("originalParent").append(t(this))}),h.each(function(){t(this).data("originalParent")&&t(this).data("originalParent").append(t(this))}),c.data("originalParent")&&c.data("originalParent").prepend(c),c.find(".text").text("Your quote number: ")}function a(){c.appendTo(r),h.appendTo(u),n()}function n(){t(window).width()>p||(r.width()>2*l?(d.addClass("inline"),r.append(d),c.find(".text").text("Quote No. ")):(d.removeClass("inline"),r.after(d),c.find(".text").text("No. ")))}var o=t(this),r=t(this).find(".mobile-panel"),l=260;if(r.length>0){var d=t(this).find(".quote-payment-options"),c=t(this).parents().siblings(".quote-number"),h=t(this).find(".alternate-price-link"),u=t("<div class='alternate-price-link-wrapper'></div>");c.before("<h1 class='sg-u-largeHidden'>Your quote </h1>"),o.find(".quote-email").before(u),d.each(function(){var e=t(this).parent(),i=e[0].id,s=t(e[0]).css("display"),a=t(this).find(".alternate-price-link");t(this).data("originalParent",e),t(this).attr("data-parentID",i),t(this).css("display",s),a.css("display",s),a.attr("data-parentID",i)}),h.each(function(){t(this).data("originalParent",t(this).parent())}),c.data("originalParent",c.parent())}var p=700,f=t(window).width()<=p,g=r.width()>2*l;f&&a(),t(window).on("resize",function(){if(r.length>0){var i=t(window).width()<=p,s=r.width()>2*l;i!==f?(e(i),f=i):s!==g&&(n(),g=s)}})})}}(jQuery),$(function(){$("html").hasClass("responsive")&&$(".mobile-enabled .quote-panel").handleResponsiveQuotePanel()}),function(t){var e=function(e,i){this.$panelWrapper=e,this.$mainPanel=this.$panelWrapper.find(".sticky-panel"),this.$subPanel=this.$panelWrapper.find(".sticky-sub-panel"),this.$stickyElem=this.$panelWrapper,this.$placeholder=t("<div class='placeholder'></div>"),this.panelHeight=this.$panelWrapper.outerHeight(!0),this.mobileBreakpoint=i,t("html").hasClass("lt-ie8")?this.disableSticky():(this.topMargin=10,this.offsetTop=0,this.responsive=t("html").hasClass("responsive"),this.mobileEnabled=this.$panelWrapper.hasClass("mobile-enabled"),this.inMobileSize=this.inMobileWindow(),this.$mobileSticky=this.$panelWrapper.find(".mobile-sticky-wrapper"),0===this.$mobileSticky.length&&(this.$mobileSticky=this.$panelWrapper),t(window).on("resize scroll",t.proxy(this.positioning,this)).scroll())};e.prototype={constructor:e,inMobileWindow:function(){return t(window).width()<=this.mobileBreakpoint},positioning:function(){this.setPosition(),this.$subPanel.length>0&&this.toggleSubPanelVisibility()},toggleSubPanelVisibility:function(){this.panelHeight+2*this.topMargin<t(window).outerHeight(!0)-t("footer").height()?this.$subPanel.show():this.$subPanel.hide()},setPosition:function(){this.$mainPanel.outerHeight(!0)+2*this.topMargin<t(window).outerHeight(!0)-t("footer").height()&&(!this.inMobileWindow()||this.mobileEnabled)?(this.inMobileWindow()!==this.inMobileSize&&this.disableSticky(),this.inMobileWindow()&&this.responsive?(this.$stickyElem=this.$mobileSticky,this.topMargin=0,this.inMobileSize=!0):(this.$stickyElem=this.$panelWrapper,this.topMargin=10,this.inMobileSize=!1),0!==this.$stickyElem.offset().top&&0===this.offsetTop&&(this.offsetTop=this.$stickyElem.offset().top),this.offsetTop-this.topMargin<=t(window).scrollTop()?this.enableSticky():(this.disableSticky(),this.offsetTop=0)):this.disableSticky()},disableSticky:function(){this.$placeholder.hide(),this.$stickyElem.css({position:"relative",top:0}),this.$stickyElem.removeClass("StickyPanel--Enabled").addClass("StickyPanel--Disabled")},enableSticky:function(){this.$stickyElem.css({position:"fixed",top:this.topMargin+"px"}),this.$stickyElem.removeClass("StickyPanel--Disabled").addClass("StickyPanel--Enabled"),this.$placeholder.height(this.$stickyElem.outerHeight(!0)),this.$placeholder.insertAfter(this.$stickyElem),this.$placeholder.show()}},t.fn.stickyPanel=function(){return this.each(function(){new e(t(this),700)})}}(jQuery);var sg=sg||{};!function(t){t.fn.TableFlexPolyfill=function(){return this.each(function(e){$masterTable=t(this),$masterTable.addClass("sg-Table--flexPolyfill");for(var i=0,s=i+o,a=$masterTable.children().length,n=$masterTable.find(".sg-Table--flexCell"),o=parseInt($masterTable.attr("data-columns")),r=0;r<a;r+=o)s=(i=r)+o,n.slice(i,s).wrapAll('<div class="sg-Table--rowPolyfill"></div>')})}}(jQuery),jQuery,Modernizr.flexbox||$(".js-TablePolyfill").TableFlexPolyfill();var sg=sg||{};!function(t){sg.Accordion={toggleAccordion:function(e){var i=t(e).attr("data-accordion-group");t(e).hasClass("is-selected")?t(e).removeClass("is-selected").attr("aria-selected","false"):t(e).addClass("is-selected").attr("aria-selected","true"),void 0!==i&&t("[data-accordion-group='"+i+"']").each(function(){t(this).is(t(e))||t(this).removeClass("is-selected").attr("aria-selected","false")})},openContent:function(e){var i=t("#"+t(e).attr("aria-labelledby")),s=i.attr("data-accordion-group");i.hasClass("is-selected")?t(e).removeClass("is-closed").addClass("is-open").attr("aria-expanded","true"):t(e).removeClass("is-open").addClass("is-closed").attr("aria-expanded","false"),void 0!==s&&t("[data-accordion-group='"+s+"']").each(function(){var i=t("#"+t(this).attr("aria-controls"));i.is(t(e))||i.removeClass("is-open").addClass("is-closed").attr("aria-expanded","false")})}},t.fn.accordion=function(e){e=e||{};var i=t.extend({toggleAccordionCallback:void 0,toggleAccordionParameters:[],openContentCallBack:void 0,openContentParameters:[]},e);return this.each(function(){return t(this).off().on("click",function(){var e=t(this),s=t("#"+t(this).attr("aria-controls"));sg.Accordion.toggleAccordion(e),"function"==typeof i.toggleAccordionCallback&&i.toggleAccordionCallback.call(e,i.toggleAccordionParameters),sg.Accordion.openContent(s),"function"==typeof i.openContentCallBack&&i.openContentCallBack.call(s,i.openContentParameters)}),t(this).bind("mouseup",function(){this.blur()}),this})}}(jQuery);var sg=sg||{},tabElements=[];!function(t){"use strict";sg.Tab={selectTab:function(e){var i=t(e).attr("data-tab-group");t("[data-tab-group="+i+"]").each(function(){t(this).is(t(e))?t(e).addClass("is-selected").attr("aria-selected","true"):t(this).removeClass("is-selected").attr("aria-selected","false")})},openPanel:function(e){var i=t("#"+t(e).attr("aria-labelledby")).attr("data-tab-group");t("[data-tab-group="+i+"]").each(function(){t("#"+t(this).attr("aria-controls")).is(t(e))?t(e).removeClass("is-closed").addClass("is-open").attr("aria-expanded","true"):t("#"+t(this).attr("aria-controls")).removeClass("is-open").addClass("is-closed").attr("aria-expanded","false")})}},t.fn.tabs=function(e){e=e||{};var i=t.extend({selectTabCallback:void 0,selectTabParameters:[],openPanelCallback:void 0,openPanelParameters:[]},e);return this.each(function(){return t(this).bind("click",function(){var e=t(this),s=t("#"+e.attr("aria-controls"));if(t(this).parent().hasClass("js-Tabs--responsiveAccordion")&&t(this).parent().hasClass("is-active")&&t(this).hasClass("is-selected")){var a=t("#"+t(this).attr("aria-controls"));t(this).removeClass("is-selected").attr("aria-selected","false"),a.slideUp("fast"),a.removeClass("is-open").addClass("is-closed").attr("aria-expanded","false")}else if(t(this).parent().hasClass("js-Tabs--responsiveAccordion")&&t(this).parent().hasClass("is-active")&&!t(this).hasClass("is-selected")){var n=t("#"+t(this).attr("aria-controls"));t(this).addClass("is-selected").attr("aria-selected","true"),n.slideDown("fast"),n.removeClass("is-closed").addClass("is-open").attr("aria-expanded","true")}else sg.Tab.selectTab(e),sg.Tab.openPanel(s);"function"==typeof i.selectTabCallback&&i.selectTabCallback.call(e,i.selectTabParameters),"function"==typeof i.openPanelCallback&&i.openPanelCallback.call(s,i.openPanelParameters)}),this})},t.fn.responsiveTabsToPills=function(){function e(e){var i=e,s=Math.round(i.width()),a=0;i.removeClass("is-active");var n=!1;i.each(function(e,i){t(i).find(".js-Tab").each(function(e,i){var o=Math.round(t(i)[0].scrollWidth)+parseInt(t(i).css("borderLeftWidth")),r=Math.round(t(i)[0].offsetWidth)+parseInt(t(i).css("marginRight"));if(o>r){var l=o+parseInt(t(i).css("marginLeft"));a+=l}else o<=r&&(a+=Math.round(t(i).outerWidth(!0)));var d=a-s;a>s&&d>5&&(n=!0)})}),n&&i.addClass("is-active")}return this.each(function(i,s){var a=t(s);e(a),t(window).on("load resize",function(){e(a)})})},t.fn.responsiveTabsToAccordions=function(){function e(){t(".js-Tabs--responsiveAccordion").each(function(e,i){var s=t(i),a=Math.round(s.width()),n=0;s.each(function(){var e=t(this),i=[],s=[],a=!1;e.find(">.js-Tab").each(function(s){var n=t(this);t("#"+n.attr("aria-controls")).removeAttr("style"),n.parent().hasClass("is-active")||(a&&n.hasClass("is-selected")&&(n.removeClass("is-selected").attr("aria-selected","false"),t("#"+n.attr("aria-controls")).removeClass("is-open").addClass("is-closed").removeAttr("style")),n.hasClass("is-selected")&&!a&&(a=!0)),0!==n.parent().find(">.js-Tab.is-selected").length||n.parent().hasClass("is-active")||0===s&&(n.addClass("is-selected").attr("aria-selected","true"),t("#"+n.attr("aria-controls")).removeClass("is-closed").addClass("is-open").attr("aria-expanded","true")),i.push(n),e.append(i)}),e.find(">div").each(function(){s.push(t(this))}),e.parent().find(".sg-Tab--panelContainer").length&&e.parent().find(".sg-Tab--panelContainer").each(function(){t(this).append(s)})}),s.removeClass("is-active");var o=!1;s.each(function(){t(this).find(">.js-Tab").each(function(){var e=Math.round(t(this)[0].scrollWidth)+parseInt(t(this).css("borderLeftWidth")),i=Math.round(t(this)[0].offsetWidth)+parseInt(t(this).css("marginRight"));e>i?n+=e+parseInt(t(this).css("marginLeft")):e<=i&&(n+=Math.round(t(this).outerWidth(!0)));var s=n-a;n>a&&s>5&&(o=!0)})}),o&&(s.addClass("is-active"),s.each(function(){t(this).find(">.js-Tab").each(function(e){var i=t(this);t("#"+i.attr("aria-controls")).removeAttr("style"),i.after(t("#"+i.attr("aria-controls")))})}))})}return this.each(function(i,s){e(),/Android/i.test(navigator.userAgent)||t(window).on("load resize",function(){e()})})},t.fn.responsiveTabsToDropDown=function(){function e(){var e=t(".js-Tabs--responsiveDropDown"),i=t(".sg-Tab--dropdownMenu"),s=t(".sg-Tab--dropdown"),a=Math.round(e.width()),n=Math.round(t(".sg-Tab--dropdown").outerWidth());void 0!==tabElements&&("none"!==i.css("display")&&(i.hide(),s.removeClass("sg-Tab--dropdownActive")),t(".sg-Tab--dropdownMenuContent").empty(),t(".js-Tabs--responsiveDropDown >.js-Tab").removeClass("sg-u-visuallyhidden"),tabElements.length=0),s.removeClass("sg-u-hidden"),e.each(function(e,i){var s=t(this).closest(".sg-Tab--responsiveDropDown"),o=t(this).children(),r=[],l=0;l+=n,o.each(function(){var e=Math.round(t(this)[0].scrollWidth)+parseInt(t(this).css("borderLeftWidth")),i=Math.round(t(this)[0].offsetWidth)+parseInt(t(this).css("marginRight"));e>i?l+=e+parseInt(t(this).css("marginLeft")):e<=i&&(l+=Math.round(t(this).outerWidth(!0)));var d=0;if(l>a&&t(this).hasClass("sg-Tab-item"))return d+=n,o.each(function(){var e=Math.round(t(this)[0].scrollWidth)+parseInt(t(this).css("borderLeftWidth")),i=Math.round(t(this)[0].offsetWidth)+parseInt(t(this).css("marginRight"));e>i?d+=e+parseInt(t(this).css("marginLeft")):e<=i&&(d+=Math.round(t(this).outerWidth(!0))),d>a&&t(this).hasClass("sg-Tab-item")&&(t(this).addClass("sg-u-visuallyhidden"),r.push(t(this)),tabElements.push(t(this)))}),jQuery.each(tabElements,function(e){t(tabElements[e][0]).clone().appendTo(t(".sg-Tab--dropdownMenuContent",s))}),tabElements.length=0,!1}),0===r.length&&(t(this).find(".sg-Tab--dropdown").addClass("sg-u-hidden"),t(this).find(".sg-Tab--dropdownMenuContent").empty())}),t(".sg-Tab--dropdownMenuContent >.js-Tab").removeClass("sg-u-visuallyhidden").attr("aria-hidden","true"),s.unbind().click(function(e){var i=t(this).closest(".sg-Tab--responsiveDropDown");e.stopPropagation(),t(this,i).toggleClass("sg-Tab--dropdownActive"),t(".sg-Tab--dropdownMenu",i).toggle()}),t(document).on("click ",function(){t(".sg-Tab--dropdownMenu").each(function(){var e=t(this).closest(".sg-Tab--responsiveDropDown");"none"!==t(this).css("display")&&(t(this).hide(),t(".sg-Tab--dropdown",e).removeClass("sg-Tab--dropdownActive"))})}),t(".sg-Tab--dropdownMenuContent .js-Tab").bind("click",function(e){var i=t(this).closest(".sg-Tab--responsiveDropDown");e.preventDefault(),t("#"+t(this,i).attr("id")).click();var s=t(this,i).attr("data-tab-group");t("[data-tab-group="+s+"]").each(function(){t(this,i).removeClass("is-selected").attr("aria-selected","false")}),t(this,i).addClass("is-selected").attr("aria-selected","true"),t("#"+t(this,i).attr("id")).hasClass("sg-u-visuallyhidden")&&t("#"+t(this,i).attr("id")).addClass("is-selected")})}return this.each(function(i,s){e(),t(window).on("load resize",function(){e()})})}}(jQuery);var sg=sg||{};!function(t){"use strict";sg.DatePicker={baseDate:new Date,initDatePicker:function(e){e?sg.DatePicker.readyToFillDate(e):t('input[type="date"].sg-Input').each(function(){sg.DatePicker.readyToFillDate(t(this))})},readyToFillDate:function(t){this.baseDate=sg.DatePicker.getBaseDate(t),isNaN(this.baseDate.getTime())||(sg.DatePicker.fillDefaultDate(t,"-value-","value"),sg.DatePicker.fillDefaultDate(t,"-max-","max"),sg.DatePicker.fillDefaultDate(t,"-min-","min"))},getBaseDate:function(t){var e=t.attr("data-dynamicdate-value");return e="today"===e?new Date:new Date(e)},fillDefaultDate:function(t,e,i){var s=t.attr("data-dynamicdate"+e+"back-year"),a=t.attr("data-dynamicdate"+e+"back-month"),n=t.attr("data-dynamicdate"+e+"back-day"),o=t.attr("data-dynamicdate"+e+"forward-year"),r=t.attr("data-dynamicdate"+e+"forward-month"),l=t.attr("data-dynamicdate"+e+"forward-day"),d=new Date(this.baseDate);sg.DatePicker.setDefaultYear(s,o),sg.DatePicker.setDefaultMonth(a,r),sg.DatePicker.setDefaultDay(n,l),d.getTime()!==this.baseDate.getTime()&&(sg.DatePicker.fillProperty(t,i,this.baseDate),this.baseDate=sg.DatePicker.getBaseDate(t))},setDefaultYear:function(t,e){t?this.baseDate.setYear(this.baseDate.getFullYear()-parseInt(t)):e&&this.baseDate.setYear(this.baseDate.getFullYear()+parseInt(e))},setDefaultMonth:function(t,e){t?this.baseDate.setMonth(this.baseDate.getMonth()-parseInt(t)):e&&this.baseDate.setMonth(this.baseDate.getMonth()+parseInt(e))},setDefaultDay:function(t,e){t?this.baseDate.setDate(this.baseDate.getDate()-parseInt(t)):e&&this.baseDate.setDate(this.baseDate.getDate()+parseInt(e))},fillProperty:function(t,e,i){t.prop(e,function(){return i.toJSON().split("T")[0]})}},t.fn.initDatePicker=function(){return this.each(function(){sg.DatePicker.initDatePicker(t(this))})}}(jQuery),function(t){var e=function(){window.asyncWebshims||(window.asyncWebshims={cfg:[],ready:[]})},i=function(){window.jQuery&&(t(jQuery),t=function(){return window.webshims})};window.webshims={setOptions:function(){e(),window.asyncWebshims.cfg.push(arguments)},ready:function(){e(),window.asyncWebshims.ready.push(arguments)},activeLang:function(t){e(),window.asyncWebshims.lang=t},polyfill:function(t){e(),window.asyncWebshims.polyfill=t},_curScript:function(){var t,e,i,s,a,n=document.currentScript;if(!n){try{throw new Error("")}catch(t){for(i=(t.sourceURL||t.stack||"").split("\n"),a=/(?:fil|htt|wid|abo|app|res)(.)+/i,e=0;e<i.length;e++)if(s=i[e].match(a)){i=s[0].replace(/[\:\s\(]+[\d\:\)\(\s]+$/,"");break}}for(t=document.scripts||document.getElementsByTagName("script"),e=0;e<t.length&&(!t[e].getAttribute("src")||(n=t[e],"interactive"!=t[e].readyState&&i!=t[e].src));e++);}return n}()},window.webshim=window.webshims,window.webshims.timer=setInterval(i,0),i(),"function"==typeof define&&define.amd&&define("polyfiller",["jquery"],t)}(function(t){"use strict";function e(t){return document.createElement(t)}var i,s,a=window.navigator,n=window.webshims,o="dom-support",r=t.event.special,l=t([]),d=window.asyncWebshims,c={},h=window.Object,u=function(t){return t+"\n//# sourceURL="+this.url},p=function(t){return!(!m.enhanceAuto&&"auto"==t)&&t},f={matchmedia:"matchMedia",xhr2:"filereader",promise:"es6",URL:"url"},g="capture"in e("input");clearInterval(n.timer),c.advancedObjectProperties=c.objectAccessor=c.ES5=!!("create"in h&&"seal"in h),!c.ES5||"toJSON"in Date.prototype||(c.ES5=!1),s=(s=!1===t.support.hrefNormalized?n._curScript.getAttribute("src",4):n._curScript.src).split("?")[0].slice(0,s.lastIndexOf("/")+1)+"shims/",t.extend(n,{version:"1.16.0",cfg:{enhanceAuto:window.Audio&&(!window.matchMedia||matchMedia("(min-device-width: 721px)").matches),waitReady:!0,loadStyles:!0,wsdoc:document,wspopover:{appendTo:"auto",hideOnBlur:!0},ajax:{crossDomain:!0},loadScript:function(e,i){t.ajax(t.extend({},m.ajax,{url:e,success:i,dataType:"script",cache:!0,global:!1,dataFilter:u}))},basePath:s},support:c,bugs:{},modules:{},features:{},featureList:[],setOptions:function(e,i){"string"==typeof e&&arguments.length>1?m[e]=t.isPlainObject(i)?t.extend(!0,m[e]||{},i):i:"object"==typeof e&&t.extend(!0,m,e)},_getAutoEnhance:p,addPolyfill:function(e,i){var s=(i=i||{}).f||e;b[s]||(b[s]=[],n.featureList.push(s),m[s]={}),b[s].push(e),i.options=t.extend(m[s],i.options),C(e,i),i.methodNames&&t.each(i.methodNames,function(t,e){n.addMethodName(e)})},polyfill:function(t){return t||(t=n.featureList),"string"==typeof t&&(t=t.split(" ")),n._polyfill(t)},_polyfill:function(e){var s,a,n=[];i.run||(s=-1!==t.inArray("forms-ext",e),i(),a=s&&!k["form-number-date-ui"].test()||!g&&-1!==t.inArray("mediacapture",e),s&&-1==t.inArray("forms",e)&&e.push("forms"),m.loadStyles&&T.loadCSS("styles/shim"+(a?"-ext":"")+".css")),m.waitReady&&(t.readyWait++,y(e,function(){t.ready(!0)})),t.each(e,function(t,e){return e=f[e]||e,b[e]?(e!==b[e][0]&&y(b[e],function(){v(e,!0)}),void(n=n.concat(b[e]))):void v(e,!0)}),$(n),t.each(e,function(t,e){var i=m[e];i&&("mediaelement"==e&&(i.replaceUI=p(i.replaceUI))&&i.plugins.unshift("mediacontrols"),i.plugins&&i.plugins.length&&$(m[e].plugins))})},reTest:function(){var e,i=function(i,s){var a=k[s],n=s+"Ready";!a||a.loaded||(a.test&&t.isFunction(a.test)?a.test([]):a.test)||(r[n]&&delete r[n],b[a.f],e.push(s))};return function(s){"string"==typeof s&&(s=s.split(" ")),e=[],t.each(s,i),$(e)}}(),isReady:function(e,i){if(e+="Ready",i){if(r[e]&&r[e].add)return!0;r[e]=t.extend(r[e]||{},{add:function(t){t.handler.call(this,e)}}),t(document).triggerHandler(e)}return!(!r[e]||!r[e].add)||!1},ready:function(e,i){var s=arguments[2];if("string"==typeof e&&(e=e.split(" ")),s||(e=t.map(t.grep(e,function(t){return!v(t)}),function(t){return t+"Ready"})),e.length){var a=e.shift();t(document).one(a,function(){y(e,i,!0)})}else i(t,n,window,document)},capturingEvents:function(e,i){document.addEventListener&&("string"==typeof e&&(e=[e]),t.each(e,function(e,s){var a=function(e){return e=t.event.fix(e),i&&n.capturingEventPrevented&&n.capturingEventPrevented(e),t.event.dispatch.call(this,e)};r[s]=r[s]||{},r[s].setup||r[s].teardown||t.extend(r[s],{setup:function(){this.addEventListener(s,a,!0)},teardown:function(){this.removeEventListener(s,a,!0)}})}))},register:function(e,i){var s=k[e];if(s){s.loaded=!0;var a=function(){i(t,n,window,document,void 0,s.options),v(e,!0)};s.d&&s.d.length?y(s.d,a):a()}else n.error("can't find module: "+e)},c:{},loader:{addModule:function(e,i){k[e]=i,i.name=i.name||e,i.c||(i.c=[]),t.each(i.c,function(t,i){n.c[i]||(n.c[i]=[]),n.c[i].push(e)})},loadList:function(){var e=[],i=function(i,s){"string"==typeof s&&(s=[s]),t.merge(e,s),T.loadScript(i,!1,s)},s=function(i,s){if(v(i)||-1!=t.inArray(i,e))return!0;var a=k[i];return!a||!!(a.test&&t.isFunction(a.test)?a.test(s):a.test)&&(v(i,!0),!0)},a=function(e,i){if(e.d&&e.d.length){var a=function(e,a){s(a,i)||-1!=t.inArray(a,i)||i.push(a)};t.each(e.d,function(e,i){k[i]?k[i].loaded||a(0,i):b[i]&&(t.each(b[i],a),y(b[i],function(){v(i,!0)}))}),e.noAutoCallback||(e.noAutoCallback=!0)}};return function(o){var r,l,d,c,h=[];for(l=0;l<o.length;l++)(r=k[o[l]])&&!s(r.name,o)&&(r.css&&m.loadStyles&&T.loadCSS(r.css),r.loadInit&&r.loadInit(),a(r,o),r.loaded||h.push(r.name),r.loaded=!0);for(l=0,d=h.length;d>l;l++)c=!1,r=h[l],-1==t.inArray(r,e)&&("noCombo"!=m.debug&&t.each(k[r].c,function(s,a){return c=a,t.each(n.c[a],function(i,s){return-1==t.inArray(s,h)||-1!=t.inArray(s,e)?(c=!1,!1):void 0}),c?(i("combos/"+c,n.c[c]),!1):void 0}),c||i(k[r].src||r,r))}}(),makePath:function(t){return-1!=t.indexOf("//")||0===t.indexOf("/")?t:(-1==t.indexOf(".")&&(t+=".js"),m.addCacheBuster&&(t+=m.addCacheBuster),m.basePath+t)},loadCSS:function(){var e,i={};return function(s){s=this.makePath(s),i[s]||(e=e||t("link, style")[0]||t("script")[0],i[s]=1,t('<link rel="stylesheet" />').insertBefore(e).attr({href:s}))}}(),loadScript:function(){var e={};return function(i,s,a,n){if(n||(i=T.makePath(i)),!e[i]){e[i]=1,m.loadScript(i,function(){s&&s(),a&&("string"==typeof a&&(a=a.split(" ")),t.each(a,function(t,e){k[e]&&(k[e].afterLoad&&k[e].afterLoad(),v(k[e].noAutoCallback?e+"FileLoaded":e,!0))}))},t.noop)}}}()}});var m=n.cfg,b=n.features,v=n.isReady,y=n.ready,w=n.addPolyfill,k=n.modules,T=n.loader,$=T.loadList,C=T.addModule,D=n.bugs,M=[],P={warn:1,error:1},x=t.fn,S=e("video");n.addMethodName=function(t){var e=(t=t.split(":"))[1];1==t.length?(e=t[0],t=t[0]):t=t[0],x[t]=function(){return this.callProp(e,arguments)}},x.callProp=function(e,i){var s;return i||(i=[]),this.each(function(){var a=t.prop(this,e);if(a&&a.apply){if(void 0!==(s=a.apply(this,i)))return!1}else n.warn(e+" is not a method of "+this)}),void 0!==s?s:this},n.activeLang=function(){"language"in a||(a.language=a.browserLanguage||"");var e=t.attr(document.documentElement,"lang")||a.language;return y("webshimLocalization",function(){n.activeLang(e)}),function(t){if(t)if("string"==typeof t)e=t;else if("object"==typeof t){var i=arguments,s=this;y("webshimLocalization",function(){n.activeLang.apply(s,i)})}return e}}(),n.errorLog=[],t.each(["log","error","warn","info"],function(t,e){n[e]=function(t){(P[e]&&!1!==m.debug||m.debug)&&(n.errorLog.push(t),window.console&&console.log&&console[console[e]?e:"log"](t))}}),function(){t.isDOMReady=t.isReady;var e=function(){t.isDOMReady=!0,v("DOM",!0),setTimeout(function(){v("WINDOWLOAD",!0)},9999)};i=function(){if(!i.run){if(!t.isDOMReady&&m.waitReady){var s=t.ready;t.ready=function(t){return!0!==t&&document.body&&e(),s.apply(this,arguments)},t.ready.promise=s.promise}m.readyEvt?t(document).one(m.readyEvt,e):t(e)}i.run=!0},t(window).on("load",function(){e(),setTimeout(function(){v("WINDOWLOAD",!0)},9)});var s=[],a=function(){1==this.nodeType&&n.triggerDomUpdate(this)};t.extend(n,{addReady:function(t){var e=function(e,i){n.ready("DOM",function(){t(e,i)})};s.push(e),m.wsdoc&&e(m.wsdoc,l)},triggerDomUpdate:function(e){if(e&&e.nodeType){var i=e.nodeType;if(1==i||9==i){var a=e!==document?t(e):l;t.each(s,function(t,i){i(e,a)})}}else e&&e.jquery&&e.each(function(){n.triggerDomUpdate(this)})}}),x.clonePolyfill=x.clone,x.htmlPolyfill=function(e){if(!arguments.length)return t(this.clonePolyfill()).html();var i=x.html.call(this,e);return i===this&&t.isDOMReady&&this.each(a),i},x.jProp=function(){return this.pushStack(t(x.prop.apply(this,arguments)||[]))},t.each(["after","before","append","prepend","replaceWith"],function(e,i){x[i+"Polyfill"]=function(e){return e=t(e),x[i].call(this,e),t.isDOMReady&&e.each(a),this}}),t.each(["insertAfter","insertBefore","appendTo","prependTo","replaceAll"],function(e,i){x[i.replace(/[A-Z]/,function(t){return"Polyfill"+t})]=function(){return x[i].apply(this,arguments),t.isDOMReady&&n.triggerDomUpdate(this),this}}),x.updatePolyfill=function(){return t.isDOMReady&&n.triggerDomUpdate(this),this},t.each(["getNativeElement","getShadowElement","getShadowFocusElement"],function(t,e){x[e]=function(){return this.pushStack(this)}})}(),h.create&&(n.objectCreate=function(e,i,s){var a=h.create(e);return s&&(a.options=t.extend(!0,{},a.options||{},s),s=a.options),a._create&&t.isFunction(a._create)&&a._create(s),a}),C("swfmini",{test:function(){return window.swfobject&&!window.swfmini&&(window.swfmini=window.swfobject),"swfmini"in window},c:[16,7,2,8,1,12,23]}),k.swfmini.test(),C("sizzle",{test:t.expr.filters}),w("es5",{test:!(!c.ES5||!Function.prototype.bind),d:["sizzle"]}),w("dom-extend",{f:o,noAutoCallback:!0,d:["es5"],c:[16,7,2,15,30,3,8,4,9,10,25,31,34]}),e("picture"),w("picture",{test:"picturefill"in window||!!window.HTMLPictureElement||"respimage"in window,d:["matchMedia"],c:[18],loadInit:function(){v("picture",!0)}}),w("matchMedia",{test:!(!window.matchMedia||!matchMedia("all").addListener),c:[18]}),w("sticky",{test:-1!=(t(e("b")).attr("style","position: -webkit-sticky; position: sticky").css("position")||"").indexOf("sticky"),d:["es5","matchMedia"]}),w("es6",{test:!!(Math.imul&&Number.MIN_SAFE_INTEGER&&h.is&&window.Promise&&Promise.all),d:["es5"]}),w("geolocation",{test:"geolocation"in a,options:{destroyWrite:!0},c:[21]}),w("canvas",{src:"excanvas",test:"getContext"in e("canvas"),options:{type:"flash"},noAutoCallback:!0,loadInit:function(){var t=this.options.type;!t||-1===t.indexOf("flash")||k.swfmini.test()&&!swfmini.hasFlashPlayerVersion("9.0.0")||(this.src="flash"==t?"FlashCanvas/flashcanvas":"FlashCanvasPro/flashcanvas")},methodNames:["getContext"],d:[o]});var A="getUserMedia"in a;w("usermedia-core",{f:"usermedia",test:A&&!!window.URL,d:["url",o]}),w("usermedia-shim",{f:"usermedia",test:!!(A||a.webkitGetUserMedia||a.mozGetUserMedia||a.msGetUserMedia),d:["url","mediaelement",o]}),w("mediacapture",{test:g,d:["swfmini","usermedia",o,"filereader","forms","canvas"]}),function(){var i,s,r="form-shim-extend",l="formvalidation",d="form-number-date-api",h=!1,u=!1,f=!1,g={},b=e("progress"),v=e("output"),y=function(){var s,n,o=e("input");if(n=t('<fieldset><textarea required="" /></fieldset>')[0],c.inputtypes=g,t.each(["range","date","datetime-local","month","color","number"],function(t,e){o.setAttribute("type",e),g[e]=o.type==e&&(o.value="1(")&&"1("!=o.value}),c.datalist=!!("options"in e("datalist")&&window.HTMLDataListElement),c[l]="checkValidity"in o,c.fieldsetelements="elements"in n,c.fieldsetdisabled="disabled"in n){try{n.querySelector(":invalid")&&(n.disabled=!0,s=!n.querySelector(":invalid")&&n.querySelector(":disabled"))}catch(t){}c.fieldsetdisabled=!!s}if(c[l]&&(u=!(c.fieldsetdisabled&&c.fieldsetelements&&"value"in b&&"value"in v),f=u&&/Android/i.test(a.userAgent),!(h=window.opera||D.bustedValidity||u||!c.datalist)&&g.number)){h=!0;try{o.type="number",o.value="",o.stepUp(),h="1"!=o.value}catch(t){}}return D.bustedValidity=h,i=c[l]&&!h?"form-native-extend":r,y=t.noop,!1},T=function(e){var i=!0;return e._types||(e._types=e.types.split(" ")),t.each(e._types,function(t,e){return e in g&&!g[e]?(i=!1,!1):void 0}),i};n.validationMessages=n.validityMessages={langSrc:"i18n/formcfg-",availableLangs:"ar bg ca cs el es fa fi fr he hi hu it ja lt nl no pl pt pt-BR pt-PT ru sv zh-CN zh-TW".split(" ")},n.formcfg=t.extend({},n.validationMessages),n.inputTypes={},w("form-core",{f:"forms",test:y,d:["es5"],options:{placeholderType:"value",messagePopover:{},list:{popover:{constrainWidth:!0}},iVal:{sel:".ws-validate",handleBubble:"hide",recheckDelay:400}},methodNames:["setCustomValidity","checkValidity","setSelectionRange"],c:[16,7,2,8,1,15,30,3,31]}),s=m.forms,w("form-native-extend",{f:"forms",test:function(e){return y(),!c[l]||h||-1==t.inArray(d,e||[])||k[d].test()},d:["form-core",o,"form-message"],c:[6,5,14,29]}),w(r,{f:"forms",test:function(){return y(),c[l]&&!h},d:["form-core",o,"sizzle"],c:[16,15,28]}),w(r+"2",{f:"forms",test:function(){return y(),c[l]&&!u},d:[r],c:[27]}),w("form-message",{f:"forms",test:function(t){return y(),!(s.customMessages||!c[l]||h||!k[i].test(t))},d:[o],c:[16,7,15,30,3,8,4,14,28]}),w(d,{f:"forms-ext",options:{types:"date time range number"},test:function(){y();var t=!h;return t&&(t=T(this.options)),t},methodNames:["stepUp","stepDown"],d:["forms",o],c:[6,5,17,14,28,29,33]}),C("range-ui",{options:{},noAutoCallback:!0,test:function(){return!!x.rangeUI},d:["es5"],c:[6,5,9,10,17,11]}),w("form-number-date-ui",{f:"forms-ext",test:function(){var t=this.options;return t.replaceUI=p(t.replaceUI),y(),!t.replaceUI&&f&&(t.replaceUI=!0),!t.replaceUI&&T(t)},d:["forms",o,d,"range-ui"],options:{widgets:{calculateWidth:!0,animate:!0}},c:[6,5,9,10,17,11]}),w("form-datalist",{f:"forms",test:function(){return y(),f&&(s.customDatalist=!0),c.datalist&&!s.fD},d:["form-core",o],c:[16,7,6,2,9,15,30,31,28,33]})}();var E="FileReader"in window&&"FormData"in window;return w("filereader-xhr",{f:"filereader",test:E,d:[o,"swfmini"],c:[25,27]}),w("canvas-blob",{f:"filereader",methodNames:["toBlob"],test:!(E&&!e("canvas").toBlob)}),w("details",{test:"open"in e("details"),d:[o],options:{text:"Details"},c:[21,22]}),w("url",{test:function(){var t=!1;try{t=!(!(t=new URL("b","http://a")).searchParams||"http://a/b"!=t.href)}catch(t){}return t},d:["es5"]}),function(){n.mediaelement={};var i=e("track");if(c.mediaelement="canPlayType"in S,c.texttrackapi="addTextTrack"in S,c.track="kind"in i,e("audio"),!(D.track=!c.texttrackapi))try{D.track=!("oncuechange"in S.addTextTrack("metadata"))}catch(t){}w("mediaelement-core",{f:"mediaelement",noAutoCallback:!0,options:{jme:{},plugins:[],vars:{},params:{},attrs:{},changeSWF:t.noop},methodNames:["play","pause","canPlayType","mediaLoad:load"],d:["swfmini"],c:[16,7,2,8,1,12,13,23]}),w("mediaelement-jaris",{f:"mediaelement",d:["mediaelement-core",o],test:function(){var t=this.options;return!(!c.mediaelement||n.mediaelement.loadSwf)&&(t.preferFlash&&!k.swfmini.test()&&(t.preferFlash=!1),!(t.preferFlash&&swfmini.hasFlashPlayerVersion("11.3")))},c:[21,25]}),w("track",{options:{positionDisplay:!0,override:D.track},test:function(){var t=this.options;return t.override=p(t.override),!t.override&&!D.track},d:["mediaelement",o],methodNames:["addTextTrack"],c:[21,12,13,22,34]}),C("jmebase",{src:"jme/base",c:[98,99,97]}),t.each([["mediacontrols",{c:[98,99],css:"jme/controls.css"}],["playlist",{c:[98,97]}],["alternate-media"]],function(e,i){C(i[0],t.extend({src:"jme/"+i[0],d:["jmebase"]},i[1]))}),C("track-ui",{d:["track",o]})}(),w("feature-dummy",{test:!0,loaded:!0,c:M}),n.$=t,t.webshims=n,t.webshim=webshim,n.callAsync=function(){n.callAsync=t.noop,d&&(d.cfg&&(d.cfg.length||(d.cfg=[[d.cfg]]),t.each(d.cfg,function(t,e){n.setOptions.apply(n,e)})),d.ready&&t.each(d.ready,function(t,e){n.ready.apply(n,e)}),d.lang&&n.activeLang(d.lang),"polyfill"in d&&n.polyfill(d.polyfill)),n.isReady("jquery",!0)},n.callAsync(),n});