additnalgnpmis.com Open in urlscan Pro
2606:4700:3031::ac43:893a  Public Scan

URL: https://additnalgnpmis.com/_nuxt/BUBvW-Jo.js
Submission: On December 12 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

function h(){return new URLSearchParams(window.location.search).has("debug")}function i(...t){h()&&console.debug(`[${window.name||"root"}]`,...t)}const g=[{landing:"stream_uuid",backlink:"stream_uuid"},{landing:"googleIdTh",backlink:"lna-surfer-uuid"},{landing:"googleIdTh",backlink:"surfer_uuid"},{landing:"thank_you_page",backlink:"thank_you_page"},{landing:"lf_utm_source",backlink:"utm_source"},{landing:"lf_utm_medium",backlink:"utm_medium"},{landing:"lf_utm_campaign",backlink:"utm_campaign"},{landing:"lf_utm_content",backlink:"utm_content"},{landing:"lf_utm_term",backlink:"utm_term"},{landing:"lf_subid1",backlink:"subid1"},{landing:"lf_subid2",backlink:"subid2"},{landing:"lf_subid3",backlink:"subid3"},{landing:"lf_subid4",backlink:"subid4"},{landing:"lf_subid5",backlink:"subid5"},{landing:"kit",backlink:"kit"},{landing:"debug",backlink:"debug"},{landing:"tup",backlink:"tup"}];function w(t){const e=new URL(t),n=e.searchParams,a=new URL(window.location.href).searchParams;return a.has("googleIdTh")?(i("set no-trek"),n.set("no-trek","1")):(i("set trek"),n.set("trek","1")),g.forEach(function(r){const d=a.get(r.landing);d&&n.set(r.backlink,d)}),e.search=n.toString(),e.toString()}function b(){const t=new URL(window.location.href);return t.searchParams.set("from_backlink","1"),t.toString()}function p(){window.history.replaceState(window.history.state,"",b())}const s="newsFrame";function y(){return!!window.top.frames[s]}const c={frame:document.createElement("iframe"),recreateFrame(){this.frame.remove(),this.frame=document.createElement("iframe"),this.frame.src=""},hideRootPageContent(){i("Hide root page content"),document.body.style.overflow="hidden",document.querySelectorAll(`body > *:not(#${s})`).forEach(function(t){t.setAttribute("style","display:none;")})},initBacklinkFrame(){this.recreateFrame(),i(`Init frame named '${s}'`),this.frame.id=s,this.frame.name=s,this.frame.style.width="100%",this.frame.style.height="100vh",this.frame.style.position="fixed",this.frame.style.top="0",this.frame.style.left="0",this.frame.style.border="none",this.frame.style.zIndex="-1",this.frame.style.display="block",this.frame.style.opacity="0",this.frame.style.backgroundColor="#fff",this.frame.src="",document.body.append(this.frame),this.frame.onload=()=>c.setVisibility("show")},setVisibility(t){const e=t==="hide"?"0":"1",n=t==="hide"?"-1":"999997";this.frame.style.opacity=e,this.frame.style.zIndex=n},setFrameUrl(t){this.frame.src=t}};var l=(t=>(t[t.UPDATE_BACKLINK_OPTIONS=0]="UPDATE_BACKLINK_OPTIONS",t))(l||{});function _(t){return JSON.stringify(t)}function I(t){try{const e=JSON.parse(t);if(typeof e!="object"||!Object.keys(e).includes("operation")||!Object.keys(l).includes(e.operation.toString()))throw new Error;return e}catch{return null}}function P(t){window.parent.postMessage(_(t),"*")}function S(t,e){function n(a){const r=I(a.data);r&&t(r)}return e.addEventListener("message",n),()=>e.removeEventListener("message",n)}function v(t){t.sendInitMessages&&P({operation:l.UPDATE_BACKLINK_OPTIONS,payload:t})}const T="NOVOSTI24",m=1,O={_timeout:null,forward(){this._timeout&&clearTimeout(this._timeout),this._timeout=setTimeout(()=>window.history.forward())}};function E(){try{i(`Add to history ${m.toString()} items`);const t={eventStateName:T,origin:window.location.href};for(let e=0;e<m;++e)window.history.pushState(t,"",t.origin)}catch(t){console.warn(t)}}const o={url:location.href};function f({url:t,mapQueryParams:e,registerBacklink:n}){t!==void 0&&(o.url=t),e!==void 0&&(o.mapQueryParams=e),n!==void 0&&(o.registerBacklink=n)}function B(){window.onpopstate===k&&E()}function L(t){const e=()=>{i(`Trigger = ${t}`),B()};switch(t){case"timeout":setTimeout(e,1500);break;case"init":e();break;default:window.addEventListener(t,e,{once:!0})}}function k(t){t.preventDefault(),i("On first popstate"),window.onpopstate=u,c.hideRootPageContent(),u(t)}function N(t){t.preventDefault(),i("Stub popstate handler"),o.registerBacklink&&p(),window.onpopstate=u}function A(t){if(!o.mapQueryParams)return t;const e=w(t);return i(`Mapped url = ${e}`),e}function u(t){t.preventDefault(),window.onpopstate=N;const e=A(o.url||window.location.href);i(`History length is ${window.history.length.toString()}`),i(`Back to ${e}`),c.initBacklinkFrame(),c.setFrameUrl(e),O.forward()}function U(t){f(t),window.onpopstate=k,S(({operation:e,payload:n})=>{switch(e){case l.UPDATE_BACKLINK_OPTIONS:f(n);break}},window)}function K(t,e=!0,n=!1){const a=y();a||(U({url:t,mapQueryParams:e,registerBacklink:n}),i("Init master backlink"),["init","timeout","click","touchstart","scroll"].forEach(L)),v({url:t,sendInitMessages:a,registerBacklink:n,mapQueryParams:e}),i("Init slave backlink")}export{i as debugLog,K as initBacklink,h as isDebugEnabled};