@schibsted/advertory 3.3.4 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/{_auto-entry_aftenposten-CCYa5qCO.js → _auto-entry_aftenposten-PrECtemM.js} +1 -1
- package/aftenposten/es/{events-BLCjK5_l.js → events-DM-dLnwc.js} +1 -1
- package/{aftonbladet/es/index-C8lOZoEh.js → aftenposten/es/index-B5WmLwz_.js} +1 -1
- package/{aftonbladet/es/index-Cd_0F3xx.js → aftenposten/es/index-BMSyQKFH.js} +1 -1
- package/aftenposten/es/{index-CnucAm2M.js → index-CPj8GSvT.js} +1 -1
- package/aftenposten/es/{index-DKWpYWvD.js → index-CqJ8awGV.js} +1 -1
- package/aftenposten/es/{index-Ce8gRkAb.js → index-DWkN_zZ6.js} +1 -1
- package/aftenposten/es/index-DilSRyyW.js +1 -0
- package/aftenposten/es/{index-DNaG27B4.js → index-RFjMksPB.js} +1 -1
- package/aftenposten/es/{index-DHFU2z09.js → index-dmjdjH8U.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-Dq0IAg4Y.js → styles-B7RT1eSj.js} +1 -1
- package/aftenposten/es/{styles-dE0R9O3z.js → styles-BBYgUY2p.js} +1 -1
- package/aftenposten/es/{styles-DpsRMFBM.js → styles-BU9u4SZX.js} +1 -1
- package/aftenposten/es/{styles-BgV3rNzV.js → styles-B_OOnviu.js} +1 -1
- package/aftenposten/es/{styles-B_4EQAK1.js → styles-BaJt3FeV.js} +1 -1
- package/aftenposten/es/{styles-2N7WtLNY.js → styles-BdGgrZv4.js} +1 -1
- package/aftenposten/es/{styles-C9DSIUPK.js → styles-C-3aY8ro.js} +1 -1
- package/aftenposten/es/{styles-D3ytSJKn.js → styles-C77yB2f2.js} +1 -1
- package/aftenposten/es/{styles-BpN4DLa-.js → styles-DY8jvHB0.js} +1 -1
- package/aftenposten/es/{styles-tYqS-mIn.js → styles-DxIMLNCo.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-BY4Ddq6E.js → _auto-entry_aftenpostenv2-C0lqBo0_.js} +1 -1
- package/aftenpostenv2/es/{events-BQQHuFjG.js → events-DCy8TSrD.js} +1 -1
- package/aftenpostenv2/es/{index-Fm1Y6KIh.js → index-8w0ZRT86.js} +1 -1
- package/aftenpostenv2/es/{index-BOekcHYC.js → index-C4dIG6yU.js} +1 -1
- package/aftenpostenv2/es/{index-CQtn17Si.js → index-CSan6WeY.js} +1 -1
- package/{aftonbladetv2/es/index-BSewl4qK.js → aftenpostenv2/es/index-Caud7_FX.js} +1 -1
- package/aftenpostenv2/es/{index-xbCf75ce.js → index-D-De7yeP.js} +1 -1
- package/aftenpostenv2/es/{index-DE0SlWOz.js → index-DnZhT-mR.js} +1 -1
- package/aftenpostenv2/es/index-JmgS7MEK.js +1 -0
- package/aftenpostenv2/es/{index-DZrrAQRk.js → index-fnkmgGPz.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-BGZNc5Ee.js → styles-9bJP9_hd.js} +1 -1
- package/aftenpostenv2/es/{styles-CAaTPYL1.js → styles-B97orp9n.js} +1 -1
- package/aftenpostenv2/es/{styles-DR_PDnLF.js → styles-BdsRKFVS.js} +1 -1
- package/aftenpostenv2/es/{styles-5X49E71F.js → styles-C4yyYcJG.js} +1 -1
- package/aftenpostenv2/es/{styles-BGbL9vl6.js → styles-D8_NKtVZ.js} +1 -1
- package/aftenpostenv2/es/{styles-CwQJm_3L.js → styles-DOy-7miB.js} +1 -1
- package/aftenpostenv2/es/{styles-tAQWUcoA.js → styles-DdJcDRoq.js} +1 -1
- package/aftenpostenv2/es/{styles-p0wOTSXw.js → styles-De162MQr.js} +1 -1
- package/aftenpostenv2/es/{styles-CO4giW1y.js → styles-nSH5cJ72.js} +1 -1
- package/aftenpostenv2/es/{styles-DwGYzX3A.js → styles-v3x2ugDh.js} +1 -1
- package/aftenpostenv2/styles.css +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-rDQDfGKG.js → _auto-entry_aftonbladet-CF90d3sN.js} +1 -1
- package/aftonbladet/es/{events-CXN515PC.js → events-CeU3bZg9.js} +1 -1
- package/aftonbladet/es/index-BTCRjGr2.js +1 -0
- package/aftonbladet/es/{index-Dg6Rzgap.js → index-C3nPFt5y.js} +1 -1
- package/aftonbladet/es/index-DJLKpLdh.js +1 -0
- package/aftonbladet/es/{index-28eSYg48.js → index-DTV-hkDI.js} +1 -1
- package/aftonbladet/es/{index-CupGeWun.js → index-DbKSDFio.js} +1 -1
- package/{aftenposten/es/index-k5rSV7x-.js → aftonbladet/es/index-DcfWlrX0.js} +1 -1
- package/{aftenposten/es/index-CnCLjYTh.js → aftonbladet/es/index-b2Zqwolt.js} +1 -1
- package/aftonbladet/es/{index-B9RLvgXG.js → index-l8ItSYB9.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-D1bqA-7K.js → styles-085t9SLn.js} +1 -1
- package/aftonbladet/es/{styles-DJIX2IAF.js → styles-BItru-G9.js} +1 -1
- package/aftonbladet/es/{styles-CGl0nJqJ.js → styles-BzcCj_i1.js} +1 -1
- package/aftonbladet/es/{styles-DdkFz7RG.js → styles-CtaouHZC.js} +1 -1
- package/aftonbladet/es/{styles-DwPTPFfj.js → styles-D4GwoAEH.js} +1 -1
- package/aftonbladet/es/{styles-CRG5d5Q8.js → styles-DOOR0JQ6.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2--bchryRl.js +1 -0
- package/aftonbladetv2/es/{events-7sXGCVrh.js → events-kJuA9BQ3.js} +1 -1
- package/aftonbladetv2/es/{index-DKmiGroF.js → index-B_NuJkq3.js} +1 -1
- package/{aftenpostenv2/es/index-cGoBFC0y.js → aftonbladetv2/es/index-C5w_u00a.js} +1 -1
- package/aftonbladetv2/es/{index-B5UMWvqQ.js → index-CB0_ejWG.js} +1 -1
- package/aftonbladetv2/es/{index-Cx6rX7RI.js → index-CDD_4lUq.js} +1 -1
- package/aftonbladetv2/es/{index-C4igj1UL.js → index-CXuinLZu.js} +1 -1
- package/aftonbladetv2/es/{index-xaFE4oLZ.js → index-DCI-D_Tv.js} +1 -1
- package/aftonbladetv2/es/{index-UlzStgHV.js → index-Df5feLy8.js} +1 -1
- package/aftonbladetv2/es/index-Dw3_cFnu.js +1 -0
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-DYjpXVdC.js → styles-0_1sTESt.js} +1 -1
- package/aftonbladetv2/es/{styles-DFJqLNU_.js → styles-B4TWnE4-.js} +1 -1
- package/aftonbladetv2/es/{styles-N_6zYTF8.js → styles-BESbCGzD.js} +1 -1
- package/aftonbladetv2/es/{styles-N2POr-Wo.js → styles-C9wzZhqt.js} +1 -1
- package/aftonbladetv2/es/{styles-ecuvk-8i.js → styles-CCCcxESk.js} +1 -1
- package/aftonbladetv2/es/{styles-B6oNyo15.js → styles-D5gLGNdR.js} +1 -1
- package/aftonbladetv2/styles.css +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-Gk7QOLyd.js +1 -0
- package/bt/es/{events-DABYlt2a.js → events-BqlGsoB8.js} +1 -1
- package/{sa/es/index-BtZ05D4f.js → bt/es/index-1R9SDUvz.js} +1 -1
- package/bt/es/{index-CR0XxqsJ.js → index-63KAx4CU.js} +1 -1
- package/bt/es/{index-IdVyFrbD.js → index-8bbwcLN9.js} +1 -1
- package/bt/es/{index-BBRvfBFn.js → index-BByy9o0r.js} +1 -1
- package/{vg/es/index-BteYUANF.js → bt/es/index-BKhheEr8.js} +1 -1
- package/{sa/es/index-DGxrXtiD.js → bt/es/index-Gh3qKf8y.js} +1 -1
- package/bt/es/{index-BY0qHCPi.js → index-QUmMOGc6.js} +1 -1
- package/bt/es/index-RU8GQ1Fx.js +1 -0
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-CaUVG-w2.js → styles--Qe_Js0Z.js} +1 -1
- package/bt/es/{styles-BkMqQLE3.js → styles-AbWic5Kg.js} +1 -1
- package/{sa/es/styles-DbGTQsa5.js → bt/es/styles-B6Nf0P4i.js} +1 -1
- package/bt/es/{styles-C9EUN77W.js → styles-BA90rqw8.js} +1 -1
- package/bt/es/{styles-DPFg7elM.js → styles-BMcNhBgC.js} +1 -1
- package/{sa/es/styles-C05ZlOad.js → bt/es/styles-BU8vNyNz.js} +1 -1
- package/{vg/es/styles-DxsGAq8D.js → bt/es/styles-BZmMiAH_.js} +1 -1
- package/bt/es/{styles-BC_lSWWD.js → styles-C7z5Ikap.js} +1 -1
- package/{vg/es/styles-CraQzxZo.js → bt/es/styles-ww8O4oHE.js} +1 -1
- package/bt/styles.css +1 -1
- package/btv2/es/_auto-entry_btv2-DCwGpx82.js +1 -0
- package/btv2/es/{events-BF6lOGO3.js → events-C6WRgsU-.js} +1 -1
- package/btv2/es/{index-DY7XEZis.js → index-BqAJlrV2.js} +1 -1
- package/{vgv2/es/index-BO6GSP0M.js → btv2/es/index-BstQEjAB.js} +1 -1
- package/btv2/es/{index-8nRWSF5X.js → index-COIP207D.js} +1 -1
- package/btv2/es/{index-BwYCXc9R.js → index-CakgrFh7.js} +1 -1
- package/btv2/es/{index-C6WT3prd.js → index-Cz0kqnnV.js} +1 -1
- package/btv2/es/{index-D3EhHhG_.js → index-DjdoyoOI.js} +1 -1
- package/btv2/es/{index-C72VmFjn.js → index-Dur22lYC.js} +1 -1
- package/btv2/es/index-G3PHy_ht.js +1 -0
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-C9ieCF7B.js → btv2/es/styles-B3R89zuv.js} +1 -1
- package/{sav2/es/styles-D6tuZWQ-.js → btv2/es/styles-BY2pr5as.js} +1 -1
- package/{sav2/es/styles-B-xsMagM.js → btv2/es/styles-CMWGoBq3.js} +1 -1
- package/{vgv2/es/styles-B0IuJrwM.js → btv2/es/styles-CnXKkNPB.js} +1 -1
- package/btv2/es/{styles-ir_9Tbu4.js → styles-Dg1qVNbf.js} +1 -1
- package/btv2/es/{styles-tWOO8TS6.js → styles-DzoxY7kh.js} +1 -1
- package/{sav2/es/styles-D4tvLseY.js → btv2/es/styles-Gx2XEORr.js} +1 -1
- package/{sav2/es/styles-DUApZdNm.js → btv2/es/styles-MRX-axPM.js} +1 -1
- package/btv2/styles.css +1 -1
- package/e24/es/{_auto-entry_e24-UdNFPMJN.js → _auto-entry_e24-8dU1NZXb.js} +1 -1
- package/e24/es/{events-z6GTHstW.js → events-BTI2JujY.js} +1 -1
- package/e24/es/{index-BKyoB7Yv.js → index-BWeGX4A0.js} +1 -1
- package/e24/es/{index-CMrC60Ss.js → index-BxFFEng4.js} +1 -1
- package/e24/es/{index-DXIWy0oN.js → index-CHzdL0vJ.js} +1 -1
- package/e24/es/index-CWnBntb7.js +1 -0
- package/e24/es/{index-BIa22wAv.js → index-CddbPk88.js} +1 -1
- package/e24/es/{index-CIGqPVgZ.js → index-Cotd4VNY.js} +1 -1
- package/e24/es/{index-BiSmvpKr.js → index-DHCOUyMT.js} +1 -1
- package/e24/es/{index-Bxyn9IQH.js → index-DrKxyroM.js} +1 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-CLRxQcwn.js → styles-BQDQcj0x.js} +1 -1
- package/e24/es/{styles-DYYxqpJP.js → styles-BV1d4OCa.js} +1 -1
- package/e24/es/{styles-C3i3TEmS.js → styles-Bs7nHNY2.js} +1 -1
- package/e24/es/{styles-np6tz7DN.js → styles-C7W9E-vu.js} +1 -1
- package/e24/es/{styles-B6hI5HoH.js → styles-CCya8Ymn.js} +1 -1
- package/e24/es/{styles-CGORfLgG.js → styles-Chjm50PT.js} +1 -1
- package/{tv4/es/styles-DmDsbQ6k.js → e24/es/styles-CmlpT0g2.js} +1 -1
- package/e24/es/{styles-Ccr6ewvk.js → styles-D-9XU4zJ.js} +1 -1
- package/e24/es/{styles-YeJ20CWc.js → styles-DGS0_tOZ.js} +1 -1
- package/e24/es/{styles-InAjRx_5.js → styles-DTFCo3f6.js} +1 -1
- package/e24/es/{styles-j8CpO47M.js → styles-NNS_HnL2.js} +1 -1
- package/e24/styles.css +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-Ln26plyH.js +1 -0
- package/fotbollskanalen/es/{events-DUqkqGg8.js → events-BBn3N5se.js} +1 -1
- package/fotbollskanalen/es/{index-BIyi9v72.js → index-C2TFnTUt.js} +1 -1
- package/fotbollskanalen/es/{index-xtcRLMKP.js → index-C6WdCAuF.js} +1 -1
- package/fotbollskanalen/es/{index-Bvl4KGfE.js → index-C_6xqcOq.js} +1 -1
- package/fotbollskanalen/es/{index-PhpEoinJ.js → index-Ca5IJjmG.js} +1 -1
- package/fotbollskanalen/es/index-CsdAytj7.js +1 -0
- package/fotbollskanalen/es/{index-DF-xABMW.js → index-D-sX9Mg4.js} +1 -1
- package/fotbollskanalen/es/{index-CtMPOQJ-.js → index-D0ooJ1ue.js} +1 -1
- package/fotbollskanalen/es/{index-CuI_lqyb.js → index-DDFAZlby.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-BsdepOlj.js → styles-CBEuYX1v.js} +1 -1
- package/godare/cjs/index.js +1 -1
- package/godt/cjs/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/klart/styles.css +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-CBPTovXE.js +1 -0
- package/koket/es/{events-Cm8aQc-x.js → events-BVyHaQeR.js} +1 -1
- package/koket/es/index-BK7kIcS2.js +1 -0
- package/koket/es/{index-Bk9xdVyL.js → index-BLx9S2XC.js} +1 -1
- package/{svdv2/es/index-DOMuUATZ.js → koket/es/index-BbRTCjfE.js} +1 -1
- package/koket/es/{index-BRmPJpZi.js → index-BevMf3yL.js} +1 -1
- package/koket/es/{index-CdS7xAXC.js → index-Ct5ygrWT.js} +1 -1
- package/{svdv2/es/index-xvUCOzvW.js → koket/es/index-DZ9RJx5X.js} +1 -1
- package/koket/es/{index-BWqB7KmU.js → index-DiAv6TRh.js} +1 -1
- package/koket/es/{index-4-nt8phT.js → index-MDtapDUX.js} +1 -1
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-BDyfV9O6.js → koket/es/styles-DFLNAl4m.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-aGfJ8dGF.js +1 -0
- package/sa/es/{events-3eI4fUHi.js → events-A0XZ6KQT.js} +1 -1
- package/sa/es/{index-Cl42u9AY.js → index-BeH5pZa1.js} +1 -1
- package/sa/es/{index-DQB7jrsH.js → index-BtBMMyDT.js} +1 -1
- package/sa/es/index-DN-PAQ71.js +1 -0
- package/{bt/es/index-BOtGsF6K.js → sa/es/index-DRHQ3DQv.js} +1 -1
- package/sa/es/{index-BCVA6Qdn.js → index-DiGK2VjO.js} +1 -1
- package/sa/es/{index-PotohovP.js → index-Dm9rll77.js} +1 -1
- package/{bt/es/index-Dz-Uar4C.js → sa/es/index-VE0oE-6E.js} +1 -1
- package/sa/es/{index-oE3Z0VoG.js → index-h50mjmgq.js} +1 -1
- package/sa/es/index.js +1 -1
- package/{bt/es/styles-CL-Bjj03.js → sa/es/styles-2agRv2S1.js} +1 -1
- package/{bt/es/styles-B-OCR9q4.js → sa/es/styles-67LtyHmk.js} +1 -1
- package/{vg/es/styles-CLt7Ltpu.js → sa/es/styles-BELV4g4f.js} +1 -1
- package/sa/es/{styles-CuZD-hqL.js → styles-BSdQ1dCO.js} +1 -1
- package/sa/es/{styles-0LU4j4Rx.js → styles-BkexaxNA.js} +1 -1
- package/sa/es/{styles-Bju9sHOz.js → styles-CaxhNBY5.js} +1 -1
- package/sa/es/{styles-DzSTJjqr.js → styles-Cz0HJNcO.js} +1 -1
- package/{bt/es/styles-CIyveYDD.js → sa/es/styles-DOuigyVb.js} +1 -1
- package/sa/es/{styles-qvFfdoJd.js → styles-_1frVMYU.js} +1 -1
- package/sa/styles.css +1 -1
- package/sav2/es/_auto-entry_sav2-Dbe-K0Qk.js +1 -0
- package/sav2/es/{events-D5n0WIfE.js → events-CL7_8yaP.js} +1 -1
- package/sav2/es/{index-CNMutQUI.js → index-BHREF36w.js} +1 -1
- package/sav2/es/{index-CCvCEWOF.js → index-C0lPW6Py.js} +1 -1
- package/sav2/es/{index-D8v3XLht.js → index-CFSulcuR.js} +1 -1
- package/sav2/es/index-D20OcxWt.js +1 -0
- package/sav2/es/{index-DY65mXS3.js → index-D9HcQDbh.js} +1 -1
- package/sav2/es/{index-B0VMs5Se.js → index-DEAKPLOt.js} +1 -1
- package/sav2/es/{index-Ca3k-cHw.js → index-RmDYhACE.js} +1 -1
- package/sav2/es/{index-DP_Dn7rX.js → index-voj4Yy8d.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-DXi0olZO.js → sav2/es/styles-BKozD6AL.js} +1 -1
- package/{btv2/es/styles-BtHMtgnL.js → sav2/es/styles-Bl2Xo9Rj.js} +1 -1
- package/{btv2/es/styles-C-0r7SxG.js → sav2/es/styles-CuVGCXsI.js} +1 -1
- package/{vgv2/es/styles-CvP7GjLo.js → sav2/es/styles-DBP6sydY.js} +1 -1
- package/sav2/es/{styles-DQ4rauVn.js → styles-GPo81dLG.js} +1 -1
- package/{vgv2/es/styles-Bv01MUTU.js → sav2/es/styles-IC4OnMCb.js} +1 -1
- package/{vgv2/es/styles-DL39xqFp.js → sav2/es/styles-JsIzAc5l.js} +1 -1
- package/sav2/es/{styles-Ci7UGltO.js → styles-sKykcbIc.js} +1 -1
- package/sav2/styles.css +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/{_auto-entry_svd-BLFCOHh3.js → _auto-entry_svd-BYzr50vo.js} +1 -1
- package/svd/es/{events-B_ENgHBX.js → events-BIcOCsE-.js} +1 -1
- package/svd/es/{index-4W7aOMe1.js → index-B-yB7Hz5.js} +1 -1
- package/{tv4/es/index-u5q3MBxO.js → svd/es/index-ChxyAknb.js} +1 -1
- package/{tv4/es/index-B5TpFxJh.js → svd/es/index-CnDy6Gdo.js} +1 -1
- package/svd/es/{index-Cz8VMYPg.js → index-D3mJgKMo.js} +1 -1
- package/svd/es/index-DKNdB5qo.js +1 -0
- package/svd/es/{index-BP-FPZ-v.js → index-DvBtD1dF.js} +1 -1
- package/svd/es/{index-D0bhkiTf.js → index-E_IHR6AV.js} +1 -1
- package/svd/es/{index-BvKw6-aY.js → index-kw72p6YE.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-gh2-irie.js → styles-CkbeRhQ9.js} +1 -1
- package/svd/es/{styles-BvQruEut.js → styles-D9DESV3A.js} +1 -1
- package/svd/es/{styles-DqvubSVo.js → styles-DRIb9WB8.js} +1 -1
- package/svd/es/{styles-BFjgSWYQ.js → styles-Dnk-YIJi.js} +1 -1
- package/svd/es/{styles-DGLU_Bo5.js → styles-hFY7t0mN.js} +1 -1
- package/svd/es/{styles-Ddpskli6.js → styles-yMR92ONV.js} +1 -1
- package/svdv2/es/{_auto-entry_svdv2-CRYfQuxe.js → _auto-entry_svdv2-Dkwv4DwX.js} +1 -1
- package/svdv2/es/{events-BwgvLpst.js → events-BIKr34pq.js} +1 -1
- package/svdv2/es/{index-j2YXnlmu.js → index-1hkzBlrA.js} +1 -1
- package/svdv2/es/{index-D-lQTP7s.js → index-BMfhi209.js} +1 -1
- package/{koket/es/index-BARk-Glc.js → svdv2/es/index-BOPvdI-u.js} +1 -1
- package/{koket/es/index-DWeQY3xg.js → svdv2/es/index-Cm6icfOT.js} +1 -1
- package/svdv2/es/{index-BkfKgCDe.js → index-DWIC2Zmz.js} +1 -1
- package/svdv2/es/index-DqVL8UQP.js +1 -0
- package/svdv2/es/{index-5lY5XUWt.js → index-Z6TxNvLV.js} +1 -1
- package/svdv2/es/{index-BAEjgfOf.js → index-o1SL740I.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-C6acbzzd.js → svdv2/es/styles-7cCFZ0HP.js} +1 -1
- package/svdv2/es/{styles-DkcSh-MP.js → styles-B7RfC7fQ.js} +1 -1
- package/svdv2/es/{styles-CZk1JH5U.js → styles-B_lDpZfR.js} +1 -1
- package/svdv2/es/{styles-BTCdN8pB.js → styles-C6Po5SEO.js} +1 -1
- package/svdv2/es/{styles-CXoldOQW.js → styles-CKLmRvUi.js} +1 -1
- package/svdv2/es/{styles-CHArK1GT.js → styles-qjs9YGUy.js} +1 -1
- package/svdv2/styles.css +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-kJeYN09l.js +1 -0
- package/tv4/es/{events-PGzQkLKA.js → events-xmcBdgYz.js} +1 -1
- package/tv4/es/{index-CBEBfVU2.js → index-ByS8EagA.js} +1 -1
- package/tv4/es/{index-DxcPMZHj.js → index-C7-lgqkR.js} +1 -1
- package/tv4/es/{index-DqJqkSbB.js → index-CGINVQRR.js} +1 -1
- package/tv4/es/index-CbhaxyJq.js +1 -0
- package/{svd/es/index-Bow8IzbK.js → tv4/es/index-CuuRuhaC.js} +1 -1
- package/tv4/es/{index-DVV2IL6b.js → index-DcsVIPHk.js} +1 -1
- package/{svd/es/index-a2lRDLI-.js → tv4/es/index-DzdCIcfK.js} +1 -1
- package/tv4/es/{index-C6CR8Lvq.js → index-fEwiPZJw.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-BjTiC0gP.js → tv4/es/styles-DlmibsYv.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/{_auto-entry_vg-DseZ5mTI.js → _auto-entry_vg-TrRSy2QL.js} +1 -1
- package/vg/es/{events-DImdZhW1.js → events-BOEePqoX.js} +1 -1
- package/vg/es/{index-CWlFRhFH.js → index-4swToc7t.js} +1 -1
- package/vg/es/{index-CwJo1Exx.js → index-7sew2zWl.js} +1 -1
- package/vg/es/{index-Bymw_-wa.js → index-97KLzEh2.js} +1 -1
- package/vg/es/{index-CztyCKGP.js → index-B2-6l56b.js} +1 -1
- package/{bt/es/index-DYCoOTwi.js → vg/es/index-Berm7T9R.js} +1 -1
- package/vg/es/index-Bnm9NWbj.js +1 -0
- package/vg/es/{index-mTEqgGQH.js → index-CA80zpr8.js} +1 -1
- package/vg/es/{index-WVAFdss6.js → index-UbLn6X1Q.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-BDnmia77.js → styles-4CDRzqX5.js} +1 -1
- package/vg/es/{styles-DuBqftb3.js → styles-BoRtWhSo.js} +1 -1
- package/vg/es/{styles-DPgOE7uK.js → styles-BoiUibu7.js} +1 -1
- package/vg/es/{styles-DRWo1JNu.js → styles-BrQaiup0.js} +1 -1
- package/vg/es/{styles-xTwi5toR.js → styles-C904wjEW.js} +1 -1
- package/vg/es/{styles-BQbbtufp.js → styles-CanC05PX.js} +1 -1
- package/vg/es/{styles-BeseVDFv.js → styles-CcrxHCTp.js} +1 -1
- package/{bt/es/styles-BY6L4WzL.js → vg/es/styles-Cnv01neO.js} +1 -1
- package/vg/es/{styles-B0CtqnRF.js → styles-DQgTfmKc.js} +1 -1
- package/vg/es/{styles-DhDn3QJW.js → styles-DX2PDzXE.js} +1 -1
- package/vg/es/{styles-UsBOd0T2.js → styles-E43Qm1Ha.js} +1 -1
- package/{sa/es/styles-CYABmV-Q.js → vg/es/styles-H5R9nhML.js} +1 -1
- package/{sa/es/styles-Col7KyYX.js → vg/es/styles-jIaT7ERn.js} +1 -1
- package/vg/es/{styles-Dks_uzF9.js → styles-lSfAuuj5.js} +1 -1
- package/vg/es/{styles-CW08b5kz.js → styles-pK1C_H90.js} +1 -1
- package/vgv2/es/{_auto-entry_vgv2-CE_2b-nX.js → _auto-entry_vgv2-Ok5eQ9Gz.js} +1 -1
- package/vgv2/es/{events-DYiDO71m.js → events-DgHbQLw7.js} +1 -1
- package/{btv2/es/index-4qzWFQSp.js → vgv2/es/index-BXiaDPX5.js} +1 -1
- package/vgv2/es/{index-uzX5TUxR.js → index-DETwm0rm.js} +1 -1
- package/vgv2/es/{index-BbuCVWws.js → index-DTisAV0C.js} +1 -1
- package/vgv2/es/index-De8QTccA.js +1 -0
- package/vgv2/es/{index-Cjuvs6n9.js → index-DgtC2dXC.js} +1 -1
- package/vgv2/es/{index-B178mNTI.js → index-TND0NFUC.js} +1 -1
- package/vgv2/es/{index-B9gGWx_y.js → index-XIkNRbAp.js} +1 -1
- package/vgv2/es/{index-dSFX2hAW.js → index-XulUS1k4.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-LurNjENf.js → styles-2rtpBZKw.js} +1 -1
- package/vgv2/es/{styles-BAHbfjCv.js → styles-B-1w2IGx.js} +1 -1
- package/vgv2/es/{styles-CiKyWpGY.js → styles-BOtVtJQO.js} +1 -1
- package/{btv2/es/styles-BccDzJZL.js → vgv2/es/styles-BWdsWyb_.js} +1 -1
- package/vgv2/es/{styles-CUENpN0M.js → styles-BdqYHEMA.js} +1 -1
- package/vgv2/es/{styles-D8WjbgWZ.js → styles-C3OZBef_.js} +1 -1
- package/vgv2/es/{styles-C0dtBim6.js → styles-C7Wozhbh.js} +1 -1
- package/{btv2/es/styles-DnhJsrLk.js → vgv2/es/styles-CXvaemwd.js} +1 -1
- package/{btv2/es/styles-BNsRcC4m.js → vgv2/es/styles-DDogvU3v.js} +1 -1
- package/vgv2/es/{styles-CM5NNl7O.js → styles-DZps4OxF.js} +1 -1
- package/vgv2/es/{styles-jkLDGORB.js → styles-De6ZMfjl.js} +1 -1
- package/vgv2/es/{styles-Csz1w0PR.js → styles-DoZyOPxu.js} +1 -1
- package/vgv2/es/{styles-Bb9SPCcv.js → styles-DwIArttN.js} +1 -1
- package/{sav2/es/styles-BQl6dW2u.js → vgv2/es/styles-Se3qo5eD.js} +1 -1
- package/vgv2/es/{styles-5Ww79TOt.js → styles-pd5_AQPf.js} +1 -1
- package/vgv2/styles.css +1 -1
- package/aftenposten/es/index-dDxxXwjU.js +0 -1
- package/aftenpostenv2/es/index-CTrB6WMf.js +0 -1
- package/aftonbladet/es/index-DbJfvrzd.js +0 -1
- package/aftonbladet/es/index-Drv0ITCv.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DCTvkk9I.js +0 -1
- package/aftonbladetv2/es/index-CAcVJkAp.js +0 -1
- package/bt/es/_auto-entry_bt-CeXX8E7p.js +0 -1
- package/bt/es/index-BsLADvHN.js +0 -1
- package/btv2/es/_auto-entry_btv2-Dptg2UWL.js +0 -1
- package/btv2/es/index-BBP-5YTy.js +0 -1
- package/e24/es/index-DrLJBbfM.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BqTombXL.js +0 -1
- package/fotbollskanalen/es/index-BghO6CbN.js +0 -1
- package/koket/es/_auto-entry_koket-BtD-__CS.js +0 -1
- package/koket/es/index-CZK0e5fi.js +0 -1
- package/sa/es/_auto-entry_sa-D0BnKjmC.js +0 -1
- package/sa/es/index-C54QOZEt.js +0 -1
- package/sav2/es/_auto-entry_sav2-CXstmbTT.js +0 -1
- package/sav2/es/index-DWAhnmy7.js +0 -1
- package/svd/es/index-C-dNg33G.js +0 -1
- package/svdv2/es/index-gu6YnCTp.js +0 -1
- package/tv4/es/_auto-entry_tv4-zlZyLo0z.js +0 -1
- package/tv4/es/index-mfxXvuTH.js +0 -1
- package/vg/es/index-DYKmvOn-.js +0 -1
- package/vgv2/es/index-CZRMx0x_.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={SVD:"svd",VG:"vg",GODARE:"godare",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen"},o={publisherClassName:r.FOTBOLLSKANALEN,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=d(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}());const p=["placements","takeover","refreshConfig","editory"],v={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},g=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},h=(e,t)=>{console.warn("[Advertory WARN]: ",e)},m=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||h("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||h("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||h("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||h("pageContext.deviceType is required."),n||h("pageOptions is required."),i||h("placements is required."),(null==r?void 0:r.defaultThreshold)||h("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.fullscreenScroll)||void 0===i?void 0:i.enabled),property:"main",featureName:"fullscreenScroll"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&h(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},y=6;class f{set(e){m(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of p){const i=e[n];void 0!==i&&(t[n]=i)}Object.assign(this.config,t),Object.prototype.hasOwnProperty.call(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.prototype.hasOwnProperty.call(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.prototype.hasOwnProperty.call(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=u(f.DEFAULT_SITE_HANDLERS,e)}}f.DEFAULT_SITE_HANDLERS={siteEvents:v,initNativeAd:function(){}};const w=new f,b=w.modifyConfigProperties.bind(w);class x{initialize(){this.DATA=Object.assign({},x.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}x.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new x,C=864e5,I=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return g("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=C)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=C)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return g("Error with parsing localStorage data"),null}}}})(),A="glimrTags",S=["glwe_","glwet_"],T={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),O="finncode",P="takeover",j="native_override_desc2",L=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return g("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(g("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{g("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{g("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);g("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),N={NO:"no",SE:"se"},D="cmp:loaded";let M="undefined"!=typeof window?window._tcf_:void 0,_=!1;const R=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=k("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(g("TCF bypass param detected, returning consent: true"),!0):(g("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(_)return null;if(!M)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=M.getConsentedToAllSync();return g(`TCF consented to all is: ${t}`),M.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(g("Getting TCF consent manager..."),window._tcf_)return g("TCF consent manager is already available"),M=window._tcf_,void e(M);g("TCF consent manager is not available");const n=()=>{g("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(M=window._tcf_,e(M)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(D,n),_=!0,t(new Error("Timeout waiting for CMP to load"))},r);g("Listening for CMP loaded event..."),document.addEventListener(D,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return g(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===N.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===N.NO;if(t||i)return g("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield L(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!M)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{g("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);M.onTcfReady(()=>{g("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),M.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},q=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return g(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return g(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=R(e,0,n);return(yield r())?(g(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(g(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),F=(...e)=>s(void 0,[...e],void 0,function*(e=w.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield q(t,n,i,"glimr")}const{getConsentAsync:r}=R(t,0,i);return yield r()}),$=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield F())||!(null==e?void 0:e.enabled))return void g("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{I.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){g(`Error during getting glimr data: ${e}`)}else g("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),U={svd:"svd",vg:"vg",godare:"godare",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},B=e=>S.some(t=>e.startsWith(t)),V=e=>e.startsWith("glgc_"),H=e=>!B(e)&&!V(e),z=e=>e===N.NO?"no-sno":"se-generic",W=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield F(e);if(!(null==i?void 0:i.enabled)||!o)return g("No consent for getting glimr tags."),{};const a=z(r),s=K(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),K=(e,t)=>{const n=G();if(!n)return T;const i=((e=[])=>e.filter(B))(n),r=((e=[])=>e.filter(V))(n),o=((e=[],t,n)=>{var i;const r=e.filter(H);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=U[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},G=()=>{const e=I.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),Q=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),X=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=w.get(),o=[`${z(r)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},Y={get:(e,t)=>s(void 0,void 0,void 0,function*(){const n=yield fetch(e,t);if(!n.ok)throw new Error(n.statusText);return yield n.json()}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},Z="advertory:ppids-cache",ee={[N.SE]:`SCH${N.SE.toUpperCase()}-EnvHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-EnvHash`},te={[N.SE]:`SCH${N.SE.toUpperCase()}-UserHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-UserHash`},ne={[N.SE]:`sch${N.SE}-envhash-v3`,[N.NO]:`sch${N.NO}-envhash-v3`},ie={[N.SE]:`sch${N.SE}-userhash-v3`,[N.NO]:`sch${N.NO}-userhash-v3`},re={[N.SE]:`'sch${N.SE}-iosid-v3'`,[N.NO]:`'sch${N.NO}-iosid-v3'`},oe={[N.SE]:`sch${N.SE}-androidid-v3`,[N.NO]:`sch${N.NO}-androidid-v3`},ae={[N.SE]:"sdrn:schibsted.com:user",[N.NO]:"sdrn:spid.no:user"};class se{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const de=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||g("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},le=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=I.get(Z),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||g("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});I.set(Z,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield Y.post(t,n,e)}catch(e){return g("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ae[t]}:${n}`:null}))(t,n),r=yield(e=>s(void 0,void 0,void 0,function*(){const t=yield e.getEnvironmentId();return t?`sdrn:schibsted:environment:${t}`:null}))(t),o=window.advertory_idfv,a=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},o?{idfv:{plain:o}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ce=e=>s(void 0,void 0,void 0,function*(){const{tracker:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield q(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([de.processPPIDs(t,null==n?void 0:n.timeout),le.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){g(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),ue=e=>{const{ppid1:t,ppid2:n}=de.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=le.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new se).add(n,ee[e]).add(t,te[e]).add(r,ne[e]).add(i,ie[e]).add(o,re[e]).add(a,oe[e]).buildEids()}]}},pe=()=>{const{ppid1:e,ppid2:t}=de.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ve=e=>{const{ppid1:t,ppid2:n}=de.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=le.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new se).add(n,ee[e]).add(t,te[e]).add(r,ne[e]).add(i,ie[e]).add(o,re[e]).add(a,oe[e]).buildRyEids()}}]}}},ge=e=>{const{ppid1:t,ppid2:n}=de.getPPIDs(),{ppid1:i,ppid2:r}=le.getPPIDs(),o=(new se).add(n,ee[e]).add(t,te[e]).add(r,ne[e]).add(i,ie[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},he=e=>{const{ppid1:t,ppid2:n}=de.getPPIDs(),{ppid1:i,ppid2:r}=le.getPPIDs();return(new se).add(n,ee[e]).add(t,te[e]).add(r,ne[e]).add(i,ie[e]).buildRyEids()},me=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=de.getPPIDs(),{ppid1:i,ppid2:r}=le.getPPIDs(),o=(new se).add(n,ee[e]).add(t,te[e]).add(r,ne[e]).add(i,ie[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),ye=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=le.getPPIDs();return e}),fe=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),we={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},be={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},xe={wallpaper:1600,"l-format":1600},Ee=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&_e(e,we.ANY_FULLSCREEN)},Ce=e=>{const{native:t}=e;return!!t},Ie=e=>_e(e,we.FULLWIDTH),Ae=e=>{const{targetId:t}=e;return t.includes("takeover")||_e(e,we.TAKEOVER)},Se=e=>_e(e,we.TAKEOVER),Te=e=>_e(e,we.WALLPAPER),ke=e=>_e(e,we.COLLAPSE),Oe=e=>e.targetId.includes("sponsorstripe"),Pe=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},je=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Le=e=>e.targetId.startsWith("midboard"),Ne=e=>e.targetId.includes("widescreen"),De=e=>e.width>=1260&&e.width<=1280,Me=e=>e.width>=1600&&e.width<=1620,_e=(e,t)=>{const n=be[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},Re="advertory-fullscreen-scroll",qe="advertory-fullscreen-scroll-wrapper",Fe="fullscreen-scroll-in-screen",$e="in-screen",Ue=e=>e.includes("snoap.no"),Be=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},Ve=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},He=Ve([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:r,clientHeight:o}=i,a=e/r,s=t/o;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),ze=e=>{const t=Ve([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const i=n.contentDocument.createElement("style");i.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(i),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},We=[],Ke={},Ge=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>Je(e,i),{}),o=Xe(e);r.observe(e),i&&(Ke[o]=et(e,null==t?void 0:t.options))},Je=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=Xe(e);n?(Qe(i,n),Ye(e,i,t)):(Qe(i,n),Ze(e,i,t))})},Qe=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},Xe=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},Ye=(e,t,n)=>{e.classList.add($e),document.body.classList.add(Fe),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),We.includes(t)||We.push(t),n&&window.addEventListener("scroll",Ke[t],{passive:!0})},Ze=(e,t,n)=>{We.includes(t)&&(n&&window.removeEventListener("scroll",Ke[t]),document.body.classList.remove(Fe),e.classList.remove($e),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},et=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&tt(e,o,r,0),a.length&&tt(e,a,r,40)}},tt=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function nt(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}nt('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh)}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;text-transform:lowercase;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const it="left",rt={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let ot=null;const at=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${He})()`,e+t.outerHTML})(n),n=(e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");return n?(n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed",t.innerHTML):e})(n),n=(e=>{if(Ue(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=ze(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Ue(e)?e:e.replace("<iframe ","<iframe onload=\"\n var f = document.querySelector('iframe');\n if (!f) return;\n var s = f.style;\n s.transform = 'scale(' + (window.innerHeight / Number(f.height)).toFixed(2) + ')';\n s.right = parseInt((Number(f.width) - window.innerWidth) / 2) + 'px';\n s.bottom = parseInt((Number(f.height) - window.innerHeight) / 2) + 'px';\n s.position = 'relative';\n \" "))(n)),Ue(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</iframe>","</iframe><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),(e=>e.includes("kreateam.io"))(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</div>","</div><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),Be(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},st=()=>{ot=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},dt=()=>{ot||(ot=window.requestAnimationFrame(st))},lt=(e,t)=>{var n,i,r,o;const{pageContext:{countryCode:a,deviceType:s}}=w.get(),{targetId:d}=e,l=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==l?void 0:l.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==l?void 0:l.overlayStyles)&&void 0!==i?i:{},s);const c=document.getElementById(d),u=null==c?void 0:c.parentElement;if(!c||!u)return;Ge(u,t),c.className=Re,Ge(u,t),c.className="advertory-fullscreen-scroll";const p=_e(e,we.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";c.style.position=p,u.className=qe,u.dataset.showTagSubscribeId=d,c.setAttribute("data-ad-label",rt[a].adText),(null==l?void 0:l.cogwheelPosition)===it&&(c.dataset.moveCogwheelToTheLeft="true"),dt(),window.addEventListener("resize",dt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",dt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("scroll",dt)},ct=e=>{if(!(null==e?void 0:e.classList.contains(Re)))return;e.classList.remove(Re),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(qe))&&(t.classList.remove(qe),t.classList.remove($e))};var ut=Object.freeze({__proto__:null,createFullscreenScrollAd:lt,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Be(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[i].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,i=Be(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,at(t,e))},undoFullscreenScrollContainer:ct});const pt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},vt=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),pt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},gt="ad-loaded",ht="disable-cogwheel",mt=()=>null!==k("disable_prebid"),yt=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i},fullscreenScroll:r}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:o}=w.getHandlers(),{getConsentAsync:a}=R(t,0,n),s=yield a(),d=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const r=J(),{prebid:{relevantCallbackTimeout:o}={}}=w.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),l=J(),c=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=J();return{user:e,keywords:t}})();d.failsafeOnTimeout("relevantCb");const{user:{externalUid:u=""}={},keywords:p}=c;(()=>{const e=Q();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{if(d.getCancel()||!l.loadTags)return g("core loadTags() call was cancelled",{cancel:d.getCancel(),apnTagLoadTags:!l.loadTags,condition:"or"}),void d.cleanup();const t=Q();d.events.relevantCb.done=!0,d.failsafeOnTimeout("auctionCb");const a=s?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};g("prebid consentManagement",a),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:a,enableSendAllBids:!1},ve(n)),X(p,u))),g("core add prebid config",Object.assign(Object.assign({consentManagement:a,enableSendAllBids:!1},ve(n)),X(p,u))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{d.getCancel()||(d.events.auctionCb.done=!0,l.loadTags(e)),d.cleanup()}},customNativeRender:e=>{ft(e,o)},directRenderFn:e=>{var t;const{settings:n,renderFn:o}=e,{bid:a,adDiv:s}=n||{};if(!s)return;const d=o(n),l=Object.assign(Object.assign({},a),{targetId:s.id,banner:!0}),c=s.id,u=document.getElementById(c);u&&(Ee(l)?(lt(l,r),i?u.style.setProperty("--advertory-political-box-offset","30px"):(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const i=new MutationObserver(()=>{n()&&i.disconnect()});i.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(d)):(ct(u),null===(t=null==u?void 0:u.parentElement)||void 0===t||t.classList.add("advertory-direct-render")),u.classList.add(gt),(null==a?void 0:a.creativeId)&&vt(c,u,Number(null==a?void 0:a.creativeId)))}}),g("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{d.getCancel()||(d.events.auctionCb.done=!0,l.loadTags(e))}},customNativeRender:e=>{ft(e,o)},directRenderFn:()=>{}})})}),ft=(e,t)=>{var n;const{divId:i,native:r,bid:o}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:r,targetId:s},w.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},wt="0123456789abcdefghijklmnopqrstuvwxyz",bt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=wt[Math.floor(36*Math.random())]}return t},xt=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},Et=e=>{window.apntag.anq.push(e)},Ct=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),It=new Promise(e=>{if("undefined"==typeof document||!document.hidden)return void e();const t=()=>{document.hidden||(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t,{once:!0})});let At="";const St=new Map,Tt=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(At!==window.location.pathname&&(St.clear(),At=window.location.pathname),e.map(e=>{var t;const n=e.invCode.replace(/_\d+$/,""),i=null!==(t=St.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=w.get();return`${e}-${t}`})()}-count`]=i,St.set(n,i+1),e})):e},kt=e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e},Ot="advertory-wallpaper-background",Pt="advertory-with-horseshoe",jt=()=>{const e=document.querySelector(`.${Ot}`);e&&e.remove()},Lt=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Ot}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Nt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Dt=e=>Nt.test(e),Mt=e=>e.startsWith("wallpaper:color:"),_t=e=>{const t=document.querySelector(`.${Ot}`);t&&(t.style.backgroundImage=`url(${e})`)},Rt=e=>{const t=document.querySelector(`.${Ot}`);t&&(t.style.backgroundColor=e)};var qt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Pt),n.classList.add(Pt))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{jt();const e=document.createElement("div");e.classList.add(Ot),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(Lt(n),window.addEventListener("scroll",()=>Lt(n)))})(n),e()},isShortWallpaperColorMessage:Mt,isShortWallpaperUrlMessage:Dt,removeWallpaperBackground:jt,setWallpaperBackgroundColor:Rt,setWallpaperBackgroundImage:_t});const Ft=e=>{if("0"===k("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&jt())},$t=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},Ut=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},Bt=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=E.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},Vt=()=>{jt();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Ft(e.id),Bt(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=kt(e.id)}),Et(()=>window.apntag.clearRequest())},Ht="noGroupedPlacements",zt=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Wt=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Kt=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:r}}=w.get(),o=n[r].filter(Wt)||[],a=e?document.querySelector(e):document;if(!a)return[];const s=o.reduce((e,t)=>{const n=zt(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=o.filter(({targetId:e})=>e.match(t)),s=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=a.querySelectorAll(s),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=Gt(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${bt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&E.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},r),{targetId:s})});return Tt(l)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(s)},Gt=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},Jt=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=kt(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(kt(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(kt(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[Ht]:d})},Qt=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},Xt=["netboard","board"];class Yt{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{g("Starting fetching DrEdition ad from URL:",s);const e={method:"GET"},t=yield Y.get(s,e);return g("Fetch operation completed successfully."),t}catch(e){g("Error during fetch operation:",e)}return null})}}class Zt{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const en=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):g("Dr. Edition container does not have a parent element, cannot remove height lock.")};class tn{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void g(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(g("No Dr. Edition ads available to render. Collapsing whole placement."),Ft(e.id),void en(a)):((null==s?void 0:s.itemId)&&o&&(g("Dr. Edition ad available to render as a Xandr backfill."),$t(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),en(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):en(a))):(g("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void en(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";$t(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const nn="mobile",rn="tablet",on="desktop",an="web_desktop",sn="web_phone",dn="wde",ln="wph",cn=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},un=e=>e===nn,pn=853,vn=767;class gn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=R(n.tcf,n.isMobileApp,n.country),r=yield i(),o=un(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class hn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield fe(t)}catch(e){g("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class mn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class yn extends mn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class fn extends mn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const wn="front",bn=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),xn={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-CBEuYX1v.js")})}})}};class En{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=a)||l.forEach(e=>{xn[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield bn(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===wn?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const Cn="https://www.aftonbladet.se/video-player-extras/latest/";class In{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${Cn}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${Cn}external-link.js`]:{name:"ExternalLink"}}};yield bn(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const An=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class Sn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},An(e)?e:{}),{provider:Object.assign(Object.assign({},An(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield bn(a);d.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===wn?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Tn{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const kn=(e,t,n)=>{var i;const{publisher:o,pageType:a,country:s}=e,d={[r.VG]:new Zt,[r.E24]:new En,[r.AFTONBLADET]:new In,[r.SVD]:new Sn}[o]||new Tn,l=new(s===N.SE?yn:fn)(n,d,a),c=new Yt(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),u=new gn(d,l),p=new hn(d);return new tn(c,u,p,l)},On=()=>s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class Pn{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return g("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const jn=(e,t,n)=>{const{wrapperSelector:i}=null==e?void 0:e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=kn(n,i,r);e.forEach(e=>{var i,r,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(r=s.dataset.pulseColumnname)&&void 0!==r?r:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";o.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},Ln=()=>s(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),Nn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Dn=[],Mn=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield q(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=kt(t.targetId),c=d.find(e=>e.targetId===l),u=Xt.some(e=>l.startsWith(e)),p=Dn.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(Dn.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void g("Pulse has not been passed as a prop, aborting");const p=yield On(),v=new Pn(p),h=kn({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield h.fetchAndRenderAd(m,f)}),_n=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield q(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield On(),i=new Pn(n);jn({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),Rn=(e,t)=>{var n,i,r;if(!Nn())return void g("Ad block not enabled, Dr. Edition backfills will not be rendered");g("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield Mn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},qn="collapseAd",Fn="hideAd",$n="resizeAd",Un="renderDrEditionFallback",Bn="wallpaperImageUrl",Vn="wallpaperColor",Hn="velvet",zn=[$n,Bn,Vn,qn,Fn,Un,Hn];let Wn;const Kn=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(Dt(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Bn,wallpaperImageUrl:t}}if(Mt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Vn,wallpaperColor:t}}if(e.startsWith(Un)){const t=e.split(":")[1];return{name:Un,targetId:t}}if(e.startsWith(qn)||e.startsWith(Fn)){const t=e.split(":")[1];return{name:qn,targetId:t}}if(e.includes("name")&&zn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!zn.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===Hn&&s&&(s.includes("noScroll")&&(Wn=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(s.includes("close")||s.includes("ended"))&&(null==Wn||Wn(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==qn&&i!==Fn||!r||Ft(r),i===$n&&r&&s&&Qt(r,s),i===Un&&r&&(Ft(r),Mn(w.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&Qt(r,d,!0),i===Bn&&o&&_t(o),i===Vn&&a&&Rt(a)},Gn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Jn=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{$t(e),Et(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-Ca5IJjmG.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-Ca5IJjmG.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return qt});t(e)}))})}},Qn=(e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Pe(t)&&i?(g(`loading finn blink ad for blink only placement for ${t}`),void Jn().withFinnBlinkAd(t)):Pe(t)?(g(`loading finn blink ad with full ads chain for ${t}`),void Jn().withFullAdsChain(t)):void Et(()=>(g("core showTag",{id:t}),e.showTag(t)))},Xn=(e,t)=>s(void 0,void 0,void 0,function*(){yield Ct,yield It;const n=new IntersectionObserver((t,n)=>((e,t,n,i)=>{e.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(e=>{const{target:r}=e,o=(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(r),a=document.getElementById(o);g("core log from intersection observer handler",{targetId:o,element:a}),n(window.apntag,o,i),a&&(t.unobserve(a),t.disconnect())})})(t,n,Qn,e),Gn(t));n.observe(e)}),Yn=new Map,Zn=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ei=".brandstudio-premium-content-widget",ti=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ni=({adWrapper:e,placementContainer:t})=>{const n=ti({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Bt(i=t),i.innerHTML=""},ii=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ri=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=Zn.includes(n)&&Boolean(t.closest(ei));const r=i?t.closest(ei):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!r)return;if(a)return ii(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?ii(s):d.hasAttribute("style")&&ii(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},oi=(e,t,n,i,r,o)=>{var a;const s=performance.now(),d=null!==(a=Yn.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,r)&&n<0;s-d>=r&&l&&(Yn.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),r=null==n?void 0:n.parentElement;r&&n&&ni({adWrapper:r,placementContainer:n}),Et(()=>{e.setKeywords([t],{[`${z(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},ai=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,oi,t,n),Gn(300));i.observe(e)},si=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},di=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),li=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},ci=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=w.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),hi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},ui=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;li(r,o)&&i&&(Ut(i.targetId),n.length&&r.classList.remove(...n),hi([i],t))}},pi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=w.get();t&&(e.forEach(({targetId:e})=>{const t=vi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&ui(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),ui(e,!1,t))};n.persisted&&(di()?window.addEventListener("scroll",i,{passive:!0}):ui(e,!1,t))})})(e,n))},vi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},gi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(vi(t)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},hi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),r=si(i,n);if(t)for(const t of e){const e=gi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)Et(()=>window.apntag.refresh(e))},mi=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},yi=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=R(t,0,i);if(!(yield r()))return;const o=mi("_pulse2data");return o?o.split(",")[9]:void 0}),fi=()=>{const e=mi("_pulse2data");return e?e.split(",")[2]:void 0},wi={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},bi="takeover-displayed",xi="takeover-visit-count",Ei=14400,Ci=()=>{const e=mi(xi);return e?parseInt(e):0},Ii=()=>{const e=Ci(),{takeover:{options:{cookieCapTime:t=Ei}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${xi}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ai=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=w.get();return"0"!==k(P)&&("1"===k(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=w.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||bi;return"true"===mi(n)})())&&(!t||Si()))},Si=()=>{const e=Ci();return 0===e?(Ii(),!1):1===e},Ti=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),ki=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},Oi=e=>{const{width:t,height:n}=e;return Ti(t,n)?wi.SPLASH:_e(e,we.VELVET_TAKEOVER)?wi.VELVET:ki()?wi.TOPSCROLLER:wi.WELCOME_PAGE},Pi=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=bi,cookieCapTime:n=Ei}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=w.get(),a=yield q(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),ji=e=>{var t,n;const i=!!(null===(n=null===(t=w.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ae(e)&&i},Li=(e,t)=>{var n;if(t===wi.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===wi.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Ni=(e,t)=>{t!==wi.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Se(e)?"60svh":`calc(100svh - ${l}px)`,u=Se(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=w.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),i=document.querySelector(`#${e.targetId}`);if(!n||!i)return;const r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},Di=Ve([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var Mi=Object.freeze({__proto__:null,addTakeoverCookie:Pi,adjustTakeoverHeight:Ni,canDisplayTakeover:Ai,getProperWelcomePageConfig:Li,getTakeoverVariant:Oi,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){ji(e)&&(yield Pi())}),incrementArticleVisitCount:Ii,isSplashVariant:Ti,isTopscroller:ki,scaleAd:Di,shouldAddTakeoverCookieForNotShownAd:ji});const _i=e=>`externalImpId:'${e}'`,Ri=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,qi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},tracker:i}=w.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ai())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==wi.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),h=Object.assign({invCode:d,sizes:o,targetId:r,keywords:Ri(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),m=(e=>{var t,n,i,r,o,a,s;return e?(null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)?(null===(i=null===(n=null==e?void 0:e.instance)||void 0===n?void 0:n.state)||void 0===i?void 0:i.pageViewId)?(g("Tracker state pageViewId is:",null===(o=null===(r=null==e?void 0:e.instance)||void 0===r?void 0:r.state)||void 0===o?void 0:o.pageViewId),null===(s=null===(a=null==e?void 0:e.instance)||void 0===a?void 0:a.state)||void 0===s?void 0:s.pageViewId):(g("Tracker state does not contain field pageViewId or it is empty"),""):(g("Tracker state is empty"),""):(g("Tracker is not configured in initAdvertory function"),"")})(i);n&&m&&(g("External Impression ID assigned to defineTag:",_i(m)),h.externalImpId=_i(m));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},Fi=e=>!e.includes("takeover")||Ai(),$i=e=>{const{source:t}=e;return"csm"===t},Ui={nativeAd:e=>Ce(e)&&!Oe(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:Ie,fullscreenScroll:Ee,topscroller:e=>Ae(e)&&ki(),splash:e=>Ae(e)&&Ti(e.width,e.height),welcomePage:Ae,wallpaper:Te,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:De,hFormat:Me,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Me(e)&&!De(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ae(e),widescreen:Ne,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Oe,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!je(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Le(e),outstream:e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:je,midboard:Le},Bi=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,i;for(const[r,o]of Object.entries(Ui))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},Vi=e=>{var t;return(null===(t=Object.entries(Ui).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Hi=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=z(t),i=e[`${n}-targetid`],r=i?kt(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},zi=e=>{const{pageContext:{countryCode:t}}=w.get(),n=z(t);return Object.assign(Object.assign(Object.assign(Object.assign({},e),e[`${n}-geo`]&&{[`${n}-geo`]:["geo-test-value"]}),e[`${n}-geofence`]&&{[`${n}-geofence`]:["geofence-test-value"]}),e[`${n}-weather`]&&{[`${n}-weather`]:["weather-test-value"]})},Wi=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},Ki=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});nt(".advertory-brandmetrics-survey{width:100%}");const Gi="advertory-brandmetrics-survey",Ji="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Qi=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Xi={pageContext:{publisher:"aftonbladet",countryCode:N.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},Yi={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Zi=e=>(null==e?void 0:e.parent)?[...Zi(e.parent),e.shortPath||"unknown"]:[],er=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=Zi(e);return Yi[n]||"ovrigaavdelningar"})(e)}_{position}`,tr={aftonbladet:Xi},nr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:er(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Zi(e).join(":")}}},ir=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},rr=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),or="se-generic",ar="aa-sch",sr="kv_",dr="pause",lr="{deviceType}",cr="{position}",ur="afp_",pr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),vr="1-1",gr="16-9",hr="3-4",mr="9-16",yr="responsive",fr={[vr]:1,[gr]:1.78,[mr]:.56,[yr]:1},wr={[vr]:1,[gr]:1.78,[hr]:1.33,[mr]:.56},br=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=on===n?dn:ln,s=r.replace(lr,a);return(e,n)=>{if(e===dr)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(cr,dr).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&pr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(lr,a).replace(cr,e)}return s.replace(cr,e)}},xr=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Er=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},Cr=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},Ir=()=>{const e=null!==(t=Cr()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Cr()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ar=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Sr=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield q(n,e.isApp,r,"video"))?"1":"0",l=yield Qi(),c=yield me(r),u=yield yi({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>xr(wr,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?xr(fr,Number(m.toFixed(2))):yr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ar}-country_code`]:r,[`${ar}-publisher`]:i,[`${ar}-supply_type`]:(y=e.deviceType,y===on?an:sn),[`kw_${ar}-page_type`]:"collection",[`${ar}-page_type`]:"collection",[`${or}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${or}-page`]:"index",[`${or}-page`]:"index",[`${or}-screenheight`]:String(window.screen.height),[`${or}-screenwidth`]:String(window.screen.width),[`${or}-viewportheight`]:String(a),[`${or}-viewportwidth`]:String(o),[`${or}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${or}-mobile-os`]:cn(),[`${or}-audience`]:void 0,[`${or}-externalid_src`]:Ir(),[`${or}-tags`]:e.tags,[`${or}-articleid`]:p,"article-id":p},yield W(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${or}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Ar()).some(e=>e.includes(sr))&&(()=>{const e=Ar(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(sr)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Tr=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],kr=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],Or=["external_uid","gdpr","gdpr_consent","eids","article-id"],Pr=(e,t)=>{const n=[...Tr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Or.includes(e)?e:`kw_${e}`,t]))},jr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>kr.includes(e))),Lr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;tr[e]||h(`[video] No config found for publisher "${e}"`);return null!==(t=tr[e])&&void 0!==t?t:Xi})(e.publisher),s=(e=>{var t;return null!==(t=nr[e])&&void 0!==t?t:nr.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Sr({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Er(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:ir(e.startMode)}}),Nr=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=br(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(ur)?`${ur}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":rr.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Pr(o,n)),jr(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Dr=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield Lr(e,t);return Nr(n,e)}),Mr={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},_r={no:"NOK",se:"SEK"},Rr={no:"no",se:"sv"};class qr{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield Qi(),l=(c=Object.assign(Object.assign({},t),n),Object.entries(c).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var c;const u=new URL(window.location.href),p=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(Mr),ver:"1.1"}})(e),v=(e=>{const{sizes:t,allowedFormats:n}=e;if((null==n?void 0:n.includes("banner"))&&t&&0!==t.length)return{format:t.map(([e,t])=>({w:e,h:t})),w:t[0][0],h:t[0][1]}})(e);return{id:bt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Rr[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield yi(i),ext:{consent:d.gdpr_consent||"",eids:he(r)}},at:1,cur:[_r[r]],source:{tid:bt(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{g("Starting fetching Studio ad from Xandr:",Ji);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Ji}?${a.toString()}`:Ji,d=yield this.buildFetchObject(e,t,n,i),l=yield Y.post(s,r,d);return g("Fetch operation completed successfully.",l),l}catch(e){g("Error during fetch operation:",e)}return null})}}const Fr=0,$r=3,Ur=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},Br={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Vr=(e,t)=>{Hr(e,t),Wr(e,t)},Hr=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Gr(i)}),t.dataset.tracked="true")})},zr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(Kr):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Wr=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:on])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,zr(e),c.disconnect();break}},d);c.observe(r)},Kr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Gr(e):window.navigator.sendBeacon(e)},Gr=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Jr=e=>e.reduce((e,t)=>{if(!t.serverSidePlacement)return e.clientSidePlacements.push(t),e;const n=Math.random()<.5;return t.keywords=Object.assign(Object.assign({},t.keywords),{"aa-sch-prerenderer":n?"true":"false"}),n?e.serverSidePlacements.push(t):e.clientSidePlacements.push(t),e},{clientSidePlacements:[],serverSidePlacements:[]}),Qr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void g(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Gn(s)).observe(d)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(qi(e)).keywords)&&void 0!==i?i:{},p=new qr,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===nn?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===Fr){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,v,r),v.adType===$r&&(Ur(t.pageContext.publisher,d,Br.NATIVE_AD,t.pageContext.pageType),Vr({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),vt(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),Xr=(e,t)=>{e.forEach(e=>Qr(e,t).catch(e=>{g("Failed to handle server-side ad:",e)}))},Yr={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},Zr=e=>s(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))})(e))return e;try{const t=yield(e=>s(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&i?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toUpperCase()}.json`:null})(e);if(!t)return null;const n=new AbortController,i=setTimeout(()=>n.abort(),5e3);try{return yield Y.get(t,{method:"GET",signal:n.signal})}catch(e){throw g("Failed to fetch S3 config",{error:e,url:t}),e}finally{clearTimeout(i)}}))(e);return t?((e,t)=>u(t,e,Yr))(e,t):e}catch(t){return g("Error fetching S3 config, using site config",{error:t}),e}}),eo=(e,t)=>{const{pageContext:{isMobileApp:n}}=w.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e};let to,no=[];const io=["takeover","wallpaper"],ro=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,w=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:y;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:w})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.3.6",siteConfig:e,alertoryConfig:t}},oo=()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=w.get(),{preparePageOptions:t}=w.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=w.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),i=yield s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();return(yield q(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),r=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),i));(e=>{const t=E.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=zi(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),Et(()=>to.setPageOpts(r))}),ao=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=w.get(),o=yield q(n,i,r,"loadPlacements"),a=((e,t)=>t?e:(e.filter(e=>!e.supportsNonRTB).forEach(e=>Ft(e.targetId)),e.filter(e=>e.supportsNonRTB).map(e=>{return Object.assign(Object.assign({},e),{invCode:(t=e.invCode,`${t}_non_rtb`)});var t})))(e,o);so(a);(null==t?void 0:t.enabled)&&o&&!mt()?(g("core loadPlacements prebid enabled"),yield yt()):(g("core load tags invoked without prebid enabled"),lo(a))}),so=e=>{const{prepareTag:t}=w.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const i=t.findIndex(t=>e.targetId.includes(t)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{g("core defineTags",{placement:e});const i=qi(e);if(Fi(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:Hi(i),sizes:r}})(r);n.push(o),Et(()=>(g("core defineTag - add to the queue",{placement:e,preparedTag:r}),to.defineTag(r)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},lo=e=>{const t=e.filter(({targetId:e})=>Fi(e)).map(({targetId:e})=>e);t.length&&Et(()=>(g("core loadTags",{placementsIdsToLoad:t}),to.loadTags([...t])))},co=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:r,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(g("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield Xn(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(g("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),uo=e=>e.some(({targetId:e})=>io.some(t=>e.includes(t))),po=e=>s(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),r=Jt(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...si(s,n)]})(i);for(const e of r)uo(e)?(g("core loadAds without lazy loading",{placementsToLoad:e}),yield ao(e)):e.length&&(g("core loadAds with lazy loading",{placementsToLoad:e}),yield vo(e));const{finnBlink:o}=w.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-Ca5IJjmG.js");yield e(n)}}),vo=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return g("lazy load is not enabled",{placements:e}),void(yield ao(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{g("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&ao(e),g("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(g("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),go=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=w.getHandlers(),{wallpaper:n,fullscreenScroll:i}=w.get(),r=[];Et(()=>{to.onEvent("adRequested",()=>{e.adRequested()}),to.onEvent("adAvailable",r=>s(void 0,void 0,void 0,function*(){var o,a,s,d,l,c;g("core adAvailable start",{placementsAvailable:no,adObj:r,isFullscreenScrollAd:Ee(r),isFinnBlink:Pe(r.targetId),isNativeAd:Ce(r),isMediation:$i(r),isTakeoverAd:Ae(r),isCollapseAd:ke(r),isWallpaperAd:Te(r)});const u=null===(s=null===(a=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===a?void 0:a.tags[r.targetId])||void 0===s?void 0:s.adResponse.ads;if($i(r)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(r.banner=null===(c=null===(l=u[1])||void 0===l?void 0:l.rtb)||void 0===c?void 0:c.banner),Ee(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return ut});e(r)}const{widescreenSwitching:p}=w.get();if(Ne(r)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield import("./index-C_6xqcOq.js");e()}if(Ee(r)&&!Pe(r.targetId)){const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return ut});e(r,i)}if(!Ce(r)||$i(r)||Pe(r.targetId)||null==t||t(r,w.get()),Ae(r)&&!ke(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-DDFAZlby.js");e(r.targetId),yield t(r)}if(Te(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return qt});e(()=>Et(()=>window.apntag.showTag(r.targetId)),n),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&E.setData("horseshoe",{isAvailable:!0}),Bi({adObj:r}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(r),e.adAvailable(r);const v=no.find(({targetId:e})=>e===r.targetId);v&&(yield co(v,r),no=no.filter(e=>e.targetId!==v.targetId)),g("core adAvailable stop",{placementsAvailable:no,adObj:r,isFullscreenScrollAd:Ee(r),isFinnBlink:Pe(r.targetId),isNativeAd:Ce(r),isMediation:$i(r),isTakeoverAd:Ae(r),isCollapseAd:ke(r),isWallpaperAd:Te(r)})})),to.onEvent("adLoaded",n=>s(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=w.get(),d=document.getElementById(n.targetId);if(Pe(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-BBn3N5se.js");e(n)}if(r.includes(n.targetId)&&Ce(n)&&(null==t||t(n,w.get()),Bi({adObj:n})),!r.includes(n.targetId)&&$i(n)&&r.push(n.targetId),ke(n)&&Ft(n.targetId),Ae(n)){const{modifyTakeoverIframe:e}=yield import("./index-DDFAZlby.js");e(to,n.targetId)}if((e=>_e(e,we.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-CsdAytj7.js");e(n)}if((e=>_e(e,we.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-CsdAytj7.js");e(n)}if(Ie(n)){const{applyFullwidthFormat:e}=yield import("./index-CsdAytj7.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;ri({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&ai(i,a,o))})(n,i),(null==o?void 0:o.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(E.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return qt});e(n.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-D0ooJ1ue.js");e(n),t(n)}e.adLoaded(n),pt(n.targetId),d&&(d.classList.add(gt),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(d)),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Vi(n)}}))})),to.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Ft(t.targetId),null===(n=w.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-C2TFnTUt.js");yield e(w.get(),t)}if(Ae(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Mi});yield e(t)}e.adNoBid(t)})),to.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Ae(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Mi});yield e(n)}e.adError(t,n)})),to.onEvent("adCollapse",()=>{e.adCollapse()}),to.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Ft(t.targetId),yield Mn(w.get(),t),e.adRequestFailure(t)})),to.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Ft(t.targetId),yield Mn(w.get(),t),e.adBadRequest(t)})),to.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),to.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield Mn(w.get(),t),e.adNoBidMediated(t)}))})}),ho=(e,t)=>s(void 0,void 0,void 0,function*(){var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:i,reloadExistingAds:r,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(i)return Vt(),[];r&&(Vt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{$t(e.id)})),b(null!=e?e:{}),yield oo();const{clientSidePlacements:s,serverSidePlacements:d}=Jr(Kt(a));let l=s;return o&&(l=l.filter(e=>Pe(e.targetId))),Xr(d,w.get()),l.length>0&&(no=[...no,...l.map(e=>Object.assign({},e))],ci(l),pi(l),yield po(l)),no}),mo=(e,t)=>s(void 0,void 0,void 0,function*(){var n;w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(E.initialize(),window.addEventListener("message",Kn,!1),to=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=to,g("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield q(e,t,n,"xandr-endpoint"))||to.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(mt())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),r=yield q(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield fe(null==e?void 0:e.prebidUrl))}),ce(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield fe(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield q(t,n,i,"gpt-endpoint"))&&(yield fe(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=w.get(),{getConsentAsync:o}=R(n,0,r),a=yield o();if(e&&t&&a){if(yield fe(t),document.querySelector(`.${Gi}`))return window._brandmetrics=window._brandmetrics||[],void window._brandmetrics.push({cmd:"_loadsurvey"});new MutationObserver((e,t)=>{for(const n of e){if("childList"!==n.type)return;Array.from(n.addedNodes).some(e=>{var t;return null===(t=e.outerHTML)||void 0===t?void 0:t.includes(Gi)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),$(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=w.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield fe(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-C6WdCAuF.js");yield e()}g("Libraries have been loaded and trackers have been set"),yield go(),yield oo(),g("Page options have been set"),ro(e),g("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=Jr(Kt());if(no=l,Xr(c,e),ci(no),pi(no),yield po(no),g("Ads has been loaded",no),Rn(e,no),Wi(no),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-Ca5IJjmG.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-C2TFnTUt.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-DQlbgZ8n.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-D-sX9Mg4.js");yield t(e)}}),yo=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=R(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield Zr(e);yield Ln(),yield Ki(r),yield Ki(o),g("TCF resolved successfully"),yield mo(a,t),g("Run function resolved successfully")}))(e,t)}),fo=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customIcon1:w,customIcon2:b,customDisplayUrl1:x}=e,E=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:E(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&w;return E(t?w:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",logo2:E(b),previewVideoSrc:null!=x?x:""},t)},wo=(e,t)=>{const n=(i=j,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(j),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},bo=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&Ur(i,e,Br.NATIVE_AD,o)})(o,n),i())},xo=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=wo(e.targetId,l))&&void 0!==i?i:c,p=rt[t.language||N.NO],v=fo(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);bo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Vr(e,t)})},Eo=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});xo(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Co=e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${z(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in xe)||window.innerWidth>=xe[e]);return{[r]:i?a:o}},Io=e=>{const{pageContext:{countryCode:t}}=w.get(),n=`${z(t)}-targetid`;return e?{[n]:[e]}:{}},Ao=()=>{if(!window.location.search.includes("kv_"))return{};const e={},t=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e)})();return Object.keys(t).forEach(n=>{n.startsWith("kv_")&&(e[n.slice(3)]=t[n])}),e},So=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},To=(e,t)=>So(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{},ko=e=>So(e)?{"aa-sch-dynamic-outstream":["true"]}:{};class Oo{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Po=9826;class jo{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===nn?"phone":rn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return fi()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield yi(w.get())})}isTrackingForbidden(){return s(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Po}={}}=w.get();return"true"===k("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=w.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=R(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=w.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const Lo=new jo,No=Lo.prepare.bind(Lo);function Do(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=cn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}const Mo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function _o(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Mo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Ro extends jo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=w.get(),{OS:n,isHybridApp:i}=Do(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return _o(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),r=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const qo=new class extends Ro{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a,s;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Oo;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(W(w.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(pe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{}).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords);const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},ue(N.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Fo=qo.prepare.bind(qo);class $o extends jo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=w.get(),{appMode:t,mobileOS:n}=Do(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const Uo=new class extends $o{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new Oo;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(W(w.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(pe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===mi("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},ue(N.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Bo=Uo.prepare.bind(Uo);nt(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const Vo=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),e("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:e("span",{id:"advertory-splash-close-label"})})]})});var Ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",zo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";nt(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const Wo=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Ho,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:zo,width:"54",height:"54"})]}),{})]});nt(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const Ko=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Ho,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:zo,width:"54",height:"54"})]}),{})]});nt(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const Go=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(Vo,{}),e(Wo,{}),e(Ko,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Jo={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=w.get();if(!s)return(e=>{const{keywords:t,targetId:n,invCode:i}=e,{pageSetup:{tag:{useAppTabletInvCode:r=!0}={}}={}}=w.get(),o=eo(i,r),a=Co(e),s=Io(n),d=Ao(),l=ko(i),c=To(i);return Object.assign(Object.assign({},e),{invCode:o,keywords:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),a),s),l),d),rendererOptions:c})})(e);const{tag:{useAppTabletInvCode:l=!0}={}}=s,c=eo(r,l),u=Co(e),p=Io(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=Ao(),h=ko(r),m=To(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new Oo).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${z(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t},pageSetup:n}=w.get();return n?yield t===N.SE?Bo(e):Fo(e):yield No(e)}),siteEvents:i},Qo=((e,t)=>({init:n=>yo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:ho,getVideoPPIDs:me,createInitNativeAd:Eo,getVideoAdsConfig:Dr}))(Jo,o);export{Br as A,lt as B,Ce as C,rt as D,un as E,O as F,pn as G,Vi as H,vn as I,_e as J,zt as K,kn as L,_n as M,Mn as N,Rn as O,ge as P,N as Q,$t as R,we as S,wi as T,fe as U,r as V,Qo as W,Go as X,s as _,ye as a,Ft as b,w as c,fi as d,k as e,a as f,kt as g,Y as h,nt as i,q as j,Nn as k,g as l,Ur as m,li as n,Li as o,Di as p,Oi as q,Pi as r,Xn as s,xt as t,Jn as u,Ni as v,Be as w,ht as x,Bi as y,Ee as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,x as t,m as r,A as s,y as n,z as a,B as o,C as i}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{c as e,x as t,m as r,A as s,y as n,z as a,B as o,C as i}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";const l=(a,o)=>{const{siteSpecificConfig:{publisherClassName:i}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${a}`);if(!c)return;if(c.classList.add(t),!i)return;r(i,c,s.FINN_BLINK,null!=o?o:l);n({preferredTestIdData:{targetId:a,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();a(t)&&o(t,r),i(t)&&(null==s||s(t,e.get()))},u=t=>{const{pageContext:{publisher:r=""}}=e.get(),s=document.querySelector(`#${t}`);if(!s)return;const n=`-${r}`;s.classList.remove(`advertory${n}-finn-blink`),s.classList.remove(`advertory${n}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{L as getDrEditionManager,M as handleDrEdition,N as handleDrEditionBackfill,O as handleDrEditionBackfillOnAdblock}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import{jsxs as a,jsx as t}from"react/jsx-runtime";const e=({editionName:e,fallbackTargetId:i,children:n,pulseData:r,htmlAttributes:l})=>{const d=(a,t)=>{const e={};if(!a)return e;for(const[i,n]of Object.entries(a)){e[t?`${t}-${i}`:i]=String(n)}return e},s=d(r,"data-pulse"),o=d(l,"data");return a("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},s,o,{children:[t("div",{className:"inscreen-target"}),t("div",{className:"container"}),t("div",{className:"fallback","data-fallback-target-id":i,style:{display:"none"},children:n})]}))};export{e as DrEdition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as e,j as o,
|
|
1
|
+
import{_ as t,c as e,j as o,P as n,Q as s}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",a=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:a,isMobileApp:d},tcf:c}=e.get(),r=yield o(c,d,a,"norstat");if(!s||d||!r)return;const l=n(a);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${l}`,"norstat")});export{i as getCampaign,a as loadNorstat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,n as t,t as o}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{c as e,n as t,t as o}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";const n=1e4,r=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const a=()=>{const{widescreenSwitching:t}=e.get(),{enabled:a,options:{rotationInterval:i=n,widescreenIdPrefix:l}={}}=null!=t?t:{};if(!a)return;const c=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(l);let y=0,p=Date.now(),d=r(c);if(!c.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(c);const u=o(()=>{d||(d=r(c)||d,p=Date.now());Date.now()-p>=i&&((()=>{const e=w(y),t=c.map(e=>e[y]),o=c.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{a as initWidescreenSwitching};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as n,_ as i,c as t,g as o,a as r,b as d,d as l,e as s,F as a,h as c,f as u,j as f,k as v,u as m,m as g,A as h,s as p}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as e,l as n,_ as i,c as t,g as o,a as r,b as d,d as l,e as s,F as a,h as c,f as u,j as f,k as v,u as m,m as g,A as h,s as p}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import{xandrAdLoaded as y,finnBlinkLoaded as b}from"./events-BBn3N5se.js";import"react/jsx-runtime";e('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const k={Blink:"Blink"},w=new Map,$=e=>{var n;if(!w.has(e)){const n=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[n,i]of Object.entries(k)){const t=e[n];null!=t&&(window[i]=t)}})(e)).catch(n=>{throw w.delete(e),n});w.set(e,n)}return null!==(n=w.get(e))&&void 0!==n?n:Promise.resolve()},I="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",C="https://www.finn.no/distribution-front/external/carousel",S={get:e=>{try{const n=sessionStorage.getItem(e);return n?JSON.parse(n):null}catch(e){return n(`sessionStorageClient.get: Error during getting data from sessionStorage: ${e}`),null}},set:(e,i)=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(e){n(`sessionStorageClient.set: Error during saving data to sessionStorage: ${e}`)}},remove:e=>{try{sessionStorage.removeItem(e)}catch(e){n(`sessionStorageClient.remove: Error during remove data from sessionStorage: ${e}`)}}},j="finn_blink_id",x=e=>i(void 0,void 0,void 0,function*(){const{userId:n,id:i,hashed_email:t,theme:o}=e,r=u(e,["userId","id","hashed_email","theme"]),d=window[k.Blink];if(!d)return;const l=new d({remote:C,id:i,hashed_email:t,theme:o});yield l.inject(Object.assign({},r))}),B=e=>i(void 0,void 0,void 0,function*(){const{userId:n,theme:i}=e,t=u(e,["userId","theme"]),o=window[k.Blink];if(!o)return;const r=new o({remote:C,userId:n,theme:i});yield r.inject(Object.assign({},t))}),_=e=>{var n,i;const t=document.querySelector(`[id^="${e}"]`);return null!==(i=null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.finnBlinkId)&&void 0!==i?i:e},E=(e,n)=>{const{finnBlink:{enabled:i}={}}=t.get(),o=(null==n?void 0:n.enabled)||(e=>{var n;const i=document.querySelector(`[id^="${e}"]`);return!!(null===(n=null==i?void 0:i.dataset)||void 0===n?void 0:n.noBidAd)})(e);if(!o||!i)return null;const{limit:r,height:d,requireImage:l,theme:s,rec:a,distributionTypes:c,position:u,offset:f}=(null==n?void 0:n.sdkPayload)||{};return{selector:`#${_(e)}`,enabled:o,position:null!=u?u:e,distributionTypes:null!=c?c:[],limit:null!=r?r:100,height:null!=d?d:100,offset:null!=f?f:200,requireImage:l,rec:a,theme:"dark"===s?"dark":"light",advertoryTheme:null==n?void 0:n.advertoryTheme}},F=(e,u,f)=>i(void 0,void 0,void 0,function*(){var v;const{placements:m,pageContext:{deviceType:g}}=t.get();n(`rendering finn blink ad for ${e}`);const h=o(e),p=m[g].find(e=>e.targetId===h),k=E(e,null==p?void 0:p.finnBlink);if(!(null==k?void 0:k.enabled))return n(`Finn blink is not enabled on placement: ${e}`),f&&f(e),void y(e);if((e=>{var n;const i=_(e),t=document.querySelector(`[id^="${i}"]`);return!!(null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains("finn"))})(e))return void n(`Finn blink already loaded ${e}`);const{publisher:w,countryCode:$,finnBlink:I}=u,{sdkPayload:{userId:C,uuid:F,channel:N,theme:T}={}}=null!=I?I:{},A=null!=N?N:`${w}.${$}`,q=(e=>{if(!e){const e=l();return null!=e?e:""}return e})(C),O="dark"===T?"dark":"light";try{const e=yield i(void 0,void 0,void 0,function*(){const{finnBlink:{identifierUrl:e}={}}=t.get(),n=S.get(j),i=s(a);if(!e||i)return"";if(!n){const n=yield c.get(e,{credentials:"include"}),{finn_blink_id:i}=n;if(!i)throw new Error("getFinnBlinkIdentifier: No finn_blink_id found");return S.set(j,i),i}return n}),n=yield r(),o=(null===(v=null==p?void 0:p.finnBlink)||void 0===v?void 0:v.useNewConstructor)?B:x;yield o(Object.assign(Object.assign({},k),{channel:A,id:q,userId:n,hashed_email:e,theme:O,uuid:F})).then(()=>{b(k.selector.replace("#",""),k.advertoryTheme)})}catch(i){n(`Finn blink error ${i}`),f&&f(e),!f&&d(e),y(e)}}),N=()=>i(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:i,countryCode:o}}=t.get();return!!(yield f(e,i,o,"finn-blink"))||(n("Skip loading finn blink ad due to missing TCF consent."),!1)}),T=(e,o,r,l)=>i(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=t.get();if(n(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield N())||i)return r&&r(e),y(e),void(!r&&d(e));try{yield $(I)}catch(e){console.error(e)}yield F(e,o,r),l&&l()}),A=(e,i)=>{var t;(n(`Appending ${i.id} after ${e.id}`),e.parentElement&&(t=e.parentElement,!Array.from(t.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",i)):n(`Cannot perform afterend on: ${e.id}`)},q=(e,o)=>i(void 0,void 0,void 0,function*(){var i,r;if(!o)return;const{replacementConfig:d}=o,l=null===(i=null==d?void 0:d.adsToReplace)||void 0===i?void 0:i[e],s=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[e];v()&&l&&s&&o.enabled?(yield N())&&(yield $(I),l.forEach(([e,i])=>{const o=document.querySelector(`[id^="${e}"]`);if(!o)return;const r=(e=>{const{siteSpecificConfig:{publisherClassName:i}={}}=t.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=e,o.appendChild(r),g(i,r,h.FINN_BLINK),n(`Creating blink container for: ${e}`),o})(i);(e=>{n(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(o),A(o,r),o.dataset.finnBlinkId=i,m().withFullAdsChain(e)})):n(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),O=e=>document.querySelector(`#${e}`),P=e=>i(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:n,pageContext:{deviceType:i}}=t.get(),o=null==n?void 0:n.defaultThreshold[i];for(const n of e){const{requestThreshold:e,targetId:i}=n,t=O(i);t&&(yield p(t,null!=e?e:o))}});export{P as handleFinnBlinkOnlyPlacements,T as loadFinnBlinkAd,q as replaceAdsWithFinnBlink};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t,E as e}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";const n=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},r=(e,r)=>{var l,i;const s=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:o}={},fullWidth:d,pageContext:{deviceType:f}}=t.get();if(!s)return null;const u=s.parentElement;if(s.style.width="100vw",s.style.position="relative",u&&(u.style.width="100vw",u.style.position="relative"),a&&o){const t=`advertory-${a}-${o}`;s.classList.add(`${t}__${r}`),null==u||u.classList.add(`${t}-wrapper__${r}`)}const c=null===(i=null===(l=null==d?void 0:d.options)||void 0===l?void 0:l.styles)||void 0===i?void 0:i[f],p=(null==d?void 0:d.enabled)&&c;return!p&&u&&(u.style.left="50%",u.style.marginLeft="-50vw"),p&&c.adContainer&&n(s,c.adContainer),p&&c.adContainerWrapper&&u&&n(u,c.adContainerWrapper),s},l=(t,e,n,l)=>{const i=r(t,l);if(!i)return;const s=i.querySelector("iframe"),a=null==s?void 0:s.parentElement;if(!s||!a)return;const o=i.offsetWidth,d=o/t.width;a.style.transform=`scale(${d})`,a.style.transformOrigin="left top";const f=Math.round(o/e*n);i.style.height=`${f}px`},i=n=>{const l=r(n,"fullwidth-ad");if(!l)return;const i=l.querySelector("iframe");if(!i)return;const{deviceType:s}=t.get().pageContext;i.style.width=e(s)?"100vw":"100%"},s=t=>{l(t,1080,1920,"ninesixteen-ad")},a=t=>{l(t,1080,1080,"fullsquare-ad")};export{a as applyFullsquareFormat,i as applyFullwidthFormat,s as applyNinesixteenFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,l as e,
|
|
1
|
+
import{_ as t,l as e,R as a,U as n,j as i,V as l}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import{jsxs as r,jsx as s}from"react/jsx-runtime";class o{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:i}=new URL(a);if(!n.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[a];const l=i.split("/");return l.length?[...l.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class c{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class d{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const a=e.dataset.k5aTeaserAnalytics;try{return a?JSON.parse(a):{}}catch(t){return{}}}mapPageType(t){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[t||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(t){const{url:e,title:a,itemId:n}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)?null===(i=null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)||void 0===i||i.call(n,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===s||s.call(r,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(a=(t=this.pulse).trackLegacyClickUIElement)||void 0===a||a.call(t,s):this.pulse.trackClickUIElement?null===(i=(n=this.pulse).trackClickUIElement)||void 0===i||i.call(n,s):null===(r=(l=this.pulse).trackElementClick)||void 0===r||r.call(l,s)})}}class u extends d{constructor(t,e,a){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=a}getEventBaseData(t){var e,a,n,i,l,r;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),v=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getPulseObjectId)||void 0===n?void 0:n.call(a))&&void 0!==i?i:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=v?v:d,"@type":u,url:location.origin},tags:null===(r=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===r?void 0:r.call(l,t)}}getEventTarget(t){const{link:e,itemId:a,title:n}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}getEventInput(t,e){return{object:this.getEventBaseData(t),partnerstudio:this.getEventPartnerstudioData(t,e),target:this.getEventTarget(t),provider:this.getProviderData()}}getEventPartnerstudioData(t,e){const a=this.parseKilkayaData(t);return Object.assign(Object.assign({},a),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v="[data-k5a-teaser-analytics]",p=(t,e,a)=>{const n=document.querySelectorAll("k5a-stream");if(!n.length)return;const i=new u(t,e,a),l=new WeakMap,r=t=>{const e=l.get(t);e&&(e.disconnect(),l.delete(t))},s=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const a=t.target,n=a.querySelector(v);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)?(i.trackContentView(a),e.unobserve(t.target),r(a)):((t,e)=>{if(l.has(t))return;const a=new MutationObserver(()=>{const a=t.querySelector(v);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)&&(i.trackContentView(t),e.unobserve(t),r(t))});a.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),l.set(t,a)})(a,e)})},{threshold:.5});n.forEach(t=>{s.observe(t),t.addEventListener("click",()=>i.trackContentClick(t))})};class g{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a}}){if(!(null==t?void 0:t.instance))return;const n={[l.VG]:new o}[a]||new c;p(t.instance,n,e)}injectKilkayaMeta(t){const e=document.createElement("script");e.textContent=`var k5aMeta = { consent: ${t} };`,document.head.appendChild(e)}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var a;const n=null===(a=null==t?void 0:t.detail)||void 0===a?void 0:a.streamSlot;if(!n)return;const i=n.parentElement;i&&(e(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(i))})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";a(i)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield n(e)})}run(e){return t(this,void 0,void 0,function*(){var t,a;const{tcf:n,pageContext:{isMobileApp:l,countryCode:r},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield i(n,l,r,"kilkaya");o&&(this.observeForKilkayaBackfills(),this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(a=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(e))})}}const h=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:i,htmlAttributes:l})=>{const o=(t,e)=>{const a={};if(!t)return a;for(const[n,i]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(i)}return a},c=o(i,"data-pulse"),d=o(l,"data");return r("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},c,d,{children:[s("div",{className:"inscreen-target"}),s("k5a-stream",{name:t,"slot-tag":e}),s("div",{className:"container"}),s("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},k=e=>t(void 0,void 0,void 0,function*(){const t=new g;yield t.run(e)});export{h as Kilkaya,k as runKilkaya};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,
|
|
1
|
+
import{I as e,G as t,H as n,c as r,J as o,S as i,K as d}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";const l=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},s=(e,t=window.screen.width,n,r)=>{const o=l(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},a=(e,t)=>{if(e&&t)return t/e},c=new Map;c.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),c.set("panorama",{scale:.79,transformOrigin:"center center"}),c.set("outstream",{scale:.79,transformOrigin:"center center"}),c.set("integration",{scale:.79,transformOrigin:"center center"}),c.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),l=c.get(d),s=document.querySelector(`#${r.targetId}`);if(!s||!l)return;if(s.style.transformOrigin=l.transformOrigin,s.style.transform=`scale(${l.scale})`,!(null==l?void 0:l.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==s?void 0:s.offsetWidth;a&&"number"==typeof u&&!isNaN(u)&&a.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,l,a,c,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(l=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==l?l:0,p=document.getElementById(e.targetId),y=null!==(a=null==p?void 0:p.offsetWidth)&&void 0!==a?a:window.screen.width,h=null!==(u=null===(c=null==p?void 0:p.parentElement)||void 0===c?void 0:c.offsetWidth)&&void 0!==u?u:window.screen.width;s(e,(y<h?y:h)-w)};export{l as calculateScaleFactor,a as getAspectRatio,s as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{T as e,o as t,D as o,c as r,p as l,_ as s,q as a,r as n,v as c,w as d}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";const i="#fff",y="#0098da",p=(t,o=!0)=>{(t===e.WELCOME_PAGE||t===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(o)},u=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},v=e=>{document.body.style.overflow=e?"initial":"hidden"},A=e=>{const t=w(e),o=m(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),v(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",o)},m=e=>{const t=()=>A(e);return window.addEventListener("advertory:closeTakeover",t),u(),t},w=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&A(e)};return u(),window.addEventListener("keydown",t),t},E=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(w(e),m(e),u(),t.addEventListener("click",()=>{A(e)}),v(!1))},g=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),m(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},b=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>A(e))})(e)},h=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),t&&s&&(s.style.display="flex",s.innerText=o.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},f=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},L=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=o.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},S=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=o.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},k=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var o;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(o=Array.from(e.target.classList))&&void 0!==o?o:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},T=(e,t)=>{let o=e;return e.includes("529299503")&&(o=(e=>{const t=document.createElement("script");return t.textContent=`(${l})()`,e+t.outerHTML})(e)),o},C=e=>{const t=(e=>{var t;const{requests:o}=window.apntag,r=d(e)?1:0;return null===(t=null==o?void 0:o.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:o}=window.apntag,r=d(e)?1:0,l=null==o?void 0:o.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=t)})(e,T(t))},x=(e,t)=>{var o;const r="100%",l="100%";e.resizeAd(t,[r,l]);const s=null===(o=document.querySelector(`#div_utif_${t}`))||void 0===o?void 0:o.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(s),t=e.width,o=e.height;t===r&&o===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},q=o=>s(void 0,void 0,void 0,function*(){const{takeover:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),u=document.querySelector(".advertory-takeover-wrapper");if(!d||!u||!l)return;const v=a(o),A=u.offsetHeight,m=window.scrollY>A;u.style.display="block",!m&&p(v,!1),((t,o)=>{({[e.WELCOME_PAGE]:L,[e.SPLASH]:h,[e.TOPSCROLLER]:f,[e.VELVET]:S})[o](t)})(u,v),k(),((t,o)=>{({[e.WELCOME_PAGE]:g,[e.TOPSCROLLER]:g,[e.SPLASH]:E,[e.VELVET]:b})[o](t)})(u,v),((o,r,l)=>{if(!l)return;({[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=t(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:s,buttonLabel:a,showArrowIcon:n}=t(l,r);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const r=o.querySelector(`${t}`);if(r){if("#advertory-splash-close-label"===t&&(r.innerText=null!=a?a:""),".advertory-splash-close"===t&&n){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),r.appendChild(e)}if("#advertory-splash-logotype"===t&&s&&(r.setAttribute("src",s.url),r.setAttribute("alt",s.alt)),".advertory-splash-navbar-wrapper"===t&&e){const{backgroundColor:t,color:o}=e;r.style.setProperty("background-color",null!=t?t:i,"important"),r.style.color=null!=o?o:y}}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=t(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const r=o.querySelector(`${t}`);r&&(".advertory-topscroller-close"!==t||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==t||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}})[r]()})(u,v,l),yield n(),!m&&p(v,!0),c(o,v)});export{q as createTakeoverAd,C as modifyTakeoverAdContent,x as modifyTakeoverIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{X as Takeover,W as default}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o}from"./_auto-entry_fotbollskanalen-
|
|
1
|
+
import{i as o}from"./_auto-entry_fotbollskanalen-Ln26plyH.js";import"react/jsx-runtime";const t=o("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");export{t as default};
|