File: /var/www/html/wp-content/boost-cache/static/d43bf4907f.min.js
(()=>{!function(e){var t="advads_procfp",a="advanced_ads_ad_clicks",n=null,o=null;function r(e){try{return JSON.parse(e)}catch(e){return null}}e(document).on("advads-passive-cb-conditions",function(e,t){t.conditions.ad_clicks="check_ad_clicks",t.check_ad_clicks=function(e,t){if(advads.cookie_exists(a+"_"+t.id)){var n=advads.get_cookie(a+"_"+t.id);n=r(n)}if(n){var o=parseInt((new Date).getTime()/1e3);for(var i in n)if("_"+e.expiration==i&&n[i].ttl>=o&&n[i].count>=parseInt(e.limit))return!1}return!0}});var i=function(){this.$elements={},this.currentIFrame=!1,this.focusLost=!1,this.wrappers=[".google-auto-placed"],this.attributes={"data-anchor-status":"displayed","data-vignette-loaded":"true"},this.lastClick=0,this.init()};i.prototype={constructor:i,init:function(){const t=this;let a;e(document).on("click","a[data-cfpa]",function(){t.onClick(parseInt(e(this).attr("data-cfpa")))}),e(window).on("blur",function(e){setTimeout(function(){if(!t.currentIFrame)for(let e=document.activeElement;e&&e!==this&&e!==document&&(t.currentIFrame=t.checkWrappers(e),!t.currentIFrame);e=e.parentNode);t.currentIFrame&&(t.onClick(t.currentIFrame),t.focusLost=!0,top.focus())},0)}),e(document).on("mouseenter","div[data-cfpa]",function(){var a=parseInt(e(this).attr("data-cfpa"));t.addElement(a)}),document.addEventListener("touchmove",function(){a=!0},!1),document.addEventListener("touchstart",function(){a=!1},!1),["click","touchend"].forEach(function(e){document.addEventListener(e,function(e){if(a||t.getTimestamp()-t.lastClick<1)return;let n=null;for(let a=e.target;a&&a!==this&&a!==document;a=a.parentNode){if(n=t.checkWrappers(a),n){t.onClick(n);break}if(a.hasAttribute("data-cfpa")&&a.hasAttribute("data-cfptl")){n=parseInt(a.getAttribute("data-cfpa"),10),t.onClick(n);break}}})})},getTimestamp:function(){return Math.floor(Date.now()/1e3)},checkWrappers:function(e){for(let t=0,a=this.wrappers.length,n=null;t<a;t++)if(n=this.wrappers[t],e.matches&&e.matches(n))return".google-auto-placed"===n?"google-auto-placed":null;for(const[t,a]of Object.entries(this.attributes))if(e.hasAttribute(t)&&e.getAttribute(t)===a)return"google-auto-placed";return null},addElement:function(t){0==t instanceof jQuery&&(t=e('div[data-cfpa="'+t+'"]').first());var i=!!t.find("iframe").length;if(i||t.find("a").length){var d=parseInt(t.attr("data-cfpa"));if(this.$elements[d]=t,t.removeAttr("data-cfpa"),i?(t.find("iframe").first().attr({"data-cfpa":d}),t.attr("data-cfph")&&t.find("iframe").first().attr({"data-cfph":t.attr("data-cfph")})):(t.find("a").not(".advads-edit-button").first().attr({"data-cfpa":d}),t.attr("data-cfph")&&t.find("a").not(".advads-edit-button").first().attr({"data-cfph":t.attr("data-cfph")})),t.removeAttr("data-cfph"),advads.cookie_exists(a+"_"+d)){var c=advads.get_cookie(a+"_"+d);if(c=r(c)){var s=parseInt((new Date).getTime()/1e3),f=!1;for(var u in c)if(c.hasOwnProperty(u)&&"exp"!=u&&c[u].ttl<s){for(var p=parseFloat(u.substr(1)),v=c[u].ttl;v<s;)v+=60*p*60;c[u].ttl=v,c[u].count=0,f=!0}if(f){var l=new Date(c.exp);advads.set_cookie_sec(a+"_"+d,JSON.stringify(c,"false",!1),parseInt(l.getTime()/1e3),n,o)}}}}},_banVisitor:function(){var e=new Date,t=new Date;t.setTime(t.getTime()+24*advadsCfpInfo.cfpBan*60*60*1e3);var a=(t.getTime()-e.getTime())/1e3;advads.set_cookie_sec("advads_pro_cfp_ban",1,a,n,o),document.querySelectorAll("[data-cfpw]:not([data-cfp-exclude])").forEach(function(e){e.remove()}),this.removeEmptyWrappers(),this.wrappers.forEach(function(e){jQuery(e).remove()});for(const[e,t]of Object.entries(this.attributes))jQuery("["+e+'="'+t+'"]').remove()},removeEmptyWrappers:function(){document.querySelectorAll("[data-cfptl]:not([data-cfpw])").forEach(function(e){e.querySelectorAll("[data-cfpw]").length||e.remove()})},onClick:function(i){var d=this,c=!1,s=!1;if(this.lastClick=this.getTimestamp(),"google-auto-placed"!==i&&e('[data-cfpa="'+i+'"]').attr("data-cfph")){advads.cookie_exists(a+"_"+i)&&(s=r(advads.get_cookie(a+"_"+i)));const t=r(e('[data-cfpa="'+i+'"]').attr("data-cfph"));if(s){const e=parseInt((new Date).getTime()/1e3,10),r=document.querySelectorAll('[data-cfpw="'+i+'"]');for(var f in s)s.hasOwnProperty(f)&&"exp"!==f&&(s[f].count=parseInt(s[f].count,10)+1,s[f].ttl>=e&&s[f].count>=parseInt(t[f],10)&&(r.forEach(function(e){e.remove()}),d.removeEmptyWrappers()));var u=new Date,p=new Date(s.exp),v=parseInt((p.getTime()-u.getTime())/1e3);advads.set_cookie_sec(a+"_"+i,JSON.stringify(s,"false",!1),v,n,o)}else{var l={},m=0,h=new Date;for(var f in u=new Date,t)f=f.substring(1),parseFloat(f)>m&&(m=parseFloat(f)),l["_"+f]={count:1,ttl:parseInt(u.getTime()/1e3+3600*parseFloat(f),10)};h.setTime(h.getTime()+60*m*60*1e3);var _="expires="+h.toUTCString();v=parseInt((h.getTime()-u.getTime())/1e3),l.exp=_,advads.set_cookie_sec(a+"_"+i,JSON.stringify(l,"false",!1),v,n,o),1===t[Object.keys(t)[0]]&&(document.querySelectorAll('[data-cfpw="'+i+'"]').forEach(function(e){e.remove()}),this.removeEmptyWrappers())}}"1"===advadsCfpInfo.cfpEnabled&&(advads.cookie_exists(t+"_"+i)&&(c=r(advads.get_cookie(t+"_"+i))),c?(c.count=parseInt(c.count,10)+1,u=new Date,v=((p=new Date(c.exp)).getTime()-u.getTime())/1e3,advads.set_cookie_sec(t+"_"+i,JSON.stringify(c,"false",!1),v,n,o),parseInt(advadsCfpInfo.cfpClickLimit,10)<=c.count&&d._banVisitor()):(h=new Date,u=new Date,h.setTime(h.getTime()+60*parseInt(advadsCfpInfo.cfpExpHours,10)*60*1e3),_="expires="+h.toUTCString(),v=(h.getTime()-u.getTime())/1e3,advads.set_cookie_sec(t+"_"+i,'{"count":1,"exp":"'+_+'"}',v,n,o),1===parseInt(advadsCfpInfo.cfpClickLimit,10)&&d._banVisitor()))}},e(function(){for(var t in window.advadsProCfp=new i,e(document).on("mouseenter","iframe[data-cfpa]",function(t){var a=parseInt(e(this).attr("data-cfpa"));advadsProCfp.currentIFrame=a}).on("mouseenter",".google-auto-placed",function(e){advadsProCfp.currentIFrame="google-auto-placed"}).on("mouseleave mouseout","[data-cfpa], .google-auto-placed",function(){advadsProCfp.currentIFrame=!1,advadsProCfp.focusLost&&(advadsProCfp.focusLost=!1,e(window).trigger("focus"))}),advadsCfpQueue)advadsCfpQueue.hasOwnProperty(t)&&advadsProCfp.addElement(advadsCfpQueue[t]);advadsCfpQueue=[],void 0!==window.advadsCfpInfo.cfpPath&&(""!=advadsCfpInfo.cfpPath&&(n=advadsCfpInfo.cfpPath),""!=advadsCfpInfo.cfpDomain&&(o=advadsCfpInfo.cfpDomain))})}(window.jQuery);var e=d();if(void 0!==window.advads){var t=advads.get_cookie("advanced_ads_visitor"),a=t?JSON.parse(t):{};a.browser_width&&a.browser_width===e||o(e)}function n(){i(function(){if(e!==(e=d())){o(e);var t=window.advanced_ads_responsive||{};window.jQuery&&parseInt(t.reload_on_resize,10)&&jQuery(document).triggerHandler("advanced-ads-resize-window")}},1e3)}function o(e){if(void 0!==window.advads){var t=advads.get_cookie("advanced_ads_visitor"),a=t?JSON.parse(t):{};a.browser_width=e,advads.set_cookie("advanced_ads_visitor",JSON.stringify(a),30,advanced_ads_cookies.cookie_path,advanced_ads_cookies.cookie_domain)}}window.addEventListener?window.addEventListener("resize",n,!1):window.attachEvent&&window.attachEvent("onresize",n);var r,i=(r=0,function(e,t){clearTimeout(r),r=setTimeout(e,t)});function d(){if(window.jQuery)return jQuery(window).width();var e=0;return"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),e}})();
!function($){return $?($.Unslider=function(t,n){var e=this;return e._="unslider",e.defaults={autoplay:!1,delay:3e3,speed:750,easing:"swing",keys:{prev:37,next:39},nav:!0,arrows:{prev:'<a class="'+e._+'-arrow prev">Prev</a>',next:'<a class="'+e._+'-arrow next">Next</a>'},animation:"horizontal",selectors:{container:"ul:first",slides:"li"},animateHeight:!1,activeClass:e._+"-active",swipe:!0,swipeThreshold:.2},e.$context=t,e.options={}, e.$parent=null,e.$container=null,e.$slides=null,e.$nav=null,e.$arrows=[],e.total=0,e.current=0,e.prefix=e._+"-",e.eventSuffix="."+e.prefix+~~(2e3*Math.random()),e.interval=null,e.init=function(t){return e.options=$.extend({},e.defaults,t),e.$container=e.$context.find(e.options.selectors.container).addClass(e.prefix+"wrap"),e.$slides=e.$container.children(e.options.selectors.slides),e.setup(),$.each(["nav","arrows","keys","infinite"],function(t,n){e.options[n]&&e["init"+$._ucfirst(n)]()}),jQuery.event.special.swipe&&e.options.swipe&&e.initSwipe(),e.options.autoplay&&e.start(),e.calculateSlides(),e.$context.trigger(e._+".ready"),e.animate(e.options.index||e.current,"init")},e.setup=function(){e.$context.addClass(e.prefix+e.options.animation).wrap('<div class="'+e._+'" />'),e.$parent=e.$context.parent("."+e._);var t=e.$context.css("position");"static"===t&&e.$context.css("position","relative"),e.$context.css("overflow","hidden")},e.calculateSlides=function(){if(e.total=e.$slides.length,"fade"!==e.options.animation){var t="width";"vertical"===e.options.animation&&(t="height"),e.$container.css(t,100*e.total+"%").addClass(e.prefix+"carousel"),e.$slides.css(t,100/e.total+"%")}},e.start=function(){return e.interval=setTimeout(function(){e.next()},e.options.delay),e},e.stop=function(){return clearTimeout(e.interval),e},e.initNav=function(){var t=$('<nav class="'+e.prefix+'nav"><ol /></nav>');e.$slides.each(function(n){var i=this.getAttribute("data-nav")||n+1;$.isFunction(e.options.nav)&&(i=e.options.nav.call(e.$slides.eq(n),n,i)),t.children("ol").append('<li data-slide="'+n+'">'+i+"</li>")}),e.$nav=t.insertAfter(e.$context),e.$nav.find("li").on("click"+e.eventSuffix,function(){var t=$(this).addClass(e.options.activeClass);t.siblings().removeClass(e.options.activeClass),e.animate(t.attr("data-slide"))})},e.initArrows=function(){e.options.arrows===!0&&(e.options.arrows=e.defaults.arrows),$.each(e.options.arrows,function(t,n){e.$arrows.push($(n).insertAfter(e.$context).on("click"+e.eventSuffix,e[t]))})},e.initKeys=function(){e.options.keys===!0&&(e.options.keys=e.defaults.keys),$(document).on("keyup"+e.eventSuffix,function(t){$.each(e.options.keys,function(n,i){t.which===i&&$.isFunction(e[n])&&e[n].call(e)})})},e.initSwipe=function(){var t=e.$slides.width();"fade"!==e.options.animation&&e.$container.on({movestart:function(t){return t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY?!!t.preventDefault():void e.$container.css("position","relative")},move:function(n){e.$container.css("left",-(100*e.current)+100*n.distX/t+"%")},moveend:function(n){Math.abs(n.distX)/t>e.options.swipeThreshold?e[n.distX<0?"next":"prev"]():e.$container.animate({left:-(100*e.current)+"%"},e.options.speed/2)}})},e.initInfinite=function(){var t=["first","last"];$.each(t,function(n,i){e.$slides.push.apply(e.$slides,e.$slides.filter(':not(".'+e._+'-clone")')[i]().clone().addClass(e._+"-clone")["insert"+(0===n?"After":"Before")](e.$slides[t[~~!n]]()))})},e.destroyArrows=function(){$.each(e.$arrows,function(t,n){n.remove()})},e.destroySwipe=function(){e.$container.off("movestart move moveend")},e.destroyKeys=function(){$(document).off("keyup"+e.eventSuffix)},e.setIndex=function(t){return 0>t&&(t=e.total-1),e.current=Math.min(Math.max(0,t),e.total-1),e.options.nav&&e.$nav.find('[data-slide="'+e.current+'"]')._active(e.options.activeClass),e.$slides.eq(e.current)._active(e.options.activeClass),e},e.animate=function(t,n){if("first"===t&&(t=0),"last"===t&&(t=e.total),isNaN(t))return e;e.options.autoplay&&e.stop().start(),e.setIndex(t),e.$context.trigger(e._+".change",[t,e.$slides.eq(t)]);var i="animate"+$._ucfirst(e.options.animation);return $.isFunction(e[i])&&e[i](e.current,n),e},e.next=function(){var t=e.current+1;return t>=e.total&&(t=0),e.animate(t,"next")},e.prev=function(){return e.animate(e.current-1,"prev")},e.animateHorizontal=function(t){var n="left";return"rtl"===e.$context.attr("dir")&&(n="right"),e.options.infinite&&e.$container.css("margin-"+n,"-100%"),e.slide(n,t)},e.animateVertical=function(t){return e.options.animateHeight=!0,e.options.infinite&&e.$container.css("margin-top",-e.$slides.outerHeight()),e.slide("top",t)},e.slide=function(t,n){if(e.options.animateHeight&&e._move(e.$context,{height:e.$slides.eq(n).outerHeight()},!1),e.options.infinite){var i;n===e.total-1&&(i=e.total-3,n=-1),n===e.total-2&&(i=0,n=e.total-2),"number"==typeof i&&(e.setIndex(i),e.$context.on(e._+".moved",function(){e.current===i&&e.$container.css(t,-(100*i)+"%").off(e._+".moved")}))}var o={};return o[t]=-(100*n)+"%",e._move(e.$container,o)},e.animateFade=function(t){var n=e.$slides.eq(t).addClass(e.options.activeClass);e._move(n.siblings().removeClass(e.options.activeClass),{opacity:0}),e._move(n,{opacity:1},!1)},e._move=function(t,n,i,o){return i!==!1&&(i=function(){e.$context.trigger(e._+".moved")}),t._move(n,o||e.options.speed,e.options.easing,i)},e.init(n)},$.fn._active=function(t){return this.addClass(t).siblings().removeClass(t)},$._ucfirst=function(t){return(t+"").toLowerCase().replace(/^./,function(t){return t.toUpperCase()})},$.fn._move=function(){return this.stop(!0,!0),$.fn[$.fn.velocity?"velocity":"animate"].apply(this,arguments)},void($.fn.unslider=function(t){return this.each(function(){var n=$(this);if("string"==typeof t&&n.data("unslider")){t=t.split(":");var e=n.data("unslider")[t[0]];if($.isFunction(e))return e.apply(n,t[1]?t[1].split(","):null)}return n.data("unslider",new $.Unslider(n,t))})})):console.warn("Unslider needs jQuery")}(window.jQuery);;
(function(){if(!window.Symbol){return}(function(fn){if(typeof define==='function'&&define.amd){define([],fn)}else if((typeof module!=="undefined"&&module!==null)&&module.exports){module.exports=fn}else{fn()}})(function(){var assign=Object.assign||window.jQuery&&jQuery.extend;var threshold=8;var requestFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(fn,element){return window.setTimeout(function(){fn()},25)})})();var ignoreTags={textarea:!0,input:!0,select:!0,button:!0};var mouseevents={move:'mousemove',cancel:'mouseup dragstart',end:'mouseup'};var touchevents={move:'touchmove',cancel:'touchend',end:'touchend'};var rspaces=/\s+/;var eventOptions={bubbles:!0,cancelable:!0};var eventsSymbol=Symbol('events');function createEvent(type){return new CustomEvent(type,eventOptions)}
function getEvents(node){return node[eventsSymbol]||(node[eventsSymbol]={})}
function on(node,types,fn,data,selector){types=types.split(rspaces);var events=getEvents(node);var i=types.length;var handlers,type;function handler(e){fn(e,data)}
while(i--){type=types[i];handlers=events[type]||(events[type]=[]);handlers.push([fn,handler]);node.addEventListener(type,handler)}}
function off(node,types,fn,selector){types=types.split(rspaces);var events=getEvents(node);var i=types.length;var type,handlers,k;if(!events){return}
while(i--){type=types[i];handlers=events[type];if(!handlers){continue}
k=handlers.length;while(k--){if(handlers[k][0]===fn){node.removeEventListener(type,handlers[k][1]);handlers.splice(k,1)}}}}
function trigger(node,type,properties){var event=createEvent(type);if(properties){assign(event,properties)}
node.dispatchEvent(event)}
function Timer(fn){var callback=fn,active=!1,running=!1;function trigger(time){if(active){callback();requestFrame(trigger);running=!0;active=!1}else{running=!1}}
this.kick=function(fn){active=!0;if(!running){trigger()}};this.end=function(fn){var cb=callback;if(!fn){return}
if(!running){fn()}else{callback=active?function(){cb();fn()}:fn;active=!0}}}
function noop(){}
function preventDefault(e){e.preventDefault()}
function isIgnoreTag(e){return!!ignoreTags[e.target.tagName.toLowerCase()]}
function isPrimaryButton(e){return(e.which===1&&!e.ctrlKey&&!e.altKey)}
function identifiedTouch(touchList,id){var i,l;if(touchList.identifiedTouch){return touchList.identifiedTouch(id)}
i=-1;l=touchList.length;while(++i<l){if(touchList[i].identifier===id){return touchList[i]}}}
function changedTouch(e,data){var touch=identifiedTouch(e.changedTouches,data.identifier);if(!touch){return}
if(touch.pageX===data.pageX&&touch.pageY===data.pageY){return}
return touch}
function mousedown(e){if(!isPrimaryButton(e)){return}
if(isIgnoreTag(e)){return}
on(document,mouseevents.move,mousemove,e);on(document,mouseevents.cancel,mouseend,e)}
function mousemove(e,data){checkThreshold(e,data,e,removeMouse)}
function mouseend(e,data){removeMouse()}
function removeMouse(){off(document,mouseevents.move,mousemove);off(document,mouseevents.cancel,mouseend)}
function touchstart(e){if(ignoreTags[e.target.tagName.toLowerCase()]){return}
var touch=e.changedTouches[0];var data={target:touch.target,pageX:touch.pageX,pageY:touch.pageY,identifier:touch.identifier,touchmove:function(e,data){touchmove(e,data)},touchend:function(e,data){touchend(e,data)}};on(document,touchevents.move,data.touchmove,data);on(document,touchevents.cancel,data.touchend,data)}
function touchmove(e,data){var touch=changedTouch(e,data);if(!touch){return}
checkThreshold(e,data,touch,removeTouch)}
function touchend(e,data){var touch=identifiedTouch(e.changedTouches,data.identifier);if(!touch){return}
removeTouch(data)}
function removeTouch(data){off(document,touchevents.move,data.touchmove);off(document,touchevents.cancel,data.touchend)}
function checkThreshold(e,data,touch,fn){var distX=touch.pageX-data.pageX;var distY=touch.pageY-data.pageY;if((distX*distX)+(distY*distY)<(threshold*threshold)){return}
triggerStart(e,data,touch,distX,distY,fn)}
function triggerStart(e,data,touch,distX,distY,fn){var touches=e.targetTouches;var time=e.timeStamp-data.timeStamp;var template={altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,startX:data.pageX,startY:data.pageY,distX:distX,distY:distY,deltaX:distX,deltaY:distY,pageX:touch.pageX,pageY:touch.pageY,velocityX:distX/time,velocityY:distY/time,identifier:data.identifier,targetTouches:touches,finger:touches?touches.length:1,enableMove:function(){this.moveEnabled=!0;this.enableMove=noop;e.preventDefault()}};trigger(data.target,'movestart',template);fn(data)}
function activeMousemove(e,data){var timer=data.timer;data.touch=e;data.timeStamp=e.timeStamp;timer.kick()}
function activeMouseend(e,data){var target=data.target;var event=data.event;var timer=data.timer;removeActiveMouse();endEvent(target,event,timer,function(){setTimeout(function(){off(target,'click',preventDefault)},0)})}
function removeActiveMouse(){off(document,mouseevents.move,activeMousemove);off(document,mouseevents.end,activeMouseend)}
function activeTouchmove(e,data){var event=data.event;var timer=data.timer;var touch=changedTouch(e,event);if(!touch){return}
e.preventDefault();event.targetTouches=e.targetTouches;data.touch=touch;data.timeStamp=e.timeStamp;timer.kick()}
function activeTouchend(e,data){var target=data.target;var event=data.event;var timer=data.timer;var touch=identifiedTouch(e.changedTouches,event.identifier);if(!touch){return}
removeActiveTouch(data);endEvent(target,event,timer)}
function removeActiveTouch(data){off(document,touchevents.move,data.activeTouchmove);off(document,touchevents.end,data.activeTouchend)}
function updateEvent(event,touch,timeStamp){var time=timeStamp-event.timeStamp;event.distX=touch.pageX-event.startX;event.distY=touch.pageY-event.startY;event.deltaX=touch.pageX-event.pageX;event.deltaY=touch.pageY-event.pageY;event.velocityX=0.3*event.velocityX+0.7*event.deltaX/time;event.velocityY=0.3*event.velocityY+0.7*event.deltaY/time;event.pageX=touch.pageX;event.pageY=touch.pageY}
function endEvent(target,event,timer,fn){timer.end(function(){trigger(target,'moveend',event);return fn&&fn()})}
function movestart(e){if(e.defaultPrevented){return}
if(!e.moveEnabled){return}
var event={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger};var data={target:e.target,event:event,timer:new Timer(update),touch:undefined,timeStamp:e.timeStamp};function update(time){updateEvent(event,data.touch,data.timeStamp);trigger(data.target,'move',event)}
if(e.identifier===undefined){on(e.target,'click',preventDefault);on(document,mouseevents.move,activeMousemove,data);on(document,mouseevents.end,activeMouseend,data)}else{data.activeTouchmove=function(e,data){activeTouchmove(e,data)};data.activeTouchend=function(e,data){activeTouchend(e,data)};on(document,touchevents.move,data.activeTouchmove,data);on(document,touchevents.end,data.activeTouchend,data)}}
on(document,'mousedown',mousedown);on(document,'touchstart',touchstart);on(document,'movestart',movestart);if(!window.jQuery){return}
var properties=("startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY").split(' ');function enableMove1(e){e.enableMove()}
function enableMove2(e){e.enableMove()}
function enableMove3(e){e.enableMove()}
function add(handleObj){var handler=handleObj.handler;handleObj.handler=function(e){var i=properties.length;var property;while(i--){property=properties[i];e[property]=e.originalEvent[property]}
handler.apply(this,arguments)}}
jQuery.event.special.movestart={setup:function(){on(this,'movestart',enableMove1);return!1},teardown:function(){off(this,'movestart',enableMove1);return!1},add:add};jQuery.event.special.move={setup:function(){on(this,'movestart',enableMove2);return!1},teardown:function(){off(this,'movestart',enableMove2);return!1},add:add};jQuery.event.special.moveend={setup:function(){on(this,'movestart',enableMove3);return!1},teardown:function(){off(this,'movestart',enableMove3);return!1},add:add}})})();
(function(){if(!window.Symbol){return}(function(thisModule){if(typeof define==='function'&&define.amd){define(['jquery',undefined,'jquery.event.move'],thisModule)}else if((typeof module!=="undefined"&&module!==null)&&module.exports){module.exports=thisModule}else{thisModule(jQuery)}})(function(jQuery,undefined){var add=jQuery.event.add,remove=jQuery.event.remove,trigger=function(node,type,data){jQuery.event.trigger(type,data,node)},settings={threshold:0.4,sensitivity:6};function moveend(e){var w,h,event;w=e.currentTarget.offsetWidth;h=e.currentTarget.offsetHeight;event={distX:e.distX,distY:e.distY,velocityX:e.velocityX,velocityY:e.velocityY,finger:e.finger};if(e.distX>e.distY){if(e.distX>-e.distY){if(e.distX/w>settings.threshold||e.velocityX*e.distX/w*settings.sensitivity>1){event.type='swiperight';trigger(e.currentTarget,event)}}else{if(-e.distY/h>settings.threshold||e.velocityY*e.distY/w*settings.sensitivity>1){event.type='swipeup';trigger(e.currentTarget,event)}}}else{if(e.distX>-e.distY){if(e.distY/h>settings.threshold||e.velocityY*e.distY/w*settings.sensitivity>1){event.type='swipedown';trigger(e.currentTarget,event)}}else{if(-e.distX/w>settings.threshold||e.velocityX*e.distX/w*settings.sensitivity>1){event.type='swipeleft';trigger(e.currentTarget,event)}}}}
function getData(node){var data=jQuery.data(node,'event_swipe');if(!data){data={count:0};jQuery.data(node,'event_swipe',data)}
return data}
jQuery.event.special.swipe=jQuery.event.special.swipeleft=jQuery.event.special.swiperight=jQuery.event.special.swipeup=jQuery.event.special.swipedown={setup:function(data,namespaces,eventHandle){var data=getData(this);if(data.count++>0){return}
add(this,'moveend',moveend);return!0},teardown:function(){var data=getData(this);if(--data.count>0){return}
remove(this,'moveend',moveend);return!0},settings:settings}})})();
document.addEventListener("advanced_ads_privacy",function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||window.advanced_ads_sticky_settings.placements.forEach(function(e){document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"][data-placement="'+e+'"]').forEach(advads.privacy.decode_ad)})}),document.addEventListener("aagam_empty_slot",function(e){const t=document.getElementById(e.detail);if(!t)return;const n=t.closest("."+document.body.classList.value.split("aa-prefix-")[1].split(" ")[0]+"sticky");n&&advads.close("#"+n.id)}),jQuery(document).ready(function(e){let t,n=null,s=e(window).width();function o(){n&&clearTimeout(n),n=setTimeout(function(){const n=e(window).width();s!==n&&(s=n,"undefined"!=typeof advanced_ads_sticky_items&&e.each(advanced_ads_sticky_items,function(n,s){t=e("#"+n),t.prop("style",s.initial_css),s.modifying_func()}))},1e3)}if("undefined"!=typeof advanced_ads_responsive&&parseInt(advanced_ads_responsive.reload_on_resize,10)||jQuery(window).on("resize",o),"undefined"==typeof advanced_ads_sticky_settings||!advanced_ads_sticky_settings.check_position_fixed)return;let i="";const c=e(document.body).is(".admin-bar")?e("#wpadminbar").height():0;function d(t){!1===i&&(e(window).off("resize",o),t=t||jQuery("."+advanced_ads_sticky_settings.sticky_class),setTimeout(function(){t.each(function(t,n){const s=e(n);window.advanced_ads_sticky_items[s.attr("id")].can_convert_to_abs?s.css("position","absolute"):s.css("position","").css("top","").css("right","").css("bottom","").css("left","").css("margin-left","").css("transform","none").css("-webkit-transform","none").css("-moz-transform","none").css("-ms-transform","none")})}))}navigator.userAgent.indexOf("Opera Mini")>-1?(i=!1,d()):e(window).scroll(function t(){clearTimeout(e.data(this,"scrollTimer")),e.data(this,"scrollTimer",setTimeout(function(){e(document).scrollTop()<=c||(""===i&&(i=function(){const e=document.body;if(document.createElement&&e&&e.appendChild&&e.removeChild){const t=document.createElement("div");if(!t.getBoundingClientRect)return null;t.innerHTML="x",t.style.cssText="position:fixed;top:100px;",e.appendChild(t);const n=e.style.height,s=e.scrollTop;let o=parseInt(document.documentElement.getBoundingClientRect().top,10);o=o>0?o:0,e.style.height="3000px",e.scrollTop=500;const i=parseInt(t.getBoundingClientRect().top,10);e.style.height=n;const c=i-o===100;return e.removeChild(t),e.scrollTop=s,c}return null}(),clearTimeout(e.data(this,"scrollTimer")),e(window).off("scroll",t)),d())},100))}),"object"==typeof advanced_ads_pro&&null!==advanced_ads_pro&&advanced_ads_pro.postscribeObservers.add(function(e){if("postscribe_done"===e.event&&e.ref&&e.ad){const t=jQuery(e.ref).children("."+advanced_ads_sticky_settings.sticky_class);t.length&&d(t)}})});
(()=>{var a={226:()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.AdvAdsClickTracker={wrappers:[],overTarget:!1,currentTarget:!1,lastClick:[],elements:["iframe","a.a2t-link","button.a2t-link"],targets:["aswift_0","aswift_1","aswift_3","aswift_4","aswift_5","aswift_6","aswift_7","aswift_8","aswift_9"],findTargets(){window.AdvAdsClickTracker.wrappers.forEach(function(a){document.querySelectorAll(a).forEach(function(a){null!==a&&window.AdvAdsClickTracker.elements.forEach(function(e){Array.prototype.push.apply(window.AdvAdsClickTracker.targets,Array.prototype.slice.call(a.querySelectorAll(e)))})})}),window.AdvAdsClickTracker.targets=window.AdvAdsClickTracker.targets.filter(AdvAdsTrackingUtils.arrayUnique),this.processTargets()},processTargets(){window.AdvAdsClickTracker.targets.forEach(function(a){window.AdvAdsClickTracker.registerTargetHandlers(a)})},registerTargetHandlers(a){a.onmouseover=this.mouseOver,a.onmouseout=this.mouseOut,void 0!==window.attachEvent?top.attachEvent("onblur",this.adClick):void 0!==window.addEventListener&&top.addEventListener("blur",this.adClick,!1)},registerWrapperHandlers(){let a;["click","touchend","auxclick"].forEach(function(e){document.addEventListener(e,function(e){if("auxclick"===e.type&&2!==e.which&&1!==e.which||a)return;let d=!1;-1!==["a","iframe","button"].indexOf(e.target.localName)&&(d=!0);for(let a=e.target;a&&a!==this;a=a.parentNode){null===a.parentNode||d||-1===["a","iframe","button"].indexOf(a.parentNode.localName)||(d=!0);let t=!1;if(window.AdvAdsClickTracker.wrappers.forEach(function(r){(a.matches?a.matches(r):a.msMatchesSelector(r))&&(e.target.classList.contains("notrack")||!d&&null===a.querySelector("iframe")||(t=!0))}),t){if(this.currentTarget===e.target)return;window.AdvAdsClickTracker.ajaxSend(e.target);break}}},{capture:!0})}),document.addEventListener("touchmove",function(){a=!0},!1),document.addEventListener("touchstart",function(){a=!1},!1)},adClick(){window.AdvAdsClickTracker.overTarget&&(window.AdvAdsClickTracker.ajaxSend(window.AdvAdsClickTracker.currentTarget),top.focus())},mouseOver(){window.AdvAdsClickTracker.overTarget=!0,window.AdvAdsClickTracker.currentTarget=this},mouseOut(){window.AdvAdsClickTracker.overTarget=!1,window.AdvAdsClickTracker.currentTarget=!1,top.focus()},ajaxSend(a){let e=a.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")),d=a.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")),t=a.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("redirect"));if(null===e){const r=AdvAdsTrackingUtils.findParentByClassName(a,[advadsTracking.targetClass]);e=r.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")),d=r.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")),t=r.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("redirect"))}const r=advads_tracking_urls[d],s={action:window.advadsTracking.clickActionName,referrer:window.location.pathname+window.location.search,type:"ajax",ads:[e],bid:d};if(10>AdvAdsTrackingUtils.getTimestamp()-this.lastClick[e])return!1;if((!AdvAdsTrackingUtils.blogUseGA(d)||(advancedAdsGAInstances.getInstance(d).trackClick(e,!1,!1,!1),this.lastClick[e]=AdvAdsTrackingUtils.getTimestamp(),advads_tracking_parallel[d]))&&!t){if(navigator.sendBeacon&&-1===r.indexOf("admin-ajax.php")){let a=JSON.parse(JSON.stringify(s));a.type="beacon",a=new Blob([JSON.stringify(a)],{type:"application/json; charset=UTF-8"}),navigator.sendBeacon(r,a)}else AdvAdsTrackingUtils.post(r,s,!1);this.lastClick[e]=AdvAdsTrackingUtils.getTimestamp()}}},advanced_ads_ready(function(){window.AdvAdsClickTracker.wrappers=null!==advadsTracking.targetClass&&""!==advadsTracking.targetClass?Array("."+advadsTracking.targetClass,".adsbygoogle"):Array(" ",".adsbygoogle"),window.onpageshow=function(a){a&&a.persisted&&window.location.reload()},setTimeout(function(){window.AdvAdsClickTracker.findTargets()},1500),window.AdvAdsClickTracker.registerWrapperHandlers()},"interactive")},407:()=>{const a={hasAd(a){for(const e in a)if(Array.isArray(a[e])&&a[e].length)return!0;return!1},param:a=>Object.keys(a).map(function(e){return Array.isArray(a[e])?Object.keys(a[e]).map(function(d){return encodeURIComponent(e)+"[]="+encodeURIComponent(a[e][d])}).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(a[e])}).join("&").replace(/%20/g,"+"),concat(){const a=Array.prototype.slice.call(arguments),e={};for(const d in a)for(const t in a[d])void 0===e[t]?e[t]=a[d][t]:"function"==typeof e[t].concat&&(e[t]=e[t].concat(a[d][t]));return e},adsByBlog(a,e){const d={};return void 0!==a[e]&&(d[e]=a[e]),d},getPrefixedAttribute:a=>""+window.advadsTracking.frontendPrefix+a,getPrefixedDataSetAttribute(a){return this.getPrefixedAttribute(a).toLowerCase().replace("data-","").replace(/-([a-z]?)/g,(a,e)=>e.toUpperCase())},extend(){const a={};for(const e in arguments){const d=arguments[e];for(const e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a[e]=d[e])}return a},inArray:(a,e)=>e.indexOf(a)>-1,findParentByClassName(a,e){for(;(a=a.parentElement)&&!a.classList.contains(e););return a},getTimestamp:()=>(Date.now||(Date.now=function(){return(new Date).getTime()}),Math.floor(Date.now()/1e3)),arrayUnique:(a,e,d)=>d.indexOf(a)===e,blogUseGA:a=>("ga"===advads_tracking_methods[a]||advads_tracking_parallel[a])&&!!advads_gatracking_uids[a],post(e,d,t){const r=new XMLHttpRequest;return!1!==t&&(r.timeout=5e3),new Promise(function(s,i){r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&(0===r.status||r.status>=200&&r.status<300?s(r):i({status:r.status,statusText:r.statusText}))},void 0===t&&(t=!0),r.open("POST",e,t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),r.send("string"==typeof d?d:a.param(d))})}};window.AdvAdsTrackingUtils=a},736:()=>{"undefined"!=typeof advanced_ads_pro&&advanced_ads_pro.observers.add(function(a){if(-1===["inject_passive_ads","inject_ajax_ads","advanced_ads_decode_inserted_ads","inject_placement"].indexOf(a.event))return;Array.isArray(a.ad_ids)&&!a.ad_ids.length&&(a.ad_ids={});let e="all",d={};switch("complete"!==document.readyState?document.addEventListener("readystatechange",function(a){"complete"===a.target.readyState&&window.AdvAdsClickTracker.findTargets()}):window.AdvAdsClickTracker.findTargets(),a.event){case"inject_passive_ads":window.AdvAdsImpressionTracker.passiveAds=AdvAdsTrackingUtils.concat(window.AdvAdsImpressionTracker.passiveAds,a.ad_ids);for(let t in a.ad_ids)if("frontend"===advads_tracking_methods[t]?(d=AdvAdsTrackingUtils.concat(advads_tracking_ads,a.ad_ids),advads_tracking_ads={1:[]}):(e="passive",d=a.ad_ids),"undefined"!=typeof advads&&void 0!==advads.privacy.is_ad_decoded)for(let a in d)d[a]=d[a].filter(advads.privacy.is_ad_decoded);break;case"inject_ajax_ads":const r="undefined"!=typeof advads&&window.advads_options.privacy.enabled&&"iab_tcf_20"===window.advads_options.privacy["consent-method"];for(var t in a.ad_ids)if(AdvAdsTrackingUtils.blogUseGA(t)||r)for(const e in a.ad_ids[t]){const d=document.querySelector("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")+'="'+a.ad_ids[t][e]+'"][data-'+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")+'="'+t+'"]');null!==d&&"undefined"!=typeof advads_items&&void 0!==advads_items.showed&&advads_items.showed.indexOf(d.id)>-1&&void 0!==d.dataset.delayed||(void 0===window.AdvAdsImpressionTracker.ajaxAds[t]&&(window.AdvAdsImpressionTracker.ajaxAds[t]=[]),window.AdvAdsImpressionTracker.ajaxAds[t].push(a.ad_ids[t][e]))}e=r&&"frontend"===advads_tracking_methods[t]?"all":"ajax",d=JSON.parse(JSON.stringify(window.AdvAdsImpressionTracker.ajaxAds));break;case"advanced_ads_decode_inserted_ads":d=a.ad_ids}advanced_ads_pro.busy?document.addEventListener("advanced_ads_pro.idle",function(){window.AdvAdsImpressionTracker.track(window.AdvAdsImpressionTracker.removeDelayedAds(d),e)},{once:!0}):window.AdvAdsImpressionTracker.track(window.AdvAdsImpressionTracker.removeDelayedAds(d),e)})},849:()=>{window.AdvAdsImpressionTracker={ajaxAds:{},passiveAds:{},initialAds:{},removeDelayedAds(a){const e=document.querySelectorAll("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")+'][data-delayed="1"]'),d=e.length;if(!d)return a;for(let t=0;t<d;t++){const d=parseInt(e[t].dataset[AdvAdsTrackingUtils.getPrefixedDataSetAttribute("trackid")],10),r=parseInt(e[t].dataset[AdvAdsTrackingUtils.getPrefixedDataSetAttribute("trackbid")],10);if(AdvAdsTrackingUtils.hasAd(a)&&void 0!==a[r]){const e=a[r].indexOf(d);e>-1&&a[r].splice(e,1)}}return a},track(a,e){if(e=e||"all",AdvAdsTrackingUtils.hasAd(a))for(const d in a){if(AdvAdsTrackingUtils.blogUseGA(d)&&(advadsGATracking.deferedAds=AdvAdsTrackingUtils.concat(advadsGATracking.deferedAds,AdvAdsTrackingUtils.adsByBlog(a,d)),"delayed"===e?this.triggerEvent("advadsGADelayedTrack"):this.triggerEvent("advadsGADeferedTrack"),"ajax"===e&&AdvAdsTrackingUtils.hasAd(AdvAdsTrackingUtils.adsByBlog(this.ajaxAds,d))))for(const e in this.ajaxAds[d])a[d].indexOf(this.ajaxAds[d][e])>-1&&this.ajaxAds[d].splice(e,1);"ajax"===e||"frontend"!==advads_tracking_methods[d]&&"onrequest"!==advads_tracking_methods[d]||this.sendTrack(d,a[d]),this.ajaxAds={}}},triggerEvent(a){const e=new CustomEvent(a);document.dispatchEvent(e)},sendTrack(a,e){e.length&&AdvAdsTrackingUtils.post(advads_tracking_urls[a],{ads:e,action:window.advadsTracking.impressionActionName,referrer:window.location.pathname+window.location.search,bid:a})}},function(){const a=function(){if("undefined"!=typeof advads_tracking_ads&&(advads_tracking_ads=window.AdvAdsImpressionTracker.removeDelayedAds(advads_tracking_ads),AdvAdsTrackingUtils.hasAd(advads_tracking_ads)))for(const a in advads_tracking_ads)"frontend"===advads_tracking_methods[a]&&("undefined"!=typeof advads&&void 0!==advads.privacy.is_ad_decoded&&(advads_tracking_ads[a]=advads_tracking_ads[a].filter(advads.privacy.is_ad_decoded)),window.AdvAdsImpressionTracker.track(advads_tracking_ads),advads_tracking_ads={1:[]})};function e(a,e,d){return void 0===a[e]&&(a[e]=[]),a[e].push(d),a}function d(){return"undefined"!=typeof advads&&"unknown"===advads.privacy.get_state()}document.addEventListener("advads_track_async",function(t){const r=t.detail.bid,s=t.detail.ad;switch(advads_tracking_methods[r]){case"frontend":"undefined"==typeof advads_tracking_ads&&(advads_tracking_ads={}),advads_tracking_ads=e(advads_tracking_ads,r,s),d()||a();break;case"ga":void 0===advadsGATracking.delayedAds&&(advadsGATracking.delayedAds={}),advadsGATracking.delayedAds=e(advadsGATracking.delayedAds,r,s),d()||AdvAdsImpressionTracker.triggerEvent("advadsGADelayedTrack")}}),d()?document.addEventListener("advanced_ads_privacy",function(e){["not_needed","rejected","accepted"].includes(e.detail.state)&&a()}):advanced_ads_ready(a,"interactive")}()}},e={};function d(t){var r=e[t];if(void 0!==r)return r.exports;var s=e[t]={exports:{}};return a[t](s,s.exports,d),s.exports}d.n=a=>{var e=a&&a.__esModule?()=>a.default:()=>a;return d.d(e,{a:e}),e},d.d=(a,e)=>{for(var t in e)d.o(e,t)&&!d.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:e[t]})},d.o=(a,e)=>Object.prototype.hasOwnProperty.call(a,e),(()=>{"use strict";d(407),d(849),d(226),d(736)})()})();
!function(){let t="advads-sticky-trigger";"undefined"!=typeof advanced_ads_layer_settings&&(t+=" "+advanced_ads_layer_settings.layer_class+"-trigger"),jQuery(document).on(t,function(t){const d=jQuery(t.target),e={},a=function(t,d){t=parseInt(t,10),d=parseInt(d,10),void 0===e[d]&&(e[d]=[]),e[d].push(t)};let i=d.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid"));if(i){if(!d.data("delayed")||!d.data(AdvAdsTrackingUtils.getPrefixedAttribute("impression")))return;const t=d.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid"));a(t,i)}else{if(!d.find("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")+"]").length)return;d.find("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")+"]").each(function(){const t=jQuery(this);if(!t.data("delayed")||!t.data(AdvAdsTrackingUtils.getPrefixedAttribute("impression")))return;i=t.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid"));const d=t.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid"));a(d,i)})}AdvAdsTrackingUtils.blogUseGA(i)&&(advadsGATracking.delayedAds=AdvAdsTrackingUtils.concat(advadsGATracking.delayedAds,e)),AdvAdsImpressionTracker.track(e,"delayed")})}();
(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();const t="email",n="phone",r="name",i={[t]:["email","e-mail","mail","email address"],[n]:["phone","tel","mobile","cell","telephone","phone number"],[r]:["name","full-name","full name","full_name","fullname","first-name","first name","first_name","firstname","last-name","last name","last_name","lastname","given-name","given name","given_name","givenname","family-name","family name","family_name","familyname","fname","lname","first","last","your-name","your name"]};function l(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function a(e){const t=l(e),n=t.lastIndexOf("@");if(-1===n)return t;const r=t.slice(n+1);return["gmail.com","googlemail.com"].includes(r)?`${t.slice(0,n).replace(/\./g,"")}@${r}`:t}function u(e){const t=l(e),n=t.replace(/\D/g,"");return t.startsWith("+")?`+${n}`:n}function s(e){const t=e.filter(e=>{let{type:t}=e;return t===r}).map(e=>{let{value:t}=e;return l(t)}).filter(Boolean);if(!t.length)return;const[n,...i]=1===t.length?t[0].split(" "):t;return{first_name:n,...i?.length>0?{last_name:i.join(" ")}:{}}}function o(e){return e.find(e=>{let{type:n}=e;return n===t})?.value}function m(e){return e.find(e=>{let{type:t}=e;return t===n})?.value}var c;(c=e.g.jQuery)&&c(e.g.document.body).on("wpformsAjaxSubmitSuccess",c=>{const f=e.g._googlesitekit?.gtagUserData,g=f?function(e){if(!(e&&e instanceof HTMLFormElement))return;const c=new FormData(e);return function(e){const t=[["address",s(e)],["email",o(e)],["phone_number",m(e)]].filter(e=>{let[,t]=e;return t});if(0!==t.length)return Object.fromEntries(t)}(Array.from(c.entries()).map(s=>{let[o,m]=s,c=e.querySelector(`[name='${o}']`);"hidden"===c?.type&&"hidden"!==c?.previousSibling?.type&&(c=c.previousSibling);const f=c?.type;return"hidden"===f||"submit"===f?null:function(e){let{type:s,name:o,value:m,label:c}=e||{};switch(s=l(s),o=l(o),m=l(m),c=function(e){return e&&"string"==typeof e?e.trim().toLowerCase().replace(/\s*\*+\s*$/,"").replace(/\s*\(required\)\s*$/i,"").replace(/\s*:\s*$/,"").trim():""}(c),s){case"email":return{type:t,value:a(m)};case"tel":return{type:n,value:u(m)}}return function(e){if(!e)return!1;const t=a(e);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}(m)||i[t].includes(o)||i[t].includes(c)?{type:t,value:a(m)}:i[n].includes(o)||i[n].includes(c)?{type:n,value:u(m)}:i[r].includes(o)||i[r].includes(c)?{type:r,value:l(m)}:function(e){if(!e)return!1;if(!function(e){const t=e.replace(/\D/g,"");return!(t.length<7||t.length<e.length/2)&&/^[\s\-()+.\d]*$/.test(e)}(e))return!1;const t=u(e);if(!/^\+?\d{7,}$/.test(t))return!1;const n=/[\s\-()+.]/.test(e),r=e.trim().startsWith("+");return!(!n&&!r)}(m)?{type:n,value:u(m)}:null}({type:f,label:c?.id?e.querySelector(`label[for='${c?.id}']`)?.textContent:void 0,name:o,value:m})}).filter(Boolean))}(c.target):null;e.g._googlesitekit?.gtagEvent?.("submit_lead_form",g?{user_data:g}:void 0)})})();
"undefined"===typeof window.tdcPostSettings&&(window.tdcPostSettings={tdbTemplateType:"all"});if(window.tdbVue&&"undefined"!==typeof window.tdbVue.router){var eventHub=new CloudLibraryVue;CloudLibraryVue.component("image-links",{template:'\n <a :class="classes" :href="link">{{text}}</a>\n ',props:{classes:[],link:"",text:""}});new CloudLibraryVue({el:"#tdb-modal",router:window.tdbVue.router})}
window.tdbVueManager&&"undefined"!==typeof window.tdbVueManager.router&&new CloudLibraryVue({el:"#tdb-modal-website-manager",router:window.tdbVueManager.router});
(function(){function m(a,b,c,d,f,g,h){var e=jQuery(".tdb-"+a+"-templates");e.length&&"undefined"===typeof e.data("tdb-templates")&&("undefined"!==typeof g&&g.call(),tdbGetMobileTemplates(a,b,e),g="","undefined"!==typeof tdcState&&(g=tdcState.isMobileComposer()?"1":""),g={action:"tdb_get_"+a+"_templates",mobile_templates:g,_nonce:window.tdb_globals.wpRestNonce},"cpt_tax"===a?g.data_id=b:g[a+"_id"]=b,jQuery.ajax({type:"POST",url:td_ajax_url,data:g,success:function(g,k,p){e.html("");g=jQuery.parseJSON(g);
k='<div class="tdb-templates-header"><div class="tdb-templates-header-item tdb-templates-header-item-name"><span>Cloud Templates</span></div>'+("undefined"!==typeof d&&!0===d?'<div class="tdb-templates-header-item tdb-templates-header-item-global"><span>Global</span></div>':"")+'<div class="tdb-templates-header-item tdb-templates-header-item-mobile" title="Optional - Create or assign a dedicated Mobile Template"><span>Mobile Template</span></div></div>';var l=p="",m=!1;_.isArray(g)&&g.length?(_.each(g,
function(e,g,h){h="";"true"===e.is_current.toString()&&(h=" tdb-current",m=!0);var k="";g="";switch(a){case "single":k=e.template_title+" - Set template for this post";break;case "category":k=e.template_title+" - Set template for this category";break;case "author":k=e.template_title+" - Set template for this author";break;case "tag":k=e.template_title+" - Set template for this tag";break;case "search":""!==e.cpt?(k=e.template_title+" - Set this template for the "+e.cpt.label+" custom post type",g=
' data-cpt="'+e.cpt.name+'"'):k=e.template_title+" - Set this template for post search results";break;case "woo_product":k=e.template_title+" - Set template for this product";break;case "woo_archive":k=e.template_title+" - Set template for this product archive";break;case "cpt":k=e.template_title+" - Set template for this custom post type";break;case "cpt_tax":""!==e.cpt?(k=e.template_title+" - Set this template for the "+e.cpt.label+" custom post type archive",g=' data-cpt="'+e.cpt.name+'"'):k=e.template_title+
" - Set template for this taxonomy"}h='<div class="tdb-template-el tdb-'+a+"-template-el"+h+'" data-template-id="'+e.template_id+'"><div class="tdb-template-el-id tdb-'+a+'-template-id">'+e.template_id+'</div><div class="tdb-template-el-title" data-type="'+a+'" data-action="'+c+'" title="'+k+'" data-'+a+'-id="'+b+'" data-template-id="'+e.template_id+'"'+g+">"+e.template_title+'</div><div class="tdb-template-el-wrap"><div class="tdb-template-el-icon"><div class="tdb-template-el-options"><div title="Rename template" class="tdb-template-el-edit">Rename</div><div title="Duplicate template" class="tdb-template-el-duplicate">Duplicate</div><div title="Delete template" class="tdb-template-el-delete">Delete</div></div></div></div>';
"undefined"!==typeof d&&!0===d&&(k="","undefined"!==typeof f&&""!==f&&(k='data-global-action="'+f+'"'),h+='<div class="tdb-template-el-global tdb-'+a+'-template-global" title="Set as Global Template" data-type="'+a+'" data-'+a+'-id="'+b+'" data-template-id="'+e.template_id+'" '+k+g+'><input type="checkbox" class="tdb-template-el-global-input tdb-'+a+'-template-global-input" '+(!0===e.is_global?'checked="checked" ':"")+'><label></label><span class="tdb-template-el-global-checked tdb-'+a+'-template-global-checked">Global</span></div>');
h+='<div class="tdb-template-el-mobile-wrap tdb-'+a+'-template-mobile" data-type="'+a+'" data-'+a+'-id="'+b+'" data-template-id="'+e.template_id+'"><span class="tdb-template-el-mobile">'+(""===e.mobile_template_title?"-":'<span class="tdb-template-el-mobile-active">Yes</span>')+'</span><div class="tdb-template-el-mobile-btns" data-mobile-template-id="'+e.mobile_template_id+'" data-template-id="'+e.template_id+'"><div title="Optional - New mobile template" class="'+a+"id-"+e.template_id+' tdb-template-el-mobile-btn tdb-template-el-mobile-blank tdb-create-mobile-template" data-type="'+
a+'" data-'+a+'-id="'+b+'" data-template-id="'+e.template_id+'"></div><div title="Load mobile template from TagDiv Cloud Library" class="'+a+"id-"+e.template_id+' tdb-template-el-mobile-btn tdb-template-el-mobile-import tdb-load-mobile-template"></div></div></div>';l+=h+"</div>"}),"undefined"!==typeof d&&!0===d&&(p+='<div class="tdb-template-el tdb-'+a+"-template-el "+(m?"":"tdb-current")+'"><div class="tdb-template-el-id tdb-'+a+'-template-id"></div><div class="tdb-template-el-title" data-type="'+
a+'" data-action="'+c+'" title="Set as Global Template" data-'+a+'-id="'+b+'" data-template-id="">Global Template</div></div>'),e.append(p+k+l)):(e.append(k),e.append('<div class="tdb-templates-desc">No cloud templates. Please import one or more templates from <b>Cloud Library</b>.</div>'));e.data("tdb-templates",!0);"undefined"!==typeof h&&h.call()},error:function(a,b,c){}}))}function n(a,b,c){var d=jQuery(window);d.resize(function(){var f=d.width();a.offset().left+b.width()>f?b.hasClass(c)||b.addClass(c):
b.hasClass(c)&&b.removeClass(c)});d.resize()}jQuery(document).ready(function(){jQuery("#wp-admin-bar-tdb_template_builder_disabled a").click(function(a){a.preventDefault();alert("Please select tagDiv Builder Template from the theme panel or set a default template. The current page/post uses a template that is not editable.")});jQuery("#wp-admin-bar-new-tdb_templates").hide()});jQuery("body").on("click","#wp-admin-bar-tdb_template_load, .tdb-load-mobile-template",function(a){a.preventDefault();var b=
jQuery(this),c=b.attr("class");a="";var d=!1;b.hasClass("tdb-load-mobile-template")&&(d=!0);"undefined"!==typeof c&&(0===c.indexOf("singleid-")?(a={wp_type:"single",templateType:"Single"},b=c.split(" ")[0].replace("singleid-",""),d?a.assign_mobile_to_template=b:a.assign_to_post=b):0===c.indexOf("categoryid-")?(a={wp_type:"category",templateType:"Category"},b=c.split(" ")[0].replace("categoryid-",""),d?a.assign_mobile_to_template=b:a.assign_to_category=b):0===c.indexOf("404")?(a={wp_type:"404",templateType:"404"},
b=btoa(window.location.href),d?a.assign_mobile_to_template=b:a.assign_to_404=b):0===c.indexOf("date")?(a={wp_type:"date",templateType:"Date"},b=btoa(window.location.href),d?a.assign_mobile_to_template=b:a.assign_to_archive=b):0===c.indexOf("search")?(a={wp_type:"search",templateType:"Search"},b=btoa(window.location.href),d?a.assign_mobile_to_template=b:a.assign_to_search=b,-1!==c.indexOf("cpt-")&&(c=c.split(" ")[1].replace("cpt-",""),a.assign_to_search_cpt=c)):0===c.indexOf("attachment")?(a={wp_type:"attachment",
templateType:"Attachment"},b=btoa(window.location.href),d?a.assign_mobile_to_template=b:a.assign_to_attachment=b):0===c.indexOf("authorid")?(a={wp_type:"author",templateType:"Author"},b=c.split(" ")[0].replace("authorid-",""),d?a.assign_mobile_to_template=b:a.assign_to_author=b):0===c.indexOf("tagid")?(a={wp_type:"tag",templateType:"Tag"},b=c.split(" ")[0].replace("tagid-",""),d?a.assign_mobile_to_template=b:a.assign_to_tag=b):0===c.indexOf("pageid")?(a={wp_type:"page",templateType:"Pages"},b=c.split(" ")[0].replace("pageid-",
""),d&&(a.assign_mobile_to_template=b)):0===c.indexOf("woo_productid-")?(a={wp_type:"woo_product",templateType:"Woo Product"},b=c.split(" ")[0].replace("woo_productid-",""),d?a.assign_mobile_to_template=b:a.assign_to_woo_product=b):0===c.indexOf("woo_archiveid-")?(a={wp_type:"woo_archive",templateType:"Woo Archive"},b=c.split(" ")[0].replace("woo_archiveid-",""),d?a.assign_mobile_to_template=b:a.assign_to_woo_archive=b):0===c.indexOf("woo_search_archive")?(a={wp_type:"woo_search_archive",templateType:"Woo Search"},
b=btoa(window.location.href),d?a.assign_mobile_to_template=b:a.assign_to_woo_search_archive=b):0===c.indexOf("woo_shop_base")?(a={wp_type:"woo_shop_base",templateType:"Woo Shop Base"},b=btoa(window.location.href),d?a.assign_mobile_to_template=b:a.assign_to_woo_shop_base=b):0===c.indexOf("cpt_tax")?(a={wp_type:"cpt_tax",templateType:"Custom Taxonomy"},b=c.split(" ")[0].replace("cpt_taxid-",""),d?a.assign_mobile_to_template=b:a.assign_to_cpt_tax=b):0===c.indexOf("cpt")&&(a={wp_type:"cpt",templateType:"Custom Post Type"},
b=c.split(" ")[0].replace("cptid-",""),d?a.assign_mobile_to_template=b:a.assign_to_cpt=b),""!==a&&(a.hide_mobile_selector="hide",window.tdbVue.router.push({name:"loadRoute",params:a})))}).on("click",".tdb-create-mobile-template",function(a){var b=jQuery(this),c=b.data("template-id"),d=b.data("type");tdConfirm.modal({caption:"Create Mobile "+("page"===d?"Page":"Template"),objectContext:window,callbackYes:function(){var a=jQuery("#tdb-new-template-name"),g=jQuery("#tdb-copy-content");jQuery.ajax({type:"POST",
url:td_ajax_url,data:{action:"tdb_create_mobile_template",template_id:c,template_title:a.val(),template_type:d,copyContent:g.is(":checked")?"1":"0",_nonce:window.tdb_globals.wpRestNonce},success:function(a,e,f){a=jQuery.parseJSON(a);"undefined"!==typeof a.mobile_template_id&&(tdConfirm.close(),e=b.closest(".tdb-template-el"),e.length&&(f=e.find(".tdb-template-el-mobile:first"),e.find(".tdb-template-el-mobile-btns:first").data("mobile-template-id",a.mobile_template_id),f.html('<span class="tdb-template-el-mobile-active">Yes</span>')),
tdbGetMobileTemplates(d,c))},error:function(a,b,c){}})},htmlInfoContent:"Enter the mobile "+("page"===d?"page":"template")+' name: <input id="tdb-new-template-name" type="text" value=""onfocus="(function(e){ jQuery( e.target ).siblings(\'#tdb-modal-notice\').fadeOut(50); })(event)"/><em id="tdb-modal-notice"></em><div class="tdb-form-check"><input type="checkbox" class="form-check-input" id="tdb-copy-content"><label class="form-check-label" for="tdb-copy-content"><span class="tdb-check"></span><span class="tdb-check-title">Copy content</span></label></div>',
textYes:"Create",textNo:"Cancel"})}).on("click","#wp-admin-bar-tdb_template_single > a, #wp-admin-bar-tdb_template_category > a, #wp-admin-bar-tdb_template_404 > a, #wp-admin-bar-tdb_template_date > a, #wp-admin-bar-tdb_template_search > a, #wp-admin-bar-tdb_template_attachment > a, #wp-admin-bar-tdb_template_author > a, #wp-admin-bar-tdb_template_tag > a, #wp-admin-bar-tdb_template_woo_product > a, #wp-admin-bar-tdb_template_woo_archive > a, #wp-admin-bar-tdb_template_woo_shop_base > a, #wp-admin-bar-tdb_template_woo_search_archive > a, #wp-admin-bar-tdb_template_cpt > a, #wp-admin-bar-tdb_template_cpt_tax > a",
function(a){a.preventDefault();var b=jQuery(this),c=b.parent(),d=c.attr("class"),f="",g="",h="",e="";switch(c.attr("id")){case "wp-admin-bar-tdb_template_single":f="single";g="tdb_assign_single_template_to_post";h="tdb_assign_single_template_global";e=d.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_category":f="category";g="tdb_assign_cat_template_to_cat";h="tdb_assign_cat_template_global";e=d.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_404":f="404";g="tdb_assign_404_template_global";
h="";e=d.replace("templateid-","");break;case "wp-admin-bar-tdb_template_date":f="date";g="tdb_assign_date_template_global";h="";e=d.replace("templateid-","");break;case "wp-admin-bar-tdb_template_search":f="search";g="tdb_assign_search_template_global";h="";e=d.replace("templateid-","");break;case "wp-admin-bar-tdb_template_attachment":f="attachment";g="tdb_assign_attachment_template_global";h="";e=d.replace("templateid-","");break;case "wp-admin-bar-tdb_template_author":f="author";g="tdb_assign_author_template_to_author";
h="tdb_assign_author_template_global";e=d.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_tag":f="tag";g="tdb_assign_tag_template_to_tag";h="tdb_assign_tag_template_global";e=d.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_product":f="woo_product";g="tdb_assign_woo_product_template_to_product";h="tdb_assign_woo_product_template_global";e=d.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_archive":f="woo_archive";g="tdb_assign_woo_archive_template_to_tax";h="tdb_assign_woo_archive_template_global";
e=d.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_search_archive":f="woo_search_archive";g="tdb_assign_woo_search_archive_template_global";h="";e=d.replace("templateid-","");break;case "wp-admin-bar-tdb_template_woo_shop_base":f="woo_shop_base";g="tdb_assign_woo_shop_base_template_global";h="";e=d.replace("templateid-","");break;case "wp-admin-bar-tdb_template_cpt":f="cpt";g="tdb_assign_cpt_template_to_cpt";h="tdb_assign_cpt_template_global";e=d.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_cpt_tax":f=
"cpt_tax",g="tdb_assign_cpt_tax_template_to_tax",h="tdb_assign_cpt_tax_template_global",e=d.replace("templateid-","")}var l=jQuery(".tdb-"+f+"-templates");l.length?a.currentTarget===this&&jQuery(a.target).parent().attr("id")==="wp-admin-bar-tdb_template_"+f&&(l.toggle(),b.toggleClass("tdb-templates-open"),b.toggleClass("tdb-templates-close")):(b.addClass("tdb-templates-loading"),l=jQuery('<div class="tdb-templates tdb-'+f+'-templates" data-type="'+f+'"></div>'),l.insertAfter(b),l.show());m(f,e,g,
""===h?!1:!0,h,void 0,function(){b.removeClass("tdb-templates-loading");b.addClass("tdb-templates-open");n(b,l,"tdb-templates-align-right")})}).on("click","#wp-admin-bar-tdc_page_mobile_template > a",function(a){a.preventDefault();var b=jQuery(this);a=b.parent().attr("class").replace("pageid-","");var c=jQuery("#tdb-mobile-templates");c.length?(c.toggle(),b.toggleClass("tdb-templates-open"),b.toggleClass("tdb-templates-close")):(b.addClass("tdb-templates-loading"),b.addClass("tdb-templates-open"),
tdbGetMobileTemplates("page",a,b,void 0,function(){b.removeClass("tdb-templates-loading");jQuery("#tdb-mobile-templates").show();n(b,jQuery("#tdb-mobile-templates"),"tdb-mobile-templates-align-right")}))}).on("click","#wp-admin-bar-tdc_create_mobile_page",function(a){var b=jQuery(this).attr("class").split(" ")[0].replace("pageid-","");tdConfirm.modal({caption:"Create Mobile Page",objectContext:window,callbackYes:function(){var a=jQuery("#tdb-new-template-name"),d=jQuery("#tdb-copy-content");jQuery.ajax({type:"POST",
url:td_ajax_url,data:{action:"tdb_create_mobile_template",template_id:b,template_title:a.val(),template_type:"page",copyContent:d.is(":checked")?"1":"0",_nonce:window.tdb_globals.wpRestNonce},success:function(c,d,h){"undefined"!==typeof jQuery.parseJSON(c).mobile_template_id&&(tdConfirm.close(),c=jQuery("#wp-admin-bar-tdc_page_mobile_template"),c.length&&c.find("a:first").html('<span class="td-mob-page-before">Mobile page</span>'+a.val()),tdbGetMobileTemplates("page",b))},error:function(a,b,c){}})},
htmlInfoContent:'Enter the mobile page name: <input id="tdb-new-template-name" type="text" value="" onfocus="(function(e){ jQuery( e.target ).siblings(\'#tdb-modal-notice\').fadeOut(50); })(event)"/><em id="tdb-modal-notice"></em><div class="tdb-form-check"><input type="checkbox" class="form-check-input" id="tdb-copy-content"><label class="form-check-label" for="tdb-copy-content"><span class="tdb-check"></span><span class="tdb-check-title">Copy content</span></label></div>',textYes:"Create",textNo:"Cancel"})}).on("click",
".tdb-single-template-global label, .tdb-category-template-global label, .tdb-author-template-global label, .tdb-tag-template-global label, .tdb-woo_product-template-global label, .tdb-woo_archive-template-global label, .tdb-cpt-template-global label, .tdb-cpt_tax-template-global label ",function(a){a.preventDefault();var b=jQuery(this);a=b.closest(".tdb-template-el-global");var c=a.data("type"),d=a.data("global-action"),f=b.parent().data(c+"-id"),g=b.parent().data("template-id"),h=jQuery(".tdb-templates");
b={action:d,template_id:g,_nonce:window.tdb_globals.wpRestNonce};switch(c){case "single":b.single_id=f;break;case "category":b.category_id=f;break;case "tag":b.tag_id=f;break;case "author":b.author_id=f;break;case "woo_product":b.woo_product_id=f;break;case "woo_archive":b.woo_term_id=f;break;case "cpt":b.cpt_id=f;b.option="single_tpl";break;case "cpt_tax":void 0!==a.data("cpt")?(b.action="tdb_assign_cpt_template_global",b.cpt=f,b.option="archive_tpl"):b.cpt_tax_id=f}jQuery.ajax({type:"POST",url:td_ajax_url,
data:b,success:function(a,b,d){a=jQuery.parseJSON(a);"undefined"!==typeof a.reload&&window.location.reload();"undefined"!==typeof a.global_template_id&&(h.find(".tdb-"+c+'-template-global > input[type="checkbox"]').removeAttr("checked"),h.find(".tdb-"+c+'-template-global[data-template-id="'+g+'"] > input[type="checkbox"]').attr("checked",!0))},error:function(a,b,c){}});return!1}).on("click",".tdb-template-el-title",function(a){a.preventDefault();if(a.target===a.currentTarget){a=jQuery(this);var b=
a.data("action"),c=a.data("type"),d=a.data(c+"-id"),f=a.data("template-id");b={action:b,template_id:f,_nonce:window.tdb_globals.wpRestNonce};"cpt"===c?b.cpt=a.data("cpt-id"):"cpt_tax"===c&&(b.cpt_tax=a.data("cpt_tax-id"));switch(c){case "single":b.single_id=d;break;case "category":b.category_id=d;break;case "author":b.author_id=d;break;case "tag":b.tag_id=d;break;case "woo_product":b.woo_product_id=d;break;case "woo_archive":b.woo_term_id=d;break;case "cpt":b.cpt_id=d;break;case "cpt_tax":void 0!==
a.data("cpt")?(b.action="tdb_assign_cpt_template_global",b.cpt=d,b.option="archive_tpl"):b.cpt_tax_id=d;break;case "search":void 0!==a.data("cpt")&&(b.action="tdb_assign_cpt_template_global",b.cpt=d,b.option="search_tpl")}jQuery.ajax({type:"POST",url:td_ajax_url,data:b,success:function(a,b,d){"undefined"===typeof jQuery.parseJSON(a).reload&&"cpt"!==c&&"cpt_tax"!==c&&"search"!==c||window.location.reload()},error:function(a,b,c){}});return!1}}).on("change",".tdb-template-el-title-input",function(a){a.preventDefault();
a=jQuery(this);var b=a.closest(".tdb-templates"),c=a.closest(".tdb-template-el"),d=c.find(".tdb-template-el-title:first");b.data("type");b=c.data("template-id");d.html();jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_change_template_name",template_id:b,template_title:a.val(),_nonce:window.tdb_globals.wpRestNonce},success:function(a,b,c){a=jQuery.parseJSON(a);"undefined"!==typeof a.template_id&&(d.html(a.template_title),d.removeData("title"))},error:function(a,b,c){}})}).on("click",".tdb-template-el-edit",
function(a){a.preventDefault();var b=jQuery(this);a=b.closest(".tdb-templates");var c=b.closest(".tdb-template-el");b=c.find(".tdb-template-el-title:first");a.data("type");c.data("template-id");c=b.html();"undefined"===typeof b.data("title")&&(a.find(".tdb-template-el-title").each(function(a,b){a=jQuery(b);b=a.data("title");"undefined"!==typeof b&&(a.html(b),a.removeData("title"))}),b.data("title",b.html()),b.html('<input class="tdb-template-el-title-input" type="text" value="'+c+'">'),b.find("input").focus().select())}).on("click",
".tdb-template-el-duplicate",function(a){a.preventDefault();a=jQuery(this);var b=a.closest(".tdb-templates"),c=a.closest(".tdb-template-el"),d=c.find(".tdb-template-el-title:first"),f=b.data("type");a=c.data("template-id");var g=d.html(),h=d.data(f+"-id"),e=d.data("action"),l="";0<="single category tag author woo_product woo_archive".split(" ").indexOf(f)&&(c=c.find(".tdb-template-el-global:first"),c.length&&(l=c.data("global-action")));tdbApi.run({wpNonce:window.tdb_globals.wpRestNonce,cloudEndPoint:"td-cloud-library/new_template",
post:{postId:a,templateType:f,templateName:g,duplicateTemplate:!0},done:function(a){b.removeData("tdb-templates");m(f,0<="single category tag author woo_product woo_archive cpt".split(" ").indexOf(f)?h:"",e,""===l?!1:!0,l)},error:function(a){console.log("td-cloud-library/new_template ( duplicate template ) - ERROR",a)}});jQuery(".tdb-template-el-title-input").trigger("change")}).on("keyup",".tdb-template-el-title-input",function(a){27===a.keyCode&&jQuery(this).trigger("change")}).on("click",".tdb-template-el-delete",
function(a){a=jQuery(this);a.closest(".tdb-templates");var b=a.closest(".tdb-template-el");a=b.data("template-id");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_delete_template",template_id:a,_nonce:window.tdb_globals.wpRestNonce},success:function(a,d,f){a=jQuery.parseJSON(a);"undefined"!==typeof a.reload&&window.location.reload();"undefined"!==typeof a.template_id&&b.remove()},error:function(a,b,f){}});jQuery(".tdb-template-el-title-input").trigger("change")}).on("click",function(a){a=
jQuery(a.target);a.closest("#wp-admin-bar-tdb_template_single").length||a.closest("#wp-admin-bar-tdb_template_category").length||a.closest("#wp-admin-bar-tdb_template_404").length||a.closest("#wp-admin-bar-tdb_template_date").length||a.closest("#wp-admin-bar-tdb_template_search").length||a.closest("#wp-admin-bar-tdb_template_attachment").length||a.closest("#wp-admin-bar-tdb_template_author").length||a.closest("#wp-admin-bar-tdb_template_tag").length||a.closest("#wp-admin-bar-tdb_template_woo_product").length||
a.closest("#wp-admin-bar-tdb_template_woo_archive").length||a.closest("#wp-admin-bar-tdb_template_woo_search_archive").length||a.closest("#wp-admin-bar-tdb_template_woo_shop_base").length||a.closest("#wp-admin-bar-tdb_template_cpt").length||a.closest("#wp-admin-bar-tdb_template_cpt_tax").length||a.closest("#wp-admin-bar-tdc_page_mobile_template").length||(a=jQuery(".tdb-templates"),a.length&&(a.hide(),a.prev("a").removeClass("tdb-templates-open").addClass("tdb-templates-close"),jQuery(".tdb-template-el-title-input").trigger("change")),
a=jQuery("#tdb-mobile-templates"),a.length&&(a.hide(),a.prev("a").removeClass("tdb-templates-open").addClass("tdb-templates-close")))}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-el",function(a){var b=jQuery(this),c=jQuery("#tdb-mobile-templates");a=b.data("template-id");var d=b.data("mobile-template-id"),f=c.closest(".tdb-template-el-mobile-btns"),g=b.closest(".tdb-template-el-mobile-wrap"),h=b.closest("#wp-admin-bar-tdc_page_mobile_template");jQuery.ajax({type:"POST",url:td_ajax_url,
data:{action:"tdb_set_mobile_template",template_id:a,mobile_template_id:d,_nonce:window.tdb_globals.wpRestNonce},success:function(a,l,k){a=jQuery.parseJSON(a);_.isObject(a)&&!_.isUndefined(a.result)&&1===a.result&&(f.data("mobile-template-id",d),c.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),c.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+d+'"]').addClass("tdb-current"),g.length&&(a=g.find(".tdb-template-el-mobile:first"),""===d?a.html("-"):a.html('<span class="tdb-template-el-mobile-active">Yes</span>')),
h.length&&(h.find("a:first").html('<span class="td-mob-page-before" style="margin-right:10px;">Mobile page</span>'+b.find(".tdb-template-el-mobile-list-title:first").html()),"No mobile page"===b.find(".tdb-template-el-mobile-list-title:first").html()&&h.find("a:first").html('<span class="td-mob-page-before">Mobile page</span>')))}})}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-edit",function(a){a.stopPropagation()}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-delete",
function(a){a.stopPropagation();a=jQuery(this);var b=a.data("type"),c=a.closest(".tdb-template-el-mobile-list-el"),d=c.data("template-id");a=c.data("mobile-template-id");var f=c.hasClass("tdb-current"),g=jQuery("#tdb-mobile-templates").closest(".tdb-template-el");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_delete_template",template_id:a,_nonce:window.tdb_globals.wpRestNonce},success:function(a,e,l){"undefined"!==typeof jQuery.parseJSON(a).template_id&&tdbGetMobileTemplates(b,d,void 0,
function(){jQuery("#tdb-mobile-templates").addClass("loading")},function(){jQuery("#tdb-mobile-templates").removeClass("loading");if(f)if("page"===b){var a=jQuery("#wp-admin-bar-tdc_page_mobile_template");a.length&&a.find("a:first").html('<span class="td-mob-page-before">Mobile page</span>No mobile page')}else c.remove(),g.length&&g.find(".tdb-template-el-mobile:first").html("-")})},error:function(a,b,c){}})}).on("mouseenter",".tdb-template-el-mobile-btns",function(a){a=jQuery(this);var b=a.data("mobile-template-id"),
c=a.data("template-id"),d=jQuery("#tdb-mobile-templates");d.find(".tdb-template-el-mobile-list-inner").is(":empty")||(d.appendTo(a).show(),d.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),d.find(".tdb-template-el-mobile-list-el").data("template-id",c),d.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+b+'"]').addClass("tdb-current"))}).on("mouseleave",".tdb-template-el-mobile-btns",function(a){a=jQuery(".tdb-templates");var b=jQuery("#tdb-mobile-templates");b.hide();
b.insertBefore(a);b.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current")});jQuery(".tdb-templates");window.tdbGetMobileTemplates=function(a,b,c,d,f,g,h){var e=jQuery("#tdb-mobile-templates",g);e.length||(e=jQuery('<div id="tdb-mobile-templates" class="tdb-template-el-mobile-list"><div class="tdb-template-el-mobile-list-inner"></div><div class="tdb-template-el-mobile-list-separator" style="height: 1px;width: 100%;background-color: #ebebeb;margin: 10px 0;"></div><a href="https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/" target="_blank" style="height: auto;padding: 0;color: #1a9a75;" class="tdb-template-el-mobile-list-no-el">Documentation »</a></div>'),
e.hide());"undefined"!==typeof c&&e.insertAfter(c);c={action:"tdb_get_"+a+"_mobile_templates",_nonce:window.tdb_globals.wpRestNonce};c[a+"_id"]=b;"undefined"!==typeof window.tdbLoadDataFromId&&(c.tdbLoadDataFromId=window.tdbLoadDataFromId);"undefined"!==typeof d&&d.call();jQuery.ajax({type:"POST",url:td_ajax_url,data:c,success:function(c,d,g){var k="";g=jQuery.parseJSON(c);c='<li id="wp-admin-bar-tdb_template_load" class="pageid-'+b+' tdb-load-mobile-template tdb-template-el-mobile-list-el"><div class="ab-item ab-empty-item" title="Optional - Load mobile page from TagDiv Cloud Library"></div><span class="tdb-template-el-mobile-list-title">Load mobile page from Cloud Library</span></li><li id="wp-admin-bar-tdc_create_mobile_page" class="pageid-'+
b+' tdb-template-el-mobile-list-el"><div class="ab-item ab-empty-item" title="Optional - Create blank mobile page"></div><span class="tdb-template-el-mobile-list-title">Create blank mobile page</span></li>';if(_.isArray(g)&&g.length){var l=!1,m="template";d="";"page"===a&&(m="page",d=c+'<div class="tdb-template-el-mobile-list-separator" style="height: 1px;width: 100%;background-color: #ebebeb;margin: 10px 0;"></div>');_.each(g,function(c,d,e){d="";_.isUndefined(c.is_current)||(d="tdb-current",l=!0);
k+='<div class="tdb-template-el-mobile-list-el '+d+'" data-mobile-template-id="'+c.template_id+'" data-template-id="'+b+'"><div class="tdb-template-el-mobile-list-title" title="'+c.template_title+'">'+c.template_title+'</div><a class="tdb-template-el-mobile-list-edit" title="Edit mobile '+m+' with Composer" href="'+c.template_url+'" target="_blank"></a><div class="tdb-template-el-mobile-list-delete" title="Delete mobile '+m+'" data-type="'+a+'"></div></div>'});""!==k&&(g="",l||(g="tdb-current",l=
!0),k=d+'<div class="tdb-template-el-mobile-list-el '+g+'" data-mobile-template-id="" data-template-id="'+b+'"><div class="tdb-template-el-mobile-list-title">No mobile '+m+"</div></div>"+k);""!==k&&(e.html('<div class="tdb-template-el-mobile-list-inner">'+k+'</div><div class="tdb-template-el-mobile-list-separator" style="height: 1px;width: 100%;background-color: #ebebeb;margin: 10px 0;"></div><a href="https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/" target="_blank" style="height: auto;padding: 0;color: #1a9a75;" class="tdb-template-el-mobile-list-no-el">Documentation »</a>'),
d=e.parent(".tdb-template-el-mobile-btns"),!_.isUndefined(h)&&d.length&&(e.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),e.find(".tdb-template-el-mobile-list-el").data("template-id",b),e.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+h+'"]').addClass("tdb-current")),e.is(":visible")&&d.length?e.show():e.hide())}""===k&&("page"===a?e.html(c+'<div class="tdb-template-el-mobile-list-separator" style="height: 1px;width: 100%;background-color: #ebebeb;margin: 10px 0;"></div><div class="tdb-template-el-mobile-list-inner"><div class="tdb-template-el-mobile-list-no-el">No mobile page, please import or create a new mobile page.</div><div class="tdb-template-el-mobile-list-separator" style="height: 1px;width: 100%;background-color: #ebebeb;margin: 10px 0;"></div><a href="https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/" target="_blank" style="height: auto;padding: 0;color: #1a9a75;" class="tdb-template-el-mobile-list-no-el">Documentation »</a></div>'):
e.html(""));"undefined"!==typeof f&&f.call()}})}})();
jQuery(window).on("load",function(){if("undefined"!==typeof window.tdReadingProgressBar){var m=!1;window.parent===window.top&&"undefined"!==typeof window.name&&"tdc-live-iframe"===window.name&&"undefined"!==typeof window.parent.tdcSidebar&&(m=!0);if(window.self===window.top||m)jQuery(".tdb_single_reading_progress").each(function(){var n=jQuery(this),a=n.data("td-block-uid");n=n.data("bar-position");var b=new tdReadingProgressBar.item;b.blockUid=a;b.barPosition=n;tdReadingProgressBar.addItem(b);m&&
tdReadingProgressBar.createFixedBar(b,0,30)}),m||tdReadingProgressBar.calculateBarsFill()}});
;