!function(){for(var e,t=function(){},a=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn"],l=a.length,i=window.console=window.console||{};l--;)i[e=a[l]]||(i[e]=t)}(),function($){$.fn.navList=function(){var e=$(this);return $a=e.find("a"),b=[],$a.each((function(){var e=$(this),t=Math.max(0,e.parents("li").length-1),a=e.attr("href"),l=e.attr("target");b.push('<a class="link depth-'+t+'"'+(void 0!==l&&""!=l?' target="'+l+'"':"")+(void 0!==a&&""!=a?' href="'+a+'"':"")+'><span class="indent-'+t+'"></span>'+e.text()+"</a>")})),b.join("")},$.fn.panel=function(e){if(0==this.length)return l;if(this.length>1){for(var t=0;t<this.length;t++)$(this[t]).panel(e);return l}var a,l=$(this),i=$("body"),o=$(window),n=l.attr("id");return"jQuery"!=typeof(a=$.extend({delay:0,hideOnClick:!1,hideOnEscape:!1,hideOnSwipe:!1,resetScroll:!1,resetForms:!1,side:null,target:l,visibleClass:"visible"},e)).target&&(a.target=$(a.target)),l._hide=function(e){a.target.hasClass(a.visibleClass)&&(e&&(e.preventDefault(),e.stopPropagation()),a.target.removeClass(a.visibleClass),window.setTimeout((function(){a.resetScroll&&l.scrollTop(0),a.resetForms&&l.find("form").each((function(){this.reset()}))}),a.delay))},l.css("-ms-overflow-style","-ms-autohiding-scrollbar").css("-webkit-overflow-scrolling","touch"),a.hideOnClick&&(l.find("a").css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),l.on("click","a",(function(e){var t=$(this),i=t.attr("href"),o=t.attr("target");i&&"#"!=i&&""!=i&&i!="#"+n&&(e.preventDefault(),e.stopPropagation(),l._hide(),window.setTimeout((function(){"_blank"==o?window.open(i):window.location.href=i}),a.delay+10))}))),l.on("touchstart",(function(e){l.touchPosX=e.originalEvent.touches[0].pageX,l.touchPosY=e.originalEvent.touches[0].pageY})),l.on("touchmove",(function(e){if(null!==l.touchPosX&&null!==l.touchPosY){var t=l.touchPosX-e.originalEvent.touches[0].pageX,i=l.touchPosY-e.originalEvent.touches[0].pageY,o=l.outerHeight(),n=l.get(0).scrollHeight-l.scrollTop();if(a.hideOnSwipe){var r=!1,s=20;switch(a.side){case"left":r=i<s&&i>-20&&t>50;break;case"right":r=i<s&&i>-20&&t<-50;break;case"top":r=t<s&&t>-20&&i>50;break;case"bottom":r=t<s&&t>-20&&i<-50}if(r)return l.touchPosX=null,l.touchPosY=null,l._hide(),!1}(l.scrollTop()<0&&i<0||n>o-2&&n<o+2&&i>0)&&(e.preventDefault(),e.stopPropagation())}})),l.on("click touchend touchstart touchmove",(function(e){e.stopPropagation()})),l.on("click",'a[href="#'+n+'"]',(function(e){e.preventDefault(),e.stopPropagation(),a.target.removeClass(a.visibleClass)})),i.on("click touchend",(function(e){l._hide(e)})),i.on("click",'a[href="#'+n+'"]',(function(e){e.preventDefault(),e.stopPropagation(),a.target.toggleClass(a.visibleClass)})),a.hideOnEscape&&o.on("keydown",(function(e){27==e.keyCode&&l._hide(e)})),l},$.fn.placeholder=function(){if(void 0!==document.createElement("input").placeholder)return $(this);if(0==this.length)return t;if(this.length>1){for(var e=0;e<this.length;e++)$(this[e]).placeholder();return t}var t=$(this);return t.find("input[type=text],textarea").each((function(){var e=$(this);""!=e.val()&&e.val()!=e.attr("placeholder")||e.addClass("polyfill-placeholder").val(e.attr("placeholder"))})).on("blur",(function(){var e=$(this);e.attr("name").match(/-polyfill-field$/)||""==e.val()&&e.addClass("polyfill-placeholder").val(e.attr("placeholder"))})).on("focus",(function(){var e=$(this);e.attr("name").match(/-polyfill-field$/)||e.val()==e.attr("placeholder")&&e.removeClass("polyfill-placeholder").val("")})),t.find("input[type=password]").each((function(){var e=$(this),t=$($("<div>").append(e.clone()).remove().html().replace(/type="password"/i,'type="text"').replace(/type=password/i,"type=text"));""!=e.attr("id")&&t.attr("id",e.attr("id")+"-polyfill-field"),""!=e.attr("name")&&t.attr("name",e.attr("name")+"-polyfill-field"),t.addClass("polyfill-placeholder").val(t.attr("placeholder")).insertAfter(e),""==e.val()?e.hide():t.hide(),e.on("blur",(function(t){t.preventDefault();var a=e.parent().find("input[name="+e.attr("name")+"-polyfill-field]");""==e.val()&&(e.hide(),a.show())})),t.on("focus",(function(e){e.preventDefault();var a=t.parent().find("input[name="+t.attr("name").replace("-polyfill-field","")+"]");t.hide(),a.show().focus()})).on("keypress",(function(e){e.preventDefault(),t.val("")}))})),t.on("submit",(function(){t.find("input[type=text],input[type=password],textarea").each((function(e){var t=$(this);t.attr("name").match(/-polyfill-field$/)&&t.attr("name",""),t.val()==t.attr("placeholder")&&(t.removeClass("polyfill-placeholder"),t.val(""))}))})).on("reset",(function(e){e.preventDefault(),t.find("select").val($("option:first").val()),t.find("input,textarea").each((function(){var e,t=$(this);switch(t.removeClass("polyfill-placeholder"),this.type){case"submit":case"reset":break;case"password":t.val(t.attr("defaultValue")),e=t.parent().find("input[name="+t.attr("name")+"-polyfill-field]"),""==t.val()?(t.hide(),e.show()):(t.show(),e.hide());break;case"checkbox":case"radio":t.attr("checked",t.attr("defaultValue"));break;case"text":case"textarea":t.val(t.attr("defaultValue")),""==t.val()&&(t.addClass("polyfill-placeholder"),t.val(t.attr("placeholder")));break;default:t.val(t.attr("defaultValue"))}}))})),t},$.prioritize=function(e,t){var a="__prioritize";"jQuery"!=typeof e&&(e=$(e)),e.each((function(){var e,l=$(this),i=l.parent();if(0!=i.length)if(l.data(a)){if(t)return;e=l.data(a),l.insertAfter(e),l.removeData(a)}else{if(!t)return;if(0==(e=l.prev()).length)return;l.prependTo(i),l.data(a,e)}}))}}(jQuery);