"use strict";(self.travelpayoutsWpPlugin=self.travelpayoutsWpPlugin||[]).push([[779],{3916:(t,e,n)=>{var r=n(83957),o=n.n(r),a=n(97086);const s=o().create({baseURL:window.travelpayoutsAjaxEndpoint,withCredentials:!0,params:{action:"travelpayouts_routes"}});s.interceptors.request.use(a.Y);var i=function(t,e,n,r){return new(n||(n=Promise))(function(o,a){function s(t){try{l(r.next(t))}catch(t){a(t)}}function i(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,i)}l((r=r.apply(t,e||[])).next())})};const l=()=>i(void 0,void 0,void 0,function*(){const t=(t=>{const e=["noreferrer","noopener"],n=t.map(t=>`a[href*="${t}"][rel]`);let r=0;return document.querySelectorAll(n.join(",")).forEach(t=>{var n;const o=(null!==(n=t.getAttribute("rel"))&&void 0!==n?n:"").split(" "),a=o.filter(t=>!e.includes(t));o.length!==a.length&&(r+=1),a.length?t.setAttribute("rel",a.join(" ")):t.removeAttribute("rel")}),r})(["tp.media"]);if(t)try{yield s.post("/links/linkReplacementCount",{url:window.location.href,count:t})}catch(t){console.warn(t)}});window.travelpayoutsUseFilterRef&&l()},97086:(t,e,n)=>{n.d(e,{J:()=>s,Y:()=>a});var r=n(83957),o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};const a=t=>{const{url:e,params:n}=t,r=o(t,["url","params"]);return Object.assign(Object.assign({},r),{params:Object.assign(Object.assign({},n),{page:e?e.replace(/^\//,""):void 0})})},s=n.n(r)().create({baseURL:window.ajaxurl,params:{action:"travelpayouts_routes"}});s.interceptors.request.use(a)}}]);