1/*! 2 * iframemanager v1.1.0 3 * Author Orest Bida 4 * Released under the MIT License 5 */ 6!function(){'use strict';var n={},i=[],t=[],r=!1,o='',e=null,c=[],a=document,f=['onload','onerror','src'];function u(n){var i=n.dataset,t={};for(var r in i)0===r.lastIndexOf('iframe')&&(t[r.slice(6).toLowerCase()]=i[r]);return{i:i.id,t:i.title,o:i.thumbnail,u:i.params,v:'thumbnailpreload'in i,l:'autoscale'in i,p:n,m:null,h:!1,_:!1,g:!0,I:t}}function v(i,t){var r=n[i];if('IntersectionObserver'in window){var o=new IntersectionObserver((function(n){n.forEach((function(n){n.isIntersecting&&(s(t,r[n.target.dataset.index]),o.unobserve(n.target))}))}));r.forEach((function(n){o.observe(n.p)}))}else for(var e=0;e<r.length;e++)s(t,r[e])}function s(n,i){if('string'==typeof i.o)i.v&&_(i.o),''!==i.o&&r(i.o);else if('function'==typeof n)n(i.i,(function(n){w(n),i.v&&_(n),r(n)}));else if('string'==typeof n){var t=n.replace('{data-id}',i.i);w(t),i.v&&_(t),r(t)}function r(n){i.m.style.backgroundImage='url(\''+n+'\')';var t=new Image;t.onload=function(){i.m.classList.add('loaded')},t.src=n}}function l(n,i){if(!n.h)if(n.h=!0,'function'!=typeof i.onAccept){n.O=g('iframe');var t=n.u||i.iframe&&i.iframe.params,r=(i.embedUrl||'').replace('{data-id}',n.i);n.t&&(n.O.title=n.t),t&&('ap:'===t.substring(0,3)?r+=t.substring(3):r+='?'+t);var o=i.iframe;for(var e in n.O.onload=function(){n.p.classList.add('c-h-b'),n.O.onload=void 0,o&&'function'==typeof o.onload&&o.onload(n.i,n.O)},o)d(n.O,e,o[e]);for(var c in n.I)d(n.O,c,n.I[c]);n.O.src=r,I(n.p,n.O)}else i.onAccept(n.p,(function(i){n.O=i,n.h=!0,n.p.classList.add('c-h-b')}))}function d(n,i,t){f.includes(i)||n.setAttribute(i,t)}function b(n){n.p.classList.add('c-h-n'),n.g=!1}var p=function(n){n.p.classList.remove('c-h-n','c-h-b'),n.g=!0},m=function(n){return(n=a.cookie.match('(^|;)\\s*'+n+'\\s*=\\s*([^;]+)'))?n.pop():''},h=function(n){return Object.keys(n)},w=function(n){var t=n.split('://'),r=t[0];if('http'===r||'https'===r){var o=t[1]&&t[1].split('/')[0]||!1;if(o&&o!==location.hostname&&-1===i.indexOf(o)){var e=g('link');e.rel='preconnect',e.href=r+'://'+o,I(a.head,e),i.push(o)}}};function _(n){if(n&&-1===t.indexOf(n)){var i=g('link');i.rel='preload',i.as='image',i.href=n,I(a.head,i),t.push(n)}}function g(n){return a.createElement(n)}function y(n,i){n.className=i}function I(n,i){n.appendChild(i)}var O=function(i,t,r){for(var e=n[i],c=e.length,f=t.languages,u=0;u<c;u++)!function(n){var c=e[n];if(!c._){var u=f[o].loadBtn,v=f[o].notice,s=f[o].loadAllBtn,d=a.createDocumentFragment(),p=g('div'),m=g('span'),h=g('p'),w=g('button'),_=g('button'),O=g('span'),k=g('div'),S=g('div'),x=g('div'),D=g('div'),L=g('div');w.type=_.type='button',y(O,'cc-text'),y(x,'c-bg-i'),c.m=x,y(S,'c-ld'),'string'==typeof c.o&&''===c.o||y(k,'c-bg');var P=c.t,j=a.createDocumentFragment();if(P){var M=g('span');y(M,'c-tl'),M.insertAdjacentHTML('beforeend',P),I(j,M)}function N(){b(c),l(c,t)}w.textContent=u,_.textContent=s,I(O,j),p&&O.insertAdjacentHTML('beforeend',v||''),I(m,O),y(D,'c-t-cn'),y(m,'c-n-t'),y(h,'c-n-c'),y(p,'c-nt'),y(L,'c-n-a'),y(w,'c-l-b'),y(_,'c-la-b'),I(L,w),I(L,_),I(D,m),I(D,L),I(h,D),I(p,h),w.addEventListener('click',(function(){N()})),_.addEventListener('click',(function(){N(),T.acceptService(i)})),I(k,x),I(d,p),(t.thumbnailUrl||c.o)&&I(d,k),I(d,S),r&&c.p.classList.add('c-h-n'),I(c.p,d),c._=!0}}(u)},k=function(i,t){var o,e=n[i];if('IntersectionObserver'in window){var c=new IntersectionObserver((function(n){if(r)c.disconnect();else for(var i=0;i<n.length;++i)n[i].isIntersecting&&function(i){setTimeout((function(){var r=n[i].target.dataset.index;l(e[r],t),b(e[r])}),50*i),c.unobserve(n[i].target)}(i)}));e.forEach((function(n){n.h||c.observe(n.p)}))}else for(var a=0;a<e.length;a++)o=a,l(e[a],t),b(e[o])},S=function(n,i){return i.hasOwnProperty(n)?n:h(i).length>0?i.hasOwnProperty(o)?o:h(i)[0]:void 0},T={acceptService:function(n){if(r=!1,'all'===n)for(var i=c.length,t=0;t<i;t++)o(n=c[t],e[n]);else c.indexOf(n)>-1&&o(n,e[n]);function o(n,i){m(i.cookie.name)||function(n){var i=new Date,t=n.path||'/',r=n.expiration||182,o=n.sameSite||'Lax',e=n.domain||location.hostname;i.setTime(i.getTime()+24*r*60*60*1e3);var c=' expires='+i.toUTCString(),f=n.name+'=1;'+c+'; Path='+t+';';f+=' SameSite='+o+';',e.indexOf('.')>-1&&(f+=' Domain='+e+';'),'https:'===location.protocol&&(f+=' Secure;'),a.cookie=f}(i.cookie),k(n,i)}},rejectService:function(i){if('all'===i){r=!0;for(var t=c.length,o=0;o<t;o++)f(i=c[o],e[i])}else c.indexOf(i)>-1&&f(i,e[i]);function f(i,t){var r,o,e;m(t.cookie.name)&&(o=(r=t.cookie).path||'/',e=r.domain||location.hostname,a.cookie=r.name+'=; Path='+o+'; Domain='+e+'; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'),function(i,t){for(var r,o,e=n[i],c=e.length,a=0;a<c;a++)r=a,o=void 0,e[a].h&&('function'==typeof t.onReject?(t.onReject(e[a].O),e[a
6].h=!1):((o=e[a]).O.parentNode.removeChild(o.O),o.h=!1)),p(e[r])}(i,t)}},observe:function(n,i){var t=new MutationObserver((function(r){r.forEach((function(r){if('childList'===r.type)return setTimeout((function(){i(n.querySelector('iframe'))}),300),void t.disconnect()}))}));n.querySelector('iframe')?setTimeout((function(){i(n.querySelector('iframe'))}),300):t.observe(n,{attributes:!1,childList:!0,subtree:!1})},run:function(i){e=i.services;var t=(c=h(e)).length;if(0!==t){o=i.currLang;var r=e[c[0]].languages;!0===i.autoLang?o=S(navigator.language.slice(0,2).toLowerCase(),r):'string'==typeof i.currLang&&(o=S(i.currLang,r));for(var f=0;f<t;f++){var s=c[f];n[s]=[];var l=a.querySelectorAll('div[data-service="'+s+'"]'),d=l.length;if(0!==d){for(var b=0;b<d;b++)l[b].dataset.index=b,n[s].push(u(l[b]));var p=e[s],w=p.cookie.name;m(w)?(O(s,p,!0),k(s,p)):O(s,p,!1),v(s,p.thumbnailUrl)}}}}},x='iframemanager';window[x]=function(){return window[x]=void 0,T}}();
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.