PageSourceSearch

https://static1.dn.no/dn/static/assets/scripts/investor/ads-2.min.js?v=2.11.0&7fa5eb6

js dn.no collected 2026-09-24 08:45:50 UTC 11,495 bytes, 2 lines download raw bytes

1!function i(a,c,u){function s(e,t){if(!c[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=c[e]={exports:{}};a[e][0].call(o.exports,function(t){return s(a[e][1][t]||t)},o,o.exports,i,a,c,u)}return c[e].exports}for(var l="function"==typeof require&&require,t=0;t<u.length;t++)s(u[t]);return s}({1:[function(t,e,r){"use strict";function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){j=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,d=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i,a,c,u,o=e&&e.prototype instanceof p?e:p,s=Object.create(o.prototype),l=new _(n||[]);return d(s,"_invoke",{value:(i=t,a=r,c=l,u="suspendedStart",function(t,e){if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return A()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=x(r,c);if(n){if(n===h)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=f(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===h)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=c;var h={};function p(){}function u(){}function s(){}var v={};i(v,o,function(){return this});var y=Object.getPrototypeOf,m=y&&y(y(k([])));m&&m!==t&&l.call(m,o)&&(v=m);var g=s.prototype=p.prototype=Object.create(v);function w(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function b(u,s){var e;d(this,"_invoke",{value:function(r,n){function t(){return new s(function(t,e){!function e(t,r,n,o){var i=f(u[t],u,r);if("throw"!==i.type){var a=i.arg,c=a.value;return c&&"object"==O(c)&&l.call(c,"__await")?s.resolve(c.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):s.resolve(c).then(function(t){a.value=t,n(a)},function(t){return e("throw",t,n,o)})}o(i.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(l.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return d(g,"constructor",{value:u.prototype=s,configurable:!0}),d(s,"constructor",{value:u,configurable:!0}),u.displayName=i(s,n,"GeneratorFunction"),a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===u||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,i(t,n,"GeneratorFunction")),t.prototype=Object.create(g),t},a.awrap=function(t){return{__await:t}},w(b.prototype),i(b.prototype,r,function(){return this}),a.AsyncIterator=b,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new b(c(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},w(g),i(g,n,"Generator"),i(g,o,function(){return this}),i(g,"toString",function(){return"[object Generator]"}),a.keys=function(t){var r=Object(t),n=[];for(var e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=k,_.prototype={constructor:_,reset:function(t){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.forEac
1h(L),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=l.call(o,"catchLoc"),c=l.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},a}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}!function(){function t(t){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=t;var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)}t("https://lwadm.com/lw/pbjs?pid=3e96150e-4822-476e-adc5-fb9aa76f97d6"),t("https://cdn.insurads.com/bootstrap/K4XZJD30.js")}(),window.lwhb=window.lwhb||{cmd:[]},window.googletag=window.googletag||{cmd:[]};var i={},a={};window.googletag.cmd.push(function(){window.googletag.pubads().setCentering(!0),window.googletag.pubads().collapseEmptyDivs();var t=navigator.userAgent,e={dn_investor_version:["new"]};t.includes("DNApp")&&(t.includes("Android")||t.includes("iOS"))&&(e.app_name="dn",e.app_environment=t.includes("Android")?"Android":"iOS"),window.googletag.setConfig({targeting:e}),window.googletag.pubads().addEventListener("slotRenderEnded",function(t){var e=a[t.slot.getSlotElementId()]||null;e&&e(!!t.isEmpty)})}),window.lwhb.cmd.push(function(){var t,e,r;function l(t,e){if(!e.active||!e.url||!e.height)return!1;var r=document.createElement("iframe");if(r.setAttribute("style","width: 100%; border: none; height: ".concat(e.height,"px")),r.setAttribute("scrolling","no"),r.setAttribute("width","100%"),r.setAttribute("allowtransparency","true"),r.setAttribute("allowfullscreen","true"),r.setAttribute("src",e.url),t.element.appendChild(r),e.disclaimer){var n=document.createElement("div");n.setAttribute("style","padding: 1rem 2rem; font-size: 12px; color: #767980;");var o=document.createElement("button");o.textContent="Disclaimer +";var i=document.createElement("p");i.setAttribute("style","white-space: pre-line;"),i.textContent=e.disclaimer,o.onclick=function(){n.innerHTML="",n.appendChild(i)},n.appendChild(o),t.element.appendChild(n)}return!0}function n(){var c;return c=j().mark(function t(e,r){var n,o,i,a,c,u,s;return j().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o="test"===(null===(n=e.pageInfo)||void 0===n?void 0:n.env)?"https://pulstest.dn.no/bulletinfeed/165/initial":"https://investor.dn.no/bulletinfeed/50/initial",t.prev=1,t.next=4,fetch(o);case 4:if((c=t.sent).ok){t.next=7;break}throw new Error("Transport error");case 7:return t.next=9,c.json();case 9:if(u=t.sent,(s=null==u?void 0:null===(i=u.result)||void 0===i?void 0:null===(a=i.channelContent)||void 0===a?void 0:a.dnInvestorOverrideAd)&&l(e,s))return t.abrupt("return",f(!1,!0));t.next=13;break;case 13:t.next=17;break;case 15:t.prev=15,t.t0=t.catch(1);case 17:return t.abrupt("return",d(e,r));case 18:case"end":return t.stop()}},t,null,[[1,15]])}),(n=function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){u(n,e,r,o,i,"next",t)}function i(t){u(n,e,r,o,i,"throw",t)}o(void 0)})}).apply(this,arguments)}function d(n,o){return new Promise(function(e){var t,r;
1n.element.id=o,a[o]=function(t){e(f(t,!t));try{n.element.style.textAlign="center",n.element.getElementsByTagName("iframe")[0].style.margin="0 auto"}catch(t){}},i[o]?window.lwhb.refresh(o):(i[o]=!0,(t=o,r=["desktop","mobil"],t.endsWith("-desktop")?r.pop():t.endsWith("-mobil")&&r.shift(),r).forEach(function(t){window.lwhb.loadAd({tagId:o,adUnitName:o.replace("dn_","dn_".concat(t,"-")).replace("-desktop","").replace("-mobil",""),ignoreVisibility:!0})}))})}function f(t,e){return{isEmpty:!!t,showAdLabel:!!e}}(null!==(t=window.pulseEvents)&&void 0!==t?t:null!==(r=(e=window).pulseEventsQueue)&&void 0!==r?r:e.pulseEventsQueue=[]).push(function(t){t.subscribeFunction("render-ad",function(t){switch(t.placement){case"test":return f(!(t.element.innerHTML="Ad rendererd by sidecar!"),!0);case"full-width":return d(t,"dn_brandboard-investor");case"topbanner":return d(t,"dn_toppbanner-investor");case"side-bar":return function(t,e){return n.apply(this,arguments)}(t,"dn_nettboard-investor");case"overview-editorial-feed":return d(t,"dn_banner-nyhetsstudio-feed-investor-desktop");case"assets-list":return d(t,"dn_banner-kurser-feed-investor");case"ticker-statistics":return d(t,"dn_banner-kurs-investor");case"favorites-desktop":return d(t,"dn_banner-favoritter-investor-desktop")}return f(!0,!1)})})})},{}]},{},[1]);
2//# sourceMappingURL=ads-2.min.js.map

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.