PageSourceSearch

https://urbanstl.com/styles/Tapatalk/template/ttg.min.js?v=2026081301&theme_v=editor-keyboard-1

js urbanstl.com collected 2026-09-25 00:28:18 UTC 228,408 bytes, 1 lines download raw bytes

1var phpbb={};function find_username(t){"use strict";return popup(t,760,570,"_usersearch"),!1}function popup(t,e,o,n){"use strict";return n||(n="_popup"),window.open(t.replace(/&amp;/g,"&"),n,"height="+o+",resizable=yes,scrollbars=yes, width="+e),!1}function pageJump(t){"use strict";var e=parseInt(t.val(),10),o=t.attr("data-per-page"),n=t.attr("data-base-url"),i=t.attr("data-start-name");null!==e&&!isNaN(e)&&e===Math.floor(e)&&e>0&&(-1===n.indexOf("?")?document.location.href=n+"?"+i+"="+(e-1)*o:document.location.href=n.replace(/&amp;/g,"&")+"&"+i+"="+(e-1)*o)}function marklist(t,e,o){"use strict";jQuery("#"+t+" input[type=checkbox][name]").each(function(){var t=jQuery(this);t.attr("name").substr(0,e.length)===e&&t.prop("checked",o)}),"function"==typeof window.ttg_update_bulk_actions&&window.ttg_update_bulk_actions()}function viewableArea(t,e){"use strict";t&&(e||(t=t.parentNode),t.vaHeight?(t.style.height=t.vaHeight+"px",t.style.overflow="auto",t.style.maxHeight=t.vaMaxHeight,t.vaHeight=!1):(t.vaHeight=t.offsetHeight,t.vaMaxHeight=t.style.maxHeight,t.style.height="auto",t.style.maxHeight="none",t.style.overflow="visible"))}function activateSubPanel(t,e){"use strict";var o,n;if("string"==typeof t&&(n=t),"object"==typeof e&&e.length)for(o=0;o<e.length;o++)jQuery("#"+e[o]).css("display",e[o]===n?"block":"none"),jQuery("#"+e[o]+"-tab").toggleClass("activetab",e[o]===n);focusSubPanelDefaultField(n)}function focusSubPanelDefaultField(t){"use strict";var e;if("poll-panel"===t&&(e=document.getElementById("poll_title"))&&!e.disabled&&!e.readOnly&&e.getClientRects().length)try{e.focus({preventScroll:!0})}catch(t){e.focus()}}function selectCode(t){"use strict";var e,o,n=t.parentNode.parentNode.getElementsByTagName("CODE")[0];if(window.getSelection)if((e=window.getSelection()).setBaseAndExtent){var i=n.innerText.length>1?n.innerText.length-1:1;try{e.setBaseAndExtent(n,0,n,i)}catch(t){(o=document.createRange()).selectNodeContents(n),e.removeAllRanges(),e.addRange(o)}}else window.opera&&"<BR>"===n.innerHTML.substring(n.innerHTML.length-4)&&(n.innerHTML=n.innerHTML+"&nbsp;"),(o=document.createRange()).selectNodeContents(n),e.removeAllRanges(),e.addRange(o);else document.getSelection?(e=document.getSelection(),(o=document.createRange()).selectNodeContents(n),e.removeAllRanges(),e.addRange(o)):document.selection&&((o=document.body.createTextRange()).moveToElementText(n),o.select())}function play_qt_file(t){"use strict";var e,o,n=t.GetRectangle();if(n){n=n.split(",");var i=parseInt(n[0],10),a=parseInt(n[2],10),s=parseInt(n[1],10),r=parseInt(n[3],10);e=i<0?-1*i+a:a-i,o=s<0?-1*s+r:r-s}else e=200,o=0;t.width=e,t.height=o+16,t.SetControllerVisible(!0),t.Play()}phpbb.alertTime=100,function(t){"use strict";var e,o=9,n=13,i=27,a=t("#darkenwrapper"),s=null;
1phpbb.isTouch=window&&void 0!==window.ontouchstart,phpbb.loadingIndicator=function(){return e||(e=t(".loader")),e.is(":visible")||(e.fadeIn(phpbb.alertTime),phpbb.clearLoadingTimeout(),s=setTimeout(function(){phpbb.showTimeoutMessage()},6e4)),e},phpbb.showTimeoutMessage=function(){var o=t("#phpbb_alert");e.is(":visible")&&phpbb.alert(o.attr("data-l-err"),o.attr("data-l-timeout-processing-req"))},phpbb.clearLoadingTimeout=function(){null!==s&&(clearTimeout(s),s=null)},phpbb.closeDarkenWrapper=function(e){s=setTimeout(function(){t("#darkenwrapper").trigger("click")},e)},phpbb.alert=function(e,o){var a=t("#phpbb_alert");return a.find(".alert_title").html(e),a.find(".alert_text").html(o),t(document).on("keydown.phpbb.alert",function(t){t.keyCode!==n&&t.keyCode!==i||(phpbb.alert.close(a,!0),t.preventDefault(),t.stopPropagation())}),phpbb.alert.open(a),a},phpbb.alert.open=function(t){a.is(":visible")||a.fadeIn(phpbb.alertTime),e&&e.is(":visible")?e.fadeOut(phpbb.alertTime,function(){a.append(t),t.fadeIn(phpbb.alertTime)}):a.is(":visible")?(a.append(t),t.fadeIn(phpbb.alertTime)):(a.append(t),t.show(),a.fadeIn(phpbb.alertTime)),t.on("click",function(t){t.stopPropagation()}),a.one("click",function(e){phpbb.alert.close(t,!0),e.preventDefault(),e.stopPropagation()}),t.find(".alert_close").one("click",function(e){phpbb.alert.close(t,!0),e.preventDefault()})},phpbb.alert.close=function(e,o){(o?a:e).fadeOut(phpbb.alertTime,function(){e.hide()}),e.find(".alert_close").off("click"),t(document).off("keydown.phpbb.alert")},phpbb.confirm=function(e,o,a){var s=t("#phpbb_confirm");return s.find(".alert_text").html(e),a=a||!0,t(document).on("keydown.phpbb.alert",function(e){if(e.keyCode===n||e.keyCode===i){var o=e.keyCode===n?"confirm":"cancel";t('input[name="'+o+'"]').trigger("click"),e.preventDefault(),e.stopPropagation()}}),s.find('input[type="button"]').one("click.phpbb.confirmbox",function(t){var e="confirm"===this.name;o(!!e),s.find('input[type="button"]').off("click.phpbb.confirmbox"),phpbb.alert.close(s,a||!e),t.preventDefault(),t.stopPropagation()}),phpbb.alert.open(s),s},phpbb.parseQuerystring=function(t){var e,o,n={};for(t=t.split("&"),e=0;e<t.length;e++)n[(o=t[e].split("="))[0]]=decodeURIComponent(o[1]);return n},phpbb.ajaxify=function(o){var n,i=t(o.selector),r=o.refresh,c=o.callback,l=void 0===o.overlay||o.overlay,d=i.is("form"),p=i.is('input[type="text"], textarea');return n=d?"submit":p?"keyup":"click",i.on(n,function(n){var i,u,h,f,_=this,m=t(this);if("false"!==m.find('input[type="submit"][data-clicked]').attr("data-ajax")){var g="function"==typeof o.filter;if(h={},d)i=m.attr("action").replace("&amp;","&"),h=m.serializeArray(),u=m.attr("method")||"GET",m.find('input[type="submit"][data-clicked]')&&(f=m.find('input[type="submit"][data-clicked]'),h.push({name:f.attr("name"),value:f.val()}));else if(p){var v=m.attr("data-name")||this.name;i=m.attr("data-url").replace("&amp;","&"),h[v]=this.value,u="POST"}else i=this.href,h=null,u="GET";var b=function(){var o=m.attr("data-overlay");!l||void 0!==o&&"true"!==o||phpbb.loadingIndicator(),t.ajax({url:i,type:u,data:h,success:y,error:w,cache:!1}).always(function(){e&&e.is(":visible")&&e.fadeOut(phpbb.alertTime)})};g&&!o.filter.call(this,h,n,b)||(b(),n.preventDefault())}function w(t,e,o){"undefined"!=typeof console&&console.log&&console.log("AJAX error. status: "+e+", message: "+o),phpbb.clearLoadingTimeout();var n,i=!1;try{n=(n=JSON.parse(t.responseText)).message}catch(t){}"string"==typeof n&&n.length>0?i=n:"string"==typeof o&&o.length>0?i=o:"string"==typeof(i=a.attr("data-ajax-error-text-"+e))&&i.length||(i=a.attr("data-ajax-error-text")),phpbb.alert(a.attr("data-ajax-error-title"),i)}function y(o){var n;phpbb.clearLoadingTimeout(),void 0===o.S_CONFIRM_ACTION?(void 0!==o.MESSAGE_TITLE?"true"!==m.attr("data-ajax-no-popup")&&(n=phpbb.alert(o.MESSAGE_TITLE,o.MESSAGE_TEXT)):(a.fadeOut(phpbb.alertTime),e&&e.fadeOut(phpbb.alertTime)),"function"==typeof phpbb.ajaxCallbacks[c]&&phpbb.ajaxCallbacks[c].call(_,o),o.REFRESH_DATA&&("function"==typeof r?r=r(o.REFRESH_DATA.url):"boolean"!=typeof r&&(r=!1),s=setTimeout(function(){r&&(window.location=o.REFRESH_DATA.url),a.fadeOut(phpbb.alertTime,function(){void 0!==n&&n.hide()})}
1,1e3*o.REFRESH_DATA.time))):phpbb.confirm(o.MESSAGE_BODY,function(e){e&&(phpbb.loadingIndicator(),h=t("<form>"+o.S_HIDDEN_FIELDS+"</form>").serialize(),t.ajax({url:o.S_CONFIRM_ACTION,type:"POST",data:h+"&confirm="+o.YES_VALUE+"&"+t("form","#phpbb_confirm").serialize(),success:y,error:w}))},!1)}}),d&&i.find("input:submit").click(function(){var e=t(this);e.parents("form:first").find("input:submit[data-clicked]").removeAttr("data-clicked"),e.attr("data-clicked","true")}),this},phpbb.search={cache:{data:[]},tpl:[],container:[]},phpbb.search.cache.get=function(t){return!!this.data[t]&&this.data[t]},phpbb.search.cache.set=function(t,e,o){this.data[t]||(this.data[t]={results:[]}),this.data[t][e]=o},phpbb.search.cache.setResults=function(t,e,o){this.data[t].results[e]=o},phpbb.search.cleanKeyword=function(e){return t.trim(e).toLowerCase()},phpbb.search.getKeyword=function(t,e,o){if(o){var n=phpbb.search.getKeywordLine(t);e=e.split("\n").splice(n,1)}return phpbb.search.cleanKeyword(e)},phpbb.search.getKeywordLine=function(t){var e=t.get(0).selectionStart;return t.val().substr(0,e).split("\n").length-1},phpbb.search.setValue=function(t,e,o){if(o){var n=phpbb.search.getKeywordLine(t),i=t.val().split("\n");i[n]=e,e=i.join("\n")}t.val(e)},phpbb.search.setValueOnClick=function(t,e,o,n){o.click(function(){phpbb.search.setValue(t,e.result,t.attr("data-multiline")),n.hide()})},phpbb.search.filter=function(e,o,n){var i=t(this),a=void 0!==i.attr("data-name")?i.attr("data-name"):i.attr("name"),s=parseInt(i.attr("data-min-length"),10),r=i.attr("data-results"),c=phpbb.search.getKeyword(i,e[a],i.attr("data-multiline")),l=phpbb.search.cache.get(r),d=!0;e[a]=c,l.timeout&&clearTimeout(l.timeout);var p=setTimeout(function(){if(s>c.length)d=!1;else if(l.lastSearch)if(l.lastSearch===c)d=!1;else{if(l.results[c]){var t={keyword:c,results:l.results[c]};phpbb.search.handleResponse(t,i,!0),d=!1}0===c.indexOf(l.lastSearch)&&0===l.results[l.lastSearch].length&&(phpbb.search.cache.set(r,"lastSearch",c),phpbb.search.cache.setResults(r,c,[]),d=!1)}d&&n.call(this)},350);return phpbb.search.cache.set(r,"timeout",p),!1},phpbb.search.handleResponse=function(e,o,n,i){if("object"==typeof e){var a=o.attr("data-results"),s=t(a);this.cache.get(a).callback?i=this.cache.get(a).callback:"function"==typeof i&&this.cache.set(a,"callback",i),n||this.cache.setResults(a,e.keyword,e.results),this.cache.set(a,"lastSearch",e.keyword),this.showResults(e.results,o,s,i)}},phpbb.search.showResults=function(e,o,n,i){var a=t(".search-results",n);if(this.clearResults(a),e.length){var s,r,c=n.attr("id");this.tpl[c]||(s=t(".search-result-tpl",n),this.tpl[c]=s.clone().removeClass("search-result-tpl"),s.remove()),s=this.tpl[c],t.each(e,function(t,e){(r=s.clone()).find(".search-result").html(e.dis
1play),"function"==typeof i&&i.call(this,o,e,r,n),r.appendTo(a).show()}),n.show()}else n.hide()},phpbb.search.clearResults=function(t){t.children(":not(.search-result-tpl)").remove()},t("#phpbb").click(function(){var e=t(this);e.is(".live-search")||e.parents().is(".live-search")||t(".live-search").hide()}),phpbb.history={},phpbb.history.isSupported=function(t){return!("undefined"==typeof history||void 0===history[t])},phpbb.history.alterUrl=function(t,e,o,n){var i=t+"State";e&&phpbb.history.isSupported(i)&&(o||(o=document.title),n||(n=null),history[i](n,o,e))},phpbb.history.replaceUrl=function(t,e,o){phpbb.history.alterUrl("replace",t,e,o)},phpbb.history.pushUrl=function(t,e,o){phpbb.history.alterUrl("push",t,e,o)},phpbb.timezoneSwitchDate=function(e){var o=t("#timezone_copy"),n=t("#timezone"),i=t("#tz_date"),a=t("#tz_select_date_suggest");0===o.length?n.clone().attr("id","timezone_copy").css("display","none").attr("name","tz_copy").insertAfter("#timezone"):n.html(o.html()),""!==i.val()&&n.children("optgroup").remove(':not([data-tz-value="'+i.val()+'"])'),i.val()===a.attr("data-suggested-tz")?a.css("display","none"):a.css("display","inline");var s=n.children('optgroup[data-tz-value="'+i.val()+'"]').children("option");if(1===s.length&&(s.prop("selected",!0),e=!0),void 0!==e&&!e){var r=n.find("optgroup option");r.filter(":selected").length<=0&&r.filter(":first").prop("selected",!0)}},phpbb.timezoneEnableDateSelection=function(){t("#tz_select_date").css("display","block")},phpbb.timezonePreselectSelect=function(e){var o=(new Date).getTimezoneOffset(),n="-";o<0&&(n="+",o=-o);var i,a=o%60,s=(o-a)/60,r="UTC"+n+(s=s<10?"0"+s.toString():s.toString())+":"+(a=a<10?"0"+a.toString():a.toString()),c=r.length,l=t("option","#tz_date"),d=t("#tz_select_date_suggest");for(i=0;i<l.length;++i){var p=l[i];if(p.value.substring(0,c)===r){t("#tz_date").val()===p.value||e?(p.selected=!0,phpbb.timezoneSwitchDate(!e),d.css("display","none")):(phpbb.timezoneSwitchDate(!0),d.css("display","inline"));var u=d.attr("data-l-suggestion");return d.attr("title",u.replace("%s",p.innerHTML)),d.attr("value",u.replace("%s",p.innerHTML.substring(0,9))),void d.attr("data-suggested-tz",p.innerHTML)}}},phpbb.ajaxCallbacks={},phpbb.addAjaxCallback=function(t,e){return"function"==typeof e&&(phpbb.ajaxCallbacks[t]=e),this},phpbb.addAjaxCallback("member_search",function(e){phpbb.search.handleResponse(e,t(this),!1,phpbb.getFunctionByName("phpbb.search.setValueOnClick"))}),phpbb.addAjaxCallback("alt_text",function(){var e,o=t(this).data("update-all");(void 0!==o&&o.length?t(o):t(this)).each(function(){var o=t(this);e=o.attr("data-alt-text"),o.attr("data-alt-text",o.text()),o.attr("title",t.trim(e)),o.text(e)})}),phpbb.addAjaxCallback("toggle_link",function(){var e,o,n,i=t(this).data("update-all");(void 0!==i&&i.length?t(i):t(this)).each(function(){var i=t(this);o=i.attr("data-toggle-url"),i.attr("data-toggle-url",i.attr("href")),i.attr("href",o),n=i.attr("data-toggle-class"),i.attr("data-toggle-class",i.children().attr("class")),i.children(".icon").attr("class",n),e=i.attr("data-toggle-text"),i.attr("data-toggle-text",i.children("span").text()),i.attr("title",t.trim(e)),i.children("span").text(e)})}),phpbb.inBBCodeTag=function(t,e,o){var n,i,a,s=t.selectionStart,r=-1,c=-1;if("number"!=typeof s)return!1;for(a=t.value.toLowerCase(),n=0;n<e.length;n++){var l=e[n].length;s>=l&&(i=a.lastIndexOf(e[n],s-l),c=Math.max(c,i))}if(-1===c)return!1;if(s>0)for(n=0;n<o.length;n++)i=a.lastIndexOf(o[n],s-1),r=Math.max(r,i);return r<c},phpbb.applyCodeEditor=function(e){var i=["[code]","[code="],a=["[/code]"];function s(){return phpbb.inBBCodeTag(e,i,a)}function r(t){var o=e.selectionStart,n=e.selectionEnd,i=e.value;e.value=i.substr(0,o)+t+i.substr(n),e.selectionStart=e.selectionEnd=o+t.length}e&&"number"==typeof e.selectionStart&&!0!==t(e).data("code-editor")&&t(e).data("code-editor",!0).on("keydown",function(t){var a=t.keyCode||t.which;if(!(a!==o||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&s())return r("\t"),void t.preventDefault();if(a===n&&s()){var c=function(t){var o=e.selectionStart,n=e.value,a=n.lastIndexOf("\n",o-1);if(n=n.substring(a+1,o),t)for(var s=0;s<i.length;s++)if((a=n.lastIndexOf(i[s]))>=0){var r=i[s].length;n=n.substring(a+r),i[s].lastIndexOf("]")!==r&&(a=n.indexOf("]"))>=0&&(n=n.substr(a+1))}return n}(!0),l=""+/^\s*/g.exec(c);l.length>0&&(r("\n"+l),t.preventDefault())}})},phpbb.showDragNDrop=function(e){e&&(t("body").on("dragenter dragover",function(){t(e).addClass("drag-n-drop")}).on("dragleave dragout dragend drop",function(){t(e).removeClass("drag-n-drop")}),t(e).on("dragenter dragover",function(){t(e).addClass("drag-n-drop-highlight")}).on("dragleave dragout dragend drop",function(){t(e).removeClass("drag-n-drop-highlight")}))}
1,phpbb.dropdownHandles=".dropdown-container.dropdown-visible .dropdown-toggle",phpbb.dropdownVisibleContainers=".dropdown-container.dropdown-visible",phpbb.toggleDropdown=function(){var e,o=t(this),n=o.data("dropdown-options"),i=n.parent,a=i.hasClass("dropdown-visible");if(!a){t(phpbb.dropdownHandles).each(phpbb.toggleDropdown),e=n.direction;var s=n.verticalDirection,r=o.offset();if("auto"===e&&(e=(t(window).width()-o.outerWidth(!0))/2>r.left?"right":"left"),i.toggleClass(n.leftClass,"left"===e).toggleClass(n.rightClass,"right"===e),"auto"===s){var c=t(window).height();s=r.top-t(window).scrollTop()<.7*c?"down":"up"}i.toggleClass(n.upClass,"up"===s).toggleClass(n.downClass,"down"===s)}if(n.dropdown.toggle(),i.toggleClass(n.visibleClass,!a).toggleClass("dropdown-visible",!a),!a){var l=t(window).width();n.dropdown.find(".dropdown-contents").each(function(){var e=t(this);e.css({marginLeft:0,left:0,maxWidth:l-4+"px"});var o=e.offset().left,n=e.outerWidth(!0);o<2?e.css("left",2-o+"px"):o+n+2>l&&e.css("margin-left",l-o-n-2+"px"),e.toggleClass("dropdown-nonscroll",this.scrollHeight===e.innerHeight())});var d=i.offset().left-4;if("left"===e){if(n.dropdown.css("margin-left","-"+d+"px"),n.dropdown.hasClass("dropdown-extended")){var p,u=d+i.outerWidth();n.dropdown.find(".dropdown-contents").each(function(){p=parseInt(t(this).outerWidth(),10),t(this).css({marginLeft:0,left:0})});var h=Math.min(p,u)+"px";n.dropdown.css({width:h,marginLeft:-h})}}
1else n.dropdown.css("margin-right","-"+(l+d)+"px")}if(arguments.length>0)try{var f=arguments[0];f.preventDefault(),f.stopPropagation()}catch(t){}return!1},phpbb.toggleSubmenu=function(e){t(this).siblings(".dropdown-submenu").toggle(),e.preventDefault()},phpbb.registerDropdown=function(e,o,n){var i={parent:e.parent(),direction:"auto",verticalDirection:"auto",visibleClass:"visible",leftClass:"dropdown-left",rightClass:"dropdown-right",upClass:"dropdown-up",downClass:"dropdown-down"};n&&(i=t.extend(i,n)),i.dropdown=o,i.parent.addClass("dropdown-container"),e.addClass("dropdown-toggle"),e.data("dropdown-options",i),e.click(phpbb.toggleDropdown),t(".dropdown-toggle-submenu",i.parent).click(phpbb.toggleSubmenu)},phpbb.colorPalette=function(t,e,o){var n,i,a,s=new Array(6),r="",c="";for(s[0]="00",s[1]="40",s[2]="80",s[3]="BF",s[4]="FF",c+='<table class="not-responsive colour-palette '+("h"===t?"horizontal-palette":"vertical-palette")+'" style="width: auto;">',n=0;n<5;n++){for("h"===t&&(c+="<tr>"),i=0;i<5;i++){for("v"===t&&(c+="<tr>"),a=0;a<5;a++)c+='<td style="background-color: #'+(r=""+s[n]+s[i]+s[a])+"; width: "+e+"px; height: "+o+'px;"><a href="#" data-color="'+r+'" style="display: block; width: '+e+"px; height: "+o+'px; " alt="#'+r+'" title="#'+r+'"></a>',c+="</td>";"v"===t&&(c+="</tr>")}"h"===t&&(c+="</tr>")}return c+="</table>"},phpbb.registerPalette=function(e){var o=e.attr("data-orientation"),n=e.attr("data-height"),i=e.attr("data-width"),a=e.attr("data-target"),s=e.attr("data-bbcode");e.html(phpbb.colorPalette(o,i,n)),t("#color_palette_toggle").click(function(t){e.toggle(),t.preventDefault()}),t(e).on("click","a",function(e){var o=t(this).attr("data-color");s?bbfontstyle("[color=#"+o+"]","[/color]"):t(a).val(o),e.preventDefault()})},phpbb.toggleDisplay=function(e,o,n){n||(n="block");var i=t("#"+e),a=i.css("display");o||(o=""===a||a===n?-1:1),i.css("display",1===o?n:"none")},phpbb.toggleSelectSettings=function(e){e.children().each(function(){var e=t(this);t(e.data("toggle-setting")).toggle(e.is(":selected")),e.is(":selected")?t(e.data("toggle-setting")+" input").prop("disabled",!1):t(e.data("toggle-setting")+" input").prop("disabled",!0)})},phpbb.getFunctionByName=function(t){for(var e=t.split("."),o=e.pop(),n=window,i=0;i<e.length;i++)n=n[e[i]];return n[o]},phpbb.registerPageDropdowns=function(){var e=t("body");e.find(".dropdown-container").each(function(){var e,o=t(this),n=o.find(".dropdown-trigger:first"),i=o.find(".dropdown"),a={direction:"auto",verticalDirection:"auto"};o.hasClass("dropdown-loaded")||(n.length||(n=(e=o.attr("data-dropdown-trigger"))?o.children(e):o.children("a:first")),i.length||(i=(e=o.attr("data-dropdown-contents"))?o.children(e):o.children("div:first")),n.length&&i.length&&(o.hasClass("dropdown-up")&&(a.verticalDirection="up"),o.hasClass("dropdown-down")&&(a.verticalDirection="down"),o.hasClass("dropdown-left")&&(a.direction="left"),o.hasClass("dropdown-right")&&(a.direction="right"),phpbb.registerDropdown(n,i,a),o.addClass("dropdown-loaded")))}),e.click(function(e){t(e.target).parents().is(phpbb.dropdownVisibleContainers)||t(phpbb.dropdownHandles).each(phpbb.toggleDropdown)})},phpbb.lazyLoadAvatars=function(){t(".avatar[data-src]").each(function(){var e=t(this);e.attr("src",e.data("src")).removeAttr("data-src")})},t(window).load(phpbb.lazyLoadAvatars),t(function(){t("textarea[data-bbcode]").each(function(){phpbb.applyCodeEditor(this)}),phpbb.registerPageDropdowns(),t("#color_palette_placeholder").each(function(){phpbb.registerPalette(t(this))}),phpbb.history.replaceUrl(t("#unread[data-url]").data("url")),t("select[data-togglable-settings]").each(function(){var e=t(this);e.change(function(){phpbb.toggleSelectSettings(e)}),phpbb.toggleSelectSettings(e)})})}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,function(t){function e(t){this.$container,this.constraints=null,this.__$tooltip,this.__init(t)}function o(e,o){var n=!0;return t.each(e,function(t,i){return void 0===o[t]||e[t]!==o[t]?(n=!1,!1):void 0}),n}function n(e){var o=e.attr("id"),n=o?s.window.document.getElementById(o):null;return n?n===e[0]:t.contains(s.window.document.body,e[0])}var i={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:"body",plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},a="undefined"!=typeof window?window:null,s={hasTouchCapability:!(!a||!("ontouchstart"in a||a.DocumentTouch&&a.document instanceof a.DocumentTouch||a.navigator.maxTouchPoints)),hasTransitions:function(){if(!a)return!1;var t=(a.document.body||a.document.documentElement).style,e="transition",o=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[e])return!0;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=0;n<o.length;n++)if("string"==typeof t[o[n]+e])return!0;return!1}
vendor: 32,306 bytes, line 1
1(),IE:!1,semVer:"4.1.6",window:a},r=function(){this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__instancesLatestArr=[],this.__plugins={},this._env=s};r.prototype={__bridge:function(e,o,n){if(!o[n]){var a=function(){};a.prototype=e;var s=new a;s.__init&&s.__init(o),t.each(e,function(t,e){0!=t.indexOf("__")&&(o[t]?i.debug&&console.log("The "+t+" method of the "+n+" plugin conflicts with another plugin or native methods"):(o[t]=function(){return s[t].apply(s,Array.prototype.slice.apply(arguments))},o[t].bridged=s))}),o[n]=s}return this},__setWindow:function(t){return s.window=t,this},_getRuler:function(t){return new e(t)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(e){var o=this;if("string"==typeof e){var n=e,i=null;return n.indexOf(".")>0?i=o.__plugins[n]:t.each(o.__plugins,function(t,e){return e.name.substring(e.name.length-n.length-1)=="."+n?(i=e,!1):void 0}),i}if(e.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return o.__plugins[e.name]=e,e.core&&o.__bridge(e.core,o,e.name),this},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},instances:function(e){var o=[];return t(e||".tooltipstered").each(function(){var e=t(this),n=e.data("tooltipster-ns");n&&t.each(n,function(t,n){o.push(e.data(n))})}),o},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(e){return t((e?e+" ":"")+".tooltipstered").toArray()},setDefaults:function(e){return t.extend(i,e),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.tooltipster=new r,t.Tooltipster=function(e,o){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__destroying=!1,this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(e,o)},t.Tooltipster.prototype={__init:function(e,o){var n=this;if(n._$origin=t(e),n.__options=t.extend(!0,{},i,o),n.__optionsFormat(),!s.IE||s.IE>=n.__options.IEmin){var a=null;if(void 0===n._$origin.data("tooltipster-initialTitle")&&(void 0===(a=n._$origin.attr("title"))&&(a=null),n._$origin.data("tooltipster-initialTitle",a)),null!==n.__options.content)n.__contentSet(n.__options.content);else{var r,c=n._$origin.attr("data-tooltip-content");c&&(r=t(c)),r&&r[0]?n.__contentSet(r.first()):n.__contentSet(a)}n._$origin.removeAttr("title").addClass("tooltipstered"),n.__prepareOrigin(),n.__prepareGC(),t.each(n.__options.plugins,function(t,e){n._plug(e)}),s.hasTouchCapability&&t("body").on("touchmove."+n.__namespace+"-triggerOpen",function(t){n._touchRecordEvent(t)}),n._on("created",function(){n.__prepareTooltip()})._on("repositioned",function(t){n.__lastPosition=t.position})}else n.__options.disabled=!0},__contentInsert:function(){var t=this,e=t._$tooltip.find(".tooltipster-content"),o=t.__Content;return t._trigger({type:"format",content:t.__Content,format:function(t){o=t}}),t.__options.functionFormat&&(o=t.__options.functionFormat.call(t,t,{origin:t._$origin[0]},t.__Content)),"string"!=typeof o||t.__options.contentAsHTML?e.empty().append(o):e.text(o),t},__contentSet:function(e){return e instanceof t&&this.__options.contentCloning&&(e=e.clone(!0)),this.__Content=e,this._trigger({type:"updated",content:e}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var e=this,o=e._$origin,n=e._$origin.is("area");if(n){var i=e._$origin.parent().attr("name");o=t('img[usemap="#'+i+'"]')}var a=o[0].getBoundingClientRect(),r=t(s.window.document),c=t(s.window),l=o,d={available:{document:null,window:null},document:{size:{height:r.height(),width:r.width()}},window:{scroll:{left:s.window.scrollX||s.window.document.documentElement.scrollLeft,top:s.window.scrollY||s.window.document.documentElement.scrollTop},size:{height:c.height(),width:c.width()}},origin:{fixedLineage:!1,offset:{},size:{height:a.bottom-a.top,width:a.right-a.left},usemapImage:n?o[0]:null,windowOffset:{bottom:a.bottom,left:a.left,right:a.right,top:a.top}}};if(n){var p=e._$origin.attr("shape"),u=e._$origin.attr("coords");if(u&&(u=u.split(","),t.map(u,function(t,e){u[e]=parseInt(t)})),"default"!=p)switch(p){case"circle":var h=u[0],f=u[1],_=u[2],m=f-_,g=h-_;d.origin.size.height=2*_,d.origin.size.width=d.origin.size.height,d.origin.windowOffset.left+=g,d.origin.windowOffset.top+=m;break;case"rect":var v=u[0],b=u[1],w=u[2],y=u[3];d.origin.size.height=y-b,d.origin.size.width=w-v,d.origin.windowOffset.left+=v,d.origin.windowOffset.top+=b;break;case"poly":for(var T=0,k=0,C=0,$=0,E="even",I=0;I<u.length;I++){var x=u[I];"even"==E?(x>C&&(C=x,0===I&&(T=C)),T>x&&(T=x),E="odd"):(x>$&&($=x,1==I&&(k=$)),k>x&&(k=x),E="even")}d.origin.size.height=$-k,d.origin.size.width=C-T,d.origin.windowOffset.left+=T,d.origin.windowOffset.top+=k}}for(e._trigger({type:"geometry",edit:function(t){d.origin.size.height=t.height,d.origin.windowOffset.left=t.left,d.origin.windowOffset.top=t.top,d.origin.size.width=t.width},geometry:{height:d.origin.size.height,left:d.origin.windowOffset.left,top:d.origin.windowOffset.top,width:d.origin.size.width}}),d.origin.windowOffset.right=d.origin.windowOffset.left+d.origin.size.width,d.origin.windowOffset.bottom=d.origin.windowOffset.top+d.origin.size.height,d.origin.offset.left=d.origin.windowOffset.left+d.window.scroll.left,d.origin.offset.top=d.origin.windowOffset.top+d.window.scroll.top,d.origin.offset.bottom=d.origin.offset.top+d.origin.size.height,d.origin.offset.right=d.origin.offset.left+d.origin.size.width,d.available.document={bottom:{height:d.document.size.height-d.origin.offset.bottom,width:d.document.size.width},left:{height:d.document.size.height,width:d.origin.offset.left},right:{height:d.document.size.height,width:d.document.size.width-d.origin.offset.right},top:{height:d.origin.offset.top,width:d.document.size.width}},d.available.window={bottom:{height:Math.max(d.window.size.height-Math.max(d.origin.windowOffset.bottom,0),0),width:d.window.size.width},left:{height:d.window.size.height,width:Math.max(d.origin.windowOffset.left,0)},right:{height:d.window.size.height,width:Math.max(d.window.size.width-Math.max(d.origin.windowOffset.right,0),0)},top:{height:Math.max(d.origin.windowOffset.top,0),width:d.window.size.width}};"html"!=l[0].tagName.toLowerCase();){if("fixed"==l.css("position")){d.origin.fixedLineage=!0;break}l=l.parent()}return d},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),"string"==typeof this.__options.parent&&(this.__options.parent=t(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var e=this;return e.__options.selfDestruction?e.__garbageCollector=setInterval(function(){var o=(new Date).getTime();e.__touchEvents=t.grep(e.__touchEvents,function(t,e){return o-t.time>6e4}),n(e._$origin)||e.destroy()},2e4):clearInterval(e.__garbageCollector),e},__prepareOrigin:function(){var t=this;if(t._$origin.off("."+t.__namespace+"-triggerOpen"),s.hasTouchCapability&&t._$origin.on("touchstart."+t.__namespace+"-triggerOpen touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen",function(e){t._touchRecordEvent(e)}),t.__options.triggerOpen.click||t.__options.triggerOpen.tap&&s.hasTouchCapability){var e="";t.__options.triggerOpen.click&&(e+="click."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.tap&&s.hasTouchCapability&&(e+="touchend."+t.__namespace+"-triggerOpen"),t._$origin.on(e,function(e){t._touchIsMeaningfulEvent(e)&&t._open(e)})}if(t.__options.triggerOpen.mouseenter||t.__options.triggerOpen.touchstart&&s.hasTouchCapability){e="";t.__options.triggerOpen.mouseenter&&(e+="mouseenter."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.touchstart&&s.hasTouchCapability&&(e+="touchstart."+t.__namespace+"-triggerOpen"),t._$origin.on(e,function(e){!t._touchIsTouchEvent(e)&&t._touchIsEmulatedEvent(e)||(t.__pointerIsOverOrigin=!0,t._openShortly(e))})}if(t.__options.triggerClose.mouseleave||t.__options.triggerClose.touchleave&&s.hasTouchCapability){e="";t.__options.triggerClose.mouseleave&&(e+="mouseleave."+t.__namespace+"-triggerOpen "),t.__options.triggerClose.touchleave&&s.hasTouchCapability&&(e+="touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen"),t._$origin.on(e,function(e){t._touchIsMeaningfulEvent(e)&&(t.__pointerIsOverOrigin=!1)})}return t},__prepareTooltip:function(){var e=this,o=e.__options.interactive?"auto":"";return e._$tooltip.attr("id",e.__namespace).css({"pointer-events":o,zIndex:e.__options.zIndex}),t.each(e.__previousThemes,function(t,o){e._$tooltip.removeClass(o)}),t.each(e.__options.theme,function(t,o){e._$tooltip.addClass(o)}),e.__previousThemes=t.merge([],e.__options.theme),e},__scrollHandler:function(e){var o=this;if(o.__options.triggerClose.scroll)o._close(e);else{if(e.target===s.window.document)o.__Geometry.origin.fixedLineage||o.__options.repositionOnScroll&&o.reposition(e);else{var n=o.__geometry(),i=!1;if("fixed"!=o._$origin.css("position")&&o.__$originParents.each(function(e,o){var a=t(o),s=a.css("overflow-x"),r=a.css("overflow-y");if("visible"!=s||"visible"!=r){var c=o.getBoundingClientRect();if("visible"!=s&&(n.origin.windowOffset.left<c.left||n.origin.windowOffset.right>c.right))return i=!0,!1;if("visible"!=r&&(n.origin.windowOffset.top<c.top||n.origin.windowOffset.bottom>c.bottom))return i=!0,!1}return"fixed"!=a.css("position")&&void 0}),i)o._$tooltip.css("visibility","hidden");else if(o._$tooltip.css("visibility","visible"),o.__options.repositionOnScroll)o.reposition(e);else{var a=n.origin.offset.left-o.__Geometry.origin.offset.left,r=n.origin.offset.top-o.__Geometry.origin.offset.top;o._$tooltip.css({left:o.__lastPosition.coord.left+a,top:o.__lastPosition.coord.top+r})}}o._trigger({type:"scroll",event:e})}return o},__stateSet:function(t){return this.__state=t,this._trigger({type:"state",state:t}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,t.each(this.__timeouts.close,function(t,e){clearTimeout(e)}),this.__timeouts.close=[],this},__trackerStart:function(){var t=this,e=t._$tooltip.find(".tooltipster-content");return t.__options.trackTooltip&&(t.__contentBcr=e[0].getBoundingClientRect()),t.__tracker=setInterval(function(){if(n(t._$origin)&&n(t._$tooltip)){if(t.__options.trackOrigin){var i=t.__geometry(),a=!1;o(i.origin.size,t.__Geometry.origin.size)&&(t.__Geometry.origin.fixedLineage?o(i.origin.windowOffset,t.__Geometry.origin.windowOffset)&&(a=!0):o(i.origin.offset,t.__Geometry.origin.offset)&&(a=!0)),a||(t.__options.triggerClose.mouseleave?t._close():t.reposition())}if(t.__options.trackTooltip){var s=e[0].getBoundingClientRect();s.height===t.__contentBcr.height&&s.width===t.__contentBcr.width||(t.reposition(),t.__contentBcr=s)}}else t._close()},t.__options.trackerInterval),t},_close:function(e,o){var n=this,i=!0;if(n._trigger({type:"close",event:e,stop:function(){i=!1}}),i||n.__destroying){o&&n.__callbacks.close.push(o),n.__callbacks.open=[],n.__timeoutsClear();var a=function(){t.each(n.__callbacks.close,function(t,o){o.call(n,n,{event:e,origin:n._$origin[0]})}),n.__callbacks.close=[]};if("closed"!=n.__state){var r=!0,c=(new Date).getTime()+n.__options.animationDuration[1];if("disappearing"==n.__state&&c>n.__closingTime&&(r=!1),r){n.__closingTime=c,"disappearing"!=n.__state&&n.__stateSet("disappearing");var l=function(){clearInterval(n.__tracker),n._trigger({type:"closing",event:e}),n._$tooltip.off("."+n.__namespace+"-triggerClose").removeClass("tooltipster-dying"),t(s.window).off("."+n.__namespace+"-triggerClose"),n.__$originParents.each(function(e,o){t(o).off("scroll."+n.__namespace+"-triggerClose")}),n.__$originParents=null,t("body").off("."+n.__namespace+"-triggerClose"),n._$origin.off("."+n.__namespace+"-triggerClose"),n._off("dismissable"),n.__stateSet("closed"),n._trigger({type:"after",event:e}),n.__options.functionAfter&&n.__options.functionAfter.call(n,n,{event:e,origin:n._$origin[0]}),a()};s.hasTransitions?(n._$tooltip.css({"-moz-animation-duration":n.__options.animationDuration[1]+"ms","-ms-animation-duration":n.__options.animationDuration[1]+"ms","-o-animation-duration":n.__options.animationDuration[1]+"ms","-webkit-animation-duration":n.__options.animationDuration[1]+"ms","animation-duration":n.__options.animationDuration[1]+"ms","transition-duration":n.__options.animationDuration[1]+"ms"}),n._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),n.__options.animationDuration[1]>0&&n._$tooltip.delay(n.__options.animationDuration[1]),n._$tooltip.queue(l)):n._$tooltip.stop().fadeOut(n.__options.animationDuration[1],l)}}else a()}return n},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(e,o){var i=this;if(!i.__destroying&&n(i._$origin)&&i.__enabled){var a=!0;if("closed"==i.__state&&(i._trigger({type:"before",event:e,stop:function(){a=!1}}),a&&i.__options.functionBefore&&(a=i.__options.functionBefore.call(i,i,{event:e,origin:i._$origin[0]}))),!1!==a&&null!==i.__Content){o&&i.__callbacks.open.push(o),i.__callbacks.close=[],i.__timeoutsClear();var r,c=function(){"stable"!=i.__state&&i.__stateSet("stable"),t.each(i.__callbacks.open,function(t,e){e.call(i,i,{origin:i._$origin[0],tooltip:i._$tooltip[0]})}),i.__callbacks.open=[]};if("closed"!==i.__state)r=0,"disappearing"===i.__state?(i.__stateSet("appearing"),s.hasTransitions?(i._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),i.__options.animationDuration[0]>0&&i._$tooltip.delay(i.__options.animationDuration[0]),i._$tooltip.queue(c)):i._$tooltip.stop().fadeIn(c)):"stable"==i.__state&&c();else{if(i.__stateSet("appearing"),r=i.__options.animationDuration[0],i.__contentInsert(),i.reposition(e,!0),s.hasTransitions?(i._$tooltip.addClass("tooltipster-"+i.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":i.__options.animationDuration[0]+"ms","-ms-animation-duration":i.__options.animationDuration[0]+"ms","-o-animation-duration":i.__options.animationDuration[0]+"ms","-webkit-animation-duration":i.__options.animationDuration[0]+"ms","animation-duration":i.__options.animationDuration[0]+"ms","transition-duration":i.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=i.__state&&(i._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),i.__options.animationDuration[0]>0&&i._$tooltip.delay(i.__options.animationDuration[0]),i._$tooltip.queue(c))},0)):i._$tooltip.css("display","none").fadeIn(i.__options.animationDuration[0],c),i.__trackerStart(),t(s.window).on("resize."+i.__namespace+"-triggerClose",function(e){var o=t(document.activeElement);(o.is("input")||o.is("textarea"))&&t.contains(i._$tooltip[0],o[0])||i.reposition(e)}).on("scroll."+i.__namespace+"-triggerClose",function(t){i.__scrollHandler(t)}),i.__$originParents=i._$origin.parents(),i.__$originParents.each(function(e,o){t(o).on("scroll."+i.__namespace+"-triggerClose",function(t){i.__scrollHandler(t)})}),i.__options.triggerClose.mouseleave||i.__options.triggerClose.touchleave&&s.hasTouchCapability){i._on("dismissable",function(t){t.dismissable?t.delay?(u=setTimeout(function(){i._close(t.event)},t.delay),i.__timeouts.close.push(u)):i._close(t):clearTimeout(u)});var l=i._$origin,d="",p="",u=null;i.__options.interactive&&(l=l.add(i._$tooltip)),i.__options.triggerClose.mouseleave&&(d+="mouseenter."+i.__namespace+"-triggerClose ",p+="mouseleave."+i.__namespace+"-triggerClose "),i.__options.triggerClose.touchleave&&s.hasTouchCapability&&(d+="touchstart."+i.__namespace+"-triggerClose",p+="touchend."+i.__namespace+"-triggerClose touchcancel."+i.__namespace+"-triggerClose"),l.on(p,function(t){if(i._touchIsTouchEvent(t)||!i._touchIsEmulatedEvent(t)){var e="mouseleave"==t.type?i.__options.delay:i.__options.delayTouch;i._trigger({delay:e[1],dismissable:!0,event:t,type:"dismissable"})}}).on(d,function(t){!i._touchIsTouchEvent(t)&&i._touchIsEmulatedEvent(t)||i._trigger({dismissable:!1,event:t,type:"dismissable"})})}i.__options.triggerClose.originClick&&i._$origin.on("click."+i.__namespace+"-triggerClose",function(t){i._touchIsTouchEvent(t)||i._touchIsEmulatedEvent(t)||i._close(t)}),(i.__options.triggerClose.click||i.__options.triggerClose.tap&&s.hasTouchCapability)&&setTimeout(function(){if("closed"!=i.__state){var e="";i.__options.triggerClose.click&&(e+="click."+i.__namespace+"-triggerClose "),i.__options.triggerClose.tap&&s.hasTouchCapability&&(e+="touchend."+i.__namespace+"-triggerClose"),t("body").on(e,function(e){i._touchIsMeaningfulEvent(e)&&(i._touchRecordEvent(e),i.__options.interactive&&t.contains(i._$tooltip[0],e.target)||i._close(e))}),i.__options.triggerClose.tap&&s.hasTouchCapability&&t("body").on("touchstart."+i.__namespace+"-triggerClose",function(t){i._touchRecordEvent(t)})}},0),i._trigger("ready"),i.__options.functionReady&&i.__options.functionReady.call(i,i,{origin:i._$origin[0],tooltip:i._$tooltip[0]})}if(i.__options.timer>0){u=setTimeout(function(){i._close()},i.__options.timer+r);i.__timeouts.close.push(u)}}}return i},_openShortly:function(t){var e=this,o=!0;if("stable"!=e.__state&&"appearing"!=e.__state&&!e.__timeouts.open&&(e._trigger({type:"start",event:t,stop:function(){o=!1}}),o)){var n=0==t.type.indexOf("touch")?e.__options.delayTouch:e.__options.delay;n[0]?e.__timeouts.open=setTimeout(function(){e.__timeouts.open=null,e.__pointerIsOverOrigin&&e._touchIsMeaningfulEvent(t)?(e._trigger("startend"),e._open(t)):e._trigger("startcancel")},n[0]):(e._trigger("startend"),e._open(t))}return e},_optionsExtract:function(e,o){var n=this,i=t.extend(!0,{},o),a=n.__options[e];return a||(a={},t.each(o,function(t,e){var o=n.__options[t];void 0!==o&&(a[t]=o)})),t.each(i,function(e,o){void 0!==a[e]&&("object"!=typeof o||o instanceof Array||null==o||"object"!=typeof a[e]||a[e]instanceof Array||null==a[e]?i[e]=a[e]:t.extend(i[e],a[e]))}),i},_plug:function(e){var o=t.tooltipster._plugin(e);if(!o)throw new Error('The "'+e+'" plugin is not defined');return o.instance&&t.tooltipster.__bridge(o.instance,this,o.name),this},_touchIsEmulatedEvent:function(t){for(var e=!1,o=(new Date).getTime(),n=this.__touchEvents.length-1;n>=0;n--){var i=this.__touchEvents[n];if(!(o-i.time<500))break;i.target===t.target&&(e=!0)}return e},_touchIsMeaningfulEvent:function(t){return this._touchIsTouchEvent(t)&&!this._touchSwiped(t.target)||!this._touchIsTouchEvent(t)&&!this._touchIsEmulatedEvent(t)},_touchIsTouchEvent:function(t){return 0==t.type.indexOf("touch")},_touchRecordEvent:function(t){return this._touchIsTouchEvent(t)&&(t.time=(new Date).getTime(),this.__touchEvents.push(t)),this},_touchSwiped:function(t){for(var e=!1,o=this.__touchEvents.length-1;o>=0;o--){var n=this.__touchEvents[o];if("touchmove"==n.type){e=!0;break}if("touchstart"==n.type&&t===n.target)break}return e},_trigger:function(){var e=Array.prototype.slice.apply(arguments);return"string"==typeof e[0]&&(e[0]={type:e[0]}),e[0].instance=this,e[0].origin=this._$origin?this._$origin[0]:null,e[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,e),t.tooltipster._trigger.apply(t.tooltipster,e),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,e),this},_unplug:function(e){var o=this;if(o[e]){var n=t.tooltipster._plugin(e);n.instance&&t.each(n.instance,function(t,n){o[t]&&o[t].bridged===o[e]&&delete o[t]}),o[e].__destroy&&o[e].__destroy(),delete o[e]}return o},close:function(t){return this.__destroyed?this.__destroyError():this._close(null,t),this},content:function(t){var e=this;if(void 0===t)return e.__Content;if(e.__destroyed)e.__destroyError();else if(e.__contentSet(t),null!==e.__Content){if("closed"!==e.__state&&(e.__contentInsert(),e.reposition(),e.__options.updateAnimation))if(s.hasTransitions){var o=e.__options.updateAnimation;e._$tooltip.addClass("tooltipster-update-"+o),setTimeout(function(){"closed"!=e.__state&&e._$tooltip.removeClass("tooltipster-update-"+o)},1e3)}else e._$tooltip.fadeTo(200,.5,function(){"closed"!=e.__state&&e._$tooltip.fadeTo(200,1)})}else e._close();return e},destroy:function(){var e=this;return e.__destroyed?e.__destroyError():e.__destroying||(e.__destroying=!0,e._close(null,function(){e._trigger("destroy"),e.__destroying=!1,e.__destroyed=!0,e._$origin.removeData(e.__namespace).off("."+e.__namespace+"-triggerOpen"),t("body").off("."+e.__namespace+"-triggerOpen");var o=e._$origin.data("tooltipster-ns");if(o)if(1===o.length){var n=null;"previous"==e.__options.restoration?n=e._$origin.data("tooltipster-initialTitle"):"current"==e.__options.restoration&&(n="string"==typeof e.__Content?e.__Content:t("<div></div>").append(e.__Content).html()),n&&e._$origin.attr("title",n),e._$origin.removeClass("tooltipstered"),e._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else o=t.grep(o,function(t,o){return t!==e.__namespace}),e._$origin.data("tooltipster-ns",o);e._trigger("destroyed"),e._off(),e.off(),e.__Content=null,e.__$emitterPrivate=null,e.__$emitterPublic=null,e.__options.parent=null,e._$origin=null,e._$tooltip=null,t.tooltipster.__instancesLatestArr=t.grep(t.tooltipster.__instancesLatestArr,function(t,o){return e!==t}),clearInterval(e.__garbageCollector)})),e},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(t){return this.close(t)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(t){return this.__destroyed||this.__destroying?this.__destroyError():this._open(null,t),this},option:function(e,o){return void 0===o?this.__options[e]:(this.__destroyed?this.__destroyError():(this.__options[e]=o,this.__optionsFormat(),t.inArray(e,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===e&&this.__prepareGC()),this)},reposition:function(t,e){var o=this;return o.__destroyed?o.__destroyError():"closed"!=o.__state&&n(o._$origin)&&(e||n(o._$tooltip))&&(e||o._$tooltip.detach(),o.__Geometry=o.__geometry(),o._trigger({type:"reposition",event:t,helper:{geo:o.__Geometry}})),o},show:function(t){return this.open(t)},status:function(){return{destroyed:this.__destroyed,destroying:this.__destroying,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.fn.tooltipster=function(){var e=Array.prototype.slice.apply(arguments),o="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof e[0]){var n="#*$~&";return this.each(function(){var i=t(this).data("tooltipster-ns"),a=i?t(this).data(i[0]):null;if(!a)throw new Error("You called Tooltipster's \""+e[0]+'" method on an uninitialized element');if("function"!=typeof a[e[0]])throw new Error('Unknown method "'+e[0]+'"');this.length>1&&"content"==e[0]&&(e[1]instanceof t||"object"==typeof e[1]&&null!=e[1]&&e[1].tagName)&&!a.__options.contentCloning&&a.__options.debug&&console.log(o);var s=a[e[0]](e[1],e[2]);return s!==a||"instance"===e[0]?(n=s,!1):void 0}),"#*$~&"!==n?n:this}t.tooltipster.__instancesLatestArr=[];var a=e[0]&&void 0!==e[0].multiple,s=a&&e[0].multiple||!a&&i.multiple,r=e[0]&&void 0!==e[0].content,c=r&&e[0].content||!r&&i.content,l=e[0]&&void 0!==e[0].contentCloning,d=l&&e[0].contentCloning||!l&&i.contentCloning,p=e[0]&&void 0!==e[0].debug,u=p&&e[0].debug||!p&&i.debug;return this.length>1&&(c instanceof t||"object"==typeof c&&null!=c&&c.tagName)&&!d&&u&&console.log(o),this.each(function(){var o=!1,n=t(this),i=n.data("tooltipster-ns"),a=null;i?s?o=!0:u&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):o=!0,o&&(a=new t.Tooltipster(this,e[0]),i||(i=[]),i.push(a.__namespace),n.data("tooltipster-ns",i),n.data(a.__namespace,a),a.__options.functionInit&&a.__options.functionInit.call(a,a,{origin:this}),a._trigger("init")),t.tooltipster.__instancesLatestArr.push(a)}),this},e.prototype={__init:function(e){this.__$tooltip=e,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=t('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo("body")},__forceRedraw:function(){var t=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(t)},constrain:function(t,e){return this.constraints={width:t,height:e},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:t}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var t=this.__$tooltip[0].getBoundingClientRect(),e={size:{height:t.height||t.bottom,width:t.width||t.right}};if(this.constraints){var o=this.__$tooltip.find(".tooltipster-content"),n=this.__$tooltip.outerHeight(),i=o[0].getBoundingClientRect(),a={height:n<=this.constraints.height,width:t.width<=this.constraints.width&&i.width>=o[0].scrollWidth-1};e.fits=a.height&&a.width}return s.IE&&s.IE<=11&&e.size.width!==s.window.document.documentElement.clientWidth&&(e.size.width=Math.ceil(e.size.width)+1),e}};var c=navigator.userAgent.toLowerCase();-1!=c.indexOf("msie")?s.IE=parseInt(c.split("msie")[1]):-1!==c.toLowerCase().indexOf("trident")&&-1!==c.indexOf(" rv:11")?s.IE=11:-1!=c.toLowerCase().indexOf("edge/")&&(s.IE=parseInt(c.toLowerCase().split("edge/")[1]));var l="tooltipster.sideTip";return t.tooltipster._plugin({name:l,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(t){var e=this;e.__instance=t,e.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),e.__previousState="closed",e.__options,e.__optionsFormat(),e.__instance._on("state."+e.__namespace,function(t){"closed"==t.state?e.__close():"appearing"==t.state&&"closed"==e.__previousState&&e.__create(),e.__previousState=t.state}),e.__instance._on("options."+e.__namespace,function(){e.__optionsFormat()}),e.__instance._on("reposition."+e.__namespace,function(t){e.__reposition(t.event,t.helper)})},__close:function(){this.__instance.content()instanceof t&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var e=t('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||e.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&e.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&e.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=e,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var e=this;if(e.__options=e.__instance._optionsExtract(l,e.__defaults()),e.__options.position&&(e.__options.side=e.__options.position),"object"!=typeof e.__options.distance&&(e.__options.distance=[e.__options.distance]),e.__options.distance.length<4&&(void 0===e.__options.distance[1]&&(e.__options.distance[1]=e.__options.distance[0]),void 0===e.__options.distance[2]&&(e.__options.distance[2]=e.__options.distance[0]),void 0===e.__options.distance[3]&&(e.__options.distance[3]=e.__options.distance[1]),e.__options.distance={top:e.__options.distance[0],right:e.__options.distance[1],bottom:e.__options.distance[2],left:e.__options.distance[3]}),"string"==typeof e.__options.side){e.__options.side=[e.__options.side,{top:"bottom",right:"left",bottom:"top",left:"right"}[e.__options.side]],"left"==e.__options.side[0]||"right"==e.__options.side[0]?e.__options.side.push("top","bottom"):e.__options.side.push("right","left")}6===t.tooltipster._env.IE&&!0!==e.__options.arrow&&(e.__options.arrow=!1)},__reposition:function(e,o){var n,i=this,a=i.__targetFind(o),s=[];i.__instance._$tooltip.detach();var r=i.__instance._$tooltip.clone(),c=t.tooltipster._getRuler(r),l=!1,d=i.__instance.option("animation");switch(d&&r.removeClass("tooltipster-"+d),t.each(["window","document"],function(n,d){var p=null;if(i.__instance._trigger({container:d,helper:o,satisfied:l,takeTest:function(t){p=t},results:s,type:"positionTest"}),1==p||0!=p&&0==l&&("window"!=d||i.__options.viewportAware))for(n=0;n<i.__options.side.length;n++){var u={horizontal:0,vertical:0},h=i.__options.side[n];"top"==h||"bottom"==h?u.vertical=i.__options.distance[h]:u.horizontal=i.__options.distance[h],i.__sideChange(r,h),t.each(["natural","constrained"],function(t,n){if(p=null,i.__instance._trigger({container:d,event:e,helper:o,mode:n,results:s,satisfied:l,side:h,takeTest:function(t){p=t},type:"positionTest"}),1==p||0!=p&&0==l){var r={container:d,distance:u,fits:null,mode:n,outerSize:null,side:h,size:null,target:a[h],whole:null}
1,f=("natural"==n?c.free():c.constrain(o.geo.available[d][h].width-u.horizontal,o.geo.available[d][h].height-u.vertical)).measure();if(r.size=f.size,r.outerSize={height:f.size.height+u.vertical,width:f.size.width+u.horizontal},"natural"==n?o.geo.available[d][h].width>=r.outerSize.width&&o.geo.available[d][h].height>=r.outerSize.height?r.fits=!0:r.fits=!1:r.fits=f.fits,"window"==d&&(r.fits?r.whole="top"==h||"bottom"==h?o.geo.origin.windowOffset.right>=i.__options.minIntersection&&o.geo.window.size.width-o.geo.origin.windowOffset.left>=i.__options.minIntersection:o.geo.origin.windowOffset.bottom>=i.__options.minIntersection&&o.geo.window.size.height-o.geo.origin.windowOffset.top>=i.__options.minIntersection:r.whole=!1),s.push(r),r.whole)l=!0;else if("natural"==r.mode&&(r.fits||r.size.width<=o.geo.available[d][h].width))return!1}})}}),i.__instance._trigger({edit:function(t){s=t},event:e,helper:o,results:s,type:"positionTested"}),s.sort(function(t,e){if(t.whole&&!e.whole)return-1;if(!t.whole&&e.whole)return 1;if(t.whole&&e.whole){var o=i.__options.side.indexOf(t.side);return(n=i.__options.side.indexOf(e.side))>o?-1:o>n?1:"natural"==t.mode?-1:1}if(t.fits&&!e.fits)return-1;if(!t.fits&&e.fits)return 1;if(t.fits&&e.fits){var n;o=i.__options.side.indexOf(t.side);return(n=i.__options.side.indexOf(e.side))>o?-1:o>n?1:"natural"==t.mode?-1:1}return"document"==t.container&&"bottom"==t.side&&"natural"==t.mode?-1:1}),(n=s[0]).coord={},n.side){case"left":case"right":n.coord.top=Math.floor(n.target-n.size.height/2);break;case"bottom":case"top":n.coord.left=Math.floor(n.target-n.size.width/2)}switch(n.side){case"left":n.coord.left=o.geo.origin.windowOffset.left-n.outerSize.width;break;case"right":n.coord.left=o.geo.origin.windowOffset.right+n.distance.horizontal;break;case"top":n.coord.top=o.geo.origin.windowOffset.top-n.outerSize.height;break;case"bottom":n.coord.top=o.geo.origin.windowOffset.bottom+n.distance.vertical}"window"==n.container?"top"==n.side||"bottom"==n.side?n.coord.left<0?o.geo.origin.windowOffset.right-this.__options.minIntersection>=0?n.coord.left=0:n.coord.left=o.geo.origin.windowOffset.right-this.__options.minIntersection-1:n.coord.left>o.geo.window.size.width-n.size.width&&(o.geo.origin.windowOffset.left+this.__options.minIntersection<=o.geo.window.size.width?n.coord.left=o.geo.window.size.width-n.size.width:n.coord.left=o.geo.origin.windowOffset.left+this.__options.minIntersection+1-n.size.width):n.coord.top<0?o.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?n.coord.top=0:n.coord.top=o.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:n.coord.top>o.geo.window.size.height-n.size.height&&(o.geo.origin.windowOffset.top+this.__options.minIntersection<=o.geo.window.size.height?n.coord.top=o.geo.window.size.height-n.size.height:n.coord.top=o.geo.origin.windowOffset.top+this.__options.minIntersection+1-n.size.height):(n.coord.left>o.geo.window.size.width-n.size.width&&(n.coord.left=o.geo.window.size.width-n.size.width),n.coord.left<0&&(n.coord.left=0)),i.__sideChange(r,n.side),o.tooltipClone=r[0],o.tooltipParent=i.__instance.option("parent").parent[0],o.mode=n.mode,o.whole=n.whole,o.origin=i.__instance._$origin[0],o.tooltip=i.__instance._$tooltip[0],delete n.container,delete n.fits,delete n.mode,delete n.outerSize,delete n.whole,n.distance=n.distance.horizontal||n.distance.vertical;var p,u,h,f=t.extend(!0,{},n);if(i.__instance._trigger({edit:function(t){n=t},event:e,helper:o,position:f,type:"position"}),i.__options.functionPosition){var _=i.__options.functionPosition.call(i,i.__instance,o,f);_&&(n=_)}c.destroy(),"top"==n.side||"bottom"==n.side?(p={prop:"left",val:n.target-n.coord.left},u=n.size.width-this.__options.minIntersection):(p={prop:"top",val:n.target-n.coord.top},u=n.size.height-this.__options.minIntersection),p.val<this.__options.minIntersection?p.val=this.__options.minIntersection:p.val>u&&(p.val=u),h=o.geo.origin.fixedLineage?o.geo.origin.windowOffset:{left:o.geo.origin.windowOffset.left+o.geo.window.scroll.left,top:o.geo.origin.windowOffset.top+o.geo.window.scroll.top},n.coord={left:h.left+(n.coord.left-o.geo.origin.windowOffset.left),top:h.top+(n.coord.top-o.geo.origin.windowOffset.top)},i.__sideChange(i.__instance._$tooltip,n.side),o.geo.origin.fixedLineage?i.__instance._$tooltip.css("position","fixed"):i.__instance._$tooltip.css("position",""),i.__instance._$tooltip.css({left:n.coord.left,top:n.coord.top,height:n.size.height,width:n.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(p.prop,p.val),i.__instance._$tooltip.appendTo(i.__instance.option("parent")),i.__instance._trigger({type:"repositioned",event:e,position:n})},__sideChange:function(t,e){t.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+e)},__targetFind:function(t){var e={},o=this.__instance._$origin[0].getClientRects();o.length>1&&(1==this.__instance._$origin.css("opacity")&&(this.__instance._$origin.css("opacity",.99),o=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1)));if(o.length<2)e.top=Math.floor(t.geo.origin.windowOffset.left+t.geo.origin.size.width/2),e.bottom=e.top,e.left=Math.floor(t.geo.origin.windowOffset.top+t.geo.origin.size.height/2),e.right=e.left;else{var n=o[0];e.top=Math.floor(n.left+(n.right-n.left)/2),n=o.length>2?o[Math.ceil(o.length/2)-1]:o[0],e.right=Math.floor(n.top+(n.bottom-n.top)/2),n=o[o.length-1],e.bottom=Math.floor(n.left+(n.right-n.left)/2),n=o.length>2?o[Math.ceil((o.length+1)/2)-1]:o[o.length-1],e.left=Math.floor(n.top+(n.bottom-n.top)/2)}return e}}}),t}),function(t){function e(e,o){var n,i=this,a=(o=o||{}).query||"> :even";t.extend(i,{$el:e,options:o,sections:[],isAccordion:o.accordion||!1,db:!!o.persist&&jQueryCollapseStorage(e.get(0).id)}),i.states=i.db?i.db.read():[],i.$el.find(a).each(function(){new jQueryCollapseSection(t(this),i)}),n=i,i.$el.on("click","[data-collapse-summary] "+(n.options.clickQuery||""),t.proxy(i.handleClick,n)),i.$el.bind("toggle close open",t.proxy(i.handleEvent,n))}function o(e,o){o.options.clickQuery||e.wrapInner('<a href="#"/>'),t.extend(this,{isOpen:!1,$summary:e.attr("data-collapse-summary",""),$details:e.next(),options:o.options,parent:o}),o.sections.push(this);var n=o.states[this._index()];0===n?this.close(!0):this.$summary.is(".open")||1===n?this.open(!0):this.close(!0)}e.prototype={handleClick:function(e,o){e.preventDefault();o=o||"toggle";for(var n=this.sections,i=n.length;i--;)if(t.contains(n[i].$summary[0],e.target)){n[i][o]();break}},handleEvent:function(t){if(t.target==this.$el.get(0))return this[t.type]();this.handleClick(t,t.type)},open:function(e){if(isFinite(e))return this.sections[e].open();t.each(this.sections,function(t,e){e.open()})},close:function(e){if(isFinite(e))return this.sections[e].close();t.each(this.sections,function(t,e){e.close()})},toggle:function(e){if(isFinite(e))return this.sections[e].toggle();
1t.each(this.sections,function(t,e){e.toggle()})}},o.prototype={toggle:function(){this.isOpen?this.close():this.open()},close:function(t){this._changeState("close",t)},open:function(e){var o=this;o.options.accordion&&!e&&t.each(o.parent.sections,function(t,e){e.close()}),o._changeState("open",e)},_index:function(){return t.inArray(this,this.parent.sections)},_changeState:function(e,o){var n=this;n.isOpen="open"==e,t.isFunction(n.options[e])&&!o?n.options[e].apply(n.$details):n.$details[n.isOpen?"show":"hide"](),n.$summary.toggleClass("open","close"!=e),n.$details.attr("aria-hidden","close"==e),n.$summary.attr("aria-expanded","open"==e),n.$summary.trigger("open"==e?"opened":"closed",n),n.parent.db&&n.parent.db.write(n._index(),n.isOpen)}},t.fn.extend({collapse:function(o,n){return(n?t("body").find("[data-collapse]"):t(this)).each(function(){var i=n?{}:o,a=t(this).attr("data-collapse")||"";t.each(a.split(" "),function(t,e){e&&(i[e]=!0)}),new e(t(this),i)})}}),t(function(){t.fn.collapse(!1,!0)}),jQueryCollapse=e,jQueryCollapseSection=o}(window.jQuery),function(t){var e="jQuery-Collapse-"+HS_FORUM_ID;function o(t,e){this.id=t,this.db=e,this.data=[]}o.prototype={write:function(o,n){var i=this;i.data[o]=n?1:0,t.each(i.data,function(t){void 0===i.data[t]&&(i.data[t]=0)});var a=this._getDataObject();a[this.id]=this.data,this.db.setItem(e,JSON.stringify(a))},read:function(){return this._getDataObject()[this.id]||[]},_getDataObject:function(){var t=this.db.getItem(e);return t?JSON.parse(t):{}}},jQueryCollapseStorage=function(e){var n;try{n=window.localStorage||t.fn.collapse.cookieStorage}catch(t){n=!1}return!!n&&new o(e,n)}}(jQuery),jQuery(function(t){"use strict";t(".sub-panels").each(function(){var e=t("a[data-subpanel]",this),o=e.map(function(){return this.getAttribute("data-subpanel")});o.length&&e.click(function(){return activateSubPanel(this.getAttribute("data-subpanel"),o),!1})})});var inAutocomplete=!1,lastKeyEntered="",loadSubmit,loadTime,Singleton;function phpbbCheckKey(t){"use strict";return!t.keyCode||40!==t.keyCode&&38!==t.keyCode||(inAutocomplete=!0),!inAutocomplete||lastKeyEntered&&lastKeyEntered!==t.which?13!==t.which&&(lastKeyEntered=t.which,!0):(inAutocomplete=!1,!0)}function insertUser(t,e){"use strict";var o=jQuery(t),n=o.attr("data-form-name"),i=o.attr("data-field-name"),a=opener.document.forms[n][i];a.value.length&&"textarea"===a.type&&(e=a.value+"\n"+e),a.value=e}function insert_marked_users(t,e){"use strict";for(var o=0;o<e.length;o++)e[o].checked&&insertUser(t,e[o].value);window.close()}function insert_single_user(t,e){"use strict";insertUser(t,e),window.close()}function parseDocument(t){"use strict";var e=void 0===document.createElement("div").style.borderRadius,o=$("body");t.find("input[data-reset-on-edit]").on("keyup",function(){$(this.getAttribute("data-reset-on-edit")).val("")}
1),t.find(".pagination .page-jump-form :button").click(function(){pageJump($(this).siblings("input.inputbox"))}),t.find(".pagination .page-jump-form input.inputbox").on("keypress",function(t){13!==t.which&&13!==t.keyCode||(t.preventDefault(),pageJump($(this)))}),t.find(".pagination .dropdown-trigger").click(function(){var t=$(this).parent();setTimeout(function(){t.hasClass("dropdown-visible")&&t.find("input.inputbox").focus()},100)}),t.find(".navlinks").each(function(){var t=$(this),e=t.children().not(".rightside"),o=t.children(".rightside");function n(){var n,i=0,a=e.outerWidth(!0)-e.width(),s=Math.max(t.width()/3,240);o.each(function(){var t=$(this);t.is(":visible")&&(i+=t.outerWidth(!0))}),n=t.width()-i-a,e.css("max-width",Math.floor(Math.max(n,s))+"px")}1===e.length&&o.length&&(n(),$(window).resize(n))}),t.find(".breadcrumbs:not([data-skip-responsive])").each(function(){var t=$(this),e=t.find(".crumb"),n=e.length,i=["wrapped-max","wrapped-wide","wrapped-medium","wrapped-small","wrapped-tiny"],a=i.length,s=0,r=!1,c=!1;function l(){var l,d=t.height();if((l=parseInt(t.css("max-width"),10))||(l=o.width()),s=parseInt(t.css("line-height"),10),e.each(function(){$(this).height()>0&&(s=Math.max(s,$(this).outerHeight(!0)))}),!(d<=s&&(!c||!1===r||r>=l)||(r=l,c&&(t.removeClass("wrapped").find(".crumb.wrapped").removeClass("wrapped "+i.join(" ")),t.height()<=s)||(c=!0,t.addClass("wrapped"),t.height()<=s))))for(var p=0;p<a;p++)for(var u=n-1;u>=0;u--)if(e.eq(u).addClass("wrapped "+i[p]),t.height()<=s)return}t.find("a").each(function(){var t=$(this);t.attr("title",t.text())}),l(),$(window).resize(l)});t.find(".linklist:not(.navlinks, [data-skip-responsive]),.postbody .post-buttons:not([data-skip-responsive])").each(function(){var t=$(this),e=".edit-icon, .quote-icon, [data-last-responsive]",n=t.children(),i=n.not(".breadcrumbs, [data-skip-responsive]"),a=i.not(e),s=i.filter(e),r="nav-main"===t.attr("id"),c='<li class="responsive-menu hidden"><a href="javascript:void(0);" class="js-responsive-menu-link responsive-menu-link"><i class="icon fa-bars fa-fw" aria-hidden="true"></i></a><div class="dropdown"><div class="pointer"><div class="pointer-inner" /></div><ul class="dropdown-contents" /></div></li>';r||(i.is(".rightside")?(i.filter(".rightside:first").before(c),t.children(".responsive-menu").addClass("rightside")):t.append(c));var l=t.children(".responsive-menu"),d=l.find(".dropdown-contents"),p=d.find("li:not(.separator)").length,u=!1,h=!1,f=!1,_=!1,m=!1,g=!1,v=0;function b(){var e=o.width();if(!(_&&h&&e<=u||(u=e,(f||_)&&(i.removeClass("hidden"),d.children(".clone").addClass("hidden"),f=_=!1),h&&(t.removeClass("compact"),h=!1),r&&p?l.removeClass("hidden"):l.addClass("hidden"),t.height()<=v||(h||(t.addClass("compact"),h=!0),t.height()<=v)))){if(h&&(t.removeClass("compact"),h=!1),!m){var n=a.clone();d.prepend(n.addClass("clone clone-first").removeClass("leftside rightside")),t.hasClass("post-buttons")&&($(".button",d).removeClass("button"),$(".sr-only",d).removeClass("sr-only"),$(".js-responsive-menu-link").addClass("button").addClass("button-icon-only"),$(".js-responsive-menu-link .icon").removeClass("fa-bars").addClass("fa-ellipsis-h")),m=!0}if(f||(a.addClass("hidden"),f=!0,d.children(".clone-first").removeClass("hidden"),l.removeClass("hidden")),!(t.height()<=v)&&(h||(t.addClass("compact"),h=!0),!(t.height()<=v)&&s.length)){if(h&&(t.removeClass("compact"),h=!1),!g){var c=s.clone();d.prepend(c.addClass("clone clone-last").removeClass("leftside rightside")),g=!0}_||(s.addClass("hidden"),_=!0,d.children(".clone-last").removeClass("hidden")),t.height()<=v||h||(t.addClass("compact"),h=!0)}}}n.each(function(){$(this).height()&&(v=Math.max(v,$(this).outerHeight(!0)))}),v<1||(v+=3,r||phpbb.registerDropdown(l.find("a.js-responsive-menu-link"),l.find(".dropdown"),!1),n.find("img").each(function(){$(this).load(function(){b()})}),b(),$(window).resize(b))}),e||(t.find("ul.topiclist dd.mark").siblings("dt").children(".list-inner").addClass("with-mark"),t.find(".topiclist.responsive-show-all > li > dl").each(function(){var t=$(this),e=t.find("dt .responsive-show:last-child"),o=!0;e.length?o=0===$.trim(e.text()).length:(t.find("dt > .list-inner").append('<div class="responsive-show" />'),e=t.find("dt .responsive-show:last-child")),t.find("dd").not(".mark").each(function(){var t=$(this),n=t.children(),i=t.html();1===n.length&&n.text()===t.text()&&(i=n.html()),e.append((o?"":"<br />")+i),o=!1})}),t.find(".topiclist.responsive-show-columns").each(function(){var t=$(this),e=[],o=0;t.prev(".topiclist").find("li.header dd").not(".mark").each(function(){e.push($(this).text()),o++}),o&&t.find("dl").each(function(){var t=$(this),n=t.find("dt .responsive-show:last-child"),i=!0;n.length?i=0===$.trim(n.text()).length:(t.find("dt > .list-inner").append('<div class="responsive-show" />'),n=t.find("dt .responsive-show:last-child")),t.find("dd").not(".mark").each(function(t){var a=$(this),s=a.children(),r=a.html();1===s.length&&s.text()===a.text()&&(r=s.html()),t<o&&(r=e[t]+": <strong>"+r+"</strong>"),n.append((i?"":"<br />")+r),i=!1})})}),t.find("table.table1").not(".not-responsive").each(function(){var t,e,o=$(this),n=o.find("thead > tr > th"),i=[],a=0;n.each(function(e){var n=$(this),s=parseInt(n.attr("colspan"),10),r=n.attr("data-dfn"),c=r||n.text();for(s=isNaN(s)||s<1?1:s,t=0;t<s;t++)i.push(c);a++,r&&!e&&o.addClass("show-header")}),e=i.length,o.addClass("responsive"),a<2?o.addClass("show-header"):o.find("tbody > tr").each(function(){var t=$(this),o=t.children("td"),n=0;1!==o.length?o.each(function(){var t=$(this),o=parseInt(t.attr("colspan"),10),a=$.trim(t.text());e<=n||(a.length&&"-"!==a||t.children().length?t.prepend('<dfn style="display: none;">'+i[n]+"</dfn>"):t.addClass("empty"),o=isNaN(o)||o<1?1:o,n+=o)}):t.addClass("big-column")})}),t.find("table.responsive > tbody").not(".responsive-skip-empty").each(function(){$(this).children("tr").length||$(this).parent("table:first").addClass("responsive-hide")}),t.find("#tabs, #minitabs").not("[data-skip-responsive]").each(function(){var t=$(this),e=t.children(),n=e.children().not("[data-skip-responsive]"),i=n.children("a"),a=e.append('<li class="tab responsive-tab" style="display:none;"><a href="javascript:void(0);" class="responsive-tab-link">&nbsp;</a><div class="dropdown tab-dropdown" style="display: none;"><div class="pointer"><div class="pointer-inner" /></div><ul class="dropdown-contents" /></div></li>').find("li.responsive-tab"),s=a.find(".dropdown-contents"),r=0,c=!1,l=!1;function d(){var e=o.width(),i=t.height();if(arguments.length||l&&!(e<=c)||!(i<=r))if(n.show(),a.hide(),c=e,(i=t.height())<=r)a.hasClass("dropdown-visible")&&phpbb.toggleDropdown.call(a.find("a.responsive-tab-link").get(0));else{l=!0,a.show(),s.html("");var p,u,h=n.filter(":not(.activetab, .responsive-tab)");for(p=h.length-1;p>=0;p--)if(u=h.eq(p),s.prepend(u.clone(!0).removeClass("tab")),u.hide(),t.height()<=r)return void s.find("a").click(function(){d(!0)});s.find("a").click(function(){d(!0)})}}i.each(function(){var t=$(this);r=Math.max(r,Math.max(t.outerHeight(!0),t.parent().outerHeight(!0)))});var p=a.find("a.responsive-tab-link");phpbb.registerDropdown(p,a.find(".dropdown"),{visibleClass:"activetab"}),d(!0),$(window).resize(d)}),t.find("#navigation").each(function(){1===$(this).children("ol, ul").children("li").length&&$(this).addClass("responsive-hide")}),t.find("[data-responsive-text]").each(function(){var t=$(this),e=t.text(),o=t.attr("data-responsive-text"),n=!1;function i(){if($(window).width()>700){if(!n)return;return t.text(e),void(n=!1)}n||(t.text(o),n=!0)}i(),$(window).resize(i)}))}if(jQuery(function(t){"use strict";t("form input[type=text], form input[type=password]").on("keypress",function(e){var o=t(this).parents("form").find("input[type=submit].default-submit-action");return!o||o.length<=0||(!!phpbbCheckKey(e)||(!(e.which&&13===e.which||e.keyCode&&13===e.keyCode)||(o.click(),!1)))})}),jQuery(function(t){"use strict";t("#phpbb.nojs").toggleClass("nojs hasjs"),t("#phpbb").toggleClass("hastouch",phpbb.isTouch),t("#phpbb.hastouch").removeClass("notouch"),t("form[data-focus]:first").each(function(){t("#"+this.getAttribute("data-focus")).focus()}),parseDocument(t("body"))}),$("span.topic_type").length&&$("span.topic_type").each(function(t,e){var o=$(this).html();o=o.replace(":",""),$(this).html(o)}),$(document).ready(function(){$(".tooltip").tooltipster({theme:"tooltipster-borderless",delay:0,side:"right"}),$(".tooltip-left").tooltipster({theme:"tooltipster-borderless",delay:0,side:"left"})}),$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>300?$(".scrollToTopText").fadeIn():$(".scrollToTopText").fadeOut()}),$(".scrollToTopText").click(function(){return $("html, body").animate({scrollTop:0},800),!1}),$("#postform,#qr_postform").submit(function(t){if((loadSubmit=$(this).find(".loadSubmit").eq(0)).length){if("true"===loadSubmit.attr("hasDisabled"))return!1;clearTimeout(loadTime),loadSubmit.attr("hasDisabled","true"),loadTime=setTimeout(function(){loadSubmit.removeAttr("hasDisabled")},5e3)}return!0})}),$("#forumlist_collapse").collapse({query:".collapse-trigger",persist:!0,open:function(){this.slideDown(100),this.siblings(".gallery-preview-collapse-trigger").attr("aria-expanded","true").attr("aria-label","Collapse recently uploaded"),$(this).parents("#gallery_preview_container").length&&checkWaterfallStart(20,"")},close:function(){this.slideUp(100),this.siblings(".gallery-preview-collapse-trigger").attr("aria-expanded","fal
1se").attr("aria-label","Expand recently uploaded")}}),$("span.current_time").length){var currenttime=$("span.current_time").html();function blinker(){$("span.blink").fadeOut(500),$("span.blink").fadeIn(500)}currenttime=currenttime.replace(":","<span class='blink'>:</span>"),$("span.current_time").html(currenttime),setInterval(blinker,1e3)}!function(t,e){"use strict";function o(e){var o=e.querySelector(".icon"),n=e.querySelector(".codebox-copy-label"),i=e.getAttribute("data-label-copy")||"Copy code",a=e.getAttribute("data-label-copied")||"Code copied";e.codeCopyResetTimer&&t.clearTimeout(e.codeCopyResetTimer),e.classList.add("is-copied"),n&&(n.textContent=a),o&&(o.classList.remove("fa-clone"),o.classList.add("fa-check")),e.codeCopyResetTimer=t.setTimeout(function(){e.classList.remove("is-copied"),n&&(n.textContent=i),o&&(o.classList.remove("fa-check"),o.classList.add("fa-clone")),e.codeCopyResetTimer=null},1600)}function n(o){var n=!1,i=function(o){var n,i;return t.getSelection&&e.createRange?(n=t.getSelection(),(i=e.createRange()).selectNodeContents(o),n.removeAllRanges(),n.addRange(i),n):null}(o);if(!i)return!1;try{n=e.execCommand&&e.execCommand("copy")}catch(t){n=!1}return n&&i.removeAllRanges(),n}function i(t){var i,a=function(t){for(var o=t;o&&o!==e;){if(o.classList&&o.classList.contains("codebox"))return o.getElementsByTagName("code")[0]||null;o=o.parentNode}return null}(t);a&&(i=a.textContent||"",navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(i).then(function(){o(t)},function(){n(a)&&o(t)}):n(a)&&o(t))}e.addEventListener("click",function(t){var o=function(t){for(;t&&t!==e;){if(t.classList&&t.classList.contains("codebox-copy"))return t;t=t.parentNode}return null}(t.target);o&&(t.preventDefault(),i(o))})}(window,document),function(t){"use strict";function e(t,e,o,n){var i=e&&(e.MESSAGE_TEXT||e.MESSAGE_TITLE||e.message);"function"==typeof window.ttgAlertBanner&&window.ttgAlertBanner(i||o,n||"success",{anchor:t})}phpbb.addAjaxCallback("mark_forums_read",function(o){var n=o.NO_UNREAD_POSTS,i=o.UNREAD_POSTS,a={forum_unread:"forum_read",forum_unread_subforum:"forum_read_subforum",forum_unread_locked:"forum_read_locked"};t("li.row").find('dl[class*="forum_unread"]').each(function(){var e=t(this);t.each(a,function(t,o){e.hasClass(t)&&e.removeClass(t).addClass(o)}),e.children('dt[title="'+i+'"]').attr("title",n)}),t('a.subforum[class*="unread"]').removeClass("unread").addClass("read"),t("#active_topics").length&&phpbb.ajaxCallbacks.mark_topics_read.call(this,o,!1),t('[data-ajax="mark_forums_read"]').attr("href",o.U_MARK_FORUMS),e(this,o,"Forums have been marked read.","success"),t("#darkenwrapper").trigger("click")}),phpbb.addAjaxCallback("mark_all_notifications_read",function(o){o.success&&(t(".unread-mark").remove(),t(".notifications").find(".unread-dot").remove(),e(this,o,"Notifications have been marked read.","success"))}),phpbb.addAjaxCallback("mark_topics_read",function(o,n){var i,a=o.NO_UNREAD_POSTS,s=o.UNREAD_POSTS,r=["","_hot","_hot_mine","_locked","_locked_mine","_mine"],c={},l=[];void 0===n&&(n=!0),t(".topics .row-item").each(function(){t(this)[0].className.match(/unread/)&&t(this).parent().find(".unread-mark").css("display","none")}),t.each({global_unread:"global_read",announce_unread:"announce_read",sticky_unread:"sticky_read",topic_unread:"topic_read"},function(e,o){t.each(r,function(t,n){if(("_hot"===n||"_hot_mine"===n)&&"topic_unread"!==e)return!0;c[e+n]=o+n,l.push(e+n)})}),i="."+l.join(",."),t("li.row").find(i).each(function(){var e=t(this);t.each(c,function(t,o){e.hasClass(t)&&e.removeClass(t).addClass(o)}),e.children('dt[title="'+s+'"]').attr("title",a)}),t("a.unread").has(".icon-red").remove(),n&&t('[data-ajax="mark_topics_read"]').attr("href",o.U_MARK_TOPICS),e(this,o,"Topics have been marked read.","success"),t("#darkenwrapper").trigger("click")}),phpbb.addAjaxCallback("notification.mark_all_read",function(o){void 0!==o.success&&(phpbb.markNotifications(t("#notification_list li.bg2"),0),e(this,o,"Notifications have been marked read.","success"),t("#dar
1kenwrapper").trigger("click"),t(".icon-notification-dot").addClass("icon-notification"),t(".icon-notification-dot").removeClass("icon-notification-dot"))}),phpbb.addAjaxCallback("notification.mark_read",function(e){if(void 0!==e.success){var o=Number(t("#notification_list_button strong").html())-1;phpbb.markNotifications(t(this).parent("li.bg2"),o)}}),phpbb.markNotifications=function(e,o){e.removeClass("bg2"),e.find("a.mark_read").remove(),e.each(function(){var e=t(this).find("a");e.attr("href",e.attr("data-real-url"))}),t("strong","#notification_list_button").html(o),o||(t("#mark_all_notifications").remove(),t("#notification_list_button > strong").addClass("hidden"));var n=t("title"),i=n.text().replace(/(\((\d+)\))/,"");n.text((o?"("+o+")":"")+i)},phpbb.addAjaxCallback("post_delete",function(){var e,o=t(this);if(void 0===o.attr("data-refresh")){e=o[0].href.split("&p=")[1];var n=o.parents("#p"+e).css("pointer-events","none");if(n.hasClass("bg1")||n.hasClass("bg2")){var i=n.nextAll(".bg1");n.nextAll(".bg2").removeClass("bg2").addClass("bg1"),i.removeClass("bg1").addClass("bg2")}n.fadeOut(function(){t(this).remove()})}}),phpbb.addAjaxCallback("post_visibility",function(e){var o=e.visible?t(this):t(this).parents(".post");t(o).css("pointer-events","none").fadeOut(function(){t(this).remove()}),e.visible&&o.parents(".post").find(".post_deleted_msg").css("pointer-events","none").fadeOut(function(){t(this).remove()})}),phpbb.addAjaxCallback("row_delete",function(){t(this).parents("tr").remove()}),phpbb.addAjaxCallback("bump_refresh",function(t){var e=t.REFRESH_DATA.time;e>0&&setTimeout(function(){window.location.reload(!0)},1e3*e)}),phpbb.addAjaxCallback("zebra",function(e){var o;e.success&&((o=t(".zebra")).first().html(e.MESSAGE_TEXT),o.not(":first").html("&nbsp;").prev().html("&nbsp;"))}),phpbb.addAjaxCallback("vote_poll",function(e){if(void 0!==e.success){var o=t(".topic_poll"),n=o.find(".panel"),i=o.find("dl:first-child .resultbar").is(":visible"),a=0,s=function(t){t=void 0===t?n.find(".inner").outerHeight():t,n.css("min-height",t)};s(),i||o.find(".poll_view_results").hide(500),e.can_vote?o.find(".resultbar, .poll_option_percent, .poll_total_votes").show(500):o.find(".polls, .poll_max_votes, .poll_vote, .poll_option_select").fadeOut(500,function(){o.find(".resultbar, .poll_option_percent, .poll_total_votes").show()}),o.find("[data-poll-option-id]").each(function(){var o=t(this).attr("data-poll-option-id");a=e.vote_counts[o]>=a?e.vote_counts[o]:a}),o.find(".poll_total_vote_cnt").html(e.total_votes),o.find("[data-poll-option-id]").each(function(){var o=t(this),n=o.attr("data-poll-option-id"),i=void 0!==e.user_votes[n],s=e.vote_counts[n]===a,r=e.total_votes?Math.round(e.vote_counts[n]/e.total_votes*100):0;0===a||Math.round(e.vote_counts[n]/a*100);o.toggleClass("voted",i),o.toggleClass("most-votes",s);var c=o.find(".poll_option_resultbar"),l=e.can_vote?500:1500;100===r||Math.floor(r/20);setTimeout(function(){c.removeClass("hidden"),c.animate({width:r+"%"},500);var t=e.vote_counts[n]+"("+r+"%)";o.find(".poll_option_percent").html(t)},l)}),e.can_vote||o.find(".polls").delay(400).fadeIn(500),t(".poll_button input").each(function(){t(this).addClass("hidden")}),e.can_vote?(t(".poll_button .revote_button").removeClass("hidden"),t(".poll_button .voted_button").removeClass("hidden")):(t(".poll_button .voted_button").removeClass("hidden"),t(".poll_option_content input").attr("disabled","disabled"));var r=e.can_vote?300:900;o.find(".vote-submitted").delay(r).css("display","inline-block"),i&&s(),o.find(".vote-submitted").delay(5e3).fadeOut(500,function(){c(300)}),setTimeout(function(){c(500)},1500);var c=function(t){var e=n.height(),o=n.find(".inner").outerHeight();e!==o&&n.css({minHeight:"",height:e}).animate({height:o},t,function(){n.css({minHeight:o,height:""})})}}}),t(".poll_view_results a").click(function(e){e.preventDefault();var o=t(this).parents(".topic_poll");o.find(".resultbar, .poll_option_percent, .poll_total_votes").show(500),o.find(".poll_view_results").hide(500)}),t("[data-ajax]").each(function(){var e=t(this),o=e.attr("data-ajax"),n=e.attr("data-filter");if("false"!==o){var i="true"!==o?o:null;n=void 0!==n?phpbb.getFunctionByName(n):null,phpbb.ajaxify({selector:this,refresh:void 0!==e.attr("data-refresh"),filter:n,callback:i})}}),t("#qr_full_editor").click(function(){t("#qr_postform").attr("action",function(t,e){return(e||"").replace(/#.*$/,"")+"#preview"})}),t(".display_post").click(function(e){e.preventDefault();var o=t(this).attr("data-post-id");t("#post_container"+o).removeClass("hide").show(),t("#profile"+o
1).removeClass("hide").show(),t("#post_hidden"+o).hide()}),t("#member_search").click(function(){var e=t("#memberlist_search");return e.slideToggle("fast"),phpbb.ajaxCallbacks.alt_text.call(this),e.is(":visible")&&t("#username").focus(),!1})}(jQuery),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var o=window.Cookies,n=window.Cookies=t();n.noConflict=function(){return window.Cookies=o,n}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var o=arguments[t];for(var n in o)e[n]=o[n]}return e}return function e(o){function n(e,i,a){var s;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(a=t({path:"/"},n.defaults,a)).expires){var r=new Date;r.setMilliseconds(r.getMilliseconds()+864e5*a.expires),a.expires=r}a.expires=a.expires?a.expires.toUTCString():"";try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(t){}i=o.write?o.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var c="";for(var l in a)a[l]&&(c+="; "+l,!0!==a[l]&&(c+="="+a[l]));return document.cookie=e+"="+i+c}e||(s={});for(var d=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,u=0;u<d.length;u++){var h=d[u].split("="),f=h.slice(1).join("=");'"'===f.charAt(0)&&(f=f.slice(1,-1));try{var _=h[0].replace(p,decodeURIComponent);if(f=o.read?o.read(f,_):o(f,_)||f.replace(p,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(t){}if(e===_){s=f;break}e||(s[_]=f)}catch(t){}}return s}}return n.set=n,n.get=function(t){return n.call(n,t)},n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(e,o){n(e,"",t(o,{expires:-1}))},n.withConverter=e,n}(function(){})}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.Slideout=t()}}(function(){return function t(e,o,n){function i(s,r){if(!o[s]){if(!e[s]){var c="function"==typeof require&&require;if(!r&&c)return c(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=o[s]={exports:{}};e[s][0].call(d.exports,function(t){var o=e[s][1][t];return i(o||t)},d,d.exports,t,e,o,n)}return o[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,o){"use strict";var n,i=t("decouple"),a=t("emitter"),s=!1,r=window.document,c=r.documentElement,l=window.navigator.msPointerEnabled,d={start:l?"MSPointerDown":"touchstart",move:l?"MSPointerMove":"touchmove",end:l?"MSPointerUp":"touchend"},p=function(){var t=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,e=r.getElementsByTagName("script")[0].style;for(var o in e)if(t.test(o))return"-"+o.match(t)[0].toLowerCase()+"-";return"WebkitOpacity"in e?"-webkit-":"KhtmlOpacity"in e?"-khtml-":""}();function u(t){t=t||{},this._startOffsetX=0,this._currentOffsetX=0,this._opening=!1,this._moved=!1,this._opened=!1,this._preventOpen=!1,this._touch=(void 0===t.touch||t.touch)&&!0,this._side=t.side||"left",this.panel=t.panel,this.menu=t.menu,this.panel.classList.contains("slideout-panel")||this.panel.classList.add("slideout-panel"),this.panel.classList.contains("slideout-panel-"+this._side)||this.panel.classList.add("slideout-panel-"+this._side),this.menu&&!this.menu.classList.contains("slideout-menu")&&this.menu.classList.add("slideout-menu"),this.menu&&!this.menu.classList.contains("slideout-menu-"+this._side)&&this.menu.classList.add("slideout-menu-"+this._side),this._fx=t.fx||"ease",this._duration=parseInt(t.duration,10)||300,this._tolerance=parseInt(t.tolerance,10)||70,this._padding=this._translateTo=parseInt(t.padding,10)||256,this._orientation="right"===this._side?-1:1,this._translateTo*=this._orientation,this._touch&&this._initTouchEvents()}!function(t,e){t.prototype=function(t,e){for(var o in e)e[o]&&(t[o]=e[o]);return t}(t.prototype||{},e.prototype)}(u,a),u.prototype.open=function(){var t=this;
1return this.emit("beforeopen"),c.classList.contains("slideout-open")||c.classList.add("slideout-open"),this._setTransition(),this._translateXTo(this._translateTo),this._opened=!0,setTimeout(function(){t.panel.style.transition=t.panel.style["-webkit-transition"]="",t.emit("open")},this._duration+50),this},u.prototype.close=function(){var t=this;return this.isOpen()||this._opening?(this.emit("beforeclose"),this._setTransition(),this._translateXTo(0),this._opened=!1,setTimeout(function(){c.classList.remove("slideout-open"),t.panel.style.transition=t.panel.style["-webkit-transition"]=t.panel.style[p+"transform"]=t.panel.style.transform="",t.emit("close")},this._duration+50),this):this},u.prototype.toggle=function(){return this.isOpen()?this.close():this.open()},u.prototype.isOpen=function(){return this._opened},u.prototype._translateXTo=function(t){return this._currentOffsetX=t,this.panel.style[p+"transform"]=this.panel.style.transform="translateX("+t+"px)",this},u.prototype._setTransition=function(){return this.panel.style[p+"transition"]=this.panel.style.transition=p+"transform "+this._duration+"ms "+this._fx,this},u.prototype._initTouchEvents=function(){var t=this;return this._onScrollFn=i(r,"scroll",function(){t._moved||(clearTimeout(n),s=!0,n=setTimeout(function(){s=!1},250))}),this._preventMove=function(e){t._moved&&e.preventDefault()},r.addEventListener(d.move,this._preventMove),this._resetTouchFn=function(e){void 0!==e.touches&&(t._moved=!1,t._opening=!1,t._startOffsetX=e.touches[0].pageX,t._preventOpen=!t._touch||!t.isOpen()&&0!==t.menu.clientWidth)},this.panel.addEventListener(d.start,this._resetTouchFn),this._onTouchCancelFn=function(){t._moved=!1,t._opening=!1},this.panel.addEventListener("touchcancel",this._onTouchCancelFn),this._onTouchEndFn=function(){t._moved&&(t.emit("translateend"),t._opening&&Math.abs(t._currentOffsetX)>t._tolerance?t.open():t.close()),t._moved=!1},this.panel.addEventListener(d.end,this._onTouchEndFn),this._onTouchMoveFn=function(e){if(!(s||t._preventOpen||void 0===e.touches||function(t){for(;t.parentNode;){if(null!==t.getAttribute("data-slideout-ignore"))return t;t=t.parentNode}return null}(e.target))){var o=e.touches[0].clientX-t._startOffsetX,n=t._currentOffsetX=o;if(!(Math.abs(n)>t._padding)&&Math.abs(o)>20){t._opening=!0;var i=o*t._orientation;if(t._opened&&i>0||!t._opened&&i<0)return;t._moved||t.emit("translatestart"),i<=0&&(n=o+t._padding*t._orientation,t._opening=!1),t._moved&&c.classList.contains("slideout-open")||c.classList.add("slideout-open"),t.panel.style[p+"transform"]=t.panel.style.transform="translateX("+n+"px)",t.emit("translate",n),t._moved=!0}}},this.panel.addEventListener(d.move,this._onTouchMoveFn),this},u.prototype.enableTouch=function(){return this._touch=!0,this},u.prototype.disableTouch=function(){return this._touch=!1,this},u.prototype.destroy=function(){return this.close(),r.removeEventListener(d.move,this._preventMove),this.panel.removeEventListener(d.start,this._resetTouchFn),this.panel.removeEventListener("touchcancel",this._onTouchCancelFn),this.panel.removeEventListener(d.end,this._onTouchEndFn),this.panel.removeEventListener(d.move,this._onTouchMoveFn),r.removeEventListener("scroll",this._onScrollFn),this.open=this.close=function(){},this},e.exports=u},{decouple:2,emitter:3}],2:[function(t,e,o){"use strict";var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};e.exports=function(t,e,o){var i,a=!1;function s(t){i=t,a||(n(r),a=!0)}function r(){o.call(t,i),a=!1}return t.addEventListener(e,s,!1),s}},{}],3:[function(t,e,o){"use strict";o.__esModule=!0;var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.on=function(t,e){return this._eventCollection=this._eventCollection||{},this._eventCollection[t]=this._eventCollection[t]||[],this._eventCollection[t].push(e),this},t.prototype.once=function(t,e){var o=this;function n(){o.off(t,n),e.apply(this,arguments)}return n.listener=e,this.on(t,n),this},t.prototype.off=function(t,e){var o=void 0;return this._eventCollection&&(o=this._eventCollection[t])?(o.forEac
1h(function(t,n){t!==e&&t.listener!==e||o.splice(n,1)}),0===o.length&&delete this._eventCollection[t],this):this},t.prototype.emit=function(t){for(var e=this,o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];var a=void 0;return this._eventCollection&&(a=this._eventCollection[t])?(a=a.slice(0),a.forEach(function(t){return t.apply(e,n)}),this):this},t}();o.default=n,e.exports=o.default},{}]},{},[1])(1)}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e,o){var n,i,a;i=[t,o(7)],n=function(t,e){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=function(t){return t&&t.__esModule?t:{default:t}}(e),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),s=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},void 0!==(a="function"==typeof n?n.apply(e,i):n)&&(t.exports=a)},function(t,e,o){var n=o(6),i=o(5);
1t.exports=function(t,e,o){if(!t&&!e&&!o)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(o))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,o){return t.addEventListener(e,o),{destroy:function(){t.removeEventListener(e,o)}}}(t,e,o);if(n.nodeList(t))return function(t,e,o){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,o)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,o)})}}}(t,e,o);if(n.string(t))return function(t,e,o){return i(document.body,t,e,o)}(t,e,o);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){function o(){}o.prototype={on:function(t,e,o){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:o}),this},once:function(t,e,o){function n(){i.off(t,n),e.apply(o,arguments)}var i=this;return n._=e,this.on(t,n,o)},emit:function(t){for(var e=[].slice.call(arguments,1),o=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=o.length;n<i;n++)o[n].fn.apply(o[n].ctx,e);return this},off:function(t,e){var o=this.e||(this.e={}),n=o[t],i=[];if(n&&e)for(var a=0,s=n.length;a<s;a++)n[a].fn!==e&&n[a].fn._!==e&&i.push(n[a]);return i.length?o[t]=i:delete o[t],this}},t.exports=o},function(t,e,o){var n,i,a;i=[t,o(0),o(2),o(1)],n=function(t,e,o,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){var o="data-clipboard-"+t;if(e.hasAttribute(o))return e.getAttribute(o)}var l=i(e),d=i(o),p=i(n),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),f=function(t){function e(t,o){a(this,e);var n=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.resolveOptions(o),n.listenClick(t),n}return r(e,t),h(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===u(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,p.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return c("action",t)}},{key:"defaultTarget",value:function(t){var e=c("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return c("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,o=!!document.queryCommandSupported;return e.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(d.default);t.exports=f},void 0!==(a="function"==typeof n?n.apply(e,i):n)&&(t.exports=a)},function(t,e){var o=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==o;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,o){function n(t,e,o,n,a){var s=i.apply(this,arguments);return t.addEventListener(o,s,a),{destroy:function(){t.removeEventListener(o,s,a)}}}function i(t,e,o,n){return function(o){o.delegateTarget=a(o.target,e),o.delegateTarget&&n.call(t,o)}}var a=o(4);t.exports=function(t,e,o,i,a){return"function"==typeof t.addEventListener?n.apply(null,arguments):"function"==typeof o?n.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return n(t,e,o,i,a)}))}}
1,function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var o=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===o||"[object HTMLCollection]"===o)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var o=t.hasAttribute("readonly");o||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),o||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),i=document.createRange();i.selectNodeContents(t),n.removeAllRanges(),n.addRange(i),e=n.toString()}return e}}])}),window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/30)},function(){"use strict";function t(t){return t&&3===t.nodeType?t.parentNode:t}function e(e){return(e=t(e))&&e.closest?e.closest(".search-result-post-link[data-url]"):null}function o(t){var e=t.getAttribute("data-url");e&&(window.location.href=e)}document.addEventListener("click",function(n){var i,a=e(n.target);!a||(i=t(i=n.target))&&i.closest&&i.closest("a, button, input, select, textarea, label")||o(a)}),document.addEventListener("keydown",function(t){var n=e(t.target),i=t.key||t.keyCode;!n||"Enter"!==i&&" "!==i&&13!==i&&32!==i||(t.preventDefault(),o(n))})}(),window.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout,String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=!e||e<0?0:+e,this.substring(e,e+t.length)===t}}),function(){var t;Singleton=function(){if(t)return t;var e={};!function(t){var o,n;t.cookie_name=TT_COOKIE_NAME,t.cookie_path=TT_COOKIE_PATH,t.cookie_secure=TT_COOKIE_SECURE,t.ttg_option_key="GOP",t.forum_option_key="FOP",t.lSAva=!0;try{n=new Date,(t.storage=window.localStorage).setItem(n,n),o=t.storage.getItem(n)!=n,t.storage.removeItem(n),o&&(t.lSAva=!1)}catch(e){t.lSAva=!1}try{var i=Cookies.get("FOP");i&&(e=JSON.parse(atob(i)))}catch(t){console.error(t)}}(t=this);var o=location.hostname,n={GOP:{expires:1095,path:"/",prefix:!1,secure:!1},FOP:{expires:1095,path:this.cookie_path,prefix:!1,secure:this.cookie_secure}};function i(t){return n[t]&&n[t].prefix&&"/"!==n[t].path?this.cookie_name+t:t}function a(t,e){var o;return"GOP"!==t?e:(o={},Object.keys(e).forEach(function(t){o[t]=e[t]}),window.ttgThemePreference&&(o.thm=window.ttgThemePreference),delete o.thm_resolved,o)}return this._getObj=function(t){var o={};switch(t){case this.ttg_option_key:o=GOP;break;case this.forum_option_key:o=e}return o},this._setOption=function(t,e,o,n){var i=this._getObj(t);t===this.ttg_option_key&&"thm"===e&&(window.ttgThemePreference=o),i[e]=n?{v:o,t:this.getTimestamp()+parseInt(n)}:o,this.setCookie(t,btoa(JSON.stringify(a(t,i))))},this._getOption=function(t,e){var o=this._getObj(t);if(t===this.ttg_option_key&&"thm"===e&&window.ttgThemePreference)return window.ttgThemePreference;var n=o[e];return n?"object"==typeof n&&n.hasOwnProperty("v")&&n.hasOwnProperty("t")?n.t<this.getTimestamp()?(this._deleteOption(t,e),""):n.v:n:""},this._deleteOption=function(t,e){var o=!1,n=this._getObj(t);return t===this.ttg_option_key&&"thm"===e&&(window.ttgThemePreference=""),n[e]&&(o=delete n[e]),this.setCookie(t,btoa(JSON.stringify(a(t,n)))),o},this.setCookieParam=function(t){var e={};return n[t]&&n[t].path?(e.path=n[t].path,n[t]&&n[t].expires&&(e.expires=n[t].expires),"/"===e.path&&"www.tapatalk.com"===o&&(e.domain=".tapatalk.com"),e.secure&&(e.secure=this.cookie_secure),e):(console.error("Can't find path for c
1ookie "+t),{})},this.getTimestamp=function(){return Date.now||(Date.now=function(){return(new Date).getTime()}),Date.now()/1e3|0},this.setCookie=function(t,e){Cookies.set(i(t),e,this.setCookieParam(t))},this.getCookie=function(t){return Cookies.get(i(t))},this.removeCookie=function(t){Cookies.remove(i(t),this.setCookieParam(t))},this.setTTOption=function(t,e,o){return this._setOption(this.ttg_option_key,t,e,o)},this.getTTOption=function(t){return this._getOption(this.ttg_option_key,t)},this.deleteTTOption=function(t){return this._deleteOption(this.ttg_option_key,t)},this.setForumOption=function(t,e,o){return this._setOption(this.forum_option_key,t,e,o)},this.getForumOption=function(t){return this._getOption(this.forum_option_key,t)},this.deleteForumOption=function(t){return this._deleteOption(this.forum_option_key,t)},this.watchInput=function(t,e,o,n){if("function"==typeof e&&t instanceof jQuery&&!(t.length<=0)){n=void 0===n?1:parseInt(n),o&&e(t,o);var i=0,a=0;t.on("keyup paste",function(){var t=$(this);a=0,i&&cancelRequestAnimFrame(i),function o(){i=requestAnimFrame(o),(a+=1)>60*n&&(a=0,cancelRequestAnimFrame(i),e(t))}()})}},this.setStorage=function(e,o){return!!this.lSAva&&t.storage.setItem(e,o)}
1,this.getStorage=function(e){return!!this.lSAva&&t.storage.getItem(e)},this.deleteStorage=function(e){return!!this.lSAva&&t.storage.removeItem(e)},this.saveSearchHistory=function(t){return this.setStorage("search_history",JSON.stringify(t))},this.getSearchHistory=function(){var t=this.getStorage("search_history");return t?JSON.parse(t):[]},this.permanentDismiss=function(){if(!this.lSAva)return!1;var t=$(".fa-close.permanent");if(0===t.length)return!1;var e=this.getTimestamp(),o=this,n=this.getStorage("dismissed");n=n&&JSON.parse(n),t.each(function(){var t=$(this),i=t.data("key"),a=parseInt(t.data("days")),s=t.parents(".dismissible").length?t.parents(".dismissible"):t.parent();(!n||!n[i]||a&&e-n[i]>86400*a)&&(t.on("click",function(){n||(n={}),s.addClass("hide"),n[i]=a?e:1,o.setStorage("dismissed",JSON.stringify(n))}),s.removeClass("hide"))})},this.mutualExclusiveCheckbox=function(t){if(!t)return!1;var e=t.attr("name"),o=t.attr("type");if(!e||"checkbox"!==o)return!1;t.is(":checked")&&($("input:checkbox[name='"+e+"']").prop("checked",!1),t.prop("checked",!0))},t}}();var TT=new Singleton;function admin_activate_user(t,e){var o=new FormData;if(o.append("submit","Submit"),-1===e.indexOf("action=active")&&o.append("action","activate"),o.append("creation_time",$('input[name="creation_time"]').val()),o.append("form_token",$('input[name="form_token"]').val()),"object"==typeof t)for(var n=0;n<t.length;n++)o.append("mark[]",t[n]);else o.append("mark[]",t);$.ajax({url:e,type:"post",data:o,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){},error:function(t,e,o){console.log(t,e,o)},success:function(t){t.S_USER_NOTICE||!0===t.result||!0===t.status?window.location.reload(!0):hs_popup("Sorry! action failed, please refresh and try again.")}})}function getQueryVariable(t){return parse_query_string(location.search)[t]||""}function parse_query_string(t){for(var e=t.split("&"),o={},n=0;n<e.length;n++){var i=e[n].split("=");void 0===o[i[0]]?o[i[0]]=decodeURIComponent(i[1]):"string"==typeof o[i[0]]?o[i[0]]=[o[i[0]],decodeURIComponent(i[1])]:o[i[0]].push(decodeURIComponent(i[1]))}return o}function removeParam(t,e){if(-1===e.indexOf("?"))return e;var o=e.split("?")[0],n=[],i=-1!==e.indexOf("?")?e.split("?")[1]:"";if(""!==i){for(var a=(n=i.split("&")).length-1;a>=0;a-=1)n[a].split("=")[0]===t&&n.splice(a,1);n.length&&(o=o+"?"+n.join("&"))}return o}function getForumPath(){if("www.tapatalk.com"!==location.hostname)return"/";var t=location.pathname,e=(t=t.replace("/","")).split("/");return e[0]&&e[1]?"/"+e[0]+"/"+e[1]:"/"}window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/30)};var loader=$(".loader");window.ttgAlertBanner=function(t,e,o){var n,i,a,s;o=o||{},e={info:!0,success:!0,warning:!0,error:!0}[e]?e:"info",t&&($('.ttg-alert-banner[data-ttg-auto-banner="1"]').remove(),i=$("<div>",{class:"rules rules-"+e+" ttg-alert-banner",role:"error"===e?"alert":"status","data-ttg-auto-banner":"1"}),a=$("<div>",{class:"inner"}),o.html?a.html(t):a.text($("<div>").html(t).text()||t),$("<i>",{class:"fa fa-close",role:"button",tabindex:0,"aria-label":"Dismiss"}).on("click keydown",function(t){"click"!==t.type&&"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),i.remove())}).appendTo(i),i.prepend(a),(n=(o.anchor?$(o.anchor):window.event&&window.event.target?$(window.event.target):(s=document.activeElement)&&s!==document.body&&s!==document.documentElement?$(s):$()).closest(".ttg-alert-anchor, .action-bar, .post, li.row, .panel, .forabg, .forumbg, .cp-main, .ucp-main, .ucp-notifications-page, form").first()).length?n.before(i):$("#page-body").length?$("#page-body").before(i):$(".inner-wrap").length?$(".inner-wrap").first().prepend(i):$("body").prepend(i))};var hs_popup=function(t){if(t.length)return function(e){var o="",n=!1,i="",a=null;t.find('button[name="changebtn"]').css("display","inline"),t.find('button[name="changebtnhide"]').css("display","none"),"string"==typeof e?o=e:"object"==typeof e&&(o=e.message,n=e.refresh,i=e.type,a=e.callback,e.changebtn&&(t.find('button[name="changebtn"]').css("display","none"),t.find('button[name="changebtnhide"]').css("display","inline"))),t.find(".success").addClass("hide"),i&&"success"==i&&(t.find(".notice").addClass("hide"),t.find(".success").removeClass("hide")),t.find("p.msg").html(o),t.css("display","block"),t.unbind("click"),t.on("click",function(e){if(e.target===this||e.target.classList.contains("close"))if(t.css("display","none"),a){if("function"!=typeof a)return void console.warn("callback must be a function");a()}else n&&window.location.reload(!0)}),parseInt(n)>0&&setTimeout(function(){window.location.reload(!0)},1e3*parseInt(n))};console.warn("no global popup found")}($("#global_popup")),hs_give_award=function(t){if(t.length)return function(e,o,n,i,a,s,r,c,l){var d='    <div class="notice-message responsive bg2" style="">\n        <div class="notice-title">
1\n            <span class="notice-title-content">'+L_GIVE_AWARD+'</span>\n            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"  > × </button>\n        </div>\n        <div>\n            <p class="award_title" style="">'+L_GIVE_AWARD_TO+'</p>\n            <p id="award_description" class="award_description" style="">'+L_GIVE_AWARD_DESC+'</p>\n            <div class="choose_award_frame">\n            <button id="choose_silver_award" type="button" class="choose_award">\n                <div class="silver_award" >  </div>\n                <div class="award_option_title">'+L_SILVER_AWARD_TITLE+'</div>\n                <div id="silver_award_option_subtitle" class="award_option_subtitle" ><i class="gold-coin"></i><div class="gold-amount">50</div></div>\n            </button>\n            <button id="choose_gold_award" type="button" class="choose_award">\n                <div class="gold_award" >  </div>\n                <div class="award_option_title">'+L_GOLD_AWARD_TITLE+'</div>\n                <div id="gold_award_option_subtitle" class="award_option_subtitle" ><i class="gold-coin"></i><div class="gold-amount">200</div></div>\n            </button>\n            <button id="choose_diamond_award" type="button" class="choose_award">\n                <div class="diamond_award" >  </div>\n                <div class="award_option_title">'+L_DIAMOND_AWARD_TITLE+'</div>\n                <div id="diamond_award_option_subtitle" class="award_option_subtitle" ><i class="gold-coin"></i><div class="gold-amount">500</div></div>\n            </button>\n            </div>\n        </div>\n        <div class="award_option_description_frame">\n            <div class="award_option_description_title" id="give_award_desciption_title">'+L_GOLD_AWARD_DESC_TITLE+'</div>\n            <div class="award_option_description" id="give_award_desciption_details">'+L_GOLD_AWARD_DESC_DETAILS+'</div>\n        </div>\n        <div class="bottom" style=\'padding-bottom:0;\'>\n            <div class="award_options">\n                <input type="checkbox" name="give_award_anonymous" id="give-award-anonymous" value="" style="margin-right: 8px;">'+L_GIFT_ANONYMOUSLY+'\n                <br>\n                <input type="checkbox" name="add_private_message_with_gift" id="give-award-with-pm" value="" style="margin-right: 8px;">'+L_ADD_A_PRIVATE_MESSAGE+"\n                <br>\n"+(S_CANUSE_FORUM_WALLET?'<input type="checkbox" name="give_award_from_forum" id="give-award-from-forum" value="" style="margin-right: 8px;">'+L_GIFT_FROM_FORUM+'\n</span>\n<input id="forum-current-gp-balance" name="forum current GPBalance" type="hidden" />\n':'<span id="give-award-from-forum-option" style="display:none;"><br>\n')+'            </div>\n            <input id="give-award-vip-free-silver" name="award vip free silver" type="hidden" value="0"/>\n            <input id="give-award-vip-free-gold" name="award vip free gold" type="hidden" value="0"/>\n            <input id="give-award-with-free" name="award post free" type="hidden" />\n            <input id="give-award-with-like" name="award post like" type="hidden" />\n            <input id="give-award-to-post" name="award receive post" type="hidden" />\n            <input id="give-award-to-poster-ttid" name="award receiver post" type="hidden" />\n            <input id="give-award-type" name="award type" type="hidden" />\n            <button id="award_button" class="button specialbutton award_button tapatalk-theme-background fs-16" style="min-width:144px; height:44px;" >'+L_AWARD+"</button>\n"+(U_IS_VIP_PLUS?"<div style='height:40px;'></div>":'<div class="bottom_vip_promotion">\n<div class="vip_promotion_bg"><div class="vip_promotion_left award">Join VIP+ for 2 silver and 1 gold free awards per month to give away, plus remove all ads and other personalized features.</div><div class="vip_promotion_right"> <button class="button specialbutton award_button tapatalk-theme-background fs-16 vip-plus-btn-event vip_promotion_right_button close" style=\'font-size: 15px !important;\'data-type="award_vip_promotion">JOIN</button></div>\n</div></div>')+"        </div>\n    </div>";t.html(d),t.find("#give-award-to-post").val(e),t.find("#give-award-to-poster-ttid").val(n),t.find("#award_title_receiver_username").html(o),t.find("#award_desc_receiver_username").html(o),setupGoldPointAward();i=parseFloat(i);t.find("#forum-GP-balance").html(i),i>0&&t.find("#forum-current-gp-balance").val(i),t.find("#give-award-anonymous").prop("checked",!1),t.find("#give-award-with-pm").prop("checked",!1),t.find("#give-award-from-forum").prop("checked",!1),t.css("display","block"),t.unbind("click"),t.on("click",function(e){(e.target===this||e.target.classList.contains("close"))&&t.css("display","none")}
1),t.find("#award_button").off("click"),t.find("#award_button").on("click",function(e){t.css("display","none");var o=t.find("#give-award-type").val(),n=t.find("#give-award-to-post").val(),i=t.find("#give-award-anonymous").prop("checked")?1:0,a=t.find("#give-award-from-forum").prop("checked")?1:0,s=t.find("#give-award-with-pm").prop("checked");l(n,o,i,s,a)}),c?t.find("#give-award-with-like").val(1):t.find("#give-award-with-like").val(0),a?t.find("#give-award-with-free").val(1):t.find("#give-award-with-free").val(0),t.find("#give-award-vip-free-silver").val(r),t.find("#give-award-vip-free-gold").val(s),update_award_case(),choose_gold_award()};console.warn("no global container found")}($("#global_popout_container")),hs_give_vip=function(t){if(t.length)return function(e,o,n,i,a){var s='    <div class="notice-message responsive bg2" style="">\n        <div class="notice-title">\n            <span class="notice-title-content">'+L_GIVE_VIP+'</span>\n            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"  > × </button>\n        </div>\n        <div>\n            <p class="award_title" style="">'+L_GIVE_VIP_TO+'</p>\n            <p class="award_description" style="">'+L_GIVE_VIP_DESC+'</p>\n            <div class="choose_award_frame">\n            <button id="choose_7days_vip_award" type="button" class="choose_award">\n                <div class="vip-avatar-gift" >  </div>\n                <div class="award_option_title">7 DAYS</div>\n                <div id="7days_vip_option_subtitle" class="award_option_subtitle" ><i class="gold-coin"></i><div class="gold-amount">99</div></div>\n            </button>\n            <button id="choose_30days_vip_award" type="button" class="choose_award">\n                <div class="vip-avatar-gift" >  </div>\n                <div class="award_option_title">30 DAYS</div>\n                <div id="30days_vip_option_subtitle" class="award_option_subtitle" ><i class="gold-coin"></i><div class="gold-amount">299</div></div>\n            </button>\n            <button id="choose_90days_vip_award" type="button" class="choose_award">\n                <div class="vip-avatar-gift" >  </div>\n                <div class="award_option_title">90 DAYS</div>\n                <div id="90days_vip_option_subtitle" class="award_option_subtitle" ><i class="gold-coin"></i><div class="gold-amount">897</div></div>\n            </button>\n            </div>\n        </div>\n        <div class="award_option_description_frame">\n            <div class="award_option_description_title" >VIP+ privileges:</div>\n            <div class="award_option_description" >                <ul style=\'list-style: disc;margin-left: 17px;\'>                     <li>Ad-free access.</li>\n                     <li>Free festive hats and postcards and <a class=\'udl\' href=\'https://www.tapatalk.com/vip_plus_introduction\' target=\'_blank\'>more</a>. </li>                </ul>\n            </div>\n        </div>\n        <div class="bottom" style=\'padding-bottom:0;\'>\n            <div class="award_options">\n                <input type="checkbox" name="give_award_anonymous" id="give-gift-anonymous" value="" style="margin-right: 8px;">'+L_GIFT_ANONYMOUSLY+'\n                <br>\n                <input type="checkbox" name="add_private_message_with_gift" id="give-gift-with-pm" value="" style="margin-right: 8px;">'+L_ADD_A_PRIVATE_MESSAGE+"\n                <br>\n"+(S_CANUSE_FORUM_WALLET?'<input type="checkbox" name="give_award_from_forum" id="give-gift-from-forum" value="" style="margin-right: 8px;">'+L_GIFT_FROM_FORUM+'\n</span>\n<input id="forum-current-gp-balance" name="forum current GPBalance" type="hidden" />\n':'<span id="give-gift-from-forum-option" style="display:none;"><br>\n')+'            </div>\n            <input id="give-gift-to-post" name="award receive post" type="hidden" />\n            <input id="give-gift-to-poster-ttid" name="award receiver post" type="hidden" />\n            <input id="give-gift-type" name="award type" type="hidden" />\n            <button id="vip-gift-award" class="button specialbutton award_button tapatalk-theme-background fs-16" style="min-width:144px; height:44px;" >'+L_SEND_GIFT+'</button>\n            <p class="award_share_description" style="">'+L_GIVE_VIP_EXPIRE_DESC+"</p>\n            <div style='height:40px;'></div>        </div>\n    </div>";t.html(s),t.find("#give-gift-to-post").val(e),t.find("#give-gift-to-poster-ttid").val(n),t.find("#vip_title_receiver_username").html(o),t.find("#vip_desc_receiver_username").html(o),setupVIPGift();i=parseFloat(i);t.find("#forum-GP-balance").html(i),i>0&&t.find("#forum-current-gp-balance").val(i),t.find("#give-gift-anonymous").prop("checked",!1),t.find("#give-gift-with-pm").prop("checked",!1),t.find("#give-gift-from-forum").prop("checked",!1),t.css("display","block"),t.unbind("click"),t.on("click",function(e){(e.target===this||e.target.classList.contains("close"))&&t.css("display","none")}
1),t.find("#vip-gift-award").off("click"),t.find("#vip-gift-award").on("click",function(e){t.css("display","none");var o=t.find("#give-gift-type").val(),n=t.find("#give-gift-to-post").val(),i=t.find("#give-gift-anonymous").prop("checked")?1:0,s=t.find("#give-gift-from-forum").prop("checked")?1:0,r=t.find("#give-gift-with-pm").prop("checked");a(n,o,i,r,s)}),update_award_case(),choose_7days_vip_plus()};console.warn("no global container found")}($("#global_popout_container")),hs_pin_post=function(t){if(t.length)return function(e,o){t.css("display","block"),t.unbind("click"),t.on("click",function(e){(e.target===this||e.target.classList.contains("close"))&&t.css("display","none")}),$("#pin_topic_button").off("click"),$("#pin_topic_button").on("click",function(n){var i=t.find("#pin-topic-type").val();t.css("display","none"),o(e,i)}),t.find("#switch_pin_30_option").off("click"),t.find("#switch_pin_30_option").on("click",function(e){t.find("#switch_pin_7_option").show(),t.find("#switch_pin_30_option").hide(),t.find("#pin-topic-type").val("2"),$("#pin_topic_desc").html(L_PIN_TOPIC_DESC_30DAYS),$("#pin_topic_button").html(L_PIN_TOPIC_30DAYS)}),t.find("#switch_pin_7_option").off("click"),t.find("#switch_pin_7_option").on("click",function(e){t.find("#switch_pin_30_option").show(),t.find("#switch_pin_7_option").hide(),t.find("#pin-topic-type").val("1"),$("#pin_topic_desc").html(L_PIN_TOPIC_DESC_7DAYS),$("#pin_topic_button").html(L_PIN_TOPIC_7DAYS)})};console.warn("no global pin post found")}($("#global_pin_topic")),hs_award_notification=function(){if(ALWAYS_SHOW_NOTIFICATION>0);else if(!TT.lSAva)return!1;if(AWARD_NOTIFICATION_ID.length>0){var t=new FormData;t.append("notification_id",AWARD_NOTIFICATION_ID),$.ajax({url:BOARD_URL+"app.php/award/read",type:"post",data:t,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){},success:function(t){},error:function(t){console.log(t)},complete:function(){}})}if(S_AWARD_NOTIFICATION_TYPE>0){var e="participated_award",o=AWARD_NOTIFICATION_TITLE_JS,n=AWARD_NOTIFICATION_CONTENT_JS,i="VIEW",a=U_AWARD_NOTIFICATION_LINK_JS,s=!1;if(S_AWARD_NOTIFICATION_TYPE>0){switch(S_AWARD_NOTIFICATION_TYPE){case 1:e="silver_award";break;case 2:e="gold_award";break;case 3:e="diamond_award";break;case 4:e="participated_award",s=!0;break;case 5:default:e="participated_award",i="",a="",s=!0;break;case 6:e="vip-avatar-gift"}return ShowBottomNotifcationBar(10,e,o,n,i,a,s),!0}}return!1},hs_purchase_hat=function(t){if(t.length){var e=PROFILE_HATS_CHOSEN,o=CURRENT_USER_AVATAR;return function(n,i,a){if(U_TTID&&U_TTID>0){var s='<div class="notice-message product bg2" style="">\n        <div class="notice-title">\n        <span class="notice-title-content">'+L_PURCHASE_HAT_TITLE+'</span>\n        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"  > × </button>\n    </div>\n';s+='    <div id="global_purchse_hat_post_body">\n',s+='    <div class="post-hat-header">\n',s+="    <div id='post-hat-page-4-header' class=\"post-hat-page-4-header\"></div>\n",s+="    <div id='post-hat-page-5-header' class=\"post-hat-page-5-header\"></div>\n",s+='    <div class="post-hat-turn-off">TURN OFF</div>\n',s+="    </div>\n",s+='<div id="purchase_hat_items_container">\n',s+='<div id="purchase_hat_items_left_page" class="purchase_items_left_page"><i class="icon fa-chevron-left fa-fw purchase_items_arrows "></i></div>',s+='<div id="purchase_hat_items" class="purchase_hat_items"></div>',s+='<div id="purchase_hat_items_right_page" class="purchase_items_right_page"><i class="icon fa-chevron-right fa-fw purchase_items_arrows "></i></div>',s+="</div>",s+='<div id="purchase_hat_pagination_container" class="purchase_hat_pagination_container"></div>',s+='</div>\n    <div class="bottom" style=\'padding-bottom:0;\'>\n        <div class="product_notify_nomore">\n        <input type="checkbox" id="dont_show_hat_notification_anymore" name="dont_show_message_anymore" value="" style="margin-right: 8px;">\n        <span id="dont_show_hat_notification_text_anymore">Don\'t show this message anymore.</span>\n    </div>\n';var r=GP_BALANCE>0?'<div class="gp_balance">\n                My gold points: <i class="gold-coin" style="margin-left: 5px; margin-right: 5px; margin-top: -2px;"></i>
1\n                <span class="gp_balance_number">'+GP_BALANCE+"</span>\n                </div>":"";s+='    <input id="purchase_hat_chosen_style" name="purchase hat chosen style" type="hidden" />\n        <input id="purchase_hat_chosen_action" name="purchase hat chosen action" type="hidden" />\n        <button id="purchase_hat_button" class="button specialbutton award_button tapatalk-theme-background fs-16" style="min-width:144px; height:44px;" data-has-balance="'+(GP_BALANCE>0?"with_balance":"without_balance")+'" >OK</button>\n'+r+'<p class="purchase-product-description hat" style="">'+L_PURCHASE_HAT_DESC+"&nbsp;"+L_PURCHASE_HAT_EXPIRE_DESC+"</p>\n"+(U_IS_VIP_PLUS?"<div style='height:40px;'></div>":'<div class="bottom_vip_promotion">\n<div class="vip_promotion_bg"><div class="vip_promotion_left"><div style="max-width: 360px;margin: auto;">Join VIP+ for free access to all hats, plus remove ads and other personalized features.</div></div><div class="vip_promotion_right"> <button class="button specialbutton award_button tapatalk-theme-background fs-16 vip-plus-btn-event vip_promotion_right_button close" style=\'font-size: 15px !important;\' data-type="hat_vip_promotion">JOIN</button></div>\n</div></div>')+"</div> ",s+="</div>",t.html(s),$.ajax({url:BOARD_URL+"app.php/hat/get",type:"post",dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(s){if(s.profile_hats){t.css("display","block"),t.unbind("click"),t.on("click",function(e){(e.target===this||e.target.classList.contains("close"))&&t.css("display","none")}),window.onresize=function(e){t.css("display","none")};var r=JSON.parse(s.profile_hats),c="",l=0,d=0,p=0;r.forEach(function(t){l++,e==t.style&&(d=l),0==p&&1==t.owned&&(p=l),c+='<div id="purchase_hat_item_'+t.style+'" class="purchase-avatar-container '+(1==t.chosen?"chosen":"")+" "+(1==t.owned?"has":"")+'" data-hat-style="'+t.style+'" data-hat-owned="'+t.owned+'" >\n        <div class="hat-'+t.style+' avatar-frame">\n'+(o?'<a class="avatar avatar-frame-padding" style="margin: 0 auto">'+o+"</a>":'<a class="avatar avatar-frame-padding" style="margin: 0 auto"><img src="'+T_THEME_PATH+'/images/no_avatar.gif" alt="" /></a>')+'        <div class="avatar-frame-hat hat-style-'+t.style+'"></div>\n        </div>\n                    <div class="purchase-product-price-margin">\n                        <table class="purchase-product-price">\n                            <tr>\n'+(U_IS_VIP_PLUS?'<td><i class="vip-coin purchase_product" ></i></td><td class="purchase-product-price-row"><span class="purchase-product-status">Free</span></td>':t.owned?'<td class="purchase-product-price-row"><span class="purchase-product-status">'+L_PURCHASE_PRODUCT_OWNED+"</span></td>\n":'<td><i class="gold-coin" style="margin: 3px 0px 3px 8px;"></i></td><td class="purchase-product-price-row"><span class="purchase-product-status">'+t.price+"</span></td>\n")+"                            </tr>\n                        </table>\n                    </div>                </div>"});var u=$("#purchase_hat_items").width(),h=152;u<=264?h=66:u<=448&&(h=112);var f=l*h,_=parseInt((l-1)/4)+1;c='<div id="purchase_hat_item_section" class="purchase-hat-container-section " style="width:'+f+'px;">\n'+c,c+="</div>\n",$("#purchase_hat_items").html(c);
1var m=$("#purchase_hat_item_section .purchase-avatar-container").first().outerWidth(!0);m>0&&(f=l*(h=m),$("#purchase_hat_item_section").width(f));var g=0;a>0?g=a-1:0!=d?g=parseInt((d-1)/4):0!=p&&(g=parseInt((p-1)/4));var v=function(){$("#post-hat-page-4-header").hide(),$("#post-hat-page-5-header").hide(),3==g?$("#post-hat-page-4-header").show():4==g&&$("#post-hat-page-5-header").show()};v(),$("#purchase_hat_items").scrollLeft(4*g*h);var b=function(t){var e=parseInt(t/(4*h));e!=g&&(g=e,gaSendEvent("buy-product","tap_hat_page","scroll"),v())},w=function(){$("#purchase_hat_items").on("scroll",function(t){b($(this).scrollLeft())})},y=function(){$("#purchase_hat_items").off("scroll")};w(),$(".purchase-avatar-container").off("click"),$(".purchase-avatar-container").on("click",function(e){var o=$(this).attr("data-hat-style"),n=$(this).attr("data-hat-owned");t.find(".purchase-avatar-container").removeClass("chosen"),$(this).addClass("chosen"),$("#purchase_hat_chosen_style").val(o),1==n?($("#purchase_hat_chosen_action").val("switch_hat"),$("#purchase_hat_button").html("OK")):($("#purchase_hat_chosen_action").val("buy_hat"),$("#purchase_hat_button").html("Get Now"))});$("#purchase_hat_items_right_page").off("click"),$("#purchase_hat_items_right_page").on("click",function(t){if(g<_-1){var e=4*++g*h;y(),$("#purchase_hat_items").scrollLeft(e),b(e),C(g),w()}}),$("#purchase_hat_items_left_page").off("click"),$("#purchase_hat_items_left_page").on("click",function(t){if(g>=1){var e=4*--g*h;y(),$("#purchase_hat_items").scrollLeft(e),b(e),C(g),w()}});for(var T=[],k=1;k<=_;k++)T.push(k);var C=function(t){t+=1,"function"==typeof $("#purchase_hat_pagination_container").pagination&&$("#purchase_hat_pagination_container").pagination({dataSource:T,totalNumber:_,pageNumber:t,pageSize:1,prevText:'<i class="icon fa-chevron-left fa-fw "></i>',nextText:'<i class="icon fa-chevron-right fa-fw "></i>',callback:function(t,e){var o=4*(t[0]-1)*h;y(),$("#purchase_hat_items").scrollLeft(o),b(o),w()}})};if(C(g),i&&"0"==e){var E=t.find(".purchase-avatar-container").not(".has").first();E&&parseInt(E.attr("data-hat-style"))>0&&(t.find(".purchase-avatar-container").removeClass("chosen"),E.addClass("chosen"),$("#purchase_hat_chosen_style").val(E.attr("data-hat-style")),$("#purchase_hat_chosen_action").val("buy_hat"),$("#purchase_hat_button").html("Get Now"))}$(".purchase-avatar-container").off("click"),$(".purchase-avatar-container").on("click",function(e){var o=$(this).attr("data-hat-style"),n=$(this).attr("data-hat-owned");t.find(".purchase-avatar-container").removeClass("chosen"),$(this).addClass("chosen"),$("#purchase_hat_chosen_style").val(o),1==n?($("#purchase_hat_chosen_action").val("switch_hat"),$("#purchase_hat_button").html("OK")):($("#purchase_hat_chosen_action").val("buy_hat"),$("#purchase_hat_button").html("Get Now"))}),$("#purchase_hat_button").off("click"),$("#purchase_hat_button").on("click",function(e){var o=$(this).attr("data-has-balance");t.css("display","none");var i=new FormData,a=$("#purchase_hat_chosen_action").val(),r=$("#purchase_hat_chosen_style").val();if(i.append("hatStyle",r),"switch_hat"==a){$.ajax({url:BOARD_URL+"app.php/hat/choose",type:"post",data:i,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(t){loader.css("display","block"),setTimeout(function(){loader.css("display","none"),location.reload()},1e3)},error:function(t){hs_popup("Sorry! "+s.description)},complete:function(){loader.css("display","none")}});try{gaSendEvent("buy-product","tap_switch_hat_"+n,r)}catch(e){}}else if("buy_hat"==a){var c=function(){$.ajax({url:BOARD_URL+"app.php/buy/hat",type:"post",data:i,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(t){t.status?hs_popup({message:"Congrats, your new hat is on!<br/>Now post something to the group and let everyone else to see it!",refresh:!0,type:"success"}):1==t.code?rechargeGp("purchase_hat",function(t,e,o){t?c():console.log("re-charge GP failed")},U_TTID,"hat"):hs_popup("Sorry! "+t.description)},error:function(t){hs_popup("Sorry! "+s.description)},complete:function(){loader.css("display","none")}})};c();try{gaSendEvent("buy-product","tap_buy_hat_"+n+"_"+r,o)}catch(e){}}}),$(".post-hat-turn-off").off("click"),$(".post-hat-turn-off").on("click",function(e){t.css("display","none");var o=new FormData;o.append("hatStyle","0"),$.ajax({url:BOARD_URL+"app.php/hat/choose",type:"post",data:o,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(t){loader.css("display","block"),setTimeout(function(){loader.css("display","none"),location.reload()},1e3)},error:function(t){hs_popup("Sorry! "+s.description)},complete:function(){loader.css("display","none")}});try{gaSendEvent("buy-product","tap_switch_hat_"+n,"0")}catch(e){}}),i?(t.find("#dont_show_hat_notification_anymore").show(),t.find("#dont_show_hat_notification_text_anymore").show(),t.find("#dont_show_hat_notification_anymore").on("click",function(t){$(this).prop("checked")?TT.storage.setItem("hat_notification_suppressed","1"):TT.storage.removeItem("hat_notification_suppressed")})):(t.find("#dont_show_hat_notification_anymore").hide(),t.find("#dont_show_hat_notification_text_anymore").hide());try{GP_BALANCE>0?gaSendEvent("buy-product","prompt_hat_new_"+n,"with_balance"):gaSendEvent("buy-product","prompt_hat_new_"+n,"without_balance")}catch(t){}}},error:function(t){hs_popup("Sorry! "+response.description)},complete:function(){loader.css("display","none")}})}}}console.warn("no global purchase hat view found")}($("#global_popout_container")),hs_purchase_card=function(t){if(t.length){var e=POST_CARDS_CHOSEN;return function(o,n,i){if(U_TTID&&U_TTID>0){var a="";a+='    <div class="notice-message product purchasecard bg2" style="">\n',a+='        <div class="notice-title">
1\n            <span class="notice-title-content">'+L_PURCHASE_CARD_TITLE+'</span>\n            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"  > × </button>\n        </div>\n',a+='        <div id="global_purchse_card_post_body" class="postbody">\n            <div id="preview_post_card_container" class="preview_post_body normal-bubble post_content post-bubble-outter-padding" >\n                <div class="avatar-container" >\n'+(CURRENT_USER_AVATAR.length>0?CURRENT_USER_AVATAR:'<img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" />')+'                </div>\n                <i class="arrow-after"></i>\n                <div id="preview_post_card_bg_block" class="post-bubble-container ">\n                <div id="preview_post_card_bg" class="post_card_bg post-card-bg-'+e+'" ></div></div>\n                <div class="pb1">\n                    <ul class="post-buttons" style="margin-right: -10px; margin-top: -2px;">\n                        <i class="icon fa-fw fa-angle-down" ></i>\n                    </ul>\n                    <p class="author">\n                        <i class="icon fa-clock-o"></i>\n                        <span class="posttime"><span class="timespan" >12:00 AM - Jun 1</span></span>\n                        <a class="unread" title="Post"><span>#1</span></a>\n                    </p>\n                </div>\n                <div class="pb2  ">\n                    <div class="content" style="font-size: 16px;">It\'s really great to see these stuff!</div>\n                </div>\n                <div class="pb3">\n                    <div class="postcontent_footer cl-af">\n                        <div class="postcontent_button postcontent_button_reply"><a><i class="fa fa-reply"></i><span>Reply</span></a></div>\n                        <div class="postcontent_button postcontent_button_quote"><a><i class="fa fa-quote-left"></i><span>Quote</span></a></div>\n                        <div class="postcontent_button postcontent_button_share"><a><i class="fa fa-share-alt"></i><span>Share</span></a></div>\n                        <div class="postcontent_button postcontent_button_like"><a><i class="fa fa-thumbs-o-up"></i><span>Like</span></a></div>\n                        <div class="postcontent_button postcontent_button_award"><a><i class="fa fa-gift"></i><span>Give Award</span></a></div>\n                    </div>\n                </div>\n                <div class="post-card-turn-off">TURN OFF</div>\n            </div>        </div>\n',a+='<div id="purchase_card_sections" class="purchase_card_sections">\n',a+="</div>\n",a+='<div id="purchase_card_items_container">\n',a+='<div id="purchase_card_items_left_page" class="purchase_items_left_page"><i class="icon fa-chevron-left fa-fw purchase_items_arrows "></i></div>',a+='<div id="purchase_card_items" class="purchase_card_items"></div>',a+='<div id="purchase_card_items_right_page" class="purchase_items_right_page"><i class="icon fa-chevron-right fa-fw purchase_items_arrows "></i></div>',a+="</div>",a+='<div id="purchase_card_pagination_container" class="purchase_card_pagination_container"></div>';var s=GP_BALANCE>0?'<div class="gp_balance">\n                My gold points: <i class="gold-coin" style="margin-left: 5px; margin-right: 5px; margin-top: -2px;"></i>\n                <span class="gp_balance_number">'+GP_BALANCE+"</span>\n                </div>":"";a+='        <div id="global_purchse_card_bottom" class="bottom" style=\'padding-bottom:0;\'>\n<div class="product_notify_nomore">\n                <input type="checkbox" id="dont_show_card_notification_anymore" class="" name="dont_show_message_anymore" value="" style="margin-right: 8px;">\n                <span id="dont_show_card_notification_text_anymore">Don\'t show this message anymore.</span>\n            </div>\n            <input id="purchase_card_chosen_style" name="purchase card chosen style" type="hidden" />\n                <input id="purchase_card_chosen_action" name="purchase card chosen action" type="hidden" />\n                <button id="purchase_card_button" class="button specialbutton award_button tapatalk-theme-background fs-16" style="min-width:144px; height:44px;" data-has-balance="'+(GP_BALANCE>0?"with_balance":"without_balance")+'" >OK</button>\n            '+s+' <p class="purchase-product-description" style="">'+L_PURCHASE_CARD_DESC+"&nbsp;"+L_PURCHASE_CARD_EXPIRE_DESC+"</p>\n"+(U_IS_VIP_PLUS?"<div style='height:40px;'></div>":'<div class="bottom_vip_promotion">\n<div class="vip_promotion_bg award"><div class="vip_promotion_left"><div style="max-width: 360px;margin: auto;">Join VIP+ for free access to all card decorations, plus remove ads and other personalized features.</div></div><div class="vip_promotion_right"> <button class="button specialbutton award_button tapatalk-theme-background fs-16 vip-plus-btn-event vip_promotion_right_button close" style=\'font-size: 15px !important;\' data-type="card_vip_promotion">JOIN</button></div>\n</div></div>')+"        </div>\n",a+="</div>\n",t.html(a),$.ajax({url:BOARD_URL+"app.php/card/get",type:"post",dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")}
1,success:function(a){if(a.post_cards){t.css("display","block"),t.unbind("click"),t.on("click",function(e){(e.target===this||e.target.classList.contains("close"))&&t.css("display","none")}),window.onresize=function(e){t.css("display","none")};var s=POST_CARDS_CATEGORY_CHOSEN,r=JSON.parse(a.post_cards),c="",l=0;r.forEach(function(t){l++,c+='<div id="preview_post_card_section_'+l+'" class="purchase_card_section_title '+(t.category==POST_CARDS_CATEGORY_CHOSEN?"selected":"")+'" data-section-number="'+l+'">'+t.category_name+"</div>\n"}),$("#purchase_card_sections").html(c);var d="",p=0,u=0,h=0;r.forEach(function(t){var o="";t.group.forEach(function(t){p++,e==t.style&&(u=p),0==h&&1==t.owned&&(h=p),o+='<div id="purchase_card_item_'+t.style+'" class="purchase-card-container '+(1==t.chosen?"chosen":"")+" "+(1==t.owned?"has":"")+'" data-card-style="'+t.style+'" data-card-owned="'+t.owned+'" >\n                    <div class="post_card_bg post-card-bg-'+t.style+'"></div>\n                    <div class="purchase-product-price-margin">\n                        <table class="purchase-product-price">\n                            <tr>\n'+(U_IS_VIP_PLUS?'<td><i class="vip-coin purchase_product"></i></td><td class="purchase-product-price-row"><span class="purchase-product-status">Free</span></td>':t.owned?'<td class="purchase-product-price-row"><span class="purchase-product-status">'+L_PURCHASE_PRODUCT_OWNED+"</span></td>\n":'<td><i class="gold-coin" style="margin: 3px 0px 3px 8px;"></i></td><td class="purchase-product-price-row"><span class="purchase-product-status">'+t.price+"</span></td>\n")+"                            </tr>\n                        </table>\n                    </div>                </div>"}),d+=o});var f=$("#purchase_card_items").width(),_=162;f<=264?_=66:f<=488&&(_=122);var m=p*_,g=parseInt((p-1)/4)+1;d='<div id="purchase_card_item_section" class="purchase-card-container-section " style="width:'+m+'px;">\n'+d,d+="</div>\n",$("#purchase_card_items").html(d);var v=$("#purchase_card_item_section .purchase-card-container").first().outerWidth(!0);v>0&&(m=p*(_=v),$("#purchase_card_item_section").width(m));var b=0;i>0?b=i-1:0!=u?b=parseInt((u-1)/4):0!=h&&(b=parseInt((h-1)/4)),$("#purchase_card_items").scrollLeft(4*b*_);var w=function(e){var o=parseInt(e/(16*_))+1;o!=s&&(s=o,t.find(".purchase_card_section_title").removeClass("selected"),$("#preview_post_card_section_"+s).addClass("selected"));var n=parseInt(e/(4*_));n!=b&&(b=n,gaSendEvent("buy-product","tap_card_page","scroll"))},y=function(){$("#purchase_card_items").on("scroll",function(t){w($(this).scrollLeft())})},T=function(){$("#purchase_card_items").off("scroll")};y(),$(".purchase_card_section_title").off("click"),$(".purchase_card_section_title").on("click",function(e){var o=$(this).attr("data-section-number");t.find(".purchase_card_section_title").removeClass("selected"),$(this).addClass("selected"),T(),$("#purchase_card_items").scrollLeft(16*(o-1)*_),b=parseInt(16*(o-1)/4),E(b),gaSendEvent("buy-product","tap_card_page","section"),y()}),$(".purchase-card-container").off("click"),$(".purchase-card-container").on("click",function(e){var o=$(this).attr("data-card-style"),n=$(this).attr("data-card-owned");t.find(".purchase-card-container").removeClass("chosen"),$(this).addClass("chosen"),$("#purchase_card_chosen_style").val(o),$("#preview_post_card_bg").removeClass(),$("#preview_post_card_bg").addClass("post_card_bg"),$("#preview_post_card_bg").addClass("post-card-bg-"+o),1==n?($("#purchase_card_chosen_action").val("switch_card"),$("#purchase_card_button").html("OK")):($("#purchase_card_chosen_action").val("buy_card"),$("#purchase_card_button").html("Get Now"))});$("#purchase_card_items_right_page").off("click"),$("#purchase_card_items_right_page").on("click",function(t){if(b<g-1){var e=4*++b*_;T(),$("#purchase_card_items").scrollLeft(e),w(e),E(b),y()}}),$("#purchase_card_items_left_page").off("click"),$("#purchase_card_items_left_page").on("click",function(t){if(b>=1){var e=4*--b*_;T(),$("#purchase_card_items").scrollLeft(e),w(e),E(b),y()}});for(var k=[],C=1;C<=g;C++)k.push(C);var E=function(t){t+=1,"function"==typeof $("#purchase_card_pagination_container").pagination&&$("#purchase_card_pagination_container").pagination({dataSource:k,totalNumber:g,pageNumber:t,pageSize:1,prevText:'<i class="icon fa-chevron-left fa-fw "></i>',nextText:'<i class="icon fa-chevron-right fa-fw "></i>',callback:function(t,e){var o=4*(t[0]-1)*_;T(),$("#purchase_card_items").scrollLeft(o),w(o),y()}})};if(E(b),n&&"0"==e){var I="1-1";$("#purchase_card_item_"+I).addClass("chosen");var x=$("#purchase_card_item_"+I).attr("data-card-owned");$("#purchase_card_chosen_style").val(I),1==x?($("#purchase_card_chosen_action").val("switch_card"),$("#purchase_card_button").html("OK")):($("#purchase_card_chosen_action").val("buy_card"),$("#purchase_card_button").html("Get Now"))}
1$("#purchase_card_button").off("click"),$("#purchase_card_button").on("click",function(e){var n=$(this).attr("data-has-balance");t.css("display","none");var i=new FormData,s=$("#purchase_card_chosen_action").val(),r=$("#purchase_card_chosen_style").val();if(i.append("cardStyle",r),"switch_card"==s){$.ajax({url:BOARD_URL+"app.php/card/choose",type:"post",data:i,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(t){loader.css("display","block"),setTimeout(function(){loader.css("display","none"),location.reload()},1e3)},error:function(t){hs_popup("Sorry! "+a.description)},complete:function(){loader.css("display","none")}});try{gaSendEvent("buy-product","tap_switch_card_"+o,r)}catch(e){}}else if("buy_card"==s){var c=function(){$.ajax({url:BOARD_URL+"app.php/buy/card",type:"post",data:i,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(t){t.status?hs_popup({message:"Congrats! Your new card is now displayed in your posts! Now post something and let others see your new style!",refresh:!0,type:"success"}):1==t.code?rechargeGp("purchase_card",function(t,e,o){t?c():console.log("re-charge GP failed")},U_TTID,"card"):hs_popup("Sorry! "+t.description)},error:function(t){hs_popup("Sorry! "+a.description)},complete:function(){loader.css("display","none")}})};c();try{gaSendEvent("buy-product","tap_buy_card_"+o+"_"+r,n)}catch(e){}}}),$(".post-card-turn-off").off("click"),$(".post-card-turn-off").on("click",function(e){t.css("display","none");var n=new FormData;n.append("cardStyle","0"),$.ajax({url:BOARD_URL+"app.php/card/choose",type:"post",data:n,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(t){loader.css("display","block"),setTimeout(function(){loader.css("display","none"),location.reload()},1e3)},error:function(t){hs_popup("Sorry! "+a.description)},complete:function(){loader.css("display","none")}});try{gaSendEvent("buy-product","tap_switch_card_"+o,I)}catch(e){}}),n?(t.find("#dont_show_card_notification_anymore").show(),t.find("#dont_show_card_notification_text_anymore").show(),t.find("#dont_show_card_notification_anymore").on("click",function(t){$(this).prop("checked")?TT.storage.setItem("hat_notification_suppressed","1"):TT.storage.removeItem("hat_notification_suppressed")})):(t.find("#dont_show_card_notification_anymore").hide(),t.find("#dont_show_card_notification_text_anymore").hide());try{GP_BALANCE>0?gaSendEvent("buy-product","prompt_card_"+o,"with_balance"):gaSendEvent("buy-product","prompt_card_"+o,"without_balance")}catch(t){}}},error:function(t){hs_popup("Sorry! "+response.description)},complete:function(){loader.css("display","none")}})}}}console.warn("no global container found")}($("#global_popout_container")),hs_confirm=function(t){if(t.length)return function(e){if("object"==typeof e){var o=e.message,n=e.title,i=e.callback,a=e.yes,s=e.no;"function"==typeof i?(void 0!==n?t.find(".notice-title-content").html(n):t.find(".notice-title-content").html("Information"),void 0!==a&&$("#global_confirm").find(".yes").html(a),void 0!==s&&$("#global_confirm").find(".yes").next().html(s),t.find("p.msg").html(o),t.css("display","block"),t.unbind("click"),t.on("click",function(e){var o=e.target;(o===this||o.classList.contains("close"))&&(t.css("display","none"),o.classList.contains("yes")&&i())})):console.warn("callback must be a function")}else console.warn("parameters for hs_confirm must be an object")};console.warn("no global popup found")}($("#global_confirm"));function editForum(t){if(t)var e=$(t).data("tab");$.ajax({async:!1,type:"GET",url:BOARD_URL+"app.php/dynamic_token/create",beforeSend:function(){loader.css("display","block")},success:function(t){t=jQuery.parseJSON(t);var o=("dev"===DEV_ENV?"https://siteowners-stage.tapatalk.com":"https://siteowners.tapatalk.com")+"/groups/editForum?token="+t.dynamic_token+"&url="+encodeURIComponent(BOARD_URL);(e&&(o+="&tab="+e),window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))?window.open("","_blank","resizable=yes,scrollbars=yes,status=yes").location=o:window.open("","_blank").location=o},error:function(t){console.log(t)},complete:function(){loader.css("display","none")}})}function editForumNew(t){if(t)var e=$(t).data("tab"),o=$(t).data("label");$.ajax({async:!1,type:"GET",url:BOARD_URL+"app.php/dynamic_token/create",beforeSend:function(){loader.css("display","block")},success:function(t){t=jQuery.parseJSON(t);var n=("undefined"!=typeof TAPATALK_COM_DOMAIN&&TAPATALK_COM_DOMAIN?TAPATALK_COM_DOMAIN.replace(/\/+$/,""):"dev"===DEV_ENV?"https://stage.tapatalk.com":"https://www.tapatalk.com")+"/editGroup?token="+t.dynamic_token+"&url="+encodeURIComponent(BOARD_URL);(e&&(n+="&tab="+e),o&&(n+="&label="+o),window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))?window.open("","_blank","resizable=yes,scrollbars=yes,status=yes").location=n:window.open("","_blank").location=n},error:function(t){console.log(t)},complete:function(){loader.css("display","none")}})}
1function mark_read(t){var e=$(t).parent().find("input").val();$.ajax({url:e,type:"GET",dataType:"json",data:"",success:function(e){if(void 0!==e.success){var o=Number($("#notification_list_button strong").html())-1;phpbb.markNotifications($(t).parent("li.bg2"),o)}},error:function(t){}})}function feature_image_no_price(t){var e=t.parents(".attach-row"),o=e&&e.find(".attach-price input");t.is(":checked")?(o&&o.val(0).prop("disabled",!0),e.siblings(".attach-row").find(".attach-price input").prop("disabled",!1)):o&&o.prop("disabled",!1)}var cookiePath=TT.cookie_path;function pop_buy_teir(t){null!=t&&!0===t?gaSendEvent("admin","forum_tier:clickpopup"):gaSendEvent("admin","forum_tier:popup"),$.ajax({async:!1,type:"GET",url:BOARD_URL+"app.php/dynamic_token/create",beforeSend:function(){},success:function(t){set_localstoreage("permium_popup"),t=jQuery.parseJSON(t);var e='<iframe id="buy_teir_frame" allowpaymentrequest="true" allowtransparency="true" src="'+(("dev"===DEV_ENV?"//pop-stage.tapatalk.com":"https://pop.tapatalk.com")+"/buyPermiumFrame?token="+t.dynamic_token)+'" name="" frameborder="0" class=""></iframe>';$("body").append(e),$("#buy_teir_frame").css("z-index","999"),$("#buy_teir_frame").addClass("dot-com-frame-ready")},error:function(t){console.log(t)},complete:function(){}})}function set_localstoreage(t,e){null==e&&(e=2592e6);var o=new Date;o.setTime(o.getTime()+e),TT.lSAva?localStorage.setItem(t,o.getTime()):TT.setTTOption(t,o.getTime(),e)}function setTimeZoneToCookie(){if(!(document.cookie.indexOf("browser_timezone=")>=0)){var t=(new Date).getTimezoneOffset(),e="-";t<0&&(e="+",t=-t);var o=t%60,n=(t-o)/60,i=e+(n=n<10?"0"+n.toString():n.toString())+":"+(o=o<10?"0"+o.toString():o.toString());i+="||"+(new Date((new Date).getFullYear(),1,1).getTimezoneOffset()!=(new Date).getTimezoneOffset()?1:0);try{"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat().resolvedOptions().timeZone&&(i+="||"+Intl.DateTimeFormat().resolvedOptions().timeZone)}catch(t){}var a=i,s=new Date;s.setTime(s.getTime()+36e5);var r="expires="+s.toUTCString();document.cookie="browser_timezone="+a+";"+r+"; path=/;"}}function showPMCompose(t){U_TTID&&U_TTID>0||"1"==S_USER_LOGGED_IN?window.location.href=t:hs_guest_join(!0,"ttg_features")}function showContactCompose(t){PHONEMODE&&"phone"===PHONEMODE?(tapatalkPMWindow=window.open(t,"TapatalkPMPopup"),location.href=t):(t=t.replace("mode=contactadmin","mode=contactadmin&iframe=1"),(popup=$('<div class="modal iframe-box"><iframe id="ContactCompose" src="'+t+'"/></div>')).modal({escapeClose:!1,clickClose:!1,closeClass:"fa fa-close",closeText:"",showSpinner:!0}),popup.on($.modal.AFTER_CLOSE,function(t,e){popup.remove()}))}function showInviteCompose(t){PHONEMODE&&"phone"===PHONEMODE?(tapatalkPMWindow=window.open(t,"TapatalkPMPopup"),location.href=t):(t=t.replace("mode=admin_invite","mode=admin_invite&iframe=1"),(popup=$('<div class="modal iframe-box"><iframe id="InviteCompose" src="'+t+'"/></div>')).modal({escapeClose:!1,clickClose:!1,closeClass:"fa fa-close",closeText:"",showSpinner:!0}),popup.on($.modal.AFTER_CLOSE,function(t,e){popup.remove()}))}function hidePMHistory(){$("#PM_History").hide(),$("#PM_History_Show").show(),$("#PM_History_Hide").hide()}function showPMHistory(){$("#PM_History").show(),$("#PM_History_Show").hide(),$("#PM_History_Hide").show()}function mark_all(t,e,o){var n=e.checked&&!0!==e.disabled;null!=o?($(e).parents("."+o).find("input:checkbox[name='"+t+"[]']").prop("checked",n),$(e).parents("."+o).find("input:checkbox[name='"+t+"[]']").attr("checked",n)):$("input:checkbox[name='"+t+"[]']").each(function(t){$(this).prop("checked",n),$(this).attr("checked",n)}),n?null!=o?$(e).parents("."+o).find("li.change_color").addClass("changecolor"):$(".change_color").addClass("changecolor"):null!=o?$(e).parents("."+o).find("li.change_color").removeClass("changecolor"):$(".change_color").removeClass("changecolor"),ttg_update_bulk_actions()}function change_color(t,e,o){null!=o&&0!=o||(o=".change_color"),null==e||0==e?$(t).prop("checked")?($(t).closest(""+o).addClass("changecolor"),switch_button_status(!0)):($(t).closest(""+o).removeClass("changecolor"),switch_button_status(!1)):$(t).prop("checked")?(t.parents(""+o).addClass("changecolor"),switch_button_status(!0)):(t.parents(""+o).removeClass("changecolor"),switch_button_status(!1))}function reset_global_confirm(){$("#global_confirm").html('<div class="notice-message bg2 ">\n        <div class="notice-title"><span class="notice-title-content" >'+L_INFORMATION+'</span>\n            <button type="button" class="close"  data-dismiss="modal" aria-hidden="true"  > × </button></div>\n\n        <div class="notice-m-t24" >
1\n            <div class="icon_pop notice" style="\n            background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAflBMVEUAAACZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm6u4VLAAAAKXRSTlMABvar3cxkSDfW+r7FMRUP4gxyfSgTde2koZNcHtLwik+GsT2PtFNNQmX9OCUAAAMiSURBVFjDxVnpdrIwEA2RooJsIrK6VG017/+C3zlkYIosCZmer/dPF+Ilk1kyc2UKpC+n9LYZFzyzT17pvFJmDmt9+RADfFzWlhHdpszEBLJys3hz1VbMYltZS+gcWyhhO9qU663QwnatRZfm/U8Vx6tfx4zFtX89Fv135Ro+v0e4nq+q4P15UK04rojuKr6ji/HhxONrYgejyT3Oe2PVrfRecwtfXrdwNeOb2MPz1vecF06tCVpLeGJpxFbC27MJxleEpzbCfKYFv43WUzj6xl17KCHTRNge+W7Mojb8PtkCfLYBOXy0h0f7JXz4sUH0bFzkW4QjxOPmLWBstHchHuDJfhaU4A9mAPBM2TMY3hKaEIZg3U+jZcS4/mTIF1lWBJPx6MrYwf98iwYJm4LXpNjk40R+/pu1OEmDp/PNbQyYzkJp9IkBrqLBTD2QC2YqhVxwRYPgCIwIwQl4KAfYIIUQtnho/rjIGsQohExWvkvzu7xEHBqhI68YDGoe0whT3gV3AklHIMQETDoHVVTCqg0VS+41oBLW8uQsOMItoxIyWx4iuKegExYQLA8o1CRCvAwe7AZZSCZ8NmtuEOI+ndCXCQd5UtMJa8iVc/MzpROmzZozk+XbohNaQlZh8buEgrm/a7LLzmqn4CWldsqZRTphE+Sc54FO2EQQh1dGxhPi8AapR8YeMuUBxYGMAnLZgfJFhg3VBvqkgMpXQ8fUVuyKSlhBxW7vlBWVcNW1HwleowTANZrAvay66A9fnN8Oyosems5I2Yoczk1WHZStSAS9japZ+oIOXNksXaD7UrVzHLQLVTsnwAYPtmhIiBv0+h2sbRmZjC0xlhgYQxNTpyQwlL5PAa5vFja+i1MAnil98Nn1JiniaAZBjShVw7J6ZC5Hp1GxNyvUOI3ivEwbwN3N8AlFIhDHMc3BXMQQ+bgqYiqziF08oduYCUGo2wyVJQOpCpWlIUJPdPDus6Lgz5WhQp3TlftQnVPrh2pBEvVDbYUTJdOnX6eWldb+EyRTPYUTWzehjTz4zyox6tiRmi5ylknjKqXdsf7muwD6txX/AGOD+gMqFBiAAAAAAElFTkSuQmCC) ">  </div>\n            <div class="msg-title">\n            </div>\n            <p class="msg" ></p>\n\n\n\n            <div class="add_content">\n            </div>\n            <div class="hide"></div>\n        </div>\n\n        <div class="bottom" >\n            <div class="yes close button  vip_ads_specialbotton tapatalk-theme-background">'+L_YES+'</div>\n            <div class="close button vip_ads_specialbotton " >'+L_NO+'</div>\n        </div>\n\n        <div class="center-line"></div>\n\n        <div class="notify_box"></div>\n    </div>')}function reset_global_popup(){$("#global_popup").html('<div class="notice-message bg2">\n    <div class="notice-title"><span class="notice-title-content">'+L_INFORMATION+'</span>\n        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"  > × </button></div>\n    <div class="notice-m-t24">\n        <div class="icon_pop notice"></div>\n        <div class="icon_pop success hide"></div>\n        <p class="msg"></p>\n    </div>\n    <div class="add_content"></div>\n    <div class="bottom">\n        <button name="changebtn" class="yes close button  vip_ads_specialbotton tapatalk-theme-background fs-16" >OK</button>\n        <button name="changebtnhide" class="yes close button  vip_ads_specialbotton tapatalk-theme-background vip-plus-btn-event fs-16" style="display:none" data-type="vip-plus-dislike-bump" >Join</button>\n    </div>\n    <div class="notify_box"></div>\n</div>">')}function hs_pop_wrong(t){null==t&&(t="something wrong with server"),hs_popup({message:t,refresh:!1,type:"error"})}function show_edit_history(t){$.post("app.php/history/getposthistory?postid="+t,function(e){$(".edit_history_"+t).html(e),$(".edit_history_"+t).show(),$("#show_history_"+t).parent().hide()})}function preview_post_history(t,e,o,n,i){$.post("app.php/history/getposthistorypreview?forumid="+t+"&postid="+e+"&historytime="+o+"&original="+n+"&editorname="+i,function(t){$("#post_content"+e+" > .pb2").html(t),$("[id^=historyline_"+e+"]").css("font-weight","normal"),$("#historyline_"+e+"_"+o).css("font-weight","bold")})}$(document).ready(function(){var t,e;TT.permanentDismiss(),$.expr[":"].external=function(t){return!t.href.match(/^mailto\:/)&&t.hostname!=location.hostname&&!t.href.match(/^javascript\:/)&&!t.href.match(/^$/)},$(".postbody").find("a:external").attr("target","_blank"),t=$(".scroll-breadcrumbs"),(e=t.length?t.width():0)&&t.scrollLeft(e);var o,n=new Slideout({panel:document.getElementById("wrap"),menu:document.getElementById("menu"),padding:221,tolerance:70,side:"right",touch:!1});function i(t){t.preventDefault(),n.close()}document.querySelector(".js-slideout-toggle")&&document.querySelector(".js-slideout-toggle").addEventListener("click",function(){n.open()}),$("#menu a").on("click",function(t){t.preventDefault(),n.close(),window.location.href=$(this).attr("href")}),n.on("beforeopen",function(){this.menu.style.display="block",this.panel.classList.add("panel-open")}).on("open",function(){this.panel.addEventListener("click",i)}).on("beforeclose",function(){this.menu.style.display="none",this.panel.classList.remove("panel-open"),this.panel.removeEventListener("click",i)}),$("i.avatar-bg").each(function(){var t=$(this),e=t.css("background-image");!function(t,e){if(e&&"object"==typeof t)if("none"!==e){var o=new Image;o.onerror=function(){t.css("background-image",'url("'+AVATAR_DEFAULT+'")').attr("data-origin_url",e)},o.src=e}else t.css("background-image",'url("'+AVATAR_DEFAULT+'")')}(t,e.replace("url(","").replace(")","").replace(/\"/gi,""))}),function(){$("#notification_list_button").on("click",function(){e()});var t=$("#noti_box"),e=function(){$.ajax({url:U_NOTIFICATION_LIST,type:"GET",dataType:"json",beforeSend:function(){i.detach(),0==t.find("li").length&&t.append(n)},error:function(t){console.log(t)},complete:function(){t.find(".notification-loading").remove()},success:function(e){if(t.empty(),e.length){for(var n=0;n<e.length;n++)l(t,e[n]);t.after(i)}else t.append(o)}})},o=$(".no_notifications"),n=$(".notification-loading"),i=$(".noti-ft"),a=$(".noti-lang").data("mark_read"),s=function(t){return $("<div>").text(t||"").html().replace(/"/g,"&quot;")},r=function(t){return t=String(t||"").replace(/&amp;/g,"&"),$("<div>").html(t).text().replace(/&amp;/g,"&")}
1,c=function(t){var e=$("<div>").html(t.FORMATTED_TITLE||"");return e.find(".username, .username-coloured").first().text()||e.text()||t.REFERENCE||t.FORUM||""},l=function(t,e){var o=function(t){if(!t.URL)return"";var e=r(t.UNREAD?t.U_MARK_READ:t.URL),o=' href="'+s(e)+'"';return t.UNREAD&&(o+=' data-real-url="'+s(r(t.URL))+'"'),o}(e),n='<li class="'+(e.UNREAD?" bg2":"")+(e.STYLING?" "+e.STYLING:"")+(e.URL?"":" no-url")+'"> \t                           <div class="notification-sm-left">';e.URL&&(n=n+'<a class="notification-block"'+o+">"),e.AVATAR?n+=e.AVATAR:n=n+'<i class="avatar-bg" data-ttg-avatar-seed="'+s(c(e))+'" style="background-image:url('+AVATAR_DEFAULT+')"></i>',e.URL&&(n+="</a>"),n+='</div><div class="notification-sm-right">',e.URL&&(n+='<div class="notification-block">'),n+='<div class="notification_text">',e.URL&&(n=n+'<a class="notification-main-link"'+o+">"),n=n+'<p class="notification-title">'+e.FORMATTED_TITLE+"</p>",e.REFERENCE&&(n=n+'<p class="notification-reference">'+e.REFERENCE+"</p>"),e.REASON&&(n=n+'<p class="notification-reason">'+e.REASON+"</p>"),e.URL&&(n+="</a>"),e.FORUM&&(n=n+'<p class="notification-forum">'+e.FORUM+"</p>"),n=n+'<p class="notification-time">'+e.TIME+"</p></div>",e.URL&&(n+="</div>"),n+="</div>",e.UNREAD&&(n=n+'<a href="javascript:void(0)" class="mark_read icon-mark" onclick="mark_read(this)" title="'+a+'">                      <input type="hidden" value="'+e.U_MARK_READ+'" >                      <i class="icon fa-check-circle icon-xl fa-fw" aria-hidden="true"></i>                      <span class="sr-only">'+a+"</span></a>"),n+="</li>";var i=$(n),l=c(e);i.find(".notification-sm-left img, .notification-sm-left i.avatar-bg, .notification-sm-left span.avatar-bg").attr("data-ttg-avatar-seed",l),i.find(".notification-sm-left .ttg-default-avatar").each(function(){var t;l&&"?"===$.trim($(this).text())&&$(this).text((t=l,(t=$.trim(t||""))?t.charAt(0).toUpperCase():"?")).attr("aria-label",$.trim(l)+" avatar")}),t.append(i),window.ttgUpgradeDefaultAvatars&&window.ttgUpgradeDefaultAvatars(i[0])}}(),$(function(){if("index"===SCRIPT_NAME){var t=$(".home-welcome-message");if(t.length){var e="welcome_message";if(TT.storage){var o=TT.storage.getItem(e);o&&ENCODE_WELCOME_MESSAGE&&o!==ENCODE_WELCOME_MESSAGE&&Cookies.remove(e,{path:cookiePath}),TT.storage.setItem(e,ENCODE_WELCOME_MESSAGE)}Cookies.get(e)||(t.removeClass("hide"),t.find("i.fa-close").on("click",function(){t.addClass("hide"),Cookies.set(e,1,{expires:365,path:cookiePath})}))}}}),$("form#topic-search").on("submit",function(t){""==$(this).find('input[name="keywords"]').val()&&t.preventDefault()}),function(){var t=$("#navbar_search"),e=$("#navbar_search_2"),o=$("#navbar_search_1"),n=$("#shSg"),i=e.find("input"),a=$("#navbar_search_submit"),s=$("#navbar_search_reset");function r(){var t=$(".nav-bar-left"),a=$("#nav-main"),s=a.outerWidth(!0),r=t.outerWidth(!0),c=0;a.find(".nml").each(function(){c+=$(this).outerWidth(!0)});var l=parseInt(.9*(s-r-c));if(l<150)return!1;var d=i.attr("placeholder").length,p=parseInt(5.5*d+5);p<.5*l&&(p=.5*l);var u=p>l?l:p;return i.width(u),n.width(u+14),o.addClass("hide"),e.removeClass("hide"),!0}o.on("mouseenter",function(){r()}),o.on("click",function(t){r()&&(t.preventDefault(),i.focus())}),t.on("mouseleave",function(){o.removeClass("hide"),e.addClass("hide"),a.removeClass("hide"),s.addClass("hide")}),n.on("click",function(t){var o=$(t.target).closest("li",n);o.length&&(i.val(o.text()),a.addClass("hide"),s.removeClass("hide"),o.hasClass("history-li")&&e.parents("form").submit())}),a.on("click",function(){e.parents("form").submit()}),s.on("click",function(){i.val(""),a.removeClass("hide"),s.addClass("hide")});var c=0,l=0;i.on("focus click",function(){if(!$(this).val()){var t=TT.getSearchHistory();if(0!=t.length){n.empty();for(var e=0;e<t.length;e++)t[e].key&&n.prepend("<li class='history-li' title='"+t[e].key+"'><i class='icon search-icon history'></i>"+t[e].key+"</li>")}}}),i.on("change keyup paste",function(){var t=$(this).val();if(!t)return a.removeClass("hide"),void s.addClass("hide");a.addClass("hide"),s.removeClass("hide"),c=0,l&&cancelRequestAnimFrame
1(l),function e(){l=requestAnimFrame(e),(c+=1)>60&&(c=0,cancelRequestAnimFrame(l),$.ajax({dataType:"jsonp",url:"https://suggestqueries.google.com/complete/search",data:{client:"youtube",q:t},beforeSend:function(){n.empty()}}).done(function(t){if(t[1]&&t[1].length)for(var e=0;e<t[1].length;e++)n.prepend("<li title='"+t[1][e][0]+"'><i class='icon icon-search-dark'></i>"+t[1][e][0]+"</li>")}).fail(function(t){console.log(t)}).always(function(){}))}()})}(),function(){function t(t){var e=$(t);if(e.data("dropdown-options")&&"function"==typeof phpbb.toggleDropdown)phpbb.toggleDropdown.call(t);else{var o=e.closest(".sr-b");o.find(".dropdown:first").show(),o.addClass("visible dropdown-visible dropdown-down")}}function e(t,e){try{share_gaSendEvent(t,e)}catch(t){console.warn(t)}}document.addEventListener("click",function(o){var n=o.target,i=n&&n.closest?n.closest(".sr-b .dropdown-trigger"):null,a=i&&i.closest(".sr-b");if(i&&a&&a.querySelector(".sr-dp-m")&&"function"==typeof navigator.share){var s=function(t){var e=$('meta[property="og:title"]').attr("content")||document.title,o=$('meta[property="og:url"]').attr("content")||window.location.href,n=$(t).closest(".post").get(0),i=n&&n.id.match(/^p_(\d+)$/);if(i)try{o=new URL("viewtopic.php?p="+i[1]+"#p"+i[1],"undefined"!=typeof BOARD_URL?BOARD_URL:window.location.href).href}catch(t){o=removeParam("sid",o)+"#p"+i[1]}return{title:e,text:e,url:removeParam("sid",o)}}(i);try{if("function"==typeof navigator.canShare&&!navigator.canShare(s))return}catch(t){return}o.preventDefault(),o.stopImmediatePropagation(),e(i,"click");try{Promise.resolve(navigator.share(s)).then(function(){e(i,"native")},function(e){e&&"AbortError"===e.name||t(i)})}catch(e){e&&"AbortError"===e.name||t(i)}}},!0);var o=new ClipboardJS(".cp-btn"),n=0;o.on("success",function(t){try{n&&clearTimeout(n);t.trigger.innerText="Copied!",n=setTimeout(function(){t.trigger.innerText="Copy link",n=0},1e3)}catch(t){console.warn(t)}}),$(".sr-b .dropdown-trigger").on("click",function(){$(this).parents(".sr-b").find(".inputbox").focus()}),$(".sr-b .btn-cls").on("click",function(){$(this).parents(".dropdown").css("display","none").parents(".dropdown-container").removeClass("dropdown-visible").removeClass("visible")}),$(".sr-ic.b").on("click",function(){var t=$(this),e=removeParam("sid",$('meta[property="og:url"]').attr("content")),o=$('meta[property="og:title"]').attr("content"),n=t.offset(),i="left="+(n.left+50)+",top="+(n.top+50)+",width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0";t.hasClass("fb")?window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e),"",i):t.hasClass("tw")?window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(e)+"&text="+encodeURIComponent(o),"",i):t.hasClass("tl")&&window.open("https://www.tumblr.com/widgets/share/tool?canonicalUrl="+encodeURIComponent(e)+"&title="+encodeURIComponent(o)+"&posttype=link","",i)})}(),$(".rules .fa-close").on("click",function(){var t=$(this);t.parents(".rules").addClass("hide");var e=t.data("ck_n");e&&Cookies.set(e,Date.now()/1e3|0,{expires:1,path:cookiePath})}),o=$("#pp_b"),$("#pp_c").on("click",function(){Cookies.set("pp_v",CURRENT_PP_VERSION,{expires:365,path:"/"}),o.remove(),$.ajax({async:!1,type:"GET",url:U_UPDATE_PP,beforeSend:function(){loader.css("display","block")},success:function(t){},error:function(t){console.log(t)},complete:function(){loader.css("display","none")}})}),$("#check_in").on("click",function(){$.ajax({type:"GET",url:U_CHECK_IN,dataType:"json",beforeSend:function(){loader.css("display","block")},success:function(t){t.status?(hs_checkin_result(parseInt(CHECK_IN_DAYS)+1),$("#check-in-block").fadeOut(500)):hs_popup(t.error?t.error:"Sorry, check in failed. Please try again later")},error:function(t){console.log(t)},complete:function(){loader.css("display","none")}})}),$("#vote_forum").on("click",function(){$("#vote_forum").hasClass("disable_vote")||(gaSendEvent("vote_forum","vote_forum"),$.ajax({type:"GET",url:U_VOTE_FORUM,dataType:"json",beforeSend:function(){loader.css("display","block")},success:function(t){loader.css("display","none"),t.status?hs_popup({message:"Congrats! Vote again tomorrow.",refresh:!0,type:"success"}):hs_popup(t.error?t.error:"Sorry, vote failed. Please try again later")},error:function(t){console.log(t)},complete:function(){loader.css("display","none")}}))}),SetupPostProfileAndImage(),function(){var t=$("#skw1"),e=$("#shSg_1");e.on("click",function(o){var n=$(o.target).closest("li",e);n.length&&(t.val(n.text()),n.hasClass("history-li")&&$(".specialbutton").trigger("click"))}),t.on("focus click",function(){if(!$(this).val()){var t=TT.getSearchHistory();if(0!=t.length){e.empty();for(var o=0;o<t.length;o++)t[o].key&&e.prepend("<li class='history-li' title='"+t[o].key+"'><i class='icon search-icon history'></i>"+t[o].key+"</li>")}}});var o=0,n=0;t.on("change keyup paste",function(){var t=$(this).val();
1t&&(o=0,n&&cancelRequestAnimFrame(n),function i(){n=requestAnimFrame(i),(o+=1)>60&&(o=0,cancelRequestAnimFrame(n),$.ajax({dataType:"jsonp",url:"https://suggestqueries.google.com/complete/search",data:{client:"youtube",q:t},beforeSend:function(){e.empty()}}).done(function(t){if(t[1]&&t[1].length)for(var o=0;o<t[1].length;o++)e.prepend("<li title='"+t[1][o][0]+"'><i class='icon icon-search-dark'></i>"+t[1][o][0]+"</li>")}).fail(function(t){console.log(t)}).always(function(){}))}())}),t.on("blur",function(t){window.setTimeout(function(){e.empty()},500)})}();var a,s,r,c=$("#tt_theme .btn-tabs"),l=$("#tt_custom_theme .btn-tabs"),d=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;function p(t,e,o){if(void 0!==t){var n=function(t){return window.ttgResolveThemePreference?window.ttgResolveThemePreference(t):"auto"===t&&d&&d.matches?"dark":"auto"===t?"original":t}(t),i=e&&e.length?e:c.filter('[data-theme="'+t+'"]');if(!o||window.ttgThemePreference!==t||GOP.thm_resolved!==n){o?TT.setTTOption("thm",t):window.ttgThemePreference=t,GOP.thm=n,GOP.thm_resolved=n,i.addClass("active").siblings(".btn-tabs").removeClass("active"),document.documentElement.setAttribute("data-theme-preference",t),document.documentElement.setAttribute("data-theme-resolved",n);var a,s=$("#tt_style"),r=$("#settings_style"),l=$('meta[name="theme-color"]'),p=s.attr("href");if("dark"===n)l.attr("content","#3D3F43"),a=p.replace(/stylesheet.*?.css/gi,"stylesheet-dark.css"),r.attr("media","max-width: 1px");else{var u=l.attr("data-light-color");!u&&window.getComputedStyle&&(u=window.getComputedStyle(document.documentElement).getPropertyValue("--forum-brand").trim()),l.attr("content",u||""),a=p.replace(/stylesheet.*?.css/gi,window.ttgLightStylesheet||"stylesheet.css"),r.removeAttr("media")}if(window.ttgApplySceditorDarkMode?window.ttgApplySceditorDarkMode("dark"===n):$("html, body").toggleClass("ttg-theme-dark","dark"===n),p!==a){i.addClass("ldg");var h=new Image;$(h).on("error",function(){s.attr("href",a),i.removeClass("ldg")}),h.src=a}}}}function u(t,e,o){if(-1!==["original","customized"].indexOf(t)){var n=e&&e.length?e:l.filter('[data-custom-theme="'+t+'"]');o&&window.ttgCustomThemePreference===t||(o&&TT.setTTOption("cst",t),window.ttgCustomThemePreference=t,GOP.cst=t,n.addClass("active").siblings(".btn-tabs").removeClass("active"),document.documentElement.setAttribute("data-custom-theme",t),"customized"===t?$("#hs_custom_css").removeAttr("media"):$("#hs_custom_css").attr("media","max-width: 1px"))}}if(c.on("click",function(){p($(this).data("theme"),$(this),!0)}),c.each(function(){var t=$(this);window.ttgThemePreference===t.data("theme")&&t.addClass("active")}),window.ttgApplyThemePreference=p,l.on("click",function(){u($(this).data("custom-theme"),$(this),!0)}),l.each(function(){var t=$(this);window.ttgCustomThemePreference===t.data("custom-theme")&&t.addClass("active")}),window.ttgApplyCustomThemePreference=u,d){var h=function(){"auto"===window.ttgThemePreference&&p("auto",c.filter('[data-theme="auto"]'),!1)};d.addEventListener?d.addEventListener("change",h):d.addListener&&d.addListener(h)}!function(){var t=$("#tt_font .btn-tabs"),e=[12,14,16,18],o=parseFloat(GOP.ft),n=14;isNaN(o)||e.forEach(function(t){Math.abs(t-o)<=Math.abs(n-o)&&(n=t)});var i=GOP.ft_m||-1===e.indexOf(o);GOP.ft=n,delete GOP.ft_m,i&&TT.setTTOption("ft",n),$("html").css("font-size",n+"px"),t.on("click",function(){var t=$(this),e=t.data("font");void 0!==e&&(TT.getTTOption("ft",e)!==e&&TT.setTTOption("ft",e),t.addClass("active").siblings(".btn-tabs").removeClass("active"),$("html").css("font-size",e+"px"))}),t.each(function(){var t=$(this);GOP.ft===t.data("font")&&t.addClass("active")})}(),$("#m_p_vip").on("click",function(){hs_confirm({title:"",message:"You have reached the max number of profiles this forum allows. Please sign up to VIP+ to add more profiles.",callback:function(){vipPlusBtnEvent("add_multi_profile")}})}),a=$("#s_u_l"),s=$("#s_u"),r=s.prev("strong"),TT.watchInput(s,function(t,e){var o=t.val();$.ajax({dataType:"jsonp",url:TAPATALK_COM_DOMAIN+"/ajax/checkUserName",data:{username:o,suggest:e?1:0},beforeSend:function(){a.addClass("disabled"),a.html("Checking Availability...").removeClass("er")}}).done(function(e){e.status?a.attr("href",a.attr("href")+"&suggested_username="+o).html("Confirm, and continue to dismiss this notice").removeClass("disabled er"):e.suggested_username?(t.val(e.suggested_username),r.html(e.suggested_username),a.attr("href",a.attr("href")+"&suggested_username="+e.suggested_username).html("Confirm, and continue to dismiss this notice").removeClass("disabled er")):a.html("Sorry, this username is not available").addClass("er")}).fail(function(){a.html("Sorry, this username is not available").addClass("er")})},!0),a.on("click",function(t){if($(this).hasClass("disabled"))return t.preventDefault(),!1}),$("#c_s_u").on("click",function(){r.hide(),s.prop("type","text"),$(this).hide()}),$(".buy-attach").on("click",function(){var t=$(this).data("attach_id");if(t){gaSendEvent("buy_common","Pay to Download Attachment","click_download");
1var e=$(this).data("topic_id"),o=$(this).data("post_id"),n=$(this).data("poster_id"),i=new FormData;i.append("attach_id",t),i.append("topic_id",e),i.append("post_id",o),i.append("receive_user_id",n),$.ajax({url:BOARD_URL+"app.php/attachment/sale_link",type:"post",data:i,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},success:function(t){var e;t.status?(e=t.link,buyCommonGoods(function(t,e,o){o.data&&o.data.order_id?window.location.reload(!0):e&&hs_popup("Sorry! Purchase attachment failed. "+e)},e)):hs_popup(t.error)},error:function(t){console.error(t)},complete:function(){loader.css("display","none")}})}}),$(".attach-feature-radio").on("click",function(){var t=$(this);TT.mutualExclusiveCheckbox(t),feature_image_no_price(t),window.phpbb&&phpbb.plupload&&"function"==typeof phpbb.plupload.updateFeatureButtons&&phpbb.plupload.updateFeatureButtons()}),$(".timespan").on("click",function(){var t=$(this),e=t.html();t.html(t.attr("title")).attr("title",e)});var f=Cookies.get("_no_forum_login");if(f&&!POPUP_TTID_CONNECT&&!HIDE_TTID_POPUP){new Date(1e3*f);var _="The existing forum account login has been removed ";reset_global_popup(),hs_popup(_)}if(POPUP_TTID_CONNECT&&!HIDE_TTID_POPUP){reset_global_popup();_="Your forum account has been upgraded to Tapatalk Account. Please log in to your Tapatalk account to participate in this group. \nYour Tapatalk account is registered with email address: "+POPUP_TTID_CONNECT_EMAIL+".";$("#global_popup div.bottom").append('<a class="button specialbutton capitalize mb-15 " href=" '+HOME_URL+'ucp.php?mode=login&connect_ttid=1">Log in with TTID</a>'),hs_popup(_),$("#global_popup button.close").remove()}}),setTimeZoneToCookie(),$(".mark-all-check").click(function(){$("input[type='checkbox']").prop("checked",!0),switch_button_status(status)}),$(".unmark-all-check").click(function(){$("input[type='checkbox']").attr("checked",!1),switch_button_status(status)}),$("input:checkbox").change(function(){change_color(this,!1),ttg_update_bulk_actions()});var postAvatarPopupE=!1;function followUserFromPost(t){$.ajax({url:t,type:"GET",dataType:"json",beforeSend:function(){loader.css("display","block")},error:function(t){console.log(t)},success:function(t){var e=t.S_CONFIRM_ACTION,o=$("<form>"+t.S_HIDDEN_FIELDS+"</form>"),n=new FormData(o[0]);n.append("confirm","Yes"),$.ajax({url:e,type:"POST",dataType:"json",processData:!1,contentType:!1,data:n,error:function(t){console.log(t)},complete:function(){loader.css("display","none")},success:function(t){t.success&&window.location.reload()}})}})}$(".avatar-username .vip.avatar-container, .postusername .vip.avatar-container, .post_vip_corner_promotion").on("mouseenter",function(){postAvatarPopupE||1==U_IS_VIP_PLUS||(postAvatarPopupE=!0,gaSendEvent("goldpoint","vipplus:popup_hover"+DEV_ENV))}),localStorage.setItem("TTIDForumsShow",0);var empty_forum_info=!1,leave_showTTIDForums=!0;function check_show_forums_status(){return!($(window).width()<=700||1==TTID_FORUMS_SWITCH_DISABLE||isNaN(U_COOKIE_TTID)||empty_forum_info)}function getTitleHomeForum(){$(window).width()<=700?window.location.href="https://www.tapatalk.com/":empty_forum_info||isNaN(U_COOKIE_TTID)||1==TTID_FORUMS_SWITCH_DISABLE?window.location.href="https://www.tapatalk.com/":"none"==$("#showTTIDForums").css("display")?(TT.storage.setItem("TTIDForumsShow",1),isNaN(U_COOKIE_TTID)||($("#showTTIDForums").removeClass("border-unset"),$("#showTTIDForums").slideDown(),$(".showTTIDForums").addClass("showTTIDForums-bg"))):(TT.storage.setItem("TTIDForumsShow",0),$("#showTTIDForums").addClass("border-unset"),$("#showTTIDForums").slideUp(),$(".showTTIDForums").removeClass("showTTIDForums-bg"))}function getHomeForum(){if(0==check_show_forums_status())return setTTIDForumsIcon(),!1;var t=2;t=$(window).width()>2556?20:$(window).width()>2326?18:$(window).width()>2086?16:$(window).width()>1846?14:$(window).width()>1642?12:$(window).width()>1398?10:$(window).width()>1e3?8:$(window).width()>750?6:4,$(".showTTIDForums_append").empty();var e=getTTIDForumLocalStorage();if(!1!==e)return(e=JSON.parse(e)).data.length<2?(empty_forum_info=!0,setTTIDForumsIcon(),!1):(setTTIDForumsIcon(!0),addTTIDForumsInfo(e,t),!0);$.ajax({type:"GET",url:"https://www.tapatalk.com/ajax/getHomeForum?ttg_count=20",success:function(e){if(e.data.length<2)return empty_forum_info=!0,setTTIDForumsLocalStorage(JSON.stringify(e)),setTTIDForumsIcon(),!1;setTTIDForumsIcon(!0),addTTIDForumsInfo(e,t)},error:function(){setTTIDForumsIcon(),TTID_FORUMS_SWITCH_DISABLE=1}})}function addTTIDForumsInfo(t,e){var o='<div class="ttid-forums-column-divider"></div>',n=1;t.data.length>1&&($.each(t.data,function(t,i){if(n>e)return!1;n%2==0?(o+='<a class="ttid-forum-info-url" href="'+i.url,"pb_group"!=i.type?o+='" target="_blank"> ':o+='" > ',SITE_NAME==i.name?o+='<div class="hover-4f5155 hover-4f5155-hover">\n':o+='<div class="hover-4f5155">\n',o+='                    <img style="background-color: white" src="'+i.logo+'">\n                    <div class="ttforum_name" >'+i.name+"</div>\n         </div></a></div>"):(o+=1==n?' <div class="ttid-forum-block-first">':' <div class="ttid-forum-block">',o+='<a class="ttid-forum-info-url" href="'+i.url,"pb_group"!=i.type?o+='" target="_blank"> ':o+='" > ',SITE_NAME==i.name?o+='<div class="hover-4f5155 hover-4f5155-hover">\n':o+='<div class="hover-4f5155">\n',o+='                    <img style="background-color: white" src="'+i.logo+'">\n                    <div class="ttforum_name" >'+i.name+"</div>\n         </div></a>"),n++}),n%2==0&&(o+="</div>"),$(".showTTIDForums_append").append(o))}isNaN(U_COOKIE_TTID)&&(empty_forum_info=!0),$(".showTTIDForums").on("mouseenter",function(){if(leave_showTTIDForums=!1,"none"==$("#showTTIDForums").css("display"))return 0!=check_show_forums_status()&&void((1!=TT.storage.getItem("TTIDForumsShow")||empty_forum_info)&&($("#showTTIDForums").addClass("border-unset"),$("#showTTIDForums").slideDown(),$(".showTTIDForums").addClass("showTTIDForums-bg")))}),$(".showTTIDForums").on("mouseleave",function(){leave_showTTIDForums=!0,setTimeout(function(){(1!=TT.storage.getItem("TTIDForumsShow")||empty_forum_info)&&"none"!=$("#showTTIDForums").css("display")&&0!=leave_showTTIDForums&&($("#showTTIDForums").removeClass("border-unset"),$("#showTTIDForums").slide
1Up(),$(".showTTIDForums").removeClass("showTTIDForums-bg"))},1e3)}),$(window).scroll(function(){if(!empty_forum_info&&!isNaN(U_COOKIE_TTID)&&1!=TTID_FORUMS_SWITCH_DISABLE&&1==TT.storage.getItem("TTIDForumsShow")&&($(window).scrollTop()>250&&"none"!=$("#showTTIDForums").css("display")&&($("#showTTIDForums").addClass("border-unset"),$("#showTTIDForums").slideUp(),$(".showTTIDForums").removeClass("showTTIDForums-bg")),$(window).scrollTop()<50&&"flex"!=$("#showTTIDForums").css("display"))){var t=getTTIDForumLocalStorage();if((t=JSON.parse(t)).data.length<2)return;$("#showTTIDForums").removeClass("border-unset"),$("#showTTIDForums").slideDown(),$(".showTTIDForums").addClass("showTTIDForums-bg")}});var hs_product_notification=function(){if(!(SHOW_PROFILE_HAT_NOTIFICATION>0||SHOW_PROFILE_CARD_NOTIFICATION>0))return 0;if(TT.lSAva){if(!(U_TTID&&U_TTID>0))return 0;if(TT.storage.getItem("hat_notification_suppressed"))return 0;if(SHOW_PROFILE_HAT_NOTIFICATION>0){var t="prompt_hat_new_notification_thanksgiving",e=(new Date).getTime();if(!TT.storage.getItem(t))return hs_purchase_hat("notification",!0,5),TT.storage.setItem(t,e),1}if(SHOW_PROFILE_CARD_NOTIFICATION>0){t="prompt_card_new_notification_thanksgiving",e=(new Date).getTime();if(!TT.storage.getItem(t))return hs_purchase_card("notification",!0,17),TT.storage.setItem(t,e),1}}},hs_setupwallet_notification=function(){if(SHOW_GP_INTRO&&$(window).width()>700)if(TT.lSAva){if(1!=localStorage.getItem("setWalletShow")&&!isNaN(U_COOKIE_TTID))return gaSendEvent("airdrop_setwallet","popup","setwallet"),setWalletPopup(function(t,e,o){localStorage.setItem("setWalletShow",1)},TAPATALK_COM_DOMAIN+"/gp/intro"),!0}else if(1!=TT.getTTOption("setWalletShow")&&!isNaN(U_COOKIE_TTID))return gaSendEvent("airdrop_setwallet","popup","setwallet"),setWalletPopup(function(t,e,o){TT.setTTOption("setWalletShow",1)},TAPATALK_COM_DOMAIN+"/gp/intro"),!0;return!1};function hs_popTTIDForumsIntro(){if(TT.lSAva&&null===TT.storage.getItem("TTIDForumsIntro")){gaSendEvent("tutorial","popup","multi_forum"),reset_global_popup();var t=$("#global_popup");t.find(".notice-title").remove(),t.find(".notice-m-t24").empty(),t.find(".notice-message").addClass("notice-message4").removeClass("notice-message"),t.find(".vip_ads_specialbotton").css("color","white"),t.find(".vip_ads_specialbotton").css("min-width","144px"),t.find(".vip_ads_specialbotton").css("margin-bottom","10px"),t.find(".vip_ads_specialbotton").css("font-weight","700");return t.find(".notice-m-t24").append('<div class="ttid-forums-intro-heading">Follow multiple groups?</div><div class="TTIDFourms-intro-content" >Check out the new way to discover and navigate different Tapatalk Groups</div><div class="TTIDFourms-intro-img"></div>'),hs_popup({message:""}),TT.storage.setItem("TTIDForumsIntro",1),!0}return!1}function hs_popDonation(){if("index"===SCRIPT_NAME&&2==DONATION_VISIBILITY){var t,e=Cookies.get("nsfw_donation_popup");if(t=$(".new-donation-btn"),!e&&t.length)return newDonation(null,"?donate_from=popout"),Cookies.set("nsfw_donation_popup",1,{expires:7,path:cookiePath}),!0}return!1}function hs_popTiers(){return TT.lSAva?1!==SHOW_PERMIUM_HTML||null===localStorage.getItem("permium_popup")||localStorage.getItem("permium_popup")<now.getTime()||(SHOW_PERMIUM_HTML=0):1!==SHOW_PERMIUM_HTML||null===TT.getTTOption("permium_popup")||TT.getTTOption("permium_popup")<now.getTime()||(SHOW_PERMIUM_HTML=0),1===SHOW_PERMIUM_HTML&&$(window).width()>700&&(pop_buy_teir(!1),!0)}function hs_popVIPPromotion(){if(1==localStorage.getItem("vip_repromotion_after_login")&&(localStorage.setItem("vip_repromotion_after_login",0),EMAIL_VIP_PROMOTION=1),IS_VIP_PLUS)return!1;if(TT.lSAva){return EMAIL_VIP_PROMOTION?(localStorage.setItem("VIPPromotion_poped",1),gaSendEvent("vipplus","1_year_promotion","email"),setTimeout(function(){vipPlusPromotionBtnEvent()},1e3),!0):1==localStorage.getItem("vip_repromotion_after_login")&&(EMAIL_VIP_PROMOTION=1,localStorage.setItem("vip_repromotion_after_login",0),!0)}return!1}function getPostDataFormId(post_id,key){if(null!=post_id&&null!=key){var data=eval("post_data_"+post_id);if(null!=data&&data)return"string"==typeof key||"number"==typeof key?data[key]:void 0}}$(document).ready(function(){var t=getHomeForum(),e=!1;
1(e=hs_popVIPPromotion())||(e=hs_product_notification()),e||(e=hs_setupwallet_notification()),!e&&t&&(e=hs_popTTIDForumsIntro()),e||(e=hs_guest_join(!1,"ttg_popout")),e||(e=hs_popDonation()),e||(e=hs_popTiers())}),$(document).ready(function(){hs_award_notification()});var HtmlUtil={htmlEncode:function(t){var e=document.createElement("div");null!=e.textContent?e.textContent=t:e.innerText=t;var o=e.innerHTML;return e=null,o},htmlDecode:function(t){var e=document.createElement("div");e.innerHTML=t;var o=e.innerText||e.textContent||"";return e=null,o}};function getFullPostDataFormId(post_id){if(null!=post_id)return eval("post_data_"+post_id)}function lift_ban(t){gaSendEvent("buy_common","lift ban","click"),buyCommonGoods(function(t,e,o){null!=o.data.order_id&&$.ajax({type:"POST",url:BOARD_URL+"app.php/ban/lift?order_id="+o.data.order_id.toString(),dataType:"json",success:function(t){t.status?hs_popup({message:t.message,refresh:3,type:"success"}):hs_pop_wrong(t.message)},error:function(t){hs_pop_wrong(t.message)}})},t)}function approve_member(t){gaSendEvent("buy common","approve member","click"),buyCommonGoods(function(t,e,o){null!=o.data.order_id&&$.ajax({type:"POST",url:BOARD_URL+"app.php/approve/member?order_id="+o.data.order_id.toString(),dataType:"json",success:function(t){t.status?hs_popup({message:t.message,refresh:3,type:"success"}):hs_pop_wrong(t.message)},error:function(t){hs_pop_wrong(t.message)}})},t)}function hs_guest_join_update(){$(".ttid-login-box.join-button").hide()}var hs_guest_join=function(t){return function(e,o){if(U_TTID&&U_TTID>0||U_COOKIE_TTID&&U_COOKIE_TTID>0)return!1;if("1"==S_USER_LOGGED_IN)return!1;var n="guest_elapse_session",i="Join To Read More",a="We see you've read on Tapatalk for a while. With a few clicks away you'll be able to personalize your experience and get updates from us.";e&&(n="guest_manual","ttg_nav"!=o&&"ttg_sidebar"!=o&&(i="Pardon the interruption",a="We see that you are interested to view or use certain resources in this Tapatalk Group. Please consider signing up for Tapatalk, it’s just a few clicks away."));var s='<div class="notice-message guest-join bg2" style="">\n            <div class="notice-title guest-join" style="height: 30px;">\n            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"  > × </button>\n        </div>\n        <div class="guest-join-painting">\n            <img src="https://groups.tapatalk-cdn.com/static/image/tapatalk_network.png" width="" style="width: 100%;">\n            </div>\n            <div class="guest-join-paragraph">\n            <p id="guest-join-title" class="guest-join-title">'+i+'</p>\n        <p id="guest-join-description" class="guest-join-description">'+a+'</p>\n        <div class="controls" style="max-height: 165px;">\n            <form action="'+U_REGISTER+"&type=facebook&channel="+o+'" id="guest-join-forum-facebook" method="post">'+S_LOGIN_REDIRECT+'</form>\n            <form action="'+U_REGISTER+"&type=google&channel="+o+'" id="guest-join-forum-google" method="post">'+S_LOGIN_REDIRECT+'</form>\n            <form action="'+U_REGISTER+"&type=email&channel="+o+'" id="guest-join-forum-email" method="post">'+S_LOGIN_REDIRECT+'</form>\n            <form action="'+U_REGISTER+"&channel="+o+'" id="guest-join-forum-email" method="post">'+S_LOGIN_REDIRECT+"</form>\n"+("<div onclick=\"gaSendEvent('guest-convert','"+n+'\',\'facebook\');document.getElementById(\'guest-join-forum-facebook\').submit();" class="button1 button specialbutton ttid-login-box join-button facebook"><img src="https://www.tapatalk.com/imgs/facebook-ttg.png" style="width: 20px;height: 20px;margin: 0 5px;"><div class="join-button-text">Continue With Facebook</div></div>\n            <div onclick="gaSendEvent(\'guest-convert\',\''+n+'\',\'google\');document.getElementById(\'guest-join-forum-google\').submit();" class="button1 button specialbutton ttid-login-box join-button google"><img src="https://www.tapatalk.com/imgs/g.png" style="width: 20px;height: 20px;margin: 0 5px;"><div class="join-button-text"margin: 0 5px;>Continue With Google</div></div>\n            <div onclick="gaSendEvent(\'guest-convert\',\''+n+'\',\'email\');document.getElementById(\'guest-join-forum-email\').submit();" class="button1 button specialbutton ttid-login-box join-button email"><img src="https://www.tapatalk.com/imgs/login-email.png" style="width: 18px;height: 12px;top:-1px;margin: 0 6px;"><div class="join-button-text" style="line-height:20px;">Continue With Email</div></div>\n')+"        </div>\n        <p id='guest-join-login-access' class=\"guest-join-login-access\"><span onclick=\"gaSendEvent('guest-convert','"+n+"','login');\">Already have an account? <a href=\""+U_LOGIN_LOGOUT+'">LOG IN</a></span></p>\n        </div>\n        <div class="bottom"></div>\n</div>',r=function(){t.css("display","block"),t.unbind("click"),t.on("click",function(e){e.target.classList.contains("close")&&t.css("display","none")}),TT.storage.getItem("guest_login_notified")||TT.storage.setItem("guest_login_notified",c)};if(e)return t.html(s),r(),!0;if(TT.lSAva){if(TT.storage.getItem("guest_login_notified"))return!1;var c=(new Date).getTime(),l=TT.storage.getItem("guest_session_start");if(l||(l=c,TT.storage.setItem("guest_session_start",l)),parseInt(c)>parseInt(l)+12e4||SESSION_ELASPE>120)return t.html(s),$("#guest-join-title").html("Join To Read More"),$("#guest-join-description").html("We see you've read on Tapatalk for a 
1while. With a few clicks away you'll be able to personalize your experience and get updates from us."),r(),!0}return!1}}($("#global_popout_container")),hs_checkin_result=function(t){if(t.length)return function(e){for(var o='<div class="alt-block-content2 check-in-progress">   <div class="day-coin-box cl-af">',n=1;n<6;n++){var i='<div class="day-coin fl">';n<5&&(i+='<div class="progress '+(n<=e?"checked":"")+' moving"></div>'),i+='<div class="coin '+(n<=e?"checked":n==e+1?"rotate":"")+'"><span>+'+n+'</span></div><div class="alt-block-special-font '+(n<=e?"checkin-checked":"")+'"><span>'+(n==e?"Today":"Day"+n)+"</span></div>",o+=i+="</div>"}var a='   <div class="notice-message check-in-result bg2" style="">\n       <div class="check-in-logo"><img class="poplogo" src="https://groups.tapatalk-cdn.com/static/image/calender.png"></div>\n       <div class="check-in-paragraph">Congrats! You\'ve got Gold Points. Check-in again tomorrow to unlock more.</div>\n'+(o+="   </div></div>")+'       <div><a class="udl tapatalk-theme-color" href="'+TAPATALK_COM_DOMAIN+'/goldpoints" target="_blank" style="padding:20px 0;"><span>What are Gold Points?</span></a></div>    </div>';return t.html(a),t.css("display","block"),t.unbind("click"),t.on("click",function(e){(e.target===this||e.target.classList.contains("close"))&&t.css("display","none")}),!1};console.warn("no global popup found")}($("#global_popout_container")),hs_award_result=function(t){if(t.length)return function(e,o,n){var i="gift.png";"gift_vip"==n&&(i="gift_vip.png");var a='   <div class="notice-message award-result bg2" style="">\n       <div class="award-logo"><img class="poplogo" src="https://groups.tapatalk-cdn.com/static/image/'+i+'"></div>\n       <div class="award-paragraph">'+e+"</div>\n    </div>";return t.html(a),t.css("display","block"),t.unbind("click"),t.on("click",function(e){(e.target===this||e.target.classList.contains("close"))&&(t.css("display","none"),o&&window.location.reload(!0))}),!1};console.warn("no global popup found")}($("#global_popout_container"));function SetupPostProfileAndImage(){if(!($(document).width()<850)){var post_images=$(".postbody .pb2 .postimage"),images_url=[],move_event=!1,exiting_url={},duplicated_url={},topic_title=$("h2.topic-title").text(),clickable=$(".postbody .pb2 .postimage, .postbody .collage .has-more");clickable.unbind("click"),clickable.on("click",function(){var cur_image=$(this).hasClass("has-more")?$(this).parents(".b").find(".postimage"):$(this),cur_image_src=cur_image.data("src")?cur_image.data("src"):cur_image.attr("src");if(cur_image_src&&!cur_image_src.match(/^https?:\/\/emoji\.tapatalk\-cdn\.com/)){$("body").css("overflow","hidden"),Object.keys(images_url).length||post_images.each(function(i){var _t=$(this),src=_t.data("src")?_t.data("src"):_t.attr("src"),aid=_t.data("attach_id");if(Object.values&&Object.values(exiting_url).indexOf(src)>=0){for(var exiting_key in exiting_url)exiting_url[exiting_key]===src&&(duplicated_url[i]=exiting_key);return!0}if(!src||src.match(/^https?:\/\/emoji\.tapatalk-cdn\.com/))return!0;exiting_url[i]=src;var post_content=_t.parents(".post_content"),image_title=_t.attr("alt"),time=post_content.find(".timespan").text(),p_id=parseInt(post_content.attr("id").substring(12)),postDataObj=eval("post_data_"+p_id),profile=$('.postprofile[data-uid="'+postDataObj.POSTER_ID+'"]'),poster_avatar=profile.find("i.avatar-bg").length&&profile.find("i.avatar-bg")[0].outerHTML,poster_name=profile.find(".thread-user-name .username, .thread-user-name .username-coloured").length&&profile.find(".thread-user-name .username, .thread-user-name .username-coloured")[0].outerHTML;images_url[i]={preview:src||BOARD_URL+"download/file.php?dt=icon&id="+aid,display:aid?BOARD_URL+"download/file.php?dt=display&id="+aid:src,download:aid?BOARD_URL+"download/file.php?id="+aid:src,username:poster_name,avatar:poster_avatar,time:time,title:image_title,count:_t.data("download"),comment:_t.data("comment"),price:_t.data("price")}});var pop=$(".carousel"),close_event=function(t){"click"!==t.type&&27!==t.keyCode||($("body").css("overflow","auto"),pop.css("display","none"))};if(!pop.length||pop.find(".img-box").length!==images_url.length){move_event=!1,pop.length&&pop.remove();var pop_wrap=$("<div></div>");pop=$('<div class="carousel"></div>').appendTo(pop_wrap);var top=$('<div class="top"></div>').appendTo(pop),btm=$('<div class="btm"></div>').appendTo(pop),b_l=$('<div class="l"></div>').appendTo(btm),b_l_t=$('<div class="t"></div>').appendTo(b_l),b_l_b=$('<div class="b"></div>').appendTo(b_l);btm.append('<div class="r"><div class="t"></div><div class="b" id="TapatalkImageViewerAd"></div></div>'),topic_title=topic_title.replace("<","&lt;"),topic_title=topic_title.replace(">","&gt;");var top_content="<div class='c'><div class='fl'>"+(topic_title||"")+"</div>"+(U_TTID&&!IS_VIP_PLUS&&VIP_PLUS_STATUS>0&&"desktop"===PHONEMODE?"<div class='fr'><span class='vip-plus-btn-event' data-type='carousel_navbar'><i class='fa fa-rocket'></i>Join VIP+</span></div>":"")+"<div class='fr'><a class='download' target='_blank'><i class='fa fa-download'></i><span>Download</span></a></div></div><div class='close'><i class='fa fa-close'></i></div>";for(var prop in top.append(top_content),top.find(".close").on("click",close_event),images_url)b_l_t.append('<div class="img-box" data-indx="'+prop+'"><a target="_blank" href="'+images_url[prop].download+'"><img src="'+images_url[prop].display+'"/></div>'),b_l_b.append("<div class='i-box' data-indx='"+prop+"'><img src='"+images_url[prop].preview+"' alt='"+images_url[prop].title+"'></div>");b_l_t.append('<div class="left"><i class="fa fa-chevron-left"></i></div>'),b_l_t.append('<div class="right"><i class="fa fa-chevron-right"></i></div>'),$("body").append(pop_wrap),"tablet"===PHONEMODE&&b_l_t.css("flex-basis",$(window).height()-top.height()-b_l_b.height()-20),"undefined"!=typeof PBHS_GetCustomAddFor&&PBHS_GetCustomAddFor("TapatalkImageViewerAd","TapatalkImageViewerAd")}if(!move_event){var roll_event=function(t){if(t.type="click"){var e=null;pop.find(".img-box").each(function(t){$(this).hasClass("active")&&(e=$(this))});var o=0;(t.type=$(this).hasClass("left"))||(t.type=37===t.keyCode)?(o=e.prev(".img-box")).length||(o=pop.find(".img-box").parent().find(".left").prev(".img-box")):(o=e.next(".img-box")).length||(o=pop.find(".img-box:first-of-type")),show_image(o.length?o.data("indx"):0)}};pop.find(".left,.right").on("click",roll_event),$("body").on("keydown",function(t){close_event(t),roll_event(t)});var btm_img=pop.find(".btm .l .b .i-box");btm_img.on("click",function(){show_image($(this).data("indx"))}),move_event=!0}var cur=parseInt(post_images.index(cur_image));void 0!==duplicated_url[cur]&&(cur=parseInt(duplicated_url[cur])),show_image(cur),pop.css("display","flex")}function show_image(t){t=parseInt(t);var e=pop.find('.img-box[data-indx="'+t+'"]'),o=pop.find(".img-box.active");o.length&&o.removeClass("active");var n=pop.find(".btm .r .t");if(n.empty(),!images_url[t])return console.warn("invalid image index",t,images_url,duplicated_url,exiting_url,post_images),!0;if(n.append('<div class="author"><div class="a1">'+images_url[t].avatar+'</div><div class="b1"><div class="b11">
1'+images_url[t].username+'</div><div class="b12"><span class="time">'+images_url[t].time+"</span></div></div></div>"),images_url[t].title){n.append("<div><span>"+images_url[t].title+"</span></div>");var i=images_url[t].count?"<span><i class='fa fa-download'></i>"+images_url[t].count+"</span>":"",a=images_url[t].price?"<span><i class='gold-point-icon'></i>"+images_url[t].price+"</span>":"";(i||a)&&n.append("<div>"+i+a+"</div>")}images_url[t].comment&&n.append("<div>"+images_url[t].comment+"</div>"),pop.find(".top .download").attr("href",images_url[t].download),pop.find(".btm .l .b .i-box").removeClass("active"),pop.find('.btm .l .b .i-box[data-indx="'+t+'"]').addClass("active"),e.addClass("active")}})}}var now=new Date,updateDonationCampignAccordingToNavDonation=function(){var t=$("#nav_donation");t.length<1||(t.removeClass("hide"),$("#donation_alt_block_donation").addClass("nav_donation_hidden"),$("#donation_alt_block_statistic").length>0?($("#donation_alt_block_statistic").removeClass("alt-block-top-dashed"),$("#donation_alt_block_statistic").addClass("alt-block-top-dashed-nav-hidden")):$("#donation_alt_block").addClass("nav_donation_hidden"))};function nav_donate(t){gaSendEvent("donate","donate_banner:click"),newDonation(t,"?usd=0&donate_type=onetime-amount&donate_from=nav_banner")}function close_nav_donate(){if(2!=DONATION_VISIBILITY){gaSendEvent("donate","donate_banner_close:click");var t=2592e6,e=new Date;e.setTime(e.getTime()+t),$("#nav_donation").remove(),TT.lSAva?localStorage.setItem("n_donation_hide",e.getTime()):TT.setTTOption("n_donation_hide",e.getTime(),t)}}function blockquote_readmore_click(t){var e=$(t).parent();e.css("max-height","unset"),e.find("blockquote").css("max-height","unset"),e.find(".has-mask").removeClass("has-mask"),e.find(".lines-hidden").removeClass("lines-hidden"),e.addClass("click_readmore"),e.removeClass("blockquote-collapse"),$(t).remove()}function enableForumAutoRemoveAds(){var t=function(){var e=new FormData;$.ajax({url:BOARD_URL+"app.php/admin/adsremove",type:"post",data:e,dataType:"json",processData:!1,contentType:!1,beforeSend:function(){loader.css("display","block")},error:function(t){console.log(t)},complete:function(){loader.css("display","none")},success:function(e){if(e.status){hs_popup({message:"Congrats! The forum is ads-free now. You can turn this feature off in Tapatalk Console at anytime!",refresh:!0,type:"success"})}else 10==e.code&&setupWallet("ads_remove_by_gp",function(e,o,n){e?t():(console.log("setup wallet failed"),console.log(o),console.log(n))},U_TTID,0)}})};t(),gaSendEvent("admin","ads_remove:enable")}function nav_login_message(t){if("login"==t.data.action&&$("#nav-main > .nav-button > .vertical-box > .login").click(),"join"==t.data.action&&$("#nav-main > .nav-button > .vertical-box > .register").click(),"email"==t.data.action){var e=t.data.data,o=$("#nav-register-url-data").attr("data-href")+"&channel="+e+"&type=email";window.location.href=o}if("href"==t.data.action&&(window.location.href=t.data.data),"refresh"==t.data.action&&window.location.reload(!0),"height"==t.data.action){var n=t.data.data,i=t.data.class;n<34&&(n=34),$(window).width()<375&&n<50&&(n=74),/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&"nav_login"==i&&(n=40),$("."+i).height(n+6)}if("changename"==t.data.action){var a="Hi, "+t.data.data;$(".nav_login_change_name").text(a)}"done"==t.data.action&&("ttid"==t.data.data?($(".nav_login_continue").hide(),$(".nav_login_hide").removeClass("nav_login_hide")):$(".nav_login_continue").show(),$(".nav_login_block").show(),$(".nav_message_block").attr("display","block"),$(".nav_login_change_name").show());"has_account"==t.data.action&&(window.location.href=HOME_URL+"auth.php?action=ttid_login",TT.lSAva&&EMAIL_VIP_PROMOTION&&localStorage.setItem("vip_repromotion_after_login",1))}function switch_button_status(t){ttg_update_bulk_actions(),$(".button_status:not(.ttg-bulk-selection-action)").toggle(null!=t&&1==t)}function ttg_bulk_action_names(t){return($(t).attr("data-bulk-watch")||"").split(/[\s,]+/).filter(function(t){return t.length>0})}
1function ttg_bulk_action_scope(t){var e=$(t).attr("data-bulk-scope"),o=$(t).closest("form");if(e){var n=$(t).closest(e);if(n.length)return n;if(o.length&&(n=o.find(e)).length)return n;if((n=$(e)).length)return n}return o.length?o:$(document)}function ttg_bulk_scope_has_selection(t,e){var o=!1;return!!e.length&&(t.find('input[type="checkbox"][name]:checked').each(function(){var t=$(this).attr("name")||"";return e.forEach(function(e){t!==e&&t!==e+"[]"&&0!==t.indexOf(e+"[")||(o=!0)}),!o}),o)}function ttg_update_bulk_actions(t){var e=t?$(t):$(document),o=e.find(".ttg-bulk-selection-action");e.is&&e.is(".ttg-bulk-selection-action")&&(o=o.add(e)),o.each(function(){var t=$(this),e=ttg_bulk_scope_has_selection(ttg_bulk_action_scope(t),ttg_bulk_action_names(this));t.toggleClass("is-visible",e),t.attr("aria-hidden",e?"false":"true"),t.find("input, button").prop("disabled",!e),t.is("input, button")&&t.prop("disabled",!e)})}function check_post_container(){$(".post-profile-block ").each(function(){calculate_profile_block_height(this)})}function calculate_profile_block_height(t){var e=$(t).parent().nextAll("div[id^=p_]").first();if(null==typeof e||0==e.length||e.find(".post-profile-block").length>0){var o=$(t).siblings(".postbody");if(o.find(".post_content > .pb3 > .signature").length>0)var n=o.find(".post_content > .pb3").height()-o.find(".post_content > .pb3 > .signature").height();else n=o.find(".post_content > .pb3").height();if(o.height()-$(t).find(".postprofile").height()+15>n){var i=o.height()-n+15;$(t).height(i),i-=$(t).find(".postprofile").height(),o.find(".float-arrow-block").height(i)}else{if(o.height()<$(t).find(".postprofile").height()+15){var a=o.find(".post_content > .pb2").height()+$(t).find(".postprofile").height()-o.height()+15;o.find(".post_content > .pb2").css("min-height",a)}o.find(".float-arrow-block").height("0")}return!0}for(;e.nextAll("div[id^=p_]").length>0&&0==e.find(".post-profile-block").length;)e=e.nextAll("div[id^=p_]").first();if(0==$(t).parent().nextAll(".has-profile-block").length){if(e.find(".post_content > .pb3 > .signature").length>0)n=e.find(".post_content > .pb3").height()-e.find(".post_content > .pb3 > .signature").height();else n=e.find(".post_content > .pb3").height();i=e.height()+e.offset().top-$(t).parent().offset().top-n;(r=e.height()-$(t).find(".postprofile").height()-n)>0?$(t).parent().nextAll("div[id^=p_]").last().find(".float-arrow-block").height(r):$(t).parent().nextAll("div[id^=p_]").last().find(".float-arrow-block").height("0")}else{var s=e.prevAll("div[id^=p_]").first();if(e.find(".post_content > .pb3 > .signature").length>0)n=s.find(".post_content > .pb3").height()-s.find(".post_content > .pb3 > .signature").height();else n=s.find(".post_content > .pb3").height();var r;i=s.height()+s.offset().top-$(t).parent().offset().top-n;(r=s.height()-$(t).find(".postprofile").height()-n)>0?s.find(".float-arrow-block").height(r):s.find(".float-arrow-block").height(0)}$(t).height()<i&&$(t).height(i)}function share_gaSendEvent(t,e,o){if("viewforum"==SCRIPT_NAME)gaSendEvent("share_forum",e,o);else if($(t).parents(".viewtopic_wrapper").length>0){gaSendEvent("share_post",e,o);var n=$(t),i=removeParam("sid",$('meta[property="og:url"]').attr("content")),a=$('meta[property="og:title"]').attr("content"),s=($(window).width()-550)/2;s<0&&(s=0);var r=($(window).height()-450)/2;r<0&&(r=0);var c="left="+s+",top="+r+",width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0";n.hasClass("fb")?window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(i),"",c):n.hasClass("tw")?window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(i)+"&text="+encodeURIComponent(a),"",c):n.hasClass("tl")&&window.open("https://www.tumblr.com/widgets/share/tool?canonicalUrl="+encodeURIComponent(i)+"&title="+encodeURIComponent(a)+"&posttype=link","",c)}else gaSendEvent("share_topic",e,o)}function append_endoftopicbar(){$("div[name='endoftopicbar']").length>0&&!$("div[name='endoftopicbar']").hasClass("hide")?($("div[name='endoftopicbar']").addClass("endoftopicbar-share-bottom"),$(".share_icon_area").removeClass("hide"),$(".share_icon_area").addClass("endoftopicbar-share-top")):$(".share_icon_area").hasClass("hide")&&($(".share_icon_area").removeClass("hide"),$(".share_icon_area").addClass("endoftopicbar-only-share"))}function refresh(){window.location.reload(!0)}function DecorateAvatar(){$(".avatar-frame-hat").unbind("click"),$(".avatar-frame-hat").on("click",function(t){hs_purchase_hat("hat",!1,0)}),$(".post_card_bg").unbind("click"),$(".post_card_bg").on("click",function(t){hs_purchase_card("card",!1,0)})}function GenerateBottomNotificationBar(){$("#sticky-float-bottom").html('    <div id="sticky-float-bottom-bar" class="sticky-float-bottom-bar">\n        <div id="sticky-float-bottom-bar-icon-frame" class="sticky-float-bottom-bar-icon" > <div id="sticky-float-bottom-bar-icon" class=""></div> </div>\n        <div class="sticky-float-bottom-bar-action ">\n            <button type="button" class="sticky-float-bottom-bar-close close" onclick="HideBottomNotifcationBar();gaSendEvent(\'notificaion\',\'floating:close\');"> × </button>\n            <button id="sticky-float-bottom-bar-button" class="button specialbutton tapatalk-theme-background" onclick="gaSendEvent(\'notificaion\',\'floating:click\');"></button>\n        </div>\n        <div class="sticky-float-bottom-bar-content ">\n            <p id="sticky-float-bottom-bar-title" class="float-bar-title checkbox" ></p>
1\n            <p id="sticky-float-bottom-bar-content" class="float-bar-content checkbox" ></p>\n        </div>\n        <div id="sticky-float-bottom-bar-checkbox" class="float-bar-checkbox">\n            <input type="checkbox" id="dont_show_float_notification_anymore" value="" style="margin-right: 8px;">Don\'t show this message anymore.\n        </div>\n    </div>\n')}function ShowBottomNotifcationBar(t,e,o,n,i,a,s){if(GenerateBottomNotificationBar(),s&&TT.lSAva){if(TT.storage.getItem("float_notification_suppressed"))return;$("#dont_show_float_notification_anymore").off("click",function(){}),$("#dont_show_float_notification_anymore").on("click",function(t){$(this).prop("checked")?TT.storage.setItem("float_notification_suppressed","1"):TT.storage.removeItem("float_notification_suppressed")})}$("#sticky-float-bottom-bar-icon").removeClass(),$("#sticky-float-bottom-bar-icon-frame").removeClass("sticky-float-bottom-bar-icon-placeholder"),e.length>0?($("#sticky-float-bottom-bar-icon").addClass(e),$("#sticky-float-bottom-bar-icon").show()):($("#sticky-float-bottom-bar-icon-frame").addClass("sticky-float-bottom-bar-icon-placeholder"),$("#sticky-float-bottom-bar-icon").hide()),$("#sticky-float-bottom-bar-title").html(o),$("#sticky-float-bottom-bar-content").html(n),s?($("#sticky-float-bottom-bar-title").addClass("checkbox"),$("#sticky-float-bottom-bar-content").addClass("checkbox"),$("#sticky-float-bottom-bar-checkbox").show()):($("#sticky-float-bottom-bar-title").removeClass("checkbox"),$("#sticky-float-bottom-bar-content").removeClass("checkbox"),$("#sticky-float-bottom-bar-checkbox").hide()),$("#sticky-float-bottom-bar-button").off("click",function(){}),gaSendEvent("notificaion","floating:show"),i&&i.length>0?($("#sticky-float-bottom-bar-button").removeClass("hide"),$("#sticky-float-bottom-bar-button").html(i),a&&a.length>0?$("#sticky-float-bottom-bar-button").attr("href",a):$("#sticky-float-bottom-bar-button").attr("href","javascript:HideBottomNotifcationBar()"),$("#sticky-float-bottom-bar-button").on("click",function(){window.location.href=$(this).attr("href")})):$("#sticky-float-bottom-bar-button").addClass("hide");var r=null;$("#sticky-float-bottom").animate({display:"block"},function(){$("#sticky-float-bottom").animate({bottom:"0px"});var e=0;t>0&&(e=1e3*t),e&&(r=setTimeout(function(){HideBottomNotifcationBar()},e))}
1),$("#sticky-float-bottom-bar").mouseover(function(){r&&(clearTimeout(r),r=null)}),$("#sticky-float-bottom-bar").mouseout(function(){r&&(clearTimeout(r),r=null),r=setTimeout(function(){HideBottomNotifcationBar()},1e3)})}function HideBottomNotifcationBar(){$("#sticky-float-bottom").animate({bottom:"-150px"},function(){$("#sticky-float-bottom").css("display","none")})}function CheckElementOfClassOnScreen(t,e){if(!($("."+t).length<1)){var o=$("."+t).offset().top,n=$("."+t).offset().top+$("."+t).outerHeight(),i=$(window).scrollTop()+$(window).innerHeight(),a=$(window).scrollTop();if(i>o&&a<n)e&&e();else{var s=!1;$(window).scroll(function(){if(!s){var o=$("."+t).offset().top,n=$("."+t).offset().top+$("."+t).outerHeight(),i=$(window).scrollTop()+$(window).innerHeight(),a=$(window).scrollTop();i>o&&a<n&&(s=!0,e&&e())}})}}}function CheckHintBubble(t){if(!TT.lSAva)return!1;if(0==GOLD_POINT_ENABLED)return!1;var e=null,o=null,n=null,i=0,a="",s="",r="",c=0;switch(t){case 1:e="member_post_new_topic",o="task_create_topic_visible",n="task_create_topic_done",i=16,a="create-topic",s="Make your first topic to earn 20 Gold Points!",r="bubble_task_create_topic",c=10;break;case 2:e="member_post_new_reply",o="task_create_reply_visible",n="task_create_reply_done",i=17,a="create-reply",s="Make your first reply to earn 5 Gold Points!",r="bubble_task_create_reply",c=10;break;case 3:e="member_post_first_like",o="task_first_like_visible",n="task_first_like_done",i=18,a="like-post",s="Like a post to earn 5 Gold Points!",r="bubble_task_first_like",c=20;break;default:return}if(localStorage.getItem(n))return!1;CheckElementOfClassOnScreen(e,function(){var t=localStorage.getItem(o);if(t++,localStorage.setItem(o,parseInt(t)),5==t||10==t||15==t){var e=new FormData;e.append("task_id",i),$.ajax({url:U_GET_TASK_STATUS,type:"post",data:e,dataType:"json",processData:!1,contentType:!1,success:function(t){if(t.status)if(0==t.task_status){var e=function(){$("#"+r).fadeOut(500,function(){$("#"+r).html(""),$("#"+r).removeClass()})};setTimeout(function(){var t='            <div class="speech-bubble '+a+'">\n                <div class="speech-goldpoint-coin"></div>\n                <div class="speech-task-desc">'+s+"</div>\n            </div>\n";$("#"+r).html(t),$("#"+r).addClass("speech-task-bubble "+a),$("#"+r).fadeIn(500,function(){var t=setTimeout(function(){e()},1e3*c);$("#"+r).mouseover(function(){t&&(clearTimeout(t),t=null)}),$("#"+r).mouseout(function(){t&&(clearTimeout(t),t=null),t=setTimeout(function(){e()},1e3)})})},1e3)}else localStorage.setItem(n,1);else localStorage.setItem(n,1),t.error&&console.warn("Error:"+t.error)},error:function(t){console.log(t)}})}})}if(TT.lSAva?(localStorage.getItem("n_donation_hide")<=now.getTime()&&1==DONATION_VISIBILITY||2==DONATION_VISIBILITY)&&updateDonationCampignAccordingToNavDonation():(TT.getTTOption("n_donation_hide")<=now.getTime()&&1==DONATION_VISIBILITY||2==DONATION_VISIBILITY)&&updateDonationCampignAccordingToNavDonation(),$(".usd_value").on("click",function(){$(".usd_value").removeClass("donate_select"),$(this).addClass("donate_select")}),$(".donate_type").on("click",function(){$(".donate_type").removeClass("donate_select"),$(this).addClass("donate_select")}),$(function(){ttg_update_bulk_actions()}),window.twttr=function(t,e,o){var n,i=t.getElementsByTagName(e)[0],a=window.twttr||{};return t.getElementById(o)||((n=t.createElement(e)).id=o,n.src="https://platform.twitter.com/widgets.js",i.parentNode.insertBefore(n,i),a._e=[],a.ready=function(t){a._e.push(t)}),a}(document,"script","twitter-wjs"),$(document).ready(function(){setTimeout(function(){try{twttr.events.bind("click",function(t){gaSendEvent("share-topic","twitter")})}catch(t){}},1e3),$.getScript("https://connect.facebook.net/en_UK/all.js",function(){FB.init({appId:"469687153111700",status:!0,cookie:!0,xfbml:!0,oauth:!0}),FB.Event.subscribe("edge.create",function(){gaSendEvent("share-topic","recommend")})})}),function(){var t=["#5c7cfa","#51cf66","#ffd43b","#ff6b6b","#74c0fc","#69db7c","#ffa8a8","#ff922b","#845ef7","#fd7e14","#20c997","#e64980","#495057","#868e96","#fa5252","#339af0"],e=[".thread-user-name .username-coloured",".thread-user-name .username",".account-dropdown-name .username-coloured",".account-dropdown-name .username",".account-dropdown-name a",".thread-user-card-name .username-coloured",".thread-user-card-name .username",".thread-user-card-name a",".profile-username",".display_username",".last-post-user .username-coloured",".last-post-user .username",".last-post-user a",".ucp-pm-mobile-author .username-coloured",".ucp-pm-mobile-author .username",".ucp-pm-desktop-body .username-coloured",".ucp-pm-desktop-body .username",".ttg-content-row-meta .username-coloured",".ttg-content-row-meta .username",".username-coloured",".username"];function o(t){return(t||"").replace(/\s+/g," ").replace(/^\s*(by|from|to)\s+/i,"").replace(/\s*(»|>|-)\s.*$/,"").trim()}function n(t){var e,n=t&&t.querySelector?t.querySelector(".notification-title"):null,i=n?n.textContent:t?t.textContent:"";return(e=(i=(i||"").replace(/\s+/g," ").trim()).match(/\b(?:by|from)\s+([^\s:"']+)/i))?o(e[1].replace(/[.,;:]+$/,"")):""}function i(e){var n=t.length,i=n*(n-1),a=function(t){t=o(t).toLowerCase();for(var e=0,n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e),e&=e;return Math.abs(e)}(e)%i,s=Math.floor(a/(n-1))%n;return[t[s],t[(s+(a%(n-1)+1))%n]]}function a(t,e){var n=document.createElement("span"),a=i(t),s=o(t);return n.className="avatar ttg-default-avatar",n.setAttribute("role","img"),n.setAttribute("aria-label",s?s+" avatar":"User avatar"),n.style.setProperty("--ttg-default-avatar-start",a[0]),n.style.setProperty("--ttg-default-avatar-end",a[1]),n.textContent=function(t){return(t=o(t))?t.charAt(0).toUpperCase():"?"}(t),e&&e.classList&&e.classList.contains("responsive-hide")&&n.classList.add("responsive-hide"),n}function s(t){var i,s;t&&t.parentNode&&(s=function(t){var e="";return t?(t.tagName&&"img"===t.tagName.toLowerCase()?e=t.getAttribute("src")||t.getAttribute("data-src")||"":(!(e=t.style&&t.style.backgroundImage?t.style.backgroundImage:"")&&window.getComputedStyle&&(e=window.getComputedStyle(t).backgroundImage||""),e=e.replace(/^url\(["']?/,"").replace(/["']?\)$/,"")),e):e}(t),-1!==(s=(s||"").toLowerCase()).indexOf("no_avatar")&&-1===s.indexOf("guest")&&0!==s.indexOf("data:")&&((i=a(t.getAttribute("data-ttg-avatar-seed")||function(t){var i,a,s,r=o(t.getAttribute&&(t.getAttribute("alt")||t.getAttribute("title"))),c=["a.header-avatar",".account-dropdown-main",".thread-user-card-header",".postprofile",".thread-user-detail",".profile",".member-row",".ttg-content-row",".ucp-pm-row",".ucp-notification-row","#notification_list li","li.row","dl.row-item",".pm-avatar-container"];
1if(/^(?:user\s+)?avatar$/i.test(r)&&(r=""),r)return r;for(a=0;a<c.length;a++)if(i=t.closest&&t.closest(c[a])){for(var l=0;l<e.length;l++)if((s=i.querySelector(e[l]))&&s!==t&&(s=o(s.textContent)))return s;if("#notification_list li"===c[a]&&(s=n(i)))return s}return(i=t.closest&&t.closest("a"))&&(s=o(i.textContent))?s:"?"}(t),t)).setAttribute("data-ttg-default-avatar-upgraded","1"),t.parentNode.replaceChild(i,t)))}function r(t){(t=t&&t.querySelectorAll?t:document).matches&&(t.matches("img")||t.matches("i.avatar-bg, span.avatar-bg"))&&s(t);for(var e=t.querySelectorAll("img, i.avatar-bg, span.avatar-bg"),o=0;o<e.length;o++)s(e[o])}if(window.ttgUpgradeDefaultAvatars=r,$(document).ready(function(){r(document)}),window.MutationObserver){var c=!1,l=new MutationObserver(function(){c||(c=!0,window.requestAnimFrame(function(){c=!1,r(document)}))});$(document).ready(function(){l.observe(document.body,{childList:!0,subtree:!0})})}}(),"function"!=typeof getFullConfigData)function getFullConfigData(){if($(".config_data_for_js").length>0)return JSON.parse($(".config_data_for_js").attr("data-for-js"))}var topicDataObj=void 0,configDataObj=void 0;function fast_register(t,e){gaSendEvent("one-click-join",t,"start"),window.location.href=null==e?BOARD_URL+"auth.php?action=ttid_login&fast_register=1&action_url="+encodeURIComponent(window.location.href):BOARD_URL+"auth.php?action=ttid_login&fast_register=1&action_url="+encodeURIComponent(e)}$(document).ready(function(){DecorateAvatar(),configDataObj=getFullConfigData()}),function(t){t.fn.buttonLoader=function(o){var n=t(this);"start"==o&&("disabled"==t(n).attr("disabled")&&e.preventDefault(),t(".has-spinner").attr("disabled","disabled"),t(n).attr("data-btn-text",t(n).text()),t(n).css("width",t(n).outerWidth()),t(n).html('<span class="spinner"><i class="fa fa-circle-o-notch fa-spin"></i></span>'),t(n).addClass("active")),"stop"==o&&(t(n).html(t(n).attr("data-btn-text")),t(n).removeClass("active"),t(".has-spinner").removeAttr("disabled"))}}(jQuery),window.ttgApplySceditorDarkMode=function(t){document.documentElement.classList.toggle("ttg-theme-dark",t),document.body&&document.body.classList.toggle("ttg-theme-dark",t),document.querySelectorAll(".sceditor-container iframe").forEach(function(e){try{var o=e.contentDocument;if(!o)return;o.documentElement&&o.documentElement.classList.toggle("dark",t),o.body&&o.body.classList.toggle("dark",t)}catch(t){}})},$(function(){var t=document.getElementById("tt_style");if(t&&/stylesheet-dark/.test(t.href)){var e=0,o=function(){window.ttgApplySceditorDarkMode(!0),++e<30&&setTimeout(o,200)};o()}}),function(){"use strict";if("undefined"!=typeof document){var t,e,o={},n=["#5c7cfa","#51cf66","#ffd43b","#ff6b6b","#74c0fc","#69db7c","#ffa8a8","#ff922b","#845ef7","#fd7e14","#20c997","#e64980","#495057","#868e96","#fa5252","#339af0"];"loading"===document.readyState?document.addEventListener("DOMContentLoaded",g):g()}function i(t){return(t||"").replace(/\s+/g," ").replace(/^@+/,"").trim()}function a(t){return i(t).toLowerCase()}function s(t){var e=n.length,o=e*(e-1),i=function(t){t=a(t);for(var e=0,o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e),e&=e;return Math.abs(e)}(t)%o,s=Math.floor(i/(e-1))%e;return[n[s],n[(s+(i%(e-1)+1))%e]]}function r(t){return t&&t.closest&&t.closest("em.mention a, a.ttg-mention-profile-link")}function c(t){for(var e=(t&&t.querySelectorAll?t:document).querySelectorAll("em.mention"),o=0;o<e.length;o++)l(e[o])}function l(t){var e=t.querySelector('a[href*="memberlist.php"]'),o=i(e?e.textContent:t.textContent);o&&(e||((e=document.createElement("a")).href=function(t){return"./memberlist.php?mode=viewprofile&un="+encodeURIComponent(t)}(o),e.textContent="@"+o,t.textContent="",t.appendChild(e)),e.classList.add("ttg-mention-profile-link"),e.setAttribute("data-ttg-mention-username",o),e.setAttribute("aria-haspopup","dialog"))}function d(t,e){var o=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div"),r=document.createElement("div"),c=document.createElement("a");return o.className="thread-user-detail ttg-mention-profile-card ttg-mention-profile-card-fallback",n.className="thread-user-card-header",i.className="thread-user-card-avatar",a.className="thread-user-card-identity",r.className="thread-user-card-name",c.className="ttg-mention-profile-card-link",r.textContent=e,c.href=t.href,c.textContent="View profile",i.appendChild(function(t){var e=document.createElement("span"),o=s(t);return e.className="avatar ttg-default-avatar",e.setAttribute("role","img"),e.setAttribute("aria-label",t+" avatar"),e.style.setProperty("--ttg-default-avatar-start",o[0]),e.style.setProperty("--ttg-default-avatar-end",o[1]),e.textContent=t?t.charAt(0).toUpperCase():"?",e}(e)),a.appendChild(r),a.appendChild(c),n.appendChild(i),n.appendChild(a),o.appendChild(n),o}function p(t){var e=i(t.getAttribute("data-ttg-mention-username")||t.textContent),o=function(t){for(var e=a(t),o=document.querySelectorAll(".postprofile"),n=0;n<o.length;n++){var i=o[n],s=i.querySelector(".thread-user-name .username, .thread-user-name .username-coloured, .thread-user-name a");if(s&&a(s.textContent)===e)return i.querySelector(".thread-user-detail")}return null}(e),n=o?o.cloneNode(!0):d(t,e);return n.classList.add("ttg-mention-profile-card"),n.removeAttribute("id"),n}function u(){return t||((t=document.createElement("div")).className="ttg-mention-profile-popover",t.setAttribute("role","dialog"),t.setAttribute("aria-label","Profile preview"),document.body.appendChild(t),t.addEventListener("mouseenter",h),t.addEventListener("mouseleave",f)),t}function h(){e&&(clearTimeout(e),e=null)}function f(){h(),e=setTimeout(_,140)}function _(){t&&t.classList.remove("is-visible")}function m(t){var e=u(),n=t.href||t.textContent;h(),o[n]||(o[n]=p(t)),e.innerHTML="",e.appendChild(o[n].cloneNode(!0)),e.classList.add("is-visible"),function(t){var e=u(),o=t.getBoundingClientRect(),n=Math.min(340,window.innerWidth-24),i=Math.max(12,Math.min(o.left+window.scrollX,window.scrollX+window.innerWidth-n-12)),a=o.bottom+window.scrollY+8;e.style.width=n+"px",e.style.left=i+"px",e.style.top=a+"px",e.offsetHeight&&a+e.offsetHeight>window.scrollY+window.innerHeight-12&&(e.style.top=Math.max(window.scrollY+12,o.top+window.scrollY-e.offsetHeight-8)+"px")}(t)}function g(){c(document),document.addEventListener("mouseover",function(t){var e=r(t.target);e&&m(e)}),document.addEventListener("mouseout",function(e){r(e.target)&&t&&!t.contains(e.relatedTarget)&&f()}),document.addEventListener("focusin",function(t){var e=r(t.target);e&&m(e)}),document.addEventListener("focusout",function(e){r(e.target)&&t&&!t.contains(e.relatedTarget)&&f()}),window.MutationObserver&&new MutationObserver(function(t){for(var e=0;e<t.length;e++)for(var o=0;o<t[e].addedNodes.length;o++)c(t[e].addedNodes[o])}).observe(document.body,{childList:!0,subtree:!0})}}(),function(){"use strict";
1if("undefined"!=typeof window&&window.visualViewport){var t=window.visualViewport,e=document.documentElement,o=document.body,n=null,i="true"===o.getAttribute("data-keyboard-open");t.addEventListener("resize",s),t.addEventListener("scroll",s),window.addEventListener("resize",s),window.addEventListener("orientationchange",s),a()}function a(){n=null;var a=Math.max(0,window.innerHeight-t.height),s=Math.max(0,a-t.offsetTop);e.style.setProperty("--app-height",t.height+"px"),e.style.setProperty("--keyboard-height",s+"px"),!i&&a>140?(i=!0,o.setAttribute("data-keyboard-open","true")):i&&a<80&&(i=!1,o.removeAttribute("data-keyboard-open"))}function s(){null===n&&(n=window.requestAnimationFrame(a))}}(),function(){"use strict";if("undefined"!=typeof document){var t=null,e=null,o=null,n=null,i=null,a=null;document.addEventListener("click",function(e){if(s()){var n=e.target.closest&&e.target.closest("ul.post-buttons .dropdown-trigger");n&&(t&&t.contains(e.target)||(e.preventDefault(),e.stopPropagation(),t&&t.classList.contains("is-open")&&o===n?l():c(n)))}},!0),document.addEventListener("keydown",function(e){"Escape"===e.key&&t&&t.classList.contains("is-open")&&l()}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d()}function s(){return!window.matchMedia("(pointer: fine) and (hover: hover) and (min-width: 769px)").matches}function r(t){if(t&&"function"==typeof t.focus)try{t.focus({preventScroll:!0})}catch(e){t.focus()}}
1function c(i){if(i){var a=i.parentNode&&i.parentNode.querySelector(".dropdown ul.dropdown-contents");if(!a){var s=i.closest&&i.closest(".post");s&&(a=s.querySelector("ul.post-buttons .dropdown ul.dropdown-contents"))}if(a){a.querySelectorAll("li > a, li > input, li");var c=[];if(a.querySelectorAll("li > a").forEach(function(t){c.push(t)}),0!==c.length){!function(){if(!t){(e=document.createElement("div")).className="post-action-sheet-backdrop",e.addEventListener("click",l),(t=document.createElement("div")).className="post-action-sheet",t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("aria-label","Post actions"),t.setAttribute("tabindex","-1");var o=document.createElement("div");o.className="post-action-sheet-handle",o.setAttribute("aria-hidden","true"),t.appendChild(o);var n=document.createElement("div");n.className="post-action-sheet-header",n.textContent="Post actions",t.appendChild(n);var i=document.createElement("ul");i.className="post-action-sheet-list",t.appendChild(i);var a=document.createElement("button");a.type="button",a.className="post-action-sheet-cancel",a.textContent="Cancel",a.addEventListener("click",l),t.appendChild(a),document.body.appendChild(e),document.body.appendChild(t);var s=null;t.addEventListener("touchstart",function(t){s=t.touches[0].clientY},{passive:!0}),t.addEventListener("touchmove",function(e){null!=s&&e.touches[0].clientY-s>60&&0===t.scrollTop&&(l(),s=null)},{passive:!0}),t.addEventListener("touchend",function(){s=null},{passive:!0})}}(),t.classList.contains("is-open")&&l(!1);var d=t.querySelector(".post-action-sheet-list");d.innerHTML="",c.forEach(function(t){var e=document.createElement("li"),o=document.createElement("button"),n=(t.textContent||t.title||"").trim(),i=function(t){var e=function(t){return(t||"").replace(/\s+/g," ").trim().toLowerCase()}(t),o={className:"",icon:"fa-ellipsis-h"};return-1!==e.indexOf("delete")||-1!==e.indexOf("remove")||-1!==e.indexOf("disapprove")?(o.className="is-danger",o.icon="fa-trash"):-1!==e.indexOf("report")?(o.className="is-warning",o.icon="fa-flag"):-1!==e.indexOf("approve")?(o.className="is-mod",o.icon="fa-check"):-1!==e.indexOf("lock")?(o.className="is-mod",o.icon="fa-lock"):-1!==e.indexOf("pin")?(o.className="is-mod",o.icon="fa-thumb-tack"):-1!==e.indexOf("poster")||-1!==e.indexOf("moderate")||-1!==e.indexOf("info")?(o.className="is-mod",o.icon="fa-wrench"):-1!==e.indexOf("message")||-1!==e.indexOf("pm")?o.icon="fa-envelope":-1!==e.indexOf("edit")?o.icon="fa-pencil":-1!==e.indexOf("quote")?o.icon="fa-quote-left":-1!==e.indexOf("share")&&(o.icon="fa-share-alt"),o}(n);o.type="button",o.className="post-action-sheet-item"+(i.className?" "+i.className:"");var a=t.querySelector("i.icon, .icon");if(a){var s=a.cloneNode(!0);o.appendChild(s)}else{var r=document.createElement("i");r.className="icon fa "+i.icon,r.setAttribute("aria-hidden","true"),o.appendChild(r)}var c=document.createElement("span");c.textContent=n,o.appendChild(c),o.addEventListener("click",function(e){e.preventDefault(),l(),setTimeout(function(){t.click()},50)}),e.appendChild(o),d.appendChild(e)}),o=i,n=document.activeElement,i.classList.add("is-active"),i.setAttribute("aria-expanded","true"),e.offsetHeight,e.classList.add("is-open"),t.classList.add("is-open"),document.documentElement.style.overflow="hidden";var p=t.querySelector(".post-action-sheet-item");r(p||t)}}}}function l(i){t&&(!1!==i&&o?r(o):!1!==i&&n&&r(n),o&&(o.classList.remove("is-active"),o.setAttribute("aria-expanded","false")),t.classList.remove("is-open"),e.classList.remove("is-open"),document.documentElement.style.overflow="",o=null,n=null)}function d(){document.addEventListener("touchstart",function(t){if(s()){var e=t.target.closest&&t.target.closest(".post .pb1 p.author, .post .post-profile-block");if(e&&(!t.target.closest||!t.target.closest("a, button, input"))){var o=t.touches[0];a={x:o.clientX,y:o.clientY},i=setTimeout(function(){i=null;var t=e.closest(".post");if(t){var o=t.querySelector("ul.post-buttons .dropdown-trigger");o&&(navigator.vibrate&&navigator.vibrate(10),c(o))}},500)}}},{passive:!0}),document.addEventListener("touchmove",function(t){if(null!=i&&null!=a){var e=t.touches[0],o=Math.abs(e.clientX-a.x),n=Math.abs(e.clientY-a.y);(o>8||n>8)&&(clearTimeout(i),i=null)}},{passive:!0}),document.addEventListener("touchend",function(){null!=i&&(clearTimeout(i),i=null),a=null},{passive:!0})}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.