(function ($){
'use strict';
/**
* All of the code for your public-facing JavaScript source
* should reside in this file.
*
* Note: It has been assumed you will write jQuery code here, so the
* $ function reference has been prepared for usage within the scope
* of this function.
*
* This enables you to define handlers, for when the DOM is ready:
*
* $(function(){
*
* });
*
* When the window is loaded:
*
* $(window).load(function(){
*
* });
*
* ...and/or other possibilities.
*
* Ideally, it is not considered best practise to attach more than a
* single DOM-ready or window-load handler for a particular page.
* Although scripts in the WordPress core, Plugins and Themes may be
* practising this, we should strive to set a better example in our own work.
*/
$(document).ready(function (){
$.fn.serializeObject=function (){
var output={};
var formData=this.serializeArray();
$.each(formData, function (){
var fieldName=this.name;
var fieldValue=this.value||'';
var isArrayField=fieldName.slice(-2)==='[]';
if(isArrayField){
if(output[fieldName]){
output[fieldName].push(fieldValue);
}else{
output[fieldName]=[fieldValue];
}}else{
output[fieldName]=fieldValue;
}});
return output;
};
$('.es_ajax_subscription_form').on('submit', function (e){
var form=$(this);
e.preventDefault();
handleBindFunction(form);
});
});
function handleResponse(response, form){
var redirection_url=response['redirection_url'];
if('undefined'!==typeof redirection_url){
redirection_url=redirection_url.trim();
if(typeof(redirection_url)==='string'&&redirection_url!=''){
if(!/^https?:\/\//i.test(redirection_url)){
redirection_url="http://"+redirection_url;
}
window.location.href=redirection_url;
}}else{
var status=response.status;
var message_class='success';
if(status==='ERROR'){
message_class='error';
}
var responseText=response['message_text'];
var messageContainer=$(form).next('.es_subscription_message');
messageContainer.attr('class', 'es_subscription_message ' + message_class);
messageContainer.html(responseText);
var esSuccessEvent={
detail: {
es_response: message_class,
msg: responseText
},
bubbles: true,
cancelable: true
};
$(form).trigger('es_response', [esSuccessEvent]);
}}
function handleBindFunction(form, is_ig=false){
form=$(form);
var formData=form.serializeObject();
formData['es']='subscribe';
formData['action']='es_add_subscriber';
$.ajax({
type: 'POST',
url: es_data.es_ajax_url,
data: formData,
dataType: 'json',
beforeSend: function (){
form.find('#spinner-image').show();
form.find('.es_submit_button').attr('disabled', true);
},
success: function (response){
var actualResponse=response;
if(response.success!==undefined&&response.data!==undefined){
actualResponse=response.data;
}
if(!is_ig){
if(actualResponse&&typeof actualResponse.status!=='undefined'&&actualResponse.status==="SUCCESS"){
form.slideUp('slow');
form.hide();
}else{
form.find('#spinner-image').hide();
}}
form.find('.es_submit_button').attr('disabled', false);
jQuery(window).trigger('es.send_response', [form, actualResponse]);
handleResponse(actualResponse, form);
},
error: function (err){
form.find('#spinner-image').hide();
form.find('.es_submit_button').attr('disabled', false);
console.log(err, 'error');
},
});
return false;
}
jQuery(window).on("init.icegram", function(e, ig){
if(typeof ig!=='undefined'&&typeof ig.messages!=='undefined'){
jQuery('.icegram .es_shortcode_form, .icegram form[data-source="ig-es"]').each(function(i, v){
jQuery(v).bind('submit', function (e){
e.preventDefault();
e.stopImmediatePropagation();
var form=$(this);
handleBindFunction(form, true);
});
});
}});
})(jQuery);
(function(){
var isIe=/(trident|msie)/i.test(navigator.userAgent);
if(isIe&&document.getElementById&&window.addEventListener){
window.addEventListener('hashchange', function(){
var id=location.hash.substring(1),
element;
if(!(/^[A-z0-9_-]+$/.test(id) )){
return;
}
element=document.getElementById(id);
if(element){
if(!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName) )){
element.tabIndex=-1;
}
element.focus();
}}, false);
}})();
(function($){
var $body=$('body'),
$customHeader=$body.find('.custom-header'),
$branding=$customHeader.find('.site-branding'),
$navigation=$body.find('.navigation-top'),
$navWrap=$navigation.find('.wrap'),
$navMenuItem=$navigation.find('.menu-item'),
$menuToggle=$navigation.find('.menu-toggle'),
$menuScrollDown=$body.find('.menu-scroll-down'),
$sidebar=$body.find('#secondary'),
$entryContent=$body.find('.entry-content'),
$formatQuote=$body.find('.format-quote blockquote'),
isFrontPage=$body.hasClass('twentyseventeen-front-page')||$body.hasClass('home blog'),
navigationFixedClass='site-navigation-fixed',
navigationHeight,
navigationOuterHeight,
navPadding,
navMenuItemHeight,
idealNavHeight,
navIsNotTooTall,
headerOffset,
menuTop=0,
resizeTimer;
$('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]', '.site-content-contain').filter(':visible').focus(function(){
if($navigation.hasClass('site-navigation-fixed') ){
var windowScrollTop=$(window).scrollTop(),
fixedNavHeight=$navigation.height(),
itemScrollTop=$(this).offset().top,
offsetDiff=itemScrollTop - windowScrollTop;
if($('#wpadminbar').length){
offsetDiff -=$('#wpadminbar').height();
}
if(offsetDiff < fixedNavHeight){
$(window).scrollTo(itemScrollTop -(fixedNavHeight + 50), 0);
}}
});
function setNavProps(){
navigationHeight=$navigation.height();
navigationOuterHeight=$navigation.outerHeight();
navPadding=parseFloat($navWrap.css('padding-top') ) * 2;
navMenuItemHeight=$navMenuItem.outerHeight() * 2;
idealNavHeight=navPadding + navMenuItemHeight;
navIsNotTooTall=navigationHeight <=idealNavHeight;
}
function adjustScrollClass(){
if('none'===$menuToggle.css('display') ){
if(navIsNotTooTall){
if(isFrontPage&&($body.hasClass('has-header-image')||$body.hasClass('has-header-video') )){
headerOffset=$customHeader.innerHeight() - navigationOuterHeight;
}else{
headerOffset=$customHeader.innerHeight();
}
if($(window).scrollTop() >=headerOffset){
$navigation.addClass(navigationFixedClass);
}else{
$navigation.removeClass(navigationFixedClass);
}}else{
$navigation.removeClass(navigationFixedClass);
}}
}
function adjustHeaderHeight(){
if('none'===$menuToggle.css('display') ){
if(isFrontPage){
$branding.css('margin-bottom', navigationOuterHeight);
}else{
$customHeader.css('margin-bottom', navigationOuterHeight);
}}else{
$customHeader.css('margin-bottom', '0');
$branding.css('margin-bottom', '0');
}}
function setQuotesIcon(){
$(twentyseventeenScreenReaderText.quote).prependTo($formatQuote);
}
function belowEntryMetaClass(param){
var sidebarPos, sidebarPosBottom;
if(! $body.hasClass('has-sidebar')||(
$body.hasClass('search') ||
$body.hasClass('single-attachment') ||
$body.hasClass('error404') ||
$body.hasClass('twentyseventeen-front-page')
)){
return;
}
sidebarPos=$sidebar.offset();
sidebarPosBottom=sidebarPos.top +($sidebar.height() + 28);
$entryContent.find(param).each(function(){
var $element=$(this),
elementPos=$element.offset(),
elementPosTop=elementPos.top;
if(elementPosTop > sidebarPosBottom){
$element.addClass('below-entry-meta');
}else{
$element.removeClass('below-entry-meta');
}});
}
function supportsInlineSVG(){
var div=document.createElement('div');
div.innerHTML='<svg/>';
return 'http://www.w3.org/2000/svg'===('undefined'!==typeof SVGRect&&div.firstChild&&div.firstChild.namespaceURI);
}
function checkiOS(){
return /iPad|iPhone|iPod/.test(navigator.userAgent)&&! window.MSStream;
}
function supportsFixedBackground(){
var el=document.createElement('div'),
isSupported;
try {
if(!('backgroundAttachment' in el.style)||checkiOS()){
return false;
}
el.style.backgroundAttachment='fixed';
isSupported=('fixed'===el.style.backgroundAttachment);
return isSupported;
}
catch (e){
return false;
}}
$(document).ready(function(){
if($navigation.length){
setNavProps();
adjustScrollClass();
}
if($menuScrollDown.length){
if($('body').hasClass('admin-bar') ){
menuTop -=32;
}
if($('body').hasClass('blog') ){
menuTop -=30;
}
if(! $navigation.length){
navigationOuterHeight=0;
}
$menuScrollDown.click(function(e){
e.preventDefault();
$(window).scrollTo('#primary', {
duration: 600,
offset: { top: menuTop - navigationOuterHeight }});
});
}
adjustHeaderHeight();
setQuotesIcon();
belowEntryMetaClass('blockquote.alignleft, blockquote.alignright');
if(true===supportsInlineSVG()){
document.documentElement.className=document.documentElement.className.replace(/(\s*)no-svg(\s*)/, '$1svg$2');
}
if(true===supportsFixedBackground()){
document.documentElement.className +=' background-fixed';
}});
if($navigation.length){
$(window).on('scroll', function(){
adjustScrollClass();
adjustHeaderHeight();
});
$(window).resize(function(){
setNavProps();
setTimeout(adjustScrollClass, 500);
});
}
$(window).resize(function(){
clearTimeout(resizeTimer);
resizeTimer=setTimeout(function(){
belowEntryMetaClass('blockquote.alignleft, blockquote.alignright');
}, 300);
setTimeout(adjustHeaderHeight, 1000);
});
$(document).on('wp-custom-header-video-loaded', function(){
$body.addClass('has-header-video');
});
})(jQuery);
;(function(factory){
'use strict';
if(typeof define==='function'&&define.amd){
define(['jquery'], factory);
}else if(typeof module!=='undefined'&&module.exports){
module.exports=factory(require('jquery') );
}else{
factory(jQuery);
}})(function($){
'use strict';
var $scrollTo=$.scrollTo=function(target, duration, settings){
return $(window).scrollTo(target, duration, settings);
};
$scrollTo.defaults={
axis:'xy',
duration: 0,
limit:true
};
function isWin(elem){
return ! elem.nodeName ||
$.inArray(elem.nodeName.toLowerCase(), ['iframe','#document','html','body'])!==-1;
}
$.fn.scrollTo=function(target, duration, settings){
if(typeof duration==='object'){
settings=duration;
duration=0;
}
if(typeof settings==='function'){
settings={ onAfter:settings };}
if(target==='max'){
target=9e9;
}
settings=$.extend({}, $scrollTo.defaults, settings);
duration=duration||settings.duration;
var queue=settings.queue&&settings.axis.length > 1;
if(queue){
duration /=2;
}
settings.offset=both(settings.offset);
settings.over=both(settings.over);
return this.each(function(){
if(target===null){ return; }
var win=isWin(this),
elem=win ? this.contentWindow||window:this,
$elem=$(elem),
targ=target,
attr={},
toff;
switch (typeof targ){
case 'number':
case 'string':
if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){
targ=both(targ);
break;
}
targ=win ? $(targ):$(targ, elem);
case 'object':
if(targ.length===0){ return; }
if(targ.is||targ.style){
toff=(targ=$(targ)).offset();
}}
var offset=$.isFunction(settings.offset)&&settings.offset(elem, targ)||settings.offset;
$.each(settings.axis.split(''), function(i, axis){
var Pos=axis==='x' ? 'Left':'Top',
pos=Pos.toLowerCase(),
key='scroll' + Pos,
prev=$elem[key](),
max=$scrollTo.max(elem, axis);
if(toff){
attr[key]=toff[pos] + (win ? 0:prev - $elem.offset()[pos]);
if(settings.margin){
attr[key] -=parseInt(targ.css('margin' + Pos), 10)||0;
attr[key] -=parseInt(targ.css('border' + Pos + 'Width'), 10)||0;
}
attr[key] +=offset[pos]||0;
if(settings.over[pos]){
attr[key] +=targ[axis==='x'?'width':'height']() * settings.over[pos];
}}else{
var val=targ[pos];
attr[key]=val.slice&&val.slice(-1)==='%' ?
parseFloat(val) / 100 * max
: val;
}
if(settings.limit&&/^\d+$/.test(attr[key])){
attr[key]=attr[key] <=0 ? 0:Math.min(attr[key], max);
}
if(! i&&settings.axis.length > 1){
if(prev===attr[key]){
attr={};}else if(queue){
animate(settings.onAfterFirst);
attr={};}}
});
animate(settings.onAfter);
function animate(callback){
var opts=$.extend({}, settings, {
queue: true,
duration: duration,
complete: callback&&function(){
callback.call(elem, targ, settings);
}});
$elem.animate(attr, opts);
}});
};
$scrollTo.max=function(elem, axis){
var Dim=axis==='x' ? 'Width':'Height',
scroll='scroll' + Dim;
if(! isWin(elem)){
return elem[scroll] - $(elem)[Dim.toLowerCase()](); }
var size='client' + Dim,
doc=elem.ownerDocument||elem.document,
html=doc.documentElement,
body=doc.body;
return Math.max(html[scroll], body[scroll]) - Math.min(html[size], body[size]);
};
function both(val){
return $.isFunction(val)||$.isPlainObject(val) ? val:{ top:val, left:val };}
$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={
get: function(t){
return $(t.elem)[t.prop]();
},
set: function(t){
var curr=this.get(t);
if(t.options.interrupt&&t._last&&t._last!==curr){
return $(t.elem).stop();
}
var next=Math.round(t.now);
if(curr!==next){
$(t.elem)[t.prop](next);
t._last=this.get(t);
}}
};
return $scrollTo;
});
document.addEventListener("DOMContentLoaded",(e=>{var t;wpcf7_recaptcha={...null!==(t=wpcf7_recaptcha)&&void 0!==t?t:{}};const c=wpcf7_recaptcha.sitekey,{homepage:n,contactform:a}=wpcf7_recaptcha.actions,o=e=>{const{action:t,func:n,params:a}=e;grecaptcha.execute(c,{action:t}).then((e=>{const c=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:t,token:e}});document.dispatchEvent(c)})).then((()=>{"function"==typeof n&&n(...a)})).catch((e=>console.error(e)))};if(grecaptcha.ready((()=>{o({action:n})})),document.addEventListener("change",(e=>{o({action:a})})),"undefined"!=typeof wpcf7&&"function"==typeof wpcf7.submit){const e=wpcf7.submit;wpcf7.submit=(t,c={})=>{o({action:a,func:e,params:[t,c]})}}document.addEventListener("wpcf7grecaptchaexecuted",(e=>{const t=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let c=0;c<t.length;c++)t[c].setAttribute("value",e.detail.token)}))}));
(()=>{var t={507:(t,e,r)=>{"use strict";r.d(e,{A:()=>A});var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var i=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(t,e){return function(r,o,s,c=10){const l=t[e];if(!i(r))return;if(!n(o))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:o};if(l[r]){const t=l[r].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===r&&t.currentIndex>=e&&t.currentIndex++}))}else l[r]={handlers:[a],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,o,s,c)}};var s=function(t,e,r=!1){return function(o,s){const c=t[e];if(!i(o))return;if(!r&&!n(s))return;if(!c[o])return 0;let l=0;if(r)l=c[o].handlers.length,c[o]={runs:c[o].runs,handlers:[]};else{const t=c[o].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==o&&t.doAction("hookRemoved",o,s),l}};var c=function(t,e){return function(r,n){const i=t[e];return void 0!==n?r in i&&i[r].handlers.some((t=>t.namespace===n)):r in i}};var l=function(t,e,r,n){return function(i,...o){const s=t[e];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const c=s[i].handlers;if(!c||!c.length)return r?o[0]:void 0;const l={name:i,currentIndex:0};return(n?async function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){const e=c[l.currentIndex];t=await e.callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){t=c[l.currentIndex].callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}})()}};var a=function(t,e){return function(){const r=t[e],n=Array.from(r.__current);return n.at(-1)?.name??null}};var d=function(t,e){return function(r){const n=t[e];return void 0===r?n.__current.size>0:Array.from(n.__current).some((t=>t.name===r))}};var u=function(t,e){return function(r){const n=t[e];if(i(r))return n[r]&&n[r].runs?n[r].runs:0}};class h{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=s(this,"actions"),this.removeFilter=s(this,"filters"),this.hasAction=c(this,"actions"),this.hasFilter=c(this,"filters"),this.removeAllActions=s(this,"actions",!0),this.removeAllFilters=s(this,"filters",!0),this.doAction=l(this,"actions",!1,!1),this.doActionAsync=l(this,"actions",!1,!0),this.applyFilters=l(this,"filters",!0,!1),this.applyFiltersAsync=l(this,"filters",!0,!0),this.currentAction=a(this,"actions"),this.currentFilter=a(this,"filters"),this.doingAction=d(this,"actions"),this.doingFilter=d(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}var A=function(){return new h}},8770:()=>{}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{actions:()=>x,addAction:()=>s,addFilter:()=>c,applyFilters:()=>m,applyFiltersAsync:()=>v,createHooks:()=>t.A,currentAction:()=>y,currentFilter:()=>F,defaultHooks:()=>o,didAction:()=>b,didFilter:()=>k,doAction:()=>f,doActionAsync:()=>p,doingAction:()=>_,doingFilter:()=>g,filters:()=>w,hasAction:()=>d,hasFilter:()=>u,removeAction:()=>l,removeAllActions:()=>h,removeAllFilters:()=>A,removeFilter:()=>a});var t=r(507),e=r(8770),i={};for(const t in e)["default","actions","addAction","addFilter","applyFilters","applyFiltersAsync","createHooks","currentAction","currentFilter","defaultHooks","didAction","didFilter","doAction","doActionAsync","doingAction","doingFilter","filters","hasAction","hasFilter","removeAction","removeAllActions","removeAllFilters","removeFilter"].indexOf(t)<0&&(i[t]=()=>e[t]);r.d(n,i);const o=(0,t.A)(),{addAction:s,addFilter:c,removeAction:l,removeFilter:a,hasAction:d,hasFilter:u,removeAllActions:h,removeAllFilters:A,doAction:f,doActionAsync:p,applyFilters:m,applyFiltersAsync:v,currentAction:y,currentFilter:F,doingAction:_,doingFilter:g,didAction:b,didFilter:k,actions:x,filters:w}=o})(),(window.wp=window.wp||{}).hooks=n})();
(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{__:()=>F,_n:()=>L,_nx:()=>D,_x:()=>w,createI18n:()=>h,defaultI18n:()=>b,getLocaleData:()=>g,hasTranslation:()=>O,isRTL:()=>P,resetLocaleData:()=>x,setLocaleData:()=>v,sprintf:()=>l,subscribe:()=>m});var e,r,a,i,o=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function l(t,...n){return function(t,...n){var e=0;return Array.isArray(n[0])&&(n=n[0]),t.replace(o,(function(){var t,r,a,i,o;return t=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(a=arguments[7])&&(a=n[e],e++),void 0===r?(void 0===t&&(t=e+1),e++,o=n[t-1]):n[0]&&"object"==typeof n[0]&&n[0].hasOwnProperty(r)&&(o=n[0][r]),"f"===i?o=parseFloat(o)||0:"d"===i&&(o=parseInt(o)||0),void 0!==a&&("f"===i?o=o.toFixed(a):"s"===i&&(o=o.substr(0,a))),null!=o?o:"")}))}(t,...n)}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],a={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(t){return!t},"*":function(t,n){return t*n},"/":function(t,n){return t/n},"%":function(t,n){return t%n},"+":function(t,n){return t+n},"-":function(t,n){return t-n},"<":function(t,n){return t<n},"<=":function(t,n){return t<=n},">":function(t,n){return t>n},">=":function(t,n){return t>=n},"==":function(t,n){return t===n},"!=":function(t,n){return t!==n},"&&":function(t,n){return t&&n},"||":function(t,n){return t||n},"?:":function(t,n,e){if(t)throw n;return e}};function u(t){var n=function(t){for(var n,o,l,s,u=[],d=[];n=t.match(i);){for(o=n[0],(l=t.substr(0,n.index).trim())&&u.push(l);s=d.pop();){if(a[o]){if(a[o][0]===s){o=a[o][1]||o;break}}else if(r.indexOf(s)>=0||e[s]<e[o]){d.push(s);break}u.push(s)}a[o]||d.push(o),t=t.substr(n.index+o.length)}return(t=t.trim())&&u.push(t),u.concat(d.reverse())}(t);return function(t){return function(t,n){var e,r,a,i,o,l,u=[];for(e=0;e<t.length;e++){if(o=t[e],i=s[o]){for(r=i.length,a=Array(r);r--;)a[r]=u.pop();try{l=i.apply(null,a)}catch(t){return t}}else l=n.hasOwnProperty(o)?n[o]:+o;u.push(l)}return u[0]}(n,t)}}var d={contextDelimiter:"",onMissingKey:null};function c(t,n){var e;for(e in this.data=t,this.pluralForms={},this.options={},d)this.options[e]=void 0!==n&&e in n?n[e]:d[e]}c.prototype.getPluralForm=function(t,n){var e,r,a,i=this.pluralForms[t];return i||("function"!=typeof(a=(e=this.data[t][""])["Plural-Forms"]||e["plural-forms"]||e.plural_forms)&&(r=function(t){var n,e,r;for(n=t.split(";"),e=0;e<n.length;e++)if(0===(r=n[e].trim()).indexOf("plural="))return r.substr(7)}(e["Plural-Forms"]||e["plural-forms"]||e.plural_forms),a=function(t){var n=u(t);return function(t){return+n({n:t})}}(r)),i=this.pluralForms[t]=a),i(n)},c.prototype.dcnpgettext=function(t,n,e,r,a){var i,o,l;return i=void 0===a?0:this.getPluralForm(t,a),o=e,n&&(o=n+this.options.contextDelimiter+e),(l=this.data[t][o])&&l[i]?l[i]:(this.options.onMissingKey&&this.options.onMissingKey(e,t),0===i?e:r)};const p={plural_forms:t=>1===t?0:1},f=/^i18n\.(n?gettext|has_translation)(_|$)/,h=(t,n,e)=>{const r=new c({}),a=new Set,i=()=>{a.forEach((t=>t()))},o=(t,n="default")=>{r.data[n]={...r.data[n],...t},r.data[n][""]={...p,...r.data[n]?.[""]},delete r.pluralForms[n]},l=(t,n)=>{o(t,n),i()},s=(t="default",n,e,a,i)=>(r.data[t]||o(void 0,t),r.dcnpgettext(t,n,e,a,i)),u=t=>t||"default",d=(t,n,r)=>{let a=s(r,n,t);return e?(a=e.applyFilters("i18n.gettext_with_context",a,t,n,r),e.applyFilters("i18n.gettext_with_context_"+u(r),a,t,n,r)):a};if(t&&l(t,n),e){const t=t=>{f.test(t)&&i()};e.addAction("hookAdded","core/i18n",t),e.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>r.data[t],setLocaleData:l,addLocaleData:(t,n="default")=>{r.data[n]={...r.data[n],...t,"":{...p,...r.data[n]?.[""],...t?.[""]}},delete r.pluralForms[n],i()},resetLocaleData:(t,n)=>{r.data={},r.pluralForms={},l(t,n)},subscribe:t=>(a.add(t),()=>a.delete(t)),__:(t,n)=>{let r=s(n,void 0,t);return e?(r=e.applyFilters("i18n.gettext",r,t,n),e.applyFilters("i18n.gettext_"+u(n),r,t,n)):r},_x:d,_n:(t,n,r,a)=>{let i=s(a,void 0,t,n,r);return e?(i=e.applyFilters("i18n.ngettext",i,t,n,r,a),e.applyFilters("i18n.ngettext_"+u(a),i,t,n,r,a)):i},_nx:(t,n,r,a,i)=>{let o=s(i,a,t,n,r);return e?(o=e.applyFilters("i18n.ngettext_with_context",o,t,n,r,a,i),e.applyFilters("i18n.ngettext_with_context_"+u(i),o,t,n,r,a,i)):o},isRTL:()=>"rtl"===d("ltr","text direction"),hasTranslation:(t,n,a)=>{const i=n?n+""+t:t;let o=!!r.data?.[a??"default"]?.[i];return e&&(o=e.applyFilters("i18n.has_translation",o,t,n,a),o=e.applyFilters("i18n.has_translation_"+u(a),o,t,n,a)),o}}},_=window.wp.hooks,y=h(void 0,void 0,_.defaultHooks);var b=y;const g=y.getLocaleData.bind(y),v=y.setLocaleData.bind(y),x=y.resetLocaleData.bind(y),m=y.subscribe.bind(y),F=y.__.bind(y),w=y._x.bind(y),L=y._n.bind(y),D=y._nx.bind(y),P=y.isRTL.bind(y),O=y.hasTranslation.bind(y);(window.wp=window.wp||{}).i18n=n})();