/*!/wp-content/plugins/gp-premium/menu-plus/functions/js/sticky.min.js*/
try {
	function generateStickyDebounce(s,n,a){var o;return function(){var t=this,e=arguments,i=a&&!o;clearTimeout(o),o=setTimeout(function(){o=null,a||s.apply(t,e)},n),i&&s.apply(t,e)}}!function(M,E,W){function e(t,e){var i=0,s=0,n="",a=0,o=!1,r=!1,l=!1,c=!1,d=0,p=0,h=0,m=0,u=M(),f=M("body"),g=0,b=0,k=0,v=M(t).clone().css({visibility:"hidden",display:"none"}).attr({id:"sticky-placeholder","aria-hidden":!0,itemtype:null,itemscope:null}),y=M(),w={top:0,bottom:0,custom:[]},C={scrollHide:!1,lazyHeight:0,topMargin:"auto",keepInWrapper:!1,wrapperSelector:"",zIndex:1e4,namespaceClass:"stuckElement",fixedClass:"isStuck",disableOn:function(){return!0},transition:"none"},I=function(){var t=0<jQuery("#wpadminbar").length&&"fixed"==jQuery("#wpadminbar").css("position")?jQuery("#wpadminbar").outerHeight():0;return"auto"===C.topMargin?parseInt(t+u.css("marginTop")):isNaN(C.topMargin)&&0<C.topMargin.search("px")?parseInt(t+C.topMargin.replace("px","")):isNaN(parseInt(C.topMargin))?0:parseInt(t+C.topMargin)},H=function(){v.remove(),u.removeClass(C.fixedClass).css({"max-width":"","margin-top":"","margin-left":"","margin-right":"",position:"",top:"",left:"",right:"",bottom:"",width:"",opacity:"",height:"",overflow:"","-webkit-transform":"","-ms-transform":"",transform:"","-webkit-transition":"","-ms-transition":"",transition:"",visibility:"","z-index":""}).removeClass("sticky-navigation-transition").removeClass("navigation-transition").removeClass("sticky-nav-scrolling-up"),"sticky-navigation"===u.attr("id")&&u.attr("id","site-navigation"),l=r=o=!1,u.trigger("stickUp:unStick")},x=function(t){M(v).insertAfter(u).show().addClass(C.fixedClass);var e,i=v.offsetParent();t&&(u.css({position:"absolute"}),e=y.offset().top+y.outerHeight()-i.offset().top-p-parseInt(y.css("paddingBottom"))),u.css({position:"absolute",marginTop:b,bottom:"",left:v.position().left,top:t?e:u.offset().top-i.offset().top-b}),u.trigger("stickUp:holdIt")},S=function(){o=!0,C.zIndex&&u.css("z-index",C.zIndex),"fade"==C.transition&&u.hide(),"slide"!=C.transition&&!C.scrollHide||u.css({height:"0",overflow:"hidden",visibility:"hidden"}),M(v).insertAfter(u).show().addClass(C.fixedClass),M(".gen-sidebar-nav").length&&v.css("height",u.outerHeight()),"left"!=u.css("float")&&"right"!=u.css("float")||(v.css("float",u.css("float")),v.attr("style",v.attr("style")+"width:auto !important;")),"slide"==C.transition&&"block"==v.css("display")&&u.css({"-webkit-transform":"translateY(-100%)","-ms-transform":"translateY(-100%)",transform:"translateY(-100%)","-webkit-transition":"transform 300ms ease-in-out","-ms-transition":"transform 300ms ease-in-out",transition:"transform 300ms ease-in-out"}),u.addClass(C.fixedClass),"site-navigation"===u.attr("id")&&u.attr("id","sticky-navigation");var t=-k;u.css({"margin-top":b,position:"fixed",top:t+"px",left:"",right:"",bottom:""}),u.trigger("stickUp:stickIt"),"fade"==C.transition&&u.fadeIn(300),"slide"==C.transition&&u.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(t){u.css({visibility:"",height:"",overflow:""}),setTimeout(function(){u.css({"-webkit-transform":"translateY(0)","-ms-transform":"translateY(0)",transform:"translateY(0)"})},10)}),C.scrollHide&&u.css({height:"",overflow:"",visibility:""})},U=function(){v&&v.width()!==u.outerWidth()&&u.outerWidth(v.outerWidth())},z=function(t){var e;C.disableOn()?(c=c&&!1,(!C.keepInWrapper||y.is(":visible"))&&(s=M(t.target).scrollTop(),n=i<=s?"down":"up",a=Math.abs(i-s),M(E).outerHeight(),i=s,h=u.offset().top,d=parseInt(u.outerHeight()+b)+parseInt(u.css("marginBottom")),o||l||r||(parseInt(u.outerHeight(!0)),r||l?(w.top=parseInt(v.offset().top),parseInt(u.offset().left)):w.top=parseInt(u.offset().top)),p=parseInt(u.outerHeight())+parseInt(u.css("margin-bottom"))+b,C.keepInWrapper?w.bottom=y.offset().top+y.outerHeight()-parseInt(y.css("paddingBottom")):w.bottom=M(W).outerHeight(),m=u.offset().top+p,k=C.scrollHide?d+C.lazyHeight:C.lazyHeight,"none"!==C.transition&&(g=2*u.outerHeight()),b=null!==C.topMargin?I():0,o&&b!==u.css("margin-top")&&u.css("margin-top",b),(!o&&!r&&s>=w.top-b+k+g||r&&l&&s<=h-b+k)&&(S(),l=r=!(o=!0)),o&&!r&&s>=w.top-b+k+u.outerHeight()/2&&(v.addClass("sticky-navigation-transition"),u.addClass("sticky-navigation-transition")),C.keepInWrapper&&parseInt(m-b)!==parseInt(w.bottom)&&s>=w.bottom-p+k&&(x(!0),l=r=!(o=!1)),o&&(t=parseInt(u.css("top")),"up"===n&&0!==t?(e=-t<a?0:t+a,u.css("top",e+"px"),u.addClass("sticky-nav-scrolling-up")):"down"===n&&-k<t&&(e=k+t<a?-k:t-a,u.css("top",e+"px"),u.removeClass("sticky-nav-scrolling-up"))),(o||l||r)&&s<=w.top-b&&H(),o||l||r)&&U()):c||(H(),c=!0)},T=function(t){l&&(x(),r=!1),z(t)};!function(t,e){(u=M(t)).addClass(C.namespaceClass),e&&M.extend(!0,C,e),b=null!==C.topMargin?I():0,C.lazyHeight&&(b+=C.lazyHeight),C.keepInWrapper?(y=""!==C.wrapperSelector?u.closest(C.wrapperSelector):y).length||(y=u.parent()):y=f,M(E).on("scroll.stickUp",z),M(E).on("resize.stickUp",T),z({target:W})}.call(this,t,e),M(t).on("stickUp:detach",function(t){(u=M(this)).removeClass(C.namespaceClass),v.remove(),u.removeClass(C.fixedClass).css({maxWidth:"",marginTop:"",marginLeft:"",marginRight:"",position:"",top:"",left:"",right:"",bottom:"",width:""}),c=!(l=r=o=!1),M(E).off("scroll.stickUp",z),M(E).off("resize.stickUp",T)})}M.fn.stickUp=function(t){return this.each(function(){new e(this,t)})}}(jQuery,window,document),function(s){s.fn.GenerateSimpleSticky=function(t){var t=s.extend({menu:s(this),parent:!1,scrollHide:!1,offsetElement:"#wpadminbar",disableOn:function(){return!0},transition:"none"},t),e=s("body"),i=null,i=t.parent||t.menu.parent(),e=((0<t.menu.parents(".site-header").length||0<t.menu.parents(".generate-page-header").length||0<t.menu.parents(".header-wrap").length||0<t.menu.parents(".site-wrapper").length)&&(i=e),!e.hasClass("nav-right-sidebar")&&!e.hasClass("nav-left-sidebar")||s(".menu-toggle").is(":visible")||(t.menu=s(".gen-sidebar-nav"),i=s(".site-content"),t.menu.children().hasClass("auto-hide-sticky")),0<jQuery(t.offsetElement).length&&"fixed"==jQuery(t.offsetElement).css("position")&&jQuery(t.offsetElement).outerHeight(),{scrollHide:t.scrollHide,keepInWrapper:!0,wrapperSelector:i,fixedClass:"is_stuck navigation-stick navigation-clone",topMargin:0,disableOn:t.disableOn,transition:t.transition});t.menu.stickUp(e)}}(jQuery),jQuery(function(s){0 in window;function e(t){var e=t.getAttribute("href");t.pathname===window.location.pathname&&"#"!==e&&t.closest("nav").classList.contains("toggled")&&(t.closest("nav").classList.remove("toggled"),s("html").hasClass("mobile-menu-open"))&&s("html").removeClass("mobile-menu-open")}var t,i,n,a,o=s("body"),r="none",l=(o.hasClass("sticky-enabled")&&(t=s("#site-navigation"),o.hasClass("sticky-menu-fade")&&(r="fade"),o.hasClass("sticky-menu-slide")&&(r="slide"),i=!!t.hasClass("auto-hide-sticky"),n={transition:r,scrollHide:i,disableOn:function(){var t=s("body"),e=s("#mobile-header"),i=s(".menu-toggle");return!(t.hasClass("desktop-sticky-menu")&&i.is(":visible")||t.hasClass("mobile-sticky-menu")&&!i.is(":visible")||t.hasClass("mobile-header")&&e.is(":visible"))}},s(t).GenerateSimpleSticky(n),o.on("generate_navigation_location_updated",function(){t.trigger("stickUp:detach"),setTimeout(function(){s(t).GenerateSimpleSticky(n)},250)})),o.hasClass("mobile-header")&&o.hasClass("mobile-header-sticky")&&(a=s("#mobile-header")).GenerateSimpleSticky({scrollHide:!(!a.data("auto-hide-sticky")&&""!==a.data("auto-hide-sticky")),disableOn:function(){return!!a.is(":visible")}}),s(".sidebar-nav-mobile")),c=s(".gen-sidebar-nav"),d=s(window).width(),r=generateStickyDebounce(function(){d!==s(window).width()&&(l.is(":visible")&&(c.trigger("stickUp:detach"),l.trigger("stickUp:detach"),l.GenerateSimpleSticky(n)),c.is(":visible"))&&(l.trigger("stickUp:detach"),c.trigger("stickUp:detach"),c.GenerateSimpleSticky(n))},250);s("body").hasClass("sticky-enabled")&&l.length&&(window.addEventListener("resize",r),window.addEventListener("orientationchange",r)),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(o.hasClass("sticky-enabled")||o.hasClass("mobile-header")&&o.hasClass("mobile-header-sticky"))&&s(document).on("focus",".navigation-stick .search-field",function(){s("html, body").animate({scrollTop:0},"fast")});(o.hasClass("both-sticky-menu")||o.hasClass("mobile-sticky-menu"))&&s(".main-navigation:not(#mobile-header) ul a[href*=\\#]").on("click",function(t){e(this)}),o.hasClass("mobile-header-sticky")&&s("#mobile-header ul a[href*=\\#]").on("click",function(t){e(this)})});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/gp-premium/menu-plus/functions/js/sticky.min.js?ver=2.4.1 - Error: " + err.message); 
}
/*!/wp-content/plugins/gp-premium/menu-plus/functions/js/offside.min.js*/
try {
	/* [inline: cdata] */var offSide={"side":"right"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/gp-premium/menu-plus/functions/js/offside.min.js?ver=2.4.1 - Error: " + err.message); 
}try {
	!function(a,c,u){"use strict";var e={getInstance:function(e,t){return a.offside.factory||(a.offside.factory=n(t)),a.offside.factory.getOffsideInstance(e,t)}};function n(e){var t,p=function(e){0<k.length&&(isNaN(e)?k.forEach(function(e){x[e].close()}):x[e].close())},b=function(){h(C,i)},h=function(e,t){e.classList?e.classList.add(t):e.className=(e.className+" "+t).trim()},S=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},L=function(e,t,n){e.addEventListener(t,n)},A=function(e,t,n){e.removeEventListener(t,n)},E=function(e){return e instanceof HTMLElement?[e]:Array.isArray(e)?e:"string"==typeof e&&Array.apply(null,c.querySelectorAll(e))},O=function(e,t){e=e.indexOf(t);return-1<e&&e},n={slidingElementsSelector:".offside-sliding-element",disableCss3dTransforms:!1,debug:!1};for(t in e)n.hasOwnProperty(t)&&(n[t]=e[t]);var q="offside-js",o=q+"--init",i=q+"--interact",x=[],w=!0,s=!n.disableCss3dTransforms&&function(){if(!a.getComputedStyle)return!1;var e,t,n=c.createElement("p"),o={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};for(t in c.body.insertBefore(n,null),o)n.style[t]!==u&&(n.style[t]="translate3d(1px,1px,1px)",e=a.getComputedStyle(n).getPropertyValue(o[t]));return c.body.removeChild(n),e!==u&&0<e.length&&"none"!==e}(),k=[],C=c.body,r=E(n.slidingElementsSelector),T=n.debug;function l(e,t,n){var o,i={buttonsSelector:"",slidingSide:"left",init:function(){},beforeOpen:function(){},afterOpen:function(){},beforeClose:function(){},afterClose:function(){},beforeDestroy:function(){},afterDestroy:function(){}};for(o in t)i.hasOwnProperty(o)&&(i[o]=t[o]);var s=e,r=E(i.buttonsSelector),e=i.slidingSide,l="offside",a=l+"--"+e,c="is-open",u=q+"--is-open",d=q+"--is-"+e,f=n||0,m=function(){(!1===O(k,f)?g:y)()},g=function(){i.beforeOpen(),w&&(w=!1,b()),p(),h(C,u),h(C,d),h(s,c),k.push(f),i.afterOpen()},y=function(){var e=O(k,f);!1!==e&&(i.beforeClose(),S(C,u),S(C,d),S(s,c),k.splice(e,1),i.afterClose())},v=function(e){e.preventDefault(),m()},e=function(){s||console.error('Offside alert: "offside" selector could not match any element'),r.length||console.error('Offside alert: "buttonsSelector" selector could not match any element')};this.toggle=function(){m()},this.open=function(){g()},this.close=function(){y()},this.closeAll=function(){p()},this.destroy=function(){i.beforeDestroy(),y(),r.forEach(function(e){A(e,"click",v)}),S(s,l),S(s,a),delete x[f],i.afterDestroy()},T&&e(),h(s,l),h(s,a),r.forEach(function(e){L(e,"click",v)}),i.init()}return r.forEach(function(e){h(e,"offside-sliding-element")}),s||h(c.documentElement,"no-csstransforms3d"),h(C,o),{closeOpenOffside:function(){p()},getOffsideInstance:function(e,t){var n,o=x.length||0,e=(t=t,n=o,!1!==(e=E((e=e)!==u?e:".offside"))?new l(e[0],t,n):null);if(null!==e)return x[o]=e}}}"undefined"!=typeof module&&module.exports?module.exports=e.getInstance:a.offside=e.getInstance}(window,document);for(var generateOffside=offside(".slideout-navigation",{slidingElementsSelector:"#slideout-container",buttonsSelector:".slideout-mobile .main-navigation .menu-toggle, .slideout-both .main-navigation .menu-toggle, .slideout-both .slideout-toggle, .slideout-desktop .slideout-toggle",slidingSide:offSide.side,beforeOpen:function(){document.querySelector(".slideout-navigation").classList.add("slideout-transition")},afterOpen:function(){if(setTimeout(function(){document.querySelector(".slideout-navigation").classList.remove("slideout-transition")},10),document.documentElement.classList.add("slide-opened"),document.body.classList.add("slide-opened"),document.body.classList.contains("dropdown-hover"))for(var e=document.querySelector(".slideout-navigation").querySelectorAll("li.menu-item-has-children"),t=0;t<e.length;t++){var n=e[t].querySelector("span.dropdown-menu-toggle");n&&(n.setAttribute("tabindex",0),n.setAttribute("role","button"),n.setAttribute("aria-expanded",!0))}var o=document.querySelector(".slideout-navigation").querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');o&&setTimeout(function(){o[0].focus()},200)},beforeClose:function(){document.querySelector(".slideout-navigation").classList.add("slideout-transition")},afterClose:function(){setTimeout(function(){document.querySelector(".slideout-navigation").classList.remove("slideout-transition")},500);for(var e=document.body,t=document.querySelectorAll(".main-navigation"),n=0;n<t.length;n++)t[n].classList.contains("toggled")&&t[n].classList.remove("toggled");if(document.documentElement.classList.remove("slide-opened"),e.classList.remove("slide-opened"),"true"===document.querySelector(".main-navigation .menu-toggle").getAttribute("aria-expanded")&&document.querySelector(".main-navigation .menu-toggle").setAttribute("aria-expanded",!1),e.classList.contains("dropdown-hover"))for(var o=document.querySelector(".main-navigation:not(.slideout-navigation):not(.mobile-menu-control-wrapper)").querySelectorAll("li.menu-item-has-children"),n=0;n<o.length;n++){var i=o[n].querySelector("span.dropdown-menu-toggle");i&&(i.removeAttribute("tabindex"),i.setAttribute("role","presentation"),i.removeAttribute("aria-expanded"))}}}),closeElements=document.querySelectorAll(".slideout-overlay, .slideout-exit, .slider-exit a"),i=0;i<closeElements.length;i++)closeElements[i].addEventListener("click",function(e){e.preventDefault(),generateOffside.close()});for(var slideoutLinks=document.querySelectorAll(".slideout-navigation ul a"),closeOffsideOnAction=function(){var e=this.getAttribute("href");"#"===e||""===e||navigator.userAgent.match(/iemobile/i)||setTimeout(function(){generateOffside.close()},200)},i=0;i<slideoutLinks.length;i++)slideoutLinks[i].addEventListener("click",closeOffsideOnAction,!1);document.addEventListener("keyup",function(e){document.body.classList.contains("slide-opened")&&27==(e=e||window.event).keyCode&&(generateOffside.close(),e=document.body,window.document.documentElement.clientWidth<=768?(e.classList.contains("slideout-mobile")||e.classList.contains("slideout-both"))&&document.querySelectorAll(".main-navigation:not(.slideout-navigation)").forEach(function(e){e&&"none"!==e.style.display&&e.querySelector(".menu-toggle").focus()}):(e.classList.contains("slideout-desktop")||e.classList.contains("slideout-both"))&&document.querySelectorAll(".main-navigation:not(.slideout-navigation)").forEach(function(e){e&&"none"!==e.style.display&&e.querySelector(".slideout-toggle a").focus()}))});for(var toggles=document.querySelectorAll(".slideout-toggle a"),i=0;i<toggles.length;i++)toggles[i].addEventListener("keypress",function(e){" "===e.key&&(e.preventDefault(),generateOffside.open())});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/gp-premium/menu-plus/functions/js/offside.min.js?ver=2.4.1 - Error: " + err.message); 
}
/*!/wp-includes/js/backbone.min.js*/
try {
	/*! This file is auto-generated */
!function(n){var s="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,e,i){s.Backbone=n(s,i,t,e)});else if("undefined"!=typeof exports){var t,e=require("underscore");try{t=require("jquery")}catch(t){}n(s,exports,e,t)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(function(t,h,b,e){function a(t,e,i,n,s){var r,o=0;if(i&&"object"==typeof i){void 0!==n&&"context"in s&&void 0===s.context&&(s.context=n);for(r=b.keys(i);o<r.length;o++)e=a(t,e,r[o],i[r[o]],s)}else if(i&&c.test(i))for(r=i.split(c);o<r.length;o++)e=t(e,r[o],n,s);else e=t(e,i,n,s);return e}function x(t,e,i){i=Math.min(Math.max(i,0),t.length);for(var n=Array(t.length-i),s=e.length,r=0;r<n.length;r++)n[r]=t[r+i];for(r=0;r<s;r++)t[r+i]=e[r];for(r=0;r<n.length;r++)t[r+s+i]=n[r]}function s(i,n,t,s){b.each(t,function(t,e){n[e]&&(i.prototype[e]=function(n,t,s,r){switch(t){case 1:return function(){return n[s](this[r])};case 2:return function(t){return n[s](this[r],t)};case 3:return function(t,e){return n[s](this[r],T(t,this),e)};case 4:return function(t,e,i){return n[s](this[r],T(t,this),e,i)};default:return function(){var t=l.call(arguments);return t.unshift(this[r]),n[s].apply(n,t)}}}(n,t,e,s))})}var o,i=t.Backbone,l=Array.prototype.slice,e=(h.VERSION="1.5.0",h.$=e,h.noConflict=function(){return t.Backbone=i,this},h.emulateHTTP=!1,h.emulateJSON=!1,h.Events={}),c=/\s+/,n=(e.on=function(t,e,i){return this._events=a(n,this._events||{},t,e,{context:i,ctx:this,listening:o}),o&&(((this._listeners||(this._listeners={}))[o.id]=o).interop=!1),this},e.listenTo=function(t,e,i){if(t){var n=t._listenId||(t._listenId=b.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),r=o=s[n],s=(r||(this._listenId||(this._listenId=b.uniqueId("l")),r=o=s[n]=new g(this,t)),u(t,e,i,this));if(o=void 0,s)throw s;r.interop&&r.on(e,i)}return this},function(t,e,i,n){var s,r;return i&&(e=t[e]||(t[e]=[]),s=n.context,r=n.ctx,(n=n.listening)&&n.count++,e.push({callback:i,context:s,ctx:s||r,listening:n})),t}),u=function(t,e,i,n){try{t.on(e,i,n)}catch(t){return t}},r=(e.off=function(t,e,i){return this._events&&(this._events=a(r,this._events,t,e,{context:i,listeners:this._listeners})),this},e.stopListening=function(t,e,i){var n=this._listeningTo;if(n){for(var s=t?[t._listenId]:b.keys(n),r=0;r<s.length;r++){var o=n[s[r]];if(!o)break;o.obj.off(e,i,this),o.interop&&o.off(e,i)}b.isEmpty(n)&&(this._listeningTo=void 0)}return this},function(t,e,i,n){if(t){var s,r=n.context,o=n.listeners,h=0;if(e||r||i){for(s=e?[e]:b.keys(t);h<s.length;h++){var a=t[e=s[h]];if(!a)break;for(var l=[],c=0;c<a.length;c++){var u=a[c];i&&i!==u.callback&&i!==u.callback._callback||r&&r!==u.context?l.push(u):(u=u.listening)&&u.off(e,i)}l.length?t[e]=l:delete t[e]}return t}for(s=b.keys(o);h<s.length;h++)o[s[h]].cleanup()}}),d=(e.once=function(t,e,i){var n=a(d,{},t,e,this.off.bind(this));return this.on(n,e="string"==typeof t&&null==i?void 0:e,i)},e.listenToOnce=function(t,e,i){e=a(d,{},e,i,this.stopListening.bind(this,t));return this.listenTo(t,e)},function(t,e,i,n){var s;return i&&((s=t[e]=b.once(function(){n(e,s),i.apply(this,arguments)}))._callback=i),t}),f=(e.trigger=function(t){if(this._events){for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];a(f,this._events,t,void 0,i)}return this},function(t,e,i,n){var s,r;return t&&(s=t[e],r=t.all,s&&(r=r&&r.slice()),s&&p(s,n),r)&&p(r,[e].concat(n)),t}),p=function(t,e){var i,n=-1,s=t.length,r=e[0],o=e[1],h=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o,h);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}},g=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0},v=(g.prototype.on=e.on,g.prototype.off=function(t,e){t=this.interop?(this._events=a(r,this._events,t,e,{context:void 0,listeners:void 0}),!this._events):(this.count--,0===this.count);t&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},e.bind=e.on,e.unbind=e.off,b.extend(h,e),h.Model=function(t,e){var i=t||{},n=(e=e||{},this.preinitialize.apply(this,arguments),this.cid=b.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),b.result(this,"defaults")),i=b.defaults(b.extend({},n,i),n);this.set(i,e),this.changed={},this.initialize.apply(this,arguments)}),m=(b.extend(v.prototype,e,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return b.clone(this.attributes)},sync:function(){return h.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return b.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!b.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null!=t){var n;if("object"==typeof t?(n=t,i=e):(n={})[t]=e,!this._validate(n,i=i||{}))return!1;var s,r,o=i.unset,t=i.silent,h=[],a=this._changing,l=(this._changing=!0,a||(this._previousAttributes=b.clone(this.attributes),this.changed={}),this.attributes),c=this.changed,u=this._previousAttributes;for(s in n)e=n[s],b.isEqual(l[s],e)||h.push(s),b.isEqual(u[s],e)?delete c[s]:c[s]=e,o?delete l[s]:l[s]=e;if(this.idAttribute in n&&(r=this.id,this.id=this.get(this.idAttribute),this.trigger("changeId",this,r,i)),!t){h.length&&(this._pending=i);for(var d=0;d<h.length;d++)this.trigger("change:"+h[d],this,l[h[d]],i)}if(!a){if(!t)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);this._pending=!1,this._changing=!1}}return this},unset:function(t,e){return this.set(t,void 0,b.extend({},e,{unset:!0}))},clear:function(t){var e,i={};for(e in this.attributes)i[e]=void 0;return this.set(i,b.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!b.isEmpty(this.changed):b.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&b.clone(this.changed);var e,i,n=this._changing?this._previousAttributes:this.attributes,s={};for(i in t){var r=t[i];b.isEqual(n[i],r)||(s[i]=r,e=!0)}return!!e&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return b.clone(this._previousAttributes)},fetch:function(i){i=b.extend({parse:!0},i);var n=this,s=i.success;return i.success=function(t){var e=i.parse?n.parse(t,i):t;if(!n.set(e,i))return!1;s&&s.call(i.context,n,t,i),n.trigger("sync",n,t,i)},N(this,i),this.sync("read",this,i)},save:function(t,e,i){null==t||"object"==typeof t?(n=t,i=e):(n={})[t]=e;var n,s=(i=b.extend({validate:!0,parse:!0},i)).wait;if(n&&!s){if(!this.set(n,i))return!1}else if(!this._validate(n,i))return!1;var r=this,o=i.success,h=this.attributes,t=(i.success=function(t){r.attributes=h;var e=i.parse?r.parse(t,i):t;if((e=s?b.extend({},n,e):e)&&!r.set(e,i))return!1;o&&o.call(i.context,r,t,i),r.trigger("sync",r,t,i)},N(this,i),n&&s&&(this.attributes=b.extend({},h,n)),this.isNew()?"create":i.patch?"patch":"update"),e=("patch"!=t||i.attrs||(i.attrs=n),this.sync(t,this,i));return this.attributes=h,e},destroy:function(e){e=e?b.clone(e):{};function i(){n.stopListening(),n.trigger("destroy",n,n.collection,e)}var n=this,s=e.success,r=e.wait,t=!(e.success=function(t){r&&i(),s&&s.call(e.context,n,t,e),n.isNew()||n.trigger("sync",n,t,e)});return this.isNew()?b.defer(e.success):(N(this,e),t=this.sync("delete",this,e)),r||i(),t},url:function(){var t,e=b.result(this,"urlRoot")||b.result(this.collection,"url")||R();return this.isNew()?e:(t=this.get(this.idAttribute),e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t))},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},b.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=b.extend({},this.attributes,t);t=this.validationError=this.validate(t,e)||null;return!t||(this.trigger("invalid",this,t,b.extend(e,{validationError:t})),!1)}}),h.Collection=function(t,e){e=e||{},this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,b.extend({silent:!0},e))}),w={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},y=(b.extend(m.prototype,e,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return h.sync.apply(this,arguments)},add:function(t,e){return this.set(t,b.extend({merge:!1},e,_))},remove:function(t,e){e=b.extend({},e);var i=!b.isArray(t),t=(t=i?[t]:t.slice(),this._removeModels(t,e));return!e.silent&&t.length&&(e.changes={added:[],merged:[],removed:t},this.trigger("update",this,e)),i?t[0]:t},set:function(t,e){if(null!=t){(e=b.extend({},w,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);for(var i=!b.isArray(t),n=(t=i?[t]:t.slice(),e.at),s=((n=(n=null!=n?+n:n)>this.length?this.length:n)<0&&(n+=this.length+1),[]),r=[],o=[],h=[],a={},l=e.add,c=e.merge,u=e.remove,d=!1,f=this.comparator&&null==n&&!1!==e.sort,p=b.isString(this.comparator)?this.comparator:null,g=0;g<t.length;g++){var v,m=t[g],_=this.get(m);_?(c&&m!==_&&(v=this._isModel(m)?m.attributes:m,e.parse&&(v=_.parse(v,e)),_.set(v,e),o.push(_),f)&&!d&&(d=_.hasChanged(p)),a[_.cid]||(a[_.cid]=!0,s.push(_)),t[g]=_):l&&(m=t[g]=this._prepareModel(m,e))&&(r.push(m),this._addReference(m,e),a[m.cid]=!0,s.push(m))}if(u){for(g=0;g<this.length;g++)a[(m=this.models[g]).cid]||h.push(m);h.length&&this._removeModels(h,e)}var y=!1;if(s.length&&(!f&&l&&u)?(y=this.length!==s.length||b.some(this.models,function(t,e){return t!==s[e]}),this.models.length=0,x(this.models,s,0),this.length=this.models.length):r.length&&(f&&(d=!0),x(this.models,r,null==n?this.length:n),this.length=this.models.length),d&&this.sort({silent:!0}),!e.silent){for(g=0;g<r.length;g++)null!=n&&(e.index=n+g),(m=r[g]).trigger("add",m,this,e);(d||y)&&this.trigger("sort",this,e),(r.length||h.length||o.length)&&(e.changes={added:r,removed:h,merged:o},this.trigger("update",this,e))}return i?t[0]:t}},reset:function(t,e){e=e?b.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,b.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,b.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,b.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return l.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t=t||{};var i=e.length;return b.isFunction(e)&&(e=e.bind(this)),1===i||b.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(i){var n=(i=b.extend({parse:!0},i)).success,s=this;return i.success=function(t){var e=i.reset?"reset":"set";s[e](t,i),n&&n.call(i.context,s,t,i),s.trigger("sync",s,t,i)},N(this,i),this.sync("read",this,i)},create:function(t,e){var n=(e=e?b.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;n||this.add(t,e);var s=this,r=e.success;return e.success=function(t,e,i){n&&(t.off("error",this._forwardPristineError,this),s.add(t,i)),r&&r.call(i.context,t,e,i)},n&&t.once("error",this._forwardPristineError,this),t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new E(this,S)},keys:function(){return new E(this,I)},entries:function(){return new E(this,k)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):(t=((e=e?b.clone(e):{}).collection=this).model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,t.validationError,e),!1):t},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s,r,o=this.get(t[n]);o&&(s=this.indexOf(o),this.models.splice(s,1),this.length--,delete this._byId[o.cid],null!=(r=this.modelId(o.attributes,o.idAttribute))&&delete this._byId[r],e.silent||(e.index=s,o.trigger("remove",o,this,e)),i.push(o),this._removeReference(o,e))}return 0<t.length&&!e.silent&&delete e.index,i},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes,t.idAttribute);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes,t.idAttribute);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;var s,r;"destroy"===t&&this.remove(e,n),"changeId"===t&&(s=this.modelId(e.previousAttributes(),e.idAttribute),r=this.modelId(e.attributes,e.idAttribute),null!=s&&delete this._byId[s],null!=r)&&(this._byId[r]=e)}this.trigger.apply(this,arguments)},_forwardPristineError:function(t,e,i){this.has(t)||this._onModelEvent("error",t,e,i)}}),"function"==typeof Symbol&&Symbol.iterator),E=(y&&(m.prototype[y]=m.prototype.values),function(t,e){this._collection=t,this._kind=e,this._index=0}),S=1,I=2,k=3,y=(y&&(E.prototype[y]=function(){return this}),E.prototype.next=function(){if(this._collection){var t,e;if(this._index<this._collection.length)return t=this._collection.at(this._index),this._index++,{value:this._kind===S?t:(e=this._collection.modelId(t.attributes,t.idAttribute),this._kind===I?e:[e,t]),done:!1};this._collection=void 0}return{value:void 0,done:!0}},h.View=function(t){this.cid=b.uniqueId("view"),this.preinitialize.apply(this,arguments),b.extend(this,b.pick(t,P)),this._ensureElement(),this.initialize.apply(this,arguments)}),A=/^(\S+)\s*(.*)$/,P=["model","collection","el","id","attributes","className","tagName","events"],T=(b.extend(y.prototype,e,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof h.$?t:h.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t=t||b.result(this,"events"))for(var e in this.undelegateEvents(),t){var i=t[e];(i=b.isFunction(i)?i:this[i])&&(e=e.match(A),this.delegate(e[1],e[2],i.bind(this)))}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){var t;this.el?this.setElement(b.result(this,"el")):(t=b.extend({},b.result(this,"attributes")),this.id&&(t.id=b.result(this,"id")),this.className&&(t.class=b.result(this,"className")),this.setElement(this._createElement(b.result(this,"tagName"))),this._setAttributes(t))},_setAttributes:function(t){this.$el.attr(t)}}),function(e,t){var i;return b.isFunction(e)?e:b.isObject(e)&&!t._isModel(e)?(i=b.matches(e),function(t){return i(t.attributes)}):b.isString(e)?function(t){return t.get(e)}:e}),H=(b.each([[m,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(t){var i=t[0],e=t[1],n=t[2];i.mixin=function(t){var e=b.reduce(b.functions(t),function(t,e){return t[e]=0,t},{});s(i,t,e,n)},s(i,b,e,n)}),h.sync=function(t,e,n){var i,s=H[t],r=(b.defaults(n=n||{},{emulateHTTP:h.emulateHTTP,emulateJSON:h.emulateJSON}),{type:s,dataType:"json"}),o=(n.url||(r.url=b.result(e,"url")||R()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),!n.emulateHTTP||"PUT"!==s&&"DELETE"!==s&&"PATCH"!==s||(r.type="POST",n.emulateJSON&&(r.data._method=s),i=n.beforeSend,n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),i)return i.apply(this,arguments)}),"GET"===r.type||n.emulateJSON||(r.processData=!1),n.error),t=(n.error=function(t,e,i){n.textStatus=e,n.errorThrown=i,o&&o.call(n.context,t,e,i)},n.xhr=h.ajax(b.extend(r,n)));return e.trigger("request",e,t,n),t},{create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"}),$=(h.ajax=function(){return h.$.ajax.apply(h.$,arguments)},h.Router=function(t){t=t||{},this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)}),C=/\((.*?)\)/g,j=/(\(\?)?:\w+/g,O=/\*\w+/g,U=/[\-{}\[\]+?.,\\\^$|#\s]/g,M=(b.extend($.prototype,e,{preinitialize:function(){},initialize:function(){},route:function(e,i,n){b.isRegExp(e)||(e=this._routeToRegExp(e)),b.isFunction(i)&&(n=i,i=""),n=n||this[i];var s=this;return h.history.route(e,function(t){t=s._extractParameters(e,t);!1!==s.execute(n,t,i)&&(s.trigger.apply(s,["route:"+i].concat(t)),s.trigger("route",i,t),h.history.trigger("route",s,i,t))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,e){return h.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=b.result(this,"routes");for(var t,e=b.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(U,"\\$&").replace(C,"(?:$1)?").replace(j,function(t,e){return e?t:"([^/?]+)"}).replace(O,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return b.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}}),h.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)}),z=/^[#\/]|\s+$/g,q=/^\/+|\/+$/g,F=/#.*$/,R=(M.started=!1,b.extend(M.prototype,e,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){t=(t||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return(t=null==t?this._usePushState||!this._wantsHashChange?this.getPath():this.getHash():t).replace(z,"")},start:function(t){if(M.started)throw new Error("Backbone.history has already been started");if(M.started=!0,this.options=b.extend({root:"/"},this.options,t),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||7<document.documentMode),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(q,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return t=this.root.slice(0,-1)||"/",this.location.replace(t+"#"+this.getPath()),!0;this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}this._hasHashChange||!this._wantsHashChange||this._usePushState||(this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1,(t=(t=document.body).insertBefore(this.iframe,t.firstChild).contentWindow).document.open(),t.document.close(),t.location.hash="#"+this.fragment);t=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?t("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if((e=e===this.fragment&&this.iframe?this.getHash(this.iframe.contentWindow):e)===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),b.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(t,e){if(!M.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root,i=(i=this._trailingSlash||""!==t&&"?"!==t.charAt(0)?i:i.slice(0,-1)||"/")+t,n=(t=t.replace(F,""),this.decodeFragment(t));if(this.fragment!==n){if(this.fragment=n,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)&&(n=this.iframe.contentWindow,e.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){i?(i=t.href.replace(/(javascript:|#).*$/,""),t.replace(i+"#"+e)):t.hash="#"+e}}),h.history=new M,v.extend=m.extend=$.extend=y.extend=M.extend=function(t,e){var i=this,n=t&&b.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)};return b.extend(n,i,e),n.prototype=b.create(i.prototype,t),(n.prototype.constructor=n).__super__=i.prototype,n},function(){throw new Error('A "url" property or function must be specified')}),N=function(e,i){var n=i.error;i.error=function(t){n&&n.call(i.context,e,t,i),e.trigger("error",e,t,i)}};return h});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-includes/js/backbone.min.js?ver=1.5.0 - Error: " + err.message); 
}
/*!/wp-includes/js/api-request.min.js*/
try {
	/*! This file is auto-generated */
!function(c){var w=window.wpApiSettings;function t(e){return e=t.buildAjaxOptions(e),t.transport(e)}t.buildAjaxOptions=function(e){var t,n,a,p,o,r,i=e.url,d=e.path,s=e.method;for(r in"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(t=e.namespace.replace(/^\/|\/$/g,""),d=(n=e.endpoint.replace(/^\//,""))?t+"/"+n:t),"string"==typeof d&&(n=w.root,d=d.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(d=d.replace("?","&")),i=n+d),p=!(e.data&&e.data._wpnonce),o=!0,a=e.headers||{})if(a.hasOwnProperty(r))switch(r.toLowerCase()){case"x-wp-nonce":p=!1;break;case"accept":o=!1}return p&&(a=c.extend({"X-WP-Nonce":w.nonce},a)),o&&(a=c.extend({Accept:"application/json, */*;q=0.1"},a)),"string"!=typeof s||"PUT"!==(s=s.toUpperCase())&&"DELETE"!==s||(a=c.extend({"X-HTTP-Method-Override":s},a),s="POST"),delete(e=c.extend({},e,{headers:a,url:i,method:s})).path,delete e.namespace,delete e.endpoint,e},t.transport=c.ajax,window.wp=window.wp||{},window.wp.apiRequest=t}(jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-includes/js/api-request.min.js?ver=ae28eeba0ffc5a36684f94be64e14df5 - Error: " + err.message); 
}
/*!/wp-includes/js/wp-api.min.js*/
try {
	/*! This file is auto-generated */
!function(e){"use strict";e.wp=e.wp||{},wp.api=wp.api||new function(){this.models={},this.collections={},this.views={}},wp.api.versionString=wp.api.versionString||"wp/v2/",!_.isFunction(_.includes)&&_.isFunction(_.contains)&&(_.includes=_.contains)}(window),function(e){"use strict";var t,i;e.wp=e.wp||{},wp.api=wp.api||{},wp.api.utils=wp.api.utils||{},wp.api.getModelByRoute=function(t){return _.find(wp.api.models,function(e){return e.prototype.route&&t===e.prototype.route.index})},wp.api.getCollectionByRoute=function(t){return _.find(wp.api.collections,function(e){return e.prototype.route&&t===e.prototype.route.index})},Date.prototype.toISOString||(t=function(e){return i=1===(i=String(e)).length?"0"+i:i},Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+t(this.getUTCMonth()+1)+"-"+t(this.getUTCDate())+"T"+t(this.getUTCHours())+":"+t(this.getUTCMinutes())+":"+t(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}),wp.api.utils.parseISO8601=function(e){var t,i,n,o,s=0,a=[1,4,5,6,7,10,11];if(i=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(e)){for(n=0;o=a[n];++n)i[o]=+i[o]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,"Z"!==i[8]&&void 0!==i[9]&&(s=60*i[10]+i[11],"+"===i[9])&&(s=0-s),t=Date.UTC(i[1],i[2],i[3],i[4],i[5]+s,i[6],i[7])}else t=Date.parse?Date.parse(e):NaN;return t},wp.api.utils.getRootUrl=function(){return e.location.origin?e.location.origin+"/":e.location.protocol+"//"+e.location.host+"/"},wp.api.utils.capitalize=function(e){return _.isUndefined(e)?e:e.charAt(0).toUpperCase()+e.slice(1)},wp.api.utils.capitalizeAndCamelCaseDashes=function(e){return _.isUndefined(e)?e:(e=wp.api.utils.capitalize(e),wp.api.utils.camelCaseDashes(e))},wp.api.utils.camelCaseDashes=function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},wp.api.utils.extractRoutePart=function(e,t,i,n){return t=t||1,i=i||wp.api.versionString,i=(e=0===e.indexOf("/"+i)?e.substr(i.length+1):e).split("/"),n&&(i=i.reverse()),_.isUndefined(i[--t])?"":i[t]},wp.api.utils.extractParentName=function(e){var t=e.lastIndexOf("_id>[\\d]+)/");return t<0?"":((e=(e=e.substr(0,t-1)).split("/")).pop(),e.pop())},wp.api.utils.decorateFromRoute=function(e,t){_.each(e,function(e){_.includes(e.methods,"POST")||_.includes(e.methods,"PUT")?_.isEmpty(e.args)||(_.isEmpty(t.prototype.args)?t.prototype.args=e.args:t.prototype.args=_.extend(t.prototype.args,e.args)):_.includes(e.methods,"GET")&&!_.isEmpty(e.args)&&(_.isEmpty(t.prototype.options)?t.prototype.options=e.args:t.prototype.options=_.extend(t.prototype.options,e.args))})},wp.api.utils.addMixinsAndHelpers=function(t,e,i){function n(e,t,i,n,o){var s,a=jQuery.Deferred(),e=e.get("_embedded")||{};return _.isNumber(t)&&0!==t?(s=(s=e[n]?_.findWhere(e[n],{id:t}):s)||{id:t},(e=new wp.api.models[i](s)).get(o)?a.resolve(e):e.fetch({success:function(e){a.resolve(e)},error:function(e,t){a.reject(t)}}),a.promise()):(a.reject(),a)}function p(e,t){_.each(e.models,function(e){e.set("parent_post",t)})}var o=!1,s=["date","modified","date_gmt","modified_gmt"],a={setDate:function(e,t){t=t||"date";if(_.indexOf(s,t)<0)return!1;this.set(t,e.toISOString())},getDate:function(e){var e=e||"date",t=this.get(e);return!(_.indexOf(s,e)<0||_.isNull(t))&&new Date(wp.api.utils.parseISO8601(t))}},r={getMeta:function(e){return this.get("meta")[e]},getMetas:function(){return this.get("meta")},setMetas:function(e){var t=this.get("meta");_.extend(t,e),this.set("meta",t)},setMeta:function(e,t){var i=this.get("meta");i[e]=t,this.set("meta",i)}},c={getRevisions:function(){return e=this,t="PostRevisions",s=o="",a=jQuery.Deferred(),r=e.get("id"),e=e.get("_embedded")||{},_.isNumber(r)&&0!==r?(_.isUndefined(i)||_.isUndefined(e[i])?o={parent:r}:s=_.isUndefined(n)?e[i]:e[i][n],e=new wp.api.collections[t](s,o),_.isUndefined(e.models[0])?e.fetch({success:function(e){p(e,r),a.resolve(e)},error:function(e,t){a.reject(t)}}):(p(e,r),a.resolve(e)),a.promise()):(a.reject(),a);var e,t,i,n,o,s,a,r}},d={getTags:function(){var e=this.get("tags"),t=new wp.api.collections.Tags;return _.isEmpty(e)?jQuery.Deferred().resolve([]):t.fetch({data:{include:e}})},setTags:function(e){var i,n=this,o=[];if(_.isString(e))return!1;_.isArray(e)?(new wp.api.collections.Tags).fetch({data:{per_page:100},success:function(t){_.each(e,function(e){(i=new wp.api.models.Tag(t.findWhere({slug:e}))).set("parent_post",n.get("id")),o.push(i)}),e=new wp.api.collections.Tags(o),n.setTagsWithCollection(e)}}):this.setTagsWithCollection(e)},setTagsWithCollection:function(e){return this.set("tags",e.pluck("id")),this.save()}},l={getCategories:function(){var e=this.get("categories"),t=new wp.api.collections.Categories;return _.isEmpty(e)?jQuery.Deferred().resolve([]):t.fetch({data:{include:e}})},setCategories:function(e){var i,n=this,o=[];if(_.isString(e))return!1;_.isArray(e)?(new wp.api.collections.Categories).fetch({data:{per_page:100},success:function(t){_.each(e,function(e){(i=new wp.api.models.Category(t.findWhere({slug:e}))).set("parent_post",n.get("id")),o.push(i)}),e=new wp.api.collections.Categories(o),n.setCategoriesWithCollection(e)}}):this.setCategoriesWithCollection(e)},setCategoriesWithCollection:function(e){return this.set("categories",e.pluck("id")),this.save()}},u={getAuthorUser:function(){return n(this,this.get("author"),"User","author","name")}},g={getFeaturedMedia:function(){return n(this,this.get("featured_media"),"Media","wp:featuredmedia","source_url")}};return t=_.isUndefined(t.prototype.args)||(_.each(s,function(e){_.isUndefined(t.prototype.args[e])||(o=!0)}),o&&(t=t.extend(a)),_.isUndefined(t.prototype.args.author)||(t=t.extend(u)),_.isUndefined(t.prototype.args.featured_media)||(t=t.extend(g)),_.isUndefined(t.prototype.args.categories)||(t=t.extend(l)),_.isUndefined(t.prototype.args.meta)||(t=t.extend(r)),_.isUndefined(t.prototype.args.tags)||(t=t.extend(d)),_.isUndefined(i.collections[e+"Revisions"]))?t:t.extend(c)}}(window),function(){"use strict";var i=window.wpApiSettings||{},e=["Comment","Media","Comment","Post","Page","Status","Taxonomy","Type"];wp.api.WPApiBaseModel=Backbone.Model.extend({initialize:function(){-1===_.indexOf(e,this.name)&&(this.requireForceForDelete=!0)},sync:function(e,t,i){var n;return i=i||{},_.isNull(t.get("date_gmt"))&&t.unset("date_gmt"),_.isEmpty(t.get("slug"))&&t.unset("slug"),_.isFunction(t.nonce)&&!_.isEmpty(t.nonce())&&(n=i.beforeSend,i.beforeSend=function(e){if(e.setRequestHeader("X-WP-Nonce",t.nonce()),n)return n.apply(this,arguments)},i.complete=function(e){e=e.getResponseHeader("X-WP-Nonce");e&&_.isFunction(t.nonce)&&t.nonce()!==e&&t.endpointModel.set("nonce",e)}),this.requireForceForDelete&&"delete"===e&&(t.url=t.url()+"?force=true"),Backbone.sync(e,t,i)},save:function(e,t){return!(!_.includes(this.methods,"PUT")&&!_.includes(this.methods,"POST"))&&Backbone.Model.prototype.save.call(this,e,t)},destroy:function(e){return!!_.includes(this.methods,"DELETE")&&Backbone.Model.prototype.destroy.call(this,e)}}),wp.api.models.Schema=wp.api.WPApiBaseModel.extend({defaults:{_links:{},namespace:null,routes:{}},initialize:function(e,t){t=t||{},wp.api.WPApiBaseModel.prototype.initialize.call(this,e,t),this.apiRoot=t.apiRoot||i.root,this.versionString=t.versionString||i.versionString},url:function(){return this.apiRoot+this.versionString}})}(),function(){"use strict";window.wpApiSettings;wp.api.WPApiBaseCollection=Backbone.Collection.extend({initialize:function(e,t){this.state={data:{},currentPage:null,totalPages:null,totalObjects:null},_.isUndefined(t)?this.parent="":this.parent=t.parent},sync:function(e,t,i){var n,o,s=this;return i=i||{},_.isFunction(t.nonce)&&!_.isEmpty(t.nonce())&&(n=i.beforeSend,i.beforeSend=function(e){if(e.setRequestHeader("X-WP-Nonce",t.nonce()),n)return n.apply(s,arguments)},i.complete=function(e){e=e.getResponseHeader("X-WP-Nonce");e&&_.isFunction(t.nonce)&&t.nonce()!==e&&t.endpointModel.set("nonce",e)}),"read"===e&&(i.data?(s.state.data=_.clone(i.data),delete s.state.data.page):s.state.data=i.data={},void 0===i.data.page?(s.state.currentPage=null,s.state.totalPages=null,s.state.totalObjects=null):s.state.currentPage=i.data.page-1,o=i.success,i.success=function(e,t,i){if(_.isUndefined(i)||(s.state.totalPages=parseInt(i.getResponseHeader("x-wp-totalpages"),10),s.state.totalObjects=parseInt(i.getResponseHeader("x-wp-total"),10)),null===s.state.currentPage?s.state.currentPage=1:s.state.currentPage++,o)return o.apply(this,arguments)}),Backbone.sync(e,t,i)},more:function(e){if((e=e||{}).data=e.data||{},_.extend(e.data,this.state.data),void 0===e.data.page){if(!this.hasMore())return!1;null===this.state.currentPage||this.state.currentPage<=1?e.data.page=2:e.data.page=this.state.currentPage+1}return this.fetch(e)},hasMore:function(){return null===this.state.totalPages||null===this.state.totalObjects||null===this.state.currentPage?null:this.state.currentPage<this.state.totalPages}})}(),function(){"use strict";var o,s={},c=window.wpApiSettings||{};window.wp=window.wp||{},wp.api=wp.api||{},_.isEmpty(c)&&(c.root=window.location.origin+"/wp-json/"),o=Backbone.Model.extend({defaults:{apiRoot:c.root,versionString:wp.api.versionString,nonce:null,schema:null,models:{},collections:{}},initialize:function(){var e,t=this;Backbone.Model.prototype.initialize.apply(t,arguments),e=jQuery.Deferred(),t.schemaConstructed=e.promise(),t.schemaModel=new wp.api.models.Schema(null,{apiRoot:t.get("apiRoot"),versionString:t.get("versionString"),nonce:t.get("nonce")}),t.schemaModel.once("change",function(){t.constructFromSchema(),e.resolve(t)}),t.get("schema")?t.schemaModel.set(t.schemaModel.parse(t.get("schema"))):!_.isUndefined(sessionStorage)&&(_.isUndefined(c.cacheSchema)||c.cacheSchema)&&sessionStorage.getItem("wp-api-schema-model"+t.get("apiRoot")+t.get("versionString"))?t.schemaModel.set(t.schemaModel.parse(JSON.parse(sessionStorage.getItem("wp-api-schema-model"+t.get("apiRoot")+t.get("versionString"))))):t.schemaModel.fetch({success:function(e){if(!_.isUndefined(sessionStorage)&&(_.isUndefined(c.cacheSchema)||c.cacheSchema))try{sessionStorage.setItem("wp-api-schema-model"+t.get("apiRoot")+t.get("versionString"),JSON.stringify(e))}catch(e){}},error:function(e){window.console.log(e)}})},constructFromSchema:function(){var s=this,a=c.mapping||{models:{Categories:"Category",Comments:"Comment",Pages:"Page",PagesMeta:"PageMeta",PagesRevisions:"PageRevision",Posts:"Post",PostsCategories:"PostCategory",PostsRevisions:"PostRevision",PostsTags:"PostTag",Schema:"Schema",Statuses:"Status",Tags:"Tag",Taxonomies:"Taxonomy",Types:"Type",Users:"User"},collections:{PagesMeta:"PageMeta",PagesRevisions:"PageRevisions",PostsCategories:"PostCategories",PostsMeta:"PostMeta",PostsRevisions:"PostRevisions",PostsTags:"PostTags"}},e=s.get("modelEndpoints"),i=new RegExp("(?:.*[+)]|/("+e.join("|")+"))$"),n=[],o=[],r=s.get("apiRoot").replace(wp.api.utils.getRootUrl(),""),p={models:{},collections:{}};_.each(s.schemaModel.get("routes"),function(e,t){t!==s.get(" versionString")&&t!==r&&t!=="/"+s.get("versionString").slice(0,-1)&&(i.test(t)?n:o).push({index:t,route:e})}),_.each(n,function(e){var t,i=wp.api.utils.extractRoutePart(e.index,2,s.get("versionString"),!0),n=wp.api.utils.extractRoutePart(e.index,1,s.get("versionString"),!1),o=wp.api.utils.extractRoutePart(e.index,1,s.get("versionString"),!0);n===s.get("versionString")&&(n=""),"me"===o&&(i="me"),""!==n&&n!==i?(t=wp.api.utils.capitalizeAndCamelCaseDashes(n)+wp.api.utils.capitalizeAndCamelCaseDashes(i),t=a.models[t]||t,p.models[t]=wp.api.WPApiBaseModel.extend({url:function(){var e=s.get("apiRoot")+s.get("versionString")+n+"/"+(_.isUndefined(this.get("parent"))||0===this.get("parent")?_.isUndefined(this.get("parent_post"))?"":this.get("parent_post")+"/":this.get("parent")+"/")+i;return _.isUndefined(this.get("id"))||(e+="/"+this.get("id")),e},nonce:function(){return s.get("nonce")},endpointModel:s,route:e,name:t,methods:e.route.methods,endpoints:e.route.endpoints})):(t=wp.api.utils.capitalizeAndCamelCaseDashes(i),t=a.models[t]||t,p.models[t]=wp.api.WPApiBaseModel.extend({url:function(){var e=s.get("apiRoot")+s.get("versionString")+("me"===i?"users/me":i);return _.isUndefined(this.get("id"))||(e+="/"+this.get("id")),e},nonce:function(){return s.get("nonce")},endpointModel:s,route:e,name:t,methods:e.route.methods,endpoints:e.route.endpoints})),wp.api.utils.decorateFromRoute(e.route.endpoints,p.models[t],s.get("versionString"))}),_.each(o,function(e){var t,i,n=e.index.slice(e.index.lastIndexOf("/")+1),o=wp.api.utils.extractRoutePart(e.index,1,s.get("versionString"),!1);""!==o&&o!==n&&s.get("versionString")!==o?(t=wp.api.utils.capitalizeAndCamelCaseDashes(o)+wp.api.utils.capitalizeAndCamelCaseDashes(n),i=a.models[t]||t,t=a.collections[t]||t,p.collections[t]=wp.api.WPApiBaseCollection.extend({url:function(){return s.get("apiRoot")+s.get("versionString")+o+"/"+(_.isUndefined(this.parent)||""===this.parent?_.isUndefined(this.get("parent_post"))?"":this.get("parent_post")+"/":this.parent+"/")+n},model:function(e,t){return new p.models[i](e,t)},nonce:function(){return s.get("nonce")},endpointModel:s,name:t,route:e,methods:e.route.methods})):(t=wp.api.utils.capitalizeAndCamelCaseDashes(n),i=a.models[t]||t,t=a.collections[t]||t,p.collections[t]=wp.api.WPApiBaseCollection.extend({url:function(){return s.get("apiRoot")+s.get("versionString")+n},model:function(e,t){return new p.models[i](e,t)},nonce:function(){return s.get("nonce")},endpointModel:s,name:t,route:e,methods:e.route.methods})),wp.api.utils.decorateFromRoute(e.route.endpoints,p.collections[t])}),_.each(p.models,function(e,t){p.models[t]=wp.api.utils.addMixinsAndHelpers(e,t,p)}),s.set("models",p.models),s.set("collections",p.collections)}}),wp.api.endpoints=new Backbone.Collection,wp.api.init=function(e){var t,i,n={};return e=e||{},n.nonce=_.isString(e.nonce)?e.nonce:c.nonce||"",n.apiRoot=e.apiRoot||c.root||"/wp-json",n.versionString=e.versionString||c.versionString||"wp/v2/",n.schema=e.schema||null,n.modelEndpoints=e.modelEndpoints||["me","settings"],n.schema||n.apiRoot!==c.root||n.versionString!==c.versionString||(n.schema=c.schema),s[n.apiRoot+n.versionString]||(e=(e=wp.api.endpoints.findWhere({apiRoot:n.apiRoot,versionString:n.versionString}))||new o(n),i=(t=jQuery.Deferred()).promise(),e.schemaConstructed.done(function(e){wp.api.endpoints.add(e),wp.api.models=_.extend(wp.api.models,e.get("models")),wp.api.collections=_.extend(wp.api.collections,e.get("collections")),t.resolve(e)}),s[n.apiRoot+n.versionString]=i),s[n.apiRoot+n.versionString]},wp.api.loadPromise=wp.api.init()}();
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-includes/js/wp-api.min.js?ver=ae28eeba0ffc5a36684f94be64e14df5 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/core.min.js*/
try {
	!function i(o,r,s){function a(t,e){if(!r[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=r[t]={exports:{}},o[t][0].call(n.exports,function(e){return a(o[t][1][e]||e)},n,n.exports,i,o,r,s)}return r[t].exports}for(var l="function"==typeof require&&require,e=0;e<s.length;e++)a(s[e]);return a}({1:[function(e,t,n){!function(t){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e,o=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e},r="undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null;n.default=class{constructor(){this.counter=0,this.priority=0,this.requests=[],this.queue=[]}addToQueue(e){this.queue.push(e),this.queue.sort((e,t)=>+e.priority-t.priority),setTimeout(()=>this.execQueue(),1)}execQueue(){if(this.queue.length){let i=this.queue[0];if(!(8<=this.requests.length&&-1!==i.priority||this.requests.length&&i.priority>this.priority)){this.queue.shift(),this.priority=i.priority;let t=++this.counter;var e={url:i.url,type:i.method.toUpperCase(),data:i.data,dataType:"json"},e=(0===e.url.indexOf(r.rest_url)?e.beforeSend=e=>e.setRequestHeader("X-WP-Nonce",r.rest_nonce):0===e.url.indexOf(r.ajaxurl_legacy)&&(e.beforeSend=e=>e.setRequestHeader("X-PeepSo-Nonce",r.peepso_nonce)),o.default.ajax(e).done((e,t,n)=>{!i.url.match("auth.login")&&e.session_timeout?(e.login_dialog&&(peepsodata.login_dialog=e.login_dialog),i.defer.reject(n,t),(0,o.default)(window).trigger("peepso_auth_required")):i.defer.resolve(e,t,n)}).fail((e,t,n)=>{e.responseJSON?i.defer.resolve(e.responseJSON,t,e):e.responseText?i.defer.reject(e,t,r.ajax_exception_text):i.defer.reject(e,t)}).always(()=>{for(let e=this.requests.length-1;0<=e;e--)if(this.requests[e].id===t){this.requests.splice(e,1);break}this.execQueue()}));this.requests.push({id:t,xhr:e})}}}get(t,n={},i=10){return o.default.Deferred(e=>{-1===t.indexOf("/")&&(t=""+r.ajaxurl_legacy+t),this.addToQueue({method:"get",url:t,data:n,priority:i,defer:e})})}post(t,n={},i=10){return o.default.Deferred(e=>{-1===t.indexOf("/")&&(t=""+r.ajaxurl_legacy+t),this.addToQueue({method:"post",url:t,data:n,priority:i,defer:e})})}delete(t,n={},i=10){return o.default.Deferred(e=>{-1===t.indexOf("/")&&(t=""+r.ajaxurl_legacy+t),this.addToQueue({method:"delete",url:t,data:n,priority:i,defer:e})})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(d,e,u){!function(l){!function(){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.isTouch=u.isMobile=u.isIOS=u.isHidden=u.isAndroid=void 0;var e="undefined"!=typeof window?window._:void 0!==l?l._:null,n=t(d("./observer")),i=t(d("./hooks"));function t(e){return e&&e.__esModule?e:{default:e}}const o=navigator.userAgent;u.isIOS=(0,e.memoize)(()=>/iphone|ipad|ipod/i.test(o)),u.isAndroid=(0,e.memoize)(()=>/android/i.test(o)),u.isMobile=(0,e.memoize)(()=>/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(o)),u.isTouch=(0,e.memoize)(()=>"ontouchstart"in document.documentElement);const r=()=>void 0!==document.hidden&&document.hidden;u.isHidden=r,document.addEventListener("visibilitychange",function(){r()?n.default.doAction("browser.inactive"):n.default.doAction("browser.active")}),window.addEventListener("beforeunload",e=>{if(n.default.applyFilters("beforeunload",!1))return(e||window.event).returnValue=null});let s=window.innerWidth||document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;window.addEventListener("resize",(0,e.debounce)(()=>{var e=window.innerWidth||document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;e===s&&t===a||(s=e,a=t,n.default.doAction("browser.resize",{width:s,height:a}),i.default.doAction("browser_resize",{width:s,height:a}))},1e3))}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./hooks":5,"./observer":14}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=class{constructor(e,t={}){this.elem=e,this.opts=t,this.elem.addEventListener("keydown",e=>this.onKeydown(e)),this.elem.addEventListener("keyup",e=>this.onKeyup(e)),this.elem.addEventListener("input",e=>this.onInput(e)),this.elem.addEventListener("paste",e=>this.onPaste(e)),this.normalize()}value(e){if(void 0===e)return(e=(e=(e=(e=this.elem.innerHTML).replace(/<span[^>]+data-value=(['"])([\s\S]*?)\1[\s\S]*?<\/span>/gi,"$2")).replace(/<br>/gi,"\n")).replace(/&nbsp;/gi," ")).trim();let t=e;t=(t=t.replace(/(\r\n|\r|\n)/g,"<br>")).replace(/[ ]{2}/g,"&nbsp; "),this.elem.innerHTML=t,this.normalize()}normalize(e){if(this.elem.innerText.trim()){this.saveCaretPosition();let e=this.elem.lastChild;for(;e&&e.nodeType===Node.TEXT_NODE&&!e.textContent.trim();)e=e.previousSibling;e&&"BR"!==e.tagName&&this.elem.appendChild(document.createElement("br")),[...this.elem.childNodes].forEach(e=>{var t;e.nodeType===Node.TEXT_NODE&&(t=e.previousSibling)&&t.nodeType===Node.TEXT_NODE&&(t.textContent+=e.textContent,e.remove())}),"function"==typeof this.opts.transform&&this.opts.transform(this.elem,this),this.restoreCaretPosition()}else this.elem.innerHTML="",this.elem.focus()}onKeydown(e){if(this.disableInput&&13===e.keyCode)e.preventDefault(),e.stopPropagation();else if(13===e.keyCode){e.preventDefault();var i=window.getSelection();if(i.rangeCount){let t=i.getRangeAt(0);var o=document.createElement("br");t.insertNode(o),(t=document.createRange()).setStartAfter(o),t.collapse(!0),i.removeAllRanges(),i.addRange(t);let n=t.commonAncestorContainer;if((n=n.nodeType===Node.TEXT_NODE?n.parentNode:n)!==this.elem){var r=[];let e=o;for(;e;)r.push(e),e=e.nextSibling;var s,i=n.nextSibling;i&&i.nodeType===Node.TEXT_NODE&&(s=r[r.length-1]).nodeType===Node.TEXT_NODE&&(i.textContent=s.textContent+i.textContent,r.pop(),s.remove()),n.after.apply(n,r),t.setStartAfter(o),t.collapse()}requestAnimationFrame(()=>{this.normalize(e),"function"==typeof this.opts.onChange&&this.opts.onChange(this)})}}}onKeyup(e){this.disableInput&&13===e.keyCode&&(e.preventDefault(),e.stopPropagation())}onInput(e){requestAnimationFrame(()=>{this.normalize(e),"function"==typeof this.opts.onChange&&this.opts.onChange(this)})}onPaste(e){var t=e.clipboardData||window.clipboardData;if(!t)return!1;var n=window.getSelection();if(!n.rangeCount)return!1;n.deleteFromDocument(),e.preventDefault();var t=t.getData("text").replace(/(\r\n|\r|\n)/g,"<br>"),i=document.createElement("div");let o=n.getRangeAt(0);i.innerHTML=t,[...i.childNodes].forEach(e=>{o.insertNode(e),o.setStartAfter(e),o.collapse(!0)}),requestAnimationFrame(()=>{this.normalize(e),"function"==typeof this.opts.onChange&&this.opts.onChange(this)})}caretMarker(){return"‍‍"}saveCaretPosition(){var t=window.getSelection();if(!t.rangeCount)return!1;var n=this.caretMarker(),t=t.getRangeAt(0),i=t.startContainer;if(i.nodeType===Node.ELEMENT_NODE)t.collapse(!0),t.insertNode(document.createTextNode(n));else if(i.nodeType===Node.TEXT_NODE){let e=i.textContent;t=t.startOffset;e=""+e.substring(0,t)+n+e.substring(t),i.textContent=e}}restoreCaretPosition(){let r=this.caretMarker();var t=function n(i){let o;for(let e=0,t=[...i.childNodes];e<t.length;e++)if(t[e].nodeType===Node.ELEMENT_NODE){if(o=n(t[e]))break}else if(t[e].nodeType===Node.TEXT_NODE&&t[e].textContent.match(r)){o=t[e];break}return o}(this.elem);if(t){let e=t.textContent;var n=e.indexOf(r),i=(e=e.replace(r,""),t.textContent=e,window.getSelection()),o=document.createRange();o.setStart(t,n),o.collapse(!0),i.removeAllRanges(),i.addRange(o)}}}},{}],4:[function(e,t,p){!function(c){!function(){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(...e){return new u(...e)};var i=(e="undefined"!=typeof window?window.jQuery:void 0!==c?c.jQuery:null)&&e.__esModule?e:{default:e},n="undefined"!=typeof window?window.peepso:void 0!==c?c.peepso:null,e="undefined"!=typeof window?window.peepsodata:void 0!==c?c.peepsodata:null;const o=e.dialog&&e.dialog.template,r=e.dialog&&e.dialog.text_title_default,s=e.dialog&&e.dialog.text_title_error,t=e.dialog&&e.dialog.text_title_confirm,a=e.dialog&&e.dialog.text_button_cancel,l=e.dialog&&e.dialog.text_button_ok,d={title:"",actions:null,wide:!1,focusOnShow:!0,closeButton:!0,closeOnEsc:!0,destroyOnClose:!0,onClose:!1};class u{constructor(e,t={}){this.html=e,t.error&&!t.title&&(t.title=s);try{var n=(0,i.default)("<div/>").append(this.html).find("script[data-name=opts]").text().trim();n&&(t=i.default.extend({},t,JSON.parse(n)))}catch(e){}this.opts=i.default.extend({},d,t||{})}render(){var e,t;return this.$el||(e=this.html,t=i.default.extend({title:r},this.opts),this.$el=(0,i.default)((0,n.template)(o)({html:e,opts:t})).hide(),this.$el.addClass("ps-js-modal"),this.$header=this.$el.find(".ps-js-header").eq(0),this.$title=this.$header.find(".ps-js-title"),this.$body=this.$el.find(".ps-js-body").eq(0),this.$footer=this.$el.find(".ps-js-footer").eq(0),this.$close=this.$header.find(".ps-js-close"),this.$el.appendTo(document.body),t.closeButton?(this.$close.off("click").show(),this.$close.on("click",e=>{e.preventDefault(),this.hide()})):this.$close.off("click").hide(),this.$footer.on("mouseenter","[data-mouseover-icon]",this.onBtnMouseOver.bind(this)).on("mouseleave","[data-mouseover-icon]",this.onBtnMouseOut.bind(this))),this}show(){return(0,i.default)("html").addClass("ps-modal-is--open"),this.render(),this.$el.show(),this.opts.focusOnShow&&this.$body.find("input[type=text],input[type=password],select,textarea").eq(0).focus(),this.opts.closeOnEsc&&(0,i.default)(document).one("keyup.ps-modal",e=>{27===e.keyCode&&this.hide()}),this}hide(){return this.$el&&this.$el.hide(),(0,i.default)(document.body).children(".ps-js-modal").filter(":visible").length||(0,i.default)("html").removeClass("ps-modal-is--open"),"function"==typeof this.opts.onClose&&this.opts.onClose(),this.opts.destroyOnClose&&this.destroy(),this}autohide(){return setTimeout(()=>{this.$el&&this.$el.is(":visible")&&this.$el.fadeOut(()=>this.hide())},2e3),this}destroy(){return this.$el&&(this.$el.remove(),delete this.$el,delete this.$header,delete this.$title,delete this.$body,delete this.$footer),this}error(){return this.opts.title=this.opts.title||s,this.show()}confirm(e){return this.opts.title=this.opts.title||t,this.opts.actions=this.opts.actions||[{label:a,class:"ps-js-cancel"},{label:l,class:"ps-js-submit",primary:!0}],"function"!=typeof e&&(e=function(){}),this.render(),this.$footer.on("click",".ps-js-cancel",()=>{this.hide(),e(!1)}),this.$footer.on("click",".ps-js-submit",()=>{this.hide(),e(!0)}),this.show()}title(e){return void 0===e?this.opts.title:(this.opts.title=e,this.$title&&this.$title.html(e),this)}onBtnMouseOver(e){var e=(0,i.default)(e.currentTarget),t=e.children("i"),e=e.data("mouseover-icon");e&&(t.data("icon",t.attr("class")),t.attr("class",e))}onBtnMouseOut(e){var e=(0,i.default)(e.currentTarget).children("i"),t=e.data("icon");t&&(e.attr("class",t),e.removeData("icon"))}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function(){let s={};function n(e,t,n,i=10){if("function"!=typeof n)throw new Error("The callback parameter must be a function.");if("number"!=typeof i)throw new Error("The priority parameter must be a number.");let o=s[e],r=(o=o||(s[e]=[])).length;for(;0<r&&!(i>=o[r-1].priority);r--);o.splice(r,0,{name:t,callback:n,priority:i})}function i(e,t){if(void 0===t)delete s[e];else{var n=s[e];if(n){for(let e=n.length-1;0<=e;e--)n[e].name===t&&n.splice(e,1);n.length||delete s[e]}}}function o(e,n,...i){let t=s[e],o;return n&&(o=i[0]),t&&t.forEach(e=>{try{var t=e.callback.apply(null,i);n&&(o=i[0]=t)}catch(e){}}),o}return{addFilter(e,...t){return n("filter/"+e,...t)},removeFilter(e,...t){return i("filter/"+e,...t)},applyFilters(e,...t){return o("filter/"+e,!0,...t)},addAction(e,...t){return n("action/"+e,...t)},removeAction(e,...t){return i("action/"+e,...t)},doAction(e,...t){return o("action/"+e,!1,...t)}}}()},{}],6:[function(e,t,n){"use strict";var i=v(e("object-assign")),o=(e("./peepso"),v(e("./ajax"))),r=v(e("./contenteditable")),s=v(e("./hooks")),a=v(e("./observer")),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};t=m(t);if(t&&t.has(e))return t.get(e);var n,i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var r;"default"!==n&&{}.hasOwnProperty.call(e,n)&&((r=o?Object.getOwnPropertyDescriptor(e,n):null)&&(r.get||r.set)?Object.defineProperty(i,n,r):i[n]=e[n])}return i.default=e,t&&t.set(e,i),i}(e("./browser")),d=(e("./link"),v(e("./util"))),u=v(e("./local-storage")),c=(e("../npm-expanded"),e("../pswindow"),e("../peepso"),v(e("./dialog"))),p=v(e("./user")),f=v(e("./post")),h=v(e("./login")),e=v(e("./sse"));function m(e){var t,n;return"function"!=typeof WeakMap?null:(t=new WeakMap,n=new WeakMap,(m=function(e){return e?n:t})(e))}function v(e){return e&&e.__esModule?e:{default:e}}(0,i.default)(peepso,{objectAssign:i.default,Promise:window.Promise,ContentEditable:r.default,ajax:new o.default,browser:l,util:d.default,observer:a.default,hooks:s.default,localStorage:u.default,ls:u.default}),(0,i.default)(peepso,{dialog:c.default,user:p.default,post:f.default,login:h.default,sse:e.default})},{"../npm-expanded":20,"../peepso":21,"../pswindow":22,"./ajax":1,"./browser":2,"./contenteditable":3,"./dialog":4,"./hooks":5,"./link":9,"./local-storage":12,"./login":13,"./observer":14,"./peepso":15,"./post":16,"./sse":17,"./user":18,"./util":19,"object-assign":25}],7:[function(e,t,n){!function(t){!function(){"use strict";var o=e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),r=e("undefined"!=typeof window?window._:void 0!==t?t._:null),s=e("undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null);function e(e){return e&&e.__esModule?e:{default:e}}const a=+s.default.external_link_warning,l=s.default.external_link_warning_page,d=s.default.external_link_whitelist||"";(0,o.default)(function(){if(a){let e=d;function i(t){return t&&t.match(/^https?:\/\//i)&&(r.default.find(e,function(e){return t.match(new RegExp("^https?://(www\\.)?"+e))})||(t=l+"?url="+encodeURIComponent(t))),t}function t(e){e.find("a").each(function(){var e,t=(0,o.default)(this),n=t.attr("href");if(+t.data("noHijack"))return!0;(e=i(n))!==n&&t.attr("href",e)})}function n(){t((0,o.default)("#peepso-wrap, .ps-widget--external, .ps-lightbox-wrapper"))}e=(e=s.default.home_url+`
`+e).split(/\s+/),e=r.default.reduce(e,function(e,t){return(t=(t=t.trim()).replace(/^https?:\/\/(www\.)?/i,"").replace(/\/+$/,""))&&-1===e.indexOf(t)&&e.push(t),e},[]),(0,o.default)(document).on(["ps_activitystream_loaded","ps_activitystream_append","ps_comment_added","ps_comment_aftersave","ps_lightbox_navigate"].join(" "),n),peepso.observer.addAction("profile_field_updated",function(){n()}),peepso.observer.addAction("peepso_external_link",function(e){t(e)},10,1),peepso.observer.addFilter("url_filter",i,10,1),n()}})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){!function(d){!function(){"use strict";var r=i("undefined"!=typeof window?window.jQuery:void 0!==d?d.jQuery:null),e="undefined"!=typeof window?window._:void 0!==d?d._:null,t="undefined"!=typeof window?window.peepso:void 0!==d?d.peepso:null,n=i("undefined"!=typeof window?window.peepsodata:void 0!==d?d.peepsodata:null);function i(e){return e&&e.__esModule?e:{default:e}}const s=n.default.site_url,o=+n.default.hide_url_only,a=(0,e.throttle)(()=>{(0,r.default)(".ps-js-hide-url").not("[data-hidden]").each(function(){var e=(0,r.default)(this);e.closest(".ps-js-comment-content, .ps-js-activity-content").siblings(".js-stream-attachments, .ps-comment-media").html().trim()&&e.hide().attr("data-hidden","1")})},500),l=e=>{let t=(0,r.default)("<div>").append(e),n;var i,o=(n=t.find(".ps-js-activity").length?t.find(".ps-js-activity-content"):t.find(".ps-js-comment-body").length?t.find(".ps-js-comment-body").eq(0).find(".ps-js-comment-content"):t).find("a");return 1!==o.length||!(i=o.attr("href")).match(/^https?:\/\//i)||0===i.indexOf(s)&&!o.hasClass("ps-media__link")||(i=(0,r.default)("<a/>"),o.replaceWith(i),n.text().trim())||(o.addClass("ps-js-hide-url"),i.replaceWith(o),e=t.html(),setTimeout(a,1)),e};(0,r.default)(function(){o&&t.observer.addFilter("peepso_activity_content",l,5,1)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){"use strict";e("./external-link-warning"),e("./trim"),e("./wp-embed"),e("./hide")},{"./external-link-warning":7,"./hide":8,"./trim":10,"./wp-embed":11}],10:[function(e,t,n){!function(a){!function(){"use strict";var e=i("undefined"!=typeof window?window.jQuery:void 0!==a?a.jQuery:null),t="undefined"!=typeof window?window.peepso:void 0!==a?a.peepso:null,n=i("undefined"!=typeof window?window.peepsodata:void 0!==a?a.peepsodata:null);function i(e){return e&&e.__esModule?e:{default:e}}const o=+n.default.trim_url,r=+n.default.trim_url_https,s=e=>e.replace(/(<a[^>]+href[^>]+>)([^<]+)(<\/a>)/gi,function(e,t,n,i){return n.match(/^https?:\/\//i)&&(o&&(n=n.replace(/^(https?:\/\/[^\/]+).*$/i,"$1")),e=t+(n=r?n.replace(/^https?:\/\//i,""):n)+i),e});(0,e.default)(function(){(o||r)&&t.observer.addFilter("peepso_activity_content",s,10,1)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,n){!function(e){!function(){"use strict";var l="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null;setTimeout(function(){let e=window.wp||{},t=!1,n;(t=document.querySelector&&window.addEventListener&&document.body.closest?!0:t)&&e.receiveEmbedMessage&&(n=function(o){var r,s,a=o["data"];if(a&&-1<["height","link"].indexOf(a.message)){let t=document.querySelectorAll('iframe[data-secret="'+a.secret+'"]'),n,e,i;for(let e=0;e<t.length;e++)if(o.source===t[e].contentWindow){n=t[e];break}if(n)if("height"===a.message&&(r=(s="ps-media-iframe")+"--wpembed",s=n.closest("."+s))&&s.className.indexOf(r)<0&&(s.className+=" "+r),"link"===a.message)if(e=document.createElement("a"),i=document.createElement("a"),e.href=n.getAttribute("src"),i.href=a.value,i.host===e.host)if(document.activeElement===n)if(n.closest("#peepso-wrap"))return s=l.observer.applyFilters("url_filter",a.value),void(l.modules.url.getTarget(s,!1)?window.top.open(s):window.top.location.href=s)}e.receiveEmbedMessage(o)},window.removeEventListener("message",e.receiveEmbedMessage,!1),window.addEventListener("message",n,!1))},1e3)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const i=window.localStorage,o={};n.default={set(e,t=null){try{o[e]=t,i.setItem("peepso_"+e,t)}catch(e){}},get(e){let t=null;try{o[e]?t=o[e]:(t=i.getItem("peepso_"+e),o[e]=t)}catch(e){}return t},remove(e){try{delete o[e],i.removeItem("peepso_"+e)}catch(e){}}}},{}],13:[function(r,e,s){!function(t){!function(){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c=e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),p=e(r("./observer")),f="undefined"!=typeof window?window.peepso:void 0!==t?t.peepso:null,i=e("undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null);function e(e){return e&&e.__esModule?e:{default:e}}const n=+i.default.login_with_email;function o(t){let e=(0,c.default)(t),n=e.find("[name=username]"),i=e.find("[name=password]"),o=e.find("[name=two_factor_code]"),r=e.find("[type=submit]"),s=n.val().trim(),a=i.val().trim();return(s||a)&&(r.attr("disabled",!0),r.find("img").show(),o.length?l(s).then(e=>{e&&!o.is(":visible")?(n.closest(".ps-js-username-field").hide(),i.closest(".ps-js-password-field").hide(),o.closest(".ps-js-tfa-field").show(),r.removeAttr("disabled"),r.find("img").hide()):d(t)}):d(t)),!1}const l=function(n){return new Promise(e=>{let t=!1;c.default.ajax({url:i.default.ajaxurl,type:"POST",data:{action:"simbatfa-init-otp",user:n},dataType:"json",success(e){try{!0===e.status&&(t=!0)}catch(e){}},complete(){e(t)}})})},d=function(i){let e=(0,c.default)(i),t=e.find("[type=submit]"),n=e.find("[name=username]").val(),o=e.find("[name=password]").val(),r=e.find("[name=security]").val(),s=e.find("[name=remember]").is(":checked")?1:0,a=e.find("[name=redirect_to]").val(),l=e.find("[name][data-ps-extra]"),d,u=e.find("[name=g-recaptcha-response]");return e.length&&(l=l.add(u)),d={username:n,password:o,security:r,remember:s},l.length&&l.each(function(){d[this.name]=this.value}),f.ajax.post("auth.login",d,-1).done(e=>{if(e.success)p.default.doAction("login.success"),a&&window.location.href!==a?window.location=a:window.location.reload(!0);else if(e.errors){try{var t=e.data&&e.data.dialog_title||"";pswindow.hide(),!1===pswindow.acknowledge(e.errors,t)&&i.find(".errlogin").html(e.errors[0]).css("display","block"),-1<(e.data&&e.data.error_code||[]).indexOf("pending_approval")&&(0,c.default)(".ps-js-register-activation").css("display","inline-block")}catch(e){}p.default.doAction("login.error",i,e.errors[0]),u.length&&peepso.recaptcha.reset(i)}}).fail((e,t,n)=>{n&&(0,f.dialog)(n).error(),p.default.doAction("login.error",i,n),u.length&&peepso.recaptcha.reset(i)}).always(()=>{t.removeAttr("disabled"),t.find("img").hide()}),!1};p.default.addAction("login.error",e=>{var e=(0,c.default)(e),t=e.find("[name=username]"),n=e.find("[name=password]"),e=e.find("[name=two_factor_code]");n.val(""),e.length&&(e.val(""),e.closest(".ps-js-tfa-field").hide(),t.closest(".ps-js-username-field").show(),n.closest(".ps-js-password-field").show())},10,1);s.default={initForm:function(e){var t,e=(0,c.default)(e);n&&(t="input.login-with-email",e.find("[name=username]").off(t).on(t,function(){var e=this.value.trim(),t=(0,c.default)(this).closest("form"),n=t.find("[type=submit]"),t=t.find(".ps-js-email-notice");e.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)?(n.removeAttr("disabled"),t.hide()):(n.attr("disabled","disabled"),e?t.show():t.hide())}).triggerHandler(t)),e.off("submit"),e.on("submit",function(e){e.preventDefault(),e.stopPropagation(),o(e.target)}),f.hooks.doAction("init_password_preview"),peepso.recaptcha&&peepso.recaptcha.init()},submit:o};(0,c.default)(function(){(0,c.default)(window).on("peepso_auth_required",function(e,t){(0,c.default)(".login-area input").attr("disabled",!0),pswindow.is_visible&&pswindow.hide(),pswindow.show(i.default.login_dialog_title,i.default.login_dialog),(0,c.default)(document).trigger("peepso_login_shown"),(0,c.default)("#ps-window").one("pswindow.hidden",function(){(0,c.default)(".login-area input").removeAttr("disabled")}),t&&(0,c.default)("input[name=redirect_to]").val(window.location)})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./observer":14}],14:[function(e,t,n){"use strict";var i,o,r,s;i="undefined"!=typeof self?self:void 0,o=peepso,r="PsObserver",s=peepso.createClass(r,{_filters:void 0,_guid:1,addFilter:function(e,t,n=10,i=1,o){var r;"function"==typeof t&&(r=t.psObserverID=t.psObserverID||this._guid++,t={fn:t,priority:n,numParam:i,context:o},this._filters||(this._filters={}),this._filters[e]||(this._filters[e]={}),this._filters[e][n]||(this._filters[e][n]={}),this._filters[e][n][r]=t)},removeFilter:function(e,t,n=10){"function"==typeof t&&(t=t.psObserverID)&&this._filters&&this._filters[e]&&this._filters[e][n]&&this._filters[e][n][t]&&delete this._filters[e][n][t]},applyFilters:function(e){var t,n,i,o,r,s=arguments,a="",l=this._filters&&this._filters[e];if(!l)return s[1];for(t in l)for(n in l[t])if((i=l[t][n]).numParam){for(o=[],r=1;r<=i.numParam;)o.push(s[r]),r++;try{a=i.fn.apply(i.context,o),s[1]=a}catch(e){}}else try{a=i.fn()}catch(e){}return a},addAction:function(e,t,n,i,o){this.addFilter(e,t,n,i,o)},removeAction:function(e,t,n){this.removeFilter(e,t,n)},doAction:function(e){var t,n,i,o,r,s=arguments,a=this._filters&&this._filters[e];if(a)for(t in a)for(n in a[t]){if(o=[],(i=a[t][n]).numParam)for(r=1;r<=i.numParam;)o.push(s[r]),r++;try{i.fn.apply(i.context,o)}catch(e){}}}}),_.extend(s.prototype,{add_filter:s.prototype.addFilter,remove_filter:s.prototype.removeFilter,apply_filters:s.prototype.applyFilters,add_action:s.prototype.addAction,remove_action:s.prototype.removeAction,do_action:s.prototype.doAction}),o=new(o[r]=s),t.exports=o,i.PsObserver=s,i.ps_observer=o},{}],15:[function(e,t,n){"use strict";var i,r,o,s,a,l;i=window,r=jQuery,_,(l={createClass:function(e,t,n){var i;function o(){this.__constructor.apply(this,arguments)}for(o.prototype={},i=1;i<arguments.length-1;i++)r.extend(o.prototype,arguments[i].prototype);return r.extend(o.prototype,{__name:e,__constructor:function(){}},arguments[i]||{}),o},createSingleton:function(e,t,n){var i,o=l.createClass.apply(this,arguments);return{getInstance:function(){return i=i||new o}}}}).rtl=(o=document.body,s="direction",o.currentStyle?a=o.currentStyle[s]:i.getComputedStyle&&(a=i.getComputedStyle(o,null).getPropertyValue(s)),"rtl"===a),i.peepso=l},{}],16:[function(e,t,s){!function(o){!function(){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(...e){return new i(...e)};var r="undefined"!=typeof window?window.peepso:void 0!==o?o.peepso:null,n="undefined"!=typeof window?window.peepsodata:void 0!==o?o.peepsodata:null;const t=n.activity&&n.activity.template_repost,e=n.activity&&n.activity.template_report;class i{constructor(e,t){this.postId=e,this.actId=t}doRepost(){let e=(0,r.dialog)(t).show();e.$el.on("click",".ps-js-cancel",()=>e.hide()),e.$el.on("click",".ps-js-submit",()=>{})}repost(){}doReport(){let o=(0,r.dialog)(e).show();o.$el.on("click",".ps-js-cancel",()=>o.hide()),o.$el.on("click",".ps-js-submit",()=>{var e=o.$el.find(".ps-js-report-type option:selected"),t=o.$el.find(".ps-js-report-desc textarea"),n=o.$el.find(".ps-js-report-error"),i=e.val(),t=t.val().trim();i?e.data("need-reason")&&!t?n.html(o.opts.text_fill_description).show():(n.hide(),this.report(i,t).then(function(e){var t=o.title();o.hide(),e.notices&&(0,r.dialog)(e.notices,{title:t}).show().autohide()})):n.html(o.opts.text_select_reason).show()})}report(e,t){e={uid:n.currentuserid,act_id:this.actId,reason:e,reason_desc:t};return r.ajax.post("activity.report",e).done(e=>{e.success&&r.hooks.doAction("post_reported",{actId:this.actId,postId:this.postId})})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(E,e,O){!function(k){!function(){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=void 0;var i=e("undefined"!=typeof window?window.jQuery:void 0!==k?k.jQuery:null),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};t=s(t);if(t&&t.has(e))return t.get(e);var n,i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var r;"default"!==n&&{}.hasOwnProperty.call(e,n)&&((r=o?Object.getOwnPropertyDescriptor(e,n):null)&&(r.get||r.set)?Object.defineProperty(i,n,r):i[n]=e[n])}return i.default=e,t&&t.set(e,i),i}(E("./browser")),o=e(E("./observer")),r=e("undefined"!=typeof window?window.peepsodata:void 0!==k?k.peepsodata:null);function s(e){var t,n;return"function"!=typeof WeakMap?null:(t=new WeakMap,n=new WeakMap,(s=function(e){return e?n:t})(e))}function e(e){return e&&e.__esModule?e:{default:e}}var t=+r.default.sse;const a=+r.default.currentuserid,l=r.default.sse_url,d=r.default.sse_domains,u=+r.default.sse_backend_delay,c=+r.default.sse_backend_timeout,p=+r.default.sse_backend_keepalive,f=+r.default.sse_wpnonce;let h=window.localStorage,m=window.addEventListener,v,y,w;function _(e){return new Promise((t,n)=>{!e&&(y=y||h.getItem("peepso_sse_token"))?t(y):i.default.post({url:r.default.ajaxurl,data:{action:"peepso_sse_token",_wpnonce:f},dataType:"json",error:e=>{n(e)},success:e=>{e&&e.sse_token?(y=e.sse_token,h.setItem("peepso_sse_token",y),t(y)):n()}})})}function b(){var e=l+("?user_id="+a)+"&delay="+u+"&timeout="+c+"&keepalive="+p+"&token="+y;let n=0;(v=new EventSource(e,{withCredentials:!0})).addEventListener("message",function(e){if(!d||-1!==d.indexOf(e.origin)){n=0;try{var t=JSON.parse(e.data);switch(t.event){case"error_path_not_found":case"error_invalid_user_id":g();break;case"error_invalid_token":g(),_("force").then(b);break;case"debug_start":case"keepalive":case"timeout":break;default:j(t),h.setItem("peepso_sse",e.data),setTimeout(()=>{h.removeItem("peepso_sse")},100)}}catch(e){}}},!1),v.addEventListener("error",e=>{10<=++n&&g()},!1)}function g(){v&&(v.close(),v=null)}function j(e,t=!1){!t&&n.isHidden()?(w=w||[]).push(e):o.default.doAction("peepso_sse",e)}function x(){new Promise(e=>{m("storage",e=>{var{key:e,newValue:t}=e;if("peepso_sse_is_on"!==e||t){if("peepso_sse"===e&&t)try{j(JSON.parse(t))}catch(e){}}else setTimeout(x,1e3)}),e(h.getItem("peepso_sse_is_on")?"relay":"no_relay")}).then(e=>{"relay"!==e&&_().then(()=>{h.setItem("peepso_sse_is_on",(new Date).getTime()),m("beforeunload",()=>{g(),h.removeItem("peepso_sse_is_on")}),b()}),o.default.addAction("browser.active",()=>{if(w&&w.length)for(;w.length;)j(w.shift(),!0)})})}t&&a&&"undefined"!=typeof EventSource&&x();O.default=v}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./browser":2,"./observer":14}],18:[function(e,t,i){!function(n){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(...e){return new t(...e)};var r="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null,s="undefined"!=typeof window?window.peepsodata:void 0!==n?n.peepsodata:null;const e=s.user&&s.user.template_report;class t{constructor(e){this.id=e}like(){}block(){var e={uid:s.currentuserid,user_id:this.id};return r.ajax.post("activity.blockuser",e).then(e=>{e.success&&r.hooks.doAction("user_blocked",userId)})}unblock(){var e={uid:s.currentuserid,user_id:this.id};return r.ajax.post("activity.unblockuser",e).then(e=>{e.success&&r.hooks.doAction("user_unblocked",this.id)})}doBan(){return!1}ban(e){e={user_id:this.id,ban_status:1,ban_type:e?"ban_period":"ban_forever",ban_period_date:e||void 0};return r.ajax.post("activity.set_ban_status",e).then(e=>{e.success&&r.hooks.doAction("user_banned",this.id)})}unban(){var e={user_id:this.id,ban_status:0};return r.ajax.post("activity.set_ban_status",e).then(e=>{e.success&&r.hooks.doAction("user_unbanned",this.id)})}doReport(){let o=(0,r.dialog)(e).show();o.$el.on("click",".ps-js-cancel",()=>o.hide()),o.$el.on("click",".ps-js-submit",()=>{var e=o.$el.find(".ps-js-report-type option:selected"),t=o.$el.find(".ps-js-report-desc textarea"),n=o.$el.find(".ps-js-report-error"),i=e.val(),t=t.val().trim();i?e.data("need-reason")&&!t?n.html(o.opts.text_fill_description).show():(n.hide(),this.report(i,t).then(function(e){var t=o.title();if(o.hide(),s.is_admin){var n=document.querySelector(".ps-js-focus--profile"),i=document.querySelector(".ps-js-members");if(n||i)return void location.reload()}e.notices&&(0,r.dialog)(e.notices,{title:t}).show().autohide()})):n.html(o.opts.text_select_reason).show()})}report(e,t){e={user_id:this.id,reason:e,reason_desc:t};return r.ajax.post("profile.report",e).done(e=>{e.success&&r.hooks.doAction("user_reported",this.id)})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],19:[function(e,t,n){!function(t){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.default={isElementInViewport(e){e=e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},isElementPartlyInViewport(e){e=e.getBoundingClientRect();return e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&0<e.bottom&&0<e.right},scrollIntoView(i,o={}){if((i=(0,a.default)(i)).length&&!this.isElementInViewport(i[0])){let e=o.duration||1e3,t=o.position||"top",n=i.offset().top;n="center"===t?Math.max(0,n-window.innerHeight/2+i.height()/2):Math.max(0,n-10),(0,a.default)("html, body").animate({scrollTop:n},e)}},scrollIntoViewIfNeeded(i,o={}){if((i=(0,a.default)(i)).length&&!this.isElementPartlyInViewport(i[0])){let e=o.duration||1e3,t=o.position||"top",n=i.offset().top;n="center"===t?Math.max(0,n-window.innerHeight/2+i.height()/2):Math.max(0,n-10),(0,a.default)("html, body").animate({scrollTop:n},e)}},fbLoadSDK(){let t,n,i,o,r=document,s="facebook-jssdk";return a.default.Deferred(function(e){r.getElementById(s)?(o=0,i=setInterval(function(){(20<++o||window.FB)&&(clearInterval(i),window.FB)&&e.resolve()},1e3)):(window.fbAsyncInit=function(){FB.init({version:"v2.9",status:!1,xfbml:!1}),e.resolve(FB),delete window.fbAsyncInit},n=r.getElementsByTagName("script")[0],(t=r.createElement("script")).id=s,t.src="//connect.facebook.net/en_US/sdk.js",n.parentNode.insertBefore(t,n))})},fbParseXFBML(){(0,a.default)(".fb-post, .fb-video").not("[fb-xfbml-state=rendered]").length&&this.fbLoadSDK().done(function(){FB.XFBML.parse()})},copyToClipboard(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},trimHtml(e,t){var n=document.createElement("div"),e=(n.innerHTML=e,function e(t,i=0){return[...t.childNodes].forEach(t=>{if([Node.ELEMENT_NODE,Node.TEXT_NODE].find(e=>e===t.nodeType))if(i<=0)t.remove();else{if(Node.ELEMENT_NODE===t.nodeType){if("BR"===t.tagName)return void i--;var n=e(t,i);i=n.length,t.childNodes.length||t.remove()}if(Node.TEXT_NODE===t.nodeType){let e=t.textContent;e.length<=i?i-=e.length:((e=e[i].match(/\s/)?e.slice(0,i):-1===(n=(e=e.slice(0,i)).lastIndexOf(" "))?"":e.slice(0,Math.min(e.length,n))).length?t.textContent=e:t.remove(),i=0)}}}),{element:t,length:i}}(n,t));return e.element.innerHTML},isRTL(e){var t=[/\p{Script=Arabic}/u,/\p{Script=Hebrew}/u,/\p{Script=Thaana}/u,/\p{Script=Syriac}/u,/\p{Script=Mandaic}/u,/\p{Script=Samaritan}/u,/\p{Script=Mende_Kikakui}/u,/\p{Script=Nko}/u,/\p{Script=Adlam}/u,/\u10D00-\u10D3F/,/\u10E80-\u10EBF/],n=e.trim().charAt(0);let i=!1;for(let e=0;e<t.length;e++)if(t[e].test(n)){i=!0;break}return i}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(d,e,t){"use strict";!function i(o,r,s){function a(n,e){if(!r[n]){if(!o[n]){var t="function"==typeof d&&d;if(!e&&t)return t(n,!0);if(l)return l(n,!0);e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}t=r[n]={exports:{}};o[n][0].call(t.exports,function(e){var t=o[n][1][e];return a(t||e)},t,t.exports,i,o,r,s)}return r[n].exports}for(var l="function"==typeof d&&d,e=0;e<s.length;e++)a(s[e]);return a}({1:[function(e,t,n){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(e){return"function"==typeof e}function l(e){return"object"==typeof e&&null!==e}function d(e){return void 0===e}((t.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,n,i,o,r,s;if(this._events||(this._events={}),"error"===e&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(d(n=this._events[e]))return!1;if(a(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(l(n))for(o=Array.prototype.slice.call(arguments,1),i=(s=n.slice()).length,r=0;r<i;r++)s[r].apply(this,o);return!0},i.prototype.on=i.prototype.addListener=function(e,t){if(a(t))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,a(t.listener)?t.listener:t),this._events[e]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(t=d(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&0<t&&this._events[e].length>t&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},i.prototype.once=function(e,t){var n;if(a(t))return n=!1,i.listener=t,this.on(e,i),this;throw TypeError("listener must be a function");function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}},i.prototype.removeListener=function(e,t){var n,i,o,r;if(!a(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(o=(n=this._events[e]).length,i=-1,n===t||a(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(l(n)){for(r=o;0<r--;)if(n[r]===t||n[r].listener&&n[r].listener===t){i=r;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);this.removeAllListeners("removeListener"),this._events={}}else{if(a(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);delete this._events[e]}else 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this},i.prototype.listeners=function(e){e=this._events&&this._events[e]?a(this._events[e])?[this._events[e]]:this._events[e].slice():[];return e},i.prototype.listenerCount=function(e){if(this._events){e=this._events[e];if(a(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],2:[function(e,t,n){var i;(i=peepso).npm={},i.npm.EventEmitter=e("events").EventEmitter,i.npm.inherits=e("inherits"),i.npm.objectAssign=e("object-assign")},{events:1,inherits:3,"object-assign":4}],3:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;function n(){}n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],4:[function(e,t,n){var l=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i,o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===o.join(""))return i={},"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var n,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var r in n=Object(arguments[o]))d.call(n,r)&&(i[r]=n[r]);if(l)for(var s=l(n),a=0;a<s.length;a++)u.call(n,s[a])&&(i[s[a]]=n[s[a]])}return i}},{}]},{},[2])},{events:23,inherits:24,"object-assign":25}],21:[function(e,t,n){"use strict";function s(){"undefined"!=typeof peepsodata&&(this.defaultUrl=peepsodata.ajaxurl_legacy,this.userId=parseInt(peepsodata.userid))}s.prototype={error:!1,errorText:"",errorStatus:"",callback:null,trxComplete:0,errorCallback:null,validationErrors:new Array,url:"",ret:0,timeout:0,formElementType:"td",async:!0,defaultUrl:null,userId:null,action:"",authRequired:!0,init:function(e,t){this.error=!1,this.errorText="",this.errorStatus="",this.callback=e,this.trxComplete=0,this.errorCallback=null,this.url=peepsodata.ajaxurl_legacy+t,this.action=t,this.timeout=0,this.async=!0},peepSoCallback:function(e){if(null!==e){try{if(this.authRequired&&void 0!==e.session_timeout&&"auth.login"!==this.action)return jQuery(window).trigger("peepso_auth_required"),void(this.trxComplete=1)}catch(e){}var t;void 0!==e.focus&&null!==e.focus&&(null!==document.getElementById(e.focus)?document.getElementById(e.focus):(t="#"+e.form+' [name="'+e.focus+'"]',jQuery(t))).focus();try{if(void 0!==e.errors){var n="";if(0<e.errors.length){for(x=0;x<e.errors.length;x++)void 0!==e.errors[x].error&&(n+="<p>"+e.errors[x].error+"</p>");""!==n&&pswindow.show(peepsodata.label_error,n)}}if(void 0!==e.notices){var i="";if(0<e.notices.length){for(x=0;x<e.notices.length;x++)void 0!==e.notices[x].message&&(i+=e.notices[x].message+"\n");""!==i&&pswindow.show(peepsodata.label_notice,i)}}}catch(e){}if("function"==typeof this.callback)try{this.callback(e)}catch(e){}}this.trxComplete=1},get:function(e,t,n,i){var o=new s,r=this.timeout;return o.async=this.async,this.async=!0,target_url=peepsodata.ajaxurl_legacy+e,peepso.log("target=["+target_url+"]"),o.init(n,e),void 0!==i&&""!==i||(i="json"),o.ret=jQuery.get(o.url,t,function(e){o.peepSoCallback(e)},i,{timeout:r},{async:o.async}),o},getJson:function(e,t,n){var i=new s,n=(i.init(n,e),i.async=this.async,i.authRequired=this.authRequired,i.errorDisabled=this.errorDisabled,this.async=!0,{type:"GET",url:i.url,data:t,contentType:"application/json; charset=utf-8",dataType:"json",beforeSend(e){e.setRequestHeader("X-PeepSo-Nonce",peepsodata.peepso_nonce)},success:function(e){i.peepSoCallback(e)},error:function(e,t,n){i.ajaxError(e,t,n)},async:i.async});return this.authRequired=!0,this.errorDisabled=!1,jQuery.ajax(n)},postElems:function(e,t,n,i){var o=new s,n=(o.init(n,e),o.async=this.async,this.async=!0,null==i&&(i="json"),jQuery(t.container).find("input").serializeArray()),n=jQuery.merge(n,jQuery(t.container).find("select").serializeArray());return(n=jQuery.merge(n,jQuery(t.container).find("textarea").serializeArray())).push({name:"action",value:t.action}),n.push({name:"req",value:t.req}),o.ret=jQuery.post(o.url,n,function(e){o.peepSoCallback(e)},i,{async:o.async}),o},postJson:function(e,t,n){var i=new s,o=(i.init(n,e),i.async=this.async,i.authRequired=this.authRequired,i.errorDisabled=this.errorDisabled,i.errorCallback=this.errorCallback,this.async=!0,{type:"POST",url:i.url,dataType:"json",data:t,timeout:this.timeout,success:function(e){i.peepSoCallback(e)},error:function(e,t,n){i.ajaxError(e,t,n)},async:i.async});return i.ret=jQuery.post({url:o.url,data:t,dataType:"json",beforeSend(e){e.setRequestHeader("X-PeepSo-Nonce",peepsodata.peepso_nonce)},success(e){o.success(e)}}),this.authRequired=!0,this.errorDisabled=!1,i},setTimeout:function(e){return this.timeout=e,this},disableAsync:function(){return this.async=!1,this},disableAuth:function(){return this.authRequired=!1,this},setErrorCallback:function(e){return this.errorCallback=e,this},setFormElement:function(e){return this.formElementType=e,this},ajaxError:function(e,t,n){var i=!1;this.error=!0,this.errorStatus=t||"",void 0===e?this.errorText="Undefined error.":e.responseText?this.errorText=e.responseText:(i=!0,this.errorText="Connection timeout."),i||this.errorDisabled?this.log(this.errorStatus,this.errorText):pswindow.show(this.errorStatus,this.errorText),"function"==typeof this.errorCallback&&this.errorCallback()},enableError:function(){return this.errorDisabled=!1,this},disableError:function(){return this.errorDisabled=!0,this},log:function(){window.console&&console.log.apply(console,arguments)},screenSize:function(){var e=window.innerWidth,e=e<=360?"xsmall":e<=480?"small":e<=991?"medium":"large";return e},isMobile:function(){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent)},isTouch:function(){return"ontouchstart"in document.documentElement},isWebdriver:function(){return!!window.ps_webdriver},getLinkColor:function(e){var t,n;return this._linkColor?t=this._linkColor:(n=jQuery("#peepso-wrap"),t=(n=jQuery("<a/>").appendTo(n)).css("color"),n.remove(),(n=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/))&&(t=[n[1],n[2],n[3],n[4]||1]),this._linkColor=t),t="string"!=typeof t?"rgba("+t[0]+","+t[1]+","+t[2]+","+(e||t[3])+")":t},template:function(e,t){t=jQuery.extend({variable:"data",evaluate:/\{\{([\s\S]+?)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,escape:/\{\{-([\s\S]+?)\}\}/g},t||{});var n=_.template(e,t);return n="function"!=typeof n?_.template(e,null,t):n}},peepso=peepso.npm.objectAssign(peepso,s.prototype),window.$PeepSo=peepso,jQuery(document).ready(function(){jQuery(".ps-tab-bar a[data-toggle=tab]").on("click.ps-tab",function(e){jQuery(e.target).addClass("active").siblings("a[data-toggle=tab]").removeClass("active")});var e=(peepso.isMobile()?" ps-mobile":"")+(peepso.isTouch()?" ps-touch":"");e&&(document.documentElement.className+=e)}),jQuery(function(e){e(".ps-js-navbar-toggle").on("click",function(){e("#ps-mobile-navbar").toggleClass("ps-navbar__submenu--open")}),e(".ps-js-navbar-menu").filter((e,t)=>t.href.match(/#(following|saved)/)).on("click",function(){window.location.href.replace(/#.*$/,"")===this.href.replace(/#.*$/,"")&&setTimeout(function(){window.location.reload()},1)})})},{}],22:[function(e,t,n){"use strict";function i(){this.is_created=!1,this.is_visible=!1,this.close_callback=null,this.action_callback=null,this.delete_callback=null,this.confirm_callback=null,this.no_confirm_callback=null,this.title=null,this.winwidth=0,this.width=400,this.winheight=0,this.height="auto",this.is_modal=!0,this.$container=null,this.fade_time=2500}function o(){this.is_created=!1,this.is_visible=!1,this.title=null,this.winwidth=0,this.winheight=0,this.$container=null,this.wrap_id=null,this.fade_time=pswindow.fade_time}window.pswindow=new i,i.prototype.create=function(){var e,t;return 0===jQuery("#ps-window").length&&(e=['<div id="ps-window" class="ps-modal__wrapper">','<div class="ps-modal__container ps-dialog-container">','<div class="ps-modal ps-dialog">','<div class="ps-modal__inner">','<div class="ps-modal__header ps-dialog-header">','<div id="cwin_logo" class="ps-modal__title ps-dialog-title"></div>','<a class="ps-modal__close ps-dialog-close" href="#" onclick="pswindow.hide();return false;" id="cwin_close_btn">','<i class="gcis gci-times"></i>',"</a>","</div>",'<div id="cWindowContentWrap" class="ps-modal__body ps-dialog-body">','<div id="cWindowContent" class="ps-modal__content"></div>',"</div>",'<div id="cWindowContentOuter" class="ps-modal__footer ps-dialog-footer"></div>',"</div>","</div>","</div>","</div>"].join(""),e=jQuery(e),t=this,e.appendTo(document.body),t.is_created=!0,t.$container=jQuery("#ps-window"),jQuery(document).on("keyup.pswindow",function(e){t.keyup(e)})),this.winwidth=jQuery(document.body).width(),this.winheight=jQuery(window).height(),this},i.prototype.keyup=function(e){return this.is_visible&&27===e.keyCode&&this.hide(),this},i.prototype.mouse_up=function(e){return this},i.prototype.set_content=function(e){return jQuery("#cWindowAction").remove(),jQuery("#cWindowContent").html(e),this},i.prototype.set_title=function(e){return jQuery("#cwin_logo").html(e),this},i.prototype.set_class=function(e){return jQuery("#ps-window").attr("class",e),this},i.prototype.show=function(e,t,n){return!this.is_visible&&(this.create().set_title(e).set_content(t),this.$container.show(),this.refresh(),this.is_visible=!0,void 0!==n&&this.fade_out(n),jQuery("html, body").addClass("ps-modal-is--open"),this)},i.prototype.set_actions=function(e){return jQuery("#cWindowAction").remove(),jQuery('<div id="cWindowAction" class="ps-modal__actions">').html(e).appendTo("#cWindowContentOuter"),this},i.prototype.refresh=function(){return this.$container.show(),this},i.prototype.hide=function(){var e=jQuery("#ps-window");return void 0!==peepso.observer&&peepso.observer.doAction("pswindow_before_close",e),e.hide(),e.find("#cwin_logo").empty(),e.find("#cWindowContent").empty(),e.find("#cWindowAction").remove(),this.is_visible=!1,e.trigger("pswindow.hidden"),void 0!==peepso.observer&&(peepso.observer.applyFilters("pswindow_close"),peepso.observer.doAction("pswindow_close",e)),jQuery("html, body").removeClass("ps-modal-is--open"),this},i.prototype.fade_out=function(e,t){var n=this;return this.$container.fadeOut(e,function(){n.hide(),typeof t==typeof Function&&t()}),this},i.prototype.confirm_delete=function(e,t){this.delete_callback=e;var e=peepsowindowdata||{},n=e.label_confirm_delete,i=['<button type="button" class="ps-btn ps-btn--sm" onclick="pswindow.hide(); return false;">',e.label_cancel,"</button>",'<button type="button" class="ps-btn ps-btn--sm ps-btn--action" onclick="pswindow.do_delete();">',e.label_delete,"</button>"].join(" ");return t=t||e.label_confirm_delete_content,this.show(n,t).set_actions(i),this},i.prototype.acknowledge=function(e,t){this.confirm_callback=null,this.no_confirm_callback=null;var n=peepsowindowdata||{},i=['<button type="button" class="ps-btn ps-btn--sm ps-btn--action" onclick="pswindow.hide(); return false;">',n.label_okay,"</button>"].join(" ");return t=t||n.label_confirm,this.show(t,e=e||"").set_actions(i),this},i.prototype.confirm=function(e,t,n){this.confirm_callback=t,this.no_confirm_callback=n;t=peepsowindowdata.label_confirm,n=['<button type="button" class="ps-btn ps-btn--sm" onclick="return pswindow.do_no_confirm();">',peepsowindowdata.label_no,"</button>",'<button type="button" class="ps-btn ps-btn--sm ps-btn--action" onclick="return pswindow.do_confirm();">',peepsowindowdata.label_yes,"</button>"].join(" "),e="{content}".replace("{content}",e);return this.show(t,e).set_actions(n),this},i.prototype.do_delete=function(){return typeof this.delete_callback==typeof Function&&this.delete_callback(),this},i.prototype.do_confirm=function(){return typeof this.confirm_callback==typeof Function&&this.confirm_callback(),this},i.prototype.do_no_confirm=function(){return typeof this.no_confirm_callback==typeof Function&&this.no_confirm_callback(),this.hide(),this},window.psmessage=new o,o.prototype.create=function(){var e,t;return 0===jQuery("#ps-message").length&&(e=['<div id="ps-message" class="ps-modal__wrapper">','<div class="ps-modal__container ps-dialog-container">','<div class="ps-modal ps-dialog">','<div class="ps-modal__inner">','<div class="ps-modal__header ps-dialog-header">','<div id="cmsg_logo" class="ps-modal__title ps-dialog-title"></div>','<a class="ps-modal__close ps-dialog-close" href="#" onclick="psmessage.hide();return false;" id="c-msg-close-btn">','<i class="gcis gci-times"></i>',"</a>","</div>",'<div id="c-message-content-wrap" class="ps-modal__body ps-dialog-body">','<div id="c-message-content" class="ps-modal__content"></div>',"</div>",'<div id="c-message-content-outer" class="ps-modal__footer ps-dialog-footer"></div>',"</div>","</div>","</div>","</div>"].join(""),e=jQuery(e),t=this,e.appendTo(document.body),t.is_created=!0,t.$container=jQuery("#ps-message"),jQuery(document).on("keyup.psmessage",function(e){t.keyup(e)})),this.winwidth=jQuery(document.body).width(),this.winheight=jQuery(window).height(),this},o.prototype.keyup=function(e){this.is_visible&&27===e.keyCode&&this.hide()},o.prototype.set_content=function(e){return jQuery("#c-message-action").remove(),jQuery("#c-message-content").html(e),this},o.prototype.set_title=function(e){return jQuery("#cmsg_logo").html(e),this},o.prototype.set_class=function(e){return jQuery("#ps-message").attr("class",e),this},o.prototype.show=function(e,t,n){return this.is_visible&&(this.$container.finish(),this.hide()),this.create().set_title(e).set_content(t),this.$container.show(),this.refresh(),this.is_visible=!0,void 0!==n&&this.fade_out(n),this},o.prototype.hide=function(){return jQuery("#ps-message").hide(),jQuery("#cmsg_logo").html(""),jQuery("#c-message-content").html(""),jQuery("#c-message-action").remove(),this.is_visible=!1,jQuery("#ps-message").trigger("psmessage.hidden"),this},o.prototype.fade_out=function(e,t){var n=this;return this.$container.fadeOut(e,function(){this.is_visible=!1,n.hide(),typeof t==typeof Function&&t()}),this},o.prototype.refresh=function(){return this.$container.show(),this}},{}],23:[function(e,t,n){"use strict";var i="object"==typeof Reflect?Reflect:null,l=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};var o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},r=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(a,l){return new Promise(function(e,t){function n(e){a.removeListener(l,i),t(e)}function i(){"function"==typeof a.removeListener&&a.removeListener("error",n),e([].slice.call(arguments))}var o,r,s;v(a,l,i,{once:!0}),"error"!==l&&(r=n,s={once:!0},"function"==typeof(o=a).on)&&v(o,"error",r,s)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,n,i){var o,r;return d(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener||n),o=e._events),r=o[t]),void 0===r?(r=o[t]=n,++e._eventsCount):("function"==typeof r?r=o[t]=i?[n,r]:[r,n]:i?r.unshift(n):r.push(n),0<(o=u(e))&&r.length>o&&!r.warned&&(r.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=e,i.type=t,i.count=r.length,n=i,console)&&console.warn&&console.warn(n)),e}function p(e,t,n){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=n,e.wrapFn=t}function f(e,t,n){e=e._events;if(void 0===e)return[];e=e[t];if(void 0===e)return[];if("function"==typeof e)return n?[e.listener||e]:[e];if(n){for(var i=e,o=new Array(i.length),r=0;r<o.length;++r)o[r]=i[r].listener||i[r];return o}return m(e,e.length)}function h(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function m(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function v(n,i,o,r){if("function"==typeof n.on)r.once?n.once(i,o):n.on(i,o);else{if("function"!=typeof n.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n);n.addEventListener(i,function e(t){r.once&&n.removeEventListener(i,e),o(t)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if((r=0<t.length?t[0]:r)instanceof Error)throw r;i=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw i.context=r,i}var r=o[e];if(void 0===r)return!1;if("function"==typeof r)l(r,this,t);else for(var s=r.length,a=m(r,s),n=0;n<s;++n)l(a[n],this,t);return!0},s.prototype.on=s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return d(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,p(this,e,t)),this},s.prototype.off=s.prototype.removeListener=function(e,t){var n,i,o,r,s;if(d(t),void 0!==(i=this._events)&&void 0!==(n=i[e]))if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,r=n.length-1;0<=r;r--)if(n[r]===t||n[r].listener===t){s=n[r].listener,o=r;break}if(o<0)return this;if(0===o)n.shift();else{for(var a=n,l=o;l+1<a.length;l++)a[l]=a[l+1];a.pop()}1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.removeAllListeners=function(e){var t,n=this._events;if(void 0!==n)if(void 0===n.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]);else if(0===arguments.length){for(var i,o=Object.keys(n),r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;0<=r;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return 0<this._eventsCount?o(this._events):[]}},{}],24:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){var n;t&&(e.super_=t,(n=function(){}).prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e)}},{}],25:[function(e,t,n){"use strict";var l=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i,o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===o.join(""))return i={},"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var n,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var r in n=Object(arguments[o]))d.call(n,r)&&(i[r]=n[r]);if(l)for(var s=l(n),a=0;a<s.length;a++)u.call(n,s[a])&&(i[s[a]]=n[s[a]])}return i}},{}]},{},[6]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/core.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/modules.min.js*/
try {
	!function o(i,d,r){function a(t,e){if(!d[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=d[t]={exports:{}},i[t][0].call(n.exports,function(e){return a(i[t][1][e]||e)},n,n.exports,o,i,d,r)}return d[t].exports}for(var l="function"==typeof require&&require,e=0;e<r.length;e++)a(r[e]);return a}({1:[function(u,e,t){!function(l){!function(){"use strict";var e=(e="undefined"!=typeof window?window.peepso:void 0!==l?l.peepso:null)&&e.__esModule?e:{default:e},t=a(u("./mention")),n=a(u("./post")),o=a(u("./request")),i=a(u("./url")),d=a(u("./user"));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};t=r(t);if(t&&t.has(e))return t.get(e);var n,o,i={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((o=d?Object.getOwnPropertyDescriptor(e,n):null)&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]);return i.default=e,t&&t.set(e,i),i}e.default.modules={mention:t,post:n,request:o,url:i,user:d}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./mention":2,"./post":3,"./request":4,"./url":7,"./user":8}],2:[function(e,t,n){!function(e){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getHtml=function(a,l,u){return new s.Promise((e,o)=>{let t={type:a,id:l,name:u},i=a+"_"+l+(u?"_"+u:""),n=f[i],d;if(n){if("__fetching__"===n)return c[i]=c[i]||[],void c[i].push([e,o]);var r=n.time;if((new Date).getTime()-r>p&&(delete f[i],n=f[i]),n)return void e(n.html)}f[i]="__fetching__",s.ajax.post("mentionsajax.get_mention",t,100).done(e=>d=e).always(()=>{if(delete f[i],d&&d.success&&!d.errors&&d.data&&d.data.html){var t=d.data.html;if(f[i]={html:t,time:(new Date).getTime()},e(t),c[i]){for(;c[i].length;){let[e]=c[i].shift();e(t)}delete c[i]}}else{var n=d&&d.errors&&d.errors.join("\n")||void 0;if(o(n),c[i]){for(;c[i].length;){let[,e]=c[i].shift();e(n)}delete c[i]}}})})},n.getTargets=function(){let a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return new s.Promise((e,o)=>{let t={act_id:a},i=""+a,n=u[i],d;if(n){if("__fetching__"===n)return l[i]=l[i]||[],void l[i].push([e,o]);var r=n.time;if((new Date).getTime()-r>w&&(delete u[i],n=u[i]),n)return void e(n.data)}u[i]="__fetching__",s.ajax.post("tagsajax.get_taggable",t,100).done(e=>d=e).always(()=>{if(delete u[i],d&&d.success&&!d.errors&&d.data){var t=d.data;if(u[i]={data:t,time:(new Date).getTime()},e(t),l[i]){for(;l[i].length;){let[e]=l[i].shift();e(t)}delete l[i]}}else{var n=d&&d.errors&&d.errors.join("\n")||void 0;if(o(n),l[i]){for(;l[i].length;){let[,e]=l[i].shift();e(n)}delete l[i]}}})})};var s="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null;const f={},p=6e4;let c={};const l={},u={},w=18e5}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){!function(e){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.follow=function(i,d){return new r.Promise((t,e)=>{var n=a.rest_url+"post_follow",o={post_id:i,follow:d};(void 0===d?r.ajax.get(n,o,20).done(e=>t(e)):r.ajax.post(n,o,20).done(e=>t(e))).fail(e)})},n.save=function(i,d){return new r.Promise((t,e)=>{var n=a.rest_url+"post_save",o={post_id:i};(void 0===d?r.ajax.get(n,o,20).done(e=>t(e)):d?r.ajax.post(n,o,20).done(e=>t(e)):r.ajax.delete(n+"/"+i,null,20).done(e=>t(e))).fail(e)})},n.setHumanReadable=function(o,i){return new r.Promise((t,n)=>{var e={post_id:o,human_friendly:encodeURIComponent(i)};r.ajax.post("activity.set_human_friendly",e,20).done(e=>{e.success&&!e.error?t():(e=e.errors&&e.errors.join("\n")||void 0,n(e))}).fail(n)})},n.trackView=function(e){return new r.Promise(t=>{r.ajax.get("activity.add_view_count",{act_id:e},20).done(e=>{t(e)})})};var r="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null,a="undefined"!=typeof window?window.peepsodata:void 0!==e?e.peepsodata:null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){!function(t){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._delete=function(){let i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,d=1<arguments.length?arguments[1]:void 0,r=2<arguments.length?arguments[2]:void 0;i&&s[i]&&s[i].abort();return new Promise((e,t)=>{let n,o;n=0===d.indexOf(u.rest_url)?a.default.ajax({type:"DELETE",dataType:"json",beforeSend:e=>e.setRequestHeader("X-WP-Nonce",u.rest_nonce),url:d,data:r}):a.default.ajax({type:"DELETE",dataType:"json",url:d,data:r}),i&&(s[i]=n),n.done(e=>o=e),n.always(()=>{i&&delete s[i],o?e(o):t()})})},n.get=function(){let i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,d=1<arguments.length?arguments[1]:void 0,r=2<arguments.length?arguments[2]:void 0;i&&s[i]&&s[i].abort();return new Promise((e,t)=>{let n,o;n=-1===d.indexOf("/")?l.default.getJson(d,r):0===d.indexOf(u.rest_url)?a.default.ajax({type:"GET",dataType:"json",beforeSend:e=>e.setRequestHeader("X-WP-Nonce",u.rest_nonce),url:d,data:r}):a.default.ajax({type:"GET",dataType:"json",url:d,data:r}),i&&(s[i]=n),n.done(e=>o=e),n.always(()=>{i&&delete s[i],o?e(o):t()})})},n.post=function(){let i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,d=1<arguments.length?arguments[1]:void 0,r=2<arguments.length?arguments[2]:void 0;i&&s[i]&&s[i].abort();return new Promise((e,t)=>{let n,o;n=-1===d.indexOf("/")?l.default.postJson(d,r).ret:0===d.indexOf(u.rest_url)?a.default.ajax({type:"POST",dataType:"json",beforeSend:e=>e.setRequestHeader("X-WP-Nonce",u.rest_nonce),url:d,data:r}):a.default.ajax({type:"POST",dataType:"json",url:d,data:r}),i&&(s[i]=n),n.done(e=>o=e),n.always(()=>{i&&delete s[i],o?e(o):t()})})};var a=e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),l=e("undefined"!=typeof window?window.peepso:void 0!==t?t.peepso:null),u="undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null;function e(e){return e&&e.__esModule?e:{default:e}}const s={}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(e,t,o){!function(n){!function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getEmbed=function(d){let r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return new t.Promise((t,n)=>{let e={action:"peepso_embed_content",url:d,refresh:r?1:0},o,i;(o=a.default.ajax({type:"POST",url:l.ajaxurl,data:e,dataType:"json",success(e){i=e}})).always(()=>{var e;i&&i.success?t(i.data):(e=i&&i.error||void 0,n(e))})})};var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==n?n.jQuery:null)&&e.__esModule?e:{default:e},t="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null,l="undefined"!=typeof window?window.peepsodata:void 0!==n?n.peepsodata:null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,t,i){!function(e){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTarget=function(){let e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(!e.match(/^https?:\/\//i))return"";if(1===n)return t?' target="_blank"':"_blank";if(2===n&&0!==e.indexOf(o))return t?' target="_blank"':"_blank";return""};const n=+("undefined"!=typeof window?window.peepsodata:void 0!==e?e.peepsodata:null).open_in_new_tab,o=window.location.href.replace(/^(https?:\/\/[^\/]+).*$/,"$1")}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getEmbed",{enumerable:!0,get:function(){return o.getEmbed}}),Object.defineProperty(n,"getTarget",{enumerable:!0,get:function(){return i.getTarget}});var o=e("./get-embed"),i=e("./get-target")},{"./get-embed":5,"./get-target":6}],8:[function(e,t,n){!function(t){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.updateField=function(d,r,a){return new e.Promise((t,n)=>{let e,o,i;o={user_id:l.currentuserid,view_user_id:d,id:r,value:a},(e=peepso.postJson("profilefieldsajax.savefield",o).ret).done(e=>i=e).always(()=>{var e;i&&i.success&&!i.errors?t(i.data):(e=i&&i.errors&&i.errors[0]||void 0,n(e))})})},n.updateFieldVisibility=function(d,r,a){return new e.Promise((t,n)=>{let e,o,i;o={user_id:l.currentuserid,view_user_id:d,id:r,acc:a},(e=peepso.postJson("profilefieldsajax.save_acc",o).ret).done(e=>i=e).always(()=>{var e;i&&i.success&&!i.errors?t():(e=i&&i.errors&&i.errors.join("\n")||void 0,n(e))})})};var e="undefined"!=typeof window?window.peepso:void 0!==t?t.peepso:null,l="undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/modules.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/elements.min.js*/
try {
	!function o(i,a,d){function s(t,e){if(!a[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=a[t]={exports:{}},i[t][0].call(n.exports,function(e){return s(i[t][1][e]||e)},n,n.exports,o,i,a,d)}return a[t].exports}for(var l="function"==typeof require&&require,e=0;e<d.length;e++)s(d[e]);return s}({1:[function(e,t,d){!function(a){!function(){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.default=void 0;var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==a?a.jQuery:null)&&e.__esModule?e:{default:e},o="undefined"!=typeof window?window.peepso:void 0!==a?a.peepso:null;function t(e){e=(0,n.default)(e);e.find(".ps-js-activity-content, .ps-js-comment-content").each(function(){var e=(0,n.default)(this);o.util.isRTL(e.text().trim())?e.addClass("ps-text-rtl"):e.removeClass("ps-text-rtl")}),e.on("input","textarea.ps-comments__input",function(){i(this)})}function i(e){var e=(0,n.default)(e),t=e.prev(".ps-postbox__input-beautifier");o.util.isRTL(e.val().trim())?e.add(t).addClass("ps-text-rtl"):e.add(t).removeClass("ps-text-rtl")}d.default={init:function(){o.observer.addFilter("peepso_activity",e=>e.map(function(){return 1===this.nodeType&&t(this),this}),10,1),o.hooks.addAction("post_updated","auto-rtl",t),o.observer.addFilter("peepso_postbox_input_changed",(e,t)=>(i(t.$textarea),e),10,2),o.observer.addAction("postbox_update",e=>{e.$text.off("input.auto-rtl").on("input.auto-rtl",()=>{i(e.$text)}),setTimeout(()=>e.$text.triggerHandler("input.auto-rtl"),100)})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){!function(e){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;"undefined"==typeof window&&void 0!==e&&e.peepso;n.default=function(e,t){e instanceof Element&&!function(e,t){let n=1<arguments.length&&void 0!==t?t:{};e.addEventListener("dragover",e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy"}),e.addEventListener("drop",e=>{e.preventDefault();e=e.dataTransfer.files;e&&e.length&&"function"==typeof n.dropped&&n.dropped(e)})}(e,t)}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,f){!function(p){!function(){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var e,t="undefined"!=typeof window?window.peepso:void 0!==p?p.peepso:null;const o=((e="undefined"!=typeof window?window.peepsodata:void 0!==p?p.peepsodata:null)&&e.__esModule?e:{default:e}).default.hashtags||{},i=o.url,a=+o.everything||0,d=!a&&+o.min_length||0,s=!a&&+o.max_length||1e4,l=!a&&+o.must_start_with_letter||0,r=(()=>{let e,t;return t=a?"(^|>|\\s)(#([^#\\s<]+))":"(^|>|\\s)(#("+((e=l)?"[a-z]":"")+"[a-z0-9]{"+Math.max(0,d-(e?1:0))+","+Math.max(0,s-(e?1:0))+"}))",new RegExp(t,"ig")})(),n=["a","area","audio","base","br","button","code","col","embed","frame","hr","iframe","img","input","keygen","link","meta","param","script","select","source","style","textarea","track","video","wbr"];function u(e){var t=e.querySelectorAll("*");(t=[e,...t]).forEach(e=>{if(!(-1<n.indexOf(e.tagName.toLowerCase()))){let o=[...e.childNodes];o.forEach(e=>{var t,n;3===e.nodeType&&(n=e.textContent).trim()&&n.match(r)&&((t=document.createElement("div")).innerHTML=n=(n=n).match(r)?n.replace(r,function(e,t,n,o){return`${t}<a href="${i}${o}/"><span class="ps-stream-hashtag">${n}</span></a>`}):n,e.replaceWith.apply(e,t.childNodes),o=o.concat([...t.childNodes]))})}})}f.default={init:function(){if(o.url){t.observer.addFilter("peepso_activity",e=>e.map(function(){if(1===this.nodeType){let e=this.querySelectorAll([".ps-js-activity-content",".ps-js-activity-extras",".ps-js-activity-quote",".ps-js-activity-background-text",".ps-comment__content"].join(", "));(e=e.length?e:[this]).forEach(u)}return this}),11,1),t.hooks.addAction("post_updated","hashtag",function(e){e=e.querySelector(".ps-js-activity-background-text");e&&u(e)});const n=(()=>{var e="(?:\\u200D\\u200D)",t=`((?:^|\\s|&nbsp;)${e}?)`;let n;return n=a?t+`(#${e}?(?:[^#\\s\\u200D]${e}?)+)`:t+`(#${e}?(?:${(t=l)?`[a-z]${e}?`:""}(?:[a-z0-9]${e}?){${Math.max(0,d-(t?1:0))},${Math.max(0,s-(t?1:0))}})+)`,new RegExp(n,"ig")})();t.observer.addAction("postbox_content_transform",(e,t)=>{let i=n;[...e.querySelectorAll("[data-hashtag]")].forEach(e=>{var t=[...e.childNodes].find(e=>e.nodeType===Node.TEXT_NODE),n=e.previousSibling,o=e.nextSibling;n&&n.nodeType===Node.TEXT_NODE?(n.textContent+=t.textContent,e.remove(),o&&o.nodeType===Node.TEXT_NODE&&(n.textContent+=o.textContent,o.remove())):o&&o.nodeType===Node.TEXT_NODE?(o.textContent=t.textContent+o.textContent,e.remove()):e.replaceWith.apply(e,[t])}),function o(e){[...e.childNodes].forEach(e=>{var t,n;Node.TEXT_NODE===e.nodeType?(t=e.textContent).match(i)&&((n=document.createElement("div")).innerHTML=t.replace(i,(e,t,n)=>{return t+`<span data-highlight data-hashtag data-value="${n.replace(/\u200D/gi,"")}">${n}</span>`}),e.replaceWith.apply(e,n.childNodes)):Node.ELEMENT_NODE===e.nodeType&&o(e)})}(e)},10,2),jQuery(".peepso-wp-post-hashtags").each(function(){u(this)})}}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(p,e,t){!function(u){!function(){"use strict";var e=r("undefined"!=typeof window?window.jQuery:void 0!==u?u.jQuery:null),t=r("undefined"!=typeof window?window.peepso:void 0!==u?u.peepso:null),n="undefined"!=typeof window?window.peepsodata:void 0!==u?u.peepsodata:null,o=r(p("./droppable")),i=r(p("./post")),a=r(p("./hashtag")),d=r(p("./mention")),s=r(p("./permalink")),l=r(p("./auto-rtl"));function r(e){return e&&e.__esModule?e:{default:e}}t.default.elements={droppable:o.default},(0,e.default)(function(){i.default.init(),a.default.init(),d.default.init(),s.default.init(),+n.auto_rtl&&l.default.init()})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./auto-rtl":1,"./droppable":2,"./hashtag":3,"./mention":5,"./permalink":6,"./post":9}],5:[function(e,t,u){!function(o){!function(){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var e,h=(e="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&e.__esModule?e:{default:e},v="undefined"!=typeof window?window.peepso:void 0!==o?o.peepso:null;const i=new RegExp("@peepso_([a-z]+)_(\\d+)(?:\\(([^\\(\\)]+(?:\\([^\\(\\)]+\\)[^\\(\\)]*?)*?)\\))?","g"),n=["a","area","audio","base","br","button","code","col","embed","frame","hr","iframe","img","input","keygen","link","meta","param","script","select","source","style","textarea","track","video","wbr"];let a=0;function d(e){return e=e.match(i)?e.replace(i,function(e,t,n,o){var i="ps-tag__link ps-js-mention-"+ ++a,e=`<a class="${i}">${o||e}</a>`;return i=i,t=[t,n,o],l?r.push({elements:i,params:t}):s(i,t),e}):e}function t(e){var t=e.querySelectorAll("*");(t=[e,...t]).forEach(e=>{if(!(-1<n.indexOf(e.tagName.toLowerCase()))){let o=[...e.childNodes];o.forEach(e=>{var t,n;3===e.nodeType&&(t=e.textContent).trim()&&t.match(i)&&((n=document.createElement("div")).innerHTML=d(t),e.replaceWith.apply(e,n.childNodes),o=o.concat([...n.childNodes]))})}})}function s(e,t){var[t,n,o]=t;v.modules.mention.getHtml(t,n,o).then(n=>{(e=[...document.getElementsByClassName(e)]).forEach(t=>{var e=document.createElement("div");e.innerHTML=n,[...e.childNodes].forEach(e=>{t.parentNode.insertBefore(e,t)}),t.parentNode.removeChild(t)})})}let l=!0,r=[];let m;function w(){m&&m.hide()}v.observer.addAction("postbox_content_change",(e,t)=>{var n=window.getSelection();if(!n.rangeCount)return!1;var n=n.getRangeAt(0),o=n.startContainer;if(o.nodeType===Node.TEXT_NODE){var i=o.parentElement;if(i.hasAttribute("data-mention")){var l=i.getAttribute("data-name");let n=i.innerText;if(n!==l){let t=l.split(/\s+/),e=n.split(/\s+/);if((e=e.filter(e=>0<=t.indexOf(e))).length){var l=i.childNodes[0],a=(n=e.join(" "),l.textContent=n,i.setAttribute("data-value",`@peepso_user_${i.getAttribute("data-id")}(${n})`),window.getSelection()),d=document.createRange();d.setStart(l,l.textContent.length),d.collapse(!0),a.removeAllRanges(),a.addRange(d)}else{l=i.previousSibling,a=i.nextSibling;let e,t;l?(e=l,t=l.textContent.length,a&&(l.textContent+=a.textContent,a.remove())):a&&(e=a,t=0);d=i.parentElement;i.remove(),e&&(l=window.getSelection(),(a=document.createRange()).setStart(e,t),a.collapse(!0),l.removeAllRanges(),l.addRange(a)),d.innerText.trim().length||(d.innerHTML="",d.focus())}}}else{i=o.textContent.substr(0,n.startOffset).match(/@([a-z]+)$/i);if(i){var r=e,u=t,p=i.slice(1),l=(m||(m=(0,h.default)('<div class="ps-post__background-selector" />')).appendTo(document.body),window.getSelection());if(l.rangeCount){let e=l.getRangeAt(0),d=e.startContainer,s=e.startOffset,t=e.getClientRects()[0],n=document.documentElement.scrollTop||document.body.scrollTop,o=document.documentElement.scrollLeft||document.body.scrollLeft,i=t.top+n+25,a=t.left+o;function f(){if(m&&m.is(":visible")){var o=m.find(".active");if(o.length){let e=d.textContent,t=e.substr(0,s),n=e.substr(s);t=t.replace(/@[^@]*$/,""),n=n.replace(/^[^\s]+/,"");var i=document.createElement("div"),a=o.data("id"),o=o.data("name"),a=(i.innerHTML=t+`<span data-highlight data-mention data-id="${a}" data-name="${o}" data-value="${`@peepso_user_${a}(${o})`}">${o}</span> ‍`+n,i.childNodes[t.length?2:1]),o=(d.replaceWith.apply(d,i.childNodes),window.getSelection()),i=document.createRange();i.setStart(a,1),i.collapse(!0),o.removeAllRanges(),o.addRange(i),w()}}}function c(t){t=0<arguments.length&&void 0!==t?t:"down";if(m){var n=m.find(".active");let e="up"===t?n.prev():n.next();(e=e.length?e:"up"===t?n.siblings().last():n.siblings().first()).length&&(n.removeClass("active"),e.addClass("active"))}}u.disableInput=!0,m.css({top:i,left:a}),m.show(),m.off("click.ps-mention"),m.on("click.ps-mention",function(e){var t=(0,h.default)(e.target).closest("[data-item]");t.length&&(e.preventDefault(),e.stopPropagation(),t.addClass("active").siblings("[data-item]").removeClass("active"),f(),setTimeout(()=>u.disableInput=!1,400))}),(0,h.default)(r).off("keydown.ps-mention"),(0,h.default)(r).on("keydown.ps-mention",function(e){var t=e.keyCode;13===t?(e.preventDefault(),e.stopPropagation(),f(),setTimeout(()=>u.disableInput=!1,400)):27===t?(w(),setTimeout(()=>u.disableInput=!1,400)):38===t?(e.preventDefault(),e.stopPropagation(),c("up")):40===t&&(e.preventDefault(),e.stopPropagation(),c("down"))}),v.modules.mention.getTargets().then(t=>{let n="",o=0,e=[...r.querySelectorAll("[data-mention]")];e=e.map(e=>+e.getAttribute("data-id"));for(const a in t.users)if(!(0<=e.indexOf(+a))&&Object.hasOwnProperty.call(t.users,a)){var i=t.users[a];let e=i.name;0<=(e=String.prototype.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e).toLowerCase().indexOf(p)&&(n+=`<a href="#" class="${o++?"":"active"}" data-item data-id="${i.id}" data-name="${i.name}" style="display: block; white-space: nowrap"><div class="ps-avatar"><img src="${i.avatar}"></div> <span>${i.name}</span></a>`)}n?m.html(n):m.hide()})}}else w()}}},10,2),v.observer.addAction("postbox_content_update",(e,t)=>{[...[...e.childNodes].filter(e=>e.nodeType===Node.TEXT_NODE)].forEach(e=>{var t,n=e.textContent.replace(/@peepso_user_(\d+)\(([\s\S]*?)\)/g,function(e,t,n){return`<span data-highlight data-mention data-id="${t}" data-name="${n}" data-value="${e}">${n}</span>`});n!==e.textContent&&((t=document.createElement("div")).innerHTML=n,e.replaceWith.apply(e,t.childNodes))})},10,2),u.default={init:function(){v.observer.addFilter("peepso_activity",e=>e.map(function(){return 1===this.nodeType&&t(this),this}),10,1),v.hooks.addAction("post_updated","mention",function(e){e=e.querySelector(".ps-js-activity-background-text");e&&t(e)}),(0,h.default)(()=>{t(document.body),setTimeout(()=>{for(l=!1;r.length;){var{elements:e,params:t}=r.shift();s(e,t)}},3e3)})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,t,a){!function(i){!function(){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e},t="undefined"!=typeof window?window.peepso:void 0!==i?i.peepso:null;function o(){(0,n.default)(".ps-js-permalink").each(function(){var e=(0,n.default)(this);e.removeClass("ps-js-permalink"),e.on("click",function(e){e.preventDefault(),e.stopPropagation();var e=(0,n.default)(this),t=e.closest("a[href]");t.length&&(peepso.util.copyToClipboard(t.attr("href")),e.attr("data-tooltip",e.data("tooltip-success")))}),e.on("mouseleave",function(){var e=(0,n.default)(this),t=e.data("tooltip-initial");t!==e.attr("data-tooltip")&&e.attr("data-tooltip",t)})})}a.default={init:function(){(0,n.default)(function(){setTimeout(o,1e3)}),t.observer.addFilter("peepso_activity",e=>(setTimeout(o,1e3),e),10,1)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,h){!function(t){!function(){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0;var i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e},a="undefined"!=typeof window?window.peepso:void 0!==t?t.peepso:null,e="undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null;e=e.elements&&e.elements.post||{};const d=e.text_subscribe,s=e.text_unsubscribe,l=e.html_subscribed_notice;let r=null;function u(e){var t=e.querySelector("span");e.removeEventListener("click",n),(0,i.default)(e).addClass("ps-loading-pulse").css("cursor","not-allowed"),t.style.display="none"}function p(e){var t=e.querySelector("span");e.addEventListener("click",n),(0,i.default)(e).removeClass("ps-loading-pulse").css("cursor",""),t.style.display=""}function f(e,t){var n=e.querySelector("i"),o=e.querySelector("span");t?(e.setAttribute("data-follow",1),n.className="gcis gci-square-check",o.innerHTML=s):(e.setAttribute("data-follow",0),n.className="gcir gci-square-check",o.innerHTML=d)}function n(e){let o=e.currentTarget,t=+o.getAttribute("data-follow"),n=+o.getAttribute("data-post-id");e.preventDefault(),e.stopPropagation(),u(o),f(o,!t),a.modules.post.follow(n,t?0:1).then(function(e){let t=!1;var n;p(o,e),(t=1==e.follow?a.observer.applyFilters("post_subscribe_notice",!0):t)?(e=(0,i.default)(o).offset(),n=(0,i.default)(o).height(),r||((r=(0,i.default)("<div/>").html(l)).css({position:"absolute"}),r.appendTo(document.body)),r.stop().show(),r.css({top:Math.round(e.top-r.height()/2+n/2),left:Math.round(e.left-r.width()-10)}),r.delay(2e3).fadeOut()):r&&r.stop().hide()})}function o(e){let t=e.querySelector(".ps-js-follow-toggle");t&&(u(t),e=+t.getAttribute("data-post-id"))&&a.modules.post.follow(e).then(function(e){p(t,e),f(t,!!e.follow)})}function c(e){var t,e=e.querySelector(".js-stream-actions");e&&(t=e.querySelector(".ps-js-follow-toggle"))&&(t.closest&&!t.closest(".ps-js-activity")?t.remove():o(e))}h.default={init:function(){function t(e){var t,e=document.querySelector(`.ps-js-follow-toggle[data-stream-id="${e}"]`);e&&(e=+(t=e).getAttribute("data-post-id"),u(t),a.modules.post.follow(e).then(function(e){p(t,e),f(t,!!e.follow)}))}a.observer.addFilter("peepso_activity",e=>e.map(function(){return 1===this.nodeType&&c(this),this}),10,1),a.observer.addAction("peepso_activity_actions",e=>{e.map(function(){return 1===this.nodeType&&o(this),this})},10,1),a.hooks.addAction("comment_added","post_follow",e=>{e=e.closest(".ps-js-activity");e&&c(e)}),a.hooks.addAction("post_saved","post_follow",t),a.hooks.addAction("reaction_added","post_follow",t),a.hooks.addAction("reaction_deleted","post_follow",t),a.hooks.addAction("comment_added","post_follow",e=>{e=e.closest(".ps-js-activity");e&&t(e.getAttribute("data-post-id"))})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,o){!function(t){!function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e},d="undefined"!=typeof window?window.peepso:void 0!==t?t.peepso:null,i="undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null;function n(e,t){var n=(0,a.default)(e),o=(t||(o=n.find(".ps-js-post-body input[name=peepso_set_human_friendly]")).length&&(t=o.val(),o.remove()),+t&&(+i.is_admin||+n.data("author")==+i.currentuserid)&&d.modules.post.setHumanReadable(+t,function(e){var t=(0,a.default)(e);let n=t.find(".ps-js-post-body .ps-js-activity-background-text"),o=(n=n.length?n:t.find(".ps-js-post-body .ps-js-activity-content")).get(0).innerText.trim();return(e=d.observer.applyFilters("human_friendly_extras",[],o,e)).length&&(o&&e.unshift(o),o=e.join(". ")),o||(n=t.find(".ps-js-post-header .ps-stream-action-title")).length&&(o=n.get(0).innerText.trim()),o=o.replace(/\r?\n/g," ")}(e)),n.find(".ps-js-comment-item"));o.length&&o.each(function(){s(this)})}function s(e,t){var n,o=(0,a.default)(e);t||(n=o.find(".ps-js-comment-body").eq(0).find("input[name=peepso_set_human_friendly]")).length&&(t=n.val(),n.remove()),+t&&(+i.is_admin||+o.data("author")==+i.currentuserid)&&d.modules.post.setHumanReadable(+t,function(e){let t=(0,a.default)(e),n=t.find(".ps-js-comment-body .ps-js-comment-content"),o=n.get(0).innerText.trim(),i=d.observer.applyFilters("human_friendly_extras",[],o,e);return i.length&&(o&&i.unshift(o),o=i.join(". ")),o=o.replace(/\r?\n/g," ")}(e))}d.hooks.addAction("post_added","human_readable",n),d.hooks.addAction("post_updated","human_readable",function(e){var t=(0,a.default)(e).data("post-id");t&&n(e,t)}),d.hooks.addAction("comment_added","human_readable",s),d.hooks.addAction("comment_updated","human_readable",function(e){var t=(0,a.default)(e).data("comment-id");t&&s(e,t)}),o.default={init:function(){}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=p(e("./read-more")),i=p(e("./options")),a=p(e("./save")),d=p(e("./follow")),s=p(e("./track")),l=p(e("./human")),r=p(e("./link-target")),u=p(e("./nsfw"));function p(e){return e&&e.__esModule?e:{default:e}}n.default={init:function(){o.default.init(),i.default.init(),a.default.init(),d.default.init(),s.default.init(),l.default.init(),r.default.init(),u.default.init()}}},{"./follow":7,"./human":8,"./link-target":10,"./nsfw":11,"./options":12,"./read-more":13,"./save":14,"./track":15}],10:[function(e,t,a){!function(n){!function(){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e,o=(e="undefined"!=typeof window?window.jQuery:void 0!==n?n.jQuery:null)&&e.__esModule?e:{default:e},i="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null;function t(e){let t=(0,o.default)("<div/>").append(e),n;return(n=t.find(".ps-js-post-body").length?t.find(".ps-js-post-body a[href]"):t.find(".ps-js-comment-body").length?t.find(".ps-js-comment-content a[href]").add(t.find(".ps-js-comment-attachment a[href]")):t.find("a[href]")).each(function(){var e=(0,o.default)(this),t=i.modules.url.getTarget(e.attr("href"),!1);t?e.attr("target",t):e.removeAttr("target")}),t.html()}a.default={init:function(){i.observer.addFilter("peepso_activity_content",e=>t(e),10,1)},setLinkTarget:t}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,a){!function(n){!function(){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e,o=(e="undefined"!=typeof window?window.jQuery:void 0!==n?n.jQuery:null)&&e.__esModule?e:{default:e},i="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null;function t(e){(0,o.default)(e).off("click.nsfw").on("click.nsfw",".ps-js-post-nsfw span",function(){var e=(0,o.default)(this).closest(".ps-js-post-nsfw"),t=e.closest(".ps-js-post-body"),n=t.children(".ps-js-activity-content"),t=t.children(".ps-js-activity-attachments");n.removeClass("ps-post__content--nsfw"),t.removeClass("ps-post__attachments--nsfw"),e.remove(),i.hooks.doAction("nsfw_reveal",t.get(0))})}i.hooks.addAction("post_added","nsfw",t),i.hooks.addAction("post_updated","nsfw",t),i.hooks.addAction("post_reload","nsfw",e=>{(0,o.default)(`.ps-js-activity[data-post-id="${e}"]`).each(function(){t(this)})}),a.default={init:function(){}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,t,a){!function(o){!function(){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e,d=(e="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&e.__esModule?e:{default:e},i="undefined"!=typeof window?window.peepso:void 0!==o?o.peepso:null,s="undefined"!=typeof window?window.peepsodata:void 0!==o?o.peepsodata:null;function n(e,t){let a=(0,d.default)(e);a.on("click.ps-fetch-options",function(){var o;a.off("click.ps-fetch-options"),o=t,new Promise((t,e)=>{var n=s.rest_url+"post_options";i.ajax.get(n,{post_id:o},-1).done(e=>t(e)).fail(e)}).then(e=>{let t="";if(e&&e.options instanceof Object)for(var n in e.options){n=e.options[n];if(null===n)t+="__spacer__";else{var o=n["li-class"]?` class="${n["li-class"]}"`:"",i=n.extra?" "+n.extra:"";let e="";n.click&&(e=(e=n.click.replace(/\s*return\s+false\s*(;\s*)?$/,"").replace(/\s*;$/,"").replace(/"/g,"&quot;"))?` onclick="${e}; return false"`:""),t+=`<a href="#"${o}${i}${e}>
							<i class="${n.icon}"></i><span>${n.label}</span>
						</a>`}}(t=(t=t.replace(/^(__spacer__)+/,"").replace(/(__spacer__)+$/,"").replace(/(__spacer__){2,}/,"__spacer__")).replace(/__spacer__/g,'<span class="ps-post__options-sep"></span>'))&&(a.find(".ps-js-dropdown-menu").html(t),a.find("a.child").hide(),a.find("a.parent").on("click",function(e){e.preventDefault(),e.stopPropagation(),(0,d.default)(this).nextUntil(":not(.child)").toggle()}))})})}function t(e){var t,e=e.querySelector(".ps-js-post-options");e&&(t=+e.getAttribute("data-id"))&&(e.removeAttribute("data-id"),n(e,t))}a.default={init:function(){i.observer.addFilter("peepso_activity",e=>e.map(function(){return 1===this.nodeType&&t(this),this}),10,1),i.observer.addAction("peepso_activity_actions",e=>{e.map(function(){return 1===this.nodeType&&t(this),this})},10,1)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(f,e,c){!function(i){!function(){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var a=t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null),d="undefined"!=typeof window?window.peepso:void 0!==i?i.peepso:null,e="undefined"!=typeof window?window.peepsodata:void 0!==i?i.peepsodata:null,s=t(f("./link-target"));function t(e){return e&&e.__esModule?e:{default:e}}var n=e.activity&&+e.activity.is_permalink;const l=+e.readmore_min,r=+e.readmore_min_single,u=e.read_more_text;function o(t){var t=(0,a.default)(t),n=t.find(".ps-js-post-body .ps-js-activity-content"),o=n.text().trim().length;if(o>l){var i='<a href="#" class="ps-stream-post-more ps-js-content-excerpt-toggle"/>';let e=(0,a.default)('<a href="#" class="ps-stream-post-more ps-js-content-excerpt-toggle"/>').html(u);o>r&&(o=t.find(".ps-js-post-header .ps-js-timestamp").attr("href"),i=s.default.setLinkTarget(e.attr("href",o).prop("outerHTML")),e=(0,a.default)(i).attr("data-single-act",1));o=(0,a.default)('<div class="ps-js-content-excerpt"/>').html(d.util.trimHtml(n.html(),l)+" &hellip; ").append(e),i=(0,a.default)('<div class="ps-js-content-full"/>').html(n.html()).css("display","none");n.empty().append(o).append(i)}n=t.find(".ps-js-comment-item");n.length&&n.each(function(){p(this)})}function p(e){var t,n,e=(0,a.default)(e).find(".ps-js-comment-body .ps-js-comment-content");e.text().trim().length>l&&(t=(0,a.default)('<a class="ps-stream-post-more ps-js-content-excerpt-toggle"/>').attr("href","#").html(u),t=(0,a.default)('<div class="ps-js-content-excerpt"/>').html(d.util.trimHtml(e.html(),l)+" &hellip; ").append(t),n=(0,a.default)('<div class="ps-js-content-full"/>').html(e.html()).css("display","none"),e.empty().append(t).append(n))}n||(d.hooks.addAction("post_added","add_readmore",o),d.hooks.addAction("post_updated","add_readmore",function(e){var t=(0,a.default)(e).data("post-id");t&&o(e)}),d.hooks.addAction("comment_added","add_readmore",p),d.hooks.addAction("comment_updated","add_readmore",function(e){var t=(0,a.default)(e).data("comment-id");t&&p(e)})),c.default={init:function(){}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./link-target":10}],14:[function(e,t,c){!function(t){!function(){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e},d="undefined"!=typeof window?window.peepso:void 0!==t?t.peepso:null,e="undefined"!=typeof window?window.peepsodata:void 0!==t?t.peepsodata:null;e=e.elements&&e.elements.post||{};const i=e.text_save,s=e.text_saved,l=e.html_saved_notice;let r=null;function o(e){var t=e.querySelector("span");e.removeEventListener("click",f),(0,a.default)(e).addClass("ps-loading-pulse").css("cursor","not-allowed"),t.style.display="none"}function u(e,t){var t=1<arguments.length&&void 0!==t?t:{},n=e.querySelector("span");e.addEventListener("click",f),(0,a.default)(e).removeClass("ps-loading-pulse").css("cursor",""),n.style.display="",+t.saved&&e.setAttribute("data-object-id",t.id)}function p(e,t){var n=e.querySelector("i"),o=e.querySelector("span");t?(e.setAttribute("data-saved","1"),n.className="gcis gci-bookmark",o.innerHTML=s):(e.removeAttribute("data-saved"),n.className="gcir gci-bookmark",o.innerHTML=i)}function f(e){let i=e.currentTarget,t=+i.getAttribute("data-saved"),n=+i.getAttribute(t?"data-object-id":"data-stream-id");e.preventDefault(),e.stopPropagation(),o(i),p(i,!t),d.modules.post.save(n,!t).then(function(e){let t=!1;var n,o;u(i,e),(t=e.saved?d.observer.applyFilters("post_saved_notice",!0):t)?(n=(0,a.default)(i).offset(),o=(0,a.default)(i).height(),r||((r=(0,a.default)("<div/>").html(l)).css({position:"absolute"}),r.appendTo(document.body)),r.stop().show(),r.css({top:Math.round(n.top-r.height()/2+o/2),left:Math.round(n.left-r.width()-10)}),r.delay(2e3).fadeOut()):r&&r.stop().hide(),d.hooks.doAction("post_saved",+i.getAttribute("data-stream-id"),!!e.saved)})}function n(e){let t=e.querySelector(".ps-js-save-toggle");t&&(o(t),e=+t.getAttribute("data-stream-id"))&&d.modules.post.save(e).then(function(e){u(t,e),p(t,!!e.saved)})}c.default={init:function(){d.observer.addFilter("peepso_activity",e=>e.map(function(){var e,t;return 1===this.nodeType&&(e=(e=this).querySelector(".js-stream-actions"))&&(t=e.querySelector(".ps-js-save-toggle"))&&(t.closest&&!t.closest(".ps-js-activity")?t.remove():n(e)),this}),10,1),d.observer.addAction("peepso_activity_actions",e=>{e.map(function(){return 1===this.nodeType&&n(this),this})},10,1)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,t,s){!function(d){!function(){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var n=(e="undefined"!=typeof window?window.jQuery:void 0!==d?d.jQuery:null)&&e.__esModule?e:{default:e},e="undefined"!=typeof window?window._:void 0!==d?d._:null,o="undefined"!=typeof window?window.peepso:void 0!==d?d.peepso:null,t="undefined"!=typeof window?window.peepsodata:void 0!==d?d.peepsodata:null;let i=[],a=(0,e.debounce)(function(){if(i.length)for(let e=i.length-1;0<=e;e--){var t=i[e];o.util.isElementPartlyInViewport(t)&&((t=(0,n.default)(t).closest(".ps-js-activity")).length&&(t=t.data("id"),o.modules.post.trackView(t)),i.splice(e,1))}},1e3);s.default={init:function(){+t.currentuserid&&((0,n.default)(window).on("scroll",a),o.observer.addFilter("peepso_activity",e=>e.map(function(){var e;return 1===this.nodeType&&(e=this,i.push(e),a()),this}),10,1))}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[4]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/elements.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/sections.min.js*/
try {
	!function l(s,n,d){function a(t,e){if(!n[t]){if(!s[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(o)return o(t,!0);throw(i=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",i}i=n[t]={exports:{}},s[t][0].call(i.exports,function(e){return a(s[t][1][e]||e)},i,i.exports,l,s,n,d)}return n[t].exports}for(var o="function"==typeof require&&require,e=0;e<d.length;e++)a(d[e]);return a}({1:[function(e,t,i){"use strict";var l=n(e("./profile")),s=n(e("./search"));function n(e){return e&&e.__esModule?e:{default:e}}document.addEventListener("DOMContentLoaded",()=>{l.default.init(),s.default.init()})},{"./profile":3,"./search":4}],2:[function(e,t,n){!function(i){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var h=e("undefined"!=typeof window?window._:void 0!==i?i._:null),s=e("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null),$="undefined"!=typeof window?window.peepso:void 0!==i?i.peepso:null,m="undefined"!=typeof window?window.peepsodata:void 0!==i?i.peepsodata:null;function e(e){return e&&e.__esModule?e:{default:e}}const l=m.sections&&m.sections.profile&&m.sections.profile.textSaveAllErrorNotice;class t{constructor(e){this.$container=(0,s.default)(e),this.$btnEditAll=this.$container.find(".ps-js-btn-edit-all"),this.$btnSaveAll=this.$container.find(".ps-js-btn-save-all").hide(),this.$fields=this.$container.find(".ps-js-profile-item").filter(function(){return!(0,s.default)(this).find(".ps-js-profile-separator").length}),this.$fields.length||this.$btnEditAll.hide(),this.$fields.each((e,t)=>this.fieldInit(t)),this.fieldChanged=[],this.fieldChangedHandler=e=>!!this.fieldChanged.length||e,$.observer.addFilter("beforeunload",this.fieldChangedHandler,10,1),this.$btnEditAll.on("click",()=>this.fieldsEditAll()),this.$btnSaveAll.on("click",()=>this.fieldsSaveAll())}fieldInit(e){(0,s.default)(e).on("click",".ps-js-btn-edit",()=>this.fieldEdit(e)).on("click",".ps-js-btn-cancel",()=>this.fieldEditCancel(e)).on("click",".ps-js-btn-save",()=>this.fieldEditSave(e))}fieldGetData(e){let i=(0,s.default)(e).closest(".ps-js-profile-item"),l;if(i.length&&(l=i.data(),!l.$field)){let e=i.find(".ps-list-info-content-form"),t=e.find("input[type=text],input[type=checkbox],input[type=radio],textarea,select");l={$field:i,$label:i.find(".ps-list-info-content-text"),$form:i.find(".ps-list-info-content-form"),$error:i.find(".ps-list-info-content-error"),$validation:i.find(".ps-js-validation"),$inputs:t,$btnEdit:i.find(".ps-js-btn-edit"),$btnCancel:e.find(".ps-js-btn-cancel"),$btnSave:e.find(".ps-js-btn-save"),id:t.data("id"),type:this.fieldGetType(t),value:this.fieldGetValue(t)},i.data(l)}return l}fieldGetType(e){let t=e.eq(0),i=t.prop("tagName").toLowerCase(),l=t.attr("type")||"";return-1<["select","textarea"].indexOf(i)?l=i:"text"===l&&t.hasClass("datepicker")&&(l="datepicker"),l}fieldGetValue(e){let t=this.fieldGetType(e),i,l;return i="checkbox"===t?(i=e.filter(":checked").map((e,t)=>t.value),JSON.stringify([...i])):"radio"===t?e.filter(":checked").val():"datepicker"===t?(l=e.val(),i=e.data("value"),{value:i,formatted:l}):"text"===t?e.val().trim():e.val(),i}fieldSetValue(e,i){var t=this.fieldGetType(e);"checkbox"===t?(i=JSON.parse(i),e.each((e,t)=>{t.checked=-1<i.indexOf(t.value)})):"radio"===t?e.each((e,t)=>{t.checked=t.value===i}):"datepicker"===t?(e.val(i.formatted),e.data("value",i.value)):e.val(i)}fieldEdit(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];let i=this.fieldGetData(e),{$label:l,$form:s,$error:n,$validation:d,$inputs:a,id:o,type:r}=i;"text"===r&&a.off("keydown").on("keydown",e=>{13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.fieldEditSave(e.target))});let f=()=>{};if(-1<["text","textarea"].indexOf(r)){let t=a.next(".ps-js-counter");t.length&&(t.show(),f=h.default.throttle(e=>t.html(e),500),f(a.val().length))}a.off("input.ps-field").on("input.ps-field",e=>{-1===this.fieldChanged.indexOf(o)&&this.fieldChanged.push(o),f(e.target.value.length)}),l.hide(),s.show(),n.hide(),d.addClass("ps-alert--neutral").removeClass("ps-alert--abort"),t||-1===["checkbox","radio"].indexOf(r)&&a.focus()}fieldEditCancel(e){let t=this.fieldGetData(e),{$label:i,$form:l,$error:s,$inputs:n,id:d,value:a}=t;this.fieldSetValue(n,a),i.show(),l.hide(),s.hide();e=this.fieldChanged.indexOf(d);-1<e&&this.fieldChanged.splice(e,1)}fieldEditSave(e){let s=this.fieldGetData(e),{$field:n,$label:l,$form:d,$error:a,$inputs:o,$btnCancel:r,$btnSave:f,id:h,type:u}=s,p=f.find("img"),c=this.fieldGetValue(o);o.attr("disabled","disabled"),f.add(r).attr("disabled","disabled"),p.show(),"datepicker"===u&&(c=c.value),c=$.observer.applyFilters("profile_field_save",c,o);let v=e=>{let t=e["display_value"],i=l.find(".ps-list-info-content-data");s.value=c,void 0!==t?(t=$.observer.applyFilters("peepso_parse_content",t),i.html(t)):"select"===u?i.html(o.find("option:selected").text()):i.html(o.val()),l.show(),d.hide(),a.hide(),n.addClass("ps-list-info-success"),setTimeout(()=>n.removeClass("ps-list-info-success"),1e3),$.observer.doAction("profile_field_updated",s,e),$.hooks.doAction("profile_completeness_updated",m.userid,e);e=this.fieldChanged.indexOf(h);-1<e&&this.fieldChanged.splice(e,1)};return new $.Promise((e,t)=>{let i=!1;$.modules.user.updateField(m.userid,h,c).then(v).catch(e=>{(t=>{let e=s["$validation"],i=[];if(e.addClass("ps-alert--neutral").removeClass("ps-alert--abort"),t)for(var l in t){let e=d.find(".ps-js-validation-"+l);e.length?e.addClass("ps-alert--abort").removeClass("ps-alert--neutral"):i.push(t[l])}i.length?(i=i.join("<br>"),a.html(i).show()):a.hide(),n.addClass("ps-list-info-error"),setTimeout(()=>n.removeClass("ps-list-info-error"),1e3)})(e),i=!0}).then(()=>{o.removeAttr("disabled"),f.add(r).removeAttr("disabled"),p.hide(),i?t(n[0]):e()})})}fieldsEditAll(){this.$btnEditAll.hide(),this.$btnSaveAll.show(),this.$fields.each((e,t)=>{this.fieldEdit(t,"nofocus")})}fieldsSaveAll(){this.$btnSaveAll.attr("disabled","disabled");let i=[];this.$fields.each((e,t)=>{i.push(this.fieldEditSave(t))}),$.Promise.all(i.map(e=>e.catch(e=>e))).then(e=>{var t=e.filter(e=>e);this.$btnSaveAll.removeAttr("disabled"),t.length?(e=(0,s.default)(t[0]).offset().top-window.innerHeight/2,t=h.default.debounce(()=>alert(l),200),(0,s.default)("html, body").animate({scrollTop:e},1e3,t)):(this.$btnSaveAll.hide(),this.$btnEditAll.show())})}}n.default={init(){var e=document.querySelectorAll('[data-ps-section="profile/about"]');e.length&&[...e].forEach(e=>new t(e))}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var l=(e=e("./about"))&&e.__esModule?e:{default:e};i.default={init:function(){l.default.init()}}},{"./about":2}],4:[function(e,t,f){!function(r){!function(){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var d=(i="undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null)&&i.__esModule?i:{default:i},e="undefined"!=typeof window?window._:void 0!==r?r._:null,n="undefined"!=typeof window?window.peepso:void 0!==r?r.peepso:null,t="undefined"!=typeof window?window.peepsodata:void 0!==r?r.peepsodata:null;var i=t.sections.search||{};const a=t.rest_url,o=+i.show_empty_sections;let l=0;class s{constructor(e){this.uniqueId=++l,this.$container=(0,d.default)(e),this.$query=this.$container.find("input.ps-js-query"),this.$loading=this.$container.find(".ps-js-loading").hide(),this.$results=this.$container.find(".ps-js-result").hide(),this.tplSection=(0,n.template)(this.$container.find(".ps-js-template-section").text().trim()),this.tplItems=(0,n.template)(this.$container.find(".ps-js-template-items").text().trim()),this.tplEmpty=(0,n.template)(this.$container.find(".ps-js-template-empty").text().trim()),this.$query.on("input",e=>{this.$query.val().trim()?(this.$results.hide(),this.$loading.show(),this.searchWithDelay()):(this.$results.hide(),this.$loading.hide())}),this.$query.val().trim()&&this.$query.triggerHandler("input")}search(){let e=this.$query.val().trim(),t=a+"search",i=t+"_"+this.uniqueId,l={query:e},s;if(!e)return this.$loading.hide(),void this.$results.hide();s=n.modules.request.get(i,t,l),s.then(e=>{this.render(e),this.$loading.hide(),this.$results.show()}).catch(()=>{this.$loading.hide()})}searchWithDelay(){this.searchWithDelay=(0,e.debounce)(this.search,1e3),this.searchWithDelay()}render(e){let t=e.results,i=e.meta.sections,l=!!o,s="";if(t)for(const n in t){let e=d.default.extend({},i[n],{type:n});t.hasOwnProperty(n)&&t[n].length?(e.html=this.tplItems({results:t[n],type:n}),l=!0):e.html=this.tplEmpty(),s+=this.tplSection(e)}l||(s=this.tplEmpty()),this.$results.html(s)}}f.default={init:function(){(0,d.default)(".ps-js-section-search").each(function(){new s(this)})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/sections.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-includes/js/jquery/ui/core.min.js*/
try {
	/*! jQuery UI - v1.13.3 - 2024-04-26
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
/*!
 * jQuery UI :data 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
 * jQuery UI Disable Selection 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
 * jQuery UI Focusable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
 * jQuery UI Form Reset Mixin 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
/*!
 * jQuery UI Keycode 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
 * jQuery UI Labels 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
 * jQuery UI Position 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
 * jQuery UI Scroll Parent 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
 * jQuery UI Tabbable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
 * jQuery UI Unique ID 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
 * jQuery UI Widget 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-includes/js/jquery/ui/core.min.js?ver=1.13.3 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/bundle.min.js*/
try {
	/* [inline: cdata] */var peepsolightboxdata={"template":"<div class=\"ps-lightbox ps-js-lightbox\">\n\t<div class=\"ps-lightbox__inner ps-lightbox-padding\">\n\t\t<div class=\"ps-lightbox__container ps-lightbox-wrapper\">\n\t\t\t<div class=\"ps-lightbox__view ps-lightbox-content\">\n\t\t\t\t<div class=\"ps-lightbox__object ps-lightbox-object\"><\/div>\n\t\t\t\t<button class=\"ps-lightbox__nav ps-lightbox__nav--left ps-lightbox-arrow-prev\"><i class=\"gcis gci-chevron-left\"><\/i><\/button>\n\t\t\t\t<button class=\"ps-lightbox__nav ps-lightbox__nav--right ps-lightbox-arrow-next\"><i class=\"gcis gci-chevron-right\"><\/i><\/button>\n\t\t\t\t<div class=\"ps-lightbox__zoom ps-lightbox-imagelink\">\n\t\t\t\t\t<a target=\"_blank\">\n\t\t\t\t\t\t<i class=\"gcis gci-expand-arrows-alt\"><\/i>\n\t\t\t\t\t\tView full image\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"ps-lightbox__actions ps-lightbox-toolbar\">\n\t\t\t\t\t<div class=\"ps-lightbox__action ps-lightbox-toolbar-actions\">\n\t\t\t\t\t\t<button class=\"ps-lightbox-data-toggle\">\n\t\t\t\t\t\t\t<i class=\"gcis gci-comments\"><\/i>\n\t\t\t\t\t\t\tComments\t\t\t\t\t\t<\/button>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"ps-lightbox__loading ps-lightbox__spinner ps-lightbox-spinner\"><\/div>\n\t\t\t<\/div>\n\t\t\t<div class=\"ps-lightbox__side\"><div class=\"ps-lightbox__side-inner ps-lightbox-data\"><\/div><\/div>\n\t\t\t<div class=\"ps-lightbox__close ps-lightbox-close\" aria-label=\"Close\"><i class=\"gcis gci-times\"><\/i><\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n"};var peepsotimedata={"ts":"1730209619","now":"just now","min_1":"%s min ago","min_2":"%s mins ago","min_3":"%s mins ago","hour_1":"%s hour ago","hour_2":"%s hours ago","hour_3":"%s hours ago","day_1":"%s day ago","day_2":"%s days ago","day_3":"%s days ago","week_1":"%s week ago","week_2":"%s weeks ago","week_3":"%s weeks ago","month_1":"%s month ago","month_2":"%s months ago","month_3":"%s months ago","year_1":"%s year ago","year_2":"%s years ago","year_3":"%s years ago"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/bundle.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}try {
	!function o(s,n,a){function r(e,t){if(!n[e]){if(!s[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(d)return d(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}i=n[e]={exports:{}},s[e][0].call(i.exports,function(t){return r(s[e][1][t]||t)},i,i.exports,o,s,n,a)}return n[e].exports}for(var d="function"==typeof require&&require,t=0;t<a.length;t++)r(a[t]);return r}({1:[function(t,e,i){"use strict";function o(t){t.style.height="",t.style.height=+t.scrollHeight+"px"}var s;s=jQuery,_,s.fn.ps_autosize=function(){return this.each(function(){o(this),s(this).off("input.ps-autosize").on("input.ps-autosize",function(){o(this)})})}},{}],2:[function(t,e,i){!function(n){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==n?n.jQuery:null)&&t.__esModule?t:{default:t},o="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null,s="undefined"!=typeof window?window.peepsodata:void 0!==n?n.peepsodata:null;o.observer.addFilter("class_avatar_dialog",()=>e);class e{constructor(t={}){this.opts=t}init(){var t,e;this.$el||(t=(0,o.template)(s.avatar.templateDialog2||"")(this.opts.data),this.$el=(0,i.default)(t).hide(),this.$file=this.$el.find("input[type=file]"),this.$hasAvatar=this.$el.find(".ps-js-has-avatar"),this.$noAvatar=this.$el.find(".ps-js-no-avatar"),this.$preview=this.$el.find(".ps-js-preview"),this.$avatar=this.$el.find(".ps-js-avatar"),this.$loading=this.$el.find(".ps-js-loading"),this.$error=this.$el.find(".ps-js-error"),this.$btnRemove=this.$el.find(".ps-js-btn-remove"),this.$btnCrop=this.$el.find(".ps-js-btn-crop"),this.$btnCropCancel=this.$el.find(".ps-js-btn-crop-cancel"),this.$btnCropConfirm=this.$el.find(".ps-js-btn-crop-save"),this.$btnFinalize=this.$el.find(".ps-js-btn-finalize").attr("disabled","disabled"),this.$el.on("click",".ps-js-btn-upload",t=>this._onUpload(t)),this.$el.on("click",".ps-js-btn-remove",t=>this._onRemove(t)),this.$el.on("click",".ps-js-btn-crop",t=>this._onCrop(t)),this.$el.on("click",".ps-js-btn-crop-cancel",t=>this._onCropCancel(t)),this.$el.on("click",".ps-js-btn-crop-save",t=>this._onCropConfirm(t)),this.$el.on("click",".ps-js-btn-finalize",t=>this._onFinalize(t)),this.$el.on("click",".ps-js-btn-close",t=>this._onClose(t)),this.$el.appendTo(document.body),t=this.opts.data.avatar,e=this.opts.data.avatarSource,t&&e?this._updateAvatar(t,e):this._updateAvatar(!1),this._toggleError(!1),this._toggleLoading(!1),this._toggleFinalize(!1),t=this.opts.uploadUrl,e=i.default.extend({_wpnonce:s.avatar._wpnonce},this.opts.uploadParams),this.$file.psFileupload&&this.$file.psFileupload({url:t,formData:e,replaceFileInput:!1,dropZone:null,dataType:"json",add:(t,e)=>{var i=e.files[0];this._toggleFinalize(!1),/(\.|\/)(jpe?g|png|webp)$/i.test(i.type)?parseInt(i.size)>s.upload.maxSize?this._toggleError(s.upload.textErrorMaxSize):(this._toggleLoading(!0),this._toggleError(!1),e.submit()):this._toggleError(s.avatar.textErrorFileType)},done:(t,e)=>{this._toggleLoading(!1);var i,o,e=e.result;e.success?(i=e.data&&e.data.image_url,o=e.data&&e.data.orig_image_url,this._updateAvatar(i,o),this._toggleFinalize(!0)):e.errors&&this._toggleError(e.errors)}}))}show(){this.init(),this.$el.show()}hide(){this.$el&&(this._toggleError(!1),this.$el.hide())}_updateAvatar(t,e){var i="?_t="+(new Date).getTime();(t?(e&&this.$preview.find("img").attr("src",e+i),this.$avatar.find("img").attr("src",t+i),this.$btnRemove.show(),this.$noAvatar.hide(),this.$hasAvatar):(this.$preview.find("img").removeAttr("src"),this.$avatar.find("img").attr("src",this.opts.data.avatarDefault+i),this.$btnRemove.hide(),this.$hasAvatar.hide(),this.$noAvatar)).show()}_getCropCoord(){var t=this._cropCoords;if(!t)return!1;let e=this.$preview.find("img"),i=1,o=!1,s,n,a;return e[0].naturalWidth&&(s=e[0].naturalWidth||e.width(),n=e[0].naturalHeight||e.height(),(800<s||800<n)&&(i=800/Math.max(s,n),s*=i,n*=i,o=!0),i=s/e.width()),a={x1:Math.floor(i*t.x),y1:Math.floor(i*t.y),x2:Math.floor(i*(t.x+t.width)),y2:Math.floor(i*(t.y+t.height))},o&&(a.width=s,a.height=n),a}_toggleError(t){(t=t instanceof Array?t.join("<br>"):t)?(this.$error.html(t),this.$error.show()):(this.$error.hide(),this.$error.html(""))}_toggleLoading(t){t?this.$loading.stop().show():this.$loading.stop().fadeOut()}_toggleFinalize(t){t?this.$btnFinalize.removeAttr("disabled"):this.$btnFinalize.attr("disabled","disabled")}_onUpload(t){t.preventDefault(),t.stopPropagation(),this.$file.click()}_onCrop(t){t.preventDefault(),t.stopPropagation();t=this.$preview.find("img");ps_crop.init({elem:t,change:t=>{this._cropCoords=t}}),this.$btnCrop.hide(),this.$btnCropCancel.show(),this.$btnCropConfirm.show(),this._toggleFinalize(!1)}_onCropCancel(t){t.preventDefault(),t.stopPropagation();t=this.$preview.find("img");ps_crop.detach(t),this.$btnCrop.show(),this.$btnCropCancel.hide(),this.$btnCropConfirm.hide()}_onCropConfirm(t){t.preventDefault(),t.stopPropagation();var t=this.$preview.find("img"),t=(ps_crop.detach(t),this.$btnCrop.show(),this.$btnCropCancel.hide(),this.$btnCropConfirm.hide(),this._getCropCoord()),t={x:t.x1,y:t.y1,x2:t.x2,y2:t.y2,width:t.width,height:t.height,tmp:1},e=this.opts.cropUrl,t=i.default.extend({_wpnonce:s.avatar._wpnonce},t,this.opts.cropParams);this._toggleLoading(!0),peepso.postJson(e,t,t=>{this._toggleLoading(!1),t.success&&(t=t.data.image_url,this._updateAvatar(t),this._toggleFinalize(!0))})}_onRemove(t){t.preventDefault(),t.stopPropagation();var t=this.opts.deleteUrl,e=i.default.extend({_wpnonce:s.avatar._wpnonce},this.opts.deleteParams);this._toggleLoading(!0),peepso.postJson(t,e,t=>{this._toggleLoading(!1),t.success&&window.loading.reload()})}_onFinalize(t){t.preventDefault(),t.stopPropagation();var t=this.opts.confirmUrl,e=i.default.extend({_wpnonce:s.avatar._wpnonce},this.opts.confirmParams);this._toggleLoading(!0),peepso.postJson(t,e,t=>{this._toggleLoading(!1),t.success&&window.location.reload()})}_onClose(t){t.preventDefault(),t.stopPropagation(),this.hide()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e,i){!function(s){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==s?s.jQuery:null)&&t.__esModule?t:{default:t},o="undefined"!=typeof window?window.peepso:void 0!==s?s.peepso:null;o.observer.addFilter("class_avatar",()=>e);class e{constructor(t,e={}){this.opts=e,this.dialog=null,this.$el=(0,i.default)(t),this.$button=this.$el.find(".ps-js-focus-avatar-button"),this.$button.on("click",t=>this._onModify(t))}getDialog(){var t,e;return null===this.dialog&&(!1===(t=o.observer.applyFilters("class_avatar_dialog",!1))?this.dialog=!1:(e=i.default.extend({},this.opts,{onChange:t=>this.updateAvatar(t)}),this.dialog=new t(e))),this.dialog}showDialog(){var t=this.getDialog();t&&t.show()}updateAvatar(t){}_onModify(t){t.preventDefault(),this.showDialog()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(t,e,i){"use strict";t("./avatar"),t("./avatar-dialog")},{"./avatar":3,"./avatar-dialog":2}],5:[function(t,e,i){!function(n){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==n?n.jQuery:null)&&t.__esModule?t:{default:t},o="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null,s="undefined"!=typeof window?window.peepsodata:void 0!==n?n.peepsodata:null;o.observer.addFilter("class_cover_dialog",()=>e);class e{constructor(t={}){this.opts=t}init(){var t,e;this.$el||(t=(0,o.template)(s.cover.templateDialog||"")(),this.$el=(0,i.default)(t).hide(),this.$file=this.$el.find("input[type=file]"),this.$content=this.$el.find(".ps-js-content"),this.$loading=this.$el.find(".ps-js-loading"),this.$error=this.$el.find(".ps-js-error"),this.$el.on("click",".ps-js-btn-upload",t=>this._onUpload(t)),this.$el.on("click",".ps-js-btn-remove",t=>this._onRemove(t)),this.$el.on("click",".ps-js-btn-close",t=>this._onClose(t)),this.$el.appendTo(document.body),this._toggleRemove(this.opts.data&&this.opts.data.cover),this._toggleError(!1),this._toggleLoading(!1),t=this.opts.uploadUrl,e=i.default.extend({_wpnonce:s.cover._wpnonce},this.opts.uploadParams),this.$file.psFileupload&&this.$file.psFileupload({url:t,formData:e,replaceFileInput:!1,dropZone:null,dataType:"json",add:(t,e)=>{var i=e.files[0];/(\.|\/)(jpe?g|png|webp)$/i.test(i.type)?parseInt(i.size)>s.upload.maxSize?this._toggleError(s.upload.textErrorMaxSize):(this._toggleLoading(!0),this._toggleError(!1),e.submit()):this._toggleError(s.cover.textErrorFileType)},done:(t,e)=>{this._toggleLoading(!1);var e=e.result;e.success&&(this._toggleRemove(!0),this.hide(),"function"==typeof this.opts.onChange)&&(e=e.data&&e.data.image_url)&&this.opts.onChange(e)}}))}show(){this.init(),this.$el.show()}hide(){this.$el&&this.$el.hide()}_toggleError(t){t?(this.$error.html(t),this.$error.show()):(this.$error.hide(),this.$error.html(""))}_toggleLoading(t){(t?(this.$content.hide(),this.$loading):(this.$loading.hide(),this.$content)).show()}_toggleRemove(t){t?(this.$content.addClass("ps-list-half"),this.$content.find(".ps-js-li-remove").show()):(this.$content.removeClass("ps-list-half"),this.$content.find(".ps-js-li-remove").hide())}_onUpload(t){t.preventDefault(),t.stopPropagation(),this.$file.click()}_onRemove(t){t.preventDefault(),t.stopPropagation();var t=this.opts.deleteUrl,e=i.default.extend({_wpnonce:s.cover._wpnonce},this.opts.deleteParams);this._toggleLoading(!0),peepso.postJson(t,e,t=>{this._toggleLoading(!1),t.success&&(this._toggleRemove(!1),this.hide(),"function"==typeof this.opts.onChange)&&this.opts.onChange(!1)})}_onClose(t){t.preventDefault(),t.stopPropagation(),this.hide()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(t,e,i){!function(n){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==n?n.jQuery:null)&&t.__esModule?t:{default:t},o="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null,s="undefined"!=typeof window?window.peepsodata:void 0!==n?n.peepsodata:null;o.observer.addFilter("class_cover",()=>e);class e{constructor(t,e={}){this.opts=e,this.dialog=null,this.$el=(0,i.default)(t),this.$image=this.$el.find(".ps-js-cover-image"),this.$btnModify=this.$el.find(".ps-js-cover-modify"),this.$btnReposition=this.$el.find(".ps-js-cover-reposition"),this.$btnRepositionCancel=this.$el.find(".ps-js-cover-reposition-cancel"),this.$btnRepositionSave=this.$el.find(".ps-js-cover-reposition-save"),this.$btnModify.on("click",t=>this._onModify(t)),this.$btnReposition.on("click",t=>this._onReposition(t)),this.$btnRepositionCancel.on("click",t=>this._onRepositionCancel(t)),this.$btnRepositionSave.on("click",t=>this._onRepositionSave(t)),this.imageStyle=this.$image.attr("style"),this.imagePositionX=this.$image.css("left"),this.imagePositionY=this.$image.css("top")}getDialog(){var t,e;return null===this.dialog&&(!1===(t=o.observer.applyFilters("class_cover_dialog",!1))?this.dialog=!1:(e=i.default.extend({},this.opts,{onChange:t=>this.updateCover(t)}),this.dialog=new t(e))),this.dialog}showDialog(){var t=this.getDialog();t&&t.show()}updateCover(t){t?(this.$image.css({top:0,left:0}),this.$image.attr("src",t),this._toggleReposition(!0)):window.location.reload()}_toggleReposition(t){t?this.$btnReposition.show():this.$btnReposition.hide()}_toggleRepositioning(t){t?(this.$el.find(".js-focus-gradient").hide(),this.$el.find(".js-focus-change-cover > a").hide(),this.$el.find(".reposition-cover-actions").show(),this.$el.addClass("ps-focus-cover-edit")):(this.$el.find(".js-focus-gradient").show(),this.$el.find(".js-focus-change-cover > a").show(),this.$el.find(".reposition-cover-actions").hide(),this.$el.removeClass("ps-focus-cover-edit"))}_onModify(t){t.preventDefault(),this.showDialog()}_onReposition(t){t.preventDefault(),this._toggleRepositioning(!0);let i=this.$el.height()-this.$image.height(),o=this.$el.width()-this.$image.width();this.$image.draggable({cursor:"move",drag:function(t,e){e.position.left=Math.max(o,Math.min(0,e.position.left)),e.position.top=Math.max(i,Math.min(0,e.position.top))},stop:(t,e)=>{var i=100*e.position.left/this.$el.width(),e=100*e.position.top/this.$el.height(),i=Math.round(1e4*i)/1e4,e=Math.round(1e4*e)/1e4;this.imagePositionX=i,this.imagePositionY=e,this.$image.css({left:i+"%",top:e+"%"})}})}_onRepositionCancel(t){t.preventDefault(),t.stopPropagation(),this._toggleRepositioning(!1),this.$image.attr("style",this.imageStyle),this.$image.draggable("destroy")}_onRepositionSave(t){t.preventDefault(),t.stopPropagation();var t=this.opts.repositionUrl,e={_wpnonce:s.cover._wpnonce,x:this.imagePositionY,y:this.imagePositionX};this._toggleRepositioning(!1),this.$el.find(".ps-reposition-loading").show(),e=i.default.extend(e,this.opts.repositionParams),peepso.postJson(t,e,t=>{this.$el.find(".ps-reposition-loading").hide(),this.imageStyle=this.$image.attr("style"),this.$image.draggable("destroy")})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(t,e,i){"use strict";t("./cover"),t("./cover-dialog")},{"./cover":6,"./cover-dialog":5}],8:[function(t,e,i){!function(e){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t,a=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t};function r(t,e,i){(e=function(t){t=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:t+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}const d=["January","February","March","April","May","June","July","August","September","October","November","December"];const u=(t,e)=>{return new Date(t,e,0).getDate()},o=t=>{t=t.split("-");return new Date(+t[0],+t[1]-1,+t[2])},s=t=>{var e=t.getFullYear(),i=t.getMonth()+1,t=t.getDate();return[e,(i<10?"0":"")+i,(t<10?"0":"")+t].join("-")};i.default=class{constructor(t,e,i,o={}){r(this,"$year",void 0),r(this,"$month",void 0),r(this,"$date",void 0),r(this,"opts",void 0);var s=new Date,n=s.getFullYear(),s={monthNames:d,defaultDate:new Date(s.getTime()),minDate:new Date(n-80,0,1,1,0,0),maxDate:new Date(n+80,11,31,1,0,0),onSelect:()=>{}};this.opts=a.default.extend(s,o),this.$year=(0,a.default)(t).on("change",t=>this.onChangeYear(t)),this.$month=(0,a.default)(e).on("change",t=>this.onChangeMonth(t)),this.$date=(0,a.default)(i).on("change",()=>this.onChangeDate()),this.populateYear(),this.populateMonth(+this.$year.val()),this.populateDate(+this.$year.val(),+this.$month.val())}getDate(t=!1){var e=+this.$date.val(),i=+this.$month.val(),o=+this.$year.val();return t?`${e} ${d[i-1]} `+o:s(new Date(o,i-1,e))}setDate(t){var e=(t="string"==typeof t?o(t):t).getDate(),i=t.getMonth()+1,t=t.getFullYear();this.populateYear(t),this.populateMonth(t,i),this.populateDate(t,i,e)}populateYear(t){let{minDate:e,maxDate:i,defaultDate:o}=this.opts,s=e.getFullYear(),n=i.getFullYear(),a="";for(t=t||o.getFullYear();s<=n;s++)a+=`<option value="${s}"${s===t?' selected="selected"':""}>${s}</option>`;this.$year.html(a)}populateMonth(t,e){let{minDate:i,maxDate:o,defaultDate:s,monthNames:n}=this.opts,a=i.getFullYear(),r=o.getFullYear(),d=a<t?1:i.getMonth()+1,l=t<r?12:o.getMonth()+1,h="";for(e=e||+this.$month.val()||s.getMonth()+1;d<=l;d++)h+=`<option value="${d}"${d===e?' selected="selected"':""}>${n[d-1]}</option>`;this.$month.html(h)}populateDate(t,e,i){let{minDate:o,maxDate:s,defaultDate:n}=this.opts,a=o.getFullYear(),r=s.getFullYear(),d=o.getMonth()+1,l=s.getMonth()+1,h=a<t||d<e?1:o.getDate(),p=t<r||e<l?u(t,e):s.getDate(),c="";for(i=i||((i=+this.$date.val())?Math.min(i,p):n.getDate());h<=p;h++)c+=`<option value="${h}"${h===i?' selected="selected"':""}>${h}</option>`;this.$date.html(c)}onChangeYear(t){t=+t.target.value;this.populateMonth(t),this.$month.triggerHandler("change")}onChangeMonth(t){var e=+this.$year.val(),t=+t.target.value;this.populateDate(e,t),this.$date.triggerHandler("change")}onChangeDate(){this.opts.onSelect(this.getDate())}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"DateSelector",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"TimeSelector",{enumerable:!0,get:function(){return s.default}});var o=n(t("./date-selector")),s=n(t("./time-selector"));function n(t){return t&&t.__esModule?t:{default:t}}},{"./date-selector":8,"./time-selector":10}],10:[function(t,e,i){!function(e){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t,s=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t};function n(t,e,i){(e=function(t){t=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:t+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}const o=(t,e)=>t="PM"!==e.toUpperCase()?12===t?0:t:12===t?12:t+12,a=t=>{let e;return{hour:t=t<12?(e="AM",0===t?12:t):(e="PM",12===t?12:t-12),ampm:e}};i.default=class{constructor(t,e,i,o){n(this,"$hour",void 0),n(this,"$minute",void 0),n(this,"$ampm",void 0),n(this,"opts",void 0),n(this,"isAmpm",void 0);this.isAmpm=!(!i||!i.nodeType),this.opts=s.default.extend({am:"AM",pm:"PM",step:15,onSelect:()=>{}},(this.isAmpm?o:i)||{}),this.$hour=(0,s.default)(t).on("change",()=>this.onChangeHour()),this.$minute=(0,s.default)(e).on("change",()=>this.onChangeMinute()),this.isAmpm&&(this.$ampm=(0,s.default)(i).on("change",()=>this.onChangeAmpm())),this.populateHour(),this.populateMinute(),this.populateAmpm()}getTime(t=!1){let e=+this.$hour.val(),i=+this.$minute.val();return t?(e<10?"0":"")+e+":"+(i<10?"0":"")+i+(this.isAmpm?" "+this.$ampm.val().toUpperCase():""):((e=this.isAmpm?o(e,this.$ampm.val()):e)<10?"0":"")+e+":"+(i<10?"0":"")+i}setTime(t){let[e,i]=t.split(":");e=+e,this.isAmpm?(e=a(e),this.$ampm.val(e.ampm),this.$hour.val(e.hour)):this.$hour.val(e),i=Math.min(59,Math.max(0,+i)),i-=i%this.opts.step,this.$minute.val(i)}populateHour(t){let e=this.isAmpm?1:0,i=this.isAmpm?12:23,o="";for(;e<=i;e++)o+=`<option value="${e}"${e===t?' selected="selected"':""}>${e<10?"0":""}${e}</option>`;this.$hour.html(o)}populateMinute(t){let e=0,i="";for(;e<=59;e+=this.opts.step)i+=`<option value="${e}"${e===t?' selected="selected"':""}>${e<10?"0":""}${e}</option>`;this.$minute.html(i)}populateAmpm(o){if(this.isAmpm){let e=[{value:"AM",label:this.opts.am},{value:"PM",label:this.opts.pm}],i="";for(let t=0;t<e.length;t++)i+=`<option value="${e[t].value}"${e[t].value===o?' selected="selected"':""}>${e[t].label||e[t].value}</option>`;this.$ampm.html(i)}}onChangeHour(){this.opts.onSelect(this.getTime())}onChangeMinute(){this.opts.onSelect(this.getTime())}onChangeAmpm(){this.opts.onSelect(this.getTime())}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(t,e,i){"use strict";function o(t){var e=n(t.currentTarget).closest(".ps-js-dropdown"),i=e.find(".ps-js-dropdown-menu"),o=n(document),s=e.data("ps-guid");t.preventDefault(),s||(s=_.uniqueId("ps-dropdown-"),e.data("ps-guid",s)),i.is(":visible")?(t.stopPropagation(),o.off("click."+s),i.hide()):(i.show(),o.one("click."+s,function(){i.hide()}))}function s(t){var e="[class*=gci-]",i=".ps-js-dropdown-label",t=n(t.currentTarget),o=t.closest(".ps-js-dropdown"),s=o.find(".ps-js-dropdown-toggle");o.hasClass("ps-js-dropdown--privacy")&&((o=o.children("[type=hidden]")).val(t.data("option-value")),o.triggerHandler("change"),s.find(e).attr("class",t.find(e).attr("class")),s.find(i).html(t.find(i).html()))}var n;(n=jQuery)(function(){n(document).on("click.ps-dropdown",".ps-js-dropdown-menu a",s).on("click.ps-dropdown",".ps-js-dropdown-toggle",o)})},{}],12:[function(t,e,o){!function(i){!function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null),d=t("undefined"!=typeof window?window._:void 0!==i?i._:null);function t(t){return t&&t.__esModule?t:{default:t}}function e(t,e,i){(e=function(t){t=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:t+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}const l="ps-focus-area-footer";o.default=class{constructor(t){e(this,"$footer",void 0),e(this,"$interactions",void 0),e(this,"$menu",void 0),e(this,"$menuInner",void 0),e(this,"$menuItems",void 0),e(this,"$menuMore",void 0),e(this,"$menuDropdown",void 0),e(this,"toggleAid",d.default.throttle(()=>{let t=!1,e=!1;var i,o,s;this.isNarrow()&&(i=this.$menuInner.scrollLeft(),o=this.$menuInner[0].scrollWidth,s=this.$menuInner[0].clientWidth,t=0<i,e=i+s<o),t?this.$menuAidLeft.show():this.$menuAidLeft.hide(),e?this.$menuAidRight.show():this.$menuAidRight.hide()},250)),this.$footer=(0,r.default)(t),this.$interactions=this.$footer.find(".ps-js-focus-interactions"),this.$menu=this.$footer.find(".ps-js-focus__menu"),this.$menuInner=this.$menu.find(".ps-js-focus__menu-inner"),this.$menuItems=this.$menu.find(".ps-js-item"),this.$menuMore=this.$menu.find(".ps-js-item-more"),this.$menuDropdown=this.$menu.find(".ps-js-focus-link-dropdown"),this.$menuAidLeft=this.$menu.find(".ps-js-aid-left"),this.$menuAidRight=this.$menu.find(".ps-js-aid-right"),this.centerActiveMenu(),d.default.defer(()=>this.rearrange()),(0,r.default)(window).on("resize."+l,d.default.debounce(()=>this.rearrange(),1e3))}isNarrow(){return window.innerWidth<=740}hasTouch(){return"ontouchstart"in window||0<navigator.msMaxTouchPoints}centerActiveMenu(){var t,e,i,o;this.isNarrow()&&(o=this.$menuItems.filter(".ps-js-item-active")).length&&(e=(t=this.$menuInner).width(),i=o.position().left,o=o.width(),t.scrollLeft(i-(e-o)/2))}reset(){this.$menuDropdown.hide().empty(),this.$menuMore.detach().off("click"),this.$menuItems.css("display",""),this.detachScroller(),this.$menuInner.off("scroll").on("scroll",()=>this.toggleAid()),this.toggleAid()}rearrange(){if(this.reset(),this.isNarrow())this.hasTouch()||this.attachScroller();else{let t=this.$menu.width(),e=0,i,o;for(;++e<=20&&(i=this.$menuItems.filter(":visible").last(),o=1===e?i:this.$menuMore,!(peepso.rtl&&0<=o.position().left))&&(peepso.rtl||!(Math.floor(o.position().left+o.outerWidth())<=t));)1===e&&(this.$menuMore.insertBefore(this.$menuDropdown.parent()),this.$menuMore.show(),this.$menuMore.on("click",t=>{t.preventDefault(),t.stopPropagation(),this.toggleDropdown()})),i=i.hide().clone(),this.$menuDropdown.prepend(i.css("display",""))}}toggleDropdown(){var t=(0,r.default)(document),e="click."+l;this.$menuDropdown.is(":visible")?(this.$menuDropdown.hide(),t.off(e)):(this.$menuDropdown.show(),t.one(e,()=>this.$menuDropdown.hide()))}attachScroller(){let i=!1,o=!1,s,n,a;this.$menuInner.on("mousedown mouseup mousemove mouseleave",function(e){if(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type)i=!0,o=!1,s=[e.clientX,e.clientY];else if("mousemove"==e.type&&i){var t=(0,r.default)(this);n=[e.clientX,e.clientY],a=[n[0]-s[0],n[1]-s[1]],t.scrollLeft(t.scrollLeft()-a[0]),t.scrollTop(t.scrollTop()-a[1]),s=[e.clientX,e.clientY],o=!0}else if(("mouseup"===e.type||"mouseleave"===e.type)&&(i=!1,o)){let t=(0,r.default)(e.target).closest("a");t.length&&(t.on("click."+l,t=>t.preventDefault()),d.default.defer(()=>t.off("click."+l)))}})}detachScroller(){this.$menuInner.off("mousedown mouseup mousemove mouseleave")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(a,t,r){!function(n){!function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=t("undefined"!=typeof window?window.jQuery:void 0!==n?n.jQuery:null),i="undefined"!=typeof window?window.peepso:void 0!==n?n.peepso:null,o=t(a("./focus-area-footer"));function t(t){return t&&t.__esModule?t:{default:t}}function s(t,e,i){(e=function(t){t=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:t+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}r.default=class{constructor(t){s(this,"$container",void 0),s(this,"$avatar",void 0),s(this,"$footer",void 0),s(this,"footer",void 0),this.$container=(0,e.default)(t),this.$avatar=this.$container.find(".ps-js-focus-avatar-button"),this.$footer=this.$container.find(".ps-focus__footer"),this.$avatar.length&&this.$avatar.on("click",t=>this.onClickAvatar(t)),this.$footer.length&&(this.footer=new o.default(this.$footer[0])),i.observer.addAction("avatar_updated",t=>this.onAvatarUpdated(t),10,1)}onClickAvatar(t){t.preventDefault(),t.stopPropagation(),i.observer.doAction("avatar_update_dialog")}onAvatarUpdated(t){}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./focus-area-footer":12}],14:[function(t,e,i){"use strict";var o=(t=t("./focus-area"))&&t.__esModule?t:{default:t};document.addEventListener("DOMContentLoaded",function(){var t=document.querySelector(".ps-js-focus");t&&new o.default(t)})},{"./focus-area":13}],15:[function(t,e,i){!function(e){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t},o="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null,s="undefined"!=typeof window?window.peepsodata:void 0!==e?e.peepsodata:null;+s.show_powered_by&&o.observer.addAction("show_branding",()=>{var t,e=(0,i.default)("#peepso-wrap");(e=o.observer.applyFilters("get_footer_container",e)).length&&(t=(0,i.default)(s.powered_by),e.children("."+t.attr("class")).length||t.appendTo(e))})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(t,e,o){!function(e){!function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var s=t("undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null),n=(t("undefined"!=typeof window?window._:void 0!==e?e._:null),function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};e=r(e);if(e&&e.has(t))return e.get(t);var i,o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in t){var n;"default"!==i&&{}.hasOwnProperty.call(t,i)&&((n=s?Object.getOwnPropertyDescriptor(t,i):null)&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=t[i])}return o.default=t,e&&e.set(t,o),o}("undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null)),a="undefined"!=typeof window?window.peepsodata:void 0!==e?e.peepsodata:null;function r(t){var e,i;return"function"!=typeof WeakMap?null:(e=new WeakMap,i=new WeakMap,(r=function(t){return t?i:e})(t))}function t(t){return t&&t.__esModule?t:{default:t}}function i(t,e,i){(e=function(t){t=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:t+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}let d,l,h;function p(t,e){var i,o;clearTimeout(h),d=d||((l=(0,s.default)("<div />").append(a.hovercard.template)).css({position:"absolute"}),(d=(0,s.default)("<div />").css({display:"none",height:1,overflow:"visible",position:"absolute",width:1,zIndex:100001})).on("mouseenter touchstart",function(t){t.stopPropagation(),p()}),d.on("mouseleave",function(t){t.stopPropagation(),c()}),d.append(l).appendTo(document.body),d),"loading"===t?d.find(".ps-js-loading").show():t&&(d.find(".ps-js-loading").hide(),d.find(".ps-js-name").html(t.name),d.find(".ps-js-avatar").attr("src",t.avatar),d.find(".ps-js-cover").css({backgroundImage:`url(${encodeURI(t.cover)})`}),d.find(".ps-js-views").html(t.views||0),d.find(".ps-js-likes").html(t.likes||0),d.find(".ps-js-link").attr("href",t.link||"#"),i=d.find(".ps-js-views").closest(".ps-hovercard__count--views"),-1==+t.views?i.hide():i.show(),n.observer.doAction("hovercard_update_html",d,t)),d.show(),n.default.isTouch()&&(0,s.default)(document).off("touchstart.hovercard").one("touchstart.hovercard",c),e&&e.currentTarget&&e.clientX&&(t=(i=(0,s.default)(e.currentTarget)).offset(),o=window.innerWidth<=480,l.css({top:"",left:0,bottom:0,right:o?0:""}),d.css({top:t.top-d.height(),left:o?0:e.clientX,right:o?0:"",width:o?"":1}),(e=l.get(0).getBoundingClientRect()).top<0&&(d.css({top:t.top+i.height()}),l.css({bottom:"",top:0})),o||e.right>(window.innerWidth||document.documentElement.clientWidth)&&l.css({left:"",right:0}))}function c(){d&&(h=setTimeout(function(){d.hide(),n.default.isTouch()&&(0,s.default)(document).off("touchstart.hovercard")},200))}class u{constructor(t,e){i(this,"$elem",void 0),i(this,"id",void 0),i(this,"data",void 0),i(this,"timer",void 0),this.id=e,this.$elem=(0,s.default)(t),this.$elem.on("mouseenter touchstart",t=>{t.stopPropagation(),this.show(t)}),this.$elem.on("mouseleave",t=>{t.stopPropagation(),this.hide()}),n.default.isTouch()&&this.$elem.on("click",t=>{t.preventDefault(),t.stopPropagation()}),n.observer.addAction("profile_update_like",(t,e)=>{+t==+this.id&&(t=u.cache[this.id])&&(t.likes=e)},10,2)}getData(){return new n.Promise((e,i)=>{let o=u.cache[this.id];o?e(o):n.default.postJson("hovercard.info",{userid:this.id},t=>{t.success?(o=u.cache[this.id]=t.data,e(o)):i()})})}show(i){this.timer=setTimeout(()=>{let e=setTimeout(()=>{p("loading",i)},500);this.getData().then(t=>{clearTimeout(e),this.timer&&p(t,i)})},300)}hide(){clearTimeout(this.timer),this.timer=null,c()}}i(u,"cache",{});o.default=u;(0,s.default)(function(){a.hovercard&&(0,s.default)(document).on("mouseenter touchstart","[data-hover-card]",function(t){var e,i=(0,s.default)(t.currentTarget);i.data("ps-hovercard")||(e=i.data("hover-card"),e=new u(i[0],e),i.data("ps-hovercard",e),e.show(t))})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(t,e,i){"use strict";t("./autosize"),t("./dropdown"),t("./share"),t("./time"),t("./safety-warning"),t("./posttabs"),t("./postbox-legacy"),t("./postbox"),t("./notification-general"),t("./widgets"),t("./third-party-fixes"),t("./lightbox"),t("./focus-area"),t("./hover-card"),t("./cover"),t("./avatar/index"),t("./footer")},{"./autosize":1,"./avatar/index":4,"./cover":7,"./dropdown":11,"./focus-area":14,"./footer":15,"./hover-card":16,"./lightbox":18,"./notification-general":19,"./postbox":24,"./postbox-legacy":23,"./posttabs":30,"./safety-warning":31,"./share":32,"./third-party-fixes":33,"./time":34,"./widgets":35}],18:[function(m,t,e){!function(f){!function(){"use strict";var t,r,o,e,i,s,n,a,d="undefined"!=typeof window?window.peepso:void 0!==f?f.peepso:null,l="undefined"!=typeof window?window.peepsodata:void 0!==f?f.peepsodata:null,h=c(m("imagesloaded")),p=c(m("swipejs"));function c(t){return t&&t.__esModule?t:{default:t}}function u(){}t=jQuery||$,p=p.default,r=t,o=p,e=peepsolightboxdata.template.replace(/>\s+</g,"><"),i="ps-lightbox-data--opened",s="ps-lightbox-close--invert",u.prototype={init:function(){this.$container||(this.$container=r(e),this.$padding=this.$container.find(".ps-lightbox-padding"),this.$wrapper=this.$container.find(".ps-lightbox-wrapper"),this.$close=this.$container.find(".ps-lightbox-close"),this.$object=this.$container.find(".ps-lightbox-object"),this.$prev=this.$container.find(".ps-lightbox-arrow-prev"),this.$next=this.$container.find(".ps-lightbox-arrow-next"),this.$spinner=this.$container.find(".ps-lightbox-spinner"),this.$attachment=this.$container.find(".ps-lightbox-data"),this.$btnattachment=this.$container.find(".ps-lightbox-data-toggle"),this.$imagelink=this.$container.find(".ps-lightbox-imagelink"),this.attachevents(),this.$container.appendTo(document.body)),this.isMobile()&&(this.$viewport||(this.$viewport=r("meta[name=viewport]"),this.$viewport.length)||(this.$viewport=r('<meta name="viewport" content="" />').appendTo("head")),this.vpNoZoom="width=device-width, user-scalable=no",this.vpValue||(this.vpValue=this.$viewport.attr("content"),this.$viewport.attr("content",this.vpNoZoom))),this.options.simple?this.$container.addClass("ps-lightbox-simple"):this.$container.removeClass("ps-lightbox-simple"),this.$prev.hide(),this.$next.hide(),this.$container.show(),this.resetHeight(),this.options.simple&&this.setHeight();var t=r(window);t.off("resize.ps-lightbox"),this.options.simple&&t.on("resize.ps-lightbox",r.proxy(this.setHeight,this)),r(document.body).off("keyup.ps-lightbox").on("keyup.ps-lightbox",r.proxy(function(t){27===t.keyCode&&this.close()},this)),this.nonEmptyComments={},this.$attachment.on("input","textarea.ps-comments__input",t=>{var t=r(t.target),e=t.data("act-id");t.val().trim()?this.nonEmptyComments[e]=!0:this.nonEmptyComments[e]&&delete this.nonEmptyComments[e]}),peepso.hooks.removeAction("post_reload","lightbox"),peepso.hooks.addAction("post_reload","lightbox",(i,t)=>{t=r(t.posts);let o=+t.find(".ps-js-comments").data("commentsOpen")?0:1,s=+t.find(".ps-js-post-header").data("hideHeader")?1:0;function n(t,e,i){var o=t.find(".ps-js-comments"),e=o.find(`.ps-js-comment-container[data-post-id="${e}"]`);e.length&&(o.data("commentsOpen",i?0:1),e.attr("data-comments-open",i?0:1),e.find(".ps-js-btn-reply").css("display",i?"none":""),o.find(".ps-js-comments-closed").css("display",i?"block":"none"),t.find(".ps-lightbox__side-wrapper--reply .ps-js-comment-new").css("display",i?"none":""),e=t.find(".ps-js-opt-toggle-comments"),o=i?e.data("opt-enable"):e.data("opt-disable"),e.find("span").html(o.label),e.find("i").attr("class",o.icon),e.attr("onclick",o.click))}function a(t,e,i){t.find(".ps-post__header").find(".ps-avatar, .ps-post__title, .ps-post__info").css("display",i?"none":"");t=t.find(".ps-js-opt-toggle-header"),i=i?t.data("opt-enable"):t.data("opt-disable");t.find("span").html(i.label),t.find("i").attr("class",i.icon),t.attr("onclick",i.click)}n(this.$attachment,i,o),a(this.$attachment,0,s),this.data instanceof Array&&this.data.map(t=>{var e=r("<div/>").html(t.attachment);return n(e,i,o),a(e,0,s),t.attachment=e.html(),t})})},open:function(t,e){var i;this.data=t||[],this.options=e||{},this.index=e.index||0,this.init(),this.$container.removeClass("ps-lightbox--"+this.$container.attr("data-type")),this.$object.removeClass("ps-lightbox__object--"+this.$object.attr("data-type")),this.options.type?(this.$container.addClass("ps-lightbox--"+this.options.type),this.$object.addClass("ps-lightbox__object--"+this.options.type),this.$container.attr("data-type",this.options.type),this.$object.attr("data-type",this.options.type)):(this.$container.removeAttr("data-type"),this.$object.removeAttr("data-type")),this.options.simple||(i=r(`
					<div class="ps-lightbox__object-inner">
						<div class="ps-lightbox__object-container"></div>
					</div>
				`),_.each(this.data,function(t,e){i.children().append(`
					<div class="ps-lightbox__object-item ps-js-item" data-spinner="1">
						<div class="ps-lightbox__spinner ps-lightbox-spinner" style="display:block;"></div>
					</div>
				`)}),this.$object.empty(),this.$object.append(i),this.mySwipe=o(i[0],{draggable:!0,startSlide:this.index,callback:r.proxy(function(t,e){this.go(t)},this)})),this.togglenav(),this.go(this.index),this.options.showAttachment&&(t=window.innerWidth||document.documentElement.clientWidth,delete this.options.showAttachment,t<=979)?this.showAttachment():this.hideAttachment(),r("body").addClass("ps-lightbox--open")},close:function(t){!this.$container||this.nonEmptyComments&&Object.keys(this.nonEmptyComments).length&&!confirm(l.comments_unsaved_notice)||(this.nonEmptyComments={},this.$container.hide(),this.$object.empty(),this.$attachment.empty(),this.isMobile()&&this.vpValue&&(this.$viewport.attr("content",this.vpValue),this.vpValue=!1),r(window).off("resize.ps-lightbox keyup.ps-lightbox"),r(document.body).off("keyup.ps-lightbox"),r("body").removeClass("ps-lightbox--open"))},go:function(t){if("function"==typeof this.options.beforechange&&this.options.beforechange(this),this.data[t])if(this.data[this.index]&&(e=this.$attachment.html().trim())&&(this.data[this.index].attachment=e),this.index=t,this.$attachment.html(this.data[this.index].attachment||""),this.options.simple)this.$object.html(this.data[this.index].content),(e=this.$object.find("img")).length&&(this.showLoading(),this.$close.hide(),e.on("load",r.proxy(function(){this.hideLoading(),this.$close.show(),this.resetHeight(),this.setHeight.apply(this)},this)),t=e.attr("src").replace("/thumbs/","/").replace(/_(l|m_s|s_s)\./,"."),this.$imagelink.find("a").attr("href",t)),this.options.nofulllink?this.$imagelink.hide():this.$imagelink.show(),this.$btnattachment.hide();else{var i=this.$object.find(".ps-js-item").eq(this.index);if(2===this.mySwipe.getNumSlides()&&(i=i.add(this.$object.find(".ps-js-item").eq(this.index+2))),this.$imagelink.find("a").removeAttr("href"),i.data("spinner")){i.removeData("spinner"),i.removeAttr("data-spinner");let t=this.data[this.index].content,e=r("<div />").append(t).children("img");e.length?(0,h.default)(e[0],()=>{i.html(t),this.$imagelink.find("a").attr("href",e.attr("src")),this.copyNecessaryActions()}):(i.html(t),this.copyNecessaryActions())}else{var e=i.find("img");this.$imagelink.find("a").attr("href",e.attr("src"))}this.$btnattachment.show()}"function"==typeof this.options.afterchange&&this.options.afterchange(this),r(document).trigger("ps_lightbox_navigate")},prev:function(){this.nonEmptyComments&&Object.keys(this.nonEmptyComments).length&&!confirm(l.comments_unsaved_notice)||(this.nonEmptyComments={},("function"==typeof this.options.prev?(this.close(),this.options):this.mySwipe).prev())},next:function(){this.nonEmptyComments&&Object.keys(this.nonEmptyComments).length&&!confirm(l.comments_unsaved_notice)||(this.nonEmptyComments={},("function"==typeof this.options.next?(this.close(),this.options):this.mySwipe).next())},togglenav:function(){var t=this.$prev.add(this.$next),e=(this.$container.off("click.ps-lightbox",".ps-lightbox-arrow-prev"),this.$container.off("click.ps-lightbox",".ps-lightbox-arrow-next"),r(window).off("keyup.ps-lightbox"),!1);this.options.nonav?e="function"==typeof this.options.nonav?this.options.nonav():this.options.nonav:(!this.data.length||this.data.length<=1)&&(e=!0),e?t.hide():(t.show(),this.$container.on("click.ps-lightbox",".ps-lightbox-arrow-prev",r.proxy(this.prev,this)),this.$container.on("click.ps-lightbox",".ps-lightbox-arrow-next",r.proxy(this.next,this)),r(window).on("keyup.ps-lightbox",r.proxy(function(t){t=t.keyCode;37===t?this.prev():39===t&&this.next()},this)))},isAttachmentOpened:function(){return this.$attachment.hasClass(i)},showAttachment:function(){this.$attachment.addClass(i),this.$close.addClass(s),this.toggleMobileView(),d.hooks.addAction("browser_resize","lightbox",()=>this.toggleMobileView())},hideAttachment:function(){this.$attachment.removeClass(i),this.$close.removeClass(s),d.hooks.removeAction("browser_resize","lightbox"),this.toggleMobileView()},showLoading:function(){this.$object.hide(),this.$spinner.show()},hideLoading:function(){this.$spinner.hide(),this.$object.show()},copyNecessaryActions:function(){if(!this.$attachment.is(":visible")){var t=this.$object.find(".ps-js-item").eq(this.index),e=this.$attachment.find(".ps-post__options");let i=t.find(".ps-lightbox__object-actions");e.find(".ps-js-dropdown-menu a[data-lightbox-action]").each((t,e)=>{e=r(e).clone();e.html(e.text()),i.find(".ps-js-dropdown-menu").append(e)})}},attachevents:function(){this.$container.on("click.ps-lightbox",".ps-lightbox-padding",r.proxy(function(t){t.target===t.currentTarget&&(t.stopPropagation(),this.close())},this)),this.$btnattachment.on("click",r.proxy(function(){this.isAttachmentOpened()?this.hideAttachment():this.showAttachment()},this)),this.$close.on("click",r.proxy(function(){this.isAttachmentOpened()?this.hideAttachment():this.close()},this)),this.$imagelink.on("click","a",r.proxy(function(){this.close()},this)),this.$attachment.on("keyup.ps-lightbox",function(t){t.stopPropagation()})},isMobile:function(){var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent);return this.isMobile=t?function(){return!0}:function(){return!1},t},resetHeight:function(){this.$object.find("img").css("maxHeight","")},setHeight:_.debounce(function(){this.$object.find("img").css("maxHeight",this.$wrapper.height())},100),toggleMobileView:function(){var t="ps-lightbox--comments";(window.innerWidth||document.documentElement.clientWidth)<=979&&this.isAttachmentOpened()?this.$container.addClass(t):this.$container.removeClass(t)}},n=new u,a=!!window.location.href.match(/#.*comment(\.\d+)+/),t(function(){setTimeout(function(){a=!1},6e3)}),peepso.lightbox=function(t,e){"close"===t?n.close():"function"!=typeof t?(a&&((e=e||{}).showAttachment=!0,a=!1),n.open(t,e||{})):(n.options=e||{},n.init(),n.showLoading(),t(function(t,e){a&&((e=e||{}).showAttachment=!0,a=!1),n.hideLoading(),n.open(t,e||{})}))},peepso.simple_lightbox=function(t){peepso.lightbox([{content:'<div style="display:inline-block;"><img src="'+t+'" /></div>'}],{simple:!0})}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{imagesloaded:41,swipejs:42}],19:[function(s,t,e){!function(o){!function(){"use strict";var t=i("undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null),e=i(s("./popover"));function i(t){return t&&t.__esModule?t:{default:t}}(0,t.default)(t=>{t(".ps-js-notifications").each(function(){new e.default(this)})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./popover":20}],20:[function(v,t,b){!function(g){!function(){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var d=o("undefined"!=typeof window?window.jQuery:void 0!==g?g.jQuery:null),e=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};e=a(e);if(e&&e.has(t))return e.get(t);var i,o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in t){var n;"default"!==i&&{}.hasOwnProperty.call(t,i)&&((n=s?Object.getOwnPropertyDescriptor(t,i):null)&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=t[i])}return o.default=t,e&&e.set(t,o),o}("undefined"!=typeof window?window.peepso:void 0!==g?g.peepso:null),t=o(v("./singleton")),i=o(v("../notification-popover"));function a(t){var e,i;return"function"!=typeof WeakMap?null:(e=new WeakMap,i=new WeakMap,(a=function(t){return t?i:e})(t))}function o(t){return t&&t.__esModule?t:{default:t}}const s=peepsodata.confirm_mark_all_as_read,n=peepsodata.mark_all_as_read_text;peepsodata.mark_all_as_read_confirm_text;const r=peepsodata.show_unread_only_text,l=peepsodata.show_all_text,h=peepsodata.view_all_text,p=peepsodata.notification_url,c=peepsodata.notification_header,u=peepsodata.confirm_mark_all_as_read_template;let f=new t.default;class m extends i.default{constructor(t){super(t),this.loading=!1,this.loadEnd=!1,f.on("counter:updated",t=>{this.updateCounter(t)}),f.on("html:updated",t=>{this.updateHtml(t)}),f.on("unread_only:updated",t=>{this.updateButton(t)})}createHeader(){return c?(0,d.default)('<div class="ps-notif__box-header"></div>').html(c).on("click",t=>t.stopPropagation()):(0,d.default)()}createBody(){return super.createBody().on("mousedown",".ps-js-notification",t=>{this.onItemClick(t)}).on("click",".ps-js-mark-as-read",t=>{this.onMarkRead(t)}).on("click",".ps-js-notification a",t=>{t.stopPropagation()}).on("mousedown",".ps-js-mark-as-read",t=>{t.stopPropagation()})}createFooter(){this.$btnMarkAllRead=(0,d.default)('<a href="#">'+n+"</a>").on("click",t=>{s?this.onMarkAllReadWithConfirmation(t):this.onMarkAllRead(t)});var t=e.observer.applyFilters("notification_unread_only",0),t=(this.$btnToggleUnreadOnly=(0,d.default)('<a href="#">'+(t?l:r)+"</a>").on("click",t=>{this.onToggleUnreadOnly(t)}),(0,d.default)('<a href="'+p+'">'+h+"</a></div>").on("click",t=>{t.stopPropagation()}));return(0,d.default)('<div class="ps-notif__box-footer"></div>').append(this.$btnMarkAllRead).append(this.$btnToggleUnreadOnly).add((0,d.default)('<div class="ps-notif__box-footer"></div>').append(t))}updateCounter(t){var e=this.$counter;0<t?e.text(t).show():e.hide()}updateHtml(t){this.html!==t&&(this.html=t,this.$popoverBody.html(t),(0,d.default)(document.body).hasClass("wp-admin"))&&this.$popoverBody.find("a[href]").attr("target","_blank")}updateButton(t){var e=this.$btnToggleUnreadOnly,t=t?l:r;this.loadEnd=!1,e.html(t)}toggle(t){super.toggle(t),this.html||(t=+this.$counter.text()||0,f.unreadCount=t,f.fetch(1));t=this.$btnMarkAllRead;t.data("html")&&t.html(t.data("html")).removeData("html"),s&&t.removeData("confirmation")}loadNext(){let t,e;this.loading||this.loadEnd||(this.loading=!0,t=this.$popoverLoading,(e=this.$popoverBody.append(t))[0].scrollTop=e[0].scrollHeight,f.next().catch(()=>{this.loadEnd=!0}).then(()=>{this.loading=!1,t.detach(),this.loadEnd||this.tryLoadNext()}))}onItemClick(t){let e=(0,d.default)(t.currentTarget),i=e.data("id"),o=e.data("unread"),s="ps-notification--unread",n,a,r;t.stopPropagation(),3===t.which||t.ctrlKey||t.altKey||(("_blank"===(n=e.find("a").eq(0)).attr("target")||2===t.which||t.metaKey||t.shiftKey)&&(r=!0),o?(r||n.on("click",function(t){t.preventDefault(),t.stopPropagation()}),e.data("progress")||(e.data("progress",!0).css("opacity",.5),e.removeClass(s),a=e.find(".ps-js-mark-as-read").hide(),f.markRead(i).then(()=>{e.data("unread",!1),a.remove(),r||(n.off("click"),n[0].click(),this.openUrl(n.attr("href")))}).catch(()=>{e.addClass(s),a.show()}).then(()=>{e.data("progress",!1).css("opacity","")}))):r||this.openUrl(n.attr("href")))}onMarkRead(t){let e=(0,d.default)(t.currentTarget),i=e.closest(".ps-js-notification"),o=i.data("id"),s="ps-notification--unread";t.preventDefault(),t.stopPropagation(),i.data("progress")||(i.data("progress",!0).css("opacity",.5),i.removeClass(s),e.hide(),f.markRead(o).then(()=>{i.data("unread",!1),e.remove()}).catch(()=>{i.addClass(s),e.show()}).then(()=>{i.data("progress",!1).css("opacity","")}))}onMarkAllRead(t){t.preventDefault(),t.stopPropagation();let e=this.$btnMarkAllRead;e.data("progress")||(this.updateCounter(0),e.data("progress",!0).css("opacity",.5),f.markRead().then(()=>this.toggle()).catch(d.default.noop).then(()=>e.css("opacity","").removeData("progress")))}onMarkAllReadWithConfirmation(t){t.preventDefault(),t.stopPropagation();let e=this.$btnMarkAllRead;e.data("confirmation")||e.data("progress")||(e.data("confirmation",!0).data("html",e.html()),e.html(u),e.off("click.confirm").on("click.confirm","button",t=>{t.preventDefault(),t.stopPropagation(),e.data("progress")||((0,d.default)(t.currentTarget).data("ok")?(this.updateCounter(0),e.data("progress",!0).css("opacity",.5),f.markRead().then(()=>this.toggle()).catch(d.default.noop).then(()=>{e.data("html")&&e.html(e.data("html")).removeData("html"),e.css("opacity","").removeData("confirmation progress")})):(e.data("html")&&e.html(e.data("html")).removeData("html"),e.removeData("confirmation")))}))}openUrl(t){let e=window.location.href,i=t,o=i.replace(/#.*$/,"")===e.replace(/#.*$/,"");setTimeout(function(){window.location=i,o&&window.location.reload()},1)}onToggleUnreadOnly(t){let e=this.$btnToggleUnreadOnly;t.preventDefault(),t.stopPropagation(),e.data("progress")||(this.$popoverBody.empty().append(this.$popoverLoading),e.data("progress",!0).css("opacity",.5),f.toggleUnreadOnly().catch(d.default.noop).then(()=>{e.data("progress",!1).css("opacity",""),this.tryLoadNext()}))}}b.default=m}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../notification-popover":22,"./singleton":21}],21:[function(t,e,s){!function(o){!function(){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var t,n=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};e=r(e);if(e&&e.has(t))return e.get(t);var i,o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in t){var n;"default"!==i&&{}.hasOwnProperty.call(t,i)&&((n=s?Object.getOwnPropertyDescriptor(t,i):null)&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=t[i])}return o.default=t,e&&e.set(t,o),o}("undefined"!=typeof window?window.peepso:void 0!==o?o.peepso:null);function r(t){var e,i;return"function"!=typeof WeakMap?null:(e=new WeakMap,i=new WeakMap,(r=function(t){return t?i:e})(t))}let e;class i extends a.default.npm.EventEmitter{constructor(){if(!e){super(),(e=this).notifications=[""],this.unreadCount=null;let t=0;window.localStorage&&(t=+window.localStorage.getItem("peepso_notif_unread_only")),this.params={page:1,per_page:5,unread_only:t},a.observer.addFilter("notification_unread_only",()=>this.params.unread_only,10,1),this.fetchEnd=!1,a.observer.addAction("notification_update",t=>{this.doUpdate(t)},10,1)}return e}get html(){return _.flatten(this.notifications).join("")}doUpdate(t){t&&t.data&&(t=+(t.data["ps-js-notifications"]||{}).count,_.isNaN(t)||this.unreadCount===t||(this.unreadCount=t,this.emit("counter:updated",t),this.reset()))}reset(){return new a.Promise(t=>{this.notifications=[""],this.params.page=1,this.fetchEnd=!1,this.fetch().catch(n.default.noop).then(()=>{t()})})}fetch(t=null){let o=_.extend({},this.params,{page:t||this.params.page}),e,s;return(e=new a.Promise((e,i)=>{this.fetchEnd?e([]):a.default.postJson("notificationsajax.get_latest",o,t=>{t.success?(s=t.data||{},e(s.notifications||[])):t.errors&&1===o.page?i(t.errors):e([])})})).then(t=>{_.isArray(t)&&t.length?this.notifications[o.page]=t:this.fetchEnd=!0}).catch(t=>{this.fetchEnd=!0,this.params.page=1,this.notifications=["",['<div class="ps-notification">','<a class="ps-notification__inside">','<div class="ps-notification__desc">',t.join("<br />"),"</div>","</a>","</div>"].join("")]}).then(()=>{this.emit("html:updated",this.html)}),e}next(){return new a.Promise((t,e)=>{let i=this.params.page+1;this.fetchEnd?e():this.fetch(i).then(()=>{this.params.page=i,t()})})}markRead(s=null){return new a.Promise((i,o)=>{a.default.postJson("notificationsajax.mark_as_read",s?{note_id:s}:null,t=>{var e;(t.success?(e=(t=s?Math.max(this.unreadCount-1,0):0)-this.unreadCount,this.unreadCount=t,this.notifications=this.__markHtmlAsRead(this.notifications,s),this.emit("counter:updated",this.unreadCount),this.emit("html:updated",this.html),a.observer.doAction("notification_titlebar",e=(0<=e?"+":"")+e),i):o)()})})}toggleUnreadOnly(){return new a.Promise((t,e)=>{let i=this.params.unread_only;i=i?0:1,this.params.unread_only=i,this.reset().then(()=>{this.emit("unread_only:updated",i),window.localStorage&&window.localStorage.setItem("peepso_notif_unread_only",i),t()})})}__markHtmlAsRead(t,o=null){let s="ps-js-notification";return _.map(t,i=>{if(_.isArray(i))i=this.__markHtmlAsRead(i,o);else if(_.isString(i)&&i.length){let t=(0,n.default)("<div/>").html(i),e=t.find("."+s);(e=o?e.filter("."+s+"--"+o):e).removeClass("ps-notification--unread").removeAttr("data-unread"),e.find(".ps-js-mark-as-read").remove(),i=t.html()}return i},this)}}s.default=i}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(t,e,s){!function(o){!function(){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t};const e=peepsodata.loading_gif;s.default=class{constructor(t){this.guid=_.uniqueId("psNotificationPopover_"),this.$elem=(0,i.default)(t),this.$counter=this.$elem.find(".ps-js-counter"),this.$popover=null,this.$popoverHeader=null,this.$popoverBody=null,this.$popoverFooter=null,this.$popoverLoading=null,this.$elem.on("click",t=>{this.toggle(t)}),this.render()}render(){this.$popover||(this.$popoverHeader=this.createHeader(),this.$popoverBody=this.createBody(),this.$popoverFooter=this.createFooter(),this.$popoverLoading=(0,i.default)('<div class="ps-loading ps-loading--notifs" />').append('<img src="'+e+'" />').appendTo(this.$popoverBody),this.$popover=(0,i.default)('<div class="ps-notif__box" />').append(this.$popoverHeader).append(this.$popoverBody).append(this.$popoverFooter).hide(),this.$elem.append(this.$popover))}createHeader(){return(0,i.default)()}createBody(){return(0,i.default)('<div class="ps-notifications ps-notifications--notifs" />').css({maxHeight:"40vh",overflow:"auto"}).on("wheel",t=>{this.disableParentScroll(t)}).on("scroll",t=>{this.handleScroll(t)})}createFooter(){return(0,i.default)()}toggle(t){let e="click."+this.guid;t&&t.preventDefault(),this.$popover||this.render(),this.$popover.is(":visible")?((0,i.default)(document).off(e),this.$popover.stop().slideUp("fast")):_.defer(()=>{this.$popover.stop().slideDown({duration:"fast",done:()=>{(0,i.default)(document).one(e,t=>{this.$popover.hide()}),this.tryLoadNext()}})})}tryLoadNext(){var t=this.$popoverBody[0],e=t.scrollTop,t=t.scrollHeight-t.clientHeight;Math.abs(e-t)<=1&&this.loadNext()}loadNext(){}disableParentScroll(t){var e=t.currentTarget,i=e.scrollTop,o=t.originalEvent.deltaY;(0===i&&o<0||(e=e.scrollHeight-e.clientHeight,Math.abs(i-e)<=1&&0<o))&&(t.preventDefault(),t.stopPropagation())}handleScroll(){this.tryLoadNext()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(t,e,i){"use strict";var o;function s(){this.can_submit=!1,this.$postbox=null,this.$url_preview_container=jQuery("<div class='ps-postbox__url-preview-wrapper url-preview-container'></div>"),this.embedData=null,this.embedExceptions=[]}(o=jQuery).fn.pspostbox=function(t){var i;if(!(this.length<=0))return(i=this).$textarea=null,this.$access=null,this.$charcount=null,this.$preview_button=null,this.$cancel_button=null,this.$save_button=null,this.$posttabs=null,this.$privacy_dropdown=null,this.can_submit=!1,this.init=function(t){var i=this,e={textarea:"textarea.ps-postbox-textarea",mirror:".ps-postbox-mirror",addons:".ps-postbox-addons",access:"#postbox_acc",save_url:"postbox.post",charcount:".ps-js-charcount",preview_button:".ps-js-btn-preview",cancel_button:".ps-button-cancel",save_button:".postbox-submit",send_button_text:void 0,text_length:peepsodata.postsize,autosize:!0};this.opts=e,o.extend(!0,this.opts,t),this.guid=_.uniqueId("postbox-"),this.$posttabs=o(this).find(".ps-postbox-tab-root").ps_posttabs({container:this}),this.$textarea=jQuery(this.opts.textarea,this),this.$mirror=jQuery(this.opts.mirror,this),this.$addons=jQuery(this.opts.addons,this),this.$access=o(this.opts.access,this),this._default_access=this.$access.val(),this.$charcount=o(this.opts.charcount,this),this.$preview_button=o(this.opts.preview_button,this),this.$cancel_button=o(this.opts.cancel_button,this),this.$save_button=o(this.opts.save_button,this),_.isUndefined(this.opts.send_button_text)||this.$save_button.html(this.opts.send_button_text),this.$preview_button.on("click",function(){window.postbox.check_url_preview("force")}),this.$privacy=o("#privacy-tab",this),this.orig_height=this.$textarea.height(),this.opts.autosize&&this.$textarea.autosize(),this.$textarea.attr("maxlength",this.opts.text_length).on("keydown",function(t){i.on_keydown(t)}).on("keypress",function(t){i.on_keypress(t)}).on("paste",function(t){i.on_paste(t)}).on("focus",function(t){i.on_focus()}).on("keyup",function(t){i.on_change()}).on("input",function(t){i.on_input()}),this.$charcount.html(this.opts.text_length+""),this.$privacy_dropdown=o(".ps-privacy-dropdown",this.$privacy),this.$privacy_dropdown.on("click a",jQuery.proxy(function(t){var t=jQuery(t.target).closest("a"),e=this.$privacy.find(".ps-js-interaction-wrapper .ps-js-interaction-toggle"),i=jQuery("#postbox_acc");e.find("i").attr("class",t.find("i").attr("class")),e.find("span").html(t.find("span").text()),i.val(t.attr("data-option-value"))},this)),this.$privacy.on("click",function(t){i.privacy(t)}),peepso.observer.addAction("postbox_group_set",function(t){t===i&&i.$privacy.hide()},10,1),peepso.observer.addAction("postbox_group_reset",function(t){t===i&&i.$privacy.show()},10,1),jQuery("nav.ps-postbox-tab ul li a").click(this.clear_tabs),jQuery("#status-post",i).addClass("active"),jQuery(this.$posttabs).on("peepso_posttabs_show-status",function(){jQuery("#status-post",i).addClass("active"),jQuery(".ps-postbox-status").show(),i.on_change()}),peepso.observer.addAction("postbox_type_set",function(t,e){t===i&&"status"===e&&jQuery("#status-post",i).trigger("click")},10,2),jQuery("#status-post",i).on("click",function(){jQuery(i.$posttabs).find("[data-tab='status']").trigger("click")}),this.$posttabs.on("peepso_posttabs_submit-status",function(){i.save_post()}),this.$posttabs.on("peepso_posttabs_cancel-status",function(){jQuery("#status-post",i).removeClass("active")}),this.$posttabs.on("peepso_posttabs_submit",function(){i.$textarea.attr("readonly","readonly"),i.find(".ps-postbox-status").css("opacity",.5)}),this.$posttabs.on("peepso_posttabs_cancel",function(){i.$textarea.val(""),i.cancel_post()}),this.find(".interactions > ul > li > .interaction-icon-wrapper a").on("click",function(t,e){e||i.find(".interactions > ul > li > .ps-js-interaction-wrapper a").not(this).trigger("peepso.interaction-hide",[!0])}),setTimeout(()=>{let e=()=>{let t=this.$textarea.val().trim(),e={hard:[],soft:[""!==t]},i=peepso.observer.applyFilters("peepso_postbox_can_submit",e,this),o=!0;return[...i.hard,...i.soft].forEach(t=>{t&&(o=!1)}),o},i=t=>{t?(this.addClass("ps-postbox--active"),this.find(".ps-js-postbox-footer").not(".ps-postbox-tab-root").show(),this.update_charcount()):(this.removeClass("ps-postbox--active"),this.find(".ps-js-postbox-footer").not(".ps-postbox-tab-root").hide(),this.$charcount.hide())};i(!e()),this.$textarea.on("focus",()=>this.click()),this.on("click",t=>{t.stopPropagation(),i(!0),o(document).off("click.postbox").one("click.postbox",()=>i(!e()))})},100),this._load_addons(),this.removeClass("ps-postbox--disabled"),+peepsodata.show_powered_by&&peepso.observer.addAction("show_branding",()=>{var t=o(peepsodata.powered_by);o(this).children("."+t.attr("class")).length||t.appendTo(this)})},this._load_addons=function(){var t=peepso.observer.applyFilters("peepso_postbox_addons",[]);o(t).each(function(t,e){e.set_postbox(i),e.init()})},this.clear_tabs=function(){peepso.observer.applyFilters("postbox_clear_tabs",null)},this.privacy=function(t){this.$privacy_dropdown.is(":visible")?(this.$privacy_dropdown.hide(),this.$privacy.removeClass("ps-postbox__menu-item--open"),jQuery(document).off("mouseup.ps-postbox-privacy")):(this.$privacy_dropdown.show(),this.$privacy.addClass("ps-postbox__menu-item--open"),setTimeout(function(){jQuery(document).off("mouseup.ps-postbox-privacy").on("mouseup.ps-postbox-privacy",function(t){0===this.$privacy.has(t.target).length&&(this.$privacy_dropdown.hide(),this.$privacy.removeClass("ps-postbox__menu-item--open"),o(document).off("mouseup.ps-postbox-privacy"))}.bind(this))}.bind(this),1))},this.save_post=function(){var t;peepso.observer.applyFilters("postbox_before_save",!0,this)&&(t={content:this.$textarea.val(),id:peepsodata.currentuserid,uid:peepsodata.userid,acc:this.$access.val(),type:"activity"},_.isUndefined(this.opts.postbox_req)||typeof Function!=typeof this.opts.postbox_req||(t=this.opts.postbox_req.apply(null,[t])),t=peepso.observer.applyFilters("postbox_req",t),t=peepso.observer.applyFilters("postbox_req_"+this.guid,t),this.save_post_queue||(this.save_post_queue=[]),this.save_post_queue.push(t),this.on_before_save(),this.save_post_progress||(this.save_post_progress=!0,this.save_post_execute()))},this.save_post_execute=function(){var e;this.save_post_queue.length?(e=this.save_post_queue.shift(),peepso.observer.applyFilters("peepso_postbox_enter_to_send",!1)||(jQuery(".ps-postbox-action",this).css("display","none"),jQuery(".ps-postbox-loading",this).show()),peepso.disableAsync().postJson(this.opts.save_url,e,function(t){t.success?(i.on_save(t),jQuery(i).trigger("postbox.post_saved",[e,t])):i.on_error(t),i.save_post_execute()})):(peepso.observer.applyFilters("peepso_postbox_enter_to_send",!1)||(jQuery(".ps-postbox-loading",this).hide(),jQuery(".ps-postbox-action",this).css("display","flex"),this.$posttabs.on_cancel()),this.save_post_progress=!1,this.on_queue_clear(),postbox.remove_broken_thumbnails())},this.on_before_save=function(){typeof Function==typeof this.opts.on_before_save&&this.opts.on_before_save.apply(this)},this.on_save=function(t){var e=peepso.observer.applyFilters("peepso_postbox_onsave",!1,this);"function"==typeof e?e.apply(this,[t]):"function"==typeof this.opts.on_save&&(this.opts.on_save.apply(this,[t]),this.$textarea.css("height",this.orig_height),jQuery(this).trigger("postbox.post_saved",this))},this.on_queue_clear=function(){typeof Function==typeof this.opts.on_queue_clear&&this.opts.on_queue_clear.apply(this)},this.on_error=function(t){typeof Function==typeof this.opts.on_error?this.opts.on_error.apply(this,[t]):!1===_.isUndefined(t.errors[0])&&psmessage.show("Error",t.errors[0])},this.cancel_post=function(){this.$textarea.css("height",this.orig_height),this.$textarea.removeAttr("readonly"),this.find(".ps-postbox-status").css("opacity",""),this.on_change(),jQuery(this).trigger("postbox.post_cancel")},this.on_focus=function(){jQuery(".ps-postbox-tab-root",i).hide(),jQuery(".ps-postbox-tab.interactions",i).attr("data-tab-shown",this.$posttabs.current_tab().data("tab")),jQuery(".ps-postbox-tab.interactions",i).show()},this.on_keydown=function(t){var e,i;return this._go_submit=!1,13!==t.keyCode||(i=(e=this.$textarea.val()).trim(),!t.shiftKey&&peepso.observer.applyFilters("peepso_postbox_enter_to_send",!1)&&(i.length||this.submitable(e))?(t.preventDefault(),this._go_submit=!0,this.$posttabs.on_submit(),!1):i.length?void 0:(t.preventDefault(),!1))},this.on_keypress=function(t){if(this.$textarea.val()>=this.opts.text_length)return!1},this.on_paste=function(t){var e=this;t.originalEvent.clipboardData.getData("text/plain").slice(0,this.text_length),setTimeout(function(){e.on_change()},100)},this.on_input=function(t){this._go_submit||(peepso.observer.applyFilters("peepso_postbox_input_changed",this.$textarea.val(),this),this.update_beautifier())},this.update_charcount=function(){var t,e=this.$textarea.val(),i=this.opts.text_length,e=Math.max(0,i-e.length);this.$charcount.html(e+""),e&&.5<e/i?this.$charcount.hide():(this.$charcount.show(),t="",0===e||e/i<.1?t="red":e/i<.25&&(t="orange"),this.$charcount.css({color:t}))},this.on_change=function(){this.update_charcount();var t=this.$textarea.val(),t=(this.submitable(t)?this.$save_button.show():this.$save_button.hide(),t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br>"));this.$mirror.html(t),this.addons_update()},this.submitable=function(e){var i=Math.max(0,this.opts.text_length-e.length),i=peepso.observer.applyFilters("peepso_postbox_can_submit",{hard:[],soft:[i<this.opts.text_length&&""!==e.trim()]},this);{var{hard:e,soft:o}=i;let t=!1;(t=e.length?-1===e.indexOf(!1):-1!==o.indexOf(!0))&&!this.beforeUnloadHandler?(this.beforeUnloadHandler=()=>!0,peepso.observer.addFilter("beforeunload",this.beforeUnloadHandler)):!t&&this.beforeUnloadHandler&&(peepso.observer.removeFilter("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=null),t?(this.$preview_button.show(),this.$cancel_button.show()):(this.$preview_button.hide(),this.$cancel_button.hide())}return i=i.hard.length?!(-1<i.hard.indexOf(!1)):-1<i.soft.indexOf(!0)},this.addons_update=jQuery.proxy(_.debounce(function(){var t,e=peepso.observer.applyFilters("peepso_postbox_addons_update",[]);e&&e.length?(t=this.$textarea.attr("placeholder"),this.$textarea.data("placeholder",t).removeAttr("placeholder"),this.$addons.html("&mdash; "+e.join(" and ")),this.$addons.show()):(t=this.$textarea.data("placeholder"),this.$textarea.attr("placeholder",t),this.$addons.hide().empty())},10),this),this.update_beautifier=_.throttle(function(){_.defer(_.bind(function(){var t,e;this.$beautifier||(this.$textarea.addClass("ps-tagging-textarea"),(e=this.$textarea.parent(".ps-postbox__input-tag")).length||(this.$textarea.wrap("<div class=ps-postbox__input-tag />"),e=this.$textarea.parent(".ps-postbox__input-tag")),this.$beautifier=e.children(".ps-postbox__input-beautifier"),this.$beautifier.length||(this.$beautifier=o("<div class=ps-postbox__input-beautifier />"),this.$beautifier.prependTo(e)),this.$textarea.focus()),(e=window._wpemojiSettings||{})&&e.supports&&(e.supports.everything=!0),t=this.$textarea.val()||"",t=(t=peepso.observer.applyFilters("peepso_postbox_beautifier",t,this.$textarea)).replace(/<(?!\/?ps_)/g,"&lt;").replace(/<(\/?)ps_/g,"<$1").replace(/\r?\n/g,"<br />"),this.$beautifier.html(t)},this))},100),this.init(t),this},s.prototype.init=function(){var e=this;return peepso.observer.addFilter("peepso_postbox_can_submit",function(t){return t||e.can_submit},20,1),this.$activity_stream_recent=jQuery("#ps-activitystream-recent"),this.$activity_stream=jQuery("#ps-activitystream"),this.$postbox=jQuery("#postbox-main").pspostbox({postbox_req:function(t){return e.embedData?t.embed=e.embedData:t.show_preview=0,t},on_save:function(t){return jQuery(this.$posttabs).find("[data-tab='status']").trigger("click"),e.append_to_stream(t)}}),void 0!==this.$postbox&&(this.$postbox.$textarea.on("blur",function(t){e.check_url_preview()}).on("keyup",function(t){32===t.keyCode&&e.check_url_preview()}),this.$postbox.on("postbox.post_saved postbox.post_cancel",()=>{e.can_submit=!1,e.$url_preview_container.empty().remove(),this.embedData=null,this.embedExceptions=[]})),this.$postbox},s.prototype.check_url_preview=function(t){if(!this.fetching){var e=this.$postbox.$posttabs.current_tab().data("tab");if("status"===e){var e=peepsodata.embed||{},i=+e.enable;if(i&&(t||!this.embedData)){let t=this.$postbox.$textarea.val(),o;if(o=(o=t.match(/(^|\s)(https?:\/\/)?([a-z0-9-]+\.)+((com|net|org|int|edu|gov|mil|biz|info|mobi|co|io|me)(\.[a-z]{2})?)(?![a-z])(:\d+)?(\/[^\s]*)?/gi)||t.match(/(^|\s)(https?:\/\/)([a-z0-9-]+\.)+([a-z]{2,24})(:\d+)?(\/[^\s]*)?/gi))&&o[0]&&o[0].trim()){o.match(/^https?:\/\//i)||(o="https://"+o);i=+e.enable_non_ssl;if((i||o.match(/^https:\/\//i))&&!(this.embedExceptions&&-1<this.embedExceptions.indexOf(o))){this.fetching=!0;let i=this.$postbox.$textarea.closest(".ps-postbox-input"),t=this.$postbox.find(".ps-postbox-loading").show(),e=this.$postbox.find(".ps-postbox-action").css("display","none");peepso.modules.url.getEmbed(o).then(t=>{this.embedData=o;let e=`<div class="ps-postbox__url-preview url-preview ps-stream-container-narrow">
				<div class="ps-postbox__url-close close">
					<a href="#" class="ps-js-remove"><i class="gcis gci-times"></i></a>
				</div>
				${t.html}
			</div>`;e=e.replace(/\/embed\/(#\?secret=[a-zA-Z0-9]+)?"/g,'/?embed=true$1"'),this.$url_preview_container.html(e).appendTo(i),this.$url_preview_container.on("click.ps-embed-remove",".ps-js-remove",()=>{this.$url_preview_container.off("click.ps-embed-remove"),this.$url_preview_container.empty().remove(),this.embedData=null,this.embedExceptions.push(o)}),e.match(/\sdata-instgrm-permalink/)&&setTimeout(function(){try{window.instgrm.Embeds.process()}catch(t){}},1e3)}).catch(()=>{}).then(()=>{this.fetching=!1,t.hide(),e.css("display","flex")})}}}}}},s.prototype.append_to_stream=function(t){var e,i,o,s,n,a;t.data&&+t.data.post_id&&(0<jQuery("#ps-no-posts").length&&(jQuery(this.$activity_stream.css("display","block")),jQuery("#ps-no-posts").remove()),e=t.data.post_id,t=t.data.html,i=+peepsodata.activity_reverse_order,t=(t=t.replace(/\/embed\/(#\?secret=[a-zA-Z0-9]+)*"/g,'/?embed=true$1"')).replace(/\/\?embed=true([#"])/g,"/?embed=true&peepso=1$1"),(o=peepso.observer.applyFilters("peepso_activity",jQuery(t),{inLoop:!1})).find(".ps-js-activity-content, .ps-js-activity-quote, .ps-comment-item").each(function(){var t=jQuery(this),e=t.html(),e=peepso.observer.applyFilters("peepso_activity_content",e);t.html(e)}),(s=this.$activity_stream.children(".ps-js-activity-pinned").not(".ps-js-activity-pinned-notop")).length?(n=o.filter(".ps-js-activity-pinned").not(".ps-js-activity-pinned-notop"),a=o.not(n),n.length&&n.prependTo(this.$activity_stream),a.length&&a.insertAfter(s.last())):i?o.addClass("ps-js-activity-latest").appendTo(this.$activity_stream):o.prependTo(this.$activity_stream),o.each(function(){1===this.nodeType&&peepso.hooks.doAction("post_added",this)}),o.fadeIn("slow",function(){jQuery(this).find(".ps-js-comment-container").hide(),jQuery(document).trigger("ps_activitystream_append",[jQuery("#peepso-wrap .ps-js-activity--"+e+" .ps-js-dropdown-toggle")]),peepso.hooks.addFilter("activitystream_disable_scroll","postbox",()=>!0),peepso.util.scrollIntoViewIfNeeded(this,{position:"center"}),setTimeout(()=>{peepso.hooks.removeFilter("activitystream_disable_scroll","postbox")},3e3)}),peepso.observer.doAction("peepso_activity_actions",o.find("[data-type=stream-action]")),t.match(/\sdata-instgrm-permalink/)&&setTimeout(function(){try{window.instgrm.Embeds.process()}catch(t){}},1e3),peepso.observer.applyFilters("peepso_posttabs_cancel-status"))},s.prototype.remove_broken_thumbnails=function(){jQuery(".ps-media-thumbnail img").each(function(){var t=new Image,e=this;t.onerror=function(){jQuery(e).closest(".ps-media-thumbnail").remove()},t.src=e.src})},window.postbox=new s,jQuery(document).ready(function(){postbox.init()}),jQuery(function(){var t;jQuery.support.placeholder=!1,"placeholder"in document.createElement("input")&&(jQuery.support.placeholder=!0),jQuery.support.placeholder||(t=document.activeElement,jQuery("textarea").focus(function(){jQuery(this).attr("placeholder")&&0<jQuery(this).attr("placeholder").length&&""!==jQuery(this).attr("placeholder")&&jQuery(this).val()===jQuery(this).attr("placeholder")&&jQuery(this).val("").removeClass("hasPlaceholder")}).blur(function(){jQuery(this).attr("placeholder")&&0<jQuery(this).attr("placeholder").length&&""!==jQuery(this).attr("placeholder")&&(""===jQuery(this).val()||jQuery(this).val()===jQuery(this).attr("placeholder"))&&jQuery(this).val(jQuery(this).attr("placeholder")).addClass("hasPlaceholder")}),jQuery("textarea").blur(),jQuery(t).focus(),jQuery("form").submit(function(){jQuery(this).find(".hasPlaceholder").each(function(){jQuery(this).val("")})}))})},{}],24:[function(t,e,i){"use strict";t("./postbox"),t("./postbox-dropdown"),t("./postbox-type"),t("./postbox-schedule"),t("./postbox-pin")},{"./postbox":29,"./postbox-dropdown":25,"./postbox-pin":26,"./postbox-schedule":27,"./postbox-type":28}],25:[function(t,e,n){!function(s){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=(t="undefined"!=typeof window?window.jQuery:void 0!==s?s.jQuery:null)&&t.__esModule?t:{default:t},t="undefined"!=typeof window?window.peepso:void 0!==s?s.peepso:null;let o=0;t.observer.addFilter("class_postbox_dropdown",()=>e);class e{constructor(t,e={}){this.id="ps-postbox-dropdown--"+ ++o,this.opts=e,this.$postbox=(0,i.default)(t).closest(".ps-js-postbox"),this.$container=(0,i.default)(t),this.$toggle=this.$container.find(".ps-js-postbox-toggle").first(),this.$dropdown=this.$container.find(".ps-js-postbox-dropdown").first(),this.$toggle.on("click",()=>this.toggle())}toggle(){this.$dropdown.is(":visible")?this.hide():this.show()}show(){this.$dropdown.show(),this.$container.addClass("ps-postbox__menu-item--open"),setTimeout(()=>{(0,i.default)(document).off("mouseup."+this.id).on("mouseup."+this.id,t=>{0===this.$container.has(t.target).length&&this.hide()})},1)}hide(){this.$dropdown.hide(),this.$container.removeClass("ps-postbox__menu-item--open"),(0,i.default)(document).off("mouseup."+this.id)}}n.default=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],26:[function(h,t,e){!function(l){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==l?l.jQuery:null)&&t.__esModule?t:{default:t},o="undefined"!=typeof window?window.peepso:void 0!==l?l.peepso:null,e="undefined"!=typeof window?window.peepsodata:void 0!==l?l.peepsodata:null,s=h("../datetime");const n=e.datetime&&e.datetime.text.monthNames,a=e.datetime&&e.datetime.text.am,r=e.datetime&&e.datetime.text.pm;class d extends o.observer.applyFilters("class_postbox_dropdown",10,1){constructor(t){super(t.find("#pin-tab")[0]),this.$postbox=t,this.is_admin=o.observer.applyFilters("postbox_can_pin",+e.is_admin),this.is_admin?this.$container.show():this.$container.hide(),this.$radio=this.$container.find("[type=radio]"),this.$datetime=this.$container.find(".ps-js-datetime"),this.$date=this.$container.find(".ps-js-date-dd"),this.$month=this.$container.find(".ps-js-date-mm"),this.$year=this.$container.find(".ps-js-date-yy"),this.$hour=this.$container.find(".ps-js-time-hh"),this.$minute=this.$container.find(".ps-js-time-mm"),this.$ampm=this.$container.find(".ps-js-time-ampm"),this.$done=this.$container.find(".ps-js-done"),this.minuteInterval=+this.$minute.data("interval")||15,this.dateSelector=null,this.timeSelector=null,this.$done.on("click",()=>this.hide()),this.$dropdown.on("click","[data-option-value]",t=>{var e=(0,i.default)(t.currentTarget).data("optionValue");t.stopPropagation(),this.select(e),"no"!==e&&"indefinitely"!==e||this.hide()}),this.$postbox.on("postbox.post_cancel postbox.post_saved",()=>{this.resetDateTime(),this.select("no")}),o.observer.addFilter("postbox_req",this.filterPostboxReq.bind(this),10,1),o.observer.addFilter("postbox_data",this.filterPostboxData.bind(this),10,2),o.observer.addAction("postbox_update",this.actionPostboxUpdate.bind(this),10,2),o.observer.addAction("postbox_group_set",this.actionPostboxGroupSet.bind(this),10,3),o.observer.addAction("postbox_group_reset",this.actionPostboxGroupReset.bind(this),10,1)}value(){let t;return this.$radio.get(1).checked?t=1:this.$radio.get(2).checked&&this.dateSelector&&this.timeSelector&&(t=this.dateSelector.getDate()+" "+this.timeSelector.getTime()),t}select(t){var e;"no"===t?(this.$radio.get(0).checked=!0,this.$datetime.hide(),this.$container.removeClass("active"),(e=this.$container.find(".ps-js-interaction-toggle")).attr("data-tooltip-original")&&(e.attr("data-tooltip",e.attr("data-tooltip-original")),e.removeAttr("data-tooltip-original")),o.observer.doAction("postbox_pin_reset",this.$postbox)):"indefinitely"===t?(this.$radio.get(1).checked=!0,this.$datetime.hide(),this.$container.addClass("active"),(e=this.$container.find(".ps-js-interaction-toggle")).attr("data-tooltip-original")&&(e.attr("data-tooltip",e.attr("data-tooltip-original")),e.removeAttr("data-tooltip-original")),o.observer.doAction("postbox_pin_set",this.$postbox,this.value())):"until"===t&&(this.$radio.get(2).checked=!0,this.$datetime.show(),this.$container.addClass("active"),this.initDateTime(),e=this.$container.find(".ps-js-interaction-toggle"),t=this.timeSelector.getTime(!0)+", "+this.dateSelector.getDate(!0),e.attr("data-tooltip-original")||e.attr("data-tooltip-original",e.attr("data-tooltip")),e.attr("data-tooltip",t),o.observer.doAction("postbox_pin_set",this.$postbox,this.value()))}initDateTime(){var t,e,i;this.dateSelector||this.timeSelector||(i=()=>{var t=new Date,e=this.dateSelector.getDate().split("-"),i=this.timeSelector.getTime().split(":"),e=new Date(+e[0],+e[1]-1,+e[2],+i[0],+i[1]);t.setHours(t.getHours()+1,t.getMinutes()+(this.minuteInterval-t.getMinutes()%this.minuteInterval),0),e<t&&this.timeSelector.setTime(t.getHours()+":"+t.getMinutes())},e={monthNames:n,minDate:new Date,maxDate:t=new Date,onSelect:i},i={step:this.minuteInterval,am:a,pm:r,onSelect:i},t.setFullYear(Math.max(2035,t.getFullYear()+1)),this.dateSelector=new s.DateSelector(this.$year[0],this.$month[0],this.$date[0],e),this.timeSelector=new s.TimeSelector(this.$hour[0],this.$minute[0],this.$ampm.length?this.$ampm[0]:i,this.$ampm.length?i:void 0),this.resetDateTime())}resetDateTime(){var t=new Date;t.setDate(t.getDate()+1),this.setDateTime(t)}setDateTime(t){this.initDateTime();var e=`${t.getFullYear()}-${t.getMonth()+1}-`+t.getDate(),t=t.getHours()+":"+t.getMinutes();this.dateSelector.setDate(e),this.timeSelector.setTime(t)}filterPostboxReq(t){var e=this.value();return e&&(t.pin="string"==typeof e?e:1),t}filterPostboxData(t,e){return e.$el===this.$postbox&&(e=this.value())&&(t.pin="string"==typeof e?e:1),t}actionPostboxUpdate(t,o){if(t.$el===this.$postbox)if(o.pin)if("string"==typeof o.pin){let[t,e]=o.pin.split(" "),i;t=t.split("-"),e=e.split(":"),i=new Date(+t[0],+t[1]-1,+t[2],+e[0],+e[1]),this.select("until"),this.setDateTime(i)}else this.select("indefinitely"),this.resetDateTime(),this.$container.hide();else this.select("no"),this.resetDateTime(),this.$container.hide()}actionPostboxGroupSet(t,e,i){t===this.$postbox&&(+i.can_pin_posts?this.$container.show():(this.select("no"),this.$container.hide()))}actionPostboxGroupReset(t){t===this.$postbox&&(this.is_admin?this.$container.show():(this.select("no"),this.$container.hide()))}}o.observer.addAction("peepso_postbox_addons",t=>{return t.push({init(){},set_postbox(t){t.find("#pin-tab").length&&new d(t)}}),t},10,1),o.observer.addAction("postbox_init",t=>{t=t.$el;t.find("#pin-tab").length&&new d(t)},10,1)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../datetime":9}],27:[function(l,t,e){!function(d){!function(){"use strict";var i=(t="undefined"!=typeof window?window.jQuery:void 0!==d?d.jQuery:null)&&t.__esModule?t:{default:t},o="undefined"!=typeof window?window.peepso:void 0!==d?d.peepso:null,t="undefined"!=typeof window?window.peepsodata:void 0!==d?d.peepsodata:null,s=l("../datetime");const n=t.datetime&&t.datetime.text.monthNames,a=t.datetime&&t.datetime.text.am,r=t.datetime&&t.datetime.text.pm;class e extends o.observer.applyFilters("class_postbox_dropdown",10,1){constructor(t){super(t.find("#schedule-tab")[0]),this.$postbox=t,this.$radio=this.$container.find("[type=radio]"),this.$datetime=this.$container.find(".ps-js-datetime"),this.$date=this.$container.find(".ps-js-date-dd"),this.$month=this.$container.find(".ps-js-date-mm"),this.$year=this.$container.find(".ps-js-date-yy"),this.$hour=this.$container.find(".ps-js-time-hh"),this.$minute=this.$container.find(".ps-js-time-mm"),this.$ampm=this.$container.find(".ps-js-time-ampm"),this.$done=this.$container.find(".ps-js-done"),this.minuteInterval=+this.$minute.data("interval")||15,this.dateSelector=null,this.timeSelector=null,this.$done.on("click",()=>this.hide()),this.$dropdown.on("click","[data-option-value]",t=>{var e=(0,i.default)(t.currentTarget).data("optionValue");t.stopPropagation(),this.select(e),"now"===e&&this.hide()}),this.$postbox.on("postbox.post_cancel postbox.post_saved",()=>{this.resetDateTime(),this.select("now")}),o.observer.addFilter("postbox_req",i.default.proxy(this.filterPostboxReq,this),10,1),o.observer.addFilter("postbox_data",i.default.proxy(this.filterPostboxData,this),10,2),o.observer.addAction("postbox_update",this.actionPostboxUpdate.bind(this),10,2)}value(){let t;return t=this.$radio.get(1).checked&&this.dateSelector&&this.timeSelector?this.dateSelector.getDate()+" "+this.timeSelector.getTime():t}select(t){var e;"now"===t?(this.$radio.get(0).checked=!0,this.$datetime.hide(),this.$container.removeClass("active"),(e=this.$container.find(".ps-js-interaction-toggle")).attr("data-tooltip-original")&&(e.attr("data-tooltip",e.attr("data-tooltip-original")),e.removeAttr("data-tooltip-original")),o.observer.doAction("postbox_schedule_reset",this.$postbox)):"future"===t&&(this.$radio.get(1).checked=!0,this.$datetime.show(),this.$container.addClass("active"),this.initDateTime(),e=this.$container.find(".ps-js-interaction-toggle"),t=this.timeSelector.getTime(!0)+", "+this.dateSelector.getDate(!0),e.attr("data-tooltip-original")||e.attr("data-tooltip-original",e.attr("data-tooltip")),e.attr("data-tooltip",t),o.observer.doAction("postbox_schedule_set",this.$postbox,this.value()))}initDateTime(){var t,e,i;this.dateSelector||this.timeSelector||(i=()=>{var t=new Date,e=this.dateSelector.getDate().split("-"),i=this.timeSelector.getTime().split(":"),e=new Date(+e[0],+e[1]-1,+e[2],+i[0],+i[1]);t.setHours(t.getHours()+1,t.getMinutes()+(this.minuteInterval-t.getMinutes()%this.minuteInterval),0),e<t&&this.timeSelector.setTime(t.getHours()+":"+t.getMinutes())},e={monthNames:n,minDate:new Date,maxDate:t=new Date,onSelect:i},i={step:this.minuteInterval,am:a,pm:r,onSelect:i},t.setFullYear(Math.max(2035,t.getFullYear()+1)),this.dateSelector=new s.DateSelector(this.$year[0],this.$month[0],this.$date[0],e),this.timeSelector=new s.TimeSelector(this.$hour[0],this.$minute[0],this.$ampm.length?this.$ampm[0]:i,this.$ampm.length?i:void 0),this.resetDateTime())}resetDateTime(){var t=new Date;t.setDate(t.getDate()+1),this.setDateTime(t)}setDateTime(t){this.initDateTime();var e=`${t.getFullYear()}-${t.getMonth()+1}-`+t.getDate(),t=t.getHours()+":"+t.getMinutes(),e=(this.dateSelector.setDate(e),this.timeSelector.setTime(t),this.$container.find(".ps-js-interaction-toggle")),t=this.timeSelector.getTime(!0)+", "+this.dateSelector.getDate(!0);e.attr("data-tooltip-original")||e.attr("data-tooltip-original",e.attr("data-tooltip")),e.attr("data-tooltip",t)}filterPostboxReq(t){var e=this.value();return e&&(t.future=e),t}filterPostboxData(t,e){return e.$el===this.$postbox&&(e=this.value())&&(t.future=e),t}actionPostboxUpdate(t,o){if(t.$el===this.$postbox)if(o.future){let[t,e]=o.future.split(" "),i;t=t.split("-"),e=e.split(":"),i=new Date(+t[0],+t[1]-1,+t[2],+e[0],+e[1]),this.select("future"),this.setDateTime(i)}else this.select("now"),this.resetDateTime(),this.$container.hide()}}o.observer.addAction("peepso_postbox_addons",t=>{return t.push({init(){},set_postbox(t){t.find("#schedule-tab").length&&new e(t)}}),t},10,1),o.observer.addAction("postbox_init",t=>{t=t.$el;t.find("#schedule-tab").length&&new e(t)},10,1)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../datetime":9}],28:[function(t,e,i){!function(o){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},s="undefined"!=typeof window?window.peepso:void 0!==o?o.peepso:null;class e extends s.observer.applyFilters("class_postbox_dropdown",10,1){constructor(t){super(t.find("#type-tab")[0]),this.$postbox=t,this.defaultIcon=this.$toggle.children("a").find("i").attr("class"),this.defaultText=this.$toggle.children("a").find("span").html(),this.$dropdown.on("click","[data-option-value]",t=>{var e=(0,i.default)(t.currentTarget).data("optionValue");t.stopPropagation(),this.select(e),this.hide()}),this.$postbox.on("postbox.post_saved",()=>{"function"!=typeof s.observer.applyFilters("peepso_postbox_onsave",!1,this.$postbox)&&this.select("status")}),this.select("status")}show(){this.$dropdown.show(),setTimeout(()=>{(0,i.default)(document).off("mouseup."+this.id).on("mouseup."+this.id,t=>{0===this.$container.has(t.target).length&&this.hide()})},1)}hide(){this.$dropdown.hide(),(0,i.default)(document).off("mouseup."+this.id)}select(t){var e=this.$dropdown.find(`[data-option-value="${t}"]`),i=this.$toggle.children("a"),o=e.find("i").attr("class").replace(/^.*(gci-[^\s]+).*$/,"$1"),i=i.find("i").filter("."+o);e.length&&(e.addClass("active"),e.siblings(".active").removeClass("active"),i.addClass("active"),i.siblings(".active").removeClass("active").css("color",""),s.observer.doAction("postbox_type_set",this.$postbox,t))}}s.observer.addAction("peepso_postbox_addons",t=>{return t.push({init(){},set_postbox(t){t.find("#type-tab").length&&new e(t)}}),t},10,1),s.observer.addAction("postbox_init",t=>{t.$el.find("#type-tab").remove()},10,1)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],29:[function(t,e,i){"use strict";function o(){this.__constructor.apply(this,arguments)}var s,n,a;s=jQuery,n=s,peepso.npm.objectAssign(o.prototype,PsObserver.prototype,{__constructor:function(t,e){var i=peepso.template(psdata_postbox.template);this.$el=n(t).html(i),this.$text=this.$el.find("textarea").ps_autosize(),this.$mirror=this.$el.find(".ps-js-mirror"),this.$loading=this.$el.find(".ps-postbox-loading"),this.$btns=this.$el.find(".ps-postbox-action"),this.$btnCancel=this.$btns.find(".ps-button-cancel"),this.$btnSubmit=this.$btns.find(".ps-button-action"),this.$charCounter=this.$el.find(".ps-js-charcount"),this.$tabRoot=this.$el.find("div.ps-postbox-tab-root"),this.$tabContext=this.$el.find("nav.ps-postbox-tab"),this.$addons=this.$el.find(".ps-js-addons"),this.opts=n.extend({maxChars:+psdata_postbox.max_chars||4e3,fetch:!1,cancel:!1,submit:!1},e||{}),this.init()},init:function(){this.$text.val(""),this.updateButtonVisibility(),this.updateCharCounter(),this.updateMirrorText(),this.addAction("refresh",this.refresh,10,1,this),this.$el.find("#privacy-tab").remove(),this.$el.find("#status-post").remove(),peepso.observer.doAction("postbox_init",this),this.fetch().done(function(){this.$text.on("focus.ps-postbox",n.proxy(this.onFocus,this)),this.$text.on("input.ps-postbox",n.proxy(this.onInput,this)),this.$btnSubmit.on("click.ps-postbox",n.proxy(this.onSubmit,this)),this.$btnCancel.on("click.ps-postbox",n.proxy(this.onCancel,this)),this.$tabRoot.on("click.ps-postbox","li[data-tab]",n.proxy(this.onTabChange,this))})},fetch:function(){return n.Deferred(n.proxy(function(t){"function"==typeof this.opts.fetch?(this.$btns.hide(),this.$loading.show(),this.opts.fetch(this,n.proxy(function(){this.$loading.hide(),this.$btns.css("display","flex"),t.resolveWith(this)},this))):t.resolveWith(this)},this))},update:function(t){this.$text.val(t.content||"").trigger("input"),this.updateButtonVisibility(),this.updateCharCounter(),this.updateMirrorText(),this.doAction("update",t),peepso.observer.doAction("postbox_update",this,t)},reset:function(){this.$text.val(""),this.updateButtonVisibility(),this.updateCharCounter(),this.updateMirrorText(),this.doAction("reset"),peepso.observer.doAction("postbox_reset",this)},refresh:function(){this.renderAddons(),this.updateButtonVisibility(),this.updateCharCounter(),this.updateMirrorText()},_getData:function(){return{content:this.$text.val()}},getData:function(){var t=this._getData(),t=this.applyFilters("data",t);return peepso.observer.applyFilters("postbox_data",t,this)},tabChange:function(t){var e=this.$tabRoot.find("li[data-tab]"),i=e.filter('[data-tab="'+t+'"]');i.length&&(e.not(i).removeClass("active"),i.addClass("active"),this.currentTab=t)},getActiveTab:function(){return this.currentTab||(this.currentTab=this.$tabRoot.find("li.active").data("tab")),this.currentTab},validate:function(){var t=this._getData(),e=t.content.trim();return this.applyFilters("data_validate",!!e,t)},submit:function(){"function"==typeof this.opts.submit&&this.validate()&&(this.$btns.hide(),this.$loading.show(),this.opts.submit(this,this.getData(),n.proxy(function(){this.$loading.hide(),this.$btns.css("display","flex")},this)))},cancel:function(){this.reset(),this.$tabContext.hide(),this.$tabRoot.show(),"function"==typeof this.opts.cancel&&this.opts.cancel(this)},updateCharCounter:_.throttle(function(){var t=this.$text.val().length,e=this.opts.maxChars,i=Math.max(0,e-t),o="";this.$charCounter.html(i),t<.5*e?this.$charCounter.hide():(this.$charCounter.show(),.9*e<t?o="red":e<t<.75&&(o="orange"),this.$charCounter.css({color:o}))},250),updateButtonVisibility:_.throttle(function(){this.validate()?this.$btnSubmit.show():this.$btnSubmit.hide()},250),updateMirrorText(){requestAnimationFrame(()=>{var t=this.$text.val().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br>");this.$mirror.html(t)})},renderAddons(){requestAnimationFrame(()=>{var t=(t=this.applyFilters("render_addons",[]).join(" and "))&&"&mdash; "+t;this.$addons.html(t)})},destroy:function(){this.$el.empty()},onFocus:function(){this.$tabRoot.hide(),this.$tabContext.show()},onInput:function(){this.updateButtonVisibility(),this.updateCharCounter(),this.updateMirrorText()},onCancel:function(){this.cancel()},onSubmit:function(){this.submit()},onTabChange:function(t){t=n(t.currentTarget).data("tab");this.tabChange(t)}}),a=o,s.fn.ps_postbox=function(i,o){return this.each(function(){var t=s(this),e=t.data("ps-postbox");e&&"string"==typeof i?(e[i].call(e,o),"destroy"===i&&t.removeData("ps-postbox")):e||(e=new a(t,i||{}),t.data("ps-postbox",e))})}},{}],30:[function(t,e,i){"use strict";var o;(o=jQuery).fn.ps_posttabs=function(t){return this._tabs=null,this._tabs_div={},this.tab_objects={},this.orig_html={},this.options={container:this},this.init=function(t){var i=this;o.extend(!0,this.options,t),o("[data-tab-id]",this.options.container).each(function(t,e){i._tabs_div[o(e).data("tab-id")]=o(e)}),this._tabs=this.find("[data-tab]"),this._tabs.on("click",function(t){t.stopPropagation();t=o(t.currentTarget);i.current_tab_id=t.data("tab"),i.show_tab(t)}).first().trigger("click"),jQuery(this.options.container).on("click",".ps-postbox-tab.interactions .ps-button-cancel",function(){i.on_cancel()}),jQuery(this.options.container).on("click",".ps-postbox-tab.interactions .postbox-submit",function(){i.on_submit()})},this.show_tab=function(t){var e=this.current_tab(),i=(e.removeClass("active"),this.get_tab(e.data("tab"))),e=(i.hide(),o(this).trigger("peepso_posttabs_cancel-"+e.data("tab"),[i,this]),o(t).addClass("active"),this.get_tab(o(t).data("tab")));o(this).trigger("peepso_posttabs_show-"+o(t).data("tab"),[e,this])},this.current_tab=function(){return o("[data-tab]",this.options.container).filter(".active")},this.get_tab=function(t){return _.isUndefined(this._tabs_div[t])?o(""):this._tabs_div[t]},this.on_submit=function(){var t=this.options.container;peepso.hooks.applyFilters("postbox_can_submit",!0,t)&&(t=this.current_tab(),peepso.observer.applyFilters("peepso_posttabs_submit-"+t.data("tab")),o(this).trigger("peepso_posttabs_submit-"+t.data("tab")),o(this).trigger("peepso_posttabs_submit",[t,this]))},this.on_cancel=function(){var t=this.current_tab();o(this).trigger("peepso_posttabs_cancel-"+t.data("tab"),[t,this]),o(this).trigger("peepso_posttabs_cancel",[t,this]),t.trigger("click")},this.init(t),this}},{}],31:[function(t,e,i){!function(e){!function(){"use strict";var t,i=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t};i.default.fn.psSafetyWarning=function(){return this.each((t,e)=>{(0,i.default)(e).find(".ps-js-close").on("click",t=>{(0,i.default)(t.target).closest(".ps-js-safety-warning").remove()})})},(0,i.default)(()=>{(0,i.default)(".ps-js-safety-warning").psSafetyWarning()})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(t,e,i){"use strict";function o(){}window.share=new o,o.prototype.share_url=function(t){t=encodeURIComponent(t);var e=jQuery("#share-dialog-title").html(),i=jQuery("#share-dialog-content").html(),o=(o="--peepso-url--",t=t,i=i.replace(new RegExp(o,"g"),t),(i=jQuery(i)).filter(".ps-sharebox").find("a.ps-sharebox__item"));return o.not(".internal").on("click",function(t){t.preventDefault(),t.stopPropagation();t=["toolbar=no","location=no","status=no","menubar=no","scrollbars=yes","resizable=yes","width=550","height=400","left="+Math.max(0,(window.innerWidth-550)/2||0),"top="+Math.max(0,(window.innerHeight-400)/2||0)].join(",");window.open(this.href,"targetWindow",t),pswindow.hide()}),o.filter(".ps-js-copy-link").on("click",function(t){t.preventDefault(),t.stopPropagation();t=decodeURIComponent(this.getAttribute("href"));peepso.util.copyToClipboard(t),this.setAttribute("data-tooltip",this.getAttribute("data-tooltip-success"))}),pswindow.show(e,i),o.not(".internal").each(function(){var t;"none"===window.getComputedStyle(this).display&&(t=btoa(this.getAttribute("href")),this.setAttribute("onclick","window.open(atob('"+t+"'))"),this.setAttribute("href","javascript:"),this.removeAttribute("target"))}),!1}},{}],33:[function(t,e,i){"use strict";jQuery(t=>{var t=t("#peepso-wrap");t.length&&(t=t.closest(".et_pb_row")).length&&t.find(".et_pb_column").css({zIndex:"auto"})})},{}],34:[function(t,e,i){"use strict";function l(){return Math.floor((new Date).getTime()/1e3)}function o(){this.ts=l(),this.diff=h.peepsotimedata.ts-this.ts}var s,n,h,a;s=window,n=jQuery,h=s,a=n,o.prototype.human_time_diff=function(t,e){var i,o,s,n=86400,a=7*n,r=365*n,d=h.peepsotimedata||{};return t=+t,e=e||l(),e+=this.diff,(i=Math.abs(e-t))<60?s=d.now:i<3600?s=d["min_"+(2<(o=(o=Math.floor(i/60))<=1?1:o)?3:o)].replace("%s",o):i<n&&3600<=i?s=d["hour_"+(2<(o=(o=Math.floor(i/3600))<=1?1:o)?3:o)].replace("%s",o):i<a&&n<=i?s=d["day_"+(2<(o=(o=Math.floor(i/n))<=1?1:o)?3:o)].replace("%s",o):i<30*n&&a<=i?s=d["week_"+(2<(o=(o=Math.floor(i/a))<=1?1:o)?3:o)].replace("%s",o):i<r&&30*n<=i?s=d["month_"+(2<(a=(a=Math.floor(i/(30*n)))<=1?1:a)?3:a)].replace("%s",a):r<=i&&(s=d["year_"+(2<(o=(o=Math.floor(i/r))<=1?1:o)?3:o)].replace("%s",o)),peepso.observer.applyFilters("human_time_diff",s,i,t,e)},a(function(){setInterval(function(){var i=l();a(".ps-js-autotime").each(function(){var t=a(this),e=t.data("timestamp");e&&t.html(ps_time.human_time_diff(e,i))})},4e4)}),n=o,s.ps_time=new n},{}],35:[function(t,e,i){"use strict";t("./widget-profile"),t("./widget-latest-members"),t("./widget-online-members"),t("./widget-userbar")},{"./widget-latest-members":36,"./widget-online-members":37,"./widget-profile":38,"./widget-userbar":39}],36:[function(t,e,i){!function(e){!function(){"use strict";var t,r=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t},d="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null;(0,r.default)(function(){function t(){var t=(0,r.default)(".ps-js-widget-latest-members");t.length&&t.each((t,a)=>{{let e=(0,r.default)(a),i=e.find(".ps-js-widget-content"),o=+e.data("hideempty"),t=+e.data("limit"),s=+e.data("totalmember")?1:0,n={limit:t,totalmember:s};d.ajax.get("widgetajax.latest_members",n).done(t=>{t.success&&(o&&+t.data.empty?(i.empty(),e.parent('[class*="widget_"]').hide()):(i.html(t.data.html),e.parent('[class*="widget_"]').show()))})}})}"object"==typeof wp&&wp.domReady?wp.domReady(()=>setTimeout(t,1e3)):t()})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,i){!function(e){!function(){"use strict";var t,d=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t},l="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null;(0,d.default)(function(){function t(){var t=(0,d.default)(".ps-js-widget-online-members");t.length&&t.each((t,r)=>{{let e=(0,d.default)(r),i=e.find(".ps-js-widget-content"),o=+e.data("hideempty"),t=+e.data("limit"),s=+e.data("totalmember")?1:0,n=+e.data("totalonline")?1:0,a={limit:t,totalmember:s,totalonline:n};l.ajax.get("widgetajax.online_members",a).done(t=>{t.success&&(o&&+t.data.empty?(i.empty(),e.parent('[class*="widget_"]').hide()):(i.html(t.data.html),e.parent('[class*="widget_"]').show()))})}})}"object"==typeof wp&&wp.domReady?wp.domReady(()=>setTimeout(t,1e3)):t()})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],38:[function(t,e,i){!function(e){!function(){"use strict";var t,a=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t},r="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null,d="undefined"!=typeof window?window.peepsodata:void 0!==e?e.peepsodata:null;(0,a.default)(function(){var t=(0,a.default)(".ps-js-widget-me");t.length&&t.each((t,n)=>{{let e=(0,a.default)(n),i=(e.find(".ps-js-widget-me-notifications").length&&r.observer.doAction("notification_start"),e.find(".ps-js-widget-me-cover")),o=(i.length&&r.hooks.addAction("profile_cover_updated","widget_me",function(t,e){+t==+d.currentuserid&&i.css("background-image","url("+e+")")}),e.find(".ps-js-widget-me-avatar")),s=(o.length&&r.hooks.addAction("profile_avatar_updated","widget_me",function(t,e){+t==+d.currentuserid&&o.attr("src",e)}),e.find(".ps-js-widget-me-completeness"));if(s.length){let i=s.find(".ps-js-status"),o=s.find(".ps-js-progressbar");r.hooks.addAction("profile_completeness_updated","widget_me",function(t,e={}){+t==+d.currentuserid&&void 0!==e.profile_completeness&&(100<=+e.profile_completeness?s.hide():(s.show(),i.html(e.profile_completeness_message),o.children("span").css({width:+e.profile_completeness+"%"})))})}e.find(".ps-js-widget-community-link").filter((t,e)=>e.href.match(/#(following|saved)/)).on("click",function(){window.location.href.replace(/#.*$/,"")===this.href.replace(/#.*$/,"")&&setTimeout(function(){window.location.reload()},1)}),setTimeout(function(){var t=window.innerWidth/2;e.width()<t&&e.offset().left>t&&e.find(".ps-notif__box").css({left:"unset",right:1})},1)}})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],39:[function(t,e,i){!function(e){!function(){"use strict";var t,a=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t},r="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null;(0,a.default)(function(){var t=(0,a.default)(".ps-js-widget-userbar");t.length&&t.each((t,e)=>{{let t=(0,a.default)(e);var i,o,s,n;(e=t.find(".ps-js-widget-userbar-notifications")).length&&e.html().trim()&&r.observer.doAction("notification_start"),t.find(".ps-js-widget-userbar-toggle").on("click",function(t){t.preventDefault(),t.stopPropagation(),(0,a.default)(this).closest(".ps-js-widget-userbar").toggleClass("psw-userbar--open")}),"function"==typeof MutationObserver&&(e=t.find(".ps-js-widget-userbar-notifications"),i=e.find(".ps-js-counter"),o=t.find(".ps-js-notif-counter"),i.length)&&((n=function(){clearTimeout(s),s=setTimeout(function(){var t=0;i.each(function(){t+=+this.innerText||0}),o.html(t||"")},1e3)})(),new MutationObserver(function(t){for(var e of t)"childList"===e.type&&e.target.className.match(/ps-js-counter/)&&n()}).observe(e[0],{childList:!0,subtree:!0,attributes:!1,characterData:!0}))}})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],40:[function(t,e,i){var o,s;o="undefined"!=typeof window?window:this,s=function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;return t&&e&&((i=(i=this._events=this._events||{})[t]=i[t]||[]).includes(e)||i.push(e)),this},e.once=function(t,e){var i;return t&&e&&(this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0),this},e.off=function(t,e){t=this._events&&this._events[t];return t&&t.length&&-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];var o,s=this._onceEvents&&this._onceEvents[t];for(o of i)s&&s[o]&&(this.off(t,o),delete s[o]),o.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t},"object"==typeof e&&e.exports?e.exports=s():o.EvEmitter=s()},{}],41:[function(t,e,i){var o,s;o="undefined"!=typeof window?window:this,s=function(e,t){let n=e.jQuery,a=e.console;function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);let o=t;var s;(o="string"==typeof t?document.querySelectorAll(t):o)?(this.elements=(s=o,Array.isArray(s)?s:"object"==typeof s&&"number"==typeof s.length?[...s]:[s]),this.options={},"function"==typeof e?i=e:Object.assign(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):a.error("Bad element for imagesLoaded "+(o||t))}(r.prototype=Object.create(t.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const s=[1,9,11],d=(r.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e,i,o=t["nodeType"];if(o&&s.includes(o)){for(e of t.querySelectorAll("img"))this.addImage(e);if("string"==typeof this.options.background)for(i of t.querySelectorAll(this.options.background))this.addElementBackgroundImages(i)}},/url\((['"])?(.*?)\1\)/gi);function i(t){this.img=t}function o(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(e){var i=getComputedStyle(e);if(i){let t=d.exec(i.backgroundImage);for(;null!==t;){var o=t&&t[2];o&&this.addBackground(o,e),t=d.exec(i.backgroundImage)}}},r.prototype.addImage=function(t){t=new i(t);this.images.push(t)},r.prototype.addBackground=function(t,e){t=new o(t,e);this.images.push(t)},r.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let e=(t,e,i)=>{setTimeout(()=>{this.progress(t,e,i)})};this.images.forEach(function(t){t.once("progress",e),t.check()})}else this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t;t=this.img.parentNode,t="PICTURE"===t.nodeName?t:this.img;this.emitEvent("progress",[this,t,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(n(this))})})(),r},"object"==typeof e&&e.exports?e.exports=s(o,t("ev-emitter")):o.imagesLoaded=s(o,o.EvEmitter)},{"ev-emitter":40}],42:[function(t,i,e){!function(o){!function(){var t,e;t=this,e=function(){var e,H="object"==typeof self&&self.self===self&&self||"object"==typeof o&&o.global===o&&o||this,U=H.document;function i(a,h){"use strict";var s,t,p,c,u,f,r,m,g,v,e,i,d,o,n,l,b,y={},w={},_=(h=h||{}).auto||0,$=!1,x={addEventListener:!!H.addEventListener,touch:"ontouchstart"in H||H.DocumentTouch&&U instanceof DocumentTouch,transitions:function(t){var e,i=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(e in i)if(void 0!==t.style[i[e]])return!0;return!1}(U.createElement("swipe"))};if(a)return p=a.children[0],m=parseInt(h.startSlide,10)||0,g=h.speed||300,h.continuous=void 0===h.continuous||h.continuous,e="direction",a.currentStyle?i=a.currentStyle[e]:H.getComputedStyle&&(i=H.getComputedStyle(a,null).getPropertyValue(e)),v="rtl"===i?"right":"left",h.autoRestart=void 0!==h.autoRestart&&h.autoRestart,o=C,n=n||100,l=null,k.cancel=j,d=k,b={handleEvent:function(t){if(!$){switch(t.type){case"mousedown":case"touchstart":this.start(t);break;case"mousemove":case"touchmove":this.move(t);break;case"mouseup":case"mouseleave":case"touchend":this.end(t);break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":this.transitionEnd(t);break;case"resize":d()}h.stopPropagation&&t.stopPropagation()}},start:function(t){var e;F(t)?(e=t).preventDefault():e=t.touches[0],y={x:e.pageX,y:e.pageY,time:+new Date},s=void 0,w={},F(t)?(p.addEventListener("mousemove",this,!1),p.addEventListener("mouseup",this,!1),p.addEventListener("mouseleave",this,!1)):(p.addEventListener("touchmove",this,!1),p.addEventListener("touchend",this,!1))},move:function(t){var e;if(F(t))e=t;else{if(1<t.touches.length||t.scale&&1!==t.scale)return;h.disableScroll&&t.preventDefault(),e=t.touches[0]}w={x:e.pageX-y.x,y:e.pageY-y.y},(s=void 0===s?!!(s||Math.abs(w.x)<Math.abs(w.y)):s)||(t.preventDefault(),Q(),h.continuous?(P(M(m-1),w.x+u[M(m-1)],0),P(m,w.x+u[m],0),P(M(m+1),w.x+u[M(m+1)],0)):(w.x=w.x/(!m&&0<w.x||m===c.length-1&&w.x<0?Math.abs(w.x)/f+1:1),P(m-1,w.x+u[m-1],0),P(m,w.x+u[m],0),P(m+1,w.x+u[m+1],0)))},end:function(t){var e=+new Date-y.time,e=Number(e)<250&&20<Math.abs(w.x)||Math.abs(w.x)>f/2,i=!m&&0<w.x||m===c.length-1&&w.x<0,o=(h.continuous&&(i=!1),Math.abs(w.x)/w.x);s||(e&&!i?(m=o<0?(h.continuous?(E(M(m-1),-f,0),E(M(m+2),f,0)):E(m-1,-f,0),E(m,u[m]-f,g),E(M(m+1),u[M(m+1)]-f,g),M(m+1)):(h.continuous?(E(M(m+1),f,0),E(M(m-2),-f,0)):E(m+1,f,0),E(m,u[m]+f,g),E(M(m-1),u[M(m-1)]+f,g),M(m-1)),I(T(),c[m],o)):h.continuous?(E(M(m-1),-f,g),E(m,0,g),E(M(m+1),f,g)):(E(m-1,-f,g),E(m,0,g),E(m+1,f,g))),F(t)?(p.removeEventListener("mousemove",b,!1),p.removeEventListener("mouseup",b,!1),p.removeEventListener("mouseleave",b,!1)):(p.removeEventListener("touchmove",b,!1),p.removeEventListener("touchend",b,!1))},transitionEnd:function(t){parseInt(t.target.getAttribute("data-index"),10)===m&&((_||h.autoRestart)&&S(),R(T(),c[m]))}},C(),z(),{setup:C,slide:function(t,e){Q(),A(t,e)},prev:function(){Q(),$||(h.continuous||m)&&A(m-1)},next:function(){Q(),O()},restart:S,stop:Q,getPos:T,disable:function(){Q(),$=!0},enable:function(){$=!1,S()},getNumSlides:function(){return r},kill:function(){Q(),a.style.visibility="",p.style.width="",p.style[v]="";var t=c.length;for(;t--;){x.transitions&&P(t,0,0);var e=c[t];e.getAttribute("data-cloned")&&e.parentElement.removeChild(e),e.style.width="",e.style[v]="",e.style.webkitTransitionDuration=e.style.MozTransitionDuration=e.style.msTransitionDuration=e.style.OTransitionDuration=e.style.transitionDuration="",e.style.webkitTransform=e.style.msTransform=e.style.MozTransform=e.style.OTransform=""}D(),d.cancel()}};function j(){l&&clearTimeout(l)}function k(){var t=this,e=arguments;j(),l=setTimeout(function(){l=null,o.apply(t,e)},n)}function D(){x.addEventListener?(p.removeEventListener("touchstart",b,!1),p.removeEventListener("mousedown",b,!1),p.removeEventListener("webkitTransitionEnd",b,!1),p.removeEventListener("msTransitionEnd",b,!1),p.removeEventListener("oTransitionEnd",b,!1),p.removeEventListener("otransitionend",b,!1),p.removeEventListener("transitionend",b,!1),H.removeEventListener("resize",b,!1)):H.onresize=null}function L(t){t=t.cloneNode(!0);p.appendChild(t),t.setAttribute("data-cloned",!0),t.removeAttribute("id")}function C(t){if(null!=t)for(var e in t)h[e]=t[e];c=p.children,r=c.length;for(var i=0;i<c.length;i++)c[i].getAttribute("data-cloned")&&r--;if(c.length<2&&(h.continuous=!1),x.transitions&&h.continuous&&c.length<3&&(L(c[0]),L(c[1]),c=p.children),"right"===v)for(var o=0;o<c.length;o++)c[o].style.float="right";u=new Array(c.length),f=a.getBoundingClientRect().width||a.offsetWidth,p.style.width=c.length*f*2+"px";for(var s=c.length;s--;){var n=c[s];n.style.width=f+"px",n.setAttribute("data-index",s),x.transitions&&(n.style[v]=s*-f+"px",E(s,s<m?-f:m<s?f:0,0))}h.continuous&&x.transitions&&(E(M(m-1),-f,0),E(M(m+1),f,0)),x.transitions||(p.style[v]=m*-f+"px"),a.style.visibility="visible",D(),x.addEventListener?(x.touch&&p.addEventListener("touchstart",b,!1),h.draggable&&p.addEventListener("mousedown",b,!1),x.transitions&&(p.addEventListener("webkitTransitionEnd",b,!1),p.addEventListener("msTransitionEnd",b,!1),p.addEventListener("oTransitionEnd",b,!1),p.addEventListener("otransitionend",b,!1),p.addEventListener("transitionend",b,!1)),H.addEventListener("resize",b,!1)):H.onresize=d}function O(){$||(h.continuous||m<c.length-1)&&A(m+1)}function I(t,e,i){h.callback&&h.callback(t,e,i)}function R(t,e){h.transitionEnd&&h.transitionEnd(t,e)}function M(t){return(c.length+t%c.length)%c.length}function T(){var t=m;return r<=t&&(t-=r),t}function A(t,e){if(t="number"!=typeof t?parseInt(t,10):t,m!==t){if(x.transitions){for(var i,o=Math.abs(m-t)/(m-t),s=(h.continuous&&(i=o,(o=-u[M(t)]/f)!==i)&&(t=-o*c.length+t),Math.abs(m-t)-1);s--;)E(M((m<t?t:m)-s-1),f*o,0);t=M(t),E(m,f*o,e||g),E(t,0,e||g),h.continuous&&E(M(t-o),-f*o,0)}else t=M(t),n=m*-f,a=t*-f,(r=e||g)?(d=+new Date,l=setInterval(function(){var t=+new Date-d;r<t?(p.style[v]=a+"px",(_||h.autoRestart)&&S(),R(T(),c[m]),clearInterval(l)):p.style[v]=(a-n)*(Math.floor(t/r*100)/100)+n+"px"},4)):p.style[v]=a+"px";var n,a,r,d,l;m=t,setTimeout(function(){I(T(),c[m],o)},0)}}function E(t,e,i){P(t,e,i),u[t]=e}function P(t,e,i){t=c[t],t=t&&t.style;t&&(t.webkitTransitionDuration=t.MozTransitionDuration=t.msTransitionDuration=t.OTransitionDuration=t.transitionDuration=i+"ms",t.webkitTransform="translate("+e+"px,0)translateZ(0)",t.msTransform=t.MozTransform=t.OTransform="translateX("+e+"px)")}function z(){(_=h.auto||0)&&(t=setTimeout(O,_))}function Q(){_=0,clearTimeout(t)}function S(){Q(),z()}function F(t){return/^mouse/.test(t.type)}}return(H.jQuery||H.Zepto)&&((e=H.jQuery||H.Zepto).fn.Swipe=function(t){return this.each(function(){e(this).data("Swipe",new i(e(this)[0],t))})}),i},"function"==typeof define&&define.amd?define([],function(){return t.Swipe=e(),t.Swipe}):"object"==typeof i&&i.exports?i.exports=e():t.Swipe=e()}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[17]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/bundle.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/member.min.js*/
try {
	/* [inline: cdata] */var peepsomemberdata={"ban_popup_title":"Ban this user","ban_popup_content":"<form id=\"form_ban_user\" class=\"ps-form--ban\">\n\t<div class=\"ps-form__row\">\n\t\t<div class=\"ps-form__label\">\n\t\t\t<div class=\"ps-checkbox\">\n\t\t\t\t<div class=\"ps-checkbox ps-checkbox--radio\">\n\t\t\t\t\t<input class=\"ps-checkbox__input\" type=\"radio\" name=\"ban_type\" id=\"ban-period\" value=\"ban_period\" checked=\"checked\">\n\t\t\t\t\t<label class=\"ps-checkbox__label\" for=\"ban-period\">Ban until<\/label>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"ps-form__field\">\n\t\t\t<input type=\"text\" class=\"ps-input ps-input--sm\" width=\"auto\" name=\"ban_period_date\"\n\t\t\t\tdata-date-range-min=\"0\" data-date-range-max=\"100\" data-value=\"2024-10-30\"\n\t\t\t\tvalue=\"30\/10\/2024\" readonly=\"readonly\">\n\t\t\t<div id=\"ban-period-empty\" class=\"ps-text--danger ps-form__helper\" style=\"display:none\">Please fill in the date<\/div>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"ps-form__row\">\n\t\t<div class=\"ps-form__label ps-full\">\n\t\t\t<div class=\"ps-checkbox ps-checkbox--radio\">\n\t\t\t\t<input class=\"ps-checkbox__input\" type=\"radio\" name=\"ban_type\" id=\"ban-forever\" value=\"ban_forever\">\n\t\t\t\t<label class=\"ps-checkbox__label\" for=\"ban-forever\">Ban indefinitely<\/label>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/form>\n","ban_popup_save":"Ban this user","ban_popup_cancel":"Cancel"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/member.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}try {
	!function(e,s){var a,r,t=(a=e,r=s,n.prototype.block_user=function(n,e){var s,o=this.block_user,i="block_"+n;o[i]||(e&&(e=r(e)).find("img").css("display","inline"),s={uid:peepsodata.currentuserid,user_id:n},o[i]=!0,peepso.postJson("activity.blockuser",s,r.proxy(function(e){var s=r(".ps-js-focus--"+n).find(".ps-js-focus-actions"),t=e.data;o[i]=!1,e.success?(t&&t.actions&&s.html(t.actions),peepso.observer.applyFilters("ps_member_user_blocked",n,t),t&&(t.header||t.message)&&psmessage.show(t.header,t.message,psmessage.fade_time),t.redirect&&setTimeout(function(){a.location=t.redirect},Math.min(1e3,psmessage.fade_time))):e.errors&&alert(e.errors[0])},this)))},n.prototype.unblock_user=function(n,o){var e,i=this.unblock_user,a="block_"+n;i[a]||(o&&(o=r(o)).find("img").css("display","inline"),e={uid:peepsodata.currentuserid,user_id:n},i[a]=!0,peepso.postJson("activity.unblockuser",e,r.proxy(function(e){var s=r(".ps-js-focus--"+n).find(".ps-js-focus-actions"),t=e.data;i[a]=!1,e.success&&(t&&t.actions&&s.html(t.actions),peepso.observer.applyFilters("ps_member_user_unblocked",n,t),t&&(t.header||t.message)&&psmessage.show(t.header,t.message,psmessage.fade_time),r(o).closest(".ps-js-member").fadeOut("fast",function(){r(this).remove()}))},this)))},n.prototype.ban_user=function(e,s){var t,n,o,i;this.banning_user||(s&&(s=r(s)).find("img").css("display","inline"),t=peepsomemberdata.ban_popup_title,n=peepsomemberdata.ban_popup_content,o=['<button type="button" class="ps-btn ps-btn-small ps-button-cancel" onclick="return pswindow.do_no_confirm();">',peepsomemberdata.ban_popup_cancel,"</button>",'<button type="button" class="ps-btn ps-btn-small ps-button-action" onclick="return ps_member.do_ban_user('+e+');">',peepsomemberdata.ban_popup_save,"</button>"].join(" "),(i=pswindow.show(t,n).set_actions(o).$container).find("#ban-forever").on("focus",function(){r("#ban-period-empty").hide()}),ps_datepicker.init(i.find("[name=ban_period_date]")))},n.prototype.do_ban_user=function(s){var e,t=r("#form_ban_user"),n=t.find("input[name=ban_type]:checked").val();if("ban_period"===n&&!(e=t.find("input[name=ban_period_date]").data("value")))return t.find("#ban-period-empty").show(),!1;var o={user_id:s,ban_status:1,ban_type:n,ban_period_date:e};this.banning_user=!0,peepso.postJson("activity.set_ban_status",o,r.proxy(function(e){this.banning_user=!1,e.success&&(peepso.observer.applyFilters("ps_member_user_banned",s,e.data),psmessage.show(e.data.header,e.data.message,psmessage.fade_time),setTimeout(function(){a.location.reload()},Math.min(1e3,psmessage.fade_time)))},this))},n.prototype.unban_user=function(s,e){this.unbanning_user||(e&&(e=r(e)).find("img").css("display","inline"),this.unbanning_user=!0,peepso.postJson("activity.set_ban_status",{user_id:s,ban_status:0},r.proxy(function(e){this.unbanning_user=!1,e.success&&(peepso.observer.applyFilters("ps_member_user_unbanned",s,e.data),psmessage.show(e.data.header,e.data.message,psmessage.fade_time),setTimeout(function(){a.location.reload()},Math.min(1e3,psmessage.fade_time)))},this)))},n.prototype.report_user=function(e){var s=r("#activity-report-title").html(),t=r("#activity-report-content").html(),n=r("#activity-report-actions").html();function o(){return"profile.report"}function i(e){var s=r.extend({},e);return s.user_id=s.act_id,s.act_id=void 0,s.uid=void 0,s}t=(t=t.replace("{post-content}","Profile")).replace("{post-id}",e+""),peepso.observer.addFilter("activity_report_action",o,10),peepso.observer.addFilter("activity_report_params",i,10,1),pswindow.show(s,t).set_actions(n).refresh(),r("#ps-window").one("pswindow.hidden",function(){peepso.observer.removeFilter("activity_report_action",o,10),peepso.observer.removeFilter("activity_report_params",i,10)}),r(a).one("report.submitted",function(e,s){pswindow.show("Profile Reported",s.notices[0])})},n);function n(){}ps_member=new t}(window,jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/member.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/activitystream.min.js*/
try {
	!function(t){e="PsActivityStream",r=t,n=peepso.ajax,t=peepso.observer,peepso.modules,i="scroll.ps-activity-stream",a=+peepsodata.is_admin,l=+peepsodata.currentuserid,d=+peepsodata.userid,p=r("#peepso_post_id").val()||void 0,c=r("#peepso_context").val()||void 0,h=+peepsodata.activity_reverse_order,function(t,e){function i(){t.clientWidth<700?t.classList.add("ps-activity--narrow"):t.classList.remove("ps-activity--narrow")}t&&(i(),e.addAction("browser.resize",i))}(document.querySelector(".ps-activity"),t);var e,r,n,i,a,l,d,p,c,h,s=peepso.createClass(e,{__constructor:function(t,e){this.$el=r(t),this.$recent=r("#ps-activitystream-recent"),this.$loading=r("#ps-activitystream-loading"),this.$noPosts=r("#ps-no-posts"),this.$noPostsMatch=r("#ps-no-posts-match"),this.$noMorePosts=r("#ps-no-more-posts"),this.$filters=r(".ps-js-activitystream-filter"),this.$filtersToggle=r(".ps-js-activitystream-filters-toggle"),this.$filtersWrapper=r(".ps-js-activitystream-filters-wrapper"),this.loading=!1,this.loadEnd=!1,this.loadPage=1,this.loadIds=[],this.loadLimit=+peepsodata.activity_limit_below_fold;var t=+peepsodata.loadmore_enable,t=peepso.isMobile()?1===t||2===t:1===t||3===t,i=(this.loadButtonEnabled=t,this.loadButtonRepeat=this.loadButtonEnabled?+peepsodata.loadmore_repeat:0,this.loadButtonTemplate=e.template_load_more,this.isPermalink=+e.is_permalink,this.hideFromGuest=+e.hide_from_guest,this.loadLimit=0<this.loadLimit?this.loadLimit:3,r.proxy(function(t){var e,i,s;t&&(t="core_"+t,e=r("[id=peepso_stream_id]"),i=(s=this.$filters.filter("[data-id=peepso_stream_id]")).find('[data-option-value="'+t+'"]'),s=s.find(".ps-js-dropdown-toggle"),e.val()!==t)&&i.length&&(e.val(t),s.find("span").text(i.find("span").text()),s.find(".ps-js-icon").attr("class",i.find(".ps-js-icon").attr("class")))},this)(window.location.hash.slice(1)),this.$filterNotice=r("#ps-stream__filters-warning"),this.$filterNotice.length&&this.$filterNotice.data("html",this.$filterNotice.html().trim()),this.filterNoticeMap={},this.$filters.filter("[data-id=peepso_stream_id]").find("[data-option-value]").each(r.proxy(function(t,e){var e=r(e),i=e.data("option-value"),e=e.data("option-label-warning");this.filterNoticeMap[i]=e},this)),this.streamData={},r("[id^=peepso_stream_]").each(r.proxy(function(t,e){var i=e.id.replace(/^peepso_/,""),e=e.value;this.streamData[i]=e,"stream_id"===i&&(a||"core_scheduled"!==e?this.allowHideMyPosts(!0):this.allowHideMyPosts(!1))},this)),r(document).on("peepso_login_shown",function(){this.$loading.hide()}.bind(this)),this.$filters.on("click",".ps-js-dropdown-toggle",r.proxy(this.onFilterToggle,this)),this.$filters.on("click","[data-option-value]",r.proxy(this.onFilterSelect,this)),this.$filters.on("click",".ps-js-cancel",r.proxy(this.onFilterCancel,this)),this.$filters.on("click",".ps-js-apply",r.proxy(this.onFilterApply,this)),this.$filters.on("click","[type=text]",r.proxy(this.onFilterFocus,this)),this.$filters.on("keyup","[type=text]",r.proxy(this.onFilterKeyup,this)),this.$filters.on("click",".ps-js-search",r.proxy(this.onFilterSearch,this)),this.$filtersToggle.on("click",r.proxy(this.onFiltersToggle,this)),this.loadEverything="#everything"===window.location.hash,!this.loadEverything||confirm("Are you sure want to load every post?")||(this.loadEverything=!1),peepso.observer.addFilter("show_more_posts",t=>{return(window.location.search||"").match("peepso_remote_no_cache")&&(t.peepso_remote_no_cache=1),t}),r("#ps-activitystream-search"));this.search(i.eq(0).val()),peepso.observer.addAction("peepso_stream_reset",r.proxy(function(){this.search(i.eq(0).val())},this)),peepso.observer.addFilter("post_saved_notice",r.proxy(function(t){return t="core_saved"===this.streamData.stream_id?!1:t},this),10,1)},search:function(t){var e,i;t=(t||"").trim(),this.searchKeyword=t,this.searchMode="exact",this.reset(),(e=r(".ps-js-activitystream-filter").filter("[data-id=peepso_search]").find(".ps-js-dropdown-toggle").find("span")).length&&(t?(i=e.data("keyword"),i+=t+'<i class="ps-posts__filter-remove gcis gci-times-circle"></i>',e.one("click","i",r.proxy(function(t){r("#ps-activitystream-search").val(""),this.search("")},this))):i=e.data("empty"),e.html(i))},autoload:function(e){var t;if(e===this._token&&(!this.loading&&!peepso.hooks.applyFilters("activitystream_disable_scroll",!1)))return!l&&this.hideFromGuest?(this.$loading.hide(),!1):void(this.shouldLoad()?(this.loading=!0,this.load(e).done(r.proxy(function(){this.loading=!1,this.isPermalink||this.loadEnd||this.autoload(e)},this))):this.loadButtonEnabled&&!this.$loadButton?(this.$loadButton=r(this.loadButtonTemplate).insertAfter(this.$el),this.$loadButton.one("click",r.proxy(function(t){r(t.currentTarget).remove(),this.autoload(e)},this))):this._onScrollEnabled||(t=peepso.observer.applyFilters("activitystream_scrollable_container",window),this._onScrollEnabled=!0,r(t).on(i,e,r.proxy(this.onScroll,this))))},shouldLoad:function(){var t,e=this.$el.children(".ps-js-activity");return!this.loadEnd&&(!e.length||!!this.loadEverything||(this.loadButtonEnabled&&this.loadButtonRepeat?e.length%this.loadButtonRepeat!=0||!!this.$loadButton&&(delete this.$loadButton,!0):!!(e=e.slice(0-this.loadLimit).eq(0)).length&&(e=this.loadButtonEnabled&&!this.$loadButton?e.eq(0).offset():e[0].getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight,e.top<t)))},load:function(s){var o=this,a=_.extend({uid:l,user_id:d,post_id:p,context:c,page:this.loadPage,search:this.searchKeyword||void 0,search_mode:this.searchKeyword&&this.searchMode||void 0,pinned:1===this.loadPage?1:void 0},this.streamData||{}),a=peepso.observer.applyFilters("show_more_posts",a);return r.Deferred(function(i){o.$loading.show(),n.post("activity.show_posts_per_page",a).done(function(t){var e;s===o._token&&(o.$loading.hide(),0<t.data.found_posts?((e=+t.data.act_id)?-1===o.loadIds.indexOf(e)&&(o.loadIds.push(e),o.render(t.data.posts)):o.render(t.data.posts),o.loadPage++):o.loadEnd=!0,o.loadEnd&&(1<a.page?((e=peepso.observer.applyFilters("activitystream_pending_html",""))&&o.render(e),o.$noMorePosts):o.searchKeyword?o.$noPostsMatch:o.$noPosts).show(),i.resolve())})})},reset:function(){this.loading=!1,this.loadEnd=!1,this.loadPage=1,this.loadIds=[];var t=peepso.observer.applyFilters("activitystream_scrollable_container",window),t=(this._onScrollEnabled=!1,r(t).off(i),this.$loadButton&&(this.$loadButton.remove(),this.$loadButton=void 0),this.$el.empty().hide(),this.$recent.empty(),this.$noMorePosts.hide(),this.$noPosts.hide(),this.$noPostsMatch.hide(),this.filterNoticeMap[this.streamData.stream_id]);t?(this.$filterNotice.html(this.$filterNotice.data("html").replace("%s",t)),this.$filterNotice.show()):this.$filterNotice.hide(),this._token=(new Date).getTime(),this.autoload(this._token),this.updateFilterIcons()},render:function(t){t=(t=t.replace(/\/embed\/(#\?secret=[a-zA-Z0-9]+)*"/g,'/?embed=true$1"')).replace(/\/\?embed=true([#"])/g,"/?embed=true&peepso=1$1");var e=r(t),s=this.searchKeyword,o=this.searchMode;(e=peepso.observer.applyFilters("peepso_activity",e)).find(".ps-js-activity-content, .ps-js-activity-quote, .ps-comment-item").each(function(){var t=r(this),e=t.html(),e=peepso.observer.applyFilters("peepso_activity_content",e);t.html(e)}),s&&e.find(".ps-js-activity-content").each(function(){var t=r(this),e=t.html(),i=[s];"any"===o&&(i=_.filter(s.split(" "),function(t){return t})),i=_.map(i,function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}),i=RegExp("("+i.join("|")+")(?![^<>]+>)","ig"),e=e.replace(i,'<span class="ps-text--highlight">$1</span>'),t.html(e)}),this.$el.is(":hidden")&&this.$el.show();try{if(h){var a=this.$el.children(".ps-js-activity-latest");if(a.length){let i=r.makeArray(a).map(t=>+r(t).data("id"));(e=e.map((t,e)=>-1<i.indexOf(+r(e).data("id"))?null:e)).insertBefore(a.first())}else e.appendTo(this.$el)}else e.appendTo(this.$el);e.each(function(){peepso.hooks.doAction("post_added",this)})}catch(t){}e.hide().fadeIn(1e3,function(){r(document).trigger("ps_activitystream_loaded"),peepso.observer.doAction("post_loaded",this),t.match(/\sdata-instgrm-permalink/)&&setTimeout(function(){try{window.instgrm.Embeds.process()}catch(t){}},1e3)})},allowHideMyPosts:function(t){var e="stream_filter_show_my_posts",i=this.$filters.filter(`[data-id=peepso_${e}]`),s=i.find(".ps-js-dropdown-toggle");t?s.show():(s.hide(),(t=i.find("[data-option-value]")).find("[type=radio][value=show_mine]").prop("checked",!0),t.find("[type=radio][value=hide_mine]").prop("checked",!1),i=t.find("[type=radio]:checked").val(),r("#peepso_"+e).val(i),this.streamData[e]=i,e=t.filter("[data-option-value=show_mine]"),s.find("span").text(e.find("span").text()),s.find('[class*="ps-icon-"]').attr("class",e.find('[class*="ps-icon-"]').attr("class")))},updateFilterIcons:function(){var i=this.$filtersToggle.children("span").empty();this.$filtersWrapper.children("input[type=hidden]").each(function(){var t=r(this).next(`[data-id="${this.id}"]`),e=t.children(".ps-js-dropdown-toggle"),t=t.find(`[data-option-value="${this.value}"]`).find(".ps-js-icon");e.find(".ps-js-icon").replaceWith(t.clone()),i.append(t.clone())})},onScroll:_.throttle(function(t){t=t.data;this.autoload(t)},1),onFilterToggle:_.debounce(function(t){var t=r(t.currentTarget),e=t.closest(".ps-js-activitystream-filter"),i=e.find(".ps-js-dropdown-menu"),s=e.data("id").replace(/^peepso_/,""),s=this.streamData[s];e.is(":visible")&&(e=e.find("[type=radio]").filter('[value="'+s+'"]')).length&&(e[0].checked=!0),this.$filtersWrapper.find(".ps-js-dropdown-toggle").removeClass("ps-posts__filter-toggle--active"),i.is(":visible")&&t.addClass("ps-posts__filter-toggle--active")},1),onFilterSelect:function(t){var e=r(t.currentTarget).find("[type=radio]");t.preventDefault(),t.stopPropagation(),_.defer(function(){e[0].checked=!0})},onFilterCancel:function(t){t=r(t.currentTarget).closest(".ps-js-activitystream-filter").find(".ps-js-dropdown-toggle");t.removeClass("ps-posts__filter-toggle--active"),t.focus()},onFilterApply:function(t){var t=r(t.currentTarget).closest(".ps-js-activitystream-filter"),e=t.find(".ps-js-dropdown-toggle"),i=r("#"+t.data("id")),s=t.find("[type=radio]:checked").closest("[data-option-value]"),o=s.data("optionValue"),t=t.data("id").replace(/^peepso_/,"");i.val(o),this.streamData[t]=o,e.find("span").text(s.find("span").text()),e.find(".ps-js-icon").attr("class",s.find(".ps-js-icon").attr("class")),e.removeClass("ps-posts__filter-toggle--active"),e.focus(),"stream_id"===t&&(a||"core_scheduled"!==o?this.allowHideMyPosts(!0):this.allowHideMyPosts(!1)),this.reset()},onFilterFocus:function(t){t.stopPropagation()},onFilterKeyup:function(t){t.stopPropagation(),13===t.which&&r(t.currentTarget).closest(".ps-js-activitystream-filter").find(".ps-js-search").click()},onFilterSearch:function(t){var t=r(t.currentTarget).closest(".ps-js-activitystream-filter"),e=t.find(".ps-js-dropdown-toggle"),i=r("#"+t.data("id")),s=t.find("[type=radio]:checked").closest("[data-option-value]"),o=t.find("[type=text]"),s=s.data("optionValue"),t=(t.data("id").replace(/^peepso_/,""),o.val().trim().replace(/</g,"&lt;").replace(/>/g,"&gt;")),o=e.find("span").data(t?"keyword":"empty");i.val(s),this.searchKeyword=t,this.searchMode=s,o=t?(o=e.find("span").data("keyword"))+t+'<i class="ps-posts__filter-remove gcis gci-times-circle"></i>':e.find("span").data("empty"),e.find("span").html(o).off("click","i").one("click","i",r.proxy(function(t){var e=r(t.target).closest(".ps-js-dropdown-toggle"),i=e.closest(".ps-js-activitystream-filter"),s=i.find("[type=text]"),i=r("#"+i.data("id"));t.stopPropagation(),s.val(""),i.val(""),e.find("span").html(e.find("span").data("empty")),this.searchKeyword="",this.searchMode="",this.reset()},this)),e.focus(),this.reset()},onFiltersToggle:function(t){this.$filtersWrapper.is(":visible")?(this.$filtersWrapper.hide(),this.$filtersToggle.removeClass("ps-posts__filters-toggle--active")):(this.$filtersWrapper.show(),this.$filtersToggle.addClass("ps-posts__filters-toggle--active"))}});jQuery(function(t){var e,t=t("#ps-activitystream");t.length&&(e=peepsodata&&peepsodata.activity||{},new s(t[0],e))})}((window,jQuery));
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/activitystream.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/comment.min.js*/
try {
	/* [inline: cdata] */var peepsocommentdata={"label_reply":"Reply","label_view":"View Replies","icon_reply":"ps-icon-plus","icon_view":"ps-icon-eye"};var peepsocommentdata={"label_reply":"Reply","label_view":"View Replies","icon_reply":"ps-icon-plus","icon_view":"ps-icon-eye"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/comment.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}try {
	!function(e,t){t.comment=new(function(d,p){function e(){this.init()}if(p.npm.objectAssign(e.prototype,{init:function(){this.ajax={};d(d.proxy(function(){var e=window.location.hash||"",t=/[#&]comment(?:\.|=)(\d+)\.(\d+)(?:\.(\d+)(?:\.(\d+))?)?/,n=e.match(t);if(n&&n[2])this.whenLoaded(n[1]).done(d.proxy(function(){this.reveal(n[1],n[2],n[3],n[4])},this))},this));p.observer.addAction("post_loaded",function(e){var t=d(e);var n=t.find("textarea[name=comment]");n.ps_autosize();n.each(function(){var t=this;p.elements.droppable(t,{dropped:function(e){p.observer.doAction("commentbox_drop_files",t,e)}})});t.on("click",".ps-comment-time .activity-post-age",function(e){d(e.currentTarget).children("a").each(function(){var e=d(this);if(e.children(".ps-js-autotime").length){var t=e.attr("href");var n=location.href.replace(location.hash,"");if(0===t.indexOf(n)){window.location=t;window.location.reload()}}})})},10,1);p.observer.addFilter("peepso_activity",function(e){var t=e.find(".ps-js-comments"),n=+t.data("comments-open");if(!n)t.find(".ps-js-btn-reply").hide();return e});p.hooks.addAction("comment_added","comments",function(e){var t=d(e),n=t.closest(".ps-js-comments"),o=+n.data("comments-open");if(!o)n.find(".ps-js-btn-reply").hide()})},whenLoaded:function(i){return d.Deferred(function(e){var t=60,n=0,o;o=setInterval(function(){if(d(".ps-js-comment-container--"+i).length){clearInterval(o);e.resolve()}else if(n++>t){clearInterval(o);e.reject()}},1e3)})},add:function(){},edit:function(){},reply:function(e,t,n,o){var i,s,r,c,a,m="#comment-item-"+t;if(n)i=d(n).closest(m);else i=d(m);s=i.find(".actaction-reply");a=s.closest(".ps-comments").hasClass("ps-comments--nested");if(a){r=s.closest(".ps-comments").children(".ps-comment-reply");c=r.find("textarea")}else{r=s.closest(".ps-comment").next(".ps-comments--nested").children(".ps-comment-reply");c=r.find("textarea")}if(r.not(":visible"))r.show();c.focus();o=o||{};p.observer.applyFilters("comment.reply",c,d.extend({},o,{act_id:e,post_id:t}));c.off("keyup.peepso").on("keyup.peepso",function(e){e.stopPropagation();activity.update_beautifier(e.target)}).trigger("keyup.peepso")},show_previous:function(e,t){var r,c,a,n=".ps-js-comment-container--"+e;if(t)r=d(t).closest(n);else r=d(n);c=r.find(".ps-js-comment-more").eq(0);a=c.find(".ps-js-loading");function o(i){var s=r.children(".cstream-comment:first");a.show();p.postJson("activity.show_previous_comments",{act_id:e,uid:peepsodata.currentuserid,first:s.data("comment-id")},function(e){var t=jQuery("<div />").append(e.data.html);t=p.observer.applyFilters("peepso_activity",t);var n=p.observer.applyFilters("peepso_activity_content",t.html());n=n.replace(/\/embed\/(#\?secret=[a-zA-Z0-9]+)?"/g,'/?embed=true$1"');n=n.replace(/\/\?embed=true([#"])/g,"/?embed=true&peepso=1$1");var o=d(n);a.hide();if(s.length==0){s=r.children(".ps-comment-more");s.after(o)}else s.before(o);o.each(function(){if(1===this.nodeType&&d(this).hasClass("ps-js-comment-item"))p.hooks.doAction("comment_added",this)});if(e.data.comments_remain>0)c.find("a").html(e.data.comments_remain_caption);else c.remove();d(document).trigger("ps_comment_added");i()})}return d.Deferred(function(e){o(function(){e.resolve()})})},show_all:function(e){var s=d(".ps-js-comment-container--"+e),r=s.children(".ps-js-comment-more"),c=r.find(".ps-js-loading"),t=s.children(".cstream-comment:first"),n=t.data("comment-id");function a(o){c.show();p.postJson("activity.show_previous_comments",{act_id:e,uid:peepsodata.currentuserid,all:1,first:n},function(e){var t=jQuery("<div />").append(e.data.html);t=p.observer.applyFilters("peepso_activity",t);var n=p.observer.applyFilters("peepso_activity_content",t.html());n=n.replace(/\/embed\/(#\?secret=[a-zA-Z0-9]+)?"/g,'/?embed=true$1"');n=n.replace(/\/\?embed=true([#"])/g,"/?embed=true&peepso=1$1");var i=d(n);c.hide();s.each(function(e){var t=d(this),n=t.children(".cstream-comment:first"),o=i;if(e>0)o=i.clone();if(n.length==0){n=t.children(".ps-comment-more");n.after(o)}else n.before(o)});i.each(function(){if(1===this.nodeType&&d(this).hasClass("ps-js-comment-item"))p.hooks.doAction("comment_added",this)});if(e.data.comments_remain>0){r.find("a").html(e.data.comments_remain_caption);a(o)}else{r.remove();d(document).trigger("ps_comment_added");o()}})}return d.Deferred(function(e){a(function(){e.resolve()})})},reveal_comment:function(n,o){return d.Deferred(d.proxy(function(e){var t=d("#comment-item-"+o);if(t.length)e.resolve();else this.show_all(n).done(d.proxy(function(){e.resolve()},this))},this))},reveal:function(e,t,n,o){function i(e){var t=p.getLinkColor(),n=e.offset().top-(d(window).height()-e.outerHeight())/2;e.css({backgroundColor:t});e.css({transition:"background-color 3s ease"});d("html, body").delay(50).animate({scrollTop:n},500,function(){e.css({backgroundColor:""})})}this.reveal_comment(e,t).done(d.proxy(function(){var e;if(!o){e=d("#comment-item-"+t);i(e)}else this.reveal_comment(n,o).done(function(){e=d("#comment-item-"+o);i(e)})},this))}}),+peepsodata.show_powered_by)p.observer.addAction("show_branding",function(){d(document).off("focus.ps-branding blur.ps-branding").on("focus.ps-branding",".ps-comments__input[name=comment]",function(){let e=d(this).closest(".ps-comments__input-wrapper");let t=d(peepsodata.powered_by);if(!e.children(`.${t.attr("class")}`).length)t.appendTo(e);t.not("style").show()}).on("blur.ps-branding",".ps-comments__input[name=comment]",function(){let e=d(this).closest(".ps-comments__input-wrapper");let t=d(peepsodata.powered_by);t=e.children(`.${t.attr("class")}`);t.not("style").hide()})});return e}(e,t,t.modules))}(jQuery,peepso);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/comment.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/form.min.js*/
try {
	!function(d){d(document).on("click",".ps-privacy-dropdown ul li a",function(){var t=d(this).closest("a"),e=t.closest("ul"),a=e.siblings("input"),s=e.siblings(".ps-btn,.ps-js-dropdown-toggle"),i=s.find("i"),s=s.find(".ps-privacy-title");a.val(t.attr("data-option-value")),i.attr("class",t.find("i").attr("class")),s.html(t.find("span").html()),e.css("display","none")});var l=0;function t(t){t&&(t.each(function(){this.id&&this!==document.getElementById(this.id)&&(this.id=this.id+"_dupl"+ ++l);var t,e,a,s,i=d(this),n=i.data("value"),p=String(i.data("dateRangeMin")),r=String(i.data("dateRangeMax")),o=(new Date).getFullYear();if(!d.fn.psDatepicker)return i.removeAttr("readonly"),i.val(i.data("value")),i.on("blur",function(){var t=this.value.match(/^\d{4}-\d{1,2}-\d{1,2}/),t=t&&t[0]||"";this.value=t,i.data("value",t)}),!0;p=p.match(/^[-+]\d+$/)?+p:-p,r=+r,t=_.map([p,r],function(t){return-999===t?"c-100":999===t?"c+100":(t=Math.min(Math.max(t,-100),100))<0?""+t:"+"+t}).join(":"),(e=new Date).setFullYear(o+p),(a=new Date).setFullYear(o+r),s=new Date,0<p?s.setFullYear(o+p):r<0&&s.setFullYear(o+r),i.psDatepicker({yearRange:t,minDate:e,maxDate:a,defaultDate:s,onSelect:function(t,e){var a=d(this),s=a.datepicker("getDate"),i=[];s&&(i.push(s.getFullYear()),i.push(s.getMonth()+1),i.push(s.getDate()),i[1]=(i[1]<10?"0":"")+i[1],i[2]=(i[2]<10?"0":"")+i[2]),a.data("value",i.join("-")),a.trigger("input")}}),n&&(n=n.split("-"),p=new Date(+n[0],+n[1]-1,+n[2]),i.psDatepicker("setDate",p))}),t.addClass("datepickerInitialized"))}ps_datepicker={init:t},d(function(){t(d("#peepso-wrap .datepicker").not(".datepickerInitialized"))}),d(function(){function s(t,e){var t=d(t),a=t.siblings("input[type=password], input[type=text]"),s="gci-eye",i="gci-eye-slash";(e=void 0===e?"password"===a.attr("type"):e)?(a.attr("type","text"),t.removeClass(s).addClass(i)):(a.attr("type","password"),t.removeClass(i).addClass(s))}let i=0;function t(){d("input.ps-js-password-preview").each(function(t){var e=d(this).removeClass("ps-js-password-preview"),t=`ps-js-password-preview-btn-${i}-`+t,a=d(`<i class="ps-password-preview ${t} gcis" />`);a.insertAfter(e),s(a,!1),d(document).on("click","."+t,function(){s(this)})}),i++}t(),"object"==typeof peepso&&peepso.hooks&&peepso.hooks.addAction("init_password_preview","form",t)})}(jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/form.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/datepicker-noconflict.js*/
try {
	(function ($) {
	if ($.fn.datepicker) {
		window.peepso_datepicker_noconflict = $.fn.datepicker;
	}
})(jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/datepicker-noconflict.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-includes/js/jquery/ui/datepicker.min.js*/
try {
	/*!
 * jQuery UI Datepicker 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,t.left+i>d&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,t.top+s>c&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.13.3 - Error: " + err.message); 
}
try {
	/* [inline: after] */jQuery(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"dd\/mm\/yy","firstDay":1,"isRTL":!1})})
;/* [/inline: after] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.13.3 - Error: " + err.message); 
}/*!/wp-content/plugins/peepso-core/assets/js/datepicker.min.js*/
try {
	/* [inline: cdata] */var peepsodatepickerdata={"config":{"days":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"daysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"today":"Today","apply":"Apply","format":"dd\/mm\/yy","weekStart":1,"rtl":!1}}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/datepicker.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}try {
	!function(u){var t,e,i={};window.peepsodatepickerdata&&peepsodatepickerdata.config&&(t=peepsodatepickerdata.config,e=_.map(t.daysShort,function(t){return t.replace(/^([a-z]{2}).+$/i,"$1")}),_.extend(i,{monthNames:t.months,monthNamesShort:t.monthsShort,dayNames:t.days,dayNamesShort:t.daysShort,dayNamesMin:e,currentText:t.today,dateFormat:t.format,isRTL:t.rtl,showButtonPanel:!0,currentText:t.today,closeText:t.apply,changeMonth:!0,changeYear:!0,yearRange:"-100:+0",firstDay:0})),_.extend(i,{beforeShow:function(t,a){var e,i=0;window.getComputedStyle&&(e=a.dpDiv.prev(),i=getComputedStyle(e[0]).getPropertyValue("z-index"),i=parseInt(i));i=['<div class="peepso-datepicker"',i?' style="z-index: '+(i+1)+'"':""," />"].join("");a.dpDiv.wrap(i),setTimeout(function(){var t=a.dpDiv.closest(".peepso-datepicker"),e=a.dpDiv.css("position");"fixed"===e&&t.css("position",e),t.on("click",function(t){t.stopPropagation()})},1)},beforeShowDay:function(){var t=u(this).data("datepicker");return a(t),[!0,""]},onClose:function(t,e){c(e),_.delay(function(){e.dpDiv.unwrap(".peepso-datepicker")},500)}}),u.jQueryDatepicker=u.datepicker,u.fn.jQueryDatepicker=u.fn.datepicker,window.peepso_datepicker_noconflict&&(u.fn.datepicker=window.peepso_datepicker_noconflict,window.peepso_datepicker_noconflict=void 0),u.fn.psDatepicker=function(e){return this.each(function(){var a=u(this),t="click.psDatepicker";return a.next("button").off(t).on(t,function(t){var e=a.data("datepicker").dpDiv;t.preventDefault(),t.stopPropagation(),e.is(":visible")?a.jQueryDatepicker("hide"):a.jQueryDatepicker("show")}),e=_.extend({},i,e||{}),a.jQueryDatepicker(e)})};var a=_.debounce(function(t){var e,a,i,n,r,d,o,p=t.dpDiv;a=(e=t).dpDiv,i=a.find(".ui-datepicker-prev"),n=a.find(".ui-datepicker-next"),r=a.find(".ui-datepicker-month"),d=a.find(".ui-datepicker-year"),o=a.find(".ui-datepicker-close"),c(e),a.on("keydown.ps-datepicker",{inst:e},s),i.on("click.ps-datepicker",{inst:e},f),n.on("click.ps-datepicker",{inst:e},f),r.on("change.ps-datepicker",{inst:e},f).on("click.ps-datepicker",{inst:e},function(t){t.stopPropagation()}),d.on("change.ps-datepicker",{inst:e},f).on("click.ps-datepicker",{inst:e},function(t){t.stopPropagation()}),o.on("click.ps-datepicker",{inst:e},D),v(t),(t=p.find(".ui-state-highlight")[0])||(t=p.find(".ui-state-active")[0]||p.find(".ui-datepicker-today a")[0]||p.find(".ui-state-default")[0],u(t).addClass("ui-state-highlight")),t.focus()},100);function c(t){var e=t.dpDiv,a=e.find(".ui-datepicker-prev"),i=e.find(".ui-datepicker-next"),n=e.find(".ui-datepicker-month"),r=e.find(".ui-datepicker-year"),t=e.find(".ui-datepicker-close");e.off("keydown.ps-datepicker"),a.off("click.ps-datepicker"),i.off("click.ps-datepicker"),n.off("change.ps-datepicker").off("click.ps-datepicker"),r.off("change.ps-datepicker").off("click.ps-datepicker"),t.off("click.ps-datepicker")}function s(t){var e,a,i,n,r,d,o,p=t.data.inst,c=t.target,s=t.which,f=t.altKey;37===s?(t.preventDefault(),t.stopPropagation(),function(t,e){var a,i,n=u(e).closest("td");n.length&&((a=n.prev("td")).length||(a=n.closest("tr").prev("tr").find("td").last()));a&&a.length&&(i=a.find(".ui-state-default"));i&&i.length?g(t,i):l(t,e,1)}(p,c)):36===s?(t.preventDefault(),t.stopPropagation(),function(t,e){e=u(e).closest("tr").find(".ui-state-default").first();e&&e.length&&g(t,e)}(p,c)):39===s?(t.preventDefault(),t.stopPropagation(),function(t,e){var a,i,n=u(e).closest("td");n.length&&((a=n.next("td")).length||(a=n.closest("tr").next("tr").find("td").first()));a&&a.length&&(i=a.find(".ui-state-default"));i&&i.length?g(t,i):h(t,e,1)}(p,c)):35===s?(t.preventDefault(),t.stopPropagation(),function(t,e){e=u(e).closest("tr").find(".ui-state-default").last();e&&e.length&&g(t,e)}(p,c)):38===s?(t.preventDefault(),t.stopPropagation(),function(t,e){var a,i=u(e).closest("td"),i=i.closest("tr").prev("tr").find("td").eq(i.prevAll().length);i&&i.length&&(a=i.find(".ui-state-default"));a&&a.length?g(t,a):l(t,e,7)}(p,c)):40===s?(t.preventDefault(),t.stopPropagation(),function(t,e){var a,i=u(e).closest("td"),i=i.closest("tr").next("tr").find("td").eq(i.prevAll().length);i&&i.length&&(a=i.find(".ui-state-default"));a&&a.length?g(t,a):h(t,e,7)}(p,c)):33===s?(t.preventDefault(),t.stopPropagation(),f?(r=c,d=(n=p).dpDiv,o=u(r).data("psDate"),r="#"+n.id.replace(/\\\\/g,"\\"),u.jQueryDatepicker._adjustDate(r,12,"M"),_.defer(function(){var t;v(n),t=(t=d.find("a.ui-state-default")).filter("[data-ps-date="+o+"]"),g(n,t)})):h(p,c)):34===s?(t.preventDefault(),t.stopPropagation(),f?(f=c,a=(e=p).dpDiv,i=u(f).data("psDate"),f="#"+e.id.replace(/\\\\/g,"\\"),u.jQueryDatepicker._adjustDate(f,-12,"M"),_.defer(function(){var t;v(e),t=(t=a.find("a.ui-state-default")).filter("[data-ps-date="+i+"]"),g(e,t)})):l(p,c)):13===s?k(0,c):27===s&&p.input.jQueryDatepicker("hide")}function l(e,t,a){var i=e.dpDiv,n=u(t).data("psDate"),t="#"+e.id.replace(/\\\\/g,"\\");void 0===a?n=new Date(e.drawYear,e.drawMonth,+n):"number"==typeof a&&(n=new Date(e.drawYear,e.drawMonth,+n-a)),u.jQueryDatepicker._adjustDate(t,-1,"M"),_.defer(function(){var t;v(e),t=(t=i.find("a.ui-state-default")).filter("[data-ps-date="+n.getDate()+"]"),g(e,t)})}function h(e,t,a){var i=e.dpDiv,n=u(t).data("psDate"),t="#"+e.id.replace(/\\\\/g,"\\");void 0===a?n=new Date(e.drawYear,e.drawMonth,+n):"number"==typeof a&&(n=new Date(e.drawYear,e.drawMonth,+n+a)),u.jQueryDatepicker._adjustDate(t,1,"M"),_.defer(function(){var t;v(e),t=(t=i.find("a.ui-state-default")).filter("[data-ps-date="+n.getDate()+"]"),g(e,t)})}function k(t,e){u(e).click()}function v(t){var e=t.dpDiv.find(".ui-datepicker-calendar"),a=t.settings,i=a.dayNames,n=a.monthNames[t.drawMonth],r=t.drawYear;e.attr("role","application"),e.find("tbody a.ui-state-default").attr("role","button").each(function(){var t=u(this),e=t.closest("td").prevAll().length,a=t.text().trim(),e=a+", "+i[e]+" "+n+" "+r;t.removeClass("ui-state-hover"),t.attr("aria-label",e),t.attr("data-ps-date",a)})}function n(t){return t.dpDiv.find(".ui-state-highlight")}function g(t,e){t.dpDiv;var a=n(t),i=u(e);_.defer(function(){a.removeClass("ui-state-highlight"),i.focus(),i.addClass("ui-state-highlight")})}function f(t){var e=t.data.inst,a=new Date(e.selectedYear,e.selectedMonth,e.selectedDay),i=e.input;t.stopPropagation(),_.delay(function(){i.jQueryDatepicker("setDate",a)},100)}function D(t){t=t.data.inst;k(0,n(t))}}(jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/datepicker.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/activity.min.js*/
try {
	!function s(i,a,n){function r(t,e){if(!a[t]){if(!i[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(p)return p(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}o=a[t]={exports:{}},i[t][0].call(o.exports,function(e){return r(i[t][1][e]||e)},o,o.exports,s,i,a,n)}return a[t].exports}for(var p="function"==typeof require&&require,e=0;e<n.length;e++)r(n[e]);return r}({1:[function(s,e,t){!function(o){!function(){"use strict";var e,f=s("./datetime"),v="undefined"!=typeof window?window.peepsodata:void 0!==o?o.peepsodata:null;function t(){this.current_post=null,this.is_ajax_loading={},this.is_editing={}}t.prototype.init=function(){var t=this;this.$post_container=jQuery("#ps-activitystream"),jQuery(".ps-js-comment-container").each(function(e,t){0===jQuery("div",t).length&&jQuery(this).hide()}),jQuery(".cstream-respond").each(function(e,t){0===jQuery("div",t).not(".ps-js-comment-container").length&&jQuery(this).hide(),jQuery("textarea[name=comment]",t).ps_autosize()}),jQuery(document).on("click",".ps-js-content-excerpt-toggle",function(e){var t=jQuery(e.currentTarget);if(!t.data("single-act"))return e.preventDefault(),e.stopPropagation(),(e=t.closest(".ps-js-content-excerpt")).length&&e.hide().siblings(".ps-js-content-full").show(),!1}),jQuery(document).on("ps_activitystream_loaded peepso_repost_shown peepso_report_shown ps_activitystream_append",function(e){t.setup_comment_textarea(),t.update_pinned_color(),t.parseXFBML()}),jQuery(document).on("ps_comment_save",function(){t.setup_comment_textarea()}),jQuery(document).trigger("ps_activitystream_loaded"),jQuery(document).on("ps_comment_addon_added ps_comment_addon_removed",function(e,t){var o,s=(o=(t=jQuery(t)).closest(".ps-js-addons")).closest(".ps-textarea-wrapper").find("textarea");"ps_comment_addon_added"===e.type?(t.siblings().hide(),o.show()):"ps_comment_addon_removed"===e.type&&(t.siblings(":visible").length?o.show():o.hide()),s.trigger("input")}),peepso.observer.addAction("peepso_delete_post",function(){peepsodata.activity&&+peepsodata.activity.is_permalink&&window.location.reload()})},t.prototype.setup_comment_textarea=function(){jQuery('[data-type="stream-newcomment"] textarea').off("keyup.peepso").on("keyup.peepso",jQuery.proxy(function(e){e.stopPropagation(),this.update_beautifier(e.target)},this))},t.prototype.update_beautifier=_.throttle(function(i){_.defer(_.bind(function(){var e,t,o=jQuery(i),s=o.data("ps-beautifier");s||(o.addClass("ps-tagging-textarea"),(t=o.parent(".ps-postbox__input-tag")).length||(o.wrap("<div class=ps-postbox__input-tag />"),t=o.parent(".ps-postbox__input-tag")),(s=t.children(".ps-postbox__input-beautifier")).length||(s=jQuery("<div class=ps-postbox__input-beautifier />")).prependTo(t),o.data("ps-beautifier",s),o.focus()),(t=window._wpemojiSettings||{})&&t.supports&&(t.supports.everything=!0),e=o.val()||"",e=(e=peepso.observer.applyFilters("peepso_postbox_beautifier",e,o)).replace(/<(?!\/?ps_)/g,"&lt;").replace(/<(\/?)ps_/g,"<$1").replace(/\r?\n/g,"<br />"),s.html(e)},this))},100),t.prototype.action_like=function(e,t){var o,s,i,a;return this.action_like_progress||(this.action_like_progress=!0,o={act_id:t,uid:peepsodata.currentuserid},s=this,i=jQuery(e),a=jQuery(".ps-js-act-like--"+t),e=i.hasClass("liked"),e=+a.data("count")+(e?-1:1),a.html(),i.toggleClass("liked"),e<1?a.hide():(1==e?a.html('<a href="#" onclick="return activity.show_likes('+t+');">1 '+peepsodata.like_text+"</a>"):a.html('<a href="#" onclick="return activity.show_likes('+t+');">'+e+" "+peepsodata.like_text_plural+"</a>"),a.show()),peepso.postJson("activity.like",o,function(e){s.action_like_progress=!1,e.success?(i.replaceWith(e.data.like_html),a.data("count",e.data.count),0<e.data.count?a.html(e.data.count_html).show():a.hide()):(psmessage.show("",e.errors[0]).fade_out(psmessage.fade_time),i.toggleClass("liked"),a.html(html),1<=+a.data("count")?a.show():a.hide())})),!1},t.prototype.action_repost=function(t,e){var o,s,i,a,n={act_id:t,uid:peepsodata.currentuserid,user_id:peepsodata.userid},r=peepsodata.activity&&peepsodata.activity.template_repost?jQuery(peepsodata.activity.template_repost):jQuery("#repost-dialog");return e instanceof Element&&(this._action_repost_button=e),e=r.find(".dialog-title").html(),o=jQuery("#ajax-loader-gif").html(),pswindow.show(e,o),peepso.postJson("activity.ajax_show_post",n,function(e){0==e.success?pswindow.hide():(o=r.find(".dialog-content").html(),s=r.find(".dialog-action").html(),i=(i=e.data.html.trim()).replace("<p>","<span>").replace("</p>","<br/></span>").replace("<br/></span>","</span>"),a=jQuery("<div/>").append('<blockquote class="ps-js-activity-quote">'+i+"</blockquote>"),a=peepso.observer.applyFilters("peepso_activity",a),i=peepso.observer.applyFilters("peepso_activity_content",a.children().html()),o=(o=o.replace("{post-content}",i)).replace("{post-id}",t+""),pswindow.set_content(o).set_actions(s).refresh(),jQuery(document).trigger("peepso_repost_shown"),jQuery("#share-post-box","#ps-window").autosize(),jQuery("#ps-window").find(".ps-js-dropdown-menu").css({left:0,right:"auto"}))}),!1},t.prototype.submit_repost=function(){var n=jQuery("#postbox-post-id","#ps-window").val(),e={content:jQuery("#share-post-box","#ps-window").val(),id:peepsodata.currentuserid,uid:peepsodata.currentuserid,repost:n,acc:jQuery("#cWindowContent input[name='repost_acc']").val(),type:"activity"},e=peepso.observer.applyFilters("postbox_req",e);return peepso.postJson("postbox.post",e,function(e){var t,o,s,i,a;e.success&&(pswindow.hide(),0!=+peepsodata.userid&&+peepsodata.currentuserid!=+peepsodata.userid||(e=peepso.observer.applyFilters("peepso_activity_content",e.data.html),t=peepso.observer.applyFilters("peepso_activity",jQuery(e)),o=jQuery("html, body"),(s=jQuery("#ps-activitystream").find(".ps-js-activity").filter('[data-id="'+n+'"]')).length&&(i=s.offset().top,a=o.scrollTop(),setTimeout(function(){i=s.offset().top-i,o.scrollTop(a+i)},1)),t.prependTo("#ps-activitystream"),jQuery(document).trigger("peepso_repost_added"),activity._action_repost_button&&((e=jQuery(activity._action_repost_button)).find("span").html(peepsodata.label_done).css("color","green"),e.removeAttr("onclick"),e.off("click").on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery("html, body").animate({scrollTop:t.offset().top-20})}),activity._action_repost_button=null)))}),!1},t.prototype.action_report=function(s){var e={act_id:s,uid:peepsodata.currentuserid,user_id:peepsodata.userid},t=jQuery("#activity-report-title").html(),o=jQuery("#ajax-loader-gif").html();pswindow.show(t,o),peepso.postJson("activity.ajax_show_post",e,function(e){var t=jQuery("#activity-report-content").html(),e=(e=e.data.html.trim()).replace("<p>","<span>").replace("</p>","<br/></span>").replace("<br/></span>","</span>"),e=(t=(t=t.replace("{post-content}",e)).replace("{post-id}",s+""),jQuery("#activity-report-actions").html()),o=(pswindow.set_content(t).set_actions(e).refresh(),jQuery("#cWindowContent .ps-js-report-desc"));o.find("textarea").off("input").on("input",_.throttle(function(e){o.find(".ps-js-counter").html(e.target.value.length)},500)).triggerHandler("input"),jQuery(document).trigger("peepso_report_shown")})},t.prototype.submit_report=function(){var e,t=jQuery("#cWindowContent .ps-js-report-error").hide(),o=jQuery("#cWindowContent select.ps-js-report-type"),s=jQuery("#cWindowContent .ps-js-report-desc textarea"),i=o.val(),s=s.val().trim();return i?o.find("option:selected").data("needReason")&&!s?(e=jQuery("#report-error-empty-reason").text(),t.text(e).show()):(o=jQuery("#postbox-report-popup #postbox-post-id","#ps-window").val(),o=peepso.observer.applyFilters("activity_report_params",{act_id:o,uid:peepsodata.currentuserid,reason:i,reason_desc:s}),i=peepso.observer.applyFilters("activity_report_action","activity.report"),peepso.postJson(i,o,function(e){e.success?(jQuery(window).trigger("report.submitted",e),pswindow.set_content(e.notices[0]).fade_out(pswindow.fade_time)):(pswindow.hide(),psmessage.show("",e.errors[0]).fade_out(psmessage.fade_time))})):(e=jQuery("#report-error-select-reason").text(),t.text(e).show()),!1},t.prototype.toggle_reports=function(e){var e=jQuery(e),t=e.closest(".ps-js-reports").find(".ps-js-reports-list"),o=e.children("i");t.is(":visible")?(t.hide(),e.attr("aria-label",e.attr("aria-label-expand")),o.attr("class",o.attr("class-expand"))):(t.show(),e.attr("aria-label",e.attr("aria-label-collapse")),o.attr("class",o.attr("class-collapse")))},t.prototype.ignore_reports=function(o,t,s="post"){peepso.dialog(peepsodata.ignore_reports_confirm).confirm(e=>{e&&peepso.postJson("activity.ignore_reports",{post_id:o,module_id:t},e=>{if(e.success)if("profile"===s)location.reload();else{let e,t;"comment"===s?(e=jQuery(`.ps-js-comment-item[data-comment-id="${o}"]`),o=e.closest(".ps-js-activity").data("post-id")):t=jQuery(`.ps-js-activity[data-post-id="${o}"]`),"core_reported"===jQuery("[id=peepso_stream_id]").val()?("comment"===s?e:t).remove():this.reload(o)}})})},t.prototype.delete_reported=function(e,t,o="post"){"comment"===o?this.comment_action_delete(e):activity.action_delete(e)},t.prototype.action_delete=function(s,t,e){return pswindow.confirm_delete(jQuery.proxy(function(){var e=jQuery.extend({uid:peepsodata.currentuserid,postid:s,_wpnonce:peepsodata.peepso_nonce},t||{});pswindow.hide(),peepso.postJson("activity.delete",e,jQuery.proxy(function(e){var t,o;this.toggle_comment_box(s,!1),e.success&&(o=jQuery("#ps-activitystream-recent"),(t=jQuery(".ps-js-activity").filter('[data-post-id="'+s+'"]')).length?(t.css({transition:"opacity .5s","-webkit-transition":"opacity .5s"}),setTimeout(function(){t.css("opacity",0),setTimeout(function(){t.slideUp(function(){t.remove(),o.children().length||o.hide(),peepso.observer.doAction("peepso_delete_post",s)})},700)},0)):peepso.observer.doAction("peepso_delete_post",s))},this))},this),e),!1},t.prototype.action_pin=function(e,t,o){e={postid:e,uid:peepsodata.currentuserid,pinstatus:t,pinuntil:o};return peepso.ajax.post("activity.pin",e,-1).done(e=>{e.success&&window.location.reload()}),!1},t.prototype.action_pin_dialog=function(e){var t=v.datetime&&v.datetime.text.monthNames,o=v.datetime&&v.datetime.text.am,s=v.datetime&&v.datetime.text.pm,i=peepsodata.activity&&peepsodata.activity.template_pin||"";let a=peepso.dialog(i).show();var i=a.$el.find(".ps-js-date-dd"),n=a.$el.find(".ps-js-date-mm"),r=a.$el.find(".ps-js-date-yy"),p=a.$el.find(".ps-js-time-hh"),c=a.$el.find(".ps-js-time-mm"),d=a.$el.find(".ps-js-time-ampm");let u=+c.data("interval")||15;var l=new Date,m=new Date,h=(m.setFullYear(Math.max(2035,m.getFullYear()+1)),()=>{var e=new Date,t=_.getDate().split("-"),o=y.getTime().split(":"),t=new Date(+t[0],+t[1]-1,+t[2],+o[0],+o[1]);e.setHours(e.getHours()+1,e.getMinutes()+(u-e.getMinutes()%u),0),t<e&&y.setTime(e.getHours()+":"+e.getMinutes())}),o={step:u,am:o,pm:s,onSelect:h};let _=new f.DateSelector(r[0],n[0],i[0],{monthNames:t,minDate:l,maxDate:m,onSelect:h}),y=new f.TimeSelector(p[0],c[0],d.length?d[0]:o,d.length?o:void 0);return h(),a.$el.find("form").on("submit",e=>e.preventDefault()),a.$el.find(".ps-js-cancel").on("click",()=>a.hide()),a.$el.find(".ps-js-submit").on("click",()=>{this.action_pin(e,1,_.getDate()+" "+y.getTime()),a.hide()}),!1},t.prototype.action_nsfw=function(t,e){e={postid:t,uid:peepsodata.currentuserid,nsfw_status:e};peepso.ajax.post("activity.nsfw",e,-1).done(e=>{e.success&&this.reload(t)})},t.prototype.action_remove_link_preview=function(e,t){t=jQuery(".ps-js-activity--"+t);t.length&&(t.find(".ps-js-post-body .js-stream-attachments").children(".ps-media").remove(),t.find(".js-stream-actions .actaction-removepreview").remove(),t.find(".ps-js-post-body .ps-js-activity-content .ps-js-hide-url").show(),t.find(".ps-js-post-header .ps-js-btn-remove-preview").hide(),peepso.postJson("activity.remove_link_preview",{postid:e,uid:peepsodata.currentuserid}))},t.prototype.on_commentbox_change=_.debounce(function(e){var t,o,s=jQuery(e),i=s.val(),a=(i.length>peepsodata.postsize&&(i=i.substring(0,peepsodata.postsize),s.val(i)),n=s,a=i.length,r=peepsodata.postsize,(t=n.parent().siblings(".ps-js-char-count")).length||(t=jQuery('<div class="ps-form__chars-count ps-js-char-count"></div>')).appendTo(n.parent().parent()),o=a/r,r-=a,!n.val().trim()||o<.5?t.hide():(t.html(r),t.css("color",.9<o?"red":.75<o?"orange":""),t.show()),""===i.trim()),n=peepso.observer.applyFilters("comment_show_button",{el:s,show:!a}),r=s.parents(".cstream-form-input").next(".ps-comments__reply-send");n.show?(r.show().find(".ps-comment-actions").show(),r.find(".ps-button-action").removeAttr("disabled"),void 0===this.__originalBeforeOnload&&(this.__originalBeforeOnload=window.onbeforeunload||function(){},window.onbeforeunload=function(e){e.preventDefault(),e.returnValue=""})):(r.find(".ps-button-action").attr("disabled","disabled"),void 0!==this.__originalBeforeOnload&&(window.onbeforeunload=this.__originalBeforeOnload,this.__originalBeforeOnload=void 0)),s.is(":focus")||this.on_commentbox_blur(e)},100),t.prototype.on_commentbox_focus=function(e){clearTimeout(e.onblur_timer);var e=jQuery(e).parents(".cstream-form-input"),t=e.next(".ps-comments__reply-send");e.find(".ps-js-actions").show(),t.show().find(".ps-comment-actions").show()},t.prototype.on_commentbox_blur=function(o){clearTimeout(o.onblur_timer),o.onblur_timer=setTimeout(function(){var e=jQuery(o),t=e.val().trim();t||peepso.observer.applyFilters("comment_show_button",{el:e,show:""!==t}).show||(e=(t=e.parents(".cstream-form-input")).next(".ps-comments__reply-send"),t.find(".ps-js-actions").css("display",""),e.css("display","").find(".ps-comment-actions").css("display",""))},100)},t.prototype.comment_save=function(o,e){var s,i,a,n;if(!this.is_ajax_loading["save-comment-"+o])return s=this,i=jQuery("#act-new-comment-"+o+" .cstream-form-text"),e&&e.tagName&&(i=jQuery(e).closest("#act-new-comment-"+o).find(".cstream-form-text")),jQuery("#act-new-comment-"+o+" .ps-js-actions").hide(),jQuery("#act-new-comment-"+o+" .ps-comment-actions").hide(),jQuery("#act-new-comment-"+o+" .ps-comment-loading").show(),e=(a=jQuery(i)).val(),n=peepso.observer.applyFilters("comment_req",{act_id:o,uid:peepsodata.currentuserid,content:e,last:jQuery(".ps-js-comment-container[data-act-id="+o+"] .cstream-comment:last").data("comment-id")},i),jQuery(document).trigger("ps_comment_beforesave",[o,i]),this.is_ajax_loading["save-comment-"+o]=!0,a.attr("disabled","disabled"),peepso.postJson("activity.makecomment",n,function(e){var t;s.is_ajax_loading["save-comment-"+o]=!1,a.removeAttr("disabled"),e.success?(t=jQuery("<div />").append(e.data.html),t=peepso.observer.applyFilters("peepso_activity",t),t=peepso.observer.applyFilters("peepso_activity_content",t.html()),t=jQuery(t),jQuery(".ps-js-comment-container[data-act-id="+o+"]").show(),t.appendTo(".ps-js-comment-container[data-act-id="+o+"]").hide().fadeIn(2e3),jQuery("#peepso-wrap").trigger("comment.saved",[o,i,n,t]),jQuery(document).trigger("ps_comment_save"),t.find(".ps-js-comment-body input[name=peepso_set_human_friendly]").each(function(){var e=jQuery(this),t=e.siblings(".ps-js-comment-content"),o=t.closest(".ps-js-comment");!+peepsodata.is_admin&&+e.data("author")!=+peepsodata.currentuserid||(t=t[0].innerText.trim(),(o=peepso.observer.applyFilters("human_friendly_extras",[],t,o[0])).length&&(t&&o.unshift(t),t=o.join(". ")),t=t.replace(/\r?\n/g," "),peepso.modules.post.setHumanReadable(e.val(),t))}),(t=t.filter(".ps-js-comment-item")).length&&peepso.hooks.doAction("comment_added",t[0])):psmessage.show("",e.errors[0]).fade_out(psmessage.fade_time),jQuery(document).trigger("ps_comment_aftersave",[o,i]),activity.comment_cancel(o),activity.current_post=null,jQuery("#act-new-comment-"+o+" .ps-js-actions").css("display",""),jQuery("#act-new-comment-"+o+" .ps-comment-loading").hide(),jQuery("#act-new-comment-"+o+" .ps-comment-actions").css("display",""),jQuery("#act-new-comment-"+o+" .ps-button-action").attr("disabled","disabled"),void 0!==e.data.has_max_comments&&s.toggle_comment_box(o,e.data.has_max_comments)}),!1},t.prototype.comment_action_edit=function(t,e){var o,s;if(!(0<jQuery("#comment-item-"+t+" .js-stream-content .cstream-edit").length))return o=this,s=jQuery(e).closest("#comment-item-"+t),void 0!==this.is_ajax_loading["comment-edit-"+t]&&!1!==this.is_ajax_loading["comment-edit-"+t]||(this.is_ajax_loading["comment-edit-"+t]=!0,e={postid:t,uid:peepsodata.currentuserid},peepso.postJson("activity.editcomment",e,function(e){e.success&&(e=jQuery(e.data.html),jQuery("[data-type='stream-comment-content']",s).first().hide().after(e),jQuery(".ps-comment-media",s).hide(),jQuery("#peepso-wrap").trigger("comment_edit.shown",[t,e]),peepso.observer.doAction("comment_edit",t,e),jQuery(".cstream-edit textarea",s).on("input propertychange",function(){jQuery(this).val().length>peepsodata.postsize&&jQuery(this).val(jQuery(this).val().substring(0,peepsodata.postsize))}).autosize().off("keyup.peepso").on("keyup.peepso",function(e){e.stopPropagation(),activity.update_beautifier(e.target)}).trigger("keyup.peepso"),o.is_ajax_loading["comment-edit-"+t]=!1)})),!1},t.prototype.option_canceleditcomment=function(e,t){t=jQuery(t).closest("#comment-item-"+e);return 0<t.length&&(jQuery(".cstream-edit",t).remove(),jQuery("[data-type='stream-comment-content']",t).show(),jQuery(".ps-comment-media",t).show()),void 0!==this.__originalBeforeOnload&&(window.onbeforeunload=this.__originalBeforeOnload,this.__originalBeforeOnload=void 0),!1},t.prototype.option_savecomment=function(s,e){var t,i=jQuery(e).closest("#comment-item-"+s);return 0<i.length&&(e=jQuery(".cstream-edit textarea",i).val(),jQuery(".cstream-edit textarea",i).attr("disabled","disabled"),jQuery(".ps-edit-loading",i).show(),jQuery(".cstream-edit button",i).hide(),t=jQuery(".cstream-edit textarea",i),e=peepso.observer.applyFilters("comment_req",{postid:s,uid:peepsodata.currentuserid,post:e},t),jQuery(document).trigger("ps_comment_beforesave",[s,t]),peepso.postJson("activity.savecomment",e,e=>{var t,o;e.success?(jQuery(".cstream-edit",i).remove(),t=jQuery("<div />").append(e.data.html),t=peepso.observer.applyFilters("peepso_activity",t),t=peepso.observer.applyFilters("peepso_activity_content",t.html()),jQuery("[data-comment-id="+s+"] [data-type='stream-comment-content']").html(t),jQuery("[data-type='stream-comment-content']",i).show(),t=e.data.attachments||"",o=i.find(".ps-js-btn-remove-preview"),jQuery("[data-comment-id="+s+"]").find(".ps-js-comment-body .ps-js-comment-attachment").html(t),t?o.show():o.hide(),jQuery(".js-stream-content > .js-stream-attachments",i).show(),jQuery("span.ps-stream-status-action",i).html(e.data.actions),jQuery(document).trigger("ps_comment_save"),peepso.hooks.doAction("comment_updated",i[0]),void 0!==this.__originalBeforeOnload&&(window.onbeforeunload=this.__originalBeforeOnload,this.__originalBeforeOnload=void 0)):(psmessage.show("",e.notices[0]),jQuery(".cstream-edit button",i).show(),jQuery(".ps-edit-loading",i).hide(),jQuery(".cstream-edit textarea",i).removeAttr("disabled"))})),!1},t.prototype.comment_action_delete=function(o){var s=this;pswindow.confirm_delete(function(){var e={postid:o,uid:peepsodata.currentuserid,_wpnonce:peepsodata.peepso_nonce};return peepso.postJson("activity.delete",e,function(e){var t;s.toggle_comment_box(o,!1),e.success&&(t=(e=jQuery(".ps-comment-item[data-comment-id="+o+"]")).next('[class*="ps-js-comment-reply--"]'),e.remove(),t.remove()),pswindow.hide()}),!1})},t.prototype.comment_action_remove_preview=function(e){var t=jQuery("#comment-item-"+e);return t.length&&(t.find(".ps-comment-media").children(".ps-media--iframe, .ps-media--embed").remove(),t.find(".ps-comment__content .ps-js-hide-url").show(),t.find(".ps-js-btn-remove-preview").hide(),peepso.postJson("activity.remove_link_preview",{postid:e,uid:peepsodata.currentuserid})),!1},t.prototype.comment_action_report=function(i){return peepso.postJson("activity.ajax_show_comment",{act_id:i},function(e){var t=jQuery("#activity-report-title").html(),o=jQuery("#activity-report-content").html(),e=(e=e.data.html.trim()).replace("<p>","<span>").replace("</p>","<br/></span>").replace("<br/></span>","</span>"),s=(o=(o=o.replace("{post-content}",e)).replace("{post-id}",i+""),peepso.observer.addFilter("activitystream_notice_container",function(e,t){return"#comment-item-"+t+" .cstream-more"},10,2),actions=jQuery("#activity-report-actions").html(),pswindow.show(t,o).set_actions(actions).refresh(),jQuery("#cWindowContent .ps-js-report-desc"));s.find("textarea").off("input").on("input",_.throttle(function(e){s.find(".ps-js-counter").html(e.target.value.length)},500)).triggerHandler("input"),jQuery("#ps-window").one("pswindow.hidden",function(){peepso.observer.removeFilter("activitystream_notice_container",function(e,t){return"#comment-item-"+t+" .cstream-more"},10)})}),!1},t.prototype.comment_action_reply=function(e,t,o,s){return peepso.comment.reply(e,t,o,s),!1},t.prototype.comment_action_like=function(e,t){var o,s,i,a;if(!this.comment_action_like_progress)return this.comment_action_like_progress=!0,o={act_id:t,uid:peepsodata.currentuserid},s=this,i=jQuery(e),a=jQuery(".ps-js-act-like--"+t),e=i.hasClass("liked"),e=+a.data("count")+(e?-1:1),a.html(),i.toggleClass("liked"),e<1?a.hide():(1==e?a.html('<a href="#" onclick="return activity.show_likes('+t+');">1 '+peepsodata.like_text+"</a>"):a.html('<a href="#" onclick="return activity.show_likes('+t+');">'+e+" "+peepsodata.like_text_plural+"</a>"),a.show()),peepso.postJson("activity.like",o,function(e){s.comment_action_like_progress=!1,e.success?(i.replaceWith(e.data.like_html),a.data("count",e.data.count),0<e.data.count?a.html(e.data.count_html).show():a.hide()):(psmessage.show("",e.errors[0]).fade_out(psmessage.fade_time),i.toggleClass("liked"),a.html(html),1<=+a.data("count")?a.show():a.hide())}),!1},t.prototype.comment_cancel=function(e){var e=jQuery("div#act-new-comment-"+e),t=e.find(".cstream-form-text");return e.find(".ps-comments__reply-send").hide(),e.find(".ps-js-commentbox-addons").hide(),t.val("").trigger("autosize.resize"),peepso.observer.applyFilters("comment_cancel",t),!1},t.prototype.show_likes=function(t){var e={act_id:t,uid:peepsodata.currentuserid},o=this,s="likes-"+t;return this.is_ajax_loading[s]&&(this.is_ajax_loading[s].ret&&this.is_ajax_loading[s].ret.abort(),this.is_ajax_loading[s]=!1),this.is_ajax_loading[s]=peepso.postJson("activity.get_like_names",e,function(e){jQuery("#act-like-"+t+" a").replaceWith(e.data.html),o.is_ajax_loading[s]=!1}),!1},t.prototype.show_comments=function(e,t){return peepso.comment.show_previous(e,t),!1},t.prototype.option_edit=function(e,o){return new Promise(s=>{var i,a,n,r,p,c,d,u="edit-post-"+o;this.is_editing[u]?s():(this.is_editing[u]=!0,i=jQuery(".ps-js-activity--"+o),a=i.find(".ps-js-activity-content"),n=i.find(".ps-js-activity-edit"),r=i.find(".js-stream-actions"),p=i.find(".ps-js-post-body .ps-js-activity-attachments"),c=i.find(".ps-js-activity-extras"),d=i.find(".ps-js-post-nsfw"),n.ps_postbox({fetch:function(t,o){peepso.postJson("activity.editpost",{uid:peepsodata.currentuserid,postid:e},function(e){e.success&&(t.update(e.data),t.$text.off("keyup.peepso").on("keyup.peepso",function(e){e.stopPropagation(),activity.update_beautifier(e.target)}).trigger("keyup.peepso")),o(),s()})},cancel:jQuery.proxy(function(e){this.is_editing[u]=!1,n.ps_postbox("destroy"),a.show(),d.show()},this),submit:jQuery.proxy(function(e,t,s){(t=jQuery.extend({},t,{uid:peepsodata.currentuserid,act_id:o})).post=t.content,delete t.content,peepso.postJson("activity.savepost",t,jQuery.proxy(function(e){var t,o;e.success?(this.is_editing[u]=!1,n.ps_postbox("destroy"),t=jQuery("<div />").append(e.data.html),t=peepso.observer.applyFilters("peepso_activity",t),t=peepso.observer.applyFilters("peepso_activity_content",t.html()),a.html(t).show(),d.show(),r.html(e.data.actions),c.html(e.data.extras||""),e.data&&e.data.timestamp&&i.find(".ps-js-post-header .ps-js-timestamp").html(e.data.timestamp),t=e.data.attachments||"",o=i.find(".ps-js-post-header .ps-js-btn-remove-preview"),p.html(t),t?o.show():o.hide(),peepso.observer.doAction("peepso_activity_actions",r),peepso.hooks.doAction("post_updated",i[0])):psmessage.show("",e.errors[0]),jQuery(document).trigger("peepso_post_edit_saved"),s()},this))},this)}),a.hide(),n.show(),d.hide())})},t.prototype.option_canceledit=function(e){this.is_editing["edit-post-"+e]=!1;e=jQuery(".ps-js-activity--"+e);return 0<e.length&&(jQuery(".cstream-edit",e).remove(),jQuery(".cstream-attachment",e).show()),!1},t.prototype.option_cancel_edit_description=function(e){e=jQuery(".ps-js-modal-attachment--"+e);return 0<e.length&&(jQuery(".cstream-edit",e).remove(),jQuery(".cstream-attachment",e).show()),!1},t.prototype.option_savepost=function(t){var e,o=jQuery(".ps-js-activity--"+t);return 0<o.length&&(e=jQuery(".cstream-edit textarea",o).val(),jQuery(".cstream-edit textarea",o).attr("disabled","disabled"),jQuery(".ps-edit-loading",o).show(),jQuery(".cstream-edit button",o).hide(),e=peepso.observer.applyFilters("postbox_req_edit",{act_id:t,uid:peepsodata.currentuserid,post:e},jQuery(".cstream-edit textarea",o)),peepso.postJson("activity.savepost",e,jQuery.proxy(function(e){jQuery(".cstream-edit",o).remove(),e.success?(this.is_editing["edit-post-"+t]=!1,jQuery(".ps-stream-body .cstream-attachment",o).html(e.data.html),jQuery(".ps-stream-body .cstream-attachments",o).html(e.data.attachments),jQuery(".js-stream-actions",o).html(e.data.actions)):psmessage.show("",e.errors[0]),jQuery(".ps-stream-body .cstream-attachment, .ps-stream-body .cstream-attachments",o).show(),jQuery(document).trigger("peepso_post_edit_saved")},this))),!1},t.prototype.option_save_description=function(e,t,o){var s,i,a=jQuery(".ps-js-modal-attachment--"+e);return 0<a.length&&(i=(s=jQuery(".cstream-edit textarea",a)).val(),jQuery(".cstream-edit textarea",a).attr("disabled","disabled"),jQuery(".ps-edit-loading",a).show(),jQuery(".cstream-edit button",a).hide(),e={act_id:e,type:t,object_id:o,uid:peepsodata.currentuserid,description:i},e=peepso.observer.applyFilters("caption_req",e,s),peepso.postJson("activity.save_description",e,function(e){e=jQuery("<div />").append(e.data.html),e=peepso.observer.applyFilters("peepso_activity",e),e=peepso.observer.applyFilters("peepso_activity_content",e.html());jQuery(".cstream-edit",a).remove(),jQuery(".ps-stream-attachment",a).html(e).show()})),!1},t.prototype.option_block=function(t,e){e={uid:peepsodata.currentuserid,user_id:e};return peepso.postJson("activity.blockuser",e,function(e){e.success?jQuery(".ps-js-activity--"+t).remove():e.errors&&alert(e.errors[0])}),!1},t.prototype.option_enable_comments=function(t){var o=this;return peepso.postJson("activity.set_comments_status",{post_id:t,open:1},function(e){e.success?(o.reload(t),peepso.observer.doAction("comments_enable",t)):e.errors&&alert(e.errors[0])}),!1},t.prototype.option_disable_comments=function(t){var o=this;return peepso.postJson("activity.set_comments_status",{post_id:t,open:0},function(e){e.success?(o.reload(t),peepso.observer.doAction("comments_disable",t)):e.errors&&alert(e.errors[0])}),!1},t.prototype.option_toggle_post_header=function(t,e){return peepso.postJson("activity.toggle_post_header",{post_id:t,act_id:e},e=>{e.success?this.reload(t):e.errors&&alert(e.errors[0])}),!1},t.prototype.reload=function(s){var e={uid:peepsodata.currentuserid,user_id:peepsodata.userid,post_id:s,context:"single",page:1,pinned:1},e=peepso.observer.applyFilters("postbox_req",e);return peepso.postJson("activity.show_posts_per_page",e,function(e){var e=e&&e.data||{},t=jQuery(`.ps-js-activity[data-post-id="${s}"]`),o=jQuery(e.posts);(o=peepso.observer.applyFilters("peepso_activity",o)).find(".ps-js-activity-content, .ps-comment-item, .ps-stream-quote").each(function(){var e=jQuery(this),t=e.html(),t=peepso.observer.applyFilters("peepso_activity_content",t);e.html(t)}),t.replaceWith(o),peepso.hooks.doAction("post_reload",s,e),setTimeout(function(){jQuery(document).trigger("ps_activitystream_loaded"),jQuery("textarea[name=comment]",o).ps_autosize()},1)}),!1},t.prototype.change_post_privacy=function(e,t){var o,s,i,a,n,r="[class*=gci-]";return e=jQuery(e),n=jQuery(".ps-js-privacy--"+t),o=n.find(".ps-js-dropdown-toggle"),s=o.find(r).attr("class"),n=e.find(r).attr("class"),i=o.find(r).next("span").text(),a=e.find(r).next("span").text(),o.find(r).attr("class",n),o.find(r).next("span").text(a),o.css("opacity",.5),(n=this.change_post_privacy)._xhr||(n._xhr={}),n._xhr[t]&&n._xhr[t].ret.abort(),n._xhr[t]=peepso.postJson("activity.change_post_privacy",{uid:peepsodata.currentuserid,user_id:peepsodata.userid,act_id:t,acc:e.data("option-value"),_wpnonce:peepsodata.peepso_nonce},function(e){o.css("opacity",""),e.has_errors&&(o.find(r).attr("class",s),o.find(r).next("span").text(i),psmessage.show("",e.errors[0]).fade_out(psmessage.fade_time))}),!1},t.prototype.toggle_comment_box=function(e,t){var o,s=jQuery("#act-new-comment-"+e);return s.length<=0&&0<(o=(o=jQuery("#comment-item-"+e)).length<=0?jQuery(".ps-js-activity--"+e):o).length&&(s=o.parent(),e=(o.parent().attr("id")+"").split("-").pop(),s=jQuery("#act-new-comment-"+e)),s.length<=0||(t?s.hide():s.show()),!1},t.prototype.delete_activity=function(e,t){var o=jQuery.extend({act_id:e,uid:peepsodata.currentuserid,_wpnonce:jQuery("#_delete_nonce").val()},t||{}),t=jQuery("[data-act-delete-id="+e+"]"),e="";return 0<t.length&&(e=t.text()),pswindow.confirm_delete(function(){peepso.postJson("activity.ajax_delete_activity",o,function(e){e.success?window.location.reload():psmessage.show("",e.errors[0]).fade_out(psmessage.fade_time)})},e),!1},t.prototype.edit_activity_description=function(e,t,o){var s=jQuery(".ps-js-modal-attachment--"+e);if(!(0<s.find(".cstream-edit textarea").length))return s.length&&s.is(":hidden")&&s.closest(".ps-lightbox").find(".ps-lightbox-data-toggle").trigger("click"),e={act_id:e,type:t,object_id:o,uid:peepsodata.currentuserid},this.edit_activity_description_xhr&&this.edit_activity_description_xhr.ret&&this.edit_activity_description_xhr.ret.abort(),this.edit_activity_description_xhr=peepso.postJson("activity.edit_description",e,function(e){var t;e.success&&(t=jQuery(e.data.html),s.find(".ps-stream-attachment").first().hide().after(t),jQuery("#peepso-wrap").trigger("post_edit.shown",[e.data.act_id,t]),s.find(".cstream-edit textarea").on("input propertychange",function(){jQuery(this).val().length>peepsodata.postsize&&jQuery(this).val(jQuery(this).val().substring(0,peepsodata.postsize))}).autosize().focus())}),!1},t.prototype.remove_broken_thumbnails=function(){jQuery(".ps-media-thumbnail img").each(function(){var e=new Image,t=this;e.onerror=function(){jQuery(t).closest(".ps-media-thumbnail").remove()},e.src=t.src})},t.prototype.update_pinned_color=_.debounce(function(){var e,t,o,s,i,a=jQuery(".ps-stream__post-pin span"),n=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/;a.length&&(e=a.eq(0).closest(".ps-stream").find("a").eq(0).css("color"),t=a.css("color"),a.css("backgroundColor",e),e=e.match(n),t=t.match(n),e)&&t&&(o=[+e[1],+e[2],+e[3]],s=[+t[1],+t[2],+t[3]],i=0,_.each(o,function(e,t){i+=(o[t]-s[t])*(o[t]-s[t])}),Math.sqrt(i)<50)&&(t[1]=+t[1]+(30<+t[1]?-30:30),t[2]=+t[2]+(30<+t[2]?-30:30),t[3]=+t[3]+(30<+t[3]?-30:30),t="rgba("+t[1]+","+t[2]+","+t[3]+",1)",a.css("color",t))},500),t.prototype.parseXFBML=_.throttle(function(){peepso.util.fbParseXFBML()},2e3),e=jQuery,window.activity=new t,e(function(){activity.remove_broken_thumbnails(),activity.init()})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./datetime":3}],2:[function(e,t,o){!function(t){!function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};function r(e,t,o){(t=function(e){e=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:e+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}const p=["January","February","March","April","May","June","July","August","September","October","November","December"];const m=(e,t)=>{return new Date(e,t,0).getDate()},s=e=>{e=e.split("-");return new Date(+e[0],+e[1]-1,+e[2])},i=e=>{var t=e.getFullYear(),o=e.getMonth()+1,e=e.getDate();return[t,(o<10?"0":"")+o,(e<10?"0":"")+e].join("-")};o.default=class{constructor(e,t,o,s={}){r(this,"$year",void 0),r(this,"$month",void 0),r(this,"$date",void 0),r(this,"opts",void 0);var i=new Date,a=i.getFullYear(),i={monthNames:p,defaultDate:new Date(i.getTime()),minDate:new Date(a-80,0,1,1,0,0),maxDate:new Date(a+80,11,31,1,0,0),onSelect:()=>{}};this.opts=n.default.extend(i,s),this.$year=(0,n.default)(e).on("change",e=>this.onChangeYear(e)),this.$month=(0,n.default)(t).on("change",e=>this.onChangeMonth(e)),this.$date=(0,n.default)(o).on("change",()=>this.onChangeDate()),this.populateYear(),this.populateMonth(+this.$year.val()),this.populateDate(+this.$year.val(),+this.$month.val())}getDate(e=!1){var t=+this.$date.val(),o=+this.$month.val(),s=+this.$year.val();return e?`${t} ${p[o-1]} `+s:i(new Date(s,o-1,t))}setDate(e){var t=(e="string"==typeof e?s(e):e).getDate(),o=e.getMonth()+1,e=e.getFullYear();this.populateYear(e),this.populateMonth(e,o),this.populateDate(e,o,t)}populateYear(e){let{minDate:t,maxDate:o,defaultDate:s}=this.opts,i=t.getFullYear(),a=o.getFullYear(),n="";for(e=e||s.getFullYear();i<=a;i++)n+=`<option value="${i}"${i===e?' selected="selected"':""}>${i}</option>`;this.$year.html(n)}populateMonth(e,t){let{minDate:o,maxDate:s,defaultDate:i,monthNames:a}=this.opts,n=o.getFullYear(),r=s.getFullYear(),p=n<e?1:o.getMonth()+1,c=e<r?12:s.getMonth()+1,d="";for(t=t||+this.$month.val()||i.getMonth()+1;p<=c;p++)d+=`<option value="${p}"${p===t?' selected="selected"':""}>${a[p-1]}</option>`;this.$month.html(d)}populateDate(e,t,o){let{minDate:s,maxDate:i,defaultDate:a}=this.opts,n=s.getFullYear(),r=i.getFullYear(),p=s.getMonth()+1,c=i.getMonth()+1,d=n<e||p<t?1:s.getDate(),u=e<r||t<c?m(e,t):i.getDate(),l="";for(o=o||((o=+this.$date.val())?Math.min(o,u):a.getDate());d<=u;d++)l+=`<option value="${d}"${d===o?' selected="selected"':""}>${d}</option>`;this.$date.html(l)}onChangeYear(e){e=+e.target.value;this.populateMonth(e),this.$month.triggerHandler("change")}onChangeMonth(e){var t=+this.$year.val(),e=+e.target.value;this.populateDate(t,e),this.$date.triggerHandler("change")}onChangeDate(){this.opts.onSelect(this.getDate())}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"DateSelector",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(o,"TimeSelector",{enumerable:!0,get:function(){return i.default}});var s=a(e("./date-selector")),i=a(e("./time-selector"));function a(e){return e&&e.__esModule?e:{default:e}}},{"./date-selector":2,"./time-selector":4}],4:[function(e,t,o){!function(t){!function(){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};function a(e,t,o){(t=function(e){e=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:e+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}const s=(e,t)=>e="PM"!==t.toUpperCase()?12===e?0:e:12===e?12:e+12,n=e=>{let t;return{hour:e=e<12?(t="AM",0===e?12:e):(t="PM",12===e?12:e-12),ampm:t}};o.default=class{constructor(e,t,o,s){a(this,"$hour",void 0),a(this,"$minute",void 0),a(this,"$ampm",void 0),a(this,"opts",void 0),a(this,"isAmpm",void 0);this.isAmpm=!(!o||!o.nodeType),this.opts=i.default.extend({am:"AM",pm:"PM",step:15,onSelect:()=>{}},(this.isAmpm?s:o)||{}),this.$hour=(0,i.default)(e).on("change",()=>this.onChangeHour()),this.$minute=(0,i.default)(t).on("change",()=>this.onChangeMinute()),this.isAmpm&&(this.$ampm=(0,i.default)(o).on("change",()=>this.onChangeAmpm())),this.populateHour(),this.populateMinute(),this.populateAmpm()}getTime(e=!1){let t=+this.$hour.val(),o=+this.$minute.val();return e?(t<10?"0":"")+t+":"+(o<10?"0":"")+o+(this.isAmpm?" "+this.$ampm.val().toUpperCase():""):((t=this.isAmpm?s(t,this.$ampm.val()):t)<10?"0":"")+t+":"+(o<10?"0":"")+o}setTime(e){let[t,o]=e.split(":");t=+t,this.isAmpm?(t=n(t),this.$ampm.val(t.ampm),this.$hour.val(t.hour)):this.$hour.val(t),o=Math.min(59,Math.max(0,+o)),o-=o%this.opts.step,this.$minute.val(o)}populateHour(e){let t=this.isAmpm?1:0,o=this.isAmpm?12:23,s="";for(;t<=o;t++)s+=`<option value="${t}"${t===e?' selected="selected"':""}>${t<10?"0":""}${t}</option>`;this.$hour.html(s)}populateMinute(e){let t=0,o="";for(;t<=59;t+=this.opts.step)o+=`<option value="${t}"${t===e?' selected="selected"':""}>${t<10?"0":""}${t}</option>`;this.$minute.html(o)}populateAmpm(s){if(this.isAmpm){let t=[{value:"AM",label:this.opts.am},{value:"PM",label:this.opts.pm}],o="";for(let e=0;e<t.length;e++)o+=`<option value="${t[e].value}"${t[e].value===s?' selected="selected"':""}>${t[e].label||t[e].value}</option>`;this.$ampm.html(o)}}onChangeHour(){this.opts.onSelect(this.getTime())}onChangeMinute(){this.opts.onSelect(this.getTime())}onChangeAmpm(){this.opts.onSelect(this.getTime())}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/activity.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/image-scale.min.js*/
try {
	/*! image-scale v1.3.2 | ©2012-2013 Nicolas BADIA | Licensed under the MIT license */
!function(e){e.fn.imageScale=function(a){return this.each(function(){var b=e(this),c=b.data("imageScale");if(!c){b.css("opacity",0);var g=b[0].complete,f=e.extend({},e.fn.imageScale.defaults,"object"==typeof a&&a),h=function(){b.data("imageScale",c=new l(this,f));f.rescaleOnResize&&e(window).resize(function(a){c.scheduleScale()});c.scale(!0);var a=f.callback;"function"===typeof a?a(b,c):a&&"object"===typeof a&&a.target[a.action].apply(a.target,[b,c])};g?h.apply(b[0]):b.load(h)}else if("string"==typeof a)c[a]()})};
e.fn.imageScale.defaults={scale:"best-fill",align:"center",parent:null,hideParentOverflow:!0,fadeInDuration:0,rescaleOnResize:!0,callback:null,debug:0};var l=function(a,b){this.options=b;this.element=a;this.$element=e(a);this.elementWidth=a.naturalWidth||a.width;this.elementHeight=a.naturalHeight||a.height;this.$parent=b.parent?b.parent:e(e(a).parent()[0])};e.fn.imageScale.Constructor=l;l.prototype={NONE:"none",FILL:"fill",BEST_FILL:"best-fill",BEST_FIT:"best-fit",BEST_FIT_DOWN_ONLY:"best-fit-down",
ALIGN_LEFT:"left",ALIGN_RIGHT:"right",ALIGN_CENTER:"center",ALIGN_TOP:"top",ALIGN_BOTTOM:"bottom",ALIGN_TOP_LEFT:"top-left",ALIGN_TOP_RIGHT:"top-right",ALIGN_BOTTOM_LEFT:"bottom-left",ALIGN_BOTTOM_RIGHT:"bottom-right",constructor:l,scale:function(a){if(!this._isDestroyed){var b=this.options,c=this.$parent,g=this.$element;a&&(b.hideParentOverflow&&c.css({overflow:"hidden"}),g.css({opacity:1}));this._didScheduleScale=!1;if(!b.rescaleOnResize||this._needUpdate()){var f=c.outerWidth(),h=c.outerHeight(),
e=c.innerWidth(),c=c.innerHeight(),e=f-e,c=h-c,k=g.attr("data-scale"),d=g.attr("data-align"),k=k?k:b.scale,l=d?d:b.align,d=b.fadeInDuration;if(k){this._cacheDestWidth===f&&this._cacheDestHeight===h&&2<b.debug&&console.log("imageScale - DEBUG NOTICE: The parent size hasn't changed: dest width: '"+f+"' - dest height: '"+h+"'.");var m=this.elementWidth,n=this.elementHeight;f&&h&&m&&n?(this._cacheDestWidth=f,this._cacheDestHeight=h,b=this._innerFrameForSize(k,l,m,n,f,h),e&&(b.x-=e/2),c&&(b.y-=c/2),g.css({position:"absolute",
top:b.y+"px",left:b.x+"px",width:b.width+"px",height:b.height+"px","max-width":"none"}),a&&d&&(g.css({display:"none"}),g.fadeIn(d))):0<b.debug&&console.error("imageScale - DEBUG ERROR: The dimensions are incorrect: source width: '"+m+"' - source height: '"+n+"' - dest width: '"+f+"' - dest height: '"+h+"'.")}else 2<b.debug&&console.log("imageScale - DEBUG NOTICE: The scale property is null.")}}},destroy:function(){this._isDestroyed=!0;this.$element.removeData("imageScale")},_innerFrameForSize:function(a,
b,c,g,f,h){var e,k,d;d={x:0,y:0,width:f,height:h};if(a===this.FILL)return d;e=f/c;k=h/g;switch(a){case this.BEST_FILL:a=e>k?e:k;break;case this.BEST_FIT:a=e<k?e:k;break;case this.NONE:a=1;break;default:a!==this.BEST_FIT_DOWN_ONLY&&1<this.options.debug&&console.warn("imageScale - DEBUG WARNING: The scale '"+a+"' was not understood."),a=c>f||g>h?e<k?e:k:1}c*=a;g*=a;d.width=Math.round(c);d.height=Math.round(g);switch(b){case this.ALIGN_LEFT:d.x=0;d.y=h/2-g/2;break;case this.ALIGN_RIGHT:d.x=f-c;d.y=h/
2-g/2;break;case this.ALIGN_TOP:d.x=f/2-c/2;d.y=0;break;case this.ALIGN_BOTTOM:d.x=f/2-c/2;d.y=h-g;break;case this.ALIGN_TOP_LEFT:d.x=0;d.y=0;break;case this.ALIGN_TOP_RIGHT:d.x=f-c;d.y=0;break;case this.ALIGN_BOTTOM_LEFT:d.x=0;d.y=h-g;break;case this.ALIGN_BOTTOM_RIGHT:d.x=f-c;d.y=h-g;break;default:b!==this.ALIGN_CENTER&&1<this.options.debug&&console.warn("imageScale - DEBUG WARNING: The align '"+b+"' was not understood."),d.x=f/2-c/2,d.y=h/2-g/2}return d},_needUpdate:function(){var a=e(window).height()+
" "+e(window).width();return this._lastWindowSize!==a?(this._lastWindowSize=a,!0):!1},scheduleScale:function(){if(!this._didScheduleScale)if(window.requestAnimationFrame){var a=this;this._didScheduleScale=!0;requestAnimationFrame(function(){a.scale()})}else this.scale()},_cacheDestWidth:null,_cacheDestHeight:null,_lastWindowSize:null,_didScheduleScale:null}}(window.jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/image-scale.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/modal-comments.min.js*/
try {
	function PsModalComments(){this.current_object=null,this.objects={}}var ps_comments=new PsModalComments;PsModalComments.prototype.init=function(){peepso.observer.addAction("peepso_delete_post",function(e){peepso.lightbox("close")},10,1)},PsModalComments.prototype.open=function(e,s,n,t){var c=jQuery.extend({object_id:e,type:s},t||{});return peepso.lightbox(function(o){peepso.disableAuth().postJson("modalcomments.get_object",c,function(e){var t=[];(n=n||{}).type=s,e.success&&(t=e.data.objects,n=jQuery.extend({index:e.data.index,afterchange:function(e){jQuery(document).trigger("peepso_tags_init_comments"),activity.setup_comment_textarea(),peepso.observer.applyFilters("modalcomments.afterchange",e),e.$object&&peepso.observer.applyFilters("peepso_activity",e.$object),e.$attachment&&(peepso.observer.applyFilters("peepso_activity",e.$attachment),e.$attachment.find(".ps-stream-attachment, .ps-comment-item").each(function(e){var t=jQuery(this),o=t.html(),o=peepso.observer.applyFilters("peepso_activity_content",o);t.html(o)}))}},n)),o(t,n)})}),!1},PsModalComments.prototype.next=function(){this.save_object()},PsModalComments.prototype.prev=function(){this.save_object()},PsModalComments.prototype.save_object=function(){void 0!==this.current_object&&(this.objects[this.current_object.ID]=this.current_object)},jQuery(document).ready(function(){ps_comments.init()});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/modal-comments.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/reactions.min.js*/
try {
	/* [inline: cdata] */var peepsoreactionsdata={"ajaxloader":"https:\/\/topremedyclub.com\/wp-content\/plugins\/peepso-core\/assets\/images\/ajax-loader.gif?mt=1722882856"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/reactions.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}try {
	!function(t,e){function a(){var t=c(document.body);t.on("keyup",c.proxy(this._on_document_keyup,this)),t.on("click",c.proxy(this._on_document_click,this)),+peepsodata.currentuserid&&!r.isTouch()&&t.on("mouseenter",".ps-js-reaction-toggle",t=>{var e,a=c(t.currentTarget),s=a.data("stream-id"),o=c(".ps-js-act-reactions-options--"+s),t=o.find(".ps-reaction-option").not(".ps-reaction-option-delete");if(!(t.length<=1))return a.hasClass("liked")?(a.attr("onclick",a.attr("ps-onclick")),a.off("mouseenter.reactions mouseleave.reactions"),o.off("mouseenter.reactions mouseleave.reactions"),void a.removeData("reactions.init")):void(a.data("reactions.init")||(a.data("reactions.init",1).attr("ps-onclick",a.attr("onclick")).attr("onclick","event.preventDefault(); event.stopPropagation();").on("mouseenter.reactions",()=>{if(a.hasClass("liked"))return a.attr("onclick",a.attr("ps-onclick")),a.off("mouseenter.reactions mouseleave.reactions"),o.off("mouseenter.reactions mouseleave.reactions"),void a.removeData("reactions.init");o.is(":hidden")&&(clearTimeout(e),this.action_reactions(a[0],s))}).on("mouseleave.reactions",()=>{clearTimeout(e),e=setTimeout(()=>{o.is(":visible")&&this.action_reactions(a[0],s)},500)}),o.on("mouseenter.reactions",()=>{clearTimeout(e)}).on("mouseleave.reactions",()=>{clearTimeout(e),e=setTimeout(()=>{o.is(":visible")&&this.action_reactions(a[0],s)},500)}),a.trigger("mouseenter.reactions")))})}var c,r,l;reactions=(c=t,r=e,l='<img src="'+peepsoreactionsdata.ajaxloader+'"/>',a.prototype.action_reactions=function(t,e){var a=c(".ps-reaction-toggle--"+e),s=c(".ps-js-act-reactions-options--"+e),e=c(".ps-reaction-option-delete--"+e),o=s.find(".ps-reactions__list"),i=s.eq(0).find(".ps-reaction-option").not(".ps-reaction-option-delete");1===i.length?(a.hasClass("liked")?e:i).click():(a.hasClass("liked")?(e.show(),o.addClass("ps-reactions__list--selected")):(e.hide(),o.removeClass("ps-reactions__list--selected")),s.fadeToggle(200))},a.prototype.action_react=function(t,a,e,s){var o,i;this.action_react_progress||(this.action_react_progress=!0,e={act_id:a,post_id:e,react_id:s},o=this,i=c(".ps-js-act-reactions--"+a),c(".ps-js-act-reactions-options--"+a).fadeOut(200),$like_a=c(".ps-reaction-toggle--"+a),$like_span=$like_a.children("span"),$like_a.removeClass(),$like_a.addClass("ps-reaction-toggle--"+a+" ps-js-reaction-toggle"),$like_a.addClass("ps-reaction"),$like_a.addClass("liked"),$like_a.addClass("ps-post__action"),$like_a.addClass("ps-reaction-emoticon-"+s),i.animate({opacity:.5}),$like_span.html(l),r.postJson("reactionsajax.react",e,function(t){var e="ps-reactions__likes--hide";o.action_react_progress=!1,t.success?(c.isNumeric(t.data.reaction_mine_id)&&$like_span.html("<span>"+t.data.reaction_mine_label+"<span>"),t.data.html_reactions?(i.removeClass(e),i.html(t.data.html_reactions).animate({opacity:1})):(i.addClass(e),i.html("")),r.hooks.doAction("reaction_added",a)):alert("Something went wrong")}))},a.prototype.action_react_delete=function(t,a,e){var s,o,i;this.action_react_progress||(this.action_react_progress=!0,e={act_id:a,post_id:e},s=this,o=c(".ps-js-act-reactions--"+a),c(".ps-reaction-option--"+a).removeClass("ps-reaction-option-selected"),i=(i=c(".ps-js-act-reactions-options--"+a).fadeOut(200).find(".ps-reaction-option").first().attr("class").match(/ps-reaction-emoticon-\d+/))?i[0]:"ps-reaction-emoticon-0",$like_a=c(".ps-reaction-toggle--"+a),$like_span=$like_a.children("span"),$like_a.removeClass(),$like_a.addClass("ps-reaction-toggle--"+a+" ps-js-reaction-toggle"),$like_a.addClass("ps-reaction"),$like_a.removeClass("liked"),$like_a.addClass("ps-post__action"),$like_a.addClass(i),o.animate({opacity:.5}),$like_span.html(l),r.postJson("reactionsajax.react_delete",e,function(t){var e="ps-reactions__likes--hide";s.action_react_progress=!1,t.success?(c.isNumeric(t.data.reaction_mine_id)||$like_span.html("<span>"+t.data.reaction_mine_label+"<span>"),t.data.html_reactions?(o.removeClass(e),o.html(t.data.html_reactions).animate({opacity:1})):(o.addClass(e),o.html("")),r.hooks.doAction("reaction_deleted",a)):alert("Something went wrong")}))},a.prototype.action_html_reactions=function(t,e){var a,s,o;this.action_react_progress||(this.action_react_progress=!0,a={act_id:e},s=this,(o=c(".ps-js-act-reactions--"+e)).html(o.html()+" "+l),o.animate({opacity:.5}),r.postJson("reactionsajax.html_reactions",a,function(t){s.action_react_progress=!1,t.success?(o.removeClass("ps-reactions__likes--open"),o.html(t.data.html_reactions).animate({opacity:1})):alert("Something went wrong")}))},a.prototype.action_html_reactions_details=function(t,e,a){var s,o,i,n;this.action_react_progress||(this.action_react_progress=!0,s={act_id:e},o=this,i=c(".ps-js-act-reactions--"+e),n=i.html(),i.animate({opacity:.5}),i.html(n+" "+l),r.postJson("reactionsajax.html_reactions_details",s,function(t){o.action_react_progress=!1,i.addClass("ps-reactions__likes--open"),i.html(t.success?t.data.html_reactions:n).animate({opacity:1})}))},a.prototype._on_document_keyup=function(t){27===t.keyCode&&c(".ps-js-reaction-options:visible").fadeOut(200)},a.prototype._on_document_click=function(t){var t=c(t.target).closest(".ps-js-reaction-options, .ps-js-reaction-toggle");t.length?(t=t.closest(".js-stream-actions").nextAll(".ps-js-reaction-options"),c(".ps-js-reaction-options:visible").not(t).fadeOut(200)):c(".ps-js-reaction-options:visible").fadeOut(200)},new a)}(jQuery,peepso);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/reactions.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/hashtags.min.js*/
try {
	!function s(a,l,r){function n(e,t){if(!l[e]){if(!a[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(o)return o(e,!0);throw(i=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",i}i=l[e]={exports:{}},a[e][0].call(i.exports,function(t){return n(a[e][1][t]||t)},i,i.exports,s,a,l,r)}return l[e].exports}for(var o="function"==typeof require&&require,t=0;t<r.length;t++)n(r[t]);return n}({1:[function(t,e,u){!function(d){!function(){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var t,a=(t="undefined"!=typeof window?window.jQuery:void 0!==d?d.jQuery:null)&&t.__esModule?t:{default:t},l="undefined"!=typeof window?window.peepso:void 0!==d?d.peepso:null,e="undefined"!=typeof window?window.peepsodata:void 0!==d?d.peepsodata:null;e.hashtags.url;const r=+e.hashtags.everything||0,n=!r&&+e.hashtags.min_length||0,o=!r&&+e.hashtags.max_length||1e4,i=!r&&+e.hashtags.must_start_with_letter||0,s=(()=>{let t,e;return e=r?"(^|>|\\s)(#([^#\\s<]+))":"(^|>|\\s)(#("+((t=i)?"[a-z]":"")+"[a-z0-9]{"+Math.max(0,n-(t?1:0))+","+Math.max(0,o-(t?1:0))+"}))",new RegExp(e,"ig")})();let h;class p{constructor(){return h||((h=this).hashtag=void 0,this.$filter=null,this.$toggle=null,this.$input=null,this.$apply=null,this.assignHooks(),(0,a.default)(()=>{this.initActivityFilter()})),h}filter(e){var i=this.hashtag;if(this.hashtag=e){var s=this.$toggle.data("keyword")+e+' <i class="ps-posts__filter-remove gcis gci-times-circle"></i>';this.$toggle.html(s),this.$toggle.one("click","i",()=>{this.filter("")});let t=(0,a.default)("#postbox-main textarea.ps-postbox-textarea").eq(0);t.length&&!t.val()&&t.val(`#${e} `).trigger("input")}else{s=this.$toggle.data("empty");this.$toggle.html(s);let t=(0,a.default)("#postbox-main textarea.ps-postbox-textarea").eq(0);t.length&&t.val()===`#${i} `&&t.val("").trigger("input")}this.$input.val(e),l.observer.doAction("peepso_stream_reset")}assignHooks(){l.observer.addFilter("peepso_postbox_beautifier",t=>t.replace(s,(t,e,i,s)=>e+'<ps_span class="ps-tag">'+i+"</ps_span>"),20,1),l.observer.addFilter("peepso_activity",t=>t=this.hashtag?t.map(function(){let t=(0,a.default)(this),e=t.html();return t.closest(".ps-js-activity").length&&"string"==typeof e&&!e.match(s)?null:this}):t,20,1),l.observer.addFilter("show_more_posts",t=>(this.hashtag&&(t.search_hashtag=this.hashtag),t),10,1)}initActivityFilter(){this.$filter=(0,a.default)(".ps-js-activitystream-filter").filter("[data-id=peepso_search_hashtag]"),this.$toggle=this.$filter.find(".ps-js-dropdown-toggle span"),this.$input=this.$filter.find("input[type=text]"),this.$apply=this.$filter.find(".ps-js-search-hashtag"),this.$input.on("input",t=>{let e=t.target,i=e.value,s;s=r?i.replace(l.browser.isIOS()?/[#<]/g:/[#\s<]/g,""):i.replace(/[^a-z0-9]/gi,""),i!==s&&(e.value=s);t=s.length;t<n||t>o?this.$apply.attr("disabled","disabled"):this.$apply.removeAttr("disabled")}).triggerHandler("input"),this.$input.on("keyup",t=>{13===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.$apply.click())}),this.$apply.on("click",()=>{var t=this.$input.val().trim(),e=t.length;e>=n&&e<=o&&this.filter(t)});let t=decodeURIComponent(window.location.href),e=r?/\/\??hashtag\/([^#\s<\/]+)/:/\/\??hashtag\/([a-z0-9]+)/i,i=t.match(e);i&&this.filter(i[1])}}new(u.default=p)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/hashtags.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/page-autoload.min.js*/
try {
	!function(e){function t(){return this.init.apply(this,arguments)}var i;PsPageAutoload=(i=e,t.prototype={init:function(e,t){var s;if(e)return s=+peepsodata.loadmore_enable,s=peepso.isMobile()?1===s||2===s:1===s||3===s,this._css_prefix=e,this._container=t,this._config_loadmore_enable=s,this._config_loadmore_repeat=this._config_loadmore_enable?+peepsodata.loadmore_repeat:0,i(_.bind(this.onDocumentLoaded,this)),this;throw new Error("CSS prefix is not supplied!")},onDocumentLoaded:function(){if(this._search_$ct=i(this._css_prefix,this._container).eq(0),this._search_$trigger=i(this._css_prefix+"-triggerscroll",this._container),this._search_$loading=i(this._css_prefix+"-loading",this._container),this._search_$nomore=i(peepsodata.activity.template_no_more).hide().insertBefore(this._search_$trigger),!this._search_$ct.length)return!1;this._search()},_search_url:"",_search_params:{},_search_loadmore_enable:null,_search:function(){this._search_toggle_autoscroll("off"),this._search_toggle_loading("show"),this._search_$ct.empty(),this._search_$nomore.hide(),this._search_params.page<=1&&(this._search_loadmore_enable=this._config_loadmore_enable,this._search_loadmore_repeat=this._config_loadmore_repeat,this._search_$loadmore)&&(this._search_$loadmore.remove(),this._search_$loadmore=null),this._search_debounced()},_search_next:function(){this._search_toggle_autoscroll("off"),this._search_toggle_loading("show"),this._search_params.page++,this._search_debounced()},_search_debounced:function(){clearTimeout(this._search_debounced_timer),this._search_debounced_timer=setTimeout(_.bind(function(){this._fetch(this._search_params).done(function(e){var t=this._search_render_html(e),s=!!t;void 0!==e.has_next&&(s=!!e.has_next),this._search_toggle_loading("hide"),t&&this._search_$ct.append(t),s?this._search_toggle_autoscroll("on"):this._search_$nomore.show()}).fail(function(e){this._search_toggle_loading("hide"),this._search_params.page<=1?this._search_$ct.html(e.join("<br>")):this._search_$nomore.show()})},this),500)},_search_render_html:function(){throw new Error("This method must be implemented by subclass!")},_search_toggle_loading:function(e){function t(e,t){(t=this._search_$loading).data("lazySrc")&&(t=this._search_$loading=i(this._css_prefix+"-loading")),"show"===e?t.show():t.hide()}"show"===e?(clearTimeout(this._search_toggle_loading_timer),t.call(this,e)):"hide"===e&&(this._search_toggle_loading_timer=setTimeout(i.proxy(function(){t.call(this,e)},this),1e3))},_search_toggle_autoscroll:function(e){var t="scroll"+this._css_prefix,s=i(peepso.observer.applyFilters("autoload_scrollable_container",window));"off"===e?s.off(t):"on"===e&&this._search_$trigger.length&&(this._search_loadmore_enable?this._search_should_load_more()?this._search_next():(this._search_$loadmore=i(peepsodata.activity.template_load_more).insertAfter(this._search_$ct),this._search_$loadmore.one("click",i.proxy(function(e){this._search_$loadmore.remove(),this._search_loadmore_repeat||(this._search_loadmore_enable=!1),this._search_next()},this))):s.off(t).on(t,i.proxy(function(){this._search_should_load_more()&&this._search_next()},this)).trigger(t))},_search_get_items:function(){return i()},_search_should_load_more:function(){var e=+peepsodata.activity_limit_below_fold,t=this._search_get_items();return this._search_loadmore_enable&&this._search_loadmore_repeat?this._search_params.page%this._search_loadmore_repeat!=0:(e=0<e?e:3,this._search_params.limit&&(e*=this._search_params.limit),!!((t=t.slice(0-e).eq(0)).length&&(this._search_loadmore_enable?t.eq(0).offset():t.get(0).getBoundingClientRect()).top<(window.innerHeight||document.documentElement.clientHeight)))},_fetch:function(e){return i.Deferred(i.proxy(function(t){e=i.extend({},e),_.isUndefined(e.limit)||(e.limit*=2),this._fetch_xhr&&this._fetch_xhr.abort(),this._fetch_xhr=peepso.getJson(this._search_url,e,i.proxy(function(e){e.success?t.resolveWith(this,[e.data]):t.rejectWith(this,[e.errors])},this))},this))}},t)}(jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/page-autoload.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/blogposts.min.js*/
try {
	!function i(u,s,f){function a(t,e){if(!s[t]){if(!u[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(c)return c(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var n=s[t]={exports:{}};u[t][0].call(n.exports,function(e){return a(u[t][1][e]||e)},n,n.exports,i,u,s,f)}return s[t].exports}for(var c="function"==typeof require&&require,e=0;e<f.length;e++)a(f[e]);return a}({1:[function(i,e,t){(function(e){"use strict";var o=n("undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null),r=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};r.get||r.set?Object.defineProperty(t,o,r):t[o]=e[o]}return t.default=e,t}}("undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null),t="undefined"!=typeof window?window.peepsodata:void 0!==e?e.peepsodata:null;n(i("./page-blogposts"));function n(e){return e&&e.__esModule?e:{default:e}}r.default.blogposts={deletePost:function(e){return activity.action_delete(e,{},t.blogposts.delete_post_warning),!1}},(0,o.default)(function(){var e=(0,o.default)(".ps-blogposts__authorbox .ps-blogposts__authorbox-desc");e.length&&e.each(function(){var e=(0,o.default)(this);if(e.find(".peepso-markdown").length){var t=r.observer.applyFilters("peepso_parse_content",e.html());e.html(t)}})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./page-blogposts":2}],2:[function(e,t,o){(function(e){"use strict";var t,r=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=peepsodata.ajaxurl,a=peepsodata.currentuserid,c=peepsodata.userid;new(function(e){function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i(this,u(o).call(this,e)))._search_url=f,t._search_params={action:"peepsoblogposts_user_posts",uid:a,user_id:c,page:1,sort:"desc"},(0,r.default)(function(){t.init_page()}),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(o,PsPageAutoload),function(e,t,o){t&&n(e.prototype,t),o&&n(e,o)}(o,[{key:"init_page",value:function(){var e=this;if(!this._search_$ct.length)return this;this._search_$sortby=(0,r.default)(".ps-js-blogposts-sortby").on("change",function(){return e._filter()}),this._filter()}},{key:"_search_render_html",value:function(e){return e||""}},{key:"_search_get_items",value:function(){return this._search_$ct.children(".ps-blogposts__post")}},{key:"_fetch",value:function(e){var o=this;return r.default.Deferred(function(t){o._fetch_xhr&&o._fetch_xhr.abort(),o._fetch_xhr=r.default.post(o._search_url,e,function(e){e.success?t.resolveWith(o,[e.html]):t.rejectWith(o,[[e.error]])})})}},{key:"_filter",value:function(){var e=this._search_$sortby.val();this._fetch_xhr&&this._fetch_xhr.abort(),this._search_params.sort=e,this._search_params.page=1,this._search()}}]),o}())(".ps-js-blogposts")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/blogposts.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/markdown.min.js*/
try {
	!function n(r,i,s){function l(t,e){if(!i[t]){if(!r[t]){var u="function"==typeof require&&require;if(!e&&u)return u(t,!0);if(a)return a(t,!0);throw(u=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",u}u=i[t]={exports:{}},r[t][0].call(u.exports,function(e){return l(r[t][1][e]||e)},u,u.exports,n,r,i,s)}return i[t].exports}for(var a="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(d,e,t){!function(r){!function(){"use strict";var s=u("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null),e=u("undefined"!=typeof window?window._:void 0!==r?r._:null),l="undefined"!=typeof window?window.peepso:void 0!==r?r.peepso:null,t="undefined"!=typeof window?window.peepsodata:void 0!==r?r.peepsodata:null,a=u(d("marked")),i=u(d("load-script")),o=d("fg-loadcss");function u(e){return e&&e.__esModule?e:{default:e}}d("truncate/jquery.truncate.js");const D=+t.markdown.no_paragraph,c=+t.markdown.enable_heading;a.default.setOptions({renderer:new a.default.Renderer,headerIds:!1,gfm:!0,breaks:!0,smartLists:!0});let h=()=>{h=()=>{},n();l.observer.addFilter("peepso_activity_content",e=>(n(),e),10,1)},p=u=>{let n=window.hljs,r;(0,o.loadCSS)(t.markdown["highlight-css"]),(0,i.default)(t.markdown["highlight-js"],function(e,t){r=window.hljs,window.hljs=n,u(r)}),p=e=>{let t=0,u;r?e(r):u=setInterval(()=>{(r||20<++t)&&(clearInterval(u),r&&e(r))},1e3)}},n=e.default.debounce(()=>{p(u=>{(0,s.default)("[data-ps-hljs]").each((e,t)=>{(0,s.default)(t).removeAttr("data-ps-hljs"),u.highlightBlock(t)})})},2e3);const f=e=>{let t=(0,s.default)("<div />").html(e),u=t.find(".peepso-markdown");return u.length?(u.each(function(){let t=(0,s.default)(this),u=t.parent(".ps-js-content-excerpt"),e,n,r;if("parsed"===t.attr("data-ps-markdown"))return!0;if(t.attr("data-ps-markdown","parsed"),e=t.find(".peepso-markdown"),e.each(function(e,t){e=document.createTextNode(`[NESTED_MD_${e}]`);t.replaceWith(e)}),u.length){let e=u.next(".ps-js-content-full");r=t.html().length,t.html(e.children(".peepso-markdown").html())}try{var i;n=t.html(),n=l.observer.applyFilters("markdown_precompile",n),n=n.replace(/<br(\s*\/)?>/gi,"\n"),n=n.replace(/\[([^\[\]]+)\]\((<a[^\(\)]+<\/a>)\)/gi,function(e,t,u){return u=u.replace(/>http[^<]+<\/a>/,`>${t}</a>`)}),n=n.replace(/\n&gt; /gi,"\n> "),n=n.replace(D?/\n(?=\n)/g:/\n(?=\n\n)/g,"[PRESERVE_BR]"),D&&(n=n.replace(/((?:^|\n)\s*(?:\*|\+|-|\d+\.)\s[\s\S]*?)\[PRESERVE_BR\]\n/gi,function(e,t){return`${t}\n\n`}),n=n.replace(/((?:^|\n)>\s[\s\S]*?)\[PRESERVE_BR\]\n/gi,function(e,t){return`${t}\n\n`})),n=n.replace(/`[^`]+`/gi,function(e){return e=(e=(e=e.replace(/\[PRESERVE_BR\]/g,"\n")).replace(/<a[^>]+?>(?!<\/a>)(.+?)<\/a>/gi,"$1")).replace(/<span.+?ps-stream-hashtag[^>]+>(.+?)<\/span>/gi,"$1")}),n=n.replace(/\[PRESERVE_BR\]/g,"\n&nbsp;"),n=(0,a.default)(n),n=n.replace(/&amp;/gi,"&"),n=n.replace(/&nbsp;<br>/g,"<br>"),n.match(/<code/i)&&(i=/(<code)([^>]+class="[^>]*lang(uage|))/gi,n.match(i)&&(n=n.replace(i,'$1 data-ps-hljs="1"$2'),h())),c||(n=n.replace(/<(\/?)h[1-6]/gi,"<$1p")),n=l.observer.applyFilters("markdown_postcompile",n)}catch(e){}e.each(function(e,t){t=f(t.outerHTML);n=n.replace(`[NESTED_MD_${e}]`,t)}),n&&(u.length&&(n=s.default.truncate(n,{length:r,ellipsis:""})),t.html(n))}),t.html()):e};l.observer.addFilter("peepso_activity_content",f,10,1),l.observer.addFilter("peepso_parse_content",f,10,1),(0,s.default)(()=>{let e=(0,s.default)(".peepso-markdown");e.each(function(){let e=(0,s.default)(this),t=(0,s.default)("<div />").html(e.clone());t.html(f(t.html())),e.replaceWith(t.find(".peepso-markdown"))})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fg-loadcss":2,"load-script":3,marked:4,"truncate/jquery.truncate.js":5}],2:[function(e,t,u){!function(e){!function(){!function(h){"use strict";function e(e,t,u,n){var r,i,s=h.document,l=s.createElement("link");i=t||(r=(s.body||s.getElementsByTagName("head")[0]).childNodes)[r.length-1];var a=s.styleSheets;if(n)for(var o in n)n.hasOwnProperty(o)&&l.setAttribute(o,n[o]);function D(e){for(var t=l.href,u=a.length;u--;)if(a[u].href===t)return e();setTimeout(function(){D(e)})}function c(){l.addEventListener&&l.removeEventListener("load",c),l.media=u||"all"}return l.rel="stylesheet",l.href=e,l.media="only x",function e(t){if(s.body)return t();setTimeout(function(){e(t)})}(function(){i.parentNode.insertBefore(l,t?i:i.nextSibling)}),l.addEventListener&&l.addEventListener("load",c),l.onloadcssdefined=D,D(c),l}void 0!==u?u.loadCSS=e:h.loadCSS=e}(void 0!==e?e:this)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,u){function i(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function s(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}t.exports=function(e,t,u){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");"function"==typeof t&&(u=t,t={}),u=u||function(){},r.type=(t=t||{}).type||"text/javascript",r.charset=t.charset||"utf8",r.async=!("async"in t)||!!t.async,r.src=e,t.attrs&&function(e,t){for(var u in t)e.setAttribute(u,t[u])}(r,t.attrs),t.text&&(r.text=""+t.text),("onload"in r?i:s)(r,u),r.onload||i(r,u),n.appendChild(r)}},{}],4:[function(e,t,u){var n,r;n=this,r=function(){"use strict";function r(e,t){for(var u=0;u<t.length;u++){var n=t[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var u=0,n=new Array(t);u<t;u++)n[u]=e[u];return n}function o(e,t){var u="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(u)return(u=u.call(e)).next.bind(u);if(Array.isArray(e)||(u=function(e,t){if(e){if("string"==typeof e)return i(e,t);var u=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(u="Object"===u&&e.constructor?e.constructor.name:u)||"Set"===u?Array.from(e):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){u&&(e=u);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var t={exports:{}};function e(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:e(),getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}};function u(e){return D[e]}var n=/[&<>"']/,s=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(c,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var p=/(^|[^\[])\^/g;var f=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var g={},F=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/;function k(e,t){g[" "+e]||(F.test(e)?g[" "+e]=e+"/":g[" "+e]=E(e,"/",!0));var u=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?u?t:e.replace(A,"$1")+t:"/"===t.charAt(0)?u?t:e.replace(C,"$1")+t:e+t}function E(e,t,u){var n=e.length;if(0===n)return"";for(var r=0;r<n;){var i=e.charAt(n-r-1);if(i!==t||u){if(i===t||!u)break;r++}else r++}return e.substr(0,n-r)}var m=function(e,t){if(t){if(n.test(e))return e.replace(s,u)}else if(l.test(e))return e.replace(a,u);return e},x=h,b=function(u,e){u=u.source||u,e=e||"";var n={replace:function(e,t){return t=(t=t.source||t).replace(p,"$1"),u=u.replace(e,t),n},getRegex:function(){return new RegExp(u,e)}};return n},B=function(e,t,u){if(e){var n;try{n=decodeURIComponent(h(u)).replace(f,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!d.test(u)&&(u=k(t,u));try{u=encodeURI(u).replace(/%25/g,"%")}catch(e){return null}return u},w={exec:function(){}},v=function(e){for(var t,u,n=1;n<arguments.length;n++)for(u in t=arguments[n])Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u]);return e},y=function(e,t){var u=e.replace(/\|/g,function(e,t,u){for(var n=!1,r=t;0<=--r&&"\\"===u[r];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(u.length>t)u.splice(t);else for(;u.length<t;)u.push("");for(;n<u.length;n++)u[n]=u[n].trim().replace(/\\\|/g,"|");return u},_=E,S=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var u=e.length,n=0,r=0;r<u;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1},z=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},$=function(e,t){if(t<1)return"";for(var u="";1<t;)1&t&&(u+=e),t>>=1,e+=e;return u+e},T=t.exports.defaults,R=_,I=y,j=m,q=S;function O(e,t,u){var n=t.href,r=t.title?j(t.title):null,t=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:u,href:n,title:r,text:t}:{type:"image",raw:u,href:n,title:r,text:j(t)}}_=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){e=this.rules.block.newline.exec(e);if(e)return 1<e[0].length?{type:"space",raw:e[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:R(e,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var u=t[0],e=function(e,t){if(null===(e=e.match(/^(\s+)(?:```)/)))return t;var u=e[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null!==t&&t[0].length>=u.length?e.slice(u.length):e}).join("\n")}(u,t[3]||"");return{type:"code",raw:u,lang:t[2]&&t[2].trim(),text:e}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var u=t[2].trim();return/#$/.test(u)&&(e=R(u,"#"),!this.options.pedantic&&e&&!/ $/.test(e)||(u=e.trim())),{type:"heading",raw:t[0],depth:t[1].length,text:u}}},t.nptable=function(e){e=this.rules.block.nptable.exec(e);if(e){var t={type:"table",header:I(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(t.header.length===t.align.length){for(var u=t.align.length,n=0;n<u;n++)/^ *-+: *$/.test(t.align[n])?t.align[n]="right":/^ *:-+: *$/.test(t.align[n])?t.align[n]="center":/^ *:-+ *$/.test(t.align[n])?t.align[n]="left":t.align[n]=null;for(u=t.cells.length,n=0;n<u;n++)t.cells[n]=I(t.cells[n],t.header.length);return t}}},t.hr=function(e){e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:e[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:e}}},t.list=function(e){e=this.rules.block.list.exec(e);if(e){for(var t,u,n,r,i,s,l=e[0],a=e[2],o=1<a.length,D={type:"list",raw:l,ordered:o,start:o?+a.slice(0,-1):"",loose:!1,items:[]},c=e[0].match(this.rules.block.item),h=!1,p=c.length,f=this.rules.block.listItemStart.exec(c[0]),d=0;d<p;d++){if(l=t=c[d],this.options.pedantic||(s=t.match(new RegExp("\\n\\s*\\n {0,"+(f[0].length-1)+"}\\S")))&&(u=t.length-s.index+c.slice(d+1).join("\n").length,D.raw=D.raw.substring(0,D.raw.length-u),l=t=t.substring(0,s.index),p=d+1),d!==p-1){if(n=this.rules.block.listItemStart.exec(c[d+1]),this.options.pedantic?n[1].length>f[1].length:n[1].length>=f[0].length||3<n[1].length){c.splice(d,2,c[d]+(!this.options.pedantic&&n[1].length<f[0].length&&!c[d].match(/\n$/)?"":"\n")+c[d+1]),d--,p--;continue}(!this.options.pedantic||this.options.smartLists?n[2][n[2].length-1]!==a[a.length-1]:o==(1===n[2].length))&&(u=c.slice(d+1).join("\n").length,D.raw=D.raw.substring(0,D.raw.length-u),d=p-1),f=n}n=t.length,~(t=t.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=t.length,t=this.options.pedantic?t.replace(/^ {1,4}/gm,""):t.replace(new RegExp("^ {1,"+n+"}","gm"),"")),t=R(t,"\n"),d!==p-1&&(l+="\n"),n=h||/\n\n(?!\s*$)/.test(l),d!==p-1&&(h="\n\n"===l.slice(-2),n=n||h),n&&(D.loose=!0),this.options.gfm&&(i=void 0,(r=/^\[[ xX]\] /.test(t))&&(i=" "!==t[1],t=t.replace(/^\[[ xX]\] +/,""))),D.items.push({type:"list_item",raw:l,task:r,checked:i,loose:n,text:t})}return D}},t.html=function(e){e=this.rules.block.html.exec(e);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):j(e[0]):e[0]}},t.def=function(e){e=this.rules.block.def.exec(e);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},t.table=function(e){e=this.rules.block.table.exec(e);if(e){var t={type:"table",header:I(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];for(var u=t.align.length,n=0;n<u;n++)/^ *-+: *$/.test(t.align[n])?t.align[n]="right":/^ *:-+: *$/.test(t.align[n])?t.align[n]="center":/^ *:-+ *$/.test(t.align[n])?t.align[n]="left":t.align[n]=null;for(u=t.cells.length,n=0;n<u;n++)t.cells[n]=I(t.cells[n].replace(/^ *\| *| *\| *$/g,""),t.header.length);return t}}},t.lheading=function(e){e=this.rules.block.lheading.exec(e);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},t.paragraph=function(e){e=this.rules.block.paragraph.exec(e);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},t.text=function(e){e=this.rules.block.text.exec(e);if(e)return{type:"text",raw:e[0],text:e[0]}},t.escape=function(e){e=this.rules.inline.escape.exec(e);if(e)return{type:"escape",raw:e[0],text:j(e[1])}},t.tag=function(e,t,u){e=this.rules.inline.tag.exec(e);if(e)return!t&&/^<a /i.test(e[0])?t=!0:t&&/^<\/a>/i.test(e[0])&&(t=!1),!u&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?u=!0:u&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(u=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:t,inRawBlock:u,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):j(e[0]):e[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var u=t[2].trim();if(!this.options.pedantic&&/^</.test(u)){if(!/>$/.test(u))return;e=R(u.slice(0,-1),"\\");if((u.length-e.length)%2==0)return}else{var n=q(t[2],"()");-1<n&&(i=(0===t[0].indexOf("!")?5:4)+t[1].length+n,t[2]=t[2].substring(0,n),t[0]=t[0].substring(0,i).trim(),t[3]="")}var r,n=t[2],i="";return this.options.pedantic?(r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n))&&(n=r[1],i=r[3]):i=t[3]?t[3].slice(1,-1):"",n=n.trim(),O(t,{href:(n=/^</.test(n)?this.options.pedantic&&!/>$/.test(u)?n.slice(1):n.slice(1,-1):n)&&n.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},t[0])}},t.reflink=function(e,t){if((u=this.rules.inline.reflink.exec(e))||(u=this.rules.inline.nolink.exec(e))){e=(u[2]||u[1]).replace(/\s+/g," ");if((e=t[e.toLowerCase()])&&e.href)return O(u,e,u[0]);var u=u[0].charAt(0);return{type:"text",raw:u,text:u}}},t.emStrong=function(e,t,u){void 0===u&&(u="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!u.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=n[1]||n[2]||"";if(!r||""===u||this.rules.inline.punctuation.exec(u)){var i,s=n[0].length-1,l=s,a=0,o="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+s);null!=(n=o.exec(t));)if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(i=i.length,n[3]||n[4])l+=i;else if(!((n[5]||n[6])&&s%3)||(s+i)%3){if(!(0<(l-=i)))return i=Math.min(i,i+l+a),Math.min(s,i)%2?{type:"em",raw:e.slice(0,s+n.index+i+1),text:e.slice(1,s+n.index+i)}:{type:"strong",raw:e.slice(0,s+n.index+i+1),text:e.slice(2,s+n.index+i-1)}}else a+=i}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var u=t[2].replace(/\n/g," "),n=/[^ ]/.test(u),e=/^ /.test(u)&&/ $/.test(u);return n&&e&&(u=u.substring(1,u.length-1)),u=j(u,!0),{type:"codespan",raw:t[0],text:u}}},t.br=function(e){e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}},t.del=function(e){e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2]}},t.autolink=function(e,t){e=this.rules.inline.autolink.exec(e);if(e){var u,t="@"===e[2]?"mailto:"+(u=j(this.options.mangle?t(e[1]):e[1])):u=j(e[1]);return{type:"link",raw:e[0],text:u,href:t,tokens:[{type:"text",raw:u,text:u}]}}},t.url=function(e,t){var u,n,r,i;if(u=this.rules.inline.url.exec(e)){if("@"===u[2])r="mailto:"+(n=j(this.options.mangle?t(u[0]):u[0]));else{for(;i=u[0],u[0]=this.rules.inline._backpedal.exec(u[0])[0],i!==u[0];);n=j(u[0]),r="www."===u[1]?"http://"+n:n}return{type:"link",raw:u[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t,u){e=this.rules.inline.text.exec(e);if(e){u=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):j(e[0]):e[0]:j(this.options.smartypants?u(e[0]):e[0]);return{type:"text",raw:e[0],text:u}}},e}(),y=w,S=b,w=v,b={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:y,table:y,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};b.def=S(b.def).replace("label",b._label).replace("title",b._title).getRegex(),b.bullet=/(?:[*+-]|\d{1,9}[.)])/,b.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,b.item=S(b.item,"gm").replace(/bull/g,b.bullet).getRegex(),b.listItemStart=S(/^( *)(bull) */).replace("bull",b.bullet).getRegex(),b.list=S(b.list).replace(/bull/g,b.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+b.def.source+")").getRegex(),b._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",b._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,b.html=S(b.html,"i").replace("comment",b._comment).replace("tag",b._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b.paragraph=S(b._paragraph).replace("hr",b.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b._tag).getRegex(),b.blockquote=S(b.blockquote).replace("paragraph",b.paragraph).getRegex(),b.normal=w({},b),b.gfm=w({},b.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),b.gfm.nptable=S(b.gfm.nptable).replace("hr",b.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b._tag).getRegex(),b.gfm.table=S(b.gfm.table).replace("hr",b.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b._tag).getRegex(),b.pedantic=w({},b.normal,{html:S("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",b._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,paragraph:S(b.normal._paragraph).replace("hr",b.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",b.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});y={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:y,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};y.punctuation=S(y.punctuation).replace(/punctuation/g,y._punctuation).getRegex(),y.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,y.escapedEmSt=/\\\*|\\_/g,y._comment=S(b._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),y.emStrong.lDelim=S(y.emStrong.lDelim).replace(/punct/g,y._punctuation).getRegex(),y.emStrong.rDelimAst=S(y.emStrong.rDelimAst,"g").replace(/punct/g,y._punctuation).getRegex(),y.emStrong.rDelimUnd=S(y.emStrong.rDelimUnd,"g").replace(/punct/g,y._punctuation).getRegex(),y._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,y._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,y._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,y.autolink=S(y.autolink).replace("scheme",y._scheme).replace("email",y._email).getRegex(),y._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,y.tag=S(y.tag).replace("comment",y._comment).replace("attribute",y._attribute).getRegex(),y._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,y._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,y._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,y.link=S(y.link).replace("label",y._label).replace("href",y._href).replace("title",y._title).getRegex(),y.reflink=S(y.reflink).replace("label",y._label).getRegex(),y.reflinkSearch=S(y.reflinkSearch,"g").replace("reflink",y.reflink).replace("nolink",y.nolink).getRegex(),y.normal=w({},y),y.pedantic=w({},y.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",y._label).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",y._label).getRegex()}),y.gfm=w({},y.normal,{escape:S(y.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),y.gfm.url=S(y.gfm.url,"i").replace("email",y.gfm._extended_email).getRegex(),y.breaks=w({},y.gfm,{br:S(y.br).replace("{2,}","*").getRegex(),text:S(y.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var b={block:b,inline:y},Z=_,L=t.exports.defaults,P=b.block,U=b.inline,N=$;function M(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function V(e){for(var t,u="",n=e.length,r=0;r<n;r++)t=e.charCodeAt(r),u+="&#"+(t=.5<Math.random()?"x"+t.toString(16):t)+";";return u}var y=function(){function u(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||L,this.options.tokenizer=this.options.tokenizer||new Z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;e={block:P.normal,inline:U.normal};this.options.pedantic?(e.block=P.pedantic,e.inline=U.pedantic):this.options.gfm&&(e.block=P.gfm,this.options.breaks?e.inline=U.breaks:e.inline=U.gfm),this.tokenizer.rules=e}u.lex=function(e,t){return new u(t).lex(e)},u.lexInline=function(e,t){return new u(t).inlineTokens(e)};var e,t,n=u.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(r,t,e){var u,n,i,s,l,a,o=this;for(void 0===t&&(t=[]),void 0===e&&(e=!0),this.options.pedantic&&(r=r.replace(/^ +$/gm,""));r;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(e){return!!(u=e.call(o,r,t))&&(r=r.substring(u.raw.length),t.push(u),!0)})))if(u=this.tokenizer.space(r))r=r.substring(u.raw.length),u.type&&t.push(u);else if(u=this.tokenizer.code(r))r=r.substring(u.raw.length),(s=t[t.length-1])&&"paragraph"===s.type?(s.raw+="\n"+u.raw,s.text+="\n"+u.text):t.push(u);else if(u=this.tokenizer.fences(r))r=r.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.heading(r))r=r.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.nptable(r))r=r.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.hr(r))r=r.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.blockquote(r))r=r.substring(u.raw.length),u.tokens=this.blockTokens(u.text,[],e),t.push(u);else if(u=this.tokenizer.list(r)){for(r=r.substring(u.raw.length),i=u.items.length,n=0;n<i;n++)u.items[n].tokens=this.blockTokens(u.items[n].text,[],!1);t.push(u)}else if(u=this.tokenizer.html(r))r=r.substring(u.raw.length),t.push(u);else if(e&&(u=this.tokenizer.def(r)))r=r.substring(u.raw.length),this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title});else if(u=this.tokenizer.table(r))r=r.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.lheading(r))r=r.substring(u.raw.length),t.push(u);else if(l=r,this.options.extensions&&this.options.extensions.startBlock&&function(){var t,u=1/0,n=r.slice(1);o.options.extensions.startBlock.forEach(function(e){"number"==typeof(t=e.call(this,n))&&0<=t&&(u=Math.min(u,t))}),u<1/0&&0<=u&&(l=r.substring(0,u+1))}(),e&&(u=this.tokenizer.paragraph(l)))s=t[t.length-1],a&&"paragraph"===s.type?(s.raw+="\n"+u.raw,s.text+="\n"+u.text):t.push(u),a=l.length!==r.length,r=r.substring(u.raw.length);else if(u=this.tokenizer.text(r))r=r.substring(u.raw.length),(s=t[t.length-1])&&"text"===s.type?(s.raw+="\n"+u.raw,s.text+="\n"+u.text):t.push(u);else if(r){var D="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(D);break}throw new Error(D)}return t},n.inline=function(e){for(var t,u,n,r,i,s=e.length,l=0;l<s;l++)switch((i=e[l]).type){case"paragraph":case"text":case"heading":i.tokens=[],this.inlineTokens(i.text,i.tokens);break;case"table":for(i.tokens={header:[],cells:[]},n=i.header.length,t=0;t<n;t++)i.tokens.header[t]=[],this.inlineTokens(i.header[t],i.tokens.header[t]);for(n=i.cells.length,t=0;t<n;t++)for(r=i.cells[t],i.tokens.cells[t]=[],u=0;u<r.length;u++)i.tokens.cells[t][u]=[],this.inlineTokens(r[u],i.tokens.cells[t][u]);break;case"blockquote":this.inline(i.tokens);break;case"list":for(n=i.items.length,t=0;t<n;t++)this.inline(i.items[t].tokens)}return e},n.inlineTokens=function(r,t,e,u){var n,i,s,l=this;void 0===t&&(t=[]),void 0===e&&(e=!1),void 0===u&&(u=!1);var a,o,D,c=r;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(0<h.length)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c));)h.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+N("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,a.index)+"["+N("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,a.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;r;)if(o||(D=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(e){return!!(n=e.call(l,r,t))&&(r=r.substring(n.raw.length),t.push(n),!0)})))if(n=this.tokenizer.escape(r))r=r.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(r,e,u))r=r.substring(n.raw.length),e=n.inLink,u=n.inRawBlock,(i=t[t.length-1])&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.link(r))r=r.substring(n.raw.length),"link"===n.type&&(n.tokens=this.inlineTokens(n.text,[],!0,u)),t.push(n);else if(n=this.tokenizer.reflink(r,this.tokens.links))r=r.substring(n.raw.length),i=t[t.length-1],"link"===n.type?(n.tokens=this.inlineTokens(n.text,[],!0,u),t.push(n)):i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(r,c,D))r=r.substring(n.raw.length),n.tokens=this.inlineTokens(n.text,[],e,u),t.push(n);else if(n=this.tokenizer.codespan(r))r=r.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(r))r=r.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(r))r=r.substring(n.raw.length),n.tokens=this.inlineTokens(n.text,[],e,u),t.push(n);else if(n=this.tokenizer.autolink(r,V))r=r.substring(n.raw.length),t.push(n);else if(e||!(n=this.tokenizer.url(r,V))){if(s=r,this.options.extensions&&this.options.extensions.startInline&&function(){var t,u=1/0,n=r.slice(1);l.options.extensions.startInline.forEach(function(e){"number"==typeof(t=e.call(this,n))&&0<=t&&(u=Math.min(u,t))}),u<1/0&&0<=u&&(s=r.substring(0,u+1))}(),n=this.tokenizer.inlineText(s,u,M))r=r.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(D=n.raw.slice(-1)),o=!0,(i=t[t.length-1])&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(r){var p="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else r=r.substring(n.raw.length),t.push(n);return t},e=u,t=[{key:"rules",get:function(){return{block:P,inline:U}}}],(n=null)&&r(e.prototype,n),t&&r(e,t),u}(),W=t.exports.defaults,Q=B,X=m,b=function(){function e(e){this.options=e||W}var t=e.prototype;return t.code=function(e,t,u){var n=(t||"").match(/\S*/)[0];return!this.options.highlight||null!=(t=this.options.highlight(e,n))&&t!==e&&(u=!0,e=t),e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+X(n,!0)+'">'+(u?e:X(e,!0))+"</code></pre>\n":"<pre><code>"+(u?e:X(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,u,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(u)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,u){var n=t?"ol":"ul";return"<"+n+(t&&1!==u?' start="'+u+'"':"")+">\n"+e+"</"+n+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var u=t.header?"th":"td";return(t.align?"<"+u+' align="'+t.align+'">':"<"+u+">")+e+"</"+u+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,u){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return u;e='<a href="'+X(e)+'"';return t&&(e+=' title="'+t+'"'),e+=">"+u+"</a>"},t.image=function(e,t,u){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return u;u='<img src="'+e+'" alt="'+u+'"';return t&&(u+=' title="'+t+'"'),u+=this.options.xhtml?"/>":">"},t.text=function(e){return e},e}(),$=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,u){return""+u},t.image=function(e,t,u){return""+u},t.br=function(){return""},e}(),B=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var u=e,n=0;if(this.seen.hasOwnProperty(u))for(n=this.seen[e];u=e+"-"+ ++n,this.seen.hasOwnProperty(u););return t||(this.seen[e]=n,this.seen[u]=0),u},t.slug=function(e,t){void 0===t&&(t={});var u=this.serialize(e);return this.getNextSafeSlug(u,t.dryrun)},e}(),G=b,H=$,J=B,K=t.exports.defaults,Y=x,ee=y,te=function(){function u(e){this.options=e||K,this.options.renderer=this.options.renderer||new G,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new H,this.slugger=new J}u.parse=function(e,t){return new u(t).parse(e)},u.parseInline=function(e,t){return new u(t).parseInline(e)};var e=u.prototype;return e.parse=function(e,t){void 0===t&&(t=!0);for(var u,n,r,i,s,l,a,o,D,c,h,p,f,d,g,F,A="",C=e.length,k=0;k<C;k++)if(o=e[k],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type])||!1===(F=this.options.extensions.renderers[o.type].call(this,o))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type))switch(o.type){case"space":continue;case"hr":A+=this.renderer.hr();continue;case"heading":A+=this.renderer.heading(this.parseInline(o.tokens),o.depth,Y(this.parseInline(o.tokens,this.textRenderer)),this.slugger);continue;case"code":A+=this.renderer.code(o.text,o.lang,o.escaped);continue;case"table":for(l=D="",r=o.header.length,u=0;u<r;u++)l+=this.renderer.tablecell(this.parseInline(o.tokens.header[u]),{header:!0,align:o.align[u]});for(D+=this.renderer.tablerow(l),a="",r=o.cells.length,u=0;u<r;u++){for(l="",i=(s=o.tokens.cells[u]).length,n=0;n<i;n++)l+=this.renderer.tablecell(this.parseInline(s[n]),{header:!1,align:o.align[n]});a+=this.renderer.tablerow(l)}A+=this.renderer.table(D,a);continue;case"blockquote":a=this.parse(o.tokens),A+=this.renderer.blockquote(a);continue;case"list":for(D=o.ordered,E=o.start,c=o.loose,r=o.items.length,a="",u=0;u<r;u++)f=(p=o.items[u]).checked,d=p.task,h="",p.task&&(g=this.renderer.checkbox(f),c?0<p.tokens.length&&"text"===p.tokens[0].type?(p.tokens[0].text=g+" "+p.tokens[0].text,p.tokens[0].tokens&&0<p.tokens[0].tokens.length&&"text"===p.tokens[0].tokens[0].type&&(p.tokens[0].tokens[0].text=g+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:g}):h+=g),h+=this.parse(p.tokens,c),a+=this.renderer.listitem(h,d,f);A+=this.renderer.list(a,D,E);continue;case"html":A+=this.renderer.html(o.text);continue;case"paragraph":A+=this.renderer.paragraph(this.parseInline(o.tokens));continue;case"text":for(a=o.tokens?this.parseInline(o.tokens):o.text;k+1<C&&"text"===e[k+1].type;)a+="\n"+((o=e[++k]).tokens?this.parseInline(o.tokens):o.text);A+=t?this.renderer.paragraph(a):a;continue;default:var E='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(E);throw new Error(E)}else A+=F||"";return A},e.parseInline=function(e,t){t=t||this.renderer;for(var u,n,r="",i=e.length,s=0;s<i;s++)if(u=e[s],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type])||!1===(n=this.options.extensions.renderers[u.type].call(this,u))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type))switch(u.type){case"escape":r+=t.text(u.text);break;case"html":r+=t.html(u.text);break;case"link":r+=t.link(u.href,u.title,this.parseInline(u.tokens,t));break;case"image":r+=t.image(u.href,u.title,u.text);break;case"strong":r+=t.strong(this.parseInline(u.tokens,t));break;case"em":r+=t.em(this.parseInline(u.tokens,t));break;case"codespan":r+=t.codespan(u.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(u.tokens,t));break;case"text":r+=t.text(u.text);break;default:var l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(l);throw new Error(l)}else r+=n||"";return r},u}(),ue=_,ne=b,$=$,B=B,re=v,ie=z,se=m,z=t.exports.getDefaults,le=t.exports.changeDefaults,m=t.exports.defaults;function ae(e,u,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof u&&(n=u,u=null),u=re({},ae.defaults,u||{}),ie(u),n){var r,i=u.highlight;try{r=ee.lex(e,u)}catch(e){return n(e)}var s=function(t){var e;if(!t)try{u.walkTokens&&ae.walkTokens(r,u.walkTokens),e=te.parse(r,u)}catch(e){t=e}return u.highlight=i,t?n(t):n(null,e)};if(!i||i.length<3)return s();if(delete u.highlight,!r.length)return s();var l=0;return ae.walkTokens(r,function(u){"code"===u.type&&(l++,setTimeout(function(){i(u.text,u.lang,function(e,t){return e?s(e):(null!=t&&t!==u.text&&(u.text=t,u.escaped=!0),void(0===--l&&s()))})},0))}),void(0===l&&s())}try{var t=ee.lex(e,u);return u.walkTokens&&ae.walkTokens(t,u.walkTokens),te.parse(t,u)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",u.silent)return"<p>An error occurred:</p><pre>"+se(e.message+"",!0)+"</pre>";throw e}}return ae.options=ae.setOptions=function(e){return re(ae.defaults,e),le(ae.defaults),ae},ae.getDefaults=z,ae.defaults=m,ae.use=function(){for(var u=this,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=re.apply(void 0,[{}].concat(t)),s=ae.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(function(l){var t;l.extensions&&(r=!0,l.extensions.forEach(function(r){if(!r.name)throw new Error("extension name required");var i;if(r.renderer&&(i=s.renderers?s.renderers[r.name]:null,s.renderers[r.name]=i?function(){for(var e=arguments.length,t=new Array(e),u=0;u<e;u++)t[u]=arguments[u];var n=r.renderer.apply(this,t);return n=!1===n?i.apply(this,t):n}:r.renderer),r.tokenizer){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");s[r.level]?s[r.level].unshift(r.tokenizer):s[r.level]=[r.tokenizer],r.start&&("block"===r.level?s.startBlock?s.startBlock.push(r.start):s.startBlock=[r.start]:"inline"===r.level&&(s.startInline?s.startInline.push(r.start):s.startInline=[r.start]))}r.childTokens&&(s.childTokens[r.name]=r.childTokens)})),l.renderer&&function(){var e,s=ae.defaults.renderer||new ne;for(e in l.renderer)!function(r){var i=s[r];s[r]=function(){for(var e=arguments.length,t=new Array(e),u=0;u<e;u++)t[u]=arguments[u];var n=l.renderer[r].apply(s,t);return n=!1===n?i.apply(s,t):n}}(e);i.renderer=s}(),l.tokenizer&&function(){var e,s=ae.defaults.tokenizer||new ue;for(e in l.tokenizer)!function(r){var i=s[r];s[r]=function(){for(var e=arguments.length,t=new Array(e),u=0;u<e;u++)t[u]=arguments[u];var n=l.tokenizer[r].apply(s,t);return n=!1===n?i.apply(s,t):n}}(e);i.tokenizer=s}(),l.walkTokens&&(t=ae.defaults.walkTokens,i.walkTokens=function(e){l.walkTokens.call(u,e),t&&t(e)}),r&&(i.extensions=s),ae.setOptions(i)})},ae.walkTokens=function(e,l){for(var a,t=o(e);!(a=t()).done;)!function(){var t=a.value;switch(l(t),t.type){case"table":for(var e=o(t.tokens.header);!(u=e()).done;){var u=u.value;ae.walkTokens(u,l)}for(var n,r=o(t.tokens.cells);!(n=r()).done;)for(var i=o(n.value);!(s=i()).done;){var s=s.value;ae.walkTokens(s,l)}break;case"list":ae.walkTokens(t.items,l);break;default:ae.defaults.extensions&&ae.defaults.extensions.childTokens&&ae.defaults.extensions.childTokens[t.type]?ae.defaults.extensions.childTokens[t.type].forEach(function(e){ae.walkTokens(t[e],l)}):t.tokens&&ae.walkTokens(t.tokens,l)}}()},ae.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=re({},ae.defaults,t||{}),ie(t);try{var u=ee.lexInline(e,t);return t.walkTokens&&ae.walkTokens(u,t.walkTokens),te.parseInline(u,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+se(e.message+"",!0)+"</pre>";throw e}},ae.Parser=te,ae.parser=te.parse,ae.Renderer=ne,ae.TextRenderer=$,ae.Lexer=ee,ae.lexer=ee.lex,ae.Tokenizer=ue,ae.Slugger=B,ae.parse=ae},"object"==typeof u&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).marked=r()},{}],5:[function(e,t,u){var s,n,l;s=jQuery,n=/(\s*\S+|\s)$/,l=/^(\S*)/,s.truncate=function(e,t){return s("<div></div>").append(e).truncate(t).html()},s.fn.truncate=function(e){s.isNumeric(e)&&(e={length:e});var i=s.extend({},s.truncate.defaults,e);return this.each(function(){var e=s(this);i.noBreaks&&e.find("br").replaceWith(" ");var t,u=e.text(),r=u.length-i.length;i.stripTags&&e.text(u),i.words&&0<r&&(t=u.slice(0,i.length).replace(n,"").length,r=i.keepFirstWord&&0===t?u.length-l.exec(u)[0].length-1:u.length-t-1),r<0||!r&&!i.truncated||s.each(e.contents().get().reverse(),function(e,t){var u=s(t),n=u.text().length;return n<=r?(i.truncated=!0,r-=n,void u.remove()):(3===t.nodeType?(i.finishBlock?s(t.splitText(n)):s(t.splitText(n-r-1))).replaceWith(i.ellipsis):u.truncate(s.extend(i,{length:n-r})),!1)})})},s.truncate.defaults={stripTags:!1,words:!1,keepFirstWord:!1,noBreaks:!1,finishBlock:!1,length:1/0,ellipsis:"…"}},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/markdown.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/follower.min.js*/
try {
	!function t(i,l,s){function r(o,e){if(!l[o]){if(!i[o]){var n="function"==typeof require&&require;if(!e&&n)return n(o,!0);if(d)return d(o,!0);throw(n=new Error("Cannot find module '"+o+"'")).code="MODULE_NOT_FOUND",n}n=l[o]={exports:{}},i[o][0].call(n.exports,function(e){return r(i[o][1][e]||e)},n,n.exports,t,i,l,s)}return l[o].exports}for(var d="function"==typeof require&&require,e=0;e<s.length;e++)r(s[e]);return r}({1:[function(e,o,i){!function(e){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.follow=function(o){var e={uid:t.currentuserid,user_id:o,follow:1};return n.ajax.post("followerajax.set_follow_status",e).then(e=>{e.success?n.hooks.doAction("user_followed",o,e.data):e.errors&&alert(e.errors)})},i.unfollow=function(o){var e={uid:t.currentuserid,user_id:o,follow:0};return n.ajax.post("followerajax.set_follow_status",e).then(e=>{e.success?n.hooks.doAction("user_unfollowed",o,e.data):e.errors&&alert(e.errors)})};var n="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null,t="undefined"!=typeof window?window.peepsodata:void 0!==e?e.peepsodata:null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(f,e,o){!function(d){!function(){"use strict";var e,l=(e="undefined"!=typeof window?window.jQuery:void 0!==d?d.jQuery:null)&&e.__esModule?e:{default:e},o="undefined"!=typeof window?window.peepso:void 0!==d?d.peepso:null,n="undefined"!=typeof window?window.peepsodata:void 0!==d?d.peepsodata:null,s=f("./follower");const t=n.profile&&+n.profile.id,i=(0,l.default)(".ps-js-focus--profile");n=".ps-js-friend-follow, .ps-js-friend-unfollow";function r(e,o={}){+e===t&&("string"==typeof(o=o.actions)?i.find(".ps-js-profile-actions-extra").html(o):"object"==typeof o&&(o.primary_profile&&i.find(".ps-js-focus-actions").html(o.primary_profile),o.secondary_profile&&i.find(".ps-js-profile-actions-extra").html(o.secondary_profile)))}i.on("click",n,function(e){let o=(0,l.default)(e.currentTarget),n=o.find("img"),t=o.data("user-id"),i=!o.hasClass("ps-js-friend-follow");e.preventDefault(),e.stopPropagation(),i?(n.show(),(0,s.unfollow)(t).then(function(){n.hide()})):(n.show(),(0,s.follow)(t).then(function(){n.hide()}))}),i.on("mouseenter",n,function(e){let o=(0,l.default)(e.currentTarget),n=o.find("span").last();n.data("html",n.html()),n.html(o.data("text-hover"))}),i.on("mouseleave",n,function(e){let o=(0,l.default)(e.currentTarget),n=o.find("span").last();n.html(n.data("html"))}),o.hooks.addAction("user_followed","header",r),o.hooks.addAction("user_unfollowed","header",r)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./follower":1}],3:[function(e,o,n){"use strict";e("./header"),e("./listing")},{"./header":2,"./listing":4}],4:[function(d,e,o){!function(r){!function(){"use strict";var e,l=(e="undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null)&&e.__esModule?e:{default:e},o="undefined"!=typeof window?window.peepso:void 0!==r?r.peepso:null,s=d("./follower");const i=(0,l.default)(".ps-js-members, .ps-js-friends, .ps-js-friend-requests");var n=".ps-js-friend-follow, .ps-js-friend-unfollow";function t(e,o={}){let n=i.find(".ps-js-member").filter(`[data-user-id="${e}"]`),t=o.actions;n.length&&(i.hasClass("ps-js-friend-requests")?n.fadeOut().remove():"string"==typeof t?n.find(".ps-js-member-actions-extra").html(o.actions):"object"==typeof t&&(t.primary&&n.find(".ps-js-member-actions").replaceWith(t.primary),t.secondary&&n.find(".ps-js-member-actions-extra").replaceWith(t.secondary),t.dropdown&&n.find(".ps-js-dropdown").replaceWith(t.dropdown)))}i.on("click",n,function(e){let o=(0,l.default)(e.currentTarget),n=o.find("img"),t=o.data("user-id"),i=!o.hasClass("ps-js-friend-follow");e.preventDefault(),e.stopPropagation(),i?(n.show(),(0,s.unfollow)(t).then(function(){n.hide()})):(n.show(),(0,s.follow)(t).then(function(){n.hide()}))}),i.on("mouseenter",n,function(e){let o=(0,l.default)(e.currentTarget),n=o.find("span").last();n.data("html",n.html()),n.html(o.data("text-hover"))}),i.on("mouseleave",n,function(e){let o=(0,l.default)(e.currentTarget),n=o.find("span").last();n.html(n.data("html"))}),o.hooks.addAction("user_followed","user_listing",t),o.hooks.addAction("user_unfollowed","user_listing",t)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./follower":1}]},{},[3]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/follower.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/themes/generatepress/assets/js/menu.min.js*/
try {
	/* [inline: cdata] */var generatepressMenu={"toggleOpenedSubMenus":"1","openSubMenuLabel":"Open Submenu","closeSubMenuLabel":"Close Submenu"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/themes/generatepress/assets/js/menu.min.js?ver=3.4.0 - Error: " + err.message); 
}try {
	!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(document.documentElement.contains(this))do{if(t.matches(e))return t}while(null!==(t=t.parentElement));return null});var o=function(t){return Array.prototype.filter.call(t.parentNode.children,function(e){return e!==t})},e=document.querySelectorAll(".menu-toggle"),t=document.querySelectorAll("nav .dropdown-menu-toggle"),n=document.querySelectorAll("nav .main-nav ul a"),l=document.querySelector(".mobile-menu-control-wrapper"),a=document.body,c=document.documentElement,u=function(e){if(e&&a.classList.contains("dropdown-hover")){var t=e.querySelectorAll("li.menu-item-has-children");for(f=0;f<t.length;f++)t[f].querySelector(".dropdown-menu-toggle").removeAttribute("tabindex"),t[f].querySelector(".dropdown-menu-toggle").setAttribute("role","presentation"),t[f].querySelector(".dropdown-menu-toggle").removeAttribute("aria-expanded"),t[f].querySelector(".dropdown-menu-toggle").removeAttribute("aria-label")}},r=function(e){"false"!==e.getAttribute("aria-expanded")&&e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","false"),e.setAttribute("aria-label",generatepressMenu.openSubMenuLabel)):(e.setAttribute("aria-expanded","true"),e.setAttribute("aria-label",generatepressMenu.closeSubMenuLabel))},s=function(e,t){var n="";if(n=(t=t||this).getAttribute("data-nav")?document.getElementById(t.getAttribute("data-nav")):document.getElementById(t.closest("nav").getAttribute("id"))){var s=!1,o=(t.closest(".mobile-menu-control-wrapper")&&(s=!0),n.getElementsByTagName("ul")[0]);if(n.classList.contains("toggled"))n.classList.remove("toggled"),c.classList.remove("mobile-menu-open"),o&&o.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false"),(s||l&&n.classList.contains("main-navigation"))&&l.classList.remove("toggled"),u(o);else{n.classList.add("toggled"),c.classList.add("mobile-menu-open"),o&&o.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true"),s?(l.classList.add("toggled"),l.querySelector(".search-item")&&l.querySelector(".search-item").classList.contains("active")&&l.querySelector(".search-item").click()):l&&n.classList.contains("main-navigation")&&l.classList.add("toggled");t=o;if(t&&a.classList.contains("dropdown-hover")){var r=t.querySelectorAll("li.menu-item-has-children");for(f=0;f<r.length;f++)r[f].querySelector(".dropdown-menu-toggle").setAttribute("tabindex","0"),r[f].querySelector(".dropdown-menu-toggle").setAttribute("role","button"),r[f].querySelector(".dropdown-menu-toggle").setAttribute("aria-expanded","false"),r[f].querySelector(".dropdown-menu-toggle").setAttribute("aria-label",generatepressMenu.openSubMenuLabel)}}}};for(f=0;f<e.length;f++)e[f].addEventListener("click",s,!1);var i=function(e,t){if(((t=t||this).closest("nav").classList.contains("toggled")||c.classList.contains("slide-opened"))&&!a.classList.contains("dropdown-click")){e.preventDefault();var n,t=t.closest("li");if(r(t.querySelector(".dropdown-menu-toggle")),n=t.querySelector(".sub-menu")?t.querySelector(".sub-menu"):t.querySelector(".children"),generatepressMenu.toggleOpenedSubMenus){var s=o(t);for(f=0;f<s.length;f++)s[f].classList.contains("sfHover")&&(s[f].classList.remove("sfHover"),s[f].querySelector(".toggled-on").classList.remove("toggled-on"),r(s[f].querySelector(".dropdown-menu-toggle")))}t.classList.toggle("sfHover"),n.classList.toggle("toggled-on")}e.stopPropagation()};for(f=0;f<t.length;f++)t[f].addEventListener("click",i,!1),t[f].addEventListener("keypress",function(e){"Enter"!==e.key&&" "!==e.key||i(e,this)},!1);var d=function(){var e=document.querySelectorAll(".toggled, .has-active-search");for(f=0;f<e.length;f++){var t=e[f].querySelector(".menu-toggle");if((t=l&&!t.closest("nav").classList.contains("mobile-menu-control-wrapper")?l.querySelector(".menu-toggle"):t)&&null===t.offsetParent){if(e[f].classList.contains("toggled")){var n,s,o,r=!1;if((r=e[f].classList.contains("mobile-menu-control-wrapper")?!0:r)||(s=(n=e[f].getElementsByTagName("ul")[0])?n.getElementsByTagName("li"):[],o=n?n.getElementsByTagName("ul"):[]),document.activeElement.blur(),e[f].classList.remove("toggled"),c.classList.remove("mobile-menu-open"),t.setAttribute("aria-expanded","false"),!r){for(var a=0;a<s.length;a++)s[a].classList.remove("sfHover");for(var i=0;i<o.length;i++)o[i].classList.remove("toggled-on");n&&n.removeAttribute("aria-hidden")}u(e[f])}l.querySelector(".search-item")&&l.querySelector(".search-item").classList.contains("active")&&l.querySelector(".search-item").click()}}};if(window.addEventListener("resize",d,!1),window.addEventListener("orientationchange",d,!1),a.classList.contains("dropdown-hover"))for(f=0;f<n.length;f++)n[f].addEventListener("click",function(e){var t;this.hostname!==window.location.hostname&&document.activeElement.blur(),(this.closest("nav").classList.contains("toggled")||c.classList.contains("slide-opened"))&&("#"===(t=this.getAttribute("href"))||""===t)&&(e.preventDefault(),(t=this.closest("li")).classList.toggle("sfHover"),e=t.querySelector(".sub-menu"))&&e.classList.toggle("toggled-on")},!1);if(a.classList.contains("dropdown-hover")){for(var g=document.querySelectorAll(".menu-bar-items .menu-bar-item > a"),m=function(){if(!this.closest("nav").classList.contains("toggled")&&!this.closest("nav").classList.contains("slideout-navigation"))for(var e=this;-1===e.className.indexOf("main-nav");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("sfHover"),e=e.parentElement},v=function(){if(!this.closest("nav").classList.contains("toggled")&&!this.closest("nav").classList.contains("slideout-navigation"))for(var e=this;-1===e.className.indexOf("menu-bar-items");)e.classList.contains("menu-bar-item")&&e.classList.toggle("sfHover"),e=e.parentElement},f=0;f<n.length;f++)n[f].addEventListener("focus",m),n[f].addEventListener("blur",m);for(f=0;f<g.length;f++)g[f].addEventListener("focus",v),g[f].addEventListener("blur",v)}if("ontouchend"in document.documentElement&&document.body.classList.contains("dropdown-hover")){var p=document.querySelectorAll(".sf-menu .menu-item-has-children");for(f=0;f<p.length;f++)p[f].addEventListener("touchend",function(e){if(!(this.closest("nav").classList.contains("toggled")||1!==e.touches.length&&0!==e.touches.length||(e.stopPropagation(),this.classList.contains("sfHover")))){e.target!==this&&e.target.parentNode!==this&&!e.target.parentNode.parentNode||e.preventDefault();var e=this.closest("li"),t=o(e);for(f=0;f<t.length;f++)t[f].classList.contains("sfHover")&&t[f].classList.remove("sfHover");this.classList.add("sfHover");var n,s=this;document.addEventListener("touchend",n=function(e){e.stopPropagation(),s.classList.remove("sfHover"),document.removeEventListener("touchend",n)})}})}}}();
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/themes/generatepress/assets/js/menu.min.js?ver=3.4.0 - Error: " + err.message); 
}
/*!/wp-content/themes/generatepress/assets/dist/modal.js*/
try {
	!function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n=function(e){var n=e.targetModal,r=e.openTrigger,o=e.triggers,a=void 0===o?[]:o,i=document.getElementById(n);if(i){var s={openTrigger:r,closeTrigger:"data-gpmodal-close",openClass:"gp-modal--open"},l="";a.length>0&&function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.filter(Boolean).forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),c()})),e.addEventListener("keydown",(function(e){" "!==e.key&&"Enter"!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),c())}))}))}.apply(void 0,t(a))}function c(){i.classList.add("gp-modal--transition"),l=document.activeElement,i.classList.add(s.openClass),u("disable"),i.addEventListener("touchstart",f),i.addEventListener("click",f),document.addEventListener("keydown",g),function(){var e=v();if(0!==e.length){var t=e.filter((function(e){return!e.hasAttribute(s.closeTrigger)}));t.length>0&&t[0].focus(),0===t.length&&e[0].focus()}}(),setTimeout((function(){return i.classList.remove("gp-modal--transition")}),100)}function d(){i.classList.add("gp-modal--transition"),i.removeEventListener("touchstart",f),i.removeEventListener("click",f),document.removeEventListener("keydown",g),u("enable"),l&&l.focus&&l.focus(),i.classList.remove(s.openClass),setTimeout((function(){return i.classList.remove("gp-modal--transition")}),500)}function u(e){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}function f(e){(e.target.hasAttribute(s.closeTrigger)||e.target.parentNode.hasAttribute(s.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),d())}function g(e){27===e.keyCode&&d(),9===e.keyCode&&function(e){var t=v();if(0!==t.length){var n=(t=t.filter((function(e){return null!==e.offsetParent}))).indexOf(document.activeElement);e.shiftKey&&0===n&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}}(e)}function v(){var e=i.querySelectorAll(["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])']);return Array.apply(void 0,t(e))}},r=Object.assign({},{openTrigger:"data-gpmodal-trigger"}),o=t(document.querySelectorAll("[".concat(r.openTrigger,"]"))).reduce((function(e,t){var n=t.attributes[r.openTrigger].value;return e[n]=e[n]||[],e[n].push(t),e}),[]);for(var a in o){var i=o[a];r.targetModal=a,r.triggers=t(i),new n(r)}}();
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/themes/generatepress/assets/dist/modal.js?ver=3.4.0 - Error: " + err.message); 
}
/*!/wp-content/themes/generatepress/assets/js/back-to-top.min.js*/
try {
	/* [inline: cdata] */var generatepressBackToTop={"smooth":"1"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/themes/generatepress/assets/js/back-to-top.min.js?ver=3.4.0 - Error: " + err.message); 
}try {
	!function(){"use strict";var c;"querySelector"in document&&"addEventListener"in window&&(c=document.querySelector(".generate-back-to-top"),c)&&(window.addEventListener("scroll",function(){var e=window.pageYOffset,t=c.getAttribute("data-start-scroll");t<e&&c.classList.add("generate-back-to-top__show"),e<t&&c.classList.remove("generate-back-to-top__show")}),c.addEventListener("click",function(e){var t,o,n,a,r;e.preventDefault(),generatepressBackToTop.smooth?(document.body,e=c.getAttribute("data-scroll-speed")||400,t=window.pageYOffset,o=document.body.offsetTop,n=(o-t)/(e/16),a=function(){window.pageYOffset<=(o||0)&&(clearInterval(r),document.activeElement.blur())},r=setInterval(function(){window.scrollBy(0,n),a()},16)):window.scrollTo(0,0)},!1))}();
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/themes/generatepress/assets/js/back-to-top.min.js?ver=3.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/usertags.min.js*/
try {
	/* [inline: cdata] */var peepsotagsdata={"parser":"@peepso_user_(\\d+)(?:\\(([^\\)]+)\\))?","template":"@peepso_user_<%= id %>(<%= title %>)"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/usertags.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}try {
	!function a(i,n,o){function r(e,t){if(!n[e]){if(!i[e]){var s="function"==typeof require&&require;if(!t&&s)return s(e,!0);if(p)return p(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}s=n[e]={exports:{}},i[e][0].call(s.exports,function(t){return r(i[e][1][t]||t)},s,s.exports,a,i,n,o)}return n[e].exports}for(var p="function"==typeof require&&require,t=0;t<o.length;t++)r(o[t]);return r}({1:[function(t,e,s){"use strict";t("./tagging"),t("./peepsotags")},{"./peepsotags":2,"./tagging":3}],2:[function(t,e,s){"use strict";function a(){}var i,n,r,p,d,o;i=jQuery||$,n=peepso,r=i,d=(p=n).observer,a.prototype.init=function(){var a=this;this.taggable_inputs=d.applyFilters("peepsotags_taggable_inputs",["#postbox-main textarea.ps-postbox-textarea"]),this.init_tags(this.taggable_inputs.join(",")),this.init_tags_comments(),r(document).on("peepso_tags_init_comments ps_activitystream_append ps_activitystream_loaded peepso_repost_added",function(){a.init_tags_comments()}),r(document).on("ps_comment_added ps_comment_save",function(){a.init_tags_comments()}),d.addFilter("postbox_req_edit",function(e,t){return t.ps_tagging("val",function(t){e.post=t}),e},10,2),d.addFilter("comment_req",function(e,t){return r(t).ps_tagging("val",function(t){e.content=t,e.post=t}),e},10,2),d.addFilter("comment_cancel",function(t){r(t).ps_tagging("reset")},10,2),d.addFilter("modalcomments.afterchange",function(t){t&&t.$attachment&&t.$attachment.find(".ps-comment-reply textarea").ps_tagging()},10,2),d.addFilter("caption_req",function(e,t){return r(t).ps_tagging("val",function(t){e.description=t}),e},10,2),d.addFilter("comment.reply",(a,i)=>{i.id!=peepsodata.currentuserid&&a.ps_tagging("val",e=>{if(i.id&&i.name){let t=_.template(peepsotagsdata.template);var s=t({id:i.id,title:i.name});(e=e.trim())?-1===e.indexOf(s)&&(e+=` ${s} `):e=s+" ",a.val(e),a.removeData("ps_tagging"),this.init_tags_comments(a)}})},10,2),d.addAction("postbox_reinit",t=>{t.removeData("ps_tagging"),this.init_tags(t),setTimeout(()=>t.trigger("keyup").trigger("input"),1e3)}),r("#peepso-wrap").on("comment.saved",function(t,e,s,a){r(s).ps_tagging("reset")}),r("#peepso-wrap").on("post_edit.shown",function(t,e,s){s=s.find("textarea");a.init_tags(s)}),d.addAction("comment_edit",r.proxy(function(t,e){e=r(e).find("textarea");this.init_tags(e)},this),10,2),d.addAction("postbox_update",r.proxy(function(t){this.init_tags(t.$text)},this),10,1),d.addFilter("postbox_data",function(e,t){return t.$text.ps_tagging("val",function(t){e.content=t}),e},10,2)},a.prototype.init_tags=function(t){var a,i=!1,n=!1;r(t).one("focus.get_taggable",function(){var t=d.applyFilters("tags_get_taggable_params",{});i=!0,p.postJson("tagsajax.get_taggable",t,function(t){t.success&&(a=t.data.users),"function"==typeof n&&n(a||[]),i=!1})}),r(t).ps_tagging({syntax:_.template(peepsotagsdata.template,{interpolate:/<%=([\s\S]+?)%>/g}),parser:new RegExp(peepsotagsdata.parser,"gi"),parser_groups:{id:1,title:2},fetcher:function(t,e){var s;a?e(a,"cache"):i?n=e:(s=d.applyFilters("tags_get_taggable_params",{}),p.postJson("tagsajax.get_taggable",s,function(t){t.success&&(a=t.data.users),e(a||[])}))}})},a.prototype.init_tags_comments=function(t){r(t=t||'[data-type="stream-newcomment"] textarea[name="comment"]').each(function(t,a){var i,n=!1,o=!1;r(a).off("focus.get_taggable"),r(a).one("focus.get_taggable",function(){var t=d.applyFilters("tags_get_taggable_params",{act_id:r(a).data("act-id")});n=!0,p.postJson("tagsajax.get_taggable",t,function(t){t.success&&(i=t.data.users),"function"==typeof o&&o(i||[]),n=!1})}),r(a).ps_tagging({syntax:_.template(peepsotagsdata.template,{interpolate:/<%=([\s\S]+?)%>/g}),parser:new RegExp(peepsotagsdata.parser,"gi"),parser_groups:{id:1,title:2},fetcher:function(t,e){var s;i?e(i,"cache"):n?o=e:(s=d.applyFilters("tags_get_taggable_params",{act_id:r(a).data("act-id")}),p.postJson("tagsajax.get_taggable",s,function(t){t.success&&(i=t.data.users),e(i||[])}))}}),d.addFilter("comment_can_submit",function(t){return r(t.el).data("ps_tagging").dropdown_is_visible&&(t.can_submit=!1),t},20,1),r(a).ps_autosize()})},a.prototype.apply_line_breaks=function(t){var n=t,e=(n.wrap,n.setAttribute("wrap","off"),n.value),o=(n.value="",n.scrollWidth);function r(t,e,s){var a;if(void 0===e)e=0,s=-1,a=64;else if(-1===s)a=2*e;else{if(s-e<=1)return Math.max(2,s);a=e+(s-e)/2}var i=t.substr(0,a);if(n.value=i,n.scrollWidth>o)s=a;else{if(a>=t.length)return null;e=a}return r(t,e,s)}for(var s=0,a="";s<e.length;){var i=r(e.substr(s));if(null===i){a+=e.substr(s);break}for(var p=i-1,d=p-1;0<=d;d--){var h=e.charAt(s+d);if(" "===h||"-"===h||"+"===h){p=d+1;break}}a+=e.substr(s,p)+"\n",s+=p}n.value=a,n.setAttribute("wrap","")},o=new a,r(function(){o.init(),r(".ps-postbox-tab.interactions .ps-button-cancel").on("click",function(){r("#postbox-main textarea.ps-postbox-textarea").ps_tagging("reset")}),r("#postbox-main").on("postbox.post_cancel",function(){r("#postbox-main textarea.ps-postbox-textarea").ps_tagging("reset")})}),d.addFilter("peepso_postbox_addons",function(t){return t.push({init:r.noop,set_postbox:function(t){var e="postbox-main"===t.attr("id"),s=t.hasClass("ps-postbox-message");(e||s)&&(t.$textarea.hasClass("ps-tagging-textarea")||o.init_tags(t.$textarea),d.addFilter("postbox_req_"+t.guid,function(e){return r("#postbox-main textarea.ps-postbox-textarea").eq(0).ps_tagging("val",function(t){e.content=t}),e},10,1))}}),t},10,1)},{}],3:[function(t,e,s){"use strict";function a(t,e){return this.textarea=t,this.options=e||{},this.init(),this}var i,n,o,r,p,d,h,g,l,u,c,f,x,m,v,w;i=jQuery,n=_,o=peepso,r=i,p=n,d=/@\[\[(\d+):user:([^\]]+)\]\]/g,h=/@\[\[(\d+):user:([^\]]+)\]\]/,g=".ps-tagging",l=".ps-postbox__input-tag",u=".ps-postbox__input-beautifier",c=".ps-tagging-hidden",f=".ps-tagging-dropdown",x=".ps-tagging-dropdown-item",m=".active",v=".ps-tagging-loading",a.prototype.init=function(){this.dom_prepare(),this.textarea.value&&(this.parse_tags(),this.textarea_on_input()),this.$textarea.off(g).on("focus"+g,r.proxy(this.textarea_on_keydown,this)).on("click"+g,r.proxy(this.textarea_on_keydown,this)).on("keydown"+g,r.proxy(this.textarea_on_keydown,this)).on("keyup"+g,r.proxy(this.textarea_on_keyup,this)).on("input"+g,r.proxy(this.textarea_on_input,this)).on("blur"+g,r.proxy(this.textarea_on_blur,this)),this.$dropdown.off(g).on("mouseenter"+g,x,r.proxy(this.dropdown_on_mouseenter,this)).on("mousedown"+g,x,r.proxy(this.dropdown_on_mousedown,this)).on("mouseup"+g,x,r.proxy(this.dropdown_on_mouseup,this))},a.prototype.dom_prepare=function(){this.$textarea=r(this.textarea),this.$textarea.addClass(".ps-tagging-textarea".substr(1)),this.$wrapper=this.$textarea.parent(l),this.$wrapper.length||(this.$textarea.wrap('<div class="'+l.substr(1)+'"></div>'),this.$wrapper=this.$textarea.parent()),this.$beautifier=this.$wrapper.children(u),this.$beautifier.length||(this.$beautifier=r('<div class="'+u.substr(1)+'"></div>'),this.$beautifier.prependTo(this.$wrapper)),this.$hidden=this.$wrapper.children(c),this.$hidden.length||(this.$hidden=r('<input type="hidden" class="'+c.substr(1)+'">'),this.$hidden.appendTo(this.$wrapper)),this.$dropdown=this.$wrapper.children(f),this.$dropdown.length||(this.$dropdown=r('<div class="'+f.substr(1)+'"></div>'),this.$dropdown.appendTo(this.$wrapper))},a.prototype.parse_tags=function(){var t,e,s,a,i,n=this.textarea.value;if(this.options.parser&&(t=this.options.parser_groups||{},n=n.replace(this.options.parser,function(){return"@[["+(arguments[t.id]||"")+":user:"+(arguments[t.title]||"")+"]]"})),e=n.match(d),this.textarea.value=n.replace(d,"$2"),this.tags_added=[],e&&e.length)for(i=0;i<e.length;i++)s=e[i].match(h),a=n.indexOf(e[i]),n=n.replace(e[i],s[2]),this.tags_added.push({id:s[1],name:s[2],start:a,length:s[2].length})},a.prototype.reset=function(){this.textarea.value="";var t=this.tags_added=[],e=this;setTimeout(function(){e.$textarea.trigger("keyup"),e.$textarea.trigger("input")}),this.hidden_update("",t),this.dropdown_hide()},a.prototype.val=function(){var t=this.$hidden.val();return t="function"==typeof this.options.syntax?t.replace(/@\[\[(\d+):user:([^\]]+)\]\]/g,r.proxy(function(t,e,s){return this.options.syntax({id:e,title:s})},this)):t},a.prototype.textarea_on_keydown=function(t){var e=t.keyCode;this.dropdown_is_visible&&0<=[13,27,38,40].indexOf(e)&&(t.preventDefault(),t.stopPropagation()),this.prev_sel_start=this.textarea.selectionStart,this.prev_sel_end=this.textarea.selectionEnd},a.prototype.textarea_on_keyup=function(t){var e=t.keyCode;this.dropdown_is_visible&&(38!==e&&40!==e||(this.dropdown_change_item(e),t.preventDefault(),t.stopPropagation()),13===e&&(this.dropdown_select_item(),t.preventDefault(),t.stopPropagation()),27===e&&(this.dropdown_hide(),t.preventDefault(),t.stopPropagation()))},a.prototype.textarea_on_input=function(t){var e,s,a,i,n,o,r,p,d,h=this.textarea.value;if(this.tags_added){if(this.prev_sel_start!==this.prev_sel_end)for(p=0;p<this.tags_added.length;p++)a=(s=this.tags_added[p]).start+s.length,(this.prev_sel_start>s.start&&this.prev_sel_start<a||this.prev_sel_end>s.start&&this.prev_sel_end<a||s.start>=this.prev_sel_start&&a<=this.prev_sel_end)&&this.tags_added.splice(p--,1);for(e=this.textarea.selectionStart-this.prev_sel_start-(this.prev_sel_end-this.prev_sel_start),p=0;p<this.tags_added.length;p++)if((s=this.tags_added[p]).start>=this.prev_sel_start)s.start+=e;else if(!((a=s.start+s.length)<this.prev_sel_start))if(a>this.prev_sel_start){if(0<e)this.tags_added.splice(p--,1);else if(e<0){for(o=(i=h.substring(s.start,this.prev_sel_start+e)).split(" ").length-1,(i=s.name.split(" ")).splice(o,1),i=i.join(" "),n=(n=(n=s.name.split(" ")).slice(0,o)).join(" "),o=new RegExp("^([\\s\\S]{"+s.start+"})([\\s\\S]{"+(s.length+e)+"})"),this.textarea.value=this.textarea.value.replace(o,"$1"+i),this.textarea.setSelectionRange(s.start+n.length,s.start+n.length),h=this.textarea.value,r=s.length-i.length,s.name=i,s.length=i.length,d=p+1;d<this.tags_added.length;d++)this.tags_added[d].start-=r;i.length||this.tags_added.splice(p--,1),p=this.tags_added.length}}else if(e<0){for((i=s.name.split(" ")).pop(),i=i.join(" "),o=new RegExp("^([\\s\\S]{"+s.start+"})([\\s\\S]{"+(s.length+e)+"})"),this.textarea.value=this.textarea.value.replace(o,"$1"+i),this.textarea.setSelectionRange(s.start+i.length,s.start+i.length),h=this.textarea.value,r=s.length-i.length,s.name=i,s.length=i.length,d=p+1;d<this.tags_added.length;d++)this.tags_added[d].start-=r;i.length||this.tags_added.splice(p--,1),p=this.tags_added.length}}this.hidden_update(h,this.tags_added||[]),this.dropdown_toggle()},a.prototype.textarea_on_blur=function(t){},a.prototype.beautifier_update=function(t,e){var s,a,i,n,o;if(e.length){for(s="^",a="",o=i=0;o<e.length;o++)s+="([\\s\\S]{"+((n=e[o]).start-i)+"})([\\s\\S]{"+n.length+"})",a+="$"+(2*o+1)+"[[["+n.name+"]]]",i=n.start+n.length;s=new RegExp(s),t=t.replace(s,a)}return t=t.replace(/\[\[\[([^\[\]]+)\]\]\]/g,'<ps_span class="ps-tag">$1</ps_span>')},a.prototype.hidden_update=p.debounce(function(t,e){var s,a,i,n,o;if(e.length){for(s="^",a="",o=i=0;o<e.length;o++)s+="([\\s\\S]{"+((n=e[o]).start-i)+"})([\\s\\S]{"+n.length+"})",a+="$"+(2*o+1)+"@[["+n.id+":user:"+n.name+"]]",i=n.start+n.length;s=new RegExp(s),t=t.replace(s,a)}this.$hidden.val(t)},50),a.prototype.dropdown_toggle=p.debounce(function(){var t=this.textarea.selectionStart,e=this.textarea.value.substr(0,t),s=e.lastIndexOf("@");s<0||0<s&&!e[s-1].match(/\s/)||++s>=t?this.dropdown_hide():(e=e.substring(s,t),this.dropdown_fetch(e,r.proxy(this.dropdown_update,this)))},200),a.prototype.dropdown_fetch=function(s,a){"function"!=typeof this.options.fetcher?a(s,[]):this.dropdown_fetching||(this.dropdown_fetching=!0,this.$dropdown.find(v).show(),this.options.fetcher(s,r.proxy(function(t,e){this.$dropdown.find(v).hide(),this.dropdown_fetching=!1,"cache"===e?a(s,t):this.dropdown_toggle()},this)))},a.prototype.dropdown_filter=function(e,t){var s=[];return this.tags_added&&this.tags_added.length&&(s=p.map(this.tags_added,function(t){return""+t.id})),e=e.toLowerCase(),p.filter(t,function(t){return-1===s.indexOf(""+t.id)&&-1<t.name.toLowerCase().indexOf(e)})},a.prototype.dropdown_update=function(t,e){var s,a;if((e=this.dropdown_filter(t,e)).length){for(s="",a=0;a<e.length;a++)s=(s+='<div class="'+x.substr(1)+'" data-id="'+e[a].id+'" data-name="'+e[a].name+'">')+'<a href="#" onclick="return false;"><div class="ps-avatar"><img src="'+e[a].avatar+'"></div><span>'+e[a].name+"</span></a></div>";this.dropdown_show(s)}},a.prototype.dropdown_show=function(t){this.$dropdown.html(t).show(),this.dropdown_is_visible=!0},a.prototype.dropdown_show_more=function(){},a.prototype.dropdown_hide=function(){this.$dropdown.hide(),this.dropdown_is_visible=!1},a.prototype.dropdown_on_mouseenter=function(t){this.dropdown_change_item(t)},a.prototype.dropdown_on_mousedown=function(){this.dropdown_is_clicked=!0},a.prototype.dropdown_on_mouseup=function(t){this.dropdown_select_item(t),this.dropdown_is_clicked=!1,this.dropdown_hide()},a.prototype.dropdown_change_item=function(t){var e,s,a=m.substr(1);"number"!=typeof t?(s=(e=this.dropdown_selected_item=r(t.target)).siblings(m),e.addClass(a),s.removeClass(a)):(e=this.$dropdown.children(m)).length?(s=e[38===t?"prev":"next"](),e.removeClass(a),s.length?(this.dropdown_selected_item=s).addClass(a):this.dropdown_selected_item=!1):(e=this.dropdown_selected_item=this.$dropdown.children()[38===t?"last":"first"]()).addClass(a)},a.prototype.dropdown_select_item=function(t){var t=t?r(t.currentTarget):this.dropdown_selected_item,e=t.data("id"),t=t.data("name"),s=this.textarea.selectionStart,a=this.textarea.value.substr(0,s).lastIndexOf("@"),i=(this.tags_added||(this.tags_added=[]),this.tags_added.push({id:e,name:t,start:a,length:t.length}),e=new RegExp("^([\\s\\S]{"+a+"})[\\s\\S]{"+(s-a)+"}"),s=this.textarea.value.replace(e,"$1"+t)+" ",this.textarea.value=s,this.textarea.setSelectionRange(a+t.length+1,a+t.length+1),this);setTimeout(function(){i.$textarea.trigger("keyup"),i.$textarea.trigger("input")}),this.hidden_update(s,this.tags_added),this.dropdown_hide(),this.$textarea.focus()},w=a,i.fn.ps_tagging=function(s,a){return"object"==typeof s&&(a=s),this.each(function(){var t=i(this),e=t.data("ps_tagging");e||(e=new w(this,a),t.data("ps_tagging",e)),"val"===s&&"function"==typeof a?a(e.val()):"reset"===s&&e.reset()})},o.observer.addFilter("peepso_postbox_beautifier",function(t,e){var s=e.data("ps_tagging"),e=e.val(),a=s.tags_added||[];return s.beautifier_update(e,a)},10,2)},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/usertags.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/location.min.js*/
try {
	!function i(s,a,n){function l(e,t){if(!a[e]){if(!s[e]){var o="function"==typeof require&&require;if(!t&&o)return o(e,!0);if(c)return c(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}o=a[e]={exports:{}},s[e][0].call(o.exports,function(t){return l(s[e][1][t]||t)},o,o.exports,i,s,a,n)}return a[e].exports}for(var c="function"==typeof require&&require,t=0;t<n.length;t++)l(n[t]);return l}({1:[function(t,e,i){!function(o){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t,c=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t};const s=("undefined"!=typeof window?window.peepsodata:void 0!==o?o.peepsodata:null).location.api_key;let e=null;i.default=class{constructor(){return e=e||this}search(e){return new Promise((o,i)=>{this.autocompleteService().then(t=>{t.getPlacePredictions({input:e},(t,e)=>{"OK"===e?(console.log(t),o(t.map(this.mapData))):i(e)})})})}geocode(t){return new Promise((o,i)=>{this.loadAPI().then(()=>{(new google.maps.Geocoder).geocode({address:t},(t,e)=>{"OK"===e?o(this.mapData(t[0])):i(e)})})})}mapData(t){let{place_id:e,geometry:o}=t,i=t.formatted_address||t.description,[s,a=""]=i.split(/,\s(.+)?/),n,l;return o&&(n=o.location.toJSON(),l=o.viewport.toJSON()),{id:e,name:s,description:a,location:n,viewport:l}}render(t,e){let o=(0,c.default)(t).show(),i=o.data("psMap"),s=o.data("psMapMarker"),{name:a,location:n,viewport:l}=e;i||o.data("psMap",i=new google.maps.Map(t,{center:n,disableDefaultUI:!0,draggable:!1,scrollwheel:!1,zoom:15})),s||o.data("psMapMarker",s=new google.maps.Marker({map:i,position:n,title:a})),i.setCenter(n),i.fitBounds(l),s.setPosition(n)}loadAPI(){return new Promise((t,e)=>{let o,i;this.loaded?t():(this.queue=this.queue||[],this.queue.push({resolve:t,reject:e}),this.loading||(this.loading=!0,i=_.uniqueId("psCallback"),(o=document.createElement("script")).type="text/javascript",o.src="https://maps.googleapis.com/maps/api/js?libraries=places"+(s?"&key="+s:"")+"&callback="+i,window[i]=()=>{for(this.loaded=!0,this.loading=!1;this.queue.length;)this.queue.shift().resolve();delete window[i]},document.body.appendChild(o)))})}autocompleteService(){return new Promise((e,t)=>{this.loadAPI().then(()=>{var t="_cacheAutocompleteService";this[t]=this[t]||new google.maps.places.AutocompleteService,e(this[t])})})}placesService(){return new Promise((o,t)=>{this.loadAPI().then(()=>{var t="_cachePlacesService",e=document.createElement("div");document.body.appendChild(e),this[t]=this[t]||new google.maps.places.PlacesService(e),o(this[t])})})}placeDetail(a){return new Promise((i,s)=>{this.placesService().then(t=>{let o="_cachePlaceDetail";this[o]=this[o]||{},this[o][a]?i(this[o][a]):t.getDetails({placeId:a},(t,e)=>{"OK"===e?(t=this.mapData(t),this[o][a]=t,i(t)):s(e)})})})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(o,t,e){!function(e){!function(){"use strict";var i=(t="undefined"!=typeof window?window.jQuery:void 0!==e?e.jQuery:null)&&t.__esModule?t:{default:t},t="undefined"!=typeof window?window.peepso:void 0!==e?e.peepso:null;o("./google-maps"),o("./location"),o("./postbox"),t.observer.addFilter("human_friendly_extras",function(t,e,o){return!e&&o&&(e=(0,i.default)(o).find(".ps-js-activity-extras [data-preview]")).length&&t.push(e.data("preview")),t},20,3)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./google-maps":1,"./location":3,"./postbox":4}],3:[function(t,e,o){!function(o){!function(){"use strict";var t,p,i,h,u=(t="undefined"!=typeof window?window.peepsodata:void 0!==o?o.peepsodata:null)&&t.__esModule?t:{default:t};function e(){this.coords=null,this.$places_container=null,this.$input_search=null,this.marker=null,this.map=null,this.selected_place=null,this._search_service=null,this._latLang=null,this.last_selected_place=null,this.location_selected=!1,this.can_submit=!1}t=window,p=jQuery,t.pslocation=(i=t,h=p,e.prototype.init=function(){var i,o;_.isNull(this.$postbox)||(i=this,peepso.observer.addFilter("peepso_postbox_can_submit",function(t){return t.soft.push(i.can_submit),t},30,1),this.$container=this.$postbox.find("#location-tab"),h(this.$postbox).on("click","#location-tab a",function(){i.toggle_input()}),this.$input_search=h("[name=postbox_loc_search]",this.$postbox),this.$dropdown=h("#pslocation",this.$postbox).on("click",function(t){t.stopPropagation()}),this.$postboxcontainer=this.$postbox.$textarea.parent(),this.$places_container=h(".ps-js-postbox-locations",this.$dropdown),o=null,this.$input_search.on("keyup",function(){var t=this,e=(clearTimeout(o),h('<div class="ps-postbox__location-item ps-postbox__location-item--loading ps-js-postbox-location-item">'+h("#pslocation-search-loading").html()+"</div>"));i.$places_container.html(e),o=setTimeout(function(){i.location_search(h(t).val())},1500)}),peepso.observer.addFilter("postbox_req_"+this.$postbox.guid,function(t,e){return i.postbox_request(t,e)},10,1),this.$postbox.on("postbox.post_cancel postbox.post_saved",function(t,e,o){i.postbox_cancel_saved(e,o)}),this.$select_location=h(".ps-js-location-action .ps-js-add-location",this.$dropdown),this.$remove_location=h(".ps-js-location-action .ps-js-remove-location",this.$dropdown),this.$select_location.on("click",function(t){t.preventDefault(),i.on_select_location()}),this.$remove_location.on("click",function(t){t.preventDefault(),i.on_remove_location()}),h(this.$postbox).on("peepso.interaction-hide","#location-tab a",function(){i.$dropdown.hide(),i.$container.removeClass("ps-postbox__menu-item--open")}),peepso.observer.addFilter("peepso_postbox_addons_update",function(t){return i.location_selected&&t.unshift("<b><i class=ps-icon-map-marker></i>"+i.location_selected+"</b>"),t},10,1))},e.prototype.postbox_request=function(t,e){return null!==this.selected_place&&(t.location={name:this.selected_place.name,latitude:this.selected_place.geometry.location.lat(),longitude:this.selected_place.geometry.location.lng()}),t},e.prototype.postbox_cancel_saved=function(t,e){this.$dropdown.hide(),this.$input_search.val(""),this.$remove_location.hide(),this.$select_location.show(),this.$postboxcontainer.find("span#postlocation").remove(),this.$container.removeClass("active");var o=this.$container.find(".ps-js-interaction-toggle");o.attr("data-tooltip-original")&&(o.attr("data-tooltip",o.attr("data-tooltip-original")),o.removeAttr("data-tooltip-original")),this.selected_place=null,this.location_selected=!1,this.can_submit=!1,this.$postbox.on_change()},e.prototype.set_postbox=function(t){this.$postbox=t},e.prototype.location_search=function(t,o){var i=this;_.isEmpty(this.map)&&(this._latLang=new google.maps.LatLng(0,0),this.draw_map(this._latLang)),_.isEmpty(t)?this.draw_map(this._latLang):this.get_search_service().textSearch({query:t,location:this._latLang,radius:5e4},function(t,e){i.set_places(t,e),i.$select_location.is(":visible")||i.$places_container.find(".ps-js-postbox-location-item").first().trigger("click"),typeof Function==typeof o&&o()})},e.prototype.on_select_location=function(){null===this.selected_place&&(this.selected_place=this.last_selected_place),this.$select_location.hide(),this.$remove_location.show(),this.$dropdown.hide(),this.$container.addClass("active"),this.$container.removeClass("ps-postbox__menu-item--open");var t=this.$container.find(".ps-js-interaction-toggle");t.attr("data-tooltip-original")||t.attr("data-tooltip-original",t.attr("data-tooltip")),t.attr("data-tooltip",this.selected_place.name),this.location_selected="",this.selected_place&&(this.location_selected=this.selected_place.name),this.can_submit=!0,this.$postbox.on_change()},e.prototype.on_remove_location=function(){this.$select_location.show(),this.$remove_location.hide(),this.selected_place=null,this.$postboxcontainer.find("span#postlocation").remove(),this.$dropdown.hide(),this.$container.removeClass("active"),this.$container.removeClass("ps-postbox__menu-item--open");var t=this.$container.find(".ps-js-interaction-toggle");t.attr("data-tooltip-original")&&(t.attr("data-tooltip",t.attr("data-tooltip-original")),t.removeAttr("data-tooltip-original")),this.location_selected=!1,this.can_submit=!1,this.$postbox.on_change()},e.prototype.toggle_input=function(){var t;this.$dropdown.is(":visible")?(this.$dropdown.hide(),this.$container.removeClass("ps-postbox__menu-item--open"),jQuery(document).off("mouseup.ps-postbox-location")):(this.$dropdown.show(),this.$container.addClass("ps-postbox__menu-item--open"),setTimeout(h.proxy(function(){jQuery(document).off("mouseup.ps-postbox-location").on("mouseup.ps-postbox-location",h.proxy(function(t){0===this.$container.has(t.target).length&&(this.$dropdown.hide(),this.$container.removeClass("ps-postbox__menu-item--open"),jQuery(document).off("mouseup.ps-postbox-location"))},this))},this),1)),this.$input_search.val(""),this.location=null,this.$dropdown.is(":visible")&&(t=this).load_library(function(){t.shown()}.bind(t))},e.prototype.shown=function(){var o=this;this.$input_search.focus(),!1!==_.isEmpty(this.map)&&this.detect_location().done(function(t,e){o.draw_default_map(t,e)}).fail(function(){o.draw_default_map()})},e.prototype.draw_default_map=function(t,e){t&&e?(t=new google.maps.LatLng(t,e),this.draw_map(t)):(this.$postbox.find(".ps-js-postbox-map").show(),this.$input_search.removeAttr("disabled"),this.$input_search.focus())},e.prototype.draw_map=function(t,e){var o,i;!1===_.isBoolean(e)&&(e=!0),!1!=t instanceof google.maps.LatLng&&(i=this.$postbox.find(".ps-js-postbox-map"),h("#pslocation .ps-postbox-loading",this.$postbox).hide(),i.show(),this.$input_search.removeAttr("disabled"),t={center:(o=this)._latLang=t,zoom:15,draggable:!1,scrollwheel:!1,disableDefaultUI:!0},peepso.observer.applyFilters("ps_location_before_draw_map",h("#pslocation",this.$postbox)),_.isEmpty(this.map)?(this.map=new google.maps.Map(i.get(0),t),this.marker=new google.maps.Marker({position:t.center,map:this.map,title:"You are here (more or less)"})):this.set_map_center(this._latLang),e)&&(i={location:this._latLang,types:["establishment"],rankBy:google.maps.places.RankBy.DISTANCE},this.get_search_service().nearbySearch(i,function(t,e){o.set_places(t,e),o.$select_location.is(":visible")||o.$places_container.find(".ps-js-postbox-location-item").first().trigger("click")}))},e.prototype.get_search_service=function(){return _.isEmpty(this.search_service)&&(this._search_service=new google.maps.places.PlacesService(this.map)),this._search_service},e.prototype.set_places=function(t,e){var o=this;if(this.$places_container.find(".ps-js-postbox-location-item").remove(),e===google.maps.places.PlacesServiceStatus.OK)for(var i=0;i<t.length;i++)this.add_place(t[i]);h(".ps-js-postbox-location-item",this.$places_container).on("click",function(){h(".ps-js-location-action",this.$dropdown).show(),o.$select_location.show(),o.$remove_location.hide()})},e.prototype.add_place=function(t){var e,o;_.isEmpty(t.formatted_address)||(t.vicinity=t.formatted_address),_.isEmpty(t.vicinity)||(e=this,(o=h('<div class="ps-postbox__location-item ps-js-postbox-location-item"></div>')).append("<p>"+t.name+"</p>"),o.append("<span>"+t.vicinity+"</span>"),this.$places_container.append(o),o.on("click",function(){e.set_map_center(t.geometry.location),e.$input_search.val(t.name),e.selected_place=t,e.last_selected_place=e.selected_place}))},e.prototype.set_map_center=function(t){this.map.setCenter(t),this.marker.setPosition(t)},e.prototype.load_library=function(t){var e,o;this.gmap_is_loaded?t():(this.load_library_callbacks||(this.load_library_callbacks=[]),this.load_library_callbacks.push(t),this.gmap_is_loading||(this.gmap_is_loading=!0,t=document.createElement("script"),e=u.default.location.api_key,o=this,t.type="text/javascript",t.src="https://maps.googleapis.com/maps/api/js?libraries=places"+(e?"&key="+e:"")+"&callback=ps_gmap_callback",i.ps_gmap_callback=function(){for(o.gmap_is_loaded=!0,o.gmap_is_loading=!1;o.load_library_callbacks.length;)o.load_library_callbacks.shift()();delete i.ps_gmap_callback},document.body.appendChild(t)))},e.prototype.show_map=function(i,s,t){peepso.lightbox([{content:'<div class="ps-location__map ps-js-mapct" />'}],{simple:!0,nofulllink:!0,afterchange:h.proxy(function(o){this.load_library(function(){var t=o.$container.find(".ps-js-mapct"),e=new google.maps.LatLng(i,s),t=new google.maps.Map(t[0],{center:e,zoom:14});new google.maps.Marker({position:e,map:t})})},this)})},e.prototype.init_location_search=function(i){var s,a,n,t,l,c,p,r,e,d;i.data("location-search")||(i.data("location-search",1),t=u.default.location.template_selector,(s=h(t)).children(".ps-js-location"),a=s.find(".ps-js-location-map"),n=s.find(".ps-js-location-list"),t=s.find(".ps-js-close"),l=s.find(".ps-js-select"),c=s.find(".ps-js-remove"),p=s.find(".ps-js-location-loading"),r=s.find(".ps-js-location-result"),e=s.find(".ps-js-location-placeholder"),d=s.find(".ps-js-location-listitem").get(0).outerHTML,i.on("input.ps-location",h.proxy(_.debounce(function(t){t=t.target.value;t&&(e&&(e.remove(),e=null),r.hide(),p.show(),s.show(),this.search(t).done(function(t){for(var e,o=[],i=0;i<t.length;i++)e=(e=t[i].description).split(/,\s(.+)?/),e=d.replace("{place_id}",t[i].place_id).replace("{name}",e[0]).replace("{description}",e[1]||"&nbsp;"),o.push(e);n.html(o.join("")),p.hide(),r.show(),s.show()}))},200),this)),i.on("blur.ps-location",h.proxy(function(t){s.hide(),l.hide(),i.val(i.data("location")||""),i.data("location")&&c.show()},this)),i.on("focus.ps-location",h.proxy(function(t){n.find(".ps-location-selected").removeClass("ps-location-selected"),s.show()},this)),n.on("mousedown","a.ps-js-location-listitem",h.proxy(function(t){var e=h(t.currentTarget),o=(e.find(".ps-js-location-listitem-name").text(),e.data("place-id"));t.preventDefault(),t.stopPropagation(),e.addClass("ps-location-selected"),e.siblings().removeClass("ps-location-selected"),l.show(),c.hide(),a.show(),this._gmap_get_place_detail(o).done(h.proxy(function(t){var e=t.formatted_address,o=t.geometry.location;i.data("tmp-location",e).data("tmp-latitude",o.lat()).data("tmp-longitude",o.lng()),this._gmap_render_map(a[0],t)},this))},this)),t.on("mousedown",function(){i.trigger("blur.ps-location")}),l.on("mousedown",function(t){t.preventDefault(),t.stopPropagation(),i.data("location",i.data("tmp-location")),i.data("latitude",i.data("tmp-latitude")),i.data("longitude",i.data("tmp-longitude")),i.val(i.data("location")),l.hide(),c.show(),i.trigger("blur.ps-location")}),c.on("mousedown",function(t){t.preventDefault(),t.stopPropagation(),i.removeData("location").removeData("latitude").removeData("longitude").val(""),n.find(".ps-location-selected").removeClass("ps-location-selected"),c.hide(),a.hide()}),s.insertAfter(i))},e.prototype.search=function(e){return h.Deferred(h.proxy(function(o){this._gmap_get_autocomplete_service().done(function(t){t.getPlacePredictions({input:e},function(t,e){"OK"===e&&o.resolve(t)})})},this))},e.prototype.detect_location=function(){var t=this;return h.Deferred(function(o){"https:"!==i.location.protocol?o.reject():t.detect_location_by_device().done(function(t,e){o.resolve(t,e)}).fail(function(){t.detect_location_by_gmap_api().done(function(t,e){o.resolve(t,e)}).fail(function(){t.detect_location_by_ip().done(function(t,e){o.resolve(t,e)}).fail(function(){o.reject()})})})})},e.prototype.detect_location_by_device=function(){return h.Deferred(h.proxy(function(e){navigator.geolocation.getCurrentPosition(function(t){e.resolve(t.coords.latitude,t.coords.longitude)},function(){e.reject()},{timeout:1e4})},this))},e.prototype.detect_location_by_gmap_api=function(){return h.Deferred(h.proxy(function(e){var t=u.default.location.api_key;this._client_location?e.resolve(this._client_location):t?h.post("https://www.googleapis.com/geolocation/v1/geolocate?key="+t,function(t){e.resolve(t.location.lat,t.location.lng)}).fail(function(t){e.reject(t)}):e.reject()},this))},e.prototype.detect_location_by_ip=function(){return h.Deferred(h.proxy(function(o){var i;h.ajax({url:"https://ipapi.co/jsonp",dataType:"jsonp",success:function(t){var e=t.latitude,t=t.longitude;e&&t&&(i=!0,o.resolve(e,t))},complete:function(){i||o.reject()}})},this))},e.prototype._gmap_load_library=function(){return h.Deferred(h.proxy(function(t){this.load_library(function(){t.resolve()})},this))},e.prototype._gmap_get_autocomplete_service=function(){return h.Deferred(h.proxy(function(t){this._gmap_autocomplete_service?t.resolve(this._gmap_autocomplete_service):this._gmap_load_library().done(h.proxy(function(){this._gmap_autocomplete_service=new google.maps.places.AutocompleteService,t.resolve(this._gmap_autocomplete_service)},this))},this))},e.prototype._gmap_render_map=function(t,e){var o,i,s;e.geometry?(o=e.geometry.location,i=e.geometry.viewport):o=new google.maps.LatLng(e.latitude,e.longitude),e=(t=h(t).show()).data("ps-map"),s=t.data("ps-map-marker"),e||(e=new google.maps.Map(t[0],{center:o,zoom:15,draggable:!1,scrollwheel:!1,disableDefaultUI:!0}),t.data("ps-map",e)),s||(s=new google.maps.Marker({position:o,map:e,title:"You are here (more or less)"}),t.data("ps-map-marker",s)),e.setCenter(o),s.setPosition(o),i?e.fitBounds(i):e.setZoom(15)},e.prototype._gmap_get_place_service=function(){return h.Deferred(h.proxy(function(e){this._gmap_place_service?e.resolve(this._gmap_place_service):this._gmap_load_library().done(h.proxy(function(){var t=document.createElement("div");document.body.appendChild(t),this._gmap_place_service=new google.maps.places.PlacesService(t),e.resolve(this._gmap_place_service)},this))},this))},e.prototype._gmap_get_place_detail=function(i){return h.Deferred(h.proxy(function(o){this._gmap_place_cache&&this._gmap_place_cache[i]?o.resolve(this._gmap_place_cache[i]):this._gmap_get_place_service().done(h.proxy(function(t){t.getDetails({placeId:i},h.proxy(function(t,e){"OK"===e?(this._gmap_place_cache||(this._gmap_place_cache={}),this._gmap_place_cache[i]=t,o.resolve(t)):o.reject(e)},this))},this))},this))},peepso.observer.addFilter("peepso_postbox_addons",function(t){return t.push(new e),t},10,1),new e),peepso.observer.addFilter("photo_create_album",function(t){var e=t.popup.find(".ps-js-location");return pslocation.init_location_search(e),t},10,1),p(function(){peepso.observer.addFilter("profile_field_save",function(t,e){if(e.hasClass("ps-js-field-location")){e=e.data();if(e.location&&e.latitude&&e.longitude)return JSON.stringify({name:e.location,latitude:e.latitude,longitude:e.longitude})}return t},10,2),peepso.observer.addAction("profile_field_save_register",function(t){var e,o;t.hasClass("ps-js-field-location")&&(e=t.data()).location&&e.latitude&&e.longitude&&(o=p('<input type="hidden" name="'+t.attr("name")+'" />'),t.removeAttr("name"),o.insertAfter(t),o.val(JSON.stringify({name:e.location,latitude:e.latitude,longitude:e.longitude})))},10,1),p(".ps-js-field-location").each(function(){pslocation.init_location_search(p(this))})}),p(function(){var t,e=p(".ps-js-album-location"),i=e.find(".ps-js-album-location-text"),s=e.find(".ps-js-album-location-empty"),a=e.find(".ps-js-album-location-editor"),n=e.find(".ps-js-album-location-edit"),l=e.find(".ps-js-album-location-remove"),c=(a.find(".ps-js-submit"),a.find("input").eq(0));n.click(function(){a.is(":visible")||(i.hide(),s.hide(),n.hide(),l.hide(),a.show(),c.data("original-value",t=c.val()),c.focus().val("").val(t),pslocation.init_location_search(c),a.off("click input"),a.on("click",".ps-js-cancel",function(){c.val(t),a.off("click").hide(),n.show(),(t?(i.show(),l):s).show()}),a.on("click",".ps-js-submit",p.proxy(function(t){var e=c.data(),o={user_id:u.default.userid,post_id:e.postId,type_extra_field:"location","location[name]":e.location,"location[latitude]":e.latitude,"location[longitude]":e.longitude,_wpnonce:p("#_wpnonce_set_album_location").val()};peepso.postJson("photosajax.set_album_extra_field",o,function(t){t.success&&(a.off("click").hide(),c.val(e.location),i.find("span").html(e.location),i.show(),s.hide(),n.show(),l.show())})},this)))}),l.click(function(){var t=l.data(),t={user_id:u.default.userid,post_id:t.postId,type_extra_field:"location",location:"",_wpnonce:p("#_wpnonce_set_album_location").val()};peepso.postJson("photosajax.set_album_extra_field",t,function(t){t.success&&(c.val(""),i.find("span").html(""),i.hide(),s.show(),l.hide())})})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(t,e,o){"use strict";function i(){this.__constructor.apply(this,arguments)}var s,a,n,l;s=jQuery,a=s,n=".ps-postbox-location",i.prototype={__constructor:function(t){var e=peepsodata.location&&peepsodata.location.template_postbox||"";this.postbox=t,this.$container=t.$el.find("#location-tab"),this.$toggle=this.$container.find(".ps-js-postbox-toggle"),this.$dropdown=this.$container.find(".ps-js-postbox-location").html(e),this.$input=this.$dropdown.find("input[type=text]"),this.$loading=this.$dropdown.find(".ps-js-location-loading"),this.$result=this.$dropdown.find(".ps-js-location-result"),this.$map=this.$dropdown.find(".ps-js-location-map"),this.$select=this.$dropdown.find(".ps-js-select"),this.$remove=this.$dropdown.find(".ps-js-remove"),this.listItemTemplate=peepso.template(this.$dropdown.find(".ps-js-location-fragment").text()),this.$toggle.on("click"+n,a.proxy(this.onToggle,this)),this.$input.on("input"+n,a.proxy(this.onInput,this)),this.$result.on("mousedown"+n,".ps-js-location-listitem",a.proxy(this.onSelectItem,this)),this.$result.on("click"+n,".ps-js-location-listitem",t=>t.preventDefault()),this.$select.on("mousedown"+n,a.proxy(this.onSelect,this)),this.$remove.on("mousedown"+n,a.proxy(this.onRemove,this)),t.addAction("update",this.update,10,2,this),t.addFilter("render_addons",this.render,10,1,this),t.addFilter("data",this.filterData,10,1,this),t.addFilter("data_validate",this.validate,10,2,this)},show:function(){this.$dropdown.show(),this.$container.addClass("ps-postbox__menu-item--open"),setTimeout(()=>{a(document).off("mouseup.ps-postbox-location").on("mouseup.ps-postbox-location",t=>{0===this.$container.has(t.target).length&&this.hide()})},1),this._needUpdate&&(this._needUpdate=!1,this._selected?(this.$select.hide(),this.$remove.show(),this.$result.empty(),this.$map.children().show(),this.$toggle.addClass("active"),this.updateList([{place_id:"",name:this._selected.name,description:this._selected.description}]),this.updateMap({latitude:this._selected.latitude,longitude:this._selected.longitude,zoom:this._selected.zoom})):(this.$select.hide(),this.$remove.hide(),this.$result.empty(),this.$map.children().hide(),this.$toggle.removeClass("active"),this.updateList([])))},hide:function(){this.$dropdown.hide(),this.$container.removeClass("ps-postbox__menu-item--open"),a(document).off("mouseup.ps-postbox-location")},toggle:function(){this.$dropdown.is(":visible")?this.hide():this.show()},search:function(t){this.$result.empty().append(this.$loading),pslocation.search(t).done(a.proxy(function(t){for(var e,o=[],i=0;i<t.length;i++)e=(e=t[i].description).split(/,\s(.+)?/),o.push({place_id:t[i].place_id,name:e[0],description:e[1]});this.$loading.detach(),this.updateList(o)},this))},filterData:function(t){return this._selected?t.location=this._selected:t.location="",t},validate:function(t,e){return!!this._selected||t},render:function(t){var e;return this._selected&&(e='<i class="gcis gci-map-marker-alt"></i>',e+="<strong>"+this._selected.name+"</strong>",t.push(e)),t},update:function(t){(t=t&&t.data||{}).location?(this._selected={name:t.location.name,description:t.location.description,latitude:t.location.latitude,longitude:t.location.longitude,zoom:t.location.zoom},this.$input.data("location",t.location.name),this.$input.data("latitude",t.location.latitude),this.$input.data("longitude",t.location.longitude),this.$input.val(t.location.name),this.$toggle.addClass("active")):(this._selected=!1,this.$toggle.removeClass("active")),this._needUpdate=!0,this.postbox.doAction("refresh")},updateList:function(t){for(var e=[],o=0;o<t.length;o++)e.push(this.listItemTemplate(t[o]));this.$result.html(e.join(""))},updateMap:function(t){pslocation._gmap_load_library().done(a.proxy(function(){pslocation._gmap_render_map(this.$map[0],t)},this))},select:function(t,e,o){},remove:function(){},destroy:function(){this.$toggle.off("click")},onToggle:_.throttle(function(t){t.preventDefault(),t.stopPropagation();t=a(t.target);this.$dropdown.is(t)||this.$dropdown.find(t).length||this.toggle()},200),onInput:function(){var t=this.$input.val().trim();t&&(this.$result.empty().append(this.$loading),this._onInput(t))},_onInput:_.debounce(function(t){this.search(t)},200),onSelectItem:function(t){t.preventDefault(),t.stopPropagation();var t=a(t.currentTarget),e=t.data("place-id");t.addClass("ps-location-selected"),t.siblings().removeClass("ps-location-selected"),this.$select.show(),this.$remove.hide(),this.$map.children().show(),pslocation._gmap_get_place_detail(e).done(a.proxy(function(t){var e=t.name,o=t.geometry.location;this.$input.data("tmp-location",e).data("tmp-latitude",o.lat()).data("tmp-longitude",o.lng()),pslocation._gmap_render_map(this.$map[0],t)},this))},onSelect:function(t){t.preventDefault(),t.stopPropagation();var t=this.$input.data("tmp-location"),e=this.$input.data("tmp-latitude"),o=this.$input.data("tmp-longitude");this.$input.data("location",t),this.$input.data("latitude",e),this.$input.data("longitude",o),this.$input.val(t),this.$select.hide(),this.$remove.show(),this.$map.children().show(),this.$toggle.addClass("active"),this._selected={name:t,latitude:e,longitude:o},this.hide(),this.postbox.doAction("refresh")},onRemove:function(t){t.preventDefault(),t.stopPropagation(),this.$input.removeData("location").removeData("latitude").removeData("longitude").val(""),this.$select.hide(),this.$remove.hide(),this.$map.children().hide(),this.$toggle.removeClass("active"),this.$result.children().each(function(){var t=a(this);t.data("place-id")||t.remove()}),this._selected=!1,this.hide(),this.postbox.doAction("refresh")}},l=i,peepso.observer.addAction("postbox_init",function(t){new l(t)},10,1)},{}]},{},[2]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/location.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/moods.min.js*/
try {
	!function s(i,n,r){function d(t,o){if(!n[t]){if(!i[t]){var e="function"==typeof require&&require;if(!o&&e)return e(t,!0);if(a)return a(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}e=n[t]={exports:{}},i[t][0].call(e.exports,function(o){return d(i[t][1][o]||o)},e,e.exports,s,i,n,r)}return n[t].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)d(r[o]);return d}({1:[function(o,t,e){"use strict";function s(){this.__constructor.apply(this,arguments)}var i,n,r,d,a,p,h,l;function c(){this.$postbox=null,this.$container=null,this.$mood=null,this.$mood_remove=null,this.$mood_dropdown_toggle=null,this.mood_selected=!1,this.can_submit=!1}i=jQuery,r=(n=i)("#mood-text-string").text(),d=!1,a=".ps-postbox-moods",s.prototype={__constructor:function(o){this.postbox=o,this.$container=o.$el.find("#mood-tab"),this.$toggle=this.$container.find(".ps-js-postbox-toggle"),this.$dropdown=this.$container.find(".ps-js-postbox-mood"),this.$remove=this.$dropdown.find("button"),this.$toggle.on("click"+a,n.proxy(this.toggle,this)),this.$dropdown.on("click"+a,".ps-js-mood-item",n.proxy(this.select,this)),this.$remove.on("click"+a,n.proxy(this.remove,this)),this._mapMoods(),o.addAction("update",this.update,10,2,this),o.addFilter("render_addons",this.render,10,1,this),o.addFilter("data",this.filterData,10,1,this),o.addFilter("data_validate",this.validate,10,2,this)},show:function(){this.$dropdown.show(),this.$container.addClass("ps-postbox__menu-item--open"),setTimeout(()=>{n(document).off("mouseup.ps-postbox-moods").on("mouseup.ps-postbox-moods",o=>{0===this.$container.has(o.target).length&&this.hide()})},1)},hide:function(){this.$dropdown.hide(),this.$container.removeClass("ps-postbox__menu-item--open"),n(document).off("mouseup.ps-postbox-moods")},toggle:function(){this.$dropdown.is(":visible")?this.hide():this.show()},filterData:function(o){return this._selected?o.mood=this._selected.value:o.mood="",o},validate:function(o,t){return!!this._selected||o},select:function(o){o=n(o.currentTarget);o.length&&(this._selected={value:o.data("option-value"),label:o.data("option-display-value"),className:o.find("i").attr("class")},this.$toggle.addClass("active"),this.$remove.show(),this.postbox.doAction("refresh"),this.hide())},remove:function(){this._selected=!1,this.$toggle.removeClass("active"),this.$remove.hide(),this.postbox.doAction("refresh"),this.hide()},update:function(o){(o=o&&o.data||{}).mood?(this._selected={value:o.mood,label:d[o.mood].label,className:d[o.mood].icon},this.$toggle.addClass("active"),this.$remove.show()):(this._selected=!1,this.$toggle.removeClass("active"),this.$remove.hide()),this.postbox.doAction("refresh")},render:function(o){var t;return this._selected&&(t='<i class="'+this._selected.className+'"></i>',t+="<b> "+r+this._selected.label+"</b>",o.push(t)),o},_mapMoods:function(){d||this.$dropdown.find("a.ps-js-mood-item").each(function(){var o=n(this),t=o.find("i"),e=o.data("option-value"),o=o.data("option-display-value"),t=t.attr("class");(d=d||{})[e]={icon:t,label:o}})}},p=s,peepso.observer.addAction("postbox_init",function(o){new p(o)},10,1),peepso.observer.addFilter("human_friendly_extras",function(o,t,e){return t||!e||(e=i(e).find(".ps-js-activity-extras .ps-post__mood")).length&&(e=function(o){o=o.split(" ");for(var t=0;t<o.length;t++)o[t]=o[t][0].toUpperCase()+o[t].slice(1);return o.join(" ")}(e.text().trim()),o.push(e)),o},10,3),jQuery||$,h=peepso,l=h,c.prototype.set_postbox=function(o){this.$postbox=o},c.prototype.init=function(){var e;_.isUndefined(this.$postbox)||(e=this,l.observer.addFilter("peepso_postbox_can_submit",function(o){return o.soft.push(e.can_submit),o},20,1),this.$container=this.$postbox.find("#mood-tab"),this.$mood=jQuery("#postbox-mood",this.$postbox),this.$mood_dropdown_toggle=jQuery("#mood-tab .ps-js-interaction-wrapper > a",this.$postbox),this.$mood_remove=jQuery("#postbox-mood-remove",this.$postbox),this.$mood.on("click","a.ps-js-mood-item",function(o){e.select_mood(o)}),this.$mood_remove.on("click",function(){e.remove_mood()}),this.$mood_dropdown_toggle.on("click",function(){return e.$mood.is(":visible")?(e.$mood.hide(),e.$container.removeClass("ps-postbox__menu-item--open"),void jQuery(document).off("mouseup.ps-postbox-moods")):(e.$mood.show(),e.$container.addClass("ps-postbox__menu-item--open"),void setTimeout(function(){jQuery(document).off("mouseup.ps-postbox-moods").on("mouseup.ps-postbox-moods",function(o){0===e.$container.has(o.target).length&&(e.$mood.hide(),e.$container.removeClass("ps-postbox__menu-item--open"),jQuery(document).off("mouseup.ps-postbox-moods"))})},1))}),this.$mood_dropdown_toggle.on("peepso.interaction-hide",function(){e.$mood.hide(),e.$container.removeClass("ps-postbox__menu-item--open")}),this.$postbox.on("postbox.post_cancel postbox.post_saved",function(){e.remove_mood()}),l.observer.addFilter("postbox_req_"+this.$postbox.guid,function(o){return e.set_mood(o)},10,1),l.observer.addFilter("peepso_postbox_addons_update",function(o){var t;return e.mood_selected&&(t='<i class="ps-emoticon '+(t=e.mood_selected)[0]+'"></i> <b>'+t[1]+"</b>",o.push(t)),o},10,1))},c.prototype.select_mood=function(o){var t=jQuery(o.target).closest("a"),e=jQuery("#mood-tab",this.$postbox),s=jQuery("#postbox-mood-input",this.$postbox),i=(e.find("a"),t.closest("#postbox-mood")),o=(this.$postbox.$textarea.parent(),t.find("i").attr("class")),e=jQuery("#mood-text-string").text()+t.attr("data-option-display-value");s.val(t.attr("data-option-value")),this.$mood_remove.show(),i.hide(),this.$container.addClass("active"),this.$container.removeClass("ps-postbox__menu-item--open");i=this.$container.find(".ps-js-interaction-toggle"),t=(t=t.attr("data-option-display-value")).charAt(0).toUpperCase()+t.slice(1);i.attr("data-tooltip-original")||i.attr("data-tooltip-original",i.attr("data-tooltip")),i.attr("data-tooltip",t),this.mood_selected=[o,e],this.can_submit=!0,this.$postbox.on_change()},c.prototype.remove_mood=function(){jQuery("span#postmood",this.$postbox.$textarea.parent()).remove(),jQuery("#postbox-mood-input",this.$postbox).val(""),this.$container.removeClass("active"),this.$container.removeClass("ps-postbox__menu-item--open");var o=this.$container.find(".ps-js-interaction-toggle");o.attr("data-tooltip-original")&&(o.attr("data-tooltip",o.attr("data-tooltip-original")),o.removeAttr("data-tooltip-original")),this.$mood_remove.hide(),this.$mood.hide(),this.mood_selected=!1,this.can_submit=!1,this.$postbox.on_change()},c.prototype.set_mood=function(o){return void 0===o.mood&&(o.mood=""),o.mood=jQuery("#postbox-mood-input",this.$postbox).val(),o},l.observer.addFilter("peepso_postbox_addons",function(o){return o.push(new c),o},10,1)},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/moods.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/wordfilter/bundle.min.js*/
try {
	!function n(o,i,a){function c(r,e){if(!i[r]){if(!o[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(s)return s(r,!0);throw(t=new Error("Cannot find module '"+r+"'")).code="MODULE_NOT_FOUND",t}t=i[r]={exports:{}},o[r][0].call(t.exports,function(e){return c(o[r][1][e]||e)},t,t.exports,n,o,i,a)}return i[r].exports}for(var s="function"==typeof require&&require,e=0;e<a.length;e++)c(a[e]);return c}({1:[function(e,r,t){(function(m){(function(){"use strict";var e="undefined"!=typeof window?window.peepso:void 0!==m?m.peepso:null,r="undefined"!=typeof window?window.peepsodata:void 0!==m?m.peepsodata:null;function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var i=r.wordfilter.mask,a=+r.wordfilter.type,t=r.wordfilter.shift,c=+r.wordfilter.filter_posts,s=+r.wordfilter.filter_comments,f=+r.wordfilter.filter_messages,l=(r=r.wordfilter.keywords)instanceof Array&&r.length?(r=r.map(function(e){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if("string"!=typeof e)return e;for(var t="",n=0;n<e.length;n++){var o=e[n],i="a"<=o&&o<="z",a="A"<=o&&o<="Z";(i||a)&&(a=o.charCodeAt(0)-(i?97:65),a=(a+=r)<0?a+26:a%26,o=String.fromCharCode(a+(i?97:65))),t+=o}return t}(e.trim(),-t)}),new RegExp("(".concat(r.join("|"),")"),"g")):null,u=[].concat(c?[".ps-js-activity-content",".ps-js-activity-quote"]:[]).concat(s?[".ps-js-comment-content"]:[]).concat(f?[".ps-js-conversation-content",".ps-js-conversation-excerpt"]:[]).join(", "),d=["a","area","audio","base","br","button","code","col","embed","frame","hr","iframe","img","input","keygen","link","meta","param","script","select","source","style","textarea","track","video","wbr"];function p(e){var e=n(e.querySelectorAll(u)),r=[];e.forEach(function(e){r=r.concat(n(e.querySelectorAll("*")))}),(e=e.concat(r)).forEach(function(e){-1<d.indexOf(e.tagName.toLowerCase())||n(e.childNodes).forEach(function(r){var e,t;3!==r.nodeType||(e=r.textContent).trim()&&e.match(l)&&((t=document.createElement("div")).innerHTML=e.replace(l,function(e){var r;return e=2===a&&3<=e.length?(r=new Array(e.length-1).join(i),"".concat(e[0]).concat(r).concat(e[e.length-1])):new Array(e.length+1).join(i),'<span class="ps-js-wordfilter">'.concat(e,"</span>")}),n(t.childNodes).forEach(function(e){r.parentNode.insertBefore(e,r)}),r.parentNode.removeChild(r))})})}l&&u&&(e.observer.addFilter("peepso_activity",function(e){return e.map(function(){return 1===this.nodeType&&p(this),this})},20,1),e.observer.addFilter("messages_render",function(e){return e.map(function(){return 1===this.nodeType&&p(this),this})},20,1));e.observer.addFilter("markdown_precompile",function(e){return e=e.replace(/<span class="ps-js-wordfilter">.+?<\/span>/gi,function(e){return e=e.replace(new RegExp("\\"+i,"g"),"·")})},10,1),e.observer.addFilter("markdown_postcompile",function(e){return e=e.replace(/<span class="ps-js-wordfilter">.+?<\/span>/gi,function(e){return e=e.replace(new RegExp("\\·","g"),i)})},10,1)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/wordfilter/bundle.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/giphy.min.js*/
try {
	/* [inline: cdata] */var peepsogiphydata={"dialogGiphyTemplate":"<div class=\"ps-giphy ps-giphy--slider ps-js-giphy-container\">\n\t<div class=\"ps-giphy__search\">\n\t\t<input type=\"text\" class=\"ps-input ps-input--sm ps-giphy__input ps-js-giphy-query\"\n\t\tplaceholder=\"Search...\" style=\"display:none\" \/>\n\t\t<div class=\"ps-giphy__powered\">\n\t\t\t<a href=\"https:\/\/giphy.com\/\" target=\"_blank\"><\/a>\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"ps-giphy__loading ps-loading ps-js-giphy-loading\">\n\t\t<i class=\"gcis gci-circle-notch gci-spin\"><\/i>\n\t<\/div>\n\n\t<div class=\"ps-giphy__slider ps-js-slider\">\n\t\t<div class=\"ps-giphy__slides ps-js-giphy-list\"><\/div>\n\n\t\t<script type=\"text\/template\" class=\"ps-js-giphy-list-item\">\n\t\t\t<div class=\"ps-giphy__slide ps-giphy__slides-item ps-js-giphy-item\">\n\t\t\t\t<img class=\"ps-giphy__slide-image\" src=\"{{= data.preview }}\" data-id=\"{{= data.id }}\" data-url=\"{{= data.src }}\" \/>\n\t\t\t<\/div>\n\t\t<\/script>\n\n\t\t<div class=\"ps-giphy__nav ps-giphy__nav--left ps-js-giphy-nav-left\"><i class=\"gcis gci-chevron-left\"><\/i><\/div>\n\t\t<div class=\"ps-giphy__nav ps-giphy__nav--right ps-js-giphy-nav-right\"><i class=\"gcis gci-chevron-right\"><\/i><\/div>\n\t<\/div>\n<\/div>\n","giphy_api_key":"3o6Zt9GewH6JbI812w","giphy_rating":"","giphy_rendition_posts":"original","giphy_rendition_comments":"fixed_width","giphy_rendition_messages":"fixed_width","giphy_display_limit":"25"}
;/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/giphy.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}try {
	!function s(o,n,r){function p(e,t){if(!n[e]){if(!o[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(h)return h(e,!0);throw(i=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",i}i=n[e]={exports:{}},o[e][0].call(i.exports,function(t){return p(o[e][1][t]||t)},i,i.exports,s,o,n,r)}return n[e].exports}for(var h="function"==typeof require&&require,t=0;t<r.length;t++)p(r[t]);return p}({1:[function(t,e,i){"use strict";var s,o,h,r,n;s=window,o=n="PsGiphyComment",h=s.jQuery,r=t("./giphy.js"),o=peepso.createClass(o,{__constructor:function(){this.template=peepsogiphydata.dialogGiphyTemplate,peepso.observer.addFilter("comment_show_button",this.shouldShowButton,10,1),peepso.observer.addFilter("comment_can_submit",this.isSubmittable,10,1),peepso.observer.addFilter("comment_req",this.filterRequest,10,2),peepso.observer.addAction("comment_edit",this.onEdit,10,2),h(h.proxy(this.onDocumentLoaded,this))},onDocumentLoaded:function(){h(document).on("click",".ps-js-comment-giphy",h.proxy(this.onAttach,this)),h(document).on("click",".ps-js-addon-giphy .ps-js-remove",h.proxy(this.onRemove,this)),h(document).on("ps_comment_aftersave",h.proxy(this.onSaved,this))},onAttach:_.throttle(function(t){var e,i="ps-giphy-initialized",s="ps-giphy-loading",o=peepso.rtl,n=h(t.currentTarget);function r(t){t.show(),t[0].focus(),t.css({backgroundColor:peepso.getLinkColor()}),t.css({transition:"background-color 3s ease"}),setTimeout(()=>{t.css({backgroundColor:""})},500)}t.preventDefault(),t.stopPropagation(),n=n.closest(".ps-js-comment-new, .ps-js-comment-edit"),(e=n.prev(".ps-js-giphy-container")).length||((e=h(this.template)).data("act-id",n.data("id")),e.find(".ps-js-giphy-list").css("transition",`margin-${o?"right":"left"} .5s`),e.hide().insertBefore(n),e.on("input",".ps-js-giphy-query",h.proxy(this.onSearch,this)),e.on("click",".ps-js-giphy-list img",h.proxy(this.onSelectImage,this)),e.on("click",".ps-js-giphy-nav-left",t=>this.onScroll(t,"left")),e.on("click",".ps-js-giphy-nav-right",t=>this.onScroll(t,"right"))),e.is(":visible")?e.hide():(e.show(),e.data(i)||e.data(s)?r(e.find(".ps-js-giphy-query")):(e.data(s,!0),this.search(e).done(h.proxy(function(){e.data(i,!0),e.removeData(s),r(e.find(".ps-js-giphy-query"))},this))))},1e3),search:function(o,n){return h.Deferred(h.proxy(function(e){var t=r.getInstance(),i=o.find(".ps-js-giphy-loading").show(),s=o.find(".ps-js-giphy-list").hide();t.search(n).done(h.proxy(function(t){this.render(o,t),i.hide(),s.show(),e.resolveWith(this)},this))},this))},render:function(t,e){var i=t.find(".ps-js-giphy-list"),t=t.find(".ps-js-giphy-list-item"),r=peepso.template(t.html()),p=peepsogiphydata.giphy_rendition_comments||"fixed_width",e=_.map(e,function(t,e){var i,s=t.images,o=s[p],n="";return o&&(i=s.preview_gif||s.downsized_still||s.fixed_width_still||s.original_still)&&(h.extend(t,{src:o.url,preview:i.url}),n=r(t)),n});i.html(e.join(""))},onSearch:function(t){var e=h(t.currentTarget),i=e.closest(".ps-js-giphy-container"),s=i.find(".ps-js-giphy-list"),o=i.find(".ps-js-giphy-loading"),t=peepso.rtl;s.hide().css(t?"marginRight":"marginLeft",0),o.show(),this._onSearch(i,e)},_onSearch:_.debounce(function(t,e){this.search(t,h.trim(e.val()))},1e3),onSelectImage:function(t){var e=h(t.currentTarget),i=e.closest(".ps-js-giphy-container"),t=e.attr("src"),e=e.attr("data-url");this.select(i,t,e),i.hide()},onScroll:function(t,e){var i=peepso.rtl,s=h(t.currentTarget).closest(".ps-js-slider"),o=s.find(".ps-js-giphy-list"),t=s.width(),s=parseInt(o.css(i?"marginRight":"marginLeft"))||0;e===(i?"right":"left")?s=Math.min(s+t,0):e===(i?"left":"right")&&(e=o.children(".ps-js-giphy-item").last(),e=i?Math.abs(e.position().left):e.position().left+e.width()-t,s-=Math.min(t,e)),o.css(i?"marginRight":"marginLeft",s)},select:function(t,e,i){t=t.siblings(".ps-js-comment-new, .ps-js-comment-edit").find(".ps-js-addons").find(".ps-js-addon-giphy");t.find(".ps-js-remove").show(),t.find(".ps-js-img").attr("src",e).attr("data-url",i).show(),t.show(),h(document).trigger("ps_comment_addon_added",t)},onRemove:function(t){t=h(t.currentTarget).closest(".ps-js-addon-giphy");t.find(".ps-js-remove").hide(),t.find(".ps-js-img").attr("src","").attr("data-url","").hide(),t.hide(),h(document).trigger("ps_comment_addon_removed",t)},shouldShowButton:function(t){var e,i=h(t.el).closest(".ps-js-comment-new, .ps-js-comment-edit").find(".ps-js-addon-giphy");return i.is(":visible")&&(e=i.find(".ps-js-img")).length&&e.attr("src")&&(t.show=!0),t},isSubmittable:function(t){var e,i=h(t.el).closest(".ps-js-comment-new, .ps-js-comment-edit").find(".ps-js-addon-giphy");return i.is(":visible")&&(e=i.find(".ps-js-img")).length&&e.attr("src")&&(t.can_submit=!0),t},filterRequest:function(t,e){var i,e=h(e).closest(".ps-js-comment-new, .ps-js-comment-edit").find(".ps-js-addon-giphy");return e.is(":visible")&&(i=e.find(".ps-js-img")).length&&i.attr("data-url")&&(t.giphy=i.attr("data-url"),t.giphy=t.giphy.replace(/^[a-z]+:\/\//i,"")),t},onSaved:function(t,e,i){i=h(i).closest(".ps-js-comment-new, .ps-js-comment-edit").find(".ps-js-addon-giphy");i.find(".ps-js-remove").hide(),i.find(".ps-js-img").attr("src","").hide(),i.hide(),h(document).trigger("ps_comment_addon_removed",i)},onEdit:function(t,e){var i=h(e).find(".ps-js-addon-giphy"),e=i.find(".ps-js-img");e.length&&e.attr("src")?(i.find(".ps-js-remove").show(),i.find(".ps-js-img").show(),i.show(),h(document).trigger("ps_comment_addon_added",i)):(i.find(".ps-js-remove").hide(),i.find(".ps-js-img").hide(),i.hide(),h(document).trigger("ps_comment_addon_removed",i))}}),"object"==typeof e&&e.exports?e.exports=o:s[n]=o,new o},{"./giphy.js":2}],2:[function(t,e,i){"use strict";var s,o,n,r,p;s=window,n="PsGiphy",o=s.jQuery,r=peepso.createClass(n,{__constructor:function(){this.apiKey=peepsogiphydata.giphy_api_key,this.displayLimit=peepsogiphydata.giphy_display_limit,this.rating=peepsogiphydata.giphy_rating},search:function(i){return i=o.trim(i||""),o.Deferred(o.proxy(function(e){this._result||(this._result={});var t=this._result[i];t?e.resolveWith(this,[t]):this._giphy(i).done(o.proxy(function(t){this._result[i]=t.data,e.resolveWith(this,[t.data])},this))},this))},_giphy:function(t){var e="https://api.giphy.com/v1/gifs/trending",i={api_key:this.apiKey,limit:this.displayLimit};return this.rating&&(i.rating=this.rating),t&&(e="https://api.giphy.com/v1/gifs/search",i=_.extend(i,{q:t,offset:0})),o.get(e,i)}}),p={getInstance:function(){return this._instance||(this._instance=new r),this._instance}},"object"==typeof e&&e.exports?e.exports=p:s[n]=p},{}],3:[function(o,t,e){!function(i){!function(){"use strict";var t,s=(t="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&t.__esModule?t:{default:t},e="undefined"!=typeof window?window.peepso:void 0!==i?i.peepso:null;o("./comment"),o("./message"),o("./postbox"),e.observer.addFilter("human_friendly_extras",function(t,e,i){return e||!i||i.querySelector(".ps-js-post-header")||(i=(0,s.default)(i).find(".ps-comment-media .ps-js-giphy [data-preview]")).length&&t.push(i.data("preview")),t},20,3)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./comment":1,"./message":4,"./postbox":5}],4:[function(t,e,i){"use strict";var s,o,h,r,n;s=window,o=n="PsGiphyMessage",h=s.jQuery,r=t("./giphy.js"),o=peepso.createClass(o,{__constructor:function(){h(h.proxy(this.onDocumentLoaded,this))},onDocumentLoaded:function(){h(document).on("click",".ps-js-chat-window .ps-js-giphy-trigger",h.proxy(this.onToggle,this))},onToggle:function(t){var e=h(t.currentTarget).siblings(".ps-js-giphy-container"),i="ps-giphy-initialized",s="ps-giphy-loading";function o(t){t.show(),t[0].focus(),t.css({backgroundColor:peepso.getLinkColor()}),t.css({transition:"background-color 3s ease"}),setTimeout(()=>{t.css({backgroundColor:""})},500)}t.preventDefault(),t.stopPropagation(),e.is(":visible")?e.hide():(e.show(),e.data(i)||e.data(s)?o(e.find(".ps-js-giphy-query")):(e.data(s,!0),e.on("input",".ps-js-giphy-query",h.proxy(this.onSearch,this)),e.on("click",".ps-js-giphy-list img",h.proxy(this.onSelectImage,this)),e.on("click",".ps-js-giphy-nav-left",t=>this.onScroll(t,"left")),e.on("click",".ps-js-giphy-nav-right",t=>this.onScroll(t,"right")),this.search(e).done(h.proxy(function(){e.data(i,!0),e.removeData(s),o(e.find(".ps-js-giphy-query"))},this))))},search:function(o,n){return h.Deferred(h.proxy(function(e){var t=r.getInstance(),i=o.find(".ps-js-giphy-loading").show(),s=o.find(".ps-js-giphy-list").hide();t.search(n).done(h.proxy(function(t){this.render(o,t),i.hide(),s.show(),e.resolveWith(this)},this))},this))},render:function(t,e){var i=t.find(".ps-js-giphy-list"),t=t.find(".ps-js-giphy-list-item"),r=peepso.template(t.html()),p=peepsogiphydata.giphy_rendition_messages||"fixed_width",e=_.map(e,function(t,e){var i,s=t.images,o=s[p],n="";return o&&(i=s.preview_gif||s.downsized_still||s.fixed_width_still||s.original_still)&&(h.extend(t,{src:o.url,preview:i.url}),n=r(t)),n});i.html(e.join(""))},onSearch:function(t){var e=h(t.currentTarget),i=e.closest(".ps-js-giphy-container"),s=i.find(".ps-js-giphy-list"),t=i.find(".ps-js-giphy-loading");s.hide().css({marginLeft:"",marginRight:""}),t.show(),this._onSearch(i,e)},_onSearch:_.debounce(function(t,e){this.search(t,h.trim(e.val()))},1e3),onSelectImage:function(t){var e=h(t.currentTarget),i=e.closest(".ps-js-giphy-container"),t=i.closest(".ps-js-chat-window").data("id"),e=e.attr("data-url");i.hide(),this.post(t,e)},onScroll:function(t,e){var i=peepso.rtl,s=h(t.currentTarget).closest(".ps-js-slider"),o=s.find(".ps-js-giphy-list"),t=s.width(),s=parseInt(o.css(i?"marginRight":"marginLeft"))||0;e===(i?"right":"left")?s=Math.min(s+t,0):e===(i?"left":"right")&&(e=o.children(".ps-js-giphy-item").last(),e=i?Math.abs(e.position().left):e.position().left+e.width()-t,s-=Math.min(t,e)),o.css(i?"marginRight":"marginLeft",s)},post:function(t,e){peepso.observer.doAction("msgso_send_message",t,"",{type:"giphy",giphy:e})}}),"object"==typeof e&&e.exports?e.exports=o:s[n]=o,new o,peepso.observer.addFilter("giphy_rendition_posts",function(t,e){return t="messagesajax.add_message"===e.opts.save_url?window.peepsogiphydata.giphy_rendition_messages||"fixed_width":t},10,2)},{"./giphy.js":2}],5:[function(n,t,e){!function(o){!function(){"use strict";var r=t("undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null),e=t("undefined"!=typeof window?window._:void 0!==o?o._:null),p=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};e=h(e);if(e&&e.has(t))return e.get(t);var i,s={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in t){var n;"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&((n=o?Object.getOwnPropertyDescriptor(t,i):null)&&(n.get||n.set)?Object.defineProperty(s,i,n):s[i]=t[i])}s.default=t,e&&e.set(t,s);return s}("undefined"!=typeof window?window.peepso:void 0!==o?o.peepso:null),i=t(n("./giphy"));function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(h=function(t){return t?i:e})(t)}function t(t){return t&&t.__esModule?t:{default:t}}class s{constructor(t){this.$postbox=t,this.$postboxTab=this.$postbox.$posttabs,this.$postboxStatusTextarea=this.$postbox.$textarea,this.$postboxStatus=this.$postboxStatusTextarea.closest(".ps-postbox-status"),this.$postboxGiphy=this.$postbox.find(".ps-postbox-tabs [data-tab-id=giphy]"),this.$preview=this.$postboxGiphy.find(".ps-js-giphy-preview").hide(),this.$selector=this.$postboxGiphy.find(".ps-js-giphy-container").show(),this.$loading=this.$selector.find(".ps-js-giphy-loading"),this.$query=this.$selector.find(".ps-js-giphy-query"),this.$result=this.$selector.find(".ps-js-giphy-list"),this.$slider=this.$result.parent(),this.onScroll=e.default.throttle(this.onScroll,500),this.$preview.on("click",".ps-js-giphy-change",t=>this.onChangeImage(t)),this.$query.on("input",t=>this.onInput(t)),this.$result.on("click","img",t=>this.onSelect(t.target)),this.$slider.find(".ps-js-giphy-nav-left").on("click",()=>this.onScroll("left")),this.$slider.find(".ps-js-giphy-nav-right").on("click",()=>this.onScroll("right")),this.giphy=null,this.itemTemplate=p.default.template(this.$slider.find(".ps-js-giphy-list-item").html()),this.$postboxTab.on("peepso_posttabs_show-giphy",r.default.proxy(this.show,this)),this.$postboxTab.on("peepso_posttabs_cancel-giphy",r.default.proxy(this.cancel,this)),this.$postboxTab.on("peepso_posttabs_submit-giphy",r.default.proxy(this.post,this)),p.observer.addAction("postbox_type_set",r.default.proxy(this.actionPostboxTypeSet,this),10,2),p.observer.addFilter("peepso_postbox_can_submit",r.default.proxy(this.filterCanSubmit,this),10,2)}show(){function t(t){t.show(),t[0].focus(),t.css({backgroundColor:p.default.getLinkColor()}),t.css({transition:"background-color 3s ease"}),setTimeout(()=>{t.css({backgroundColor:""})},500)}this.$postboxStatus.show(),this.$postboxGiphy.show(),this.giphy?t(this.$query):(this.giphy=i.default.getInstance(),this.search().done(()=>t(this.$query)))}cancel(){this.selectedImage=null,this.$postboxGiphy.hide(),this.$preview.hide(),this.$selector.show(),this.$postbox.on_change()}post(){var t="postbox_req_"+this.$postbox.guid;p.observer.addFilter(t,this.filterPostboxReq,10,1,this),this.$postbox.save_post(),p.observer.removeFilter(t,this.filterPostboxReq,10)}value(){let t;return this.selectedImage&&(t=this.selectedImage),t}search(t=""){return this.$result.hide(),this.$loading.show(),r.default.Deferred(e=>{clearTimeout(this.searchDelay);let i=this.searchDelay=setTimeout(()=>{this.giphy.search(t).done(t=>{this.searchDelay===i&&(this.render(t),this.$loading.hide(),this.$result.show(),this.$query.show()),e.resolveWith(this)})},1e3)})}render(t){let n=p.observer.applyFilters("giphy_rendition_posts",peepsogiphydata.giphy_rendition_posts||"fixed_width",this.$postbox),e=t.map(t=>{var e,i=t.images,s=i[n],o="";return s&&(e=i.preview_gif||i.downsized_still||i.fixed_width_still||i.original_still)&&(r.default.extend(t,{src:s.url,preview:e.url}),o=this.itemTemplate(t)),o});this.$result.html(e.join(""))}select(t,e){this.selectedImage=e,this.$selector.hide(),this.$preview.find("img").attr("src",t),this.$preview.show(),this.$postbox.on_change()}scroll(t){let e=p.default.rtl,i=this.$selector.find(".ps-js-slider"),s=i.find(".ps-js-giphy-list"),o=i.width(),n=parseInt(s.css(e?"marginRight":"marginLeft"))||0,r;t===(e?"right":"left")?n=Math.min(n+o,0):t===(e?"left":"right")&&(t=s.children(".ps-js-giphy-item").last(),r=e?Math.abs(t.position().left):t.position().left+t.width()-o,n-=Math.min(o,r)),s.css(e?"marginRight":"marginLeft",n)}onChangeImage(t){t.preventDefault(),t.stopPropagation(),this.selectedImage=null,this.$postbox.on_change(),this.$preview.hide(),this.$selector.show()}onInput(t){let e=t.target.value;this.$result.hide(),this.$loading.show(),this.search(e.trim())}onScroll(t){this.scroll(t)}onSelect(t){this.select(t.src,t.getAttribute("data-url"))}filterPostboxReq(t){var e=this.value();return e&&(t.type="giphy",t.giphy=e),t}filterCanSubmit(t,e){return this.$postbox===e&&"giphy"===this.$postboxTab.current_tab_id&&t.hard.push(!!this.value()),t}actionPostboxTypeSet(t,e){t===this.$postbox&&"giphy"===e&&"giphy"!==this.$postboxTab.current_tab_id&&this.$postbox.find("[data-tab=giphy]").trigger("click")}}p.observer.addAction("peepso_postbox_addons",t=>{return t.push({init(){},set_postbox(t){t.find("[data-tab-id=giphy]").length&&new s(t)}}),t},10,1)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./giphy":2}]},{},[3]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/giphy.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/vip/bundle.min.js*/
try {
	!function o(i,r,u){function a(t,e){if(!r[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=r[t]={exports:{}},i[t][0].call(n.exports,function(e){return a(i[t][1][e]||e)},n,n.exports,o,i,r,u)}return r[t].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)a(u[e]);return a}({1:[function(a,e,t){!function(r){!function(){"use strict";var e=o("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null),t=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};t=u(t);if(t&&t.has(e))return t.get(e);var n,o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var r;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((r=i?Object.getOwnPropertyDescriptor(e,n):null)&&(r.get||r.set)?Object.defineProperty(o,n,r):o[n]=e[n])}o.default=e,t&&t.set(e,o);return o}("undefined"!=typeof window?window.peepso:void 0!==r?r.peepso:null),n="undefined"!=typeof window?window.peepsodata:void 0!==r?r.peepsodata:null,i=o(a("./popover"));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}(0,e.default)(function(r){let u=t.default.template(n.vip.hovercardTemplate);t.observer.addAction("hovercard_update_html",function(e,t){let n=e.find(".ps-hovercard").removeClass("ps-hovercard--full"),o=n.find(".ps-js-cover"),i=o.siblings(".ps-js-vip");i.length&&i.remove(),_.isObject(t.vip)&&!_.isArray(t.vip)&&(n.addClass("ps-hovercard--full"),i=r(u(t)).addClass("ps-js-vip"),i.insertAfter(o))},10,2),n.vip.popoverEnable&&r(document).on("mouseenter",".ps-js-vip-badge",function(n){let o=r(n.currentTarget);if(!o.data("ps-vip")){let e=o.data("id"),t=new i.default(o[0],e);o.data("ps-vip",t),t.show(n)}})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./popover":2}],2:[function(e,t,s){!function(f){!function(){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var i=(p="undefined"!=typeof window?window.jQuery:void 0!==f?f.jQuery:null)&&p.__esModule?p:{default:p},e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};t=u(t);if(t&&t.has(e))return t.get(e);var n,o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var r;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((r=i?Object.getOwnPropertyDescriptor(e,n):null)&&(r.get||r.set)?Object.defineProperty(o,n,r):o[n]=e[n])}o.default=e,t&&t.set(e,o);return o}("undefined"!=typeof window?window.peepso:void 0!==f?f.peepso:null),r="undefined"!=typeof window?window.peepsodata:void 0!==f?f.peepsodata:null;function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let o,t,a=e.default.template(r.vip.popoverTemplate);function l(e,n){if(clearTimeout(t),o=o||(o=(0,i.default)("<div />"),o.addClass("ps-vip-dropdown__wrapper"),o.css({display:"none",position:"absolute"}),o.appendTo(document.body),o),o.html(a(e)).show(),n){let e=(0,i.default)(n),t=e.offset();o.css({left:t.left,top:t.top+e.height()})}}class d{constructor(e,t){n(this,"timer",void 0),this.id=t,this.$elem=(0,i.default)(e),this.$elem.on("mouseenter",e=>{e.stopPropagation(),this.show(e)}),this.$elem.on("mouseleave",e=>{e.stopPropagation(),this.hide()}),this.$elem.removeAttr("title")}getData(){return new e.Promise((t,n)=>{let o=d.cache[this.id];o?t(o):i.default.get({url:r.ajaxurl,dataType:"json",data:{action:"peepso_vip_user_icons",user_id:this.id}}).done(e=>{e?(o=d.cache[this.id]=e,t(o)):n()})})}show(e){this.timer=setTimeout(()=>{let t=setTimeout(()=>{l("loading",this.$elem.get(0))},500);this.getData().then(e=>{clearTimeout(t),this.timer&&l(e,this.$elem.get(0))})},300)}hide(){clearTimeout(this.timer),this.timer=null,o&&(t=setTimeout(function(){o.hide()},200))}}n(d,"cache",{});var p=d;s.default=p}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/vip/bundle.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}
/*!/wp-content/plugins/peepso-core/assets/js/jquery.autosize.min.js*/
try {
	!function(p){var w,e={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeDelay:10,placeholder:!0},f=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],z=p('<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>').data("autosize",!0)[0];(z.style.lineHeight="99px")===p(z).css("lineHeight")&&f.push("lineHeight"),z.style.lineHeight="",p.fn.autosize=function(u){return this.length?(u=p.extend({},e,u||{}),z.parentNode!==document.body&&p(document.body).append(z),this.each(function(){var i,n,e,a=this,s=p(a),t=0,r="function"==typeof u.callback,o={height:a.style.height,overflow:a.style.overflow,overflowY:a.style.overflowY,wordWrap:a.style.wordWrap,resize:a.style.resize},l=s.width();function d(){var o,i=!!window.getComputedStyle&&window.getComputedStyle(a,null);i?(0!==(o=a.getBoundingClientRect().width)&&"number"==typeof o||(o=parseInt(i.width,10)),p.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(e,t){o-=parseInt(i[t],10)})):o=Math.max(s.width(),0),z.style.width=o+"px"}function h(){var e,t,o;w!==a?(o={},w=a,z.className=u.className,z.id=u.id,i=parseInt(s.css("maxHeight"),10),p.each(f,function(e,t){o[t]=s.css(t)}),p(z).css(o).attr("wrap",s.attr("wrap")),d(),window.chrome&&(t=a.style.width,a.style.width="0px",a.offsetWidth,a.style.width=t)):d(),!a.value&&u.placeholder?z.value=(s.attr("placeholder")||"")+u.append:z.value=a.value+u.append,z.style.overflowY=a.style.overflowY,e=parseInt(a.style.height,10),z.scrollTop=0,z.scrollTop=9e4,t=z.scrollTop,i&&i<t?(a.style.overflowY="scroll",t=i):(a.style.overflowY="hidden",t<n&&(t=n)),e!==t&&(a.style.height=t+"px",r&&u.callback.call(a,a))}function c(){clearTimeout(e),e=setTimeout(function(){var e=s.width();e!==l&&(l=e,h())},parseInt(u.resizeDelay,10))}s.data("autosize")||(s.data("autosize",!0),"border-box"!==s.css("box-sizing")&&"border-box"!==s.css("-moz-box-sizing")&&"border-box"!==s.css("-webkit-box-sizing")||(t=s.outerHeight()-s.height()),n=Math.max(parseInt(s.css("minHeight"),10)-t||0,s.height()),s.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word",resize:"none"===s.css("resize")||"vertical"===s.css("resize")?"none":"horizontal"}),"onpropertychange"in a?"oninput"in a?s.on("input.autosize keyup.autosize",h):s.on("propertychange.autosize",function(){"value"===event.propertyName&&h()}):s.on("input.autosize",h),!1!==u.resizeDelay&&p(window).on("resize.autosize",c),s.on("autosize.resize",h),s.on("autosize.resizeIncludeStyle",function(){w=null,h()}),s.on("autosize.destroy",function(){w=null,clearTimeout(e),p(window).off("resize",c),s.off("autosize").off(".autosize").css(o).removeData("autosize")}),h())})):this}}(window.jQuery||window.$);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://topremedyclub.com/wp-content/plugins/peepso-core/assets/js/jquery.autosize.min.js?mt=1722882856&ver=6.4.4.0 - Error: " + err.message); 
}