PageSourceSearch

https://receptneked.hu/wp-content/cache/min/1/js/v2/widget.js?ver=1790833595

js receptneked.hu collected 2026-10-02 12:31:34 UTC 155,944 bytes, 1 lines download raw bytes

vendor: 4,785 bytes, line 1
1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}({0:function(e,t,n){e.exports=n("kePY")},"8oxB":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],d=!1,u=-1;function p(){d&&s&&(d=!1,s.length?c=s.concat(c):u=-1,c.length&&f())}function f(){if(!d){var e=l(p);d=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||d||l(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},URgk:function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("YBdB"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},YBdB:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,l,s=1,c={},d=!1,u=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,r=function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(
vendor: 4,357 bytes, line 1
1a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[s]=i,r(s),s++},p.clearImmediate=f}function f(e){delete c[e]}function h(e){if(d)setTimeout(h,0,e);else{var t=c[e];if(t){d=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),d=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("yLpj"),n("8oxB"))},hMnm:function(e,t,n){"use strict";(function(e,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),l=new T(i||[]);return r(a,"_invoke",{value:_(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var p={};function f(){}function h(){}function m(){}var v={};c(v,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(x([])));g&&g!==t&&n.call(g,a)&&(v=g);var b=m.prototype=f.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,l){var s=u(e[i],e,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(s.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function _(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(e){if(e){var t=e[a];if(t)return t.call(e);
vendor: 4,275 bytes, line 1
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function l(e){a(o,r,i,l,s,"next",e)}function s(e){a(o,r,i,l,s,"throw",e)}l(void 0)}))}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
1function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function m(e,t,n){return(m=h()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return m(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function b(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var w=void 0!==e&&"[object global]"==={}.toString.call(e);function k(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function _(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function C(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function A(e){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(e)}function E(e){return/^https:\/\/player\.vimeo\.com\/video\/\d+/.test(e)}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(C(r))return"https://vimeo.com/".concat(r);if(A(r))return r.replace("http:","https:");if(t)throw new TypeError("“".concat(t,"” is not a valid video id."));throw new TypeError("“".concat(r,"” is not a vimeo.com url."))}var x=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",o="string"==typeof t?[t]:t;return o.forEach((function(t){e[r](t,n)})),{cancel:function(){return o.forEach((function(t){return e[i](t,n)}))}}},S=void 0!==Array.prototype.indexOf,I="undefined"!=typeof window&&void 0!==window.postMessage;if(!(w||S&&I))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",o("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!i(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function o(e){return e+"_"+a()+"."+a()}function a(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",(function(e){if(n(this,"delete"),!i(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),r(e.prototype,"get",(function(e){if(n(this,"get"),i(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),r(e.prototype,"has",(function(e){if(n(this,"has"),!i(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),r(e.prototype,"set",(function(e,t){if(n(this,"set"),!i(e))throw new TypeError("Invalid value used as weak map key");var o=e[this._id];return o&&o[0]===e?(o[1]=t,this):(r(e,this._id,[e,t]),this)})),r(e,"_polyfill",!0),e}()}function i(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:P);var L=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t,r,i;i=function(){var e,t,r,i=Object.prototype.toString,o=void 0!==n?function(e){return n(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function a(e,n){r.add(e,n),t||(t=o(r.drain))}function l(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)c(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}
vendor: 4,791 bytes, line 1
1function c(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=l(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function d(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=l(e))?a((function(){var r=new f(n);try{t.call(e,(function(){d.apply(r,arguments)}),(function(){u.apply(r,arguments)}))}catch(e){u.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&a(s,n))}catch(e){u.call(new f(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(s,t))}function p(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then((function(e){n(i,e)}),r)}(i)}function f(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t})),t.chain.push(r),0!==t.state&&a(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){d.call(t,e)}),(function(e){u.call(t,e)}))}catch(e){u.call(t,e)}}r=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,o){r=new i(t,o),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var v=e({},"constructor",m,!1);return m.prototype=v,e(v,"__NPO__",0,!1),e(m,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(m,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(m,"all",(function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,o=Array(i),a=0;p(t,e,(function(e,t){o[e]=t,++a===i&&n(o)}),r)}))})),e(m,"race",(function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");p(t,e,(function(e,t){n(t)}),r)}))})),m},(r=P)[t="Promise"]=r[t]||i(),e.exports&&(e.exports=r[t])})),O=new WeakMap;function M(e,t,n){var r=O.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),O.set(e.element,r)}function R(e,t){return(O.get(e.element)||{})[t]||[]}function B(e,t,n){var r=O.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],O.set(e.element,r),!0;var i=r[t].indexOf(n);return-1!==i&&r[t].splice(i,1),O.set(e.element,r),r[t]&&0===r[t].length}function j(e,t){var n=O.get(e);O.set(t,n),O.delete(e)}function V(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function D(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var r={method:t};void 0!==n&&(r.value=n);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}}function N(e,t){var n,r=[];if((t=V(t)).event){if("error"===t.event)R(e,t.data.method).forEach((function(n){var r=new Error(t.data.message);r.name=t.data.name,n.reject(r),B(e,t.data.method,n)}));r=R(e,"event:".concat(t.event)),n=t.data}else if(t.method){var i=function(e,t){var n=R(e,t);if(n.length<1)return!1;var r=n.shift();return B(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach((function(t){try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}}))}var q=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","url","vimeo_logo","volume","watch_full_video","width"];function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q.reduce((function(t,n){var r=e.getAttribute("data-vimeo-".concat(n));return(r||""===r)&&(t[n]=""===r?1:r),t}),t)}function U(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");
1if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(r,i){if(!A(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var o="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(e));for(var a in t)t.hasOwnProperty(a)&&(o+="&".concat(a,"=").concat(encodeURIComponent(t[a])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",o,!0),l.onload=function(){if(404!==l.status)if(403!==l.status)try{var t=JSON.parse(l.responseText);if(403===t.domain_status_code)return U(t,n),void i(new Error("“".concat(e,"” is not embeddable.")));r(t)}catch(e){i(e)}else i(new Error("“".concat(e,"” is not embeddable.")));else i(new Error("“".concat(e,"” was not found.")))},l.onerror=function(){var e=l.status?" (".concat(l.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},l.send()}))}var H={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(v,e);var t,n,r,a,c,m=(t=v,n=h(),function(){var e,r=p(t);if(n){var i=p(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return g(this,e)});function v(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return s(this,v),u(y(n=m.call(this)),"logger",void 0),u(y(n),"speedAdjustment",0),u(y(n),"adjustSpeed",function(){var e=l(o().mark((function e(t,r){var i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.speedAdjustment!==r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=n.speedAdjustment,e.t2=e.t0-e.t1,e.t3=r,i=e.t2+e.t3,n.log("New playbackRate:  ".concat(i)),e.next=12,t.setPlaybackRate(i);case 12:n.speedAdjustment=r;case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),n.logger=a,n.init(t,e,i(i({},H),r)),n}return d(v,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(c=l(o().mark((function e(t,n,r){var i,a,l,s=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==r.role){e.next=10;break}return e.next=5,this.updatePlayer(t,n,r);case 5:i=x(t,"change",(function(){return s.updatePlayer(t,n,r)})),a=this.maintainPlaybackPosition(t,n,r),this.addEventListener("disconnect",(function(){a.cancel(),i.cancel()})),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:l=x(n,["seeked","play","pause","ratechange"],(function(){return s.updateTimingObject(t,n)}),"on","off"),this.addEventListener("disconnect",(function(){return l.cancel()}));case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"updateTimingObject",value:(a=l(o().mark((function e(t,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}}),e)}))),function(e,t){return a.apply(this,arguments)})},{key:"updatePlayer",value:(r=l(o().mark((function e(t,n,r){var i,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.query(),a=i.position,s=i.velocity,"number"==typeof a&&n.setCurrentTime(a),"number"!=typeof s){e.next=25;break}if(0!==s){e.next=11;break}return e.next=6,n.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(!(s>0)){e.next=25;break}return e.next=14,n.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,n.play().catch(function(){var e=l(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"!==t.name||!r.autoPlayMuted){e.next=5;break}return e.next=3,n.setMuted(!0);case 3:return e.next=5,n.play().catch((function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,n,r);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=s,e.t2===e.t3){e.next=25;break}n.setPlaybackRate(s);case 25:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,n){var r=this,i=n.allowedDrift,a=n.maxAllowedDrift,s=n.minCheckInterval,c=n.maxRateAdjustment,d=n.maxTimeToCatchUp,u=1e3*Math.min(d,Math.max(s,a)),p=function(){var n=l(o().mark((function n(){var l,s,u,p,f;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,l=n.t2-n.t3,s=Math.abs(l),r.log("Drift: ".concat(l)),!(s>a)){n.next=22;break}return n.next=18,r.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),r.log("Resync by currentTime"),n.next=29;break;case 22:if(!(s>i)){n.next=29;break}
1return f=(u=s/d)<(p=c)?(p-u)/2:p,n.next=28,r.adjustSpeed(t,f*Math.sign(l));case 28:r.log("Resync by playbackRate");case 29:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),f=setInterval((function(){return p()}),u);return{cancel:function(){return clearInterval(f)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise((function(n){!function r(){e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})}()}))}}]),v}(v(EventTarget)),G=new WeakMap,Z=new WeakMap,Y={},J=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!_(t))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==t.nodeName){var i=t.querySelector("iframe");
vendor: 6,393 bytes, line 1
1i&&(t=i)}if("IFRAME"===t.nodeName&&!A(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(G.has(t))return G.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var o=new L((function(e,i){if(n._onMessage=function(t){if(A(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var r=V(t.data);if(r&&"error"===r.event&&r.data&&"ready"===r.data.method){var o=new Error(r.data.message);return o.name=r.data.name,void i(o)}var a=r&&"ready"===r.event,l=r&&"ping"===r.method;if(a||l)return n.element.setAttribute("data-ready","true"),void e();N(n,r)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var o=F(t,r);z(T(o),o,t).then((function(e){var r=U(e,t);return n.element=r,n._originalElement=t,j(t,r),G.set(n.element,n),e})).catch(i)}}));if(Z.set(this,o),G.set(this.element,this),"IFRAME"===this.element.nodeName&&D(this,"ping"),Y.isEnabled){var a=function(){return Y.exit()};this.fullscreenchangeHandler=function(){Y.isFullscreen?M(n,"event:exitFullscreen",a):B(n,"event:exitFullscreen",a),n.ready().then((function(){D(n,"fullscreenchange",Y.isFullscreen)}))},Y.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t;return d(e,[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new L((function(r,i){return t.ready().then((function(){M(t,e,{resolve:r,reject:i}),D(t,e,n)})).catch(i)}))}},{key:"get",value:function(e){var t=this;return new L((function(n,r){return e=k(e,"get"),t.ready().then((function(){M(t,e,{resolve:n,reject:r}),D(t,e)})).catch(r)}))}},{key:"set",value:function(e,t){var n=this;return new L((function(r,i){if(e=k(e,"set"),null==t)throw new TypeError("There must be a value to set.");return n.ready().then((function(){M(n,e,{resolve:r,reject:i}),D(n,e,t)})).catch(i)}))}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===R(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch((function(){})),M(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");B(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch((function(e){}))}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=Z.get(this)||new L((function(e,t){t(new Error("Unknown player. Probably unloaded."))}));return L.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Y.isEnabled?Y.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Y.isEnabled?Y.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Y.isEnabled?L.resolve(Y.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new L((function(t){if(Z.delete(e),G.delete(e.element),e._originalElement&&(G.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),Y.isEnabled&&Y.off("fullscreenchange",e.fullscreenchangeHandler),t()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return L.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new L((function(e,t){return t(new TypeError("Argument must be an array."))}));var t=new L((function(e){return e(null)})),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return L.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
1},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(t=l(o().mark((function e(t,n){var r,i=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return r=new W(this,t,n),D(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",(function(){return D(i,"notifyTimingObjectDisconnect")})),e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}();w||(Y=function(){var e=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,r=t.length,i={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise((function(r,i){var o=function e(){n.off("fullscreenchange",e),r()};n.on("fullscreenchange",o);var a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(o).catch(i)}))},exit:function(){return new Promise((function(t,r){if(n.isFullscreen){var i=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",i);var o=document[e.exitFullscreen]();o instanceof Promise&&o.then(i).catch(r)}else t()}))},on:function(e,n){var r=t[e];r&&document.addEventListener(r,n)},off:function(e,n){var r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach((function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=F(e);z(T(t),t,e).then((function(t){return U(t,e)}
1)).catch(n)}catch(e){n(e)}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var t=function(t){if(A(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){n[r].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}};window.addEventListener("message",t)}}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var t=function(t){if(A(t.origin)){var n=V(t.data);if(n&&"ready"===n.event)for(var r=e.querySelectorAll("iframe"),i=0;i<r.length;i++){var o=r[i],a=o.contentWindow===t.source;if(E(o.src)&&a)new J(o).callMethod("appendVideoMetadata",window.location.href)}}};window.addEventListener("message",t)}}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
1=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))},n=function(n){if(A(n.origin)){var r=V(n.data);if(r&&"ready"===r.event)for(var i=e.querySelectorAll("iframe"),o=function(){var e=i[a],r=e.contentWindow===n.source;if(E(e.src)&&r){var o=new J(e);o.getVideoId().then((function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);o.setCurrentTime(n)}})).catch(t)}},a=0;a<i.length;a++)o()}};window.addEventListener("message",n)}}()),t.a=J}).call(this,n("yLpj"),n("URgk").setImmediate)},kePY:function(e,t,n){"use strict";n.r(t);var r={set:function(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"},get:function(e){try{for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""}catch(e){return""}},remove:function(e){var t=new Date;t.setTime(t.getTime()-1e4);var n="expires="+t.toUTCString();document.cookie=e+"=;"+n+";path=/"}},i=0,o="",a=!0,l={vendorId:878,init:function(){var e=this;if(!this.hasCMP())return i=0,o="",void(a=!0);__tcfapi("addEventListener",2,(function(t,n){if(n&&("useractioncomplete"===t.eventStatus||"tcloaded"===t.eventStatus)){if(i=t.gdprApplies?1:0,o=encodeURIComponent(t.tcString||""),!1===t.gdprApplies)return e.setConsent(!0);var r=!!(t.purpose&&t.purpose.consents&&void 0!==t.purpose.consents[1]&&t.purpose.consents[1]),a=!!(t.vendor&&t.vendor.consents&&void 0!==t.vendor.consents[e.vendorId]&&t.vendor.consents[e.vendorId]);
1return r&&a?e.setConsent(!0):e.setConsent(!1)}}))},setConsent:function(e){a=e},hasCMP:function(){return"undefined"!=typeof __tcfapi},getGdpr:function(){return i},getConsentString:function(){return o},hasConsent:function(){return a}},s=n("hMnm");function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={getUrl:function(){var e=document.querySelector('link[rel="canonical"]');return e&&this.validURL(e.href)?this.clearCommonParams(e.href):(e=document.querySelector('meta[property="og:url"]'))&&this.validURL(e.content)?this.clearCommonParams(e.content):""},clearCommonParams:function(e){try{var t=new URL(e),n=t.searchParams;d(n.keys()).forEach((function(e){(e.startsWith("utm_")||"fbclid"===e)&&n.delete(e)}));var r=t.origin+t.pathname,i=n.toString();return i&&(r+="?"+i),r}catch(t){return console.error("Hibás URL:",e),e}},getTitle:function(){var e=document.querySelectorAll('meta[property="og:title"]')[0];return void 0===e?"":e.content},getDescription:function(){var e=document.querySelectorAll('meta[property="og:description"]')[0];return void 0===e?"":e.content},getArticleSection:function(){var e=document.querySelectorAll('meta[property="article:section"]')[0];return void 0!==e?e.content:null!==(e=this.extractArticleSectionFromJsonLD(document.querySelectorAll('script[type="application/ld+json"]')))?e:""},getPublishedAt:function(){var e=document.querySelectorAll('meta[property="article:published_time"]')[0];return void 0!==e||void 0!==(e=document.querySelectorAll('meta[property="og:date"]')[0])||void 0!==(e=document.querySelectorAll('meta[property="article:published"]')[0])||void 0!==(e=document.querySelectorAll('meta[name="date"]')[0])||void 0!==(e=document.querySelectorAll('meta[name="publish-date"]')[0])?e.content:(e=this.extractDateFromJsonLD(document.querySelectorAll('script[type="application/ld+json"]')))||(e=this.extractDateFromMicroData(document.querySelectorAll("[itemscope]")))?e:void 0!==(e=document.querySelectorAll('[property="datePublished"]')[0])||void 0!==(e=document.querySelectorAll('[property="dateCreated"]')[0])?e.content:""},validURL:function(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},keywords:{excludedWords:["a","az","egy","és","igen","nem","mert","két","három","négy","öt","hat","hét","nyolc","kilenc","tíz","száz","millió","százezer","hogy","ezek","azok","így","úgy","megszólalt","több","mint","után","előtt","utána","előtte","egyik","másik","ön","első","amit","kell","kellett","volna","itt","ott","bent","kint","kis","nagy","óriási","hatalmas","utolsó","első","második","harmadik","jó","rossz","teli","ilyen","olyan","mit","most","van","de","néhány","kiderült","bejelentették","belépés","kilépés","regisztráció","címkék","fel","le","lesz","ér","lefelé","miután","azután","esetleg","mivel","további"],keywords:[],extract:function(){try{this.add(this.getArticleTags(),2),this.add(this.getRelTags(),2),this.add(this.getAdvExclusionTags(),2),this.add(this.getMetaKeywords(),1
1),this.keywords.length<3&&(this.add(this.parseKeywords(f.getTitle()," ")),this.add(this.parseKeywords(f.getDescription()," ")))}catch(e){return}return this.sort(this.keywords).slice(0,9)},sort:function(e){var t=t=Object.keys(e);return t.sort((function(t,n){return e[n]-e[t]}))},add:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Array.isArray(e)&&e.forEach((function(n){void 0!==e[n]?f.keywords.keywords[n]+=t:f.keywords.keywords[n]=t}))},parseString:function(e){},getAdvExclusionTags:function(){try{if(!Array.isArray(window.exclusionTags))return[];var e=[];return window.exclusionTags.forEach((function(t){e=e.concat(f.keywords.parseKeywords(t))})),e}catch(e){return[]}},getArticleTags:function(){try{var e=[];return document.querySelectorAll('meta[property="article:tag"]').forEach((function(t){var n=t.getAttribute("content");if(!n)return[];e=e.concat(f.keywords.parseKeywords(n))})),e}catch(e){return[]}},getRelTags:function(){try{var e=[];return document.querySelectorAll('a[rel="tag"]').forEach((function(t){var n=t.textContent;if(!n)return[];e=e.concat(f.keywords.parseKeywords(n))})),e}catch(e){return[]}},getMetaKeywords:function(){try{var e=document.querySelectorAll('meta[name="keywords"]')[0];return void 0===e?[]:(e=e.getAttribute("content"))?this.parseKeywords(e):[]}catch(e){return[]}},parseKeywords:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=[];return e.split(t).forEach((function(e){(e=e.toLowerCase().trim().replace(/[&\/\\#+()$~%.'":*?,<>{}]/g,""))&&(f.keywords.excludedWords.includes(e)||isNaN(e)&&(e.length<3||n.push(e)))})),n}},containsRobotsOrRelatedBotMetaNoIndex:function(){return this.containsNoIndex("robots")||this.containsNoIndex("relatedbot")},containsMetaToken:function(e,t){var n=document.querySelector('meta[name="'+e+'"]');if(null==n||void 0===n.content||null===n.content)return!1;for(var r=n.content.split(","),i=0;i<r.length;i++)if(r[i].trim().toLowerCase()==t.toLowerCase())return!0;return!1},containsNoIndex:function(e){return this.containsMetaToken(e,"noindex")},shouldDisableAdsByMeta:function(){return!!this.containsMetaToken("relatedwidget","noads")||this.shouldDisableAdsByRtlNsfwFlag()},shouldDisableAdsByRtlNsfwFlag:function(){var e;if(!["rtl.hu","www.rtl.hu"].includes(window.location.hostname))return!1;var t=window.location.pathname.replace(/^\//,""),n="page/fetchPage:"+JSON.stringify({url:t}),r=null===(e=window.__INITIAL_STATE__)||void 0===e||null===(e=e.$cache)||void 0===e||null===(e=e.records)||void 0===e||null===(e=e[n])||void 0===e||null===(e=e.result)||void 0===e?void 0:e.data;return Object.values((null==r?void 0:r.adoKeys)||{}).some((function(e){var t,n=null==e||null===(t=e.vars)||void 0===t?void 0:t.nsfw_flag;return 1===n||"1"===n}))},isPaywallByMeta:function(){var e=document.querySelector('meta[name="paywall"]');return e&&"true"===e.getAttribute("content")},isPaywallBySchema:function(){var e=document.querySelector('meta[itemprop="isAccessibleForFree"]');if(e&&"false"===e.getAttribute("content"))return!0;var t,n=c(document.querySelectorAll('script[type="application/ld+json"]'));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=void 0;try{i=JSON.parse(r.textContent)}catch(e){continue}if(i)if(Array.isArray(i)){var o,a=c(i);try{for(a.s();!(o=a.n()).done;){var l=o.value;if(this.checkIsAccessibleForFree(l))return!0}}catch(e){a.e(e)}finally{a.f()}}else if(this.checkIsAccessibleForFree(i))return!0}}catch(e){n.e(e)}finally{n.f()}return!1},checkIsAccessibleForFree:function(e){if(e.hasOwnProperty("isAccessibleForFree"))return!1===e.isAccessibleForFree;if(e["@graph"]){var t,n=c(e["@graph"]);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(this.checkIsAccessibleForFree(r))return!0}}catch(e){n.e(e)}finally{n.f()}}return!1},extractDateFromJsonLD:function(e){try{var t,n=c(e);try{for(n.s();!(t=n.n()).done;){var r=t.value.textContent.trim();r=r.replace(/[\u0000-\u001F\u007F]+/g,"").replace(/&quot;/g,'"').replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/\\([rnft])/g,"\\$1");var i=void 0;try{i=JSON.parse(r)}
1catch(e){console.warn("Invalid JSON-LD skipped:",r.slice(0,100));continue}var o=this.getSchemaDateValue(i);if(o)return o;if(i["@graph"]){var a,l=c(i["@graph"]);try{for(l.s();!(a=l.n()).done;){var s=a.value,d=this.getSchemaDateValue(s);if(d)return d}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){n.e(e)}finally{n.f()}}catch(e){console.error("JSON-LD parse error:",e)}return null},getSchemaDateValue:function(e){return e&&(e.datePublished||e.dateCreated)||null},extractDateFromMicroData:function(e){var t=null,n=[];try{e.forEach((function(e,t){var r={type:[e.getAttribute("itemtype")],properties:{}};e.querySelectorAll("[itemprop]").forEach((function(e){if(r.properties[e.getAttribute("itemprop")]=[e.content||e.textContent||e.src],e.matches("[itemscope]")&&e.matches("[itemprop]")){var t={type:[e.getAttribute("itemtype")],properties:{}};e.querySelectorAll("[itemprop]").forEach((function(e){t.properties[e.getAttribute("itemprop")]=[e.content||e.textContent||e.src]})),r.properties[e.getAttribute("itemprop")]=[t]}})),n.push(r)}));for(var r=0,i=n;r<i.length;r++){var o=i[r];if(void 0!==o.properties.datePublished){t=o.properties.datePublished[0];break}if(void 0!==o.properties.dateCreated){t=o.properties.dateCreated[0];break}}}catch(e){}return t},extractArticleSectionFromJsonLD:function(e){try{var t,n=c(e);try{for(n.s();!(t=n.n()).done;){var r=t.value.textContent;
1r=(r=r.replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")).replace(/[\u0000-\u0019]+/g,"");var i=JSON.parse(r)["@graph"];if(void 0!==i){var o=i.find((function(e){return void 0!==e.articleSection}));if(void 0!==o.articleSection)return Array.isArray(o.articleSection)?o.articleSection.join(", "):o.articleSection}else if(void 0!==(i=JSON.parse(r)).articleSection)return i.articleSection}}catch(e){n.e(e)}finally{n.f()}}catch(e){}return null}},h=f;var m=function(){return new Promise((function(e){var t=document.createElement("div");t.className="ads ad-banner ad-unit ad-slot",t.style.cssText="width:1px;height:1px;position:absolute;left:-10000px;top:-10000px;",document.body.appendChild(t),setTimeout((function(){null===t.offsetParent||0===t.offsetHeight||0===t.clientHeight?e(!0):e(!1),t.remove()}),100)}))},v={get:function(){return window._rltdPageViewId=window._rltdPageViewId||this.generate(),window._rltdPageViewId},generate:function(){for(var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".split(""),t="",n=0;n<12;n++)t+=e[Math.floor(Math.random()*e.length)];return t}},y={hu:{ad:"hirdetés",sponsored:"szponzorált",learn_more:"Tudj meg többet!",related_article:"Kapcsolódó cikk",watch_on_youtube:"Megtekintés Youtube-on"},en:{ad:"ad",sponsored:"sponsored",learn_more:"Learn more!",related_article:"Related article",watch_on_youtube:"Watch on YouTube"},hr:{ad:"oglas",sponsored:"sponzorirano",learn_more:"Saznajte vise!",related_article:"Povezani clanak",watch_on_youtube:"Pogledaj na YouTubeu"},mk:{ad:"реклама",sponsored:"спонзорирано",learn_more:"Дознај повеќе!",related_article:"Поврзана статија",watch_on_youtube:"Гледај на YouTube"},rs:{ad:"oglas",sponsored:"sponzorisano",learn_more:"Saznajte vise!",related_article:"Povezani clanak",watch_on_youtube:"Pogledaj na YouTube-u"},ro:{ad:"reclamă",sponsored:"sponsorizat",learn_more:"Află mai multe!",related_article:"Articol asociat",watch_on_youtube:"Vezi pe YouTube"}};var g={translate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hu",n=y[t];return n?n[e]||e:(console.warn("Translations for the specified language (".concat(t,") cannot be found.")),e)}};function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement(e),r=0,i=Object.entries(t);r<i.length;r++){var o=b(i[r],2),a=o[0],l=o[1];n.setAttribute(a,l)}return n},_=function(e){var t=parseInt(e,10),n=Math.floor(t/60),r=t%60;return"".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0"))},C=function(){var e="ontouchstart"in window,t=navigator.maxTouchPoints>0;return e||t},A=function(e){if(isNaN(e)||e<0)return"00:00";var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);return(t>0?String(t).padStart(2,"0")+":":"")+(String(n).padStart(2,"0")+":")+String(r).padStart(2,"0")},E=new Set,T=!1;function x(e){var t=null==e?void 0:e.data;t&&"related-omid-viewable-external-track"===t.type&&t.externalTrackUrl&&function(e){var t=function(e){if("string"!=typeof e)return"";return e.replace(/&amp;/g,"&").replace(/&#38;/g,"&").replace(/\u0026/g,"&")}(e);if(!t||E.has(t))return;E.add(t);var n=document.createElement("img");n.src=t,n.alt="",n.width=1,n.height=1,n.setAttribute("aria-hidden","true"),n.style.cssText="position:absolute;
1left:-9999px;top:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(n)}(t.externalTrackUrl)}var S={init:function(){T||"undefined"==typeof window||(T=!0,window.addEventListener("message",x))}};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=O(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function L(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(){R=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),l=new P(r||[]);return i(a,"_invoke",{value:E(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",f="executing",h="completed",m={};function v(){}function y(){}function g(){}var b={};c(b,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(L([])));k&&k!==n&&r.call(k,a)&&(b=k);var _=g.prototype=v.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(i,o,a,l){var s=u(e[i],e,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==I(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=p;return function(o,a){if(i===f)throw Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=T(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;var c=u(t,n,r);if("normal"===c.type){if(i=r.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=h,r.method="throw",r.arg=c.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=u(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;
1return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(I(t)+" is not iterable")}return y.prototype=g,i(_,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:y,configurable:!0}),y.displayName=c(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},C(A.prototype),c(A.prototype,l,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new A(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(_),c(_,s,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=L,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function B(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){B(o,r,i,a,l,"next",e)}function l(e){B(o,r,i,a,l,"throw",e)}a(void 0)}))}}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F(r.key),r)}}function N(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q(e,t,n){return(t=F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e){var t=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==I(t)?t:t+""}var U={initialized:!1,container:null,inner:null,close:null,config:{},init:function(e){this.config=e,S.init()},setup:function(){this.initialized||(this.initialized=!0,this.inner=k("div",{id:"rltd_r_video_inner"}),this.container=k("div",{id:"rltd_r_video_container",style:"display:none;"}),this.close=k("div",{class:"rltd_close_video",style:"display:none;"}),this.close.innerHTML="BEZÁRÁS",this.inner.appendChild(this.close),this.container.appendChild(this.inner),document.body.appendChild(this.container),this.loadCss("/css/rvideo.css?v=36"),console.log("[related] video container created"))},show:function(){this.container.style.display="flex"},clear:function(){this.inner.innerHTML=""},hide:function(){this.container.style.display="none"},hideAndClear:function(){this.hide(),this.clear()},baseUrl:function(){return this.config.dev?this.config.dev_siteURL:this.config.siteURL},widgetUrl:function(){return this.config.dev?this.config.dev_widgetURL:this.config.widgetURL},loadShakaAndIMA:function(){return this._shakaPromise||(this._shakaPromise=new Promise((function(e,t){if(window.shaka&&window.google&&window.google.ima)return console.log("[related] shaka + ima already loaded"),e();var n=["https://cdnjs.cloudflare.com/ajax/libs/shaka-player/4.10.10/shaka-player.ui.min.js","https://imasdk.googleapis.com/js/sdkloader/ima3.js"],r=0,i=function(){++r===n.length&&(console.log("[related] shaka + ima loaded"),e())},o=function(e){console.error("[related] script load failed",e),t(e)};
1n.forEach((function(e){var t=document.createElement("script");t.src=e,t.async=!0,t.onload=i,t.onerror=o,document.head.appendChild(t)}))}))),this._shakaPromise},loadCss:function(e){var t=document.createElement("link");t.href=this.baseUrl()+e,t.type="text/css",t.rel="stylesheet",document.head.appendChild(t),console.log("[related] video css loaded")},getContainer:function(){return this.container},getInner:function(){return this.inner},getClose:function(){return this.close},sendBackMaxZindexedElements:function(){Array.from(document.querySelectorAll(".adsbygoogle,.demand-supply__sd")).forEach((function(e){2147483647==e.style["z-index"]&&(e.style.zIndex=2147483646)}))},hideExitPopupContainer:function(){var e=document.getElementsByClassName("extpp-container");1===e.length&&(e[0].style.display="none")},disableCloseButton:function(){this.close.style.display="none"},enableCloseButton:function(){this.close.style.display="block"}},z=function(){return N((function e(t){var n=this;V(this,e),q(this,"vast",null),q(this,"closeLayer",(function(e){e&&e.preventDefault(),n.video&&n.video.pause(),U.hideAndClear()})),q(this,"bindCloseButton",(function(){U.getClose().addEventListener("click",(function(e){return n.closeLayer(e)}))})),q(this,"unbindCloseButton",(function(){U.getClose().removeEventListener("click",(function(e){return n.closeLayer(e)}))})),q(this,"play",(function(){n.started=!0,n.adRequested=!0,n.resetRelatedAdState(),n.hideRelatedEndCard(),n.setPlayButtonLoading(!0),n.armAdStartTimeout(),n.adDisplayContainer.initialize(),n.requestPreroll()})),q(this,"isInlineAdOnlyMode",(function(){return!n.inLayer&&!!n.adOnlyInline})),q(this,"ensureInlineAdOnlySentinel",(function(){var e;n.isInlineAdOnlyMode()&&!n._adOnlySentinel&&null!==(e=n.wrapper)&&void 0!==e&&e.parentNode&&(n._adOnlySentinel=document.createElement("div"),Object.assign(n._adOnlySentinel.style,{width:"100%",height:"1px",pointerEvents:"none",opacity:"0"}),n._adOnlySentinel.style.setProperty("padding","0","important"),n.wrapper.parentNode.insertBefore(n._adOnlySentinel,n.wrapper))})),q(this,"setInlineAdOnlyShellVisibility",(function(e){n.isInlineAdOnlyMode()&&n.wrapper&&Object.assign(n.wrapper.style,e?{position:"",left:"",top:"",width:"",pointerEvents:"",opacity:"",backgroundColor:""}
1:{position:"absolute",left:"-99999px",top:"0",width:"100%",pointerEvents:"none",opacity:"0",backgroundColor:"transparent"})})),q(this,"setInlinePlayerVisibility",(function(e){n.isInlineAdOnlyMode()&&(n.setInlineAdOnlyShellVisibility(e),n.container&&(n.container.style.visibility=e?"visible":"hidden",n.container.style.pointerEvents=e?"auto":"none",n.container.style.opacity=e?"1":"0",e||(n.playBtn&&(n.playBtn.style.display="none"),n.durationElement&&(n.durationElement.style.display="none"),n.unmuteBtn&&(n.unmuteBtn.style.display="none"),n.ctaBtn&&n.ctaBtn.style.setProperty("display","none","important"),n.timerElement&&(n.timerElement.style.display="none"))))})),q(this,"resetRelatedAdState",(function(){n.clearRelatedAdCta(),n._isRelatedAd=!1,n._relatedAdId=null,n._relatedEndCardNonce=null,n._showRelatedEndCard=!1,n._relatedEndCardRequested=!1,n._relatedEndCardPromise=null,n._relatedEndCardData=null})),q(this,"getRelatedAdMeta",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").split("-");return"related"===t[0]&&t[1]?{isRelatedAd:!0,adId:t[1],endCardNonce:t[3]||null,showEndCard:"1"===t[2],cta:n.decodeRelatedAdCta(t.slice(4).join("-"))}:{isRelatedAd:!1,adId:null,endCardNonce:null,showEndCard:!1,cta:null}})),q(this,"decodeRelatedAdCta",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return null;try{var t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(4*Math.ceil(t.length/4),"=");return JSON.parse(window.atob(n))}catch(e){return console.warn("[related] unable to decode preroll CTA configuration",e),null}})),q(this,"normalizeRelatedAdCtaColor",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#30a7aa";return"string"==typeof e&&/^#[0-9a-f]{6}$/i.test(e)?e:t})),q(this,"formatRelatedAdCtaText",(function(e){var t="string"==typeof e&&e.trim()?e.trim().replace(/\s*(?:»|>>>)+\s*$/,""):"További információk";return"".concat(t," »")})),q(this,"configureRelatedAdCta",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(n.ctaBtn){var t=n.formatRelatedAdCtaText(null==e?void 0:e.text),r="string"==typeof(null==e?void 0:e.domain)?e.domain.trim():"",i=Number.parseInt(null==e?void 0:e.delay,10);n.ctaBtn.replaceChildren();var o=document.createElement("span");if(o.className="rltd-ad-cta-btn__label",o.textContent=t,n.ctaBtn.appendChild(o),r){var a=document.createElement("span");a.className="rltd-ad-cta-btn__domain",a.textContent="(".concat(r,")"),n.ctaBtn.appendChild(a)}n.ctaBtn.setAttribute("aria-label",t),n.ctaBtn.style.setProperty("--rltd-ad-cta-color",n.normalizeRelatedAdCtaColor(null==e?void 0:e.color)),n.ctaBtn.style.setProperty("--rltd-ad-cta-text-color",n.normalizeRelatedAdCtaColor(null==e?void 0:e.textColor,"#ffffff")),n._relatedAdCtaVisibleAt=Date.now()+(Number.isFinite(i)&&i>0?1e3*i:0),n._relatedAdCtaPulseEnabled=!0===(null==e?void 0:e.pulse)||1===(null==e?void 0:e.pulse)}})),q(this,"showRelatedAdCta",(function(){if(n.ctaBtn&&n._isRelatedAd&&!n.isMobile()&&!n._docked){clearTimeout(n._relatedAdCtaShowTimer);var e=Math.max((n._relatedAdCtaVisibleAt||Date.now())-Date.now(),0);n._relatedAdCtaShowTimer=setTimeout((function(){n.isAdPlaying&&n._isRelatedAd&&!n._docked&&(n.ctaBtn.classList.remove("is-pulsing"),n.ctaBtn.style.setProperty("display","inline-flex","important"),n._relatedAdCtaPulseEnabled&&(n.ctaBtn.offsetWidth,n.ctaBtn.classList.add("is-pulsing")))}),e)}})),q(this,"clearRelatedAdCta",(function(){clearTimeout(n._relatedAdCtaShowTimer),n._relatedAdCtaShowTimer=null,n._relatedAdCtaVisibleAt=null,n._relatedAdCtaPulseEnabled=!1,n.ctaBtn&&(n.ctaBtn.classList.remove("is-pulsing"),n.ctaBtn.style.setProperty("display","none","important"))})),q(this,"getInlineVideoWrapper",(function(){var e;return(null===(e=n.container)||void 0===e?void 0:e.closest(".".concat(n.config.cssid,"_inline_video_wrapper")))||null})),q(this,"getInlineVideoTitleBlock",(function(){var e;return(null===(e=n.getInlineVideoWrapper())||void 0===e?void 0:e.querySelector(".".concat(n.config.cssid,"_video_title_outer")))||null})),q(this,"getRelatedEndCardElement",(function(){var e;return(null===(e=n.getInlineVideoWrapper())||void 0===e?void 0:e.querySelector(".rltd-video-endcard"))||null})),q(this,"getRelatedArticleCtaElement",(function(){var e;return(null===(e=n.getInlineVideoTitleBlock())||void 0===e?void 0:e.querySelector(".rltd-video-related-article"))||null})),q(this,"getRelatedArticleVideoCtaElement",(function(){var e;return(null===(e=n.container)||void 0===e?void 0:e.querySelector(".rltd-video-related-article__video-cta"))||null})),q(this,"getOriginalVideoUrl",(function(){return n.contentCtaData.originalUrl||""})),q(this,"getRelatedArticleTitle",(function(){return n.contentCtaData.relatedArticleTitle||""})),q(this,"getRelatedArticleUrl",(function(){return n.contentCtaData.relatedArticleUrl||""})),q(this,"getContentCtaType",(function(){return n.contentCtaData.ctaType||"0"})),q(this,"getContentCtaText",(function(){return n.contentCtaData.ctaText||""})),q(this,"getRelatedArticleLabel",(function(){return g.translate("related_article",n.config.lang||"hu")})),q(this,"getYoutubeCtaText",(function(){return g.translate("watch_on_youtube",n.config.lang||"hu")})),q(this,"hideRelatedArticleVideoCta",(function(){var e=n.getRelatedArticleVideoCtaElement();n._relatedArticleVideoCtaShowTimer&&(clearTimeout(n._relatedArticleVideoCtaShowTimer),n._relatedArticleVideoCtaShowTimer=null),n._relatedArticleVideoCtaCollapseTimer&&(clearTimeout(n._relatedArticleVideoCtaCollapseTimer),n._relatedArticleVideoCtaCollapseTimer=null),e&&(e.classList.remove("is-expanded"),e.classList.remove("is-visible"))})),q(this,"showRelatedArticleVideoCta",(function(){var e,t=n.getRelatedArticleVideoCtaElement();!t||null!==(e=n.container)&&void 0!==e&&e.classList.contains("ad-playing")||(n._relatedArticleVideoCtaShowTimer&&(clearTimeout(n._relatedArticleVideoCtaShowTimer),n._relatedArticleVideoCtaShowTimer=null),n._relatedArticleVideoCtaCollapseTimer&&(clearTimeout(n._relatedArticleVideoCtaCollapseTimer),n._relatedArticleVideoCtaCollapseTimer=null),n._relatedArticleVideoCtaShowTimer=setTimeout((function(){n._relatedArticleVideoCtaShowTimer=null,requestAnimationFrame((function(){t.classList.add("is-visible"),requestAnimationFrame((function(){t.classList.add("is-expanded"),n.isMobile()&&(n._relatedArticleVideoCtaCollapseTimer=setTimeout((function(){t.classList.remove("is-expanded"),n._relatedArticleVideoCtaCollapseTimer=null}),5e3))}))}))}),2e3))})),q(this,"updateRelatedArticleVideoCtaSize",(function(e,t){})),q(this,"bindRelatedArticleVideoCtaInteraction",(function(e){if(e&&"1"!==e.dataset.interactionBound){var t=function(e){e.stopPropagation()};e.addEventListener("pointerdown",t),e.addEventListener("mousedown",t),e.addEventListener("click",t),e.addEventListener("touchstart",t,{passive:!1}),e.addEventListener("touchend",(function(t){t.preventDefault(),t.stopPropagation();var n=e.getAttribute("href");if(n){var r=window.open(n,"_blank","noopener");r&&(r.opener=null)}}),{passive:!1}),e.dataset.interactionBound="1"}})),q(this,"renderRelatedArticleCta",(function(){if(!n.inLayer&&!n.isInlineAdOnlyMode()){n.hideRelatedArticleVideoCta();var e=n.getInlineVideoTitleBlock(),t=n.getInlineVideoWrapper();if(e&&t){var r=n.getRelatedArticleTitle(),i=n.getRelatedArticleUrl(),o=n.getOriginalVideoUrl(),a=n.getContentCtaType(),l=n.getContentCtaText().trim(),s="1"===a,c="2"===a||"3"===a,d=Boolean(r&&i),u=n.getRelatedArticleCtaElement();u&&u.remove();var p="",f="",h="";if(s&&o&&(p=o,f=n.getYoutubeCtaText(),h="youtube"),d){var m=document.createElement("div");m.className="rltd-video-related-article";var v=document.createElement("a");v.className="rltd-video-related-article__link",v.href=i,v.target="_blank",v.rel="noopener";var y=document.createElement("span");y.className="rltd-video-related-article__label",y.textContent="".concat(n.getRelatedArticleLabel(),":");var g=document.createElement("span");g.className="rltd-video-related-article__title",g.textContent=r,v.appendChild(y),v.appendChild(g),m.appendChild(v),e.appendChild(m)}if(c&&d&&(p=i,f=l||n.getRelatedArticleLabel(),h="related"),p&&f){var b=n.getRelatedArticleVideoCtaElement();if(!b&&n.container&&((b=document.createElement("a")).className="rltd-video-related-article__video-cta",b.target="_blank",b.rel="noopener",n.container.appendChild(b)),b){b.href=p,b.classList.remove("rltd-video-related-article__video-cta--youtube","rltd-video-related-article__video-cta--related","is-visible"),b.classList.add("rltd-video-related-article__video-cta--".concat(h)),n.bindRelatedArticleVideoCtaInteraction(b);var w=b.querySelector(".rltd-video-related-article__video-cta-text");w||(b.textContent="",(w=document.createElement("span")).className="rltd-video-related-article__video-cta-text",b.appendChild(w)),w.textContent=f,n.updateRelatedArticleVideoCtaSize(b,w)}}}}})),q(this,"hideRelatedEndCard",(function(){var e=n.getRelatedEndCardElement();e&&e.classList.remove("is-visible")})),q(this,"showRelatedEndCard",(function(e){if(!n.inLayer&&n.container){var t=n.getInlineVideoWrapper(),r
1=n.getInlineVideoTitleBlock();if(t&&r&&null!=e&&e.ctlink&&null!=e&&e.title){var i=n.getRelatedEndCardElement();i||((i=document.createElement("a")).className="rltd-video-endcard rltd-video-endcard--link",i.innerHTML='\n                <div class="rltd-video-endcard__media">\n                    <img class="rltd-video-endcard__image" alt="">\n                </div>\n                <div class="rltd-video-endcard__content">\n                    <div class="rltd-video-endcard__label"></div>\n                    <div class="rltd_video_title rltd-video-endcard__title"></div>\n                    <div class="rltd_video_lead rltd-video-endcard__lead"></div>\n                </div>\n                <div class="rltd-video-endcard__actions">\n                    <span class="rltd-video-endcard__button"></span>\n                </div>\n            ',r.insertBefore(i,r.firstChild));var o=i.querySelector(".rltd-video-endcard__image"),a=i.querySelector(".rltd-video-endcard__label"),l=i.querySelector(".rltd-video-endcard__title"),s=i.querySelector(".rltd-video-endcard__lead"),c=i.querySelector(".rltd-video-endcard__button");o&&(o.src=e.image||"",o.alt=e.title||""),i.href=e.ctlink,i.target="_blank",i.rel="nofollow sponsored noopener",a&&(a.textContent=g.translate("ad",n.config.lang)),l&&(l.textContent=e.title||""),s&&(s.textContent=e.lead||"",e.lead?s.style.removeProperty("display"):s.style.display="none"),c&&(c.href=e.ctlink,c.textContent=e.ctaText||""),requestAnimationFrame((function(){requestAnimationFrame((function(){return i.classList.add("is-visible")}))}))}}})),q(this,"fetchRelatedEndCard",(function(){return!n.inLayer&&n._isRelatedAd&&n._relatedAdId&&n._relatedEndCardNonce&&n._showRelatedEndCard?n._relatedEndCardData?Promise.resolve(n._relatedEndCardData):(n._relatedEndCardPromise||(n._relatedEndCardRequested=!0,n._relatedEndCardPromise=j(R().mark((function e(){var t,r,i,o;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=n.config.dev?n.config.dev_widgetURL:n.config.widgetURL,r=new URLSearchParams({aid:n._relatedAdId,wid:n.config.id||"",uuid:n.config.uuid||"",nonce:n._relatedEndCardNonce}),e.next=5,fetch("".concat(t,"/video/endcard?").concat(r.toString()),{credentials:"omit"});case 5:if((i=e.sent).ok){e.next=8;break}return e.abrupt("return",null);case 8:return e.next=10,i.json();case 10:if((o=e.sent)&&o.ctlink&&o.title){e.next=13;break}return e.abrupt("return",null);case 13:return n._relatedEndCardData=o,e.abrupt("return",o);case 17:return e.prev=17,e.t0=e.catch(0),console.error("[related] endcard fetch failed",e.t0),e.abrupt("return",null);case 21:return e.prev=21,n._relatedEndCardPromise=null,e.finish(21);case 24:case"end":return e.stop()}}),e,null,[[0,17,21,24]])})))()),n._relatedEndCardPromise):Promise.resolve(null)})),q(this,"onRelatedAdFinished",(function(){n._isRelatedAd&&n._showRelatedEndCard&&n.fetchRelatedEndCard().then((function(e){e&&n.showRelatedEndCard(e)}))})),q(this,"closeInlineAdOnlySlot",(function(){n.isInlineAdOnlyMode()&&n.wrapper&&(n._adOnlySentinel&&(n._adOnlySentinel.remove(),n._adOnlySentinel=null),n.releaseActiveDockedPlayer(),n.wrapper.innerHTML="")})),q(this,"getActiveDockedPlayer",(function(){return window.__rltdActiveDockedPlayer||null})),q(this,"setActiveDockedPlayer",(function(e){window.__rltdActiveDockedPlayer=e||null})),q(this,"releaseActiveDockedPlayer",(function(){window.__rltdActiveDockedPlayer===n&&(window.__rltdActiveDockedPlayer=null)})),q(this,"forceCloseDockedPlayer",(function(){n._stickyDisabled=!0,n.releaseActiveDockedPlayer(),n.setDocked(!1),n.destroyStickyObserver()})),q(this,"claimDockedPlayerSlot",(function(){var e=n.getActiveDockedPlayer();e&&e!==n&&"function"==typeof e.forceCloseDockedPlayer&&e.forceCloseDockedPlayer(),n.setActiveDockedPlayer(n)})),q(this,"initAdVisibilityObserver",(function(){n.container&&n.adsManager&&(n._adVisibilityObserver||(n._adVisibilityObserver=new IntersectionObserver((function(e){e.forEach((function(e){var t,r;if(n.isAdPlaying&&n.adsManager){var i=null===(t=(r=n.adsManager).getRemainingTime)||void 0===t?void 0:t.call(r);if(!("number"==typeof i&&i<=0))if(e.isIntersecting)try{n.adsManager.resume(),console.log("[related] ad resumed (in viewport)")}catch(e){}else try{n.adsManager.pause(),console.log("[related] ad paused (out of viewport)")}catch(e){}}}))}),{threshold:.1}),n._adVisibilityObserver.observe(n.container)))})),q(this,"destroyAdVisibilityObserver",(function(){n._adVisibilityObserver&&n.container&&(n._adVisibilityObserver.unobserve(n.container),n._adVisibilityObserver.disconnect()),n._adVisibilityObserver=null})),q(this,"getAspectRatio",(function(){switch((n.orientation||"").toLowerCase()){case"portrait":return n.inLayer?"9 / 16":"16 / 9";case"square":return"1 / 1";case"landscape":default:return"16 / 9"}})),q(this,"setDocked",(function(e){if(n.container&&n.sentinel&&!(n._stickyDisabled&&e||n._docked===e)){if(e){n.claimDockedPlayerSlot(
1),n.startMiniCloseCountdown(3);var t=n.container.getBoundingClientRect().height;n.sentinel.style.height="".concat(t,"px"),n.ctaBtn.style.setProperty("display","none","important")}else n.releaseActiveDockedPlayer(),n.showRelatedAdCta(),n.sentinel.style.height="0px";n._docked=e,n.container.classList.toggle("rltd-docked",e),e&&n._stickyAuto?(n.updateStickyObstacleOffset(),n._docked&&(n._obstacleCheckTimer=setInterval(n.updateStickyObstacleOffset,500))):(clearInterval(n._obstacleCheckTimer),n._obstacleCheckTimer=null,n._stickyObstacleBottom=0,n._stickyObstacleClearSince=null,n.container.style.setProperty("--rltd-sticky-obstacle-bottom","0px")),n.isAdPlaying&&n.adsManager&&requestAnimationFrame((function(){requestAnimationFrame((function(){var e=n.container.getBoundingClientRect();try{n.adsManager.resize(e.width,e.height,google.ima.ViewMode.NORMAL)}catch(e){}}))}))}})),q(this,"updateStickyObstacleOffset",(function(){if(n._docked&&n.container&&document.elementsFromPoint){var e=window.matchMedia("(max-width: 440px)").matches;if(!e||"top"!==n._stickyMobilePosition){var t=window.innerHeight,r=n.container.getBoundingClientRect(),i=e?n._stickyMobileBottom:n._stickyBottom,o=Math.min(t-i,t),a=0,l=[],s=[],c=new Set,d=[o-1,o-40,o-r.height/2,o-r.height+24,o-r.height-40];e&&d.push.apply(d,L([1,40,80,120,180,240].filter((function(e){return e<.4*t}))));for(var u=0,p=[r.left+1,r.left+r.width/2,r.right-1];u<p.length;u++){var f,h=p[u],m=P(d);try{for(m.s();!(f=m.n()).done;){var v,y=f.value,g=P(document.elementsFromPoint(h,y));try{for(g.s();!(v=g.n()).done;){var b=v.value;if(!n.container.contains(b))for(var w=b;w&&w!==document.body;)if(c.has(w))w=w.parentElement;else{c.add(w);var k=window.getComputedStyle(w);if(("fixed"===k.position||"sticky"===k.position)&&!w.contains(n.container)){var _=w.getBoundingClientRect();!(_.top<=0&&_.bottom>=t&&_.left<=0&&_.right>=window.innerWidth)&&"0"!==k.opacity&&_.width>0&&_.height>0&&_.top>=0&&_.top<t&&_.left<r.right&&_.right>r.left&&(_.bottom<=t+16&&_.top<o&&_.bottom>o-r.height&&l.push(_),e&&_.top<.4*t&&_.bottom>0&&s.push(_))}w=w.parentElement}}}catch(e){g.e(e)}finally{g.f()}}}catch(e){m.e(e)}finally{m.f()}}var C,A=P(l.sort((function(e,t){return t.top-e.top})));try{for(A.s();!(C=A.n()).done;){var E=C.value;E.bottom>=t-Math.max(i,a)-16&&(a=Math.max(a,t-E.top+8))}}catch(e){A.e(e)}finally{A.f()}var T,x=0,S=P(s.sort((function(e,t){return e.top-t.top})));try{for(S.s();!(T=S.n()).done;){var I=T.value;I.top<=Math.max(80,x+16)&&(x=Math.max(x,I.bottom+8))}}catch(e){S.e(e)}finally{S.f()}if(e&&x+r.height+Math.max(i,a)>.6*t)return n._stickyDisabled=!0,n.setDocked(!1),void n.destroyStickyObserver();var O=Math.max(i,t-r.height-8);if(a>0)n._stickyObstacleBottom=Math.min(a,O),n._stickyObstacleClearSince=null;else if(n._stickyObstacleBottom>0){var M;if(null!==(M=n._stickyObstacleClearSince)&&void 0!==M||(n._stickyObstacleClearSince=Date.now()),Date.now()-n._stickyObstacleClearSince<2e3)return;n._stickyObstacleBottom=0,n._stickyObstacleClearSince=null}n.container.style.setProperty("--rltd-sticky-obstacle-bottom","".concat(n._stickyObstacleBottom,"px"))}}})),q(this,"initStickyObserver",(function(){if(n._stickyAllowed&&!n._stickyDisabled&&n.container&&n.sentinel&&!n._stickyObserver){var e=function(){var e=n.sentinel.getBoundingClientRect();!n._docked&&e.top<=0?n.setDocked(!0):n._docked&&e.bottom>16&&n.setDocked(!1)};n._stickyObserver=new IntersectionObserver((function(){e()}),{threshold:0,rootMargin:"-80px 0px 0px 0px"}),n._stickyObserver.observe(n.sentinel),n._dockScrollHandler=e,window.addEventListener("scroll",n._dockScrollHandler,{passive:!0})}})),q(this,"destroyStickyObserver",(function(){n.releaseActiveDockedPlayer(),clearInterval(n._obstacleCheckTimer),n._obstacleCheckTimer=null,n._stickyObserver&&n.sentinel&&(n._stickyObserver.unobserve(n.sentinel),n._stickyObserver.disconnect()),n._stickyObserver=null,n._dockScrollHandler&&(window.removeEventListener("scroll",n._dockScrollHandler),n._dockScrollHandler=null)})),q(this,"bindMiniClose",(function(){n.miniCloseBtn&&n.miniCloseBtn.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),!n.miniCloseBtn.disabled&&n.miniCloseBtn.classList.contains("rltd-armed")&&(n._stickyDisabled=!0,n.setDocked(!1),n.destroyStickyObserver())}))})),q(this,"startMiniCloseCountdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(n.miniCloseBtn){n._miniCloseCountdownLeft=e;var t=n.miniCloseBtn.querySelector(".rltd-mini-close-countdown");t&&(t.textContent=String(n._miniCloseCountdownLeft)),n._miniCloseCountdownTimer=setInterval((function(){if(n._miniCloseCountdownLeft-=1,n._miniCloseCountdownLeft<=0)return clearInterval(n._miniCloseCountdownTimer),n._miniCloseCountdownTimer=null,n.miniCloseBtn.classList.add("rltd-armed"),void(n.miniCloseBtn.disabled=!1);t&&(t.textContent=String(n._miniCloseCountdownLeft))}),1e3)}}
1)),q(this,"cacheElements",(function(){var e,t;n.video=document.getElementById("rltd_inline_video-".concat(n.id)),n.container=(null===(e=n.video)||void 0===e?void 0:e.parentElement)||null,n.adContainer=document.getElementById("ad-container-".concat(n.id)),n.unmuteBtn=document.getElementById("unmute-btn-".concat(n.id)),n.timerElement=document.getElementById("custom-ad-timer-".concat(n.id)),n.ctaBtn=document.getElementById("ad-cta-btn-".concat(n.id)),n.playBtn=document.getElementById("rltd-play-button-".concat(n.id)),n.durationElement=document.getElementById("rltd_video_duration-".concat(n.id)),n.sentinel=document.getElementById("rltd-sticky-sentinel-".concat(n.id)),n.miniCloseBtn=(null===(t=n.container)||void 0===t?void 0:t.querySelector(".rltd-mini-close"))||null,n.container&&(n.container.style.setProperty("--rltd-sticky-bottom","".concat(n._stickyBottom,"px")),n.container.style.setProperty("--rltd-sticky-mobile-bottom","".concat(n._stickyMobileBottom,"px")),n.container.style.setProperty("--rltd-sticky-obstacle-bottom","0px"),n.container.setAttribute("data-sticky-mobile",n._stickyMobilePosition)),n.adContainer&&n.adContainer.addEventListener("click",(function(e){e.stopPropagation()}),{passive:!1})})),q(this,"onUserPlayIntent",j(R().mark((function e(){var t,r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=n.container)||void 0===t||!t.classList.contains("ad-playing")){e.next=2;break}return e.abrupt("return");case 2:if(!n._userPlayIntentInFlight){e.next=4;break}return e.abrupt("return");case 4:if(n._userPlayIntentInFlight=!0,n.enableControlsOnUserInteraction(),n.started){e.next=12;break}return n.started=!0,n.play(),n.hidePosterElements(),n._userPlayIntentInFlight=!1,e.abrupt("return");case 12:return e.prev=12,null!==(r=n.video)&&void 0!==r&&r.muted&&n.unMute(),e.next=16,n.video.play();case 16:n.hidePosterElements(),n.showRelatedArticleVideoCta(),n.unbindUserPlayIntent(),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(12),console.warn("[video] user click play failed",e.t0);case 24:return e.prev=24,n._userPlayIntentInFlight=!1,e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[12,21,24,27]])})))),q(this,"bindUserPlayIntent",(function(){n.container&&!n._userPlayIntentListener&&(n._userPlayIntentListener=function(){n.onUserPlayIntent()},n.container.addEventListener("click",n._userPlayIntentListener))})),q(this,"unbindUserPlayIntent",(function(){n.container&&n._userPlayIntentListener&&(n.container.removeEventListener("click",n._userPlayIntentListener),n._userPlayIntentListener=null)})),q(this,"hidePosterElements",(function(){n.setPlayButtonLoading(!1),n.playBtn.style.display="none",n.durationElement.style.display="none"})),q(this,"setPlayButtonLoading",(function(e){if(n.playBtn)return e?(n.playBtn.classList.add("rltd-loading"),void(n.playBtn.style.display="flex")):void n.playBtn.classList.remove("rltd-loading")})),q(this,"unMute",(function(){var e;n.muted=!n.muted,n.video.muted=n.muted,null===(e=n.adsManager)||void 0===e||e.setVolume(n.muted?0:1),n.setAudioButtonBasedOnMuteState(),console.log("[related] video",n.id,n.muted?"muted":"unmuted")})),q(this,"setAudioButtonBasedOnMuteState",(function(){n.muted?n.unmuteBtn.classList.add("rltd-muted"):n.unmuteBtn.classList.remove("rltd-muted")})),q(this,"bindUnmuteButton",(function(){n.unmuteBtn.addEventListener("click",(function(){n.unMute()}))})),q(this,"getManifestUrl",(function(e){return"hls"===e&&n.streams.hls?n.streams.hls:"dash"===e&&n.streams.dash?n.streams.dash:null})),q(this,"isLikelyIOSSafari",(function(){var e=navigator.userAgent||"",t=/iP(hone|ad|od)/i.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,n=/WebKit/i.test(e),r=/CriOS|FxiOS|EdgiOS|OPiOS|DuckDuckGo|YaBrowser/i.test(e);return t&&n&&!r})),q(this,"getInitialManifestType",(function(){var e;return n.isLikelyIOSSafari()&&null!==(e=n.streams)&&void 0!==e&&e.hls?"hls":"dash"})),q(this,"loadManifest",function(){var e=j(R().mark((function e(t){var r,i,o,a=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.length>1&&void 0!==a[1]?a[1]:{}
1,i=r.autoplay,o=void 0!==i&&i,n.player){e.next=3;break}return e.abrupt("return",!1);case 3:if(!n._manifestLoadInFlight){e.next=5;break}return e.abrupt("return",n._manifestLoadInFlight);case 5:return n._manifestLoadInFlight=j(R().mark((function e(){var r,i,a,l,s,c,d,u;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.getManifestUrl(t)){e.next=4;break}return console.error("[related][shaka] missing manifest url",{type:t,videoId:n.videoId}),e.abrupt("return",!1);case 4:return n._manifestType=t,e.prev=5,e.next=8,n.player.unload();case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(5);case 12:return 1e4,i=new Promise((function(e,n){setTimeout((function(){return n(new Error("shaka.load timeout after ".concat(1e4,"ms (").concat(t,")")))}),1e4)})),e.prev=14,e.next=17,Promise.race([n.player.load(r),i]);case 17:console.log("[related][shaka] loaded",r);try{d=null===(a=(l=n.player).getManifest)||void 0===a?void 0:a.call(l),u=null==d||null===(s=d.presentationTimeline)||void 0===s||null===(c=s.getDuration)||void 0===c?void 0:c.call(s),Number.isFinite(u)&&u>0&&n.durationElement&&(n.duration=Math.round(u),n.durationElement.textContent=A(n.duration),n.durationElement.style.display="block")}catch(e){}if(!o||!n.video){e.next=28;break}return e.prev=20,e.next=23,n.video.play();case 23:n.hidePosterElements(),e.next=28;break;case 26:e.prev=26,e.t1=e.catch(20);case 28:return e.abrupt("return",!0);case 31:return e.prev=31,e.t2=e.catch(14),console.error("[related][shaka] load failed",{type:t,url:r,error:e.t2}),e.abrupt("return",!1);case 35:return e.prev=35,n._manifestLoadInFlight=null,e.finish(35);case 38:case"end":return e.stop()}}),e,null,[[5,10],[14,31,35,38],[20,26]])})))(),e.abrupt("return",n._manifestLoadInFlight);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),q(this,"tryFallbackToHls",j(R().mark((function e(){var t,r,i=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:"",!n._fallbackTried){e.next=3;break}return e.abrupt("return");case 3:if(n._fallbackTried=!0,"dash"===n._manifestType){e.next=6;break}return e.abrupt("return");case 6:return console.warn("[related][shaka] falling back to HLS",t),r=!(!n.inLayer&&!n.hadAd),e.next=10,n.loadManifest("hls",{autoplay:r});case 10:e.sent||console.error("[related][shaka] HLS fallback also failed");case 12:case"end":return e.stop()}}),e)})))),q(this,"onShakaError",(function(e){try{console.error("[related][shaka] error",{code:null==e?void 0:e.code,category:null==e?void 0:e.category,severity:null==e?void 0:e.severity,data:null==e?void 0:e.data,message:null==e?void 0:e.message})}catch(t){console.error("[related][shaka] error (unparsed)",e)}var t=null==e?void 0:e.category,r=null==e?void 0:e.code,i=1===t||3===t||4===t,o=3014===r||3015===r||3016===r;"dash"===n._manifestType&&(i||o)&&n.tryFallbackToHls("shaka error category=".concat(t," code=").concat((null==e?void 0:e.code)||""))})),q(this,"clearAdStartTimeout",(function(){n._adStartTimeout&&(clearTimeout(n._adStartTimeout),n._adStartTimeout=null)})),q(this,"armAdStartTimeout",(function(){n.clearAdStartTimeout(),n._adStartTimeout=setTimeout((function(){!n.adRequested||n.hadAd||n.isAdPlaying||(console.warn("[related] ad start timeout, returning control to player"),n.startContent({reason:"ad_start_timeout"}))}),n._adStartTimeoutMs)})),q(this,"onAdsManagerLoaded",(function(e){try{n.adsManager=e.getAdsManager(n.video,new google.ima.AdsRenderingSettings)}catch(e){return console.error("[related] IMA getAdsManager failed",e),void n.startContent({reason:"adsManager_get_failed"})}n.muted&&n.adsManager.setVolume(0),n.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,n.onAdStarted),n.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,(function(){n.onRelatedAdFinished(),n.cleanupAdUI()})),n.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){n.onRelatedAdFinished(),n.cleanupAdUI()})),n.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(){n.startContent({reason:"content_resume_requested"})})),n.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){var t,r,i=e.getError();console.error("[related] IMA Event: AD_ERROR",i.toString(),null!==(t=i.getErrorCode())&&void 0!==t?t:"",null!==(r=i.getInnerError())&&void 0!==r?r:""),n.startContent({reason:"adsManager_error"})}));try{var t=n.video.getBoundingClientRect();n.adsManager.init(t.width,t.height,google.ima.ViewMode.NORMAL),n.adsManager.start()}catch(e){console.error("[related] IMA init/start failed",e),n.startContent({reason:"adsManager_start_failed"})}})),q(this,"requestPreroll",(function(){var e,t,r=(null===(e=n.vast)||void 0===e||null===(t=e.getUrls)||void 0===t?void 0:t.call(e,n.getAdOrientation()))||[],i=r.length>0?r[0]:"";if(!i)return console.log("[related] no VAST tag, skipping ad request (no autoplay content)"),void n.startContent({reason:"adsLoader_error"});var o=new google.ima.AdsRequest;o.adTagUrl=i,o.linearAdSlotWidth=n.container.offsetWidth,o.linearAdSlotHeight=n.container.offsetHeight,o.setAdWillAutoPlay(!n.inLayer),o.setAdWillPlayMuted(!!n.muted);try{n.adsLoader.requestAds(o)}catch(e){console.error("[related] IMA requestAds failed",e),n.startContent({reason:"adsLoader_request_failed"})}})),q(this,"getAdOrientation",(function(){return n.inLayer&&"portrait"===n.orientation?"portrait":"landscape"})),q(this,"onAdStarted",(function(e){n.clearAdStartTimeout(),n.setPlayButtonLoading(!1),n.setInlinePlayerVisibility(!0),n.container.classList.add("ad-playing"),n.adContainer.style.display="block",n.hadAd=!0,n.isAdPlaying=!0,n.initAdVisibilityObserver(),n.initStickyObserver(),n.durationElement.style.display="none",n.playBtn.style.display="none",n.unmuteBtn.style.display="block";var t=e.getAd(),r=n.getRelatedAdMeta(t.getAdId());console.log("[related] AdUd:",t.getAdId()),n._isRelatedAd=r.isRelatedAd,n._relatedAdId=r.adId,n._relatedEndCardNonce=r.endCardNonce,n._showRelatedEndCard=r.showEndCard,n._relatedEndCardRequested=!1,n._relatedEndCardData=null,n._relatedEndCardPromise=null,n.isMobile()||(n.timerElement.style.display="block",n._isRelatedAd&&(n.configureRelatedAdCta(r.cta),n.showRelatedAdCta())),n._isRelatedAd&&n._showRelatedEndCard&&n.fetchRelatedEndCard(),n.adRemainingInterval=setInterval((function(){var e=Math.ceil(n.adsManager.getRemainingTime());n.timerElement.textContent=n.isInlineAdOnlyMode()?"Hirdetés: (".concat(e,")"):"Hirdetés: (".concat(e,") - A tartalom hamarosan indul...")}),50),n.inLayer&&(U.disableCloseButton(),n.unbindCloseButton())})),q(this,"cleanupAdUI",(function(){n.isAdPlaying=!1,n.hadAd&&!n._docked&&(n._stickyDisabled=!0,n.destroyStickyObserver()),n.destroyAdVisibilityObserver(),clearInterval(n.adRemainingInterval),n.container.classList.remove("ad-playing"),n.timerElement.style.display="none",n.unmuteBtn&&(n.unmuteBtn.style.display="none"),n.clearRelatedAdCta(),n.inLayer&&(U.enableCloseButton(),n.bindCloseButton())})),q(this,"startContent",j(R().mark((function e(){var t,r,i,o=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.reason,i=void 0===r?"":r,n.clearAdStartTimeout(),n.setPlayButtonLoading(!1),!n.isInlineAdOnlyMode()){e.next=9;break}console.log("[related] inline ad-only mode, closing after ad/no-fill",i);try{n.cleanupAdUI()}catch(e){}return n.adContainer&&(n.adContainer.style.display="none"),n.closeInlineAdOnlySlot(),e.abrupt("return");case 9:if(n.inLayer||n.hadAd){e.next=15;break}console.log("[related] content autoplay prevented (no ad played)",i),n.bindUserPlayIntent();try{n.cleanupAdUI()}catch(e){}return n.adContainer&&(n.adContainer.style.display="none"),e.abrupt("return");case 15:n.adContainer&&(n.adContainer.style.display="none"),n.video&&(n.player&&"dash"===n._manifestType&&n._fallbackTried&&n._manifestLoadInFlight,n.video.play().then((function(){n.hidePosterElements(),n.enableControlsOnUserInteraction(),n.showRelatedArticleVideoCta(),n.unbindUserPlayIntent()})).catch((function(e){console.warn("[related] content start failed, forcing user interaction might be needed",e),n.tryFallbackToHls("content play failed")})));case 17:case"end":return e.stop()}}),e)})))),q(this,"enableControlsOnUserInteraction",(function(){var e;if(n.player&&!n.ui){n.ui=new shaka.ui.Overlay(n.player,n.container,n.video),n.ui.configure({controlPanelElements:["play_pause","mute","volume","t
1ime_and_duration","spacer","fullscreen"],fadeDelay:2,seekBarColors:{played:"#30a7aa"}});var t=null===(e=n.container)||void 0===e?void 0:e.querySelector(".shaka-controls-container");t&&t.setAttribute("shown","true")}})),this.config=t,this.id=t.hash,this.orientation="landscape",this.wrapper=null,this.videoId=null,this.streams={},this.player=null,this.ui=null,this.adsLoader=null,this.adsManager=null,this.video=null,this.container=null,this.adContainer=null,this.unmuteBtn=null,this.ctaBtn=null,this.timerElement=null,this.adRemainingInterval=null,this.started=!1,this.adRequested=!1,this.hadAd=!1,this.adDisplayContainer=null,this.muted=!0,this.inLayer=!1,this.duration=t.duration||635,this.vast=new W(t),this.isAdPlaying=!1,this._adVisibilityObserver=null,this._manifestType="dash",this._fallbackTried=!1,this._manifestLoadInFlight=null,this._docked=!1,this._stickyAllowed=t.stickyVideo,this._stickyAuto=!!t.stickyAuto,this._stickyBottom=this.normalizeStickyBottom(t.stickyBottom),this._stickyMobilePosition=this.normalizeStickyMobilePosition(t.stickyMobile),this._stickyMobileBottom=this.normalizeStickyBottom(t.stickyMobileBottom),this._obstacleCheckTimer=null,this._stickyObstacleBottom=0,this._stickyObstacleClearSince=null,this._stickyDisabled=!1,this._miniCloseCountdownTimer=null,this._miniCloseCountdownLeft=0,this._isRelatedAd=!1,this._relatedAdId=null,this._relatedEndCardNonce=null,this._showRelatedEndCard=!1,this._relatedEndCardRequested=!1,this._relatedEndCardPromise=null,this._relatedEndCardData=null,this._relatedAdCtaShowTimer=null,this._relatedAdCtaVisibleAt=null,this._relatedAdCtaPulseEnabled=!1,this._userPlayIntentListener=null,this._userPlayIntentInFlight=!1,this._adStartTimeout=null,this._adStartTimeoutMs=5e3,this._visibilityTarget=null,this._adOnlySentinel=null,this._relatedArticleVideoCtaShowTimer=null,this._relatedArticleVideoCtaCollapseTimer=null,this.adOnlyInline=!!t.adOnly,this.contentCtaData={originalUrl:"",relatedArticleTitle:"",relatedArticleUrl:"",ctaType:"0",ctaText:""},U.init(t)}),[{key:"normalizeStickyBottom",value:function(e){var t=parseInt(e,10);return Number.isNaN(t)?16:Math.min(Math.max(t,0),1e3)}},{key:"normalizeStickyMobilePosition",value:function(e){return"top"===e?"top":"bottom"}},{key:"initLayerMode",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.inLayer=!0,this.muted=!1,this.videoId=t,this.streams=i||{},this.id=this.id.toString()+t.toString(),n&&(this.orientation=n.toLowerCase()),U.setup(),e.setAttribute("data-video",t),e.setAttribute("data-provider","related"),U.loadShakaAndIMA(),e.addEventListener("click",(function(e){e.preventDefault(),r.openLayer(t)}))}},{key:"init",value:(t=j(R().mark((function e(t,n,r){var i,o,a,l=this,s=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=s.length>3&&void 0!==s[3]?s[3]:{},a=s.length>4&&void 0!==s[4]?s[4]:{},this.videoId=n,this.streams=o||{},this.wrapper=t,this.duration=r||this.duration,this.contentCtaData={originalUrl:a.originalUrl||"",relatedArticleTitle:a.relatedArticleTitle||"",relatedArticleUrl:a.relatedArticleUrl||"",ctaType:"".concat(null!==(i=a.ctaType)&&void 0!==i?i:"0"),ctaText:a.ctaText||""},this.wrapper.setAttribute("data-video",n),this.wrapper.setAttribute("data-provider","related"),this.isInlineAdOnlyMode()?(this.ensureInlineAdOnlySentinel(),this._visibilityTarget=this._adOnlySentinel,this.setInlineAdOnlyShellVisibility(!1)):this._visibilityTarget=null,U.container=t,U.loadCss("/css/rvideo.css?v=36"),U.loadShakaAndIMA().then(j(R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.loadHtmlTo(l.wrapper),l.isInlineAdOnlyMode()){e.next=4;break}return e.next=4,l.initShaka();case 4:l.initIMA(),l.observeVisibilityAndPlay();case 6:case"end":return e.stop()}}),e)}))));case 13:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"openLayer",value:function(e){var t=this;U.sendBackMaxZindexedElements(),U.hideExitPopupContainer(),U.clear(),U.loadShakaAndIMA().then(j(R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loadHtmlTo(U.getInner()),e.next=3,t.initShaka();case 3:t.initIMA(),U.show(),U.getInner().appendChild(U.getClose()),U.enableCloseButton(),t.bindCloseButton(),t.play();case 9:case"end":return e.stop()}}),e)}))))}},{key:"observeVisibilityAndPlay",value:function(){var e=this,t=null,n=this._visibilityTarget||this.container;n&&new IntersectionObserver((function(n,r){var i=n[0];if(i.isIntersecting&&i.intersectionRatio>=.8&&!e.started){if(t)return;t=setTimeout((function(){e.started||(e.started=!0,e.play(),r.unobserve(i.target))}),300)}else t&&(clearTimeout(t),t=null)}),{threshold:[.8],rootMargin:"0px"}).observe(n)}},{key:"buildTemplate",value:function(){var e=this.getAspectRatio(),t=this.inLayer&&"portrait"===this.orientation,n="square"===this.orientation,r=this.streams.thumb||"",i=this.isInlineAdOnlyMode()?"visibility:hidden; pointer-events:none; opacity:0;":"",o="\n            position:relative;\n            display: grid;\n            place-items: center;\n            ".concat(t?"max-height: 100dvh; width: fit-content; max-width: 100%; margin: 0 auto;
1":"","\n            height: auto;\n            ").concat(i,"\n        ").replace(/\s+/g," "),a="\n            grid-area: 1 / 1;\n            aspect-ratio: ".concat(e,";\n            ").concat(t?"max-height: 90dvh; height: 100%; width: auto; max-width: 100%;":"width: 100%; height: auto;","\n            ").concat(n?"max-height: 100dvh;":"","\n            object-fit: contain;\n            display: block;\n        ").replace(/\s+/g," ");return'\n            <div style="'.concat(o,'" class="rltd-shaka">\n                <video\n                    id="rltd_inline_video-').concat(this.id,'"\n                    style="').concat(a,'"\n                    class="player-container shaka-video-container"\n                    ').concat(this.muted?"muted":"",'\n                    playsinline\n                    poster="').concat(r,'"\n                ></video>\n                <div class="rltd-play-button" id="rltd-play-button-').concat(this.id,'"></div>\n                <div class="rltd_video_duration" id="rltd_video_duration-').concat(this.id,'"></div>\n                <div id="ad-container-').concat(this.id,'" class="rltd-vast-ad-container"></div>\n                <button id="unmute-btn-').concat(this.id,'" class="rltd-mute-btn ').concat(this.muted?"rltd-muted":"",'" aria-label="Hang bekapcsolása">\n                </button>\n                <button\n                  id="ad-cta-btn-').concat(this.id,'"\n                  class="rltd-ad-cta-btn"\n                  aria-label="További információk &raquo;">\n                  További információk &raquo;\n                </button>\n                <div id="custom-ad-timer-').concat(this.id,'" class="rltd_video_adinprogress"></div>\n                <button class="rltd-mini-close" aria-label="Videó bezárása" type="button" disabled>\n                  <span class="rltd-mini-close-countdown">3</span>\n                  <svg class="rltd-mini-close-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">\n                    <path d="M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.9 4.89a1 1 0 1 0 1.41 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.41L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z"/>\n                  </svg>\n                </button>\n            </div>\n            <div id="rltd-sticky-sentinel-').concat(this.id,'" style="height:1px;"></div>\n        ')}},{key:"loadHtmlTo",value:function(e){e.innerHTML=this.buildTemplate(),this.cacheElements(),this.renderRelatedArticleCta(),this.bindUnmuteButton(),this.bindMiniClose(),this.setInlinePlayerVisibility(!1)}},{key:"initShaka",value:(e=j(R().mark((function e(){var t,n,r,i=this;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(shaka.polyfill.installAll(),shaka.Player.isBrowserSupported()){e.next=4;break}return console.error("[related][shaka] browser not supported"),e.abrupt("return");case 4:try{null!==(t=shaka)&&void 0!==t&&null!==(t=t.log)&&void 0!==t&&t.setLevel&&null!==(n=shaka)&&void 0!==n&&null!==(n=n.log)&&void 0!==n&&n.Level&&shaka.log.setLevel(shaka.log.Level.V1)}catch(e){}return this.player=new shaka.Player,this.video.controls=!1,e.next=9,this.player.attach(this.video);case 9:return this._manifestType=this.getInitialManifestType(),this._fallbackTried=!1,this.player.addEventListener("error",(function(e){var t=null==e?void 0:e.detail;i.onShakaError(t)})),r=this._manifestType,console.log("[related][shaka] initial manifest type",r),e.next=16,this.loadManifest(r,{autoplay:!1});case 16:e.sent||("dash"===r?this.tryFallbackToHls("initial DASH manifest load failed"):this.loadManifest("dash",{autoplay:!1}));case 18:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"initIMA",value:function(){var e=this;google.ima.settings.setLocale("hu");try{var t,n;null!==(t=google)&&void 0!==t&&null!==(t=t.ima)&&void 0!==t&&null!==(t=t.ImaSdkSettings)&&void 0!==t&&null!==(t=t.VpaidMode)&&void 0!==t&&t.INSECURE&&null!==(n=google)&&void 0!==n&&null!==(n=n.ima)&&void 0!==n&&null!==(n=n.settings)&&void 0!==n&&n.setVpaidMode&&google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE)}catch(e){}this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainer),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),document.addEventListener("visibilitychange",(function(){if(e.isAdPlaying&&e.adsManager)try{document.hidden?e.adsManager.pause():e.adsManager.resume()}catch(e){}})),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(){return e.startContent({reason:"adsLoader_error"})}))}},{key:"isMobile",value:function(){return window.matchMedia("(max-width: 440px)").matches}}]);var e,t}(),H=function(){return N((function e(t){V(this,e),U.init(t),U.setup()}),[{key:"init",value:function(e,t){var n=this;e.setAttribute("data-video",t),e.setAttribute("data-provider","youtube"),e.addEventListener("click",(function(e){e.preventDefault(),n.open(t)}))}},{key:"open",value:function(e){var t=this;U.sendBackMaxZindexedElements(),U.hideExitPopupContainer(),U.clear(),U.getClose().addEventListener("click",(function(e){return t.close(e)})),U.getInner().appendChild(U.getClose());var n=k("div",{class:"rltd-iframe-holder",style:"padding:56.25% 0 0 0;position:relative;"}),r=k("iframe",{id:"rltd-youtube-video",src:"https://www.youtube.com/embed/".concat(e,"?controls=1&rel=0&title=0"),frameborder:0,allow:"accelerometer; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:"",style:"position:absolute;top:0;left:0;width:100%;height:100%;"});n.appendChild(r),U.getInner().appendChild(n),U.show()}},{key:"close",value:function(e){e&&e.preventDefault();var t=document.getElementsByClassName("rltd-iframe-holder")[0];t&&t.remove(),U.hideAndClear()}}])}(),W=function(){return N((function e(t){V(this,e),this.config=t||{}}),[{key:"getUrls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"landscape";if(!this.config.id)return[];var t=this.config.dev?this.config.dev_widgetURL:this.config.widgetURL,n=window.location.href||"",r=h.keywords.extract()||[],i=this.config.uuid||"",o=l.getGdpr(
1),a=l.getConsentString(),s=this.config.shouldExcludeAdultPrerollAds?"&eaa=1":"";return["".concat(t,"/video?wid=").concat(encodeURIComponent(this.config.id),"&uuid=").concat(encodeURIComponent(i),"&orientation=").concat(encodeURIComponent(e),"&ref=").concat(encodeURIComponent(n),"&url=").concat(encodeURIComponent(n),"&tags=").concat(encodeURIComponent(r),"&gdpr=").concat(encodeURIComponent(o),"&gdpr_consent=").concat(a).concat(s)]}}])}();function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z(r.key),r)}}function Z(e){var t=function(e,t){if("object"!=ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ee(t)?t:t+""}function Y(e,t,n){return t=X(t),function(e,t){if(t&&("object"===ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$()?Reflect.construct(t,n||[],X(e).constructor):t.apply(e,n))}function J(e){var t="function"==typeof Map?new Map:void 0;return(J=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return K(e,arguments,X(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Q(n,e)})(e)}function K(e,t,n){if($())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Q(i,n.prototype),i}function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($=function(){return!!e})()}function Q(e,t){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e={lastAdClicks:{},options:{ver:"2",prebidver:"4.30.0-pre",debug:!1,dev:!1,widgetURL:"https://widget.related.hu",siteURL:"https://related.hu",dev_widgetURL:"https://widget.related.test",dev_siteURL:"https://related.test",uuid:"",zoneIds:[],relatedAdSlots:[],programmaticSlotIds:[],slots:0,spareItems:[],adformZoneIds:[],gamSlots:[],show_lead:0,blocker:!1,adblockOnly:!1,data:null,app:!1,amp:0,iframe:!1,id:null,rltd:null,size:[],consent:!0,cssid:"rltd",multi:!1,lang:"hu",hidden:!1,css:!0,tagPosition:0,unlimited:!1,header:!0,cookieKey:"r_uid",originalId:null,chainCount:1,lastWidget:!1,adOnly:!1,unlimitedMaxLoads:0},createUrl:function(t){return(e.options.dev?e.options.dev_widgetURL:e.options.widgetURL)+t},getSiteUrl:function(){return e.options.dev?e.options.dev_siteURL:e.options.siteURL},findFillableWidget:function(){var t=document.querySelectorAll('.rltdwidget:not([data-init="1"])')[0];return void 0!==t&&(t.setAttribute("data-init",1),t.setAttribute("data-hash",Math.random().toString(36).substring(2,6)),e.log("initialized widget: "+t.getAttribute("data-widget-id")),t)},isWPAdminPage:function(){var e=window.location.pathname,t=window.location.href;return e.includes("/wp-admin")||e.includes("/wp-login")||document.body.classList.contains("wp-admin")||t.includes("post.php")||t.includes("post-new.php")},inIframe:function(){try{return window.self!==window.top}catch(e){return!0}},init:function(t){e.isWPAdminPage()?e.log("WP admin page detected"):(e.options.rltd=t,e.options.id=t.getAttribute("data-widget-id"),e.options.originalId=e.options.id,e.options.chainCount=parseInt(t.getAttribute("data-chain-count")||1),e.options.dev=parseInt(t.getAttribute("data-dev")),e.options.iframe=e.inIframe(),e.options.amp=parseInt(t.getAttribute("data-amp")),e.o
1ptions.debug=parseInt(t.getAttribute("data-debug")),e.options.hash=t.getAttribute("data-hash"),e.options.adblockOnly=parseInt(t.getAttribute("data-adblockonly")),e.options.multi=t.getAttribute("data-multi")?parseInt(t.getAttribute("data-multi")):0,e.options.hidden="1"===t.getAttribute("data-hidden"),e.options.css="0"!==t.getAttribute("data-css"),e.log("booting..."),e.initUUID(),l.init(),e.handleCookie(),m().then((function(t){e.log("Adblock: "+t),e.options.blocker=t,e.loadData()})))},handleCookie:function(){l.hasConsent()?r.set(e.options.cookieKey,e.options.uuid,60):r.remove(e.options.cookieKey)},initUUID:function(){var t=r.get(e.options.cookieKey);e.options.uuid=t||e.generateUUID()},generateUUID:function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))},log:function(t){e.options.debug&&console.log("[related] "+t)},extendObject:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},loadCSS:function(t){var n=document.createElement("link");n.href=e.getSiteUrl()+t,n.type="text/css",n.rel="stylesheet",e.options.rltd.appendChild(n),e.log("CSS loaded: "+t)},loadJS:function(t){var n=document.createElement("script");n.src=e.getSiteUrl()+t,document.head.appendChild(n),e.log("JS loaded: "+t)},addUTM:function(t){var n=[];return n.push("utm_source=related"),n.push("utm_medium="+window.location.hostname),n.push("utm_campaign=widget-"+e.options.id),t+(t.includes("?")?"&":"?")+n.join("&")},loadData:function(){if(!e.options.adblockOnly||0!=e.options.blocker){var t=new FormData;t.append("wid",e.options.id),t.append("canonical",h.getUrl()),t.append("url",window.location.href),t.append("noindex",h.containsRobotsOrRelatedBotMetaNoIndex()),t.append("id",e.options.uuid),t.append("ptime",h.containsRobotsOrRelatedBotMetaNoIndex()?"":h.getPublishedAt()),t.append("domain",window.location.hostname),t.append("blocker",e.options.blocker),t.append("ver",e.options.ver),t.append("tags",h.keywords.extract()),t.append("ref",document.referrer),t.append("multi",e.options.multi),t.append("noads",h.shouldDisableAdsByMeta()?1:0),t.append("paywallm",h.isPaywallByMeta()?1:0),t.append("paywalls",h.isPaywallBySchema()?1:0),t.append("touch",C()?1:0),t.append("pvid",v.get()),t.append("css",e.options.css?1:0),e.options.hidden&&t.append("hidden",1);var n=h.getArticleSection();""!=n&&t.append("section",n),e.options.multi?(e.log("request queued"),e.queueRequest.init(t)):e.startRequest(t)}},queueRequest:{init:function(t){window._rltdWidgets=window._rltdWidgets||[],window._rltdWidgets.push(e.options.hash),window._rltdWidgets[0]==e.options.hash?e.startRequest(t):window.addEventListener("rltdWidgetQueryLoaded",(function(){window._rltdWidgets[0]==e.options.hash&&e.startRequest(t)}))},next:function(){window._rltdWidgets.splice(0,1),window.dispatchEvent(new CustomEvent("rltdWidgetQueryLoaded"))}},startRequest:function(t){var n=new XMLHttpRequest;n.open("POST",e.createUrl("/items")),n.send(t),n.onload=function(){200!=n.status?e.log("Error ".concat(n.status,": ").concat(n.statusText)):(e.options.multi&&e.queueRequest.next(),e.processData(JSON.parse(n.responseText)))},n.onerror=function(){e.log("Request failed")}},insertNextWidget:function(){if(e.canInsertNextWidget()){var t=e.options.chainCount+1;e.options.rltd.insertAdjacentElement("afterend",k("div",{"data-widget-id":e.options.id,"data-chain-count":t,"data-multi":1,"data-css":e.isAlternatedWidget()?1:0,"data-dev":e.options.dev,class:"rltdwidget"})),e.options.rltd.insertAdjacentElement("afterend",k("script",{src:e.getSiteUrl()+"/js/v2/widget.js",type:"text/javascript"})),e.log("next widget inserted")}else e.log("unlimited widget max loads reached")},isAlternatedWidget:function(){return e.options.id!=e.options.originalId},canInsertNextWidget:function(){return!(!e.options.unlimited||!0===e.options.lastWidget)&&(!e.options.unlimitedMaxLoads||e.options.chainCount<e.options.unlimitedMaxLoads)},processData:function(t){var r,i,o,a,l,s;if(e.options.id=t.widget.wid,1!=e.options.hidden){if(e.options.unlimited=!!t.widget.unlimited,e.options.unlimitedMaxLoads=parseInt(t.widget.unlimited_max_loads||0),e.options.lastWidget=!!t.widget.last_widget,e.options.unlimited&&!0!==e.options.lastWidget&&(t.widget.logo=0),e.o
1ptions.unlimited&&e.options.multi&&(e.options.header=!1),e.options.css){var c=document.createElement("style");c.innerHTML=t.widget.css_base+t.widget.css_parsed,e.options.rltd.appendChild(c)}e.options.blocker&&e.options.css&&(e.options.cssid=t.widget.css_id,e.options.rltd.classList.remove("rltdwidget"),e.options.rltd.classList.add(e.options.cssid+"widget"));var d=k("div",{class:e.options.cssid+"_outer"}),u=k("div",{class:e.options.cssid+"_container"}),p=k("div",{class:e.options.cssid+"_list"});if(!0===e.options.header){var f=k("div",{class:e.options.cssid+"_header"});d.appendChild(f)}if(d.appendChild(u),u.appendChild(p),t.widget.logo>0&&(e.log("create branding"),u.appendChild(e.createBrandingElement(t.widget.logo,t.widget.domain))),e.log("creating widget content..."),e.options.show_lead=t.widget.lead,e.options.size=t.widget.size,e.options.stag=!!t.widget.sponsored&&t.widget.stag,e.options.lang=t.widget.lang,e.options.tagPosition=t.widget.tag,e.options.stickyVideo=null!==(r=t.widget.sticky_video)&&void 0!==r&&r,e.options.stickyAuto=!!t.widget.sa,e.options.stickyBottom=e.options.stickyAuto?16:null!==(i=t.widget.sb)&&void 0!==i?i:16,e.options.stickyMobile=e.options.stickyAuto?"bottom":null!==(o=t.widget.sm)&&void 0!==o?o:"bottom",e.options.stickyMobileBottom=e.options.stickyAuto?12:null!==(a=t.widget.smb)&&void 0!==a?a:12,e.options.adOnly=!(null===(l=t.widget.adonly)||void 0===l||!l),e.options.shouldExcludeAdultPrerollAds=!(null===(s=t.widget.eaa)||void 0===s||!s),!t.items.length)return e.unload();t.items.some((function(e){return e&&0===e.ad&&"video"===e.type&&1===e.inline&&"related"===e.provider}))&&p.classList.add("has-inline-rltd-video"),Object.keys(t.items).forEach((function(n){if("object"===ee(t.items[n])){if(1==t.items[n].ad&&"adform"==t.items[n].type&&e.options.adformZoneIds.push({zone:t.items[n].zone,id:t.items[n].id}
1),1==t.items[n].ad&&"gam"==t.items[n].type&&e.options.gamSlots.push({slotId:t.items[n].zone,divId:t.items[n].params.element_id}),1==t.items[n].spare)return e.options.spareItems.push(e.createSlot(t.items[n]));p.appendChild(e.createSlot(t.items[n]))}})),e.options.rltd.appendChild(d),e.log("creating widget content... done"),e.options.rltd.dispatchEvent(new CustomEvent("widgetContentLoaded",{detail:{widgetId:e.options.id}})),n.observeEmptyR2B2(),n.initLazyLoad(),n.widgetView(),n.adView(Object.keys(e.options.relatedAdSlots).concat(Object.keys(e.options.programmaticSlotIds))),n.adImpression(e.options.relatedAdSlots),e.options.gamSlots.length>0&&!1===e.options.blocker&&e.initGAM(),e.options.adformZoneIds.length>0&&0==e.options.blocker&&e.initProgrammatic(),e.options.amp&&e.resizeAmpIframe(),e.options.rltd.dispatchEvent(new CustomEvent("widgetComplete",{detail:{widgetId:e.options.id}})),e.canInsertNextWidget()&&n.nextWidgetLoader()}else e.log("hidden mode ON")},resizeAmpIframe:function(){window.parent.postMessage({sentinel:"amp",type:"embed-size",height:document.body.scrollHeight},"*")},externalImpression:function(t,n){n.forEach((function(n){var r=k("div",{class:"ext-script-"+t,style:"display:none;"});(new DOMParser).parseFromString(n,"text/html").querySelectorAll("iframe, img, script").forEach((function(t){for(var n=document.createElement(t.nodeName),i=0;i<t.attributes.length;i++)n.setAttribute(t.attributes[i].nodeName,t.attributes[i].nodeValue);"script"===t.nodeName.toLowerCase()&&(n.textContent=t.textContent),r.appendChild(n),e.options.rltd.appendChild(r)}))})),e.log("imp loaded: "+t)},unload:function(){e.options.rltd.setAttribute("style","display:none;")},trackCTHandler:function(t){var n=this.getAttribute("data-x"),r=this.getAttribute("data-cid"),i=this.getElementsByTagName("a")[0];e.options.iframe||1==n||"_blank"==i.target||t.preventDefault(),e.trackCT(n,this.id,i.href,i.target,r)||t.preventDefault()},trackCT:function(t,n,r,i,o){if(1==t){var a=Date.now(),l=e.options.id+"/"+n,s=e.lastAdClicks[l];if(s&&a-s<3e3)return!1;e.lastAdClicks[l]=a}e.log("trck ct: "+n);var c=new FormData;return c.append("wid",e.options.id),c.append("uuid",e.options.uuid),c.append("sid",n),o&&c.append("cid",o),e.sendTrackingBeacon("/track/ct",c),1==t||e.options.iframe||"_blank"==i||(window.location=r),!0},sendTrackingBeacon:function(t,n){var r=e.createUrl(t);"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(r,n)||"function"==typeof window.fetch&&window.fetch(r,{method:"POST",body:n,mode:"no-cors",keepalive:!0}).catch((function(){}))},trackView:function(){e.log("trck view");var t=new FormData;t.append("wid",e.options.id),t.append("uuid",e.options.uuid),e.sendTrackingBeacon("/track/view",t)},trackAdView:function(t){e.log("trck adview: "+t);var n=new FormData;n.append("wid",e.options.id),n.append("aid",t),n.append("uuid",e.options.uuid),e.sendTrackingBeacon("/track/adview",n)},createSlotId:function(t){var n;return n=1==t.ad?"ad":1==t.barter?"barter":"video"==t.type?"video":"article","".concat(e.options.cssid,"-").concat(n,"-").concat(t.id)},withoutwww:function(e){var t=e.indexOf("www");return-1==t?e:0==t?e.substring(4):void 0},createAdTag:function(t){var n=k("span",{class:e.options.cssid+"_tag"});return n.textContent=t||g.translate("ad",e.options.lang),n},createSlot:function(t){var n=e.createSlotId(t),r=k("div",{class:e.options.cssid+"_item_container "+e.options.cssid+"_w_"+e.options.size.w,id:n});if(0==t.ad&&"video"==t.type&&1==t.inline){var o,a=new z(e.options),l=k("div",{class:e.options.cssid+"_inline_video_holder"});if(e.options.adOnly)r.appendChild(l);else{var s=k("div",{class:e.options.cssid+"_video_title_outer"}),c=k("span",{class:e.options.cssid+"_video_title"}),d=k("span",{class:e.options.cssid+"_video_lead"});d.innerHTML=t.lead,c.textContent="VIDEÓ: "+t.title,s.appendChild(c),s.appendChild(d);var u=k("div",{class:e.options.cssid+"_inline_video_header"}),p=k("div",{class:e.options.cssid+"_inline_video_wrapper"});p.appendChild(u),p.appendChild(l),p.appendChild(s),r.appendChild(p)}return a.init(l,t.video_id,null,t.streams||{},{originalUrl:t.original_url||"",relatedArticleTitle:t.related_article_title||"",relatedArticleUrl:t.related_article_url||"",ctaType:null!==(o=t.content_cta_type)&&void 0!==o?o:"0",ctaText:t.content_cta_text||""}),r}r.addEventListener("click",e.trackCTHandler);var f=null,h=null;if(1==t.ad){if(r.setAttribute("data-x",1),r.setAttribute("data-x-type",t.type),t.cid&&r.setAttribute("data-cid",t.cid),f=e.createAdTag(),"adform"==t.type)return r.setAttribute("data-zone",t.zone),r;if("r2b2"==t.type)return r.appendChild(f),r.setAttribute("data-zone",t.zone),e.creater2b2Slot(r,t.zone,t.params),e.options.programmaticSlotIds[n]=1,r;if("gam"==t.type)return r.setAttribute("data-zone",t.zone),e.options.programmaticSlotIds[n]=1,r;e.options.relatedAdSlots[n]={impTrackers:t.imptracker?[t.imptracker]:null,impTrackType:t.imptype,type:t.type}}1==t.paywall&&r.setAttribute("data-paywall","1"),1==t.spare&&r.setAttribute("data-spare",1);var m=e.createRltdItem(t.url,t.ad,!e.isSameDomain(t.domain),t.id),v=e.createRltdImage(t.image),y=k("span",{class:e.options.cssid+"_title_outer"}),g=k("span",{class:e.options.cssid+"_title"});if(g.textContent=t.title,y.appendChild(g),m.appendChild(v),"video"!=t.type&&1!=t.ad&&(1==t.sponsored?(h=k("span",{class:e.options.cssid+"_tag "+e.options.cssid+"_article_tag"})).textContent=e.options.stag?e.options.stag:"szponzorált":e.options.iframe||e.isSameDomain(t.domain)||((h=k("span",{class:e.options.cssid+"_tag "+e.options.cssid+"_article_tag"})).textContent=e.withoutwww(t.domain))),0==e.options.tagPosition&&null!==f&&m.appendChild(f),0==e.options.tagPosition&&null!==h&&m.appendChild(h),m.appendChild(y),e.options.show_lead&&t.lead){var b=k("span",{class:e.options.cssid+"_lead"});b.innerHTML=t.lead,m.appendChild(b)}if(r.appendChild(m),1==e.options.tagPosition&&null!==f&&m.appendChild(f),1==e.options.tagPosition&&null!==h&&m.appendChild(h),1==t.ad&&"video"==t.type)i.prepareSlot(r,t.id,t.video,t.url,t.v_cta_text,t.v_cta_domain,t.v_imptracker,t.provider,t.hover,t.v_close_time,t.cid);else if(0==t.ad&&"video"==t.type&&0==t.inline){if("youtube"==t.provider)new H(e.options).init(r,t.video_id);else new z(e.options).initLayerMode(r,t.video_id,t.orientation,t.streams||{})}return r},isSameDomain:function(t){return!!t&&e.withoutwww(window.location.hostname)==e.withoutwww(t)},createRltdItem:function(t,n,r,i){return k("a",{class:e.options.cssid+"_item",href:n?e.replaceGdprMacros(t):t,rel:"nofollow",target:n||e.options.iframe||r?"_blank":"_self"})},createRltdImage:function(t){return k("span",{class:e.options.cssid+"_image","data-src":t})}
1,replaceGdprMacros:function(e){var t=l.getGdpr(),n=l.getConsentString();return e.replace("${GDPR}",t).replace("${GDPR_CONSENT_755}",n)},creater2b2Slot:function(e,t,n){var r=k("div",{id:n.element_id});e.appendChild(r);var i=document.createElement("script",{type:"text/javascript"});i.src="//delivery.r2b2.io/get/"+t,e.appendChild(i)},createAdformSlot:function(t,r){t.appendChild(e.createAdTag());var i=e.createRltdItem(r.clickUrl,1,!1),o=e.createRltdImage(r.image?r.image.url:""),a=k("span",{class:e.options.cssid+"_title_outer"}),l=k("span",{class:e.options.cssid+"_title"});if(l.textContent=r.title?r.title:r.body?r.body.substring(0,80):"",a.appendChild(l),i.appendChild(o),i.appendChild(a),e.options.show_lead&&r.body){var s=k("span",{class:e.options.cssid+"_lead"});s.innerHTML=r.body,i.appendChild(s)}if(t.appendChild(i),r.impressionTrackers.length){for(var c=[],d=[],u=0;u<r.impressionTrackers.length;u++)d.push('<img src="'+r.impressionTrackers[u]+'" style="display:none;">');c[t.getAttribute("id")]={impTrackers:d,impTrackType:"vi",type:"adform"},n.adImpression(c)}},createAdverticumSlot:function(t){return k("div",{id:"rltdzone-"+e.options.hash+"-"+t})},createBrandingElement:function(t,n){var r=k("div",{class:e.options.cssid+"_brand "+(2==t?"":"jcfe")});return r.innerHTML='<a href="'+e.addUTM("https://related.hu")+'" target="_blank">|related|</a>',r},GAMScriptDetectedOnPage:function(){for(var t=document.getElementsByTagName("script"),n=t.length;n--;)if("https://securepubads.g.doubleclick.net/tag/js/gpt.js"===t[n].src)return e.log("GAM script detected"),!0;return!1},goaScriptDetectedOnPage:function(){for(var t=document.getElementsByTagName("script"),n=t.length;n--;)if("http://ad.adverticum.net/g3.js"===t[n].src||"https://ad.adverticum.net/g3.js"===t[n].src||"//ad.adverticum.net/g3.js"===t[n].src)return e.log("GaA script detected"),!0;return!1},initGAM:function(){e.log("init GAM"),window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.apiReady||e.GAMScriptDetectedOnPage()||e.loadGPTScript();var t=[],n=null;googletag.cmd.push((function(){try{e.options.gamSlots.forEach((function(n){var r=document.querySelector(e.widgetSelector()+' div[data-zone="'+n.slotId+'"]'),i=k("div",{id:n.divId});r.appendChild(i),e.log("GAM slot created: "+n.divId);var o=googletag.defineSlot(n.slotId,["fluid"],n.divId);o?(o.addService(googletag.pubads()),t.push(n.slotId)):(e.log("GAM defineSlot returned null for: "+n.slotId),e.fillEmptyZones(n.slotId))})),googletag.enableServices(),googletag.pubads().addEventListener("slotRenderEnded",(function(r){var i=r.slot.getAdUnitPath();t.includes(i)&&(clearTimeout(n),e.log("GAM slot loaded: "+i),r.isEmpty&&(e.log("GAM slot empty: "+i),e.fillEmptyZones(i)))})),e.options.gamSlots.forEach((function(e){googletag.display(e.divId)})),n=setTimeout((function(){e.log("Checking GAM slots...");var n=googletag.pubads().getSlots().filter((function(e){return t.includes(e.getAdUnitPath())&&""===e.getEscapedQemQueryId()}));e.log(n?"Refreshing GAM slots...":"No need to refresh GAM slots"),googletag.pubads().refresh(n)}),2e3)}catch(e){console.error("Error in GAM init: ",e)}}))},loadGPTScript:function(t){var n=document.createElement("script");n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.async=!0,document.head.appendChild(n),e.log("GAM script loaded")},initGoa3:function(){var t=[];if(e.options.zoneIds.forEach((function(n){t.push({node:document.getElementById("rltdzone-"+e.options.hash+"-"+n),id:n})})),!e.goaScriptDetectedOnPage()){var n=document.createElement("script");n.src="//ad.adverticum.net/g3.js",document.getElementsByTagName("head")[0].appendChild(n),e.log("goAdverticum3 loaded")}e.goaInvocation(t)},sleep:function(e){return new Promise((function(t){return setTimeout(t,e)}))},goaInvocation:function(t){try{window.goAdverticum3.onReady((function(n){n.invocation(t,(function(t){e.log("ajax invocation ready"),e.goaCallback(t)}))}))}catch(n){setTimeout((function(){e.goaInvocation(t)}),100)}},fillEmptyZones:function(t){if(e.options.spareItems.length){var r=document.querySelector(e.widgetSelector()+' div[data-zone="'+t+'"]'),i=e.options.spareItems.pop(),o=i.getAttribute("id");r.parentElement.insertBefore(i,r),r.remove(),e.log("replaced empty zone: "+t),n.observeElements(e.widgetSelector()+' div[data-spare="1"][id="'+o+'"] span.rltd_image')}},fillEmptyProgrammatic:function(t){if(e.options.spareItems.length){var r=document.querySelector(e.widgetSelector()+' div[data-zone="'+t.zone+'"]');r.parentElement.insertBefore(e.options.spareItems.pop(),r),r.remove(),e.log("replaced empty zone: "+t.zone),n.observeElements(e.widgetSelector()+' div[data-spare="1"] span.rltd_image')}},initProgrammatic:function(){e.log("loding prebid..."),t.load(),e.log("perform bidding..."),t.bid()},fillWithProgrmmatic:function(n){e.log("loding prebid..."),t.load(),e.log("perform bidding..."),t.bid(e.options.adformZoneIds,n)},detectEmptyZones:function(t){for(var n=[],r=0;r<t.length;r++)n.push(t[r].zone);return e.options.zoneIds.filter((function(e){return-1==n.indexOf(parseInt(e))}))},goaCallback:function(t){var n=e.detectEmptyZones(t);n.length&&e.fillEmptyZones(n),0==e.options.show_lead&&e.removeLeadFromAds(),e.setTagText(),e.setTargetBlank(),e.initVideoAds()},initVideoAds:function(){document.querySelectorAll("."+e.options.cssid+'widget[data-widget-id="'+e.options.originalId+'"][data-hash="'+e.options.hash+'"] [data-x="1"] .rltd_video').forEach((function(t){var n=t.innerHTML,r=t.closest(e.options.cssid+"_item_container"),o=t.parentNode.querySelector(e.options.cssid+"_item").href;t.remove(),i.prepareSlot(r,r.getAttribute("id").slice(9),n,o)}))},setTagText:function(){document.querySelectorAll("."+e.options.cssid+'widget[data-widget-id="'+e.options.originalId+'"][data-hash="'+e.options.hash+'"] [data-x="1"] .'+e.options.cssid+"_item").forEach((function(t){var n,r=t.parentNode.querySelector("."+e.options.cssid+"_tag_title");r&&(n=r.innerHTML,r.remove());var i=t.parentNode.parentNode.parentNode.querySelector("."+e.options.cssid+"_tag");n&&(i.textContent=n),i.setAttribute("class",e.options.cssid+"_tag")}))},setTargetBlank:function(){document.querySelectorAll("."+e.options.cssid+'widget[data-widget-id="'+e.options.originalId+'"][data-hash="'+e.options.hash+'"] [data-x="1"] a.'+e.options.cssid+"_item").forEach((function(e){e.setAttribute("target","_blank")}))},removeLeadFromAds:function(){document.querySelectorAll("."+e.options.cssid+'widget[data-widget-id="'+e.options.originalId+'"][data-hash="'+e.options.hash+'"] .'+e.options.cssid+"_lead").forEach((function(e){e.remove()}))},widgetSelector:function(){return'.rltdwidget[data-widget-id="'+e.options.originalId+'"][data-hash="'+e.options.hash+'"] '}},t={log:function(t){var n=new FormData;n.append("wid",e.options.id),n.append("aid",t.creativeId),n.append("title",t.native.title?t.native.title:""),n.append("body",t.native.body?t.native.body:""),n.append("url",t.native.clickUrl?t.native.clickUrl:""),n.append("image",t.native.image?t.native.image.url:""),e.sendTrackingBeacon("/track/adform",n)},load:function(){e.loadJS("/js/rltdpbjs"+e.options.prebidver+".js"),e.log("pbjs loaded")},mock:function(e){var t=new XMLHttpRequest;return t.open("GET","/"+e+".json",!1),t.send(),JSON.parse(t.response)},addAdformUnits:function(e,t){window.rltdpbjs.addAdUnits({code:e,mediaTypes:{native:{title:{required:!0,len:120},image:{required:!0,aspect_ratios:[{min_width:200,min_height:200,ratio_width:6,ratio_height:5}]},body:{required:!1},clickUrl:{required:!0}}},bids:[{bidder:"adformOpenRTB",params:{mid:t}}]})},placeAd:function(t,r){var i=e.options.rltd.querySelector('div[data-zone="'+r.zone+'"]');e.createAdformSlot(i,t.native),e.log("filled with programmatic: "+r.zone),n.adView([e.options.cssid+"-ad-"+r.id]),n.observeElements(e.widgetSelector()+' div[data-zone="'+r.zone+'"] span.rltd_image')},bid:function(){window.rltdpbjs=window.rltdpbjs||{},window.rltdpbjs.que=window.rltdpbjs.que||[],window.rltdpbjs.que.push((function(){window.rltdpbjs.setConfig({debug:e.options.debug});for(var n=[],r=0;r<e.options.adformZoneIds.length;r++)t.addAdformUnits(e.options.adformZoneIds[r].id,e.options.adformZoneIds[r].zone),n.push(e.options.adformZoneIds[r]);window.rltdpbjs.requestBids({bidsBackHandler:function(r,i,o){e.log("bidder response ok"),n.forEac
1h((function(n){var r=window.rltdpbjs.getHighestCpmBids(n.id)[0];if(void 0===r)return e.fillEmptyProgrammatic(n),e.log(n.zone+" resulted no bid");t.placeAd(r,n),t.log(r)}))}})}))},bidOld:function(n,r){window.rltdpbjs=window.rltdpbjs||{},window.rltdpbjs.que=window.rltdpbjs.que||[],window.rltdpbjs.que.push((function(){e.options.debug&&window.rltdpbjs.setConfig({debug:!0});for(var i=[],o=0;o<r.length&&n[o];o++)t.addAdformUnits(n[o].id,n[o].zone),i.push(n[o]);window.rltdpbjs.requestBids({bidsBackHandler:function(n,o,a){e.log("bidder response ok"),i.forEach((function(n){var i=window.rltdpbjs.getHighestCpmBids(n.id)[0];if(void 0===i)return e.log(n.zone+" resulted no bid");t.replace(i,n,r.pop()),t.log(i)})),e.log("fill empty slots"),r&&e.fillEmptyZones(r)}})}))},replace:function(t,r,i){var o=document.querySelector(e.widgetSelector()+' div[data-zone="'+i+'"]');o.parentElement.insertBefore(e.createSlot({ad:1,type:"adform",zone:r.zone,native:t.native,id:r.id}),o),o.remove(),e.log("replaced goa zone to adform: "+r.zone),n.observeElements(e.widgetSelector()+' div[data-zone="'+r.zone+'"] span.rltd_image'),n.adView([e.options.cssid+"-ad-"+r.id])}},n={observer:null,timers:[],nextWidgetLoader:function(){var t=new IntersectionObserver((function(n){n.forEach((function(n){n.isIntersecting&&(e.log("Inserting next widget"),e.insertNextWidget(),t.unobserve(n.target))}))}),{rootMargin:"400px",threshold:0});t.observe(e.options.rltd.querySelector(".rltd_item_container:last-of-type"))},lazyload:function(e){e.forEach((function(e){e.intersectionRatio>0&&(e.target.setAttribute("style","background-image: url('"+e.target.getAttribute("data-src")+"')"),e.target.removeAttribute("data-src"),n.observer.unobserve(e.target))}))},initLazyLoad:function(){n.observer=new IntersectionObserver(n.lazyload,{rootMargin:"400px",threshold:0}),n.observeElements(e.widgetSelector().replace("rltd",e.options.cssid)+" span."+e.options.cssid+"_image")},observeElements:function(e){document.querySelectorAll(e).forEach((function(e){n.observer.observe(e)}))},calculateWidgetViewTreshold:function(){return e.options.rltd.offsetHeight>window.innerHeight?window.innerHeight/2/e.options.rltd.offsetHeight:.5},widgetView:function(){var t=new IntersectionObserver((function(r){r.forEach((function(r){r.isIntersecting?n.timers.widget=setTimeout((function(){t.unobserve(r.target),e.trackView()}),1e3):clearTimeout(n.timers.widget)}))}),{threshold:n.calculateWidgetViewTreshold()});t.observe(e.options.rltd)},adView:function(t){var r=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting?n.timers[t.target.id]=setTimeout((function(){r.unobserve(t.target),e.trackAdView(t.target.id.substring(8))}),1e3):clearTimeout(n.timers[t.target.id])}))}),{threshold:.5});t.forEach((function(e){r.observe(document.getElementById(e))}))},adImpression:function(t){var r=new IntersectionObserver((function(i){i.forEach((function(i){i.isIntersecting?n.timers[i.target.id]=setTimeout((function(){r.unobserve(i.target),e.externalImpression(i.target.id,t[i.target.id].impTrackers)}),1e3):clearTimeout(n.timers[i.target.id])}))}),{threshold:.5});Object.keys(t).forEach((function(n){if(t[n].impTrackType&&t[n].impTrackers)return"av"==t[n].impTrackType?e.externalImpression(n,t[n].impTrackers):void r.observe(document.getElementById(n))}))},observeEmptyR2B2:function(){var t=new MutationObserver((function(t){t.forEach((function(t){if("attributes"===t.type&&"data-empty"==t.attributeName){var n=t.target.attributes.getNamedItem("data-zone").value;e.fillEmptyZones(n)}}))}));document.querySelectorAll("."+e.options.cssid+'widget[data-widget-id="'+e.options.originalId+'"][data-hash="'+e.options.hash+'"] .'+e.options.cssid+'_item_container[data-x-type="r2b2"]').forEach((function(e){t.observe(e,{attributes:!0})}))}},i={timers:[],intervals:[],progresses:[],player:null,playpromise:null,logger:[],volumeControl:null,progressBar:null,externalScript:null,init:function(t,n,r,o,a,l,s){if(1!=e.options.rltd.getAttribute("data-video-init")){e.options.rltd.setAttribute("data-video-init",1),i.clearOldElements(),e.loadCSS("/css/video.css?v=11");var c=document.getElementsByTagName("body")[0],d=k("div",{id:"rltd_video_loader_container",style:"display:none;"}),u=k("div",{class:"rltd_loader"});c.appendChild(d),d.appendChild(u);var p=k("div",{id:"rltd_video_inner"});i.videoContainer=k("div",{id:"rltd_video_container",style:"display:none;"});var f=k("div",{id:"rltd_unmute_video"}),h=k("div",{id:"rltd_mute_video"});i.closeVideo=k("div",{id:"rltd_close_video",class:"rltd_close_disabled","data-timer":l});var m=k("div",{class:"rltd-video-controls"});i.clickTracker=k("a",{id:"rltd_click_tracker",target:"_blank",href:r}),i.clickTrackerCTA=k("a",{id:"rltd_click_tracker_button",target:"_blank",href:r}),i.continueButton=k("span",{class:"rltd-video-continue-button"}),i.volumeControl=k("input",{class:"rltd_volume",value:0,type:"range"}),i.progressBar=k("div",{class:"rltd-video-progress-bar"}),i.timerBar=k("div",{class:"rltd-video-timer"}),"undefined"!=o&&""!=o&&null!=o||(o="További információk"),"undefined"!=a&&""!=a&&null!=a||(a=new URL(r).hostname),i.clickTrackerCTA.innerHTML=o+" &raquo;<br><span>("+a+")</span>",i.continueButton.innerHTML='<i class="rltd_continue"></i> Videó folytatása',i.closeVideo.innerHTML="BEZÁRÁS",m.appendChild(h),m.appendChild(f),m.appendChild(i.volumeControl),p.appendChild(i.clickTracker),p.appendChild(i.clickTrackerCTA),p.appendChild(i.continueButton),p.appendChild(m),p.appendChild(i.progressBar),p.appendChild(i.timerBar),p.appendChild(i.closeVideo),i.videoContainer.appendChild(p),c.appendChild(i.videoContainer),i.clickTracker.addEventListener("click",i.handleVideoClick),i.clickTrackerCTA.addEventListener("click",(function(e){i.handleCT(t,r,s)})),h.addEventListener("click",i.muteVideoHandler),f.addEventListener("click",i.unmuteVideoHandler),i.volumeControl.addEventListener("input",i.volumeControlHandler),i.continueButton.addEventListener("click",i.continueHandler)}},clearOldElements:function(){var e=document.getElementById("rltd_video_container"),t=document.getElementById("rltd_video_loader_container");e&&e.remove(),t&&t.remove()},continueHandler:function(){i.clickTracker.click()},volumeControlHandler:function(e){i.player.setVolume(this.value/100),0==e.target.value?i.muteVideo():i.unmuteVideo()},pauseVideo:function(){i.clickTracker.style.backgroundColor="rgba(0,0,0,0.5)",i.continueButton.style.display="flex",i.clickTrackerCTA.classList.add("rltd-cta-center"),i.player.pause()},continueVideo:function(){i.clickTracker.style.backgroundColor="transparent",i.continueButton.style.display="none",i.clickTrackerCTA.classList.remove("rltd-cta-center"),i.player.play()},handleCT:function(t,n,r){e.trackCT(1,e.options.cssid+"-ad-"+t,n,null,r),i.player.getEnded().then((function(e){e||i.pauseVideo()}))},handleVideoClick:function(e){e.preventDefault(),i.player.getEnded().then((function(e){e?i.clickTrackerCTA.click():i.player.getPaused().then((function(e){e?i.continueVideo():i.pauseVideo()}))}))},handleView:function(t,n){if(i.logger[t]>=n)return!1;e.log("trck videoview: "+n+" "+t);var r=new FormData;r.append("wid",e.options.id),r.append("aid",t),r.append("uuid",e.options.uuid),r.append("type",n),e.sendTrackingBeacon("/track/videoview",r),i.logger[t]=n},muteVideoHandler:function(e){e.preventDefault(),i.muteVideo()},unmuteVideoHandler:function(e){e.preventDefault(),i.unmuteVideo()},handleCloseVideo:function(e){e.preventDefault(),i.playpromise&&i.playpromise.then((function(e){i.player.pause()})),document.getElementsByClassName("rltd-iframe-holder")[0]&&document.getElementsByClassName("rltd-iframe-holder")[0].remove(),document.getElementById("rltd_video_container").style.display="none"},muteVideo:function(){i.player.setMuted(!0),i.volumeControl.value=0,document.getElementById("rltd_mute_video").style.display="none",document.getElementById("rltd_unmute_video").style.display="block"},unmuteVideo:function(){i.player.setMuted(!1),i.player.getVolume().then((function(e){i.volumeControl.value=100*e})),document.getElementById("rltd_mute_video").style.display="block",document.getElementById("rltd_unmute_video").style.display="none"},prepareSlot:function(t,n,r,o,a,l,s,c,d,u,p){i.provider=c,i.externalScript=s,t.setAttribute("data-video",r),t.setAttribute("data-provider",c),t.removeEventListener("click",e.trackCTHandler),i.init(n,r,o,a,l,u,p),"vimeo"==c&&i.loadVideo(r,c),i.createProgressBar(t,r),1==d&&(t.addEventListener("mouseover",(function(e){i.handleHover(e,r,n)})),t.addEventListener("mouseout",(function(e){i.handleHoverOut(e,r)}))),t.addEventListener("click",(function(e){i.handleClick(e,r,n)}))},handleHover:function(e,t,n){if(!i.intervals[t]){var r=parseInt(i.progresses[t].getAttribute("progress"));i.intervals[t]=setInterval((function(){r+=10,i.progresses[t].setAttribute("progress",r),r>=100&&clearInterval(i.intervals[t])}),200)}i.timers[t]||(i.timers[t]=window.setTimeout((function(){i.timers[t]=null,i.handleClick(e,t,n)}),2200))},handleHoverOut:function(e,t){i.timers[t]&&(window.clearTimeout(i.timers[t]),i.timers[t]=null),i.intervals[t]&&(window.clearInterval(i.intervals[t]),i.progresses[t].setAttribute("progress",0),i.intervals[t]=null)},loadVideo:function(e){i.player=new s.a("rltd_video_inner",{id:e,controls:!1,loop:!1,responsive:!0,api:1,muted:!0}
1)},loadExternalScript:function(){if(i.externalScript){var t=k("div",{class:"rltd-ext-script",style:"display:none;"});t.innerHTML=i.externalScript,e.options.rltd.appendChild(t)}},enableClose:function(){i.closeVideo.addEventListener("click",i.handleCloseVideo),i.closeVideo.classList.remove("rltd_close_disabled"),i.closeVideo.innerHTML="BEZÁRÁS",i.videoContainer.addEventListener("click",(function(e){event.target===this&&i.handleCloseVideo(e)}))},countDownClose:function(){if(i.closeVideo.classList.contains("rltd_close_disabled")){var e=parseInt(i.closeVideo.getAttribute("data-timer"),10);if(!e)return this.enableClose();var t=0;i.closeVideo.innerHTML="BEZÁRÁS&nbsp;&nbsp;&nbsp;&nbsp;"+(e-t);var n=setInterval(function(){t++,i.closeVideo.innerHTML="BEZÁRÁS&nbsp;&nbsp;&nbsp;&nbsp;"+(e-t),t===e&&(i.enableClose(),clearInterval(n))}.bind(this),1e3)}},sendBackMaxZindexedElements:function(){Array.from(document.querySelectorAll(".adsbygoogle,.demand-supply__sd")).forEach((function(e){2147483647==e.style["z-index"]&&(e.style.zIndex=2147483646)}))},hideExitPopupContainer:function(){var e=document.getElementsByClassName("extpp-container");1===e.length&&(e[0].style.display="none")},handleClick:function(e,t,n){e.preventDefault(),i.sendBackMaxZindexedElements(),i.hideExitPopupContainer(),i.countDownClose();var r=document.getElementById("rltd_video_container"),o=document.getElementById("rltd_video_loader_container"),a=parseInt(i.closeVideo.getAttribute("data-timer"),10);if(o.style.display="block",i.handleView(n,1),i.loadExternalScript(),"youtube"==i.provider){if(i.clickTracker.style.display="none",document.getElementsByClassName("rltd-video-controls")[0].style.display="none",!document.getElementById("rltd-youtube-video")){var l=k("div",{class:"rltd-iframe-holder",style:"padding:56.25% 0 0 0;position:relative;"}),s=k("iframe",{id:"rltd-youtube-video",src:"https://www.youtube.com/embed/"+t+"?controls=1&rel=0&title=0",frameborder:0,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:"",style:"position:absolute;top:0;left:0;width:100%;height:100%;"});l.appendChild(s),document.getElementById("rltd_video_inner").appendChild(l)}return i.clickTrackerCTA.classList.add("rltd-click-tracker-yt"),o.style.display="none",void(r.style.display="flex")}i.player.ready().then((function(){i.playpromise=i.player.play(),o.style.display="none",r.style.display="flex",i.clickTrackerCTA.style.display="block",document.getElementsByClassName("rltd-video-controls")[0].style.display="block",i.progressBar.style.display="block",i.timerBar.style.display="block",i.player.getDuration().then((function(e){i.timerBar.innerHTML=_(e),i.timerBar.style.display="block"}))}));var c=!1,d=!1;i.player.on("timeupdate",(function(e){i.setVideoProgress(e),e.seconds>a&&i.closeVideo.classList.contains("rltd_close_disabled")&&i.enableClose(),e.seconds>2&&!c&&(c=!0,i.handleView(n,2)),e.percent>.5&&!d&&(d=!0,i.handleView(n,3))})),i.player.on("ended",(function(e){i.clickTracker.style.cursor="pointer",i.clickTrackerCTA.style.display="none",document.getElementsByClassName("rltd-video-controls")[0].style.display="none",i.progressBar.style.display="none",i.timerBar.style.display="none",i.handleView(n,4)}))},setVideoProgress:function(e){i.progressBar.style.width=100*e.percent+"%",i.player.getDuration().then((function(t){i.timerBar.innerHTML=_(Math.round(t)-Math.round(e.seconds))}))},createProgressBar:function(t,n){i.progresses[n]=k("rltd-progress-ring",{stroke:4,radius:30,progress:0}),t.querySelector("."+e.options.cssid+"_image").appendChild(i.progresses[n])}},o=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);return(e=Y(this,t))._circumference=54*Math.PI,e._root=e.attachShadow({mode:"open"}),e._root.innerHTML='\n      <svg\n        height="'.concat(74,'"\n        width="').concat(74,'"\n        style="position: absolute;margin-left: -32px;margin-top: -20px;top: calc(50% - 12px);left: calc(50% - 8px);z-index:0;">\n         <circle\n           stroke="#33b5af"\n           stroke-dasharray="').concat(e._circumference," ").concat(e._circumference,'"\n           style="transition: stroke-dashoffset 0.35s;transform: rotate(-90deg);transform-origin: 50% 50%;position:absolute;stroke-dashoffset:').concat(e._circumference,'"\n           stroke-width="').concat(4,'"\n           fill="transparent"\n           r="').concat(27,'"\n           cx="').concat(35,'"\n           cy="').concat(35,'"\n        />\n      </svg>'),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(t,e),n=t,i=[{key:"observedAttributes",get:function(){return["progress"]}}],(r=[{key:"setProgress",value:function(e){var t=this._circumference-e/100*this._circumference;this._root.querySelector("circle").style.strokeDashoffset=t}},{key:"attributeChangedCallback",value:function(e,t,n){"progress"===e&&this.setProgress(n)}}])&&G(n.prototype,r),i&&G(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(J(HTMLElement));customElements.get("rltd-progress-ring")||window.customElements.define("rltd-progress-ring",o);try{var a=e.findFillableWidget();a?e.init(a):window.addEventListener("DOMContentLoaded",(function(){var t=e.findFillableWidget();t&&e.init(t)}))}catch(e){console.error("|related| widget init error: ",e)}}()},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n}})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.