function disableSelection(e){void 0!==e.onselectstart?e.onselectstart=function(){return!1}:void 0!==e.style.MozUserSelect?e.style.MozUserSelect="none":e.onmousedown=function(){return!1},e.style.cursor="default"}function wpccpDisableCtrlActions(e){const t=(e.ctrlKey||e.metaKey)&&"c"===e.key;wpccpMessage&&t&&alert(wpccpMessage);const n=["a","b","c","f","p","s","u","x","shift","i","j"];wpccpPaste||n.push("v");const c=n.includes(e.key);(e.ctrlKey||e.metaKey)&&c&&e.preventDefault()}function wpccpDisableKeys(e){(["Control","Alt","F12"].includes(e.key)||[91,93,224].includes(e.keyCode))&&e.preventDefault()}function wpccpDisablePrintScreen(e){44===e.keyCode&&window.location.replace("http://google.com/")}window.onload=function(){disableSelection(document.body)},document.ondragstart=function(){return!1},document.oncontextmenu=function(e){const t=e||window.event,n=t.target||t.srcElement;return"A"===n.nodeName&&"text"===n.type||"password"===n.type||(wpccpMessage&&alert(wpccpMessage),!1)},window.addEventListener("keyup",wpccpDisableCtrlActions,!1),window.addEventListener("keydown",wpccpDisableCtrlActions,!1),window.addEventListener("keyup",wpccpDisableKeys,!1),window.addEventListener("keydown",wpccpDisableKeys,!1),window.addEventListener("keyup",wpccpDisablePrintScreen,!1);
!function(e,t){"use strict";const s=new WeakMap,i={},n=[],l={id:Date.now(),title:"",trigger:"hover",position:"top",class:"",theme:"light",size:"small",singleton:!0,close_on_outside_click:!0},o=(t,s,i)=>{t.offsetHeight;const n=(e=>{const t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}})(s),l=t.getBoundingClientRect(),o=t.querySelector(".ulf-arrow"),r=e.innerWidth,a=e.innerHeight,u={top:{top:n.top-l.height-13,left:n.left+n.width/2-l.width/2,arrow:"bottom"},bottom:{top:n.top+n.height+13,left:n.left+n.width/2-l.width/2,arrow:"top"},left:{top:n.top+n.height/2-l.height/2,left:n.left-l.width-13,arrow:"right"},right:{top:n.top+n.height/2-l.height/2,left:n.left+n.width+13,arrow:"left"}},h=u[i]||u.top;h.left<10&&(h.left=10),h.left+l.width>r-10&&(h.left=r-l.width-10),h.top<10&&(h.top=10),h.top+l.height>a-10&&(h.top=a-l.height-10),t.style.position="fixed",t.style.left=`${h.left}px`,t.style.top=`${h.top}px`,o&&(o.className=`ulf-arrow ulf-arrow-${h.arrow}`),t.setAttribute("data-positioned","true")},r=Array.from||(e=>Array.prototype.slice.call(e));function a(u,h){if(undefined!==u.length&&u.length>1)return r(u).forEach(e=>{new a(e,h)}),u;if(!u)return!1;if(!(h=Object.assign({},l,h||{})).title){const e=u.querySelector("[data-tooltip-content]");if(e){"ready"===e.getAttribute("data-tooltip-state")&&(h.title=e.innerHTML.trim())}if(!h.title){const e=u.getAttribute("title");e&&(h.title=e,u.removeAttribute("title"))}}const d=s.get(u);d&&d.destroy();let c=null,m=null,p=null,g=!1,f=null,k=null,_=null,E=!1;const b=s=>{if(c&&c.parentNode&&!s)return;!1!==h.singleton&&n.forEach(e=>{e&&e.hide&&e.element!==u&&e.hide()});let i=`ulf-${h.theme||"light"}-theme ulf-${h.size||"small"}`;h.class&&(i+=` ${h.class}`);let l=u;if(h.child){const e=u.querySelector(h.child);e&&(l=e)}if(c&&c.parentNode&&!s){const e=c.querySelector(".ulf-content");e&&(g=!0===s,e.innerHTML=g?'<div class="ulf-loading-spinner"><div class="ulf-spinner-circle"></div><div class="ulf-spinner-circle"></div><div class="ulf-spinner-circle"></div></div>':h.title||"&nbsp;"),requestAnimationFrame(()=>{c&&c.parentNode&&o(c,l,h.position||"top")})}else c&&c.parentNode&&c.remove(),g=!0===s,c=((e,s,i)=>{const n=t.createElement("div");n.className=`ulf-tooltip ${s||""}`,n.setAttribute("role","tooltip");const l=i?'<div class="ulf-loading-spinner"><div class="ulf-spinner-circle"></div><div class="ulf-spinner-circle"></div><div class="ulf-spinner-circle"></div></div>':e||"&nbsp;";return n.innerHTML=`<div class="ulf-arrow"></div><div class="ulf-content">${l}</div>`,n})(h.title||"",i,g),t.body.appendChild(c),requestAnimationFrame(()=>{c&&c.parentNode&&o(c,l,h.position||"top")});"hover"!==h.trigger&&h.trigger||(c.addEventListener("mouseenter",()=>{clearTimeout(p)}),c.addEventListener("mouseleave",C)),f||(f=()=>{c&&c.parentNode&&T()},k={capture:!0,passive:!0},e.addEventListener("scroll",f,k));n.some(e=>e.element===u)||n.push({element:u,hide:T});const r=`ulp-dom-${h.id}`;c.setAttribute("id",r),u.setAttribute("aria-describedby",r);const a=new CustomEvent("ulf-show",{bubbles:!0,detail:{tooltip:c}});u.dispatchEvent(a)},y=()=>{let e=u.querySelector("[data-tooltip-content]");return e||(e=t.createElement("div"),e.setAttribute("data-tooltip-content",""),e.style.display="none",u.appendChild(e)),e},v=e=>{y().setAttribute("data-tooltip-state",e)},L=()=>{const e=u.querySelector("[data-tooltip-content]");return e?e.getAttribute("data-tooltip-state"):null},w=e=>{h.title=e||"";y().innerHTML=e||"";const t=e&&e.trim().length>0;if(v(t?"ready":"empty"),t)if(c&&c.parentNode){const t=c.querySelector(".ulf-content");if(t){t.innerHTML=e,g=!1;const s=h.child&&u.querySelector(h.child)||u;requestAnimationFrame(()=>{c&&c.parentNode&&o(c,s,h.position||"top")})}}else E&&b(!1);else c&&c.parentNode&&T()},T=()=>{if(!c||!c.parentNode)return;f&&k&&(e.removeEventListener("scroll",f,k),f=null,k=null),c.remove(),c=null,g=!1;const t=n.findIndex(e=>e.element===u);t>-1&&n.splice(t,1),u.removeAttribute("aria-describedby");const s=new CustomEvent("ulf-hide",{bubbles:!0});u.dispatchEvent(s)},A=()=>{const e=u.querySelector("[data-tooltip-content]");return e?e.innerHTML.trim():""},S=()=>{clearTimeout(p),E=!0;const e=L();if("empty"!==e){if("ready"===e){const e=A();return void(e?(h.title=e,m=setTimeout(b,100)):v("empty"))}if("loading"!==e)return e&&""!==e?void(h.showLoadingImmediately?b(!0):m=setTimeout(b,100)):(N.requestData&&N.requestData()||v("loading"),void b(!0));b(!0)}},C=()=>{clearTimeout(m),E=!1,p=setTimeout(T,100)};"hover"!==h.trigger&&h.trigger?"click"===h.trigger&&u.addEventListener("click",e=>{e.preventDefault(),c&&c.parentNode?T():b()}):(u.addEventListener("mouseenter",S),u.addEventListener("mouseleave",C)),!1!==h.close_on_outside_click&&(_=e=>{c&&c.parentNode&&!c.contains(e.target)&&!u.contains(e.target)&&T()},t.addEventListener("mousedown",_));const N={show:b,showLoading:()=>b(!0),updateContent:w,hide:T,destroy:()=>{T(),u.removeEventListener("mouseenter",S),u.removeEventListener("mouseleave",C),N.contentUpdateHandler&&u.removeEventListener("tooltip-content-updated",N.contentUpdateHandler),f&&k&&(e.removeEventListener("scroll",f,k),f=null,k=null),_&&(t.removeEventListener("mousedown",_),_=null),m&&(clearTimeout(m),m=null),p&&(clearTimeout(p),p=null),s.delete(u),h.id&&delete i[h.id]}};s.set(u,N),h.id&&(i[h.id]=N),N.setLoadingState=()=>{v("loading")},h.trigger&&"hover"!==h.trigger||setTimeout(()=>{const e=L();if(e&&""!==e){if("loading"===e)b(!0);else if("ready"===e){const e=A();e&&(h.title=e,m=setTimeout(b,100))}}else S()},0),N.requestData=()=>{const e=L();return"ready"!==e&&"empty"!==e&&("loading"!==e&&(v("loading"),"function"==typeof h.dataFetcher?(h.dataFetcher(u,h.id),!0):(setTimeout(()=>{const e=new CustomEvent("tooltip-request-data",{bubbles:!0,detail:{element:u,tooltipId:h.id}});u.dispatchEvent(e),t.dispatchEvent(e)},0),!0)))};const q=e=>{const t=e.detail||{};(t.element===u||t.target&&u.contains(t.target))&&w(t.content||"")};return u.addEventListener("tooltip-content-updated",q),N.contentUpdateHandler=q,u}e.WordpressUlikeTooltipPlugin=a,e.WordpressUlikeTooltip={visible:n,defaults:l,getInstanceById:e=>i[e],getInstanceByElement:e=>s.get(e)},"undefined"!=typeof jQuery&&jQuery&&jQuery.fn&&(jQuery.fn.WordpressUlikeTooltip=function(e){return this.each(function(){new a(this,e)})})}(window,document),function(e,t){"use strict";const s="WordpressUlikeNotifications",i={messageType:"success",messageText:"Hello World!",timeout:8e3,messageElement:"wpulike-message",notifContainer:"wpulike-notification",fadeOutClass:"wpulike-message-fadeout"},n=new WeakMap,l=(e,t,s)=>{if(!e)return;const i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:s||null});e.dispatchEvent(i)};function o(e,t){e?(this.element=e,this.settings=Object.assign({},i,t),this._defaults=i,this._name=s,this.timeoutId=null,this.fadeTimeoutId=null,this.isRemoving=!1,this._messageClassName=null,this.init()):console.warn("WordpressUlikeNotifications: element is required")}o.prototype={init(){this._createMessage(),this._getContainer(),this._append(),this._setupRemoval()},_createMessage(){this.messageElement=t.createElement("div"),this._messageClassName||(this._messageClassName=`${this.settings.messageElement} wpulike-${this.settings.messageType}`),this.messageElement.className=this._messageClassName,this.messageElement.textContent=this.settings.messageText,this.messageElement.setAttribute("role","alert"),this.messageElement.setAttribute("aria-live","polite")},_getContainer(){this.notifContainer=((e,s)=>{let i=n.get(e);return i&&i.parentNode||(i=e.querySelector(`.${s}`),i||(i=t.createElement("div"),i.className=s,e.appendChild(i)),n.set(e,i)),i})(this.element,this.settings.notifContainer)},_append(){this.notifContainer&&this.messageElement&&(this.notifContainer.appendChild(this.messageElement),requestAnimationFrame(()=>{l(this.notifContainer,"WordpressUlikeNotificationAppend",{messageElement:this.messageElement})}))},_setupRemoval(){this.messageElement&&(this.messageElement.addEventListener("click",()=>{this.remove()},{once:!0,passive:!0}),this.settings.timeout&&this.settings.timeout>0&&(this.timeoutId=setTimeout(()=>{this.remove()},this.settings.timeout)))},remove(){var e,t,s;!this.isRemoving&&this.messageElement&&(this.isRemoving=!0,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.fadeTimeoutId&&(clearTimeout(this.fadeTimeoutId),this.fadeTimeoutId=null),e=this.messageElement,t=()=>{this._cleanup()},s=this,e&&requestAnimationFrame(()=>{e.classList.add(i.fadeOutClass);const n=setTimeout(()=>{s&&(s.fadeTimeoutId=null),t&&t()},300);s&&(s.fadeTimeoutId=n)}))},_cleanup(){if(!this.messageElement)return;const e=this.messageElement,t=this.notifContainer;e.parentNode&&e.remove(),t&&0===t.children.length&&t.parentNode&&(t.remove(),n.delete(this.element)),l(this.element,"WordpressUlikeRemoveNotification",{messageElement:e}),this.messageElement=null,this.notifContainer=null,this.isRemoving=!1,this._messageClassName=null}},e[s]=o,"undefined"!=typeof jQuery&&jQuery&&jQuery.fn&&(jQuery.fn[s]=function(e){return this.each(function(){new o(this,e)})})}(window,document),function(e,t,s){"use strict";const i="WordpressUlike",n={ID:0,nonce:0,type:"",append:"",appendTimeout:2e3,displayLikers:!1,likersTemplate:"default",disablePophover:!0,isTotal:!1,factor:"",template:"",counterSelector:".count-box",generalSelector:".wp_ulike_general_class",buttonSelector:".wp_ulike_btn",likersSelector:".wp_ulike_likers_wrapper"},l={"ulike-id":"ID","ulike-nonce":"nonce","ulike-type":"type","ulike-append":"append","ulike-is-total":"isTotal","ulike-display-likers":"displayLikers","ulike-likers-style":"likersTemplate","ulike-disable-pophover":"disablePophover","ulike-append-timeout":"appendTimeout","ulike-factor":"factor","ulike-template":"template"},o=(e,t)=>{const i=t.replace(/-([a-z])/g,e=>e[1].toUpperCase());if(e.dataset&&e.dataset[i]!==s)return e.dataset[i];const n=e.getAttribute(`data-${t}`);return null===n?s:"true"===n||"false"!==n&&(""===n||"null"===n?null:isNaN(n)||""===n?n:Number(n))},r=(e,t,s)=>{const i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:s});if(e.dispatchEvent(i),"undefined"!=typeof jQuery&&jQuery&&jQuery.fn&&jQuery.fn.on){jQuery(e).trigger(t,s)}},a=e=>Array.from?Array.from(e):Array.prototype.slice.call(e),u=(e,t)=>{e&&(e.length===s?t(e,0):a(e).forEach(t))},h=(e,t)=>{const s=[],i=e.parentNode;if(!i)return s;const n=i.children;for(let i=0;i<n.length;i++)n[i]!==e&&(t&&!n[i].matches(t)||s.push(n[i]));return s},d=(e,t)=>{const s=[],i=new Set;return u(e,e=>{h(e,t).forEach(e=>{i.has(e)||(i.add(e),s.push(e))})}),s},c=e=>Array.isArray(e)||e.length!==s?e[0]:e,m=(e,t)=>{for(const s in t)"boolean"==typeof t[s]&&null!=e[s]&&(e[s]=0!=e[s]&&"0"!==e[s]&&!1!==e[s])};function p(e,t){this.element=e,this.settings=Object.assign({},n,t),m(this.settings,n),this._defaults=n,this._name=i,this._boundHandlers=[],this._timeouts=[],this._isFetchingLikers=!1,this.buttonElement=this.element.querySelectorAll(this.settings.buttonSelector);const r=this.buttonElement.length>0?this.buttonElement[0]:null;if(r){for(const e in l)if(l.hasOwnProperty(e)){const t=o(r,e);t!==s&&(this.settings[l[e]]=t)}m(this.settings,n)}this.generalElement=this.element.querySelectorAll(this.settings.generalSelector),this.counterElement=[],this.generalElement.length>0&&u(this.generalElement,e=>{const t=e.querySelectorAll(this.settings.counterSelector);u(t,e=>{this.counterElement.push(e)})}),this.counterElement.length>0&&u(this.counterElement,e=>{const t=o(e,"ulike-counter-value");t!==s&&(e.innerHTML=t)}),this.likersElement=this.element.querySelector(this.settings.likersSelector),this.init()}p.prototype={init(){if(this.buttonElement&&this.buttonElement.length>0){const e=this._initLike.bind(this);this._boundHandlers.push({element:this.buttonElement,event:"click",handler:e}),u(this.buttonElement,t=>{t&&t.addEventListener("click",e)})}const e=this.generalElement.length>0?this.generalElement[0]:null;if(e){const t=s=>{this._updateLikers(s),e.removeEventListener("mouseenter",t);const i=this._boundHandlers.findIndex(e=>e.handler===t);i>-1&&this._boundHandlers.splice(i,1)};this._boundHandlers.push({element:e,event:"mouseenter",handler:t}),e.addEventListener("mouseenter",t)}},_ajax(e,t){const s=new FormData;for(const t in e)e.hasOwnProperty(t)&&s.append(t,e[t]);fetch(wp_ulike_params.ajax_url,{method:"POST",body:s}).then(e=>e.json()).then(t).catch(e=>{console.error("WP Ulike AJAX error:",e)})},_initLike(e){e.stopPropagation(),this._maybeUpdateElements(e),this._updateSameButtons(),this._updateSameLikers(),this.buttonElement&&u(this.buttonElement,e=>{e.disabled=!0}),r(t,"WordpressUlikeLoading",this.element),this.generalElement&&u(this.generalElement,e=>{e.classList.add("wp_ulike_is_loading")}),this._ajax({action:"wp_ulike_process",id:this.settings.ID,nonce:this.settings.nonce,factor:this.settings.factor,type:this.settings.type,template:this.settings.template,displayLikers:this.settings.displayLikers,likersTemplate:this.settings.likersTemplate},e=>{this.generalElement&&u(this.generalElement,e=>{e.classList.remove("wp_ulike_is_loading")}),e.success?(this._updateMarkup(e),this._appendChild()):e.data&&e.data.hasToast&&this._sendNotification("error",e.data.message),this.buttonElement&&u(this.buttonElement,e=>{e.disabled=!1}),r(t,"WordpressUlikeUpdated",this.element)})},_maybeUpdateElements(e){this.buttonElement=e.currentTarget,this.generalElement=this.buttonElement.closest(this.settings.generalSelector),this.generalElement?this.counterElement=this.generalElement.querySelectorAll(this.settings.counterSelector):this.counterElement=[],this.settings.factor=o(this.buttonElement,"ulike-factor")},_appendChild(){if(""!==this.settings.append&&this.buttonElement){let e=[];if(this.settings.append.trim().startsWith("<")){const s=t.createElement("div");for(s.innerHTML=this.settings.append;s.firstChild;)e.push(s.removeChild(s.firstChild))}else{const s=t.querySelector(this.settings.append);s&&e.push(s)}if(e.length>0){const t=[];if(u(this.buttonElement,s=>{s&&e.forEach(e=>{const i=e.cloneNode(!0);s.appendChild(i),t.push(i)})}),this.settings.appendTimeout&&t.length>0){const e=setTimeout(()=>{t.forEach(e=>{e&&e.parentNode&&e.remove()})},this.settings.appendTimeout);this._timeouts.push(e)}}}},_updateMarkup(e){this._setSbilingElement(),this._setSbilingButtons(),this._updateGeneralClassNames(e.data.status),null!==e.data.data&&(5!==e.data.status&&(this.__updateCounter(e.data.data),this.settings.displayLikers&&void 0!==e.data.likers&&this._updateLikersMarkup(e.data.likers)),this._updateButton(e.data.btnText,e.data.status)),e.data.hasToast&&this._sendNotification(e.data.messageType,e.data.message)},_updateGeneralClassNames(e){const t="wp_ulike_is_not_liked",s="wp_ulike_is_liked",i="wp_ulike_is_unliked",n="wp_ulike_click_is_disabled";this.siblingElement&&this.siblingElement.length&&u(this.siblingElement,e=>{e.classList.remove(s,i)}),u(this.generalElement,l=>{if(l)switch(e){case 1:l.classList.add(s),l.classList.remove(t);const e=l.firstElementChild;e&&e.classList.add(n);break;case 2:l.classList.add(i),l.classList.remove(s);break;case 3:l.classList.add(s),l.classList.remove(i);break;case 0:case 5:l.classList.add(n)}}),(0===e||5===e)&&this.siblingElement&&this.siblingElement.length&&u(this.siblingElement,e=>{e.classList.add(n)})},_arrayToString:e=>e.join(" "),_setSbilingElement(){if(this.generalElement.length!==s&&this.generalElement.length>1)this.siblingElement=d(this.generalElement);else{const e=c(this.generalElement);this.siblingElement=e?h(e):[]}},_setSbilingButtons(){if(this.buttonElement.length!==s&&this.buttonElement.length>1)this.siblingButton=d(this.buttonElement,this.settings.buttonSelector);else{const e=c(this.buttonElement);this.siblingButton=e?h(e,this.settings.buttonSelector):[]}},__updateCounter(e){u(this.counterElement,t=>{t.setAttribute("data-ulike-counter-value",e),t.innerHTML=e});const s=c(this.buttonElement);r(t,"WordpressUlikeCounterUpdated",[s])},_fetchLikersData(){if(!this.settings.displayLikers)return void(this._isFetchingLikers=!1);if(this._isFetchingLikers)return;this._isFetchingLikers=!0;const e=c(this.generalElement);e&&e.classList.add("wp_ulike_is_getting_likers_list"),this._ajax({action:"wp_ulike_get_likers",id:this.settings.ID,nonce:this.settings.nonce,type:this.settings.type,displayLikers:this.settings.displayLikers,likersTemplate:this.settings.likersTemplate},t=>{e&&e.classList.remove("wp_ulike_is_getting_likers_list"),this._isFetchingLikers=!1,t.success?this._updateLikersMarkup(t.data):this._updateLikersMarkup("")})},_getAllTooltipElements(){const e=void 0!==this.settings.factor&&this.settings.factor?`_${this.settings.factor}`:"",s=`.wp_${this.settings.type.toLowerCase()}${e}_btn_${this.settings.ID}`,i=t.querySelectorAll(s),n=[];return u(i,e=>{const t=e.closest(".wpulike");t&&!n.includes(t)&&n.push(t)}),n.length>0?n:[this.element]},_updateLikers(t){if(this.settings.displayLikers){if("popover"===this.settings.likersTemplate&&o(this.element,"ulike-tooltip"))return;if("default"===this.settings.likersTemplate&&this.likersElement&&(this.likersElement.length===s||this.likersElement.length>0))return;if("popover"===this.settings.likersTemplate){if("undefined"!=typeof WordpressUlikeTooltipPlugin){const t=`${this.settings.type.toLowerCase()}-${this.settings.ID}`;(e.WordpressUlikeTooltip&&e.WordpressUlikeTooltip.getInstanceByElement?e.WordpressUlikeTooltip.getInstanceByElement(this.element):null)||new WordpressUlikeTooltipPlugin(this.element,{id:t,position:"top",child:this.settings.generalSelector,theme:"white",size:"tiny",trigger:"hover",dataFetcher:(e,t)=>{this._fetchLikersData()}})}}else this._fetchLikersData();return t&&t.stopImmediatePropagation(),!1}},_updateLikersMarkup(e){if("popover"===this.settings.likersTemplate){this.likersElement=this.element;this.settings.type.toLowerCase(),this.settings.ID;const s=(e&&"object"==typeof e?e.template:e)||"",i=this._getAllTooltipElements();u(i,e=>{const i=new CustomEvent("tooltip-content-updated",{bubbles:!0,detail:{element:e,content:s}});e.dispatchEvent(i),t.dispatchEvent(i);let n=e.querySelector("[data-tooltip-content]");n||(n=t.createElement("div"),n.setAttribute("data-tooltip-content",""),n.setAttribute("data-tooltip-state","ready"),n.style.display="none",e.appendChild(n)),n.innerHTML=s,n.setAttribute("data-tooltip-state","ready")})}else{if(!(this.likersElement&&(this.likersElement.length===s||this.likersElement.length>0))&&e&&e.template){const s=t.createElement("div");s.innerHTML=e.template;const i=s.firstElementChild;i&&(this.element.appendChild(i),this.likersElement=i)}if(this.likersElement){const t=this.likersElement.length!==s?a(this.likersElement):[this.likersElement],i=e&&"object"==typeof e&&e.template?e.template:"string"==typeof e?e:"";u(t,e=>{e&&(i?(e.style.display="",e.innerHTML=i):(e.style.display="none",e.innerHTML=""))})}}const i=e&&"object"==typeof e?e.template:e;r(t,"WordpressUlikeLikersMarkupUpdated",[this.likersElement,this.settings.likersTemplate,i])},_updateSameButtons(){const e=void 0!==this.settings.factor&&this.settings.factor?`_${this.settings.factor}`:"",s=`.wp_${this.settings.type.toLowerCase()}${e}_btn_${this.settings.ID}`;if(this.sameButtons=t.querySelectorAll(s),this.sameButtons.length>1){this.buttonElement=this.sameButtons;const e=[];u(this.sameButtons,t=>{const s=t.closest(this.settings.generalSelector);s&&e.push(s)}),this.generalElement=1===e.length?e[0]:e;const t=[];u(e,e=>{const s=e.querySelectorAll(this.settings.counterSelector);u(s,e=>{t.push(e)})}),this.counterElement=t}},_updateSameLikers(){const e=`.wp_${this.settings.type.toLowerCase()}_likers_${this.settings.ID}`;this.sameLikers=t.querySelectorAll(e),this.sameLikers.length>1&&(this.likersElement=this.sameLikers)},_getLikersElement(){return this.likersElement},_updateButton(e,t){u(this.buttonElement,s=>{if(s)if(s.classList.contains("wp_ulike_put_image"))4===t?s.classList.add("image-unlike","wp_ulike_btn_is_active"):(s.classList.toggle("image-unlike"),s.classList.toggle("wp_ulike_btn_is_active"));else if(s.classList.contains("wp_ulike_put_text")&&null!==e){const t=s.querySelector("span");t&&(t.innerHTML=e)}}),this.siblingElement&&this.siblingElement.length&&u(this.siblingElement,e=>{const t=e.querySelector(this.settings.buttonSelector);t&&t.classList.remove("image-unlike","wp_ulike_btn_is_active")}),this.siblingButton&&this.siblingButton.length&&u(this.siblingButton,e=>{e.classList.remove("image-unlike","wp_ulike_btn_is_active")})},_sendNotification(e,s){"undefined"!=typeof WordpressUlikeNotifications&&new WordpressUlikeNotifications(t.body,{messageType:e,messageText:s})},destroy(){this._boundHandlers.forEach(({element:e,event:t,handler:i})=>{e&&e.length!==s?u(e,e=>{e&&e.removeEventListener(t,i)}):e&&e.removeEventListener(t,i)}),this._boundHandlers=[],this._timeouts.forEach(e=>{clearTimeout(e)}),this._timeouts=[],this._isFetchingLikers=!1}},e[i]=p,"undefined"!=typeof jQuery&&jQuery&&jQuery.fn&&(jQuery.fn[i]=function(e){return this.each(function(){this.hasAttribute&&this.hasAttribute("data-ulike-initialized")||(new p(this,e),this.setAttribute&&this.setAttribute("data-ulike-initialized","true"))})})}(window,document),function(e,t){"use strict";const s=e=>Array.from?Array.from(e):Array.prototype.slice.call(e),i=e=>{if(!e)return;(void 0!==e.length?s(e):[e]).forEach(e=>{e&&"undefined"!=typeof WordpressUlike&&(e.hasAttribute("data-ulike-initialized")||(new WordpressUlike(e),e.setAttribute("data-ulike-initialized","true")))})},n=t.querySelectorAll(".wpulike");i(n);((i,n,l)=>{const o=e=>{e.forEach(e=>{e.addedNodes.length&&e.addedNodes.forEach(e=>{if(1===e.nodeType&&e.matches&&e.matches(n)&&l(e),1===e.nodeType&&e.querySelectorAll){const t=e.querySelectorAll(n);s(t).forEach(e=>l(e))}})})},r=t.querySelector(i);if(!r)return;const a={childList:!0,subtree:!0},u=e.MutationObserver||e.WebKitMutationObserver;if(u){new u(o).observe(r,a)}})("body",".wpulike",e=>{i(e)})}(window,document);
document.addEventListener("contextmenu",kpg_nrci_cm, false);
if(nrci_opts['drag']=='1'){
document.addEventListener("dragstart",kpg_nrci_cm, false);
document.addEventListener("touchmove",kpg_nrci_cm, false); 
}
if(nrci_opts['touch']=='1'){
document.addEventListener("touchstart",kpg_nrci_cm, false);
}
if(nrci_opts['gesture']=='1'){
document.addEventListener("gesturestart",kpg_nrci_cm, false);
}
function kpg_nrci_block(event){
event.cancelBubble=true;
if(event.preventDefault!=undefined){
event.preventDefault();
}
if(event.stopPropagation!=undefined){
event.stopPropagation();
}
return false;
}
function kpg_nrci_cm(event){
try {
if(event.target.tagName=="IMG"){
event.cancelBubble=true;
if(event.preventDefault!=undefined){
event.preventDefault();
}
if(event.stopPropagation!=undefined){
event.stopPropagation();
}
return false;
}} catch(error){
console.log("NRI error:"+error);
}
try {
if(event.target.getAttribute("style")==null ||
event.target.getAttribute("style")==""){
return true;
}
if(event.target.style.backgroundImage!=null
&& event.target.style.backgroundImage!='none'
&& event.target.style.backgroundImage!=''){
event.cancelBubble=true;
if(event.preventDefault!=undefined){
event.preventDefault();
}
if(event.stopPropagation!=undefined){
event.stopPropagation();
}
return false;
}} catch(error){
console.log("NRI error:"+error);
}
return true;
};
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
(s=>{var o,e=window,r=s(".ha-reading-progress-bar");r.length<=0||(o={},"yes"===(o=JSON.parse(r.attr("data-ha_rpbsettings"))).ha_rpb_enable&&(o.hasOwnProperty("progress_bar_type")&&"vertical"===o.progress_bar_type&&o.hasOwnProperty("rpb_vertical_position")&&"right"==o.rpb_vertical_position?s("body").addClass("no-scroll"):s("body").removeClass("no-scroll"),s(e).scroll(function(){var r=0,t=(r=(s(e).scrollTop()||0)/((s(document).height()||1)-(s(e).height()||1))*100).toFixed(0);100<r&&(r=100),o.hasOwnProperty("progress_bar_type")&&"horizontal"===o.progress_bar_type?(s(".hm-hrp-bar").css({display:"flex"}),s(".hm-hrp-bar").width(t+"%"),1<t&&0<r?(s(".hm-tool-tip").css({opacity:1,transition:"opacity 0.3s"}),s(".hm-tool-tip").text(t+"%"),98<=t?s(".hm-tool-tip").css({right:"5px"}):s(".hm-tool-tip").css({right:"-28px"})):(s(".hm-tool-tip").css({opacity:0,transition:"opacity 0.3s"}),s(".hm-tool-tip").text("0%"))):o.hasOwnProperty("progress_bar_type")&&"vertical"===o.progress_bar_type?(s(".hm-vrp-bar").css({display:"flex"}),0<r&&1<t?s(".hm-vrp-bar").height(t+"%"):s(".hm-vrp-bar").height("0%")):o.hasOwnProperty("progress_bar_type")&&"circle"===o.progress_bar_type&&(t=2*Math.PI*45,t=Math.round(t-r/100*t),0<=r)&&(s(".hm-progress-circle").css("stroke-dashoffset",t.toFixed(2)),s(".hm-progress-percent-text").text("".concat(r.toFixed(0),"%")))})))})(jQuery);
;(function(d){d.fn.t=function(n,A){return this.each(function(){var a=A,k=n,b=d(this),q,r,t=-1,m=!1,x=-1,u="12qwertyuiop[]asdfghjkl;zxcvbnm,./~!@#$%^&*()_+:1234567890-=op".split([]),e=function(a,b){return d.type(a)[0]==(b||"n")},y=function(){g=d.grep(h,function(a){return"&"==a[0]||!a[1]}).length-1;return-1<g?g:0},w=function(b){x!=b&&a.blink&&(a.blink_perm||l.parent().data("blinking",x=b?1:0))},f={c:0,beep:function(){0==f.c&&(f.c=d("html").data().__TAC);f.o&&f.o.stop();f.o=f.c.createOscillator();f.o.frequency.setValueAtTime(1,f.c.currentTime);f.g=f.c.createGain();f.o.connect(f.g);f.g.connect(f.c.destination);f.o.start();f.o.stop(f.c.currentTime+.03)}};if("beep"==k&&!b.data().is_typing&&d("html").data().__TAC)return f.beep(),this;""===k&&(k="<del>*</del>");if(b.data().is_typing)return k=="paused".slice(0,-1)&&(b.data("paused",e(a,"b")?oo_=a:b.data("paused")?oo_=!1:oo_=!0),b.data().blink&&b.data("blinking",oo_)),this;if(k=="paused".slice(0,-1))return this;b.data("is_typing",1);e(k,"o")&&(a=k);if(/t\-/.test(b.attr("class")))return this;if("add"==k&&b.data().t){var p=a;a=d.extend({},b.data());var l=b=d(":first",b),z=e(a.typing,"f");p="<"+a.tag+' class="typing-add">'+p+"</"+a.tag+">"}else{"add"==k&&(k=a,a={});a=d.extend({t:!0,delay:!1,speed:50,speed_vary:!1,caret:"\u258e",tag:"span",blink:!0,beep:!1,blink_perm:!1,repeat:-3,pause_on_click:!1,wrap:!1,mistype:!1,locale:"en",init:!1,typing:!1,fin:!1},a?a:b.data());p=r=!1;var c;b.data().t||(b.wrapInner(d("<"+a.tag+"/>",{"class":"t-container",style:"top:auto;bottom:auto;"})),/^[ar]/.test(b.css("position"))||b.css({position:"relative"}),b.css({overflow:"hidden"}));a.wrap&&!b.parent().data().t_wrap&&(b.wrap(d("<div/>",/[.#]/.test(a.wrap[0])?"#"==a.wrap[0]?{id:a.wrap.substr(1)}:{"class":a.wrap.substr(1)}:{style:a.wrap})),b.parent().data("t_wrap",1));e(a.beep,"b")||(a.beep=!1);!0===a.beep&&e(d("html").data().__TAC,"u")&&(d("html").data("__TAC",__TAC=window.AudioContext||window.webkitAudioContext?new AudioContext:!1),__TAC||(a.beep=!1));!1===a.repeat&&(a.repeat=-3);!0===a.caret&&(a.caret="\u258e");e(a.caret,"s")&&!d(".t-caret",b)[0]&&(!0===a.blink&&(a.blink=3*a.speed),e(a.blink)&&100>a.blink&&(a.blink=100),!e(a.blink)&&(a.blink=!1),r=d("<"+a.tag+"/>",{"class":"t-caret",html:a.caret}).appendTo(b),a.blink&&b.append("\u200b")&&b.data("bi",setInterval(function(){(l.parent().data().blinking|(v="h"==r.css("visibility")[0])||a.blink_perm)&&r.css({visibility:v?"visible":"hidden"})},a.blink)));a.blink||b.data().bi&&clearInterval(b.data().bi)&&b.removeData("bi");!e(a.blink_perm,"b")&&(a.blink_perm=!0);a.speed=!e(a.speed)||10>a.speed?10:a.speed;a.speed_vary&&(a.speed/=2.5);1<a.mistype||(a.mistype=!1);b.data(a);d(".typing-0",b).replaceWith(function(){return this.childNodes});d(".typing-add",b).remove();l=b=d(":first",b);var h=e(k,"s")?k:b.html();""==h&&(h="\u200b");b.empty();l.parent().show().css({visibility:"visible"});e(a.delay)&&0<a.delay&&(c=~~(1E3*a.delay/a.speed))&&a.blink_perm||w(1);z=e(a.typing,"f");!0===a.pause_on_click&&b.parent().off("click").click(function(a){"1"!=d(a.target).data().click&&d(this).t("pause")})}/<kbd.*?>/i.test(h=String(p||h))&&b.parent().data("kbd",j_=1)&&b.parent().data("mistype",b.parent().data("mistype")?_j=b.parent().data().mistype:_j=10)&&(a.mistype=_j)&&(a.kbd=j_?j_:!1);h=h.replace(/(.*?)[\u200b]+$/,"$1").replace(/<!\-\-([\s\S]+?)\-\->/g,"$1").replace(/<ins>([^0-9])<\/ins>/g,"$1").replace(/<(embed|command|col|wbr|img|br|input|hr|area|source|track|keygen|param)(.*?)[\/]?>/g,"<#$1$2/>").replace(/<ins>\s*(\d*[.]?\d*)\s*(<\/ins>)/g,'<ins data-ins="$1"></ins>').replace(/<ins(.*?)>([\s\S]*?)(<\/ins>)/g,function(a,b,c){return"<#ins"+b+">"+c.replace(/<(?!#)/g,"<#")+"<#/ins>"+(c?"":"</ins>")}).replace(/<(del.*?data-del=")(.*?)(".*?)><\/(del>)/g,"<#$1$2$3><#/$4$2</$4").replace(/<del(.*?)>([\s\S]*?)<\/del>/g,function(a,b,c,d){s=(s=c.match(/<s>\s*(.*?)\s*<\/s>/i))&&s[0]?' data-s="'+(s[1]||"1")+'"':"";i=(i=c.match(/data-ins="(.*?)"/))&&i[1]?i[1]:""==s?.25:.75;c=c.replace(/(<s>.*?<\/s>|<[\/]?.*?>)/g,"");return"<del"+b+s+' data-del="'+c.replace(/\n/,"\\n")+'" data-ins="'+i+'">'+("*"!=c?c:"")+"</del>"}).replace(/<(\w+)(.*?)>/g,"<$1$2><#/$1>").replace(/<\/(\w+)>/g,"</> ($1)").replace(/<[#]+/g,"<").replace(/(\/del>)\*</g,"$1<").match(/<ins.*?>[\s\S]*?<\/ins>|<[^<]+\/>|<\/> \(\w+\)|<[\s\S]+?><\/\w+>|&[#x]?[a-z0-9]+;|\r|\n|\t|\S|\s/ig);!e(c)&&(c=h.shift());h.push("\u200b");"de"==a.locale&&(u='12qwertzuiop\u00fc+asdfghjkl\u00f6\u00e4#<yxcvbnm,.-!"\u00a7$%&/(()=?1234567890\u00df*p+');var B=y()+1;!p&&e(a.init,"f")&&a.init(l.parent());var C=setInterval(function(){if(l.parent().data("paused"))t=1;else if(!m){m=!m;if(e(c)){if(0<--c){m=!m;w(.25>=b.data().ins?0:1==t?t=-1:1);return}c=b.data().ins?"</>":h.shift()}else if(a.speed_vary&&~~(4*Math.random())){m=!m;return}w(0);if(b.data().del&&(!0===l.parent().data().beep&&f.beep(),b.data().s&&!c[0]&&b.text(""),q=String(b.data().del),!e(c,"a")&&"/"==c[1]&&(c=q.replace(/\\n/g,"\n").split([])),e(c,"a"))){if(t=c.pop()){b.data().s?b.html(c.join([])+"<mark "+("."==(_=String(b.data().s))[0]?'class="'+_.substr(1)+'"':'style="background:'+("1"==_?"yellow":_.split(",")[0])+((_=_.split(",")[1])?";color:"+_:"")+';"')+">"+b.data().del.substr(c.length)+"</mark>"):b.text(c.join([]));m=!m;return}"*"==q&&(l.wrapInner(d("<"+a.tag+"/>",{"class":"typing-0",style:"display:none;"})),b=b.parent(),p&&(h=d.merge(["<"+a.tag+' class="typing-add"></'+a.tag+">"],h,["</"+a.tag+">"]),b=b.parent()));b=b.parent();"\u200b"==q&&b.find(":last").remove();c=""}for(;"/"==c[1];)b=b.parent(),c=h.shift()||"";for(;;)if(!0===l.parent().data().beep&&f.beep(),b.append(c),z&&a.typing(l.parent(),c,y(),B),!/<ins.*?>[\s\S]+</.test(c)&&/></.test(c)&&(b=b.find(":last")),h[0]&&/<\w+/.test(h[0]))c=h.shift();else break;(c=h.shift())?((a.mistype&&!a.kbd||a.kbd&&/kbd/i.test(b.prop("tagName")))&&c&&!c[1]&&"\u200b"!=b.data().del&&" "!=c&&!~~(Math.random()*a.mistype)&&-1<(__=d.inArray(c.toLowerCase(),u,2))&&(__+=~~(2*Math.random())+1,~~(2*Math.random())&&(__-=3),h=d.merge([90>c.charCodeAt(0)?u[__].toUpperCase():u[__],"</del>",c],h),c='<del data-ins=".25" data-del="\u200b"></del>'),c&&"/"==c[1]&&b.data().ins&&(c=~~(1E3*Number(b.data().ins)/a.speed)),m=!m):(clearInterval(C),l.parent().removeData(["is_typing","paused"]),e(a.repeat)&&--a.repeat,-1<a.repeat?(a.init=!1,l.parent().t(e(k,"o")?a:k,a)):(w(1),e(a.fin,"f")&&a.fin(l.parent())))}},a.speed)})};d.fn.a=function(n){return this.each(function(){d(this).data().t&&d(this).t("add",n)})};d.fn.p=function(n){return this.each(function(){d(this).data().is_typing&&d(this).t("pause",n?!1===n||!0===n?n:void 0:void 0)})};d.fn.b=function(n){return this.each(function(){d(this).t("beep")})}})(jQuery);