/*=======================================================================*\
|| ###################################################################### ||
|| # vBulletin 5.5.2
|| # ------------------------------------------------------------------ # ||
|| # Copyright 2000-2019 MH Sub I, LLC dba vBulletin. All Rights Reserved.  # ||
|| # This file may not be redistributed in whole or significant part.   # ||
|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html   # ||
|| ###################################################################### ||
\*========================================================================*/
window.vBulletin=window.vBulletin||{};window.vBulletin.phrase=window.vBulletin.phrase||{};window.vBulletin.phrase.precache=window.vBulletin.phrase.precache||[];window.vBulletin.phrase.precache=$.merge(window.vBulletin.phrase.precache,[]);window.vBulletin=window.vBulletin||{};window.vBulletin.Responsive=window.vBulletin.Responsive||{};window.vBulletin.Responsive.bodyWidth=0;window.vBulletin.Responsive.scrollToFixedBreakPoint=480;vBulletin.Responsive.DocReady={load:function(){Modernizr.addTest("firefox",function(){return !!navigator.userAgent.match(/firefox/i)});Modernizr.addTest("opera",function(){return !!navigator.userAgent.match(/opera/i)});vBulletin.Responsive.MediaQueries.setResizeEvent();vBulletin.Responsive.MediaQueries.handleResizeEvent();vBulletin.Responsive.ChannelContent.cloneAndMoveToolbarButtons();vBulletin.Responsive.ChannelContent.initToolbarShrink();vBulletin.Responsive.SearchResultsToolbar.createMobileView();vBulletin.Responsive.Debug.wrap();vBulletin.Responsive.ConversationContent.checkForSignature();vBulletin.Responsive.Touch.override()}};vBulletin.Responsive.Touch={override:function(){var B="touch";if($("html").hasClass(B)){var F="no-touch";var E=navigator.userAgent.toLowerCase();var A="Firefox".toLowerCase();var D=E.indexOf(A);var G="Windows NT 6.1".toLowerCase();var C=E.indexOf(G);if(D!==-1&&C!==-1){$("html").removeClass(B).addClass(F)}}}};vBulletin.Responsive.Modal={init:function(){if($(".sgIconUploader").length){var B=["ui-dialog","ui-widget","ui-widget-content","ui-corner-all","ui-draggable","ui-resizable"];var A="body div."+B.join(".");if(!$(A).hasClass("rx-modal")){$(A).addClass("rx-modal")}}setTimeout(this.setRadioState,100)},setRadioState:function(){$("input:radio[name=sgIconToggle]:visible:first").click()}};vBulletin.Responsive.Debug={wrap:function(){var B="debug-information";var A="debug-information-wrapper";if($("#"+B).length&&!$("#"+A).length){$("#"+B).wrap('<div id="'+A+'" />')}}};vBulletin.Responsive.ChannelContent={cloneAndMoveToolbarButtons:function(){var B=$(".js-movable-toolbar-button"),C=$(".js-movable-toolbar-button-clone"),H=B,I=$(".js-movable-toolbar-button-container"),A=0,D={};function F(){var J=parseInt($(this).data("js-movable-button-clone-id")||0,10);A=Math.max(A,J)}B.each(F);C.each(F);++A;B=B.filter(function(){var J=$(this),K="uniq-"+J.attr("class").split(/\s+/).sort().join("-");K=K.replace("-h-hide-on-small","");if(D[K]){J.addClass("h-hide-on-small");return false}D[K]=true;return true});if(I.length<1){var G=false;if(B.length>0){console.warn("Responsive warning: .js-movable-toolbar-button-container is not available.");var E=B.eq(0).closest(".canvas-widget");if(E.length==1){I=$("<div />").addClass("h-right h-clear hide-on-editmode b-button-group h-margin-bottom-l js-movable-toolbar-button-container h-hide-on-large").prependTo(E);console.log("Responsive: Created .js-movable-toolbar-button-container");G=true}}if(!G){return }}B=B.filter(function(){var K=$(this),L=K.data("js-movable-button-clone-id");if(L){var J=false;C.each(function(){var M=$(this);if(M.data("js-movable-button-clone-id")==L){J=true;return false}});if(J){return false}}return true});C.each(function(){var K=$(this),L=K.data("js-movable-button-clone-id"),J=false;H.each(function(M,O){var N=$(O).data("js-movable-button-clone-id");if(N==L){J=true;return false}});if(!J){K.remove()}});B=B.reverse();B.each(function(){var K=$(this);if(!K.data("js-movable-button-clone-id")){var J=K.clone().removeClass("js-movable-toolbar-button").addClass("h-hide-on-large js-movable-toolbar-button-clone").data("js-movable-button-clone-id",A).off("click").on("click",function(){K.click()}).prependTo(I);K.addClass("h-hide-on-small").data("js-movable-button-clone-id",A);++A}})},toggleShrinkToolbar:function(A){var C=$(".js-under-toolbar-pagenav"),B=$(".js-toolbar-pagenav");if(A=="shrink"){if(C.length==1){B.removeClass("h-hide-on-xsmall").addClass("h-hide");C.removeClass("h-show-on-xsmall");$(".js-subtoolbar-list-header").addClass("h-hide")}}else{B.addClass("h-hide-on-xsmall").removeClass("h-hide");C.addClass("h-show-on-xsmall");$(".js-subtoolbar-list-header").removeClass("h-hide")}},handleToolbarShrink:function(){vBulletin.Responsive.ChannelContent.toggleShrinkToolbar("shrink")},handleToolbarUnshrink:function(){vBulletin.Responsive.ChannelContent.toggleShrinkToolbar("unshrink");var B=$(this),A=vBulletin.Responsive.Debounce.checkElementShrinkRequirement(B);if(A=="need_shrink"){vBulletin.Responsive.ChannelContent.toggleShrinkToolbar("shrink")}},initToolbarShrink:function(){$(".conversation-toolbar").on("vbulletin:shrink",vBulletin.Responsive.ChannelContent.handleToolbarShrink);$(".conversation-toolbar").on("vbulletin:unshrink",vBulletin.Responsive.ChannelContent.handleToolbarUnshrink)},};vBulletin.Responsive.SearchResultsToolbar={selector:".search-results-widget .conversation-toolbar",createMobileView:function(){var A=vBulletin.Responsive.SearchResultsToolbar.selector;var C=A+".desktop";var B=$(A);B.addClass("desktop");if($(C).find(".toolbar-pagenav").length){$("<div>").addClass("conversation-toolbar mobile-search-results").insertAfter(B);this.copyElementsToMobileSearchResultsToolbar()}},copyElementsToMobileSearchResultsToolbar:function(){var B=vBulletin.Responsive.SearchResultsToolbar.selector;var E=B+".desktop";var F=B+".mobile-search-results";var D=$(E);var C=$(F);var A=D.find(".toolset-right").clone(true,true);C.append(A)}};vBulletin.Responsive.Search={cloneTagsLink:function(){if(!$("#rx-tags-column").length){var C=$(".form-row-tags");if(C.length){var A=$(".form-row-tags > .field_column");var D=$(".tag-editor-wrapper > span.add-tag-link");var B=D.clone();B.on("click",function(){$(".tag-editor-wrapper > span.add-tag-link").click()});A.css("display","block");D.addClass("h-hide-on-small");C.append("<div id='rx-tags-column' class='field_column'></div>");B.appendTo($("#rx-tags-column"))}}}};vBulletin.Responsive.MediaQueries={init:function(){vBulletin.Responsive.bodyWidth=$("#vb-page-body").width()},setResizeEvent:function(){var A=this.handleResizeEvent;$(window).resize(function(){A()});$(window).on("orientationchange",A)},handleResizeEvent:function(){if($("#vb-page-body").width()!=vBulletin.Responsive.bodyWidth){vBulletin.Responsive.bodyWidth=$("#vb-page-body").width();if(Modernizr.mq("only screen and (max-width: 599px)")){$("#pmFloatingBarContent .toolset.h-left").detach().prependTo("#privateMessageContainer").addClass("h-clearfix")}if(Modernizr.mq("only screen and (min-width: 600px)")){$("#privateMessageContainer .toolset.h-left").detach().prependTo("#pmFloatingBarContent").removeClass("h-clearfix")}if(Modernizr.mq("only screen and (max-width: 767px)")){vBulletin.Responsive.Search.cloneTagsLink()}if(Modernizr.mq("only screen and (max-width: 479px)")){vBulletin.Responsive.Debug.wrap()}if(vBulletin.contentslider&&typeof vBulletin.contentslider.handleWindowResize=="function"){vBulletin.contentslider.handleWindowResize()}}}};vBulletin.Responsive.ConversationContent={checkForSignature:function(){$(".conversation-content .videoscontainer").each(function(){if(!$(this).siblings("div.post-signature").length){$(this).addClass("no-signature")}})}};
/*
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 *
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(B,C){var $=B.jQuery||B.Cowboy||(B.Cowboy={}),A;$.throttle=A=function(E,F,J,I){var H,D=0;if(typeof F!=="boolean"){I=J;J=F;F=C}function G(){var O=this,M=+new Date()-D,N=arguments;function L(){D=+new Date();J.apply(O,N)}function K(){H=C}if(I&&!H){L()}H&&clearTimeout(H);if(I===C&&M>E){L()}else{if(F!==true){H=setTimeout(I?K:L,I===C?E-M:E)}}}if($.guid){G.guid=J.guid=J.guid||$.guid++}return G};$.debounce=function(D,E,F){return F===C?A(D,E,false):A(D,F,E!==false)}})(this);$.extend(vBulletin.Responsive.Debounce,{areElementsOnOneRow:function(C){var B=C.first().position().top,A=true;C.each(function(E,G){var F=$(G),D=F.position().top;if(D!=B){A=false;return false}});return A},doAnyElementsOverlap:function(C){function B(G,F){var E=G.offset(),D=F.offset();E.bottom=E.top+G.outerHeight()-1;E.right=E.left+G.outerWidth()-1;D.bottom=D.top+F.outerHeight()-1;D.right=D.left+F.outerWidth()-1;return !(E.right<D.left||E.bottom<D.top||D.right<E.left||D.bottom<E.top)}var A=false;C.each(function(D,E){if(D<C.length-1){if(B($(E),C.eq(D+1))){A=true;return false}}});return A},checkElementShrinkRequirement:function(C){var B=C.find("> .js-shrink-event-child").filter(":visible");if(B.length<1){return"no_children"}if(!vBulletin.Responsive.Debounce.areElementsOnOneRow(B)||vBulletin.Responsive.Debounce.doAnyElementsOverlap(B)){C.data("vbulletin-shrink-triggered","1");return"need_shrink"}else{var A=C.data("vbulletin-shrink-triggered");if(typeof A!="undefined"&&A=="1"){return"need_unshrink"}}return"no_change"},checkShrinkEvent:function(A){if(typeof A=="undefined"){A=$(".js-shrink-event-parent")}A.each(function(B,C){var E=$(C),D=vBulletin.Responsive.Debounce.checkElementShrinkRequirement(E);switch(D){case"need_shrink":E.trigger("vbulletin:shrink");break;case"need_unshrink":E.trigger("vbulletin:unshrink");break;case"no_children":case"no_change":default:break}})},init:function(){var B=0;var A=function(){var F=new Date();var G=F.getTime();if(B>0){console.log(G-B)}B=G};var E=function(){var F=$(".l-row");if(F.length<1){return }F.reverse().each(function(){var I=$(this);if(I.width()>=768){I.removeClass("l-small");return true}var G=I.find("> .l-col__flex-1, > .l-col__flex-2, > .l-col__flex-3, > .l-col__flex-4, > .l-col__flex-5, > .l-col__flex-6"),H=false;I.removeClass("l-small");G.reverse().each(function(){if(this.offsetWidth<this.scrollWidth){H=true;return false}});if(H){I.addClass("l-small")}})};var D=function(){var F=$(".l-row > .l-col__large-1, .l-row > .l-col__large-2, .l-row > .l-col__large-3, .l-row > .l-col__large-4, .l-row > .l-col__large-5, .l-row > .l-col__large-6, .l-row > .l-col__large-7, .l-row > .l-col__large-8, .l-row > .l-col__large-9, .l-row > .l-col__large-10, .l-row > .l-col__large-11, .l-row > .l-col__large-12, .l-row > .l-col__fixed-1, .l-row > .l-col__flex-1, .l-row > .l-col__fixed-2, .l-row > .l-col__flex-2, .l-row > .l-col__fixed-3, .l-row > .l-col__flex-3, .l-row > .l-col__fixed-4, .l-row > .l-col__flex-4, .l-row > .l-col__fixed-5, .l-row > .l-col__flex-5, .l-row > .l-col__fixed-6, .l-row > .l-col__flex-6, .l-row > .l-col__small-1, .l-row > .l-col__small-2, .l-row > .l-col__small-3, .l-row > .l-col__small-4");if(F.length<1){return }F.reverse().each(function(){var J=$(this),H=J.width(),G=parseInt(J.css("marginLeft"),10),I=parseInt(J.css("marginRight"),10);if(G<0){H+=G}if(I<0){H+=I}if(H<480){J.addClass("l-column-xsmall")}else{J.removeClass("l-column-xsmall")}if(H<768){J.addClass("l-column-small")}else{J.removeClass("l-column-small")}if(H>=768){J.addClass("l-column-desktop")}else{J.removeClass("l-column-desktop")}})};var C=function(){var F=$(".ui-dialog:visible .ui-dialog-content");F.each(function(G,J){var L=$(J);L.trigger("vbulletin:dialogresize");L.dialog("option","position",{my:"center",at:"center",of:window,collision:"flipfit"});if(!L.is(".js-no-responsive-resize")){L.closest(".ui-dialog").hide();var H=$(window).width();L.closest(".ui-dialog").show();var M=L.dialog("option","width");if(M>H){if(!L.data("original-dialog-width")){L.data("original-dialog-width",M)}L.dialog("option","width",H)}else{if(M<H){var I=L.data("original-dialog-width");if(I&&M<I){var K=Math.min(I,H);L.dialog("option","width",K)}}}}})};vBulletin.Responsive.Debounce.registerCallback(vBulletin.Responsive.Debounce.checkBrowserSize);vBulletin.Responsive.Debounce.registerCallback(E);vBulletin.Responsive.Debounce.registerCallback(D);vBulletin.Responsive.Debounce.registerCallback(C);vBulletin.Responsive.Debounce.registerCallback(vBulletin.Responsive.Debounce.checkShrinkEvent);$(window).on("resize",$.debounce(300,vBulletin.Responsive.Debounce.runCallbacks));vBulletin.Responsive.Debounce.runCallbacks()},callbacks:[],registerCallback:function(A){vBulletin.Responsive.Debounce.callbacks.push(A)},registerCallbackOnce:function(B){var A=false;$.each(vBulletin.Responsive.Debounce.callbacks,function(){if(B==this||(""+B)==(""+this)){A=true;return false}});if(!A){vBulletin.Responsive.Debounce.callbacks.push(B)}},runCallbacks:function(){if(vBulletin.Responsive.Debounce.callbacks.length>0){var B,A=vBulletin.Responsive.Debounce.callbacks.length;for(B=0;B<A;++B){vBulletin.Responsive.Debounce.callbacks[B]()}}},});$(document).ready(function(){vBulletin.Responsive.DocReady.load();vBulletin.Responsive.Debounce.init()});