@schibsted/advertory 3.16.1-inv-2764.4 → 3.16.2
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/ad-native/cjs/index.d.ts +0 -2
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.d.ts +0 -2
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +0 -2
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-B1qXLAMp.js +1 -0
- package/aftenposten/es/{events-Bk6w85dE.js → events-D_uMtsHS.js} +1 -1
- package/aftenposten/es/{index-CZbklU5h.js → index-6u6m1kKG.js} +1 -1
- package/aftenposten/es/{index-B_fIJ5l8.js → index-B2RoGBFe.js} +1 -1
- package/aftenposten/es/{index-DvhPBtYQ.js → index-C-4Xnyp8.js} +1 -1
- package/aftenposten/es/{index-BTKzQ3zw.js → index-CFKYN9_Q.js} +1 -1
- package/aftenposten/es/{index-nustCAmi.js → index-Cbd3tGT7.js} +1 -1
- package/aftenposten/es/{index-CUO9IbY1.js → index-Cxg6ZL8q.js} +1 -1
- package/aftenposten/es/{index-BJtbY_WW.js → index-DL54H7dW.js} +1 -1
- package/aftenposten/es/{index-CAphZefo.js → index-DPeQzy9l.js} +1 -1
- package/aftenposten/es/index.d.ts +0 -2
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-Cxd1fwLP.js → styles-3wcBxoVm.js} +1 -1
- package/aftenposten/es/styles-6pOXHYRj.js +1 -0
- package/aftenposten/es/{styles-B0ENBTEe.js → styles-BGQXBidn.js} +1 -1
- package/aftenposten/es/{styles-ByWbI4FQ.js → styles-BH6M7tn5.js} +1 -1
- package/aftenposten/es/{styles-1LEHtoPo.js → styles-Bjrz23-R.js} +1 -1
- package/aftenposten/es/{styles-DXrJwW53.js → styles-C7uefJk3.js} +1 -1
- package/aftenposten/es/{styles-NvOi5xYE.js → styles-CMbCXBMC.js} +1 -1
- package/aftenposten/es/{styles-GVroYQmZ.js → styles-CjPginiC.js} +1 -1
- package/aftenposten/es/{styles-CA6mnmE1.js → styles-DHgqbFm6.js} +1 -1
- package/aftenposten/es/{styles-DqaB097r.js → styles-tVhBhYG5.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BcOVCt6j.js +1 -0
- package/aftenpostenv2/es/{events-CkSj0SUN.js → events-wtHbbAfu.js} +1 -1
- package/aftenpostenv2/es/{index-CYQ75PqD.js → index-BmO701Iw.js} +1 -1
- package/aftenpostenv2/es/{index-CC_7zTbi.js → index-BpVC8vDw.js} +1 -1
- package/aftenpostenv2/es/{index-BuHyHmsG.js → index-CFJnRcTK.js} +1 -1
- package/aftenpostenv2/es/{index-B9Azm9dg.js → index-CHeaUKsw.js} +1 -1
- package/aftenpostenv2/es/{index-Cl8iNbCF.js → index-CwU8zp8d.js} +1 -1
- package/aftenpostenv2/es/{index-D_JFUT6_.js → index-DOYQ0kyH.js} +1 -1
- package/aftenpostenv2/es/{index-CSmdvgqB.js → index-DQIHkqSI.js} +1 -1
- package/aftenpostenv2/es/{index-Cquo5nzS.js → index-DWlUEmgC.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +0 -2
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-wCYdqby0.js → styles-B6qwKW1F.js} +1 -1
- package/aftenpostenv2/es/{styles-CuMbZ6rp.js → styles-B7ddk9XD.js} +1 -1
- package/aftenpostenv2/es/{styles-lB_nUxDZ.js → styles-BUCva-uk.js} +1 -1
- package/aftenpostenv2/es/{styles-Dr2De_M6.js → styles-Bi4rqMX5.js} +1 -1
- package/aftenpostenv2/es/{styles-DEn_E4nY.js → styles-CKsAwzJW.js} +1 -1
- package/aftenpostenv2/es/styles-CMt0N0Ld.js +1 -0
- package/aftenpostenv2/es/{styles-Bj2m78Xk.js → styles-DaC-C5KQ.js} +1 -1
- package/aftenpostenv2/es/{styles-cjyM5l4S.js → styles-DaTbtDcl.js} +1 -1
- package/aftenpostenv2/es/{styles-HHICP4tS.js → styles-aW73vSB9.js} +1 -1
- package/aftenpostenv2/es/{styles-BxZlpD7Y.js → styles-bBRWtqAi.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +0 -2
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-Bpg-L9Im.js +1 -0
- package/aftonbladet/es/{events-CFI062-2.js → events-BhcDA_mF.js} +1 -1
- package/aftonbladet/es/{index-u59rayPg.js → index-BDJXLm0D.js} +1 -1
- package/aftonbladet/es/{index-CvyChDIT.js → index-C_cvevdm.js} +1 -1
- package/aftonbladet/es/{index-C8PbIeav.js → index-DLu6p4I4.js} +1 -1
- package/aftonbladet/es/{index-B7O1r6vQ.js → index-DQZxTKpK.js} +1 -1
- package/aftonbladet/es/{index-DWWDBIvN.js → index-DSYh2LiV.js} +1 -1
- package/aftonbladet/es/{index-BtQz543U.js → index-IGRjL2qd.js} +1 -1
- package/aftonbladet/es/{index-CjXM4bb_.js → index-n44Bg1NS.js} +1 -1
- package/aftonbladet/es/{index-B_RMZWob.js → index-plhW3GAe.js} +1 -1
- package/aftonbladet/es/index.d.ts +0 -2
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-Cb8HGVkO.js → styles-BHHZZJLK.js} +1 -1
- package/aftonbladet/es/{styles-BR_O3Gcy.js → styles-BaZpvKy7.js} +1 -1
- package/aftonbladet/es/{styles-BrJWiv9L.js → styles-CmaMJLch.js} +1 -1
- package/aftonbladet/es/{styles-BM36WgYg.js → styles-DBIfhN0m.js} +1 -1
- package/aftonbladet/es/styles-DohjfNit.js +1 -0
- package/aftonbladet/es/{styles-CAg3Awvf.js → styles-jL2xUCuO.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Do9-CHsr.js +1 -0
- package/aftonbladetv2/es/{events-B_DRjY_j.js → events-shRkJF5d.js} +1 -1
- package/aftonbladetv2/es/{index-DjhQ33z0.js → index-2r7fPABq.js} +1 -1
- package/aftonbladetv2/es/{index-BlpnB7BB.js → index-Brw03OTC.js} +1 -1
- package/aftonbladetv2/es/{index-bcl_ieN-.js → index-Bs3XYsDb.js} +1 -1
- package/aftonbladetv2/es/{index-XeGHnGjV.js → index-CQ65U3Gx.js} +1 -1
- package/aftonbladetv2/es/{index-DAMFZsdx.js → index-CnhXlTT_.js} +1 -1
- package/aftonbladetv2/es/{index-DCf5S4Ch.js → index-CsR58KCp.js} +1 -1
- package/aftonbladetv2/es/{index-BJHcjuJU.js → index-DvxP1nHF.js} +1 -1
- package/aftonbladetv2/es/{index-N6SmjOUs.js → index-fEuuxsSb.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +0 -2
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-NoR_EjAc.js → styles-BBoG4Gla.js} +1 -1
- package/aftonbladetv2/es/{styles-BRXdkDHu.js → styles-BJap_se9.js} +1 -1
- package/aftonbladetv2/es/styles-BeUetSrI.js +1 -0
- package/aftonbladetv2/es/{styles-DlPW0KT5.js → styles-CtnB_Vs0.js} +1 -1
- package/aftonbladetv2/es/{styles-4INTIE20.js → styles-DYcJf6S_.js} +1 -1
- package/aftonbladetv2/es/{styles-DeNp1Tb1.js → styles-pXneNop5.js} +1 -1
- package/bt/cjs/index.d.ts +0 -2
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-CLb_PCzh.js +1 -0
- package/bt/es/{events-TgNee5PY.js → events-i55m-fyY.js} +1 -1
- package/bt/es/{index-BEtwXieB.js → index-0G9hZXQV.js} +1 -1
- package/{sa/es/index-DdD8ZMp3.js → bt/es/index-2xhU3Mnd.js} +1 -1
- package/bt/es/{index-S-x3WNAO.js → index-B-fW6wPr.js} +1 -1
- package/bt/es/{index-HDeK4v9t.js → index-BWspzt58.js} +1 -1
- package/bt/es/{index-Dtzo0xiU.js → index-ByJfVuVF.js} +1 -1
- package/{sa/es/index-6C59HVb9.js → bt/es/index-D3WJoyU8.js} +1 -1
- package/bt/es/{index-D05KijW2.js → index-DQPAO5by.js} +1 -1
- package/bt/es/{index-Cy6hv-k1.js → index-DTvrjnpx.js} +1 -1
- package/bt/es/index.d.ts +0 -2
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-CN2IYJCA.js → styles-5Xb6Z7Ab.js} +1 -1
- package/bt/es/{styles-FTVWCbln.js → styles-BI39vQ_L.js} +1 -1
- package/bt/es/styles-BijH4c1y.js +1 -0
- package/bt/es/{styles-D9qxr0Pv.js → styles-Cg3Md_nX.js} +1 -1
- package/bt/es/{styles-D3jkyiRl.js → styles-DCjGBzDv.js} +1 -1
- package/bt/es/{styles-B4-EIeNa.js → styles-DmJDIc9A.js} +1 -1
- package/{sa/es/styles-BtPvSnKS.js → bt/es/styles-DnCYeIp4.js} +1 -1
- package/bt/es/{styles-B5WA_Ty9.js → styles-DvpbRbeS.js} +1 -1
- package/bt/es/{styles-CVL-DJPX.js → styles-xkUqfhdm.js} +1 -1
- package/btv2/es/_auto-entry_btv2-HS8Sqs9N.js +1 -0
- package/{omni/es/events-oaUzOY8n.js → btv2/es/events-BlA_3Ekx.js} +1 -1
- package/btv2/es/{index-BWV1Wqvm.js → index-B1M2e1Je.js} +1 -1
- package/btv2/es/{index-lk2kJM43.js → index-B1mRTWim.js} +1 -1
- package/btv2/es/{index-B_G-4JHd.js → index-C7UBOydN.js} +1 -1
- package/btv2/es/{index-CPc6BDaR.js → index-DNMpXXc5.js} +1 -1
- package/btv2/es/{index-B8cyyJcV.js → index-Sm6cPLFZ.js} +1 -1
- package/btv2/es/{index-CgTNENoL.js → index-bvPy2Rzw.js} +1 -1
- package/{omni/es/index-f19gjx67.js → btv2/es/index-hCK0IPjO.js} +1 -1
- package/{sav2/es/index-27hWMA3L.js → btv2/es/index-xJsGJ-2I.js} +1 -1
- package/btv2/es/index.d.ts +0 -2
- package/btv2/es/index.js +1 -1
- package/{sav2/es/styles-Br8AtS6s.js → btv2/es/styles-BcV7jAZp.js} +1 -1
- package/btv2/es/styles-CCjpkpYS.js +1 -0
- package/btv2/es/{styles-zIlxzT1h.js → styles-CRQ-qWJt.js} +1 -1
- package/btv2/es/{styles-CmVT68uT.js → styles-CbI2Kwv2.js} +1 -1
- package/{sav2/es/styles-DawUP2h0.js → btv2/es/styles-D6bbED88.js} +1 -1
- package/{sav2/es/styles-Dk_ChyGV.js → btv2/es/styles-DZiZUSGn.js} +1 -1
- package/btv2/es/{styles-BWJwNHDM.js → styles-QryraLih.js} +1 -1
- package/{sav2/es/styles-e4s68w_X.js → btv2/es/styles-idxgaQUk.js} +1 -1
- package/e24/es/_auto-entry_e24-rymDwEuc.js +1 -0
- package/e24/es/{events-E79MzYaS.js → events-B44J80Yw.js} +1 -1
- package/e24/es/{index-1H7zyGN3.js → index-B4qMrV3u.js} +1 -1
- package/e24/es/{index-D-4q4uVY.js → index-BRWSbGY-.js} +1 -1
- package/e24/es/{index-DETqZBG3.js → index-BpHwgNWK.js} +1 -1
- package/e24/es/{index-D6DPyNCl.js → index-DERM4Kn4.js} +1 -1
- package/e24/es/{index-BSq8tRJ5.js → index-DU8GbQ7X.js} +1 -1
- package/e24/es/{index-Tc-YOnWA.js → index-Dv2-HSUt.js} +1 -1
- package/e24/es/{index-BO2b4CQq.js → index-DzhIcBep.js} +1 -1
- package/e24/es/{index-CQsx96Ig.js → index-SBetL1bs.js} +1 -1
- package/e24/es/index.d.ts +0 -2
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DXkTkigT.js → styles-BUO57GaH.js} +1 -1
- package/{tv4/es/styles-BpUQGXAj.js → e24/es/styles-BcOm89oW.js} +1 -1
- package/e24/es/{styles-CLGgOXgZ.js → styles-Bl-FlvVo.js} +1 -1
- package/e24/es/{styles-BggeFoYI.js → styles-C9vFD5g3.js} +1 -1
- package/e24/es/{styles-CyeuJKoj.js → styles-CBK84aAT.js} +1 -1
- package/e24/es/{styles-CEYcn1pn.js → styles-CUOxyjVS.js} +1 -1
- package/e24/es/{styles-BE6M122k.js → styles-CUemn1LO.js} +1 -1
- package/e24/es/{styles-D97Rffdj.js → styles-CoK0Suc1.js} +1 -1
- package/e24/es/{styles-Bo5wtsaD.js → styles-DRTDxRhD.js} +1 -1
- package/e24/es/{styles-Dvt0C_4X.js → styles-DaP1vRGX.js} +1 -1
- package/e24/es/styles-EWzKTzHW.js +1 -0
- package/editory/cjs/index.d.ts +1 -4
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.d.ts +1 -4
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.d.ts +0 -2
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BsvJG3bT.js +1 -0
- package/fotbollskanalen/es/{events-Dj9r_ipD.js → events-U1PAHSie.js} +1 -1
- package/fotbollskanalen/es/{index-CQEN2s0T.js → index-B_-428Tz.js} +1 -1
- package/fotbollskanalen/es/{index-D8eXxAsz.js → index-BcLQVK_R.js} +1 -1
- package/fotbollskanalen/es/{index-CNLoCJoM.js → index-CRfxnewr.js} +1 -1
- package/fotbollskanalen/es/{index-Bjya9Zqd.js → index-CcDczicS.js} +1 -1
- package/fotbollskanalen/es/{index-BGDO0aVr.js → index-CrAYKGWF.js} +1 -1
- package/fotbollskanalen/es/{index-DOhMDLF-.js → index-X9O_SnPI.js} +1 -1
- package/fotbollskanalen/es/{index-C6f5Gu5K.js → index-jm_EtnPl.js} +1 -1
- package/fotbollskanalen/es/{index-B5CsY3G6.js → index-lYEeMuk9.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +0 -2
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-Yh9VcN05.js → styles-BActnTj4.js} +1 -1
- package/fotbollskanalen/es/{styles-nDKs3_cG.js → styles-BbGftZIN.js} +1 -1
- package/fotbollskanalen/es/styles-CEF07njO.js +1 -0
- package/fotbollskanalen/es/{styles-ByyRznzC.js → styles-M1Y_hOJY.js} +1 -1
- package/godt/cjs/index.d.ts +0 -2
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +0 -1
- package/kilkaya/es/index.d.ts +0 -1
- package/klart/cjs/index.d.ts +0 -2
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +0 -2
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-C0ktrXrV.js +1 -0
- package/koket/es/{events-CMpwVsjk.js → events-BovmkQVb.js} +1 -1
- package/koket/es/{index-Bd9-0Pxj.js → index-BAN5nYuS.js} +1 -1
- package/koket/es/{index-DMpy3ftq.js → index-BB_MtprY.js} +1 -1
- package/koket/es/{index-bJ3nVCsT.js → index-BX3TIHCj.js} +1 -1
- package/koket/es/{index-bvHXYkbW.js → index-BezAAWBN.js} +1 -1
- package/koket/es/{index-BS3vJ4GB.js → index-C9hbuAmi.js} +1 -1
- package/koket/es/{index-UVgtQrT0.js → index-CMuJp9d-.js} +1 -1
- package/{svdv2/es/index-Cwfk25HV.js → koket/es/index-CZiGJACJ.js} +1 -1
- package/koket/es/{index-BJCjugDe.js → index-D4iiE_kO.js} +1 -1
- package/koket/es/index.d.ts +0 -2
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-XR5W7bAz.js → styles-C0HS3OLm.js} +1 -1
- package/{svdv2/es/styles-CKt8R3pd.js → koket/es/styles-CXH6miLx.js} +1 -1
- package/{svdv2/es/styles-Bk3CBZCz.js → koket/es/styles-DWE-fYIe.js} +1 -1
- package/koket/es/styles-hEjIGwof.js +1 -0
- package/minmote/cjs/index.d.ts +0 -2
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/_auto-entry_mtv-PapZnH4W.js +1 -0
- package/mtv/es/{events-8g_DRD-6.js → events-BCVnwxmr.js} +1 -1
- package/mtv/es/{index-CFbGSVRH.js → index-BOVIWQ-8.js} +1 -1
- package/mtv/es/{index-D_HXPMBm.js → index-Bq-dre8e.js} +1 -1
- package/mtv/es/{index-BKHxW9YX.js → index-CXCyp7D9.js} +1 -1
- package/mtv/es/{index-C05PG6Ov.js → index-C_K15-N2.js} +1 -1
- package/mtv/es/{index-DD4b8Eu8.js → index-Cj-7zBIk.js} +1 -1
- package/mtv/es/{index-rJgf4cgg.js → index-D3znrlvr.js} +1 -1
- package/mtv/es/{index-DGyl93vc.js → index-DHJi2AoA.js} +1 -1
- package/mtv/es/{index-aXzXWU5U.js → index-iEmKomsz.js} +1 -1
- package/mtv/es/index.d.ts +0 -2
- package/mtv/es/index.js +1 -1
- package/omni/es/_auto-entry_omni-tnUYzloM.js +1 -0
- package/{tvnu/es/events-DElsINtZ.js → omni/es/events-DAa4O10W.js} +1 -1
- package/omni/es/{index-D3nZmeku.js → index-B7YFCJkD.js} +1 -1
- package/{tvnu/es/index-BbbUfsHA.js → omni/es/index-Bt7hkwEA.js} +1 -1
- package/omni/es/{index-DruNDLWc.js → index-CoYdSw_v.js} +1 -1
- package/omni/es/{index-rRuWHr5E.js → index-DCZ7L5WC.js} +1 -1
- package/omni/es/{index-DFGjYM-j.js → index-DViuPIrZ.js} +1 -1
- package/omni/es/{index-DpDR8M7c.js → index-DpvQhzJk.js} +1 -1
- package/{btv2/es/index-DTRBvdbB.js → omni/es/index-iNGHttDP.js} +1 -1
- package/omni/es/{index-BzePdWPc.js → index-l3N6EL0C.js} +1 -1
- package/omni/es/index.d.ts +0 -2
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-C6_mJYoV.js → styles-8iCz1vgS.js} +1 -1
- package/omni/es/{styles-qVfAwb0U.js → styles-DcFUZPbk.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +0 -2
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +0 -2
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-D8DHT4og.js +1 -0
- package/sa/es/{events-DcqRBp1a.js → events--OYD4uSp.js} +1 -1
- package/sa/es/{index-Cjnqbn5H.js → index-B8ZUvfqU.js} +1 -1
- package/sa/es/{index-BwKDYIN5.js → index-C1TSyiDe.js} +1 -1
- package/sa/es/{index-BYAgYy-h.js → index-C7Ca92qe.js} +1 -1
- package/sa/es/{index-tJ0jHrhA.js → index-ClPS6mNs.js} +1 -1
- package/sa/es/{index-BqZ-eck0.js → index-Ds0AUAxf.js} +1 -1
- package/{bt/es/index-DU4w1Y_Y.js → sa/es/index-RcjYgQuc.js} +1 -1
- package/{bt/es/index-ByxF54C5.js → sa/es/index-s2Kchy8N.js} +1 -1
- package/sa/es/{index-CdoIJcvJ.js → index-vpbcNbZm.js} +1 -1
- package/sa/es/index.d.ts +0 -2
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-zftOHy6n.js → styles-4JFiFkQM.js} +1 -1
- package/sa/es/styles-BmE4BFB_.js +1 -0
- package/{vg/es/styles-CpF0rMi6.js → sa/es/styles-CAqSGv_R.js} +1 -1
- package/sa/es/{styles-BG9UEcsv.js → styles-CKSAaiVF.js} +1 -1
- package/sa/es/{styles-CwcD-_rb.js → styles-CWgWthWE.js} +1 -1
- package/sa/es/{styles-CoHnIpIW.js → styles-CZpmTskg.js} +1 -1
- package/sa/es/{styles-Bhh93J-0.js → styles-D02qwbqo.js} +1 -1
- package/{vg/es/styles-BJCGQl8n.js → sa/es/styles-e-WfvyQA.js} +1 -1
- package/sa/es/{styles-ClhkwdZp.js → styles-o7-4kP1n.js} +1 -1
- package/sav2/es/_auto-entry_sav2-BpwtgIN3.js +1 -0
- package/sav2/es/{events-CUXzJa55.js → events-Bc1PzFLM.js} +1 -1
- package/sav2/es/{index-jfQSm4Io.js → index-B7aLPTGG.js} +1 -1
- package/sav2/es/{index-B9Z9dZKX.js → index-BWKo_MdR.js} +1 -1
- package/sav2/es/{index-cVjdSBjg.js → index-BhLyW5hO.js} +1 -1
- package/{omni/es/index-CRgLDaxF.js → sav2/es/index-BpKgei7N.js} +1 -1
- package/sav2/es/{index-DEGUBJoJ.js → index-CEm8rXba.js} +1 -1
- package/{tvnu/es/index-CElsGR72.js → sav2/es/index-DL2lRJur.js} +1 -1
- package/sav2/es/{index-DJdefxsH.js → index-DPLWBjgt.js} +1 -1
- package/sav2/es/{index-BXSvvUjX.js → index-D_IDf3_s.js} +1 -1
- package/sav2/es/index.d.ts +0 -2
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-CwBUc-Bv.js → sav2/es/styles-BhzlmK8c.js} +1 -1
- package/{vgv2/es/styles-BtKgbXdm.js → sav2/es/styles-Bq1OB23Y.js} +1 -1
- package/{btv2/es/styles-DiSpVFV-.js → sav2/es/styles-CVpHwV9A.js} +1 -1
- package/sav2/es/{styles-D5gPY0BI.js → styles-CwiXKpbk.js} +1 -1
- package/sav2/es/styles-D54W_5G1.js +1 -0
- package/sav2/es/{styles-C8f2mrjH.js → styles-DYJCOF4k.js} +1 -1
- package/sav2/es/{styles-B89TDPuF.js → styles-SiZpJ80D.js} +1 -1
- package/{vgv2/es/styles-By6CS3Wj.js → sav2/es/styles-tZ63l3jP.js} +1 -1
- package/svd/cjs/index.d.ts +0 -2
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-Cd7f0R9Z.js +1 -0
- package/{tv4/es/events-B3O0fWPy.js → svd/es/events-sP-h-HNo.js} +1 -1
- package/{tv4/es/index-BCVwQTTB.js → svd/es/index-CQ661Xvb.js} +1 -1
- package/svd/es/{index-z4b0vw6D.js → index-CXNHZrgw.js} +1 -1
- package/svd/es/{index-7dqYZDuP.js → index-CfWJzVY9.js} +1 -1
- package/svd/es/{index-DKYRkG05.js → index-CgANpoPE.js} +1 -1
- package/svd/es/{index-LX3eQGW9.js → index-DTALsVOk.js} +1 -1
- package/svd/es/{index-TsE3LYGS.js → index-DyyX5ap9.js} +1 -1
- package/svd/es/{index-DQUqL8tL.js → index-Gq-Ql3_Q.js} +1 -1
- package/svd/es/{index-C_XkZnGH.js → index-vQo3voNo.js} +1 -1
- package/svd/es/index.d.ts +0 -2
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-7qeWe_rE.js → styles-BlpnIMAA.js} +1 -1
- package/svd/es/{styles-AAFi5fYz.js → styles-ChI9QyDm.js} +1 -1
- package/svd/es/{styles-kbQBFEen.js → styles-CucZviuO.js} +1 -1
- package/svd/es/{styles-lPVh5k-i.js → styles-M2SRThP2.js} +1 -1
- package/svd/es/{styles-CZSO-k3B.js → styles-ebvjh3II.js} +1 -1
- package/svd/es/{styles-CeC10HXE.js → styles-w1_Tjjf1.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-BDn1Q9XV.js +1 -0
- package/svdv2/es/{events-B116ft6G.js → events-BGDs6NQb.js} +1 -1
- package/svdv2/es/{index-DVFe67t8.js → index-B3Sz92t0.js} +1 -1
- package/{koket/es/index-BCvCORcU.js → svdv2/es/index-BFqr1sCP.js} +1 -1
- package/svdv2/es/{index-CWY-zN2j.js → index-CBTqCYTq.js} +1 -1
- package/svdv2/es/{index-Ai2BbzKT.js → index-CQZNvCA7.js} +1 -1
- package/svdv2/es/{index-DldgfWFa.js → index-Chgbk0yn.js} +1 -1
- package/svdv2/es/{index-BYDDqA_h.js → index-D8DCR2IF.js} +1 -1
- package/svdv2/es/{index-DAtP3Sb7.js → index-DbIjGiin.js} +1 -1
- package/svdv2/es/{index-BDAOjseu.js → index-xJhtZxT9.js} +1 -1
- package/svdv2/es/index.d.ts +0 -2
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-slUyn8uZ.js → svdv2/es/styles-BFc0NbWI.js} +1 -1
- package/svdv2/es/{styles-DpC8eiLM.js → styles-BgAa5_sm.js} +1 -1
- package/svdv2/es/{styles-Dr4NsWUF.js → styles-D-NNSAhr.js} +1 -1
- package/{koket/es/styles-B1xbYQ2A.js → svdv2/es/styles-DOv8lf2Y.js} +1 -1
- package/svdv2/es/{styles-CGnQjHlW.js → styles-DTkKb7gv.js} +1 -1
- package/svdv2/es/styles-DVTfeGB1.js +1 -0
- package/svdv2/es/{styles-80dcNeEH.js → styles-QXYvDja1.js} +1 -1
- package/tek/cjs/index.d.ts +0 -2
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +0 -1
- package/tracker/es/index.d.ts +0 -1
- package/tv4/cjs/index.d.ts +0 -2
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-GaCM0Lzx.js +1 -0
- package/{svd/es/events-B6zOS6x9.js → tv4/es/events-RebxTAyP.js} +1 -1
- package/tv4/es/{index-DGCI9r_4.js → index-BTMzJQuh.js} +1 -1
- package/tv4/es/{index-DdibYm8u.js → index-BbMM8XVf.js} +1 -1
- package/tv4/es/{index-qocK72SG.js → index-BrL5n1jS.js} +1 -1
- package/{svd/es/index-QLJPTZ5x.js → tv4/es/index-COB1Mt-X.js} +1 -1
- package/tv4/es/{index-D7ZpDfty.js → index-DciuzESQ.js} +1 -1
- package/tv4/es/{index-BDvHtxhi.js → index-TMi7DEVO.js} +1 -1
- package/tv4/es/{index-0GGnIlfR.js → index-tDimum_4.js} +1 -1
- package/tv4/es/{index-0c7uccif.js → index-vfK21mrZ.js} +1 -1
- package/tv4/es/index.d.ts +0 -2
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-BGJgkgiv.js → styles-ASWqfgyJ.js} +1 -1
- package/tv4/es/{styles-CoZows5I.js → styles-BBYtRDZ-.js} +1 -1
- package/{e24/es/styles-QY6vQvfb.js → tv4/es/styles-Hf0TczXZ.js} +1 -1
- package/tv4/es/styles-v4eFBECR.js +1 -0
- package/tvnu/cjs/index.d.ts +0 -2
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-hrDQ5eUr.js +1 -0
- package/{btv2/es/events-vW4hK16z.js → tvnu/es/events-DjK5W8oQ.js} +1 -1
- package/tvnu/es/{index-B-iOKGeg.js → index-0L89OFLm.js} +1 -1
- package/tvnu/es/{index-DvSOw5XF.js → index-BaCS1JZg.js} +1 -1
- package/tvnu/es/{index-UtEgVkvO.js → index-Bm54mu2z.js} +1 -1
- package/tvnu/es/{index-NwKLxlR8.js → index-CSf_y-Ex.js} +1 -1
- package/{btv2/es/index-BjafO_5R.js → tvnu/es/index-Ckrhaaso.js} +1 -1
- package/tvnu/es/{index-S5pw3ksp.js → index-CyZjkHD0.js} +1 -1
- package/{vgv2/es/index-DBrGkRIO.js → tvnu/es/index-DBlMhAgk.js} +1 -1
- package/{sav2/es/index-urpWoQH6.js → tvnu/es/index-DCcyV8vv.js} +1 -1
- package/tvnu/es/index.d.ts +0 -2
- package/tvnu/es/index.js +1 -1
- package/{btv2/es/styles-CUCSq-CL.js → tvnu/es/styles-8CQ77QKW.js} +1 -1
- package/tvnu/es/styles-BI29wY3Y.js +1 -0
- package/tvnu/es/{styles-DOx5QV2h.js → styles-iZv_wcR1.js} +1 -1
- package/types/index.d.ts +0 -3
- package/vg/cjs/index.d.ts +0 -2
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-D2lReLEt.js +1 -0
- package/vg/es/{events-Dpb-lTHl.js → events-CvmjPWyG.js} +1 -1
- package/vg/es/{index-BisnI0_f.js → index-034Z_DDL.js} +1 -1
- package/vg/es/{index-C0xE4mVG.js → index-BJmnLSx_.js} +1 -1
- package/vg/es/{index-Co3PBE29.js → index-BwBOUE0L.js} +1 -1
- package/vg/es/{index-efR7HDuX.js → index-CXpYusGo.js} +1 -1
- package/vg/es/{index-CBD2eIyJ.js → index-CaqAfC1G.js} +1 -1
- package/vg/es/{index-CfeyqKRC.js → index-DR4phW5U.js} +1 -1
- package/vg/es/{index-DZ8Vl2fp.js → index-DWLgT_Vh.js} +1 -1
- package/vg/es/{index-CrpD463R.js → index-Dfqo8KTg.js} +1 -1
- package/vg/es/index.d.ts +0 -2
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-CguHYbyg.js → styles-5PHx6-IY.js} +1 -1
- package/vg/es/{styles-GHG45pzQ.js → styles-6ycxvabw.js} +1 -1
- package/vg/es/{styles-Oly3mbSO.js → styles-BznanjlT.js} +1 -1
- package/vg/es/{styles-DRiiLhG6.js → styles-C-y7RTe6.js} +1 -1
- package/vg/es/{styles-CqMDeE5E.js → styles-C9Y37Uo4.js} +1 -1
- package/vg/es/{styles-zOuQJVCe.js → styles-CEqMGExn.js} +1 -1
- package/vg/es/{styles-DSEiQyic.js → styles-CMRzLEuB.js} +1 -1
- package/{bt/es/styles-uOUqyhxI.js → vg/es/styles-C_lMPwsL.js} +1 -1
- package/vg/es/{styles-CBMc7O3B.js → styles-CgXjTYoM.js} +1 -1
- package/vg/es/styles-CoKxZHrs.js +1 -0
- package/vg/es/{styles-rNO0KeQS.js → styles-Cz6pROmm.js} +1 -1
- package/vg/es/{styles-C-yNNtM_.js → styles-Dz_pB6tU.js} +1 -1
- package/vg/es/{styles-CVEwYMpA.js → styles-gdn-bSE7.js} +1 -1
- package/{sa/es/styles-De6OlrID.js → vg/es/styles-i54p_GZQ.js} +1 -1
- package/vg/es/{styles-ERQryeVC.js → styles-nQ4QGPrT.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-M_Gc7YYW.js +1 -0
- package/vgv2/es/{events-CIeHDzYM.js → events-BIsyZr7G.js} +1 -1
- package/{tvnu/es/index-C-zSwU_2.js → vgv2/es/index-BHHPBWuu.js} +1 -1
- package/vgv2/es/{index-HFbp97If.js → index-CBrUGzNu.js} +1 -1
- package/vgv2/es/{index-Y6skex4C.js → index-CSsr8Jjy.js} +1 -1
- package/vgv2/es/{index-DAnAZBsi.js → index-DZdfKL9H.js} +1 -1
- package/vgv2/es/{index-BHiiBZLf.js → index-Rm5ketJd.js} +1 -1
- package/vgv2/es/{index-CTZaRO67.js → index-XNdmVwjt.js} +1 -1
- package/vgv2/es/{index-BsPIFyCe.js → index-fqmHcq5_.js} +1 -1
- package/vgv2/es/{index-6U59xjgz.js → index-iFtnD3MK.js} +1 -1
- package/vgv2/es/index.d.ts +0 -2
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/styles-BIYViMHc.js +1 -0
- package/vgv2/es/{styles-CVj-U6JM.js → styles-BLz4Y1Vc.js} +1 -1
- package/vgv2/es/{styles-BD-e88-R.js → styles-BNP6iNE-.js} +1 -1
- package/{btv2/es/styles-CcE33cjq.js → vgv2/es/styles-BNZVwUCa.js} +1 -1
- package/vgv2/es/{styles-DGr2FAsY.js → styles-BoFWnu0n.js} +1 -1
- package/{tvnu/es/styles-cciOUCoQ.js → vgv2/es/styles-Bu_xPKbr.js} +1 -1
- package/vgv2/es/{styles-DQ0cw2Ho.js → styles-Bupc-l79.js} +1 -1
- package/vgv2/es/{styles-BMvZYb2x.js → styles-CAlAHhk9.js} +1 -1
- package/vgv2/es/{styles-9YJI3szY.js → styles-CRXC6umW.js} +1 -1
- package/vgv2/es/{styles-DdcAE2Ic.js → styles-Dp-scnt2.js} +1 -1
- package/vgv2/es/{styles-zP7cfRrM.js → styles-Du6_Nwi7.js} +1 -1
- package/vgv2/es/{styles-Cy_z5CSp.js → styles-FN3vEV-X.js} +1 -1
- package/vgv2/es/{styles-tdzl5GGf.js → styles-T7N4v0yp.js} +1 -1
- package/vgv2/es/{styles-sPcYduP-.js → styles-Xss3AJbe.js} +1 -1
- package/vgv2/es/{styles-DvrpQSWV.js → styles-rfto978F.js} +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-CpQ_I69h.js +0 -1
- package/aftenposten/es/styles-Ca0KjsCl.js +0 -1
- package/aftenposten/es/styles-NBTSAKre.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-C_SBtKiy.js +0 -1
- package/aftenpostenv2/es/styles-CbOzD-J4.js +0 -1
- package/aftenpostenv2/es/styles-DpXlPo28.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-BSunf6oM.js +0 -1
- package/aftonbladet/es/styles-DXJDV0Gc.js +0 -1
- package/aftonbladet/es/styles-wAnc6FD6.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-B-NGWA4o.js +0 -1
- package/aftonbladetv2/es/styles-B-a4ijiz.js +0 -1
- package/aftonbladetv2/es/styles-ClqLp6ne.js +0 -1
- package/bt/es/_auto-entry_bt-iZwb9nOb.js +0 -1
- package/bt/es/styles-CMCJhiXh.js +0 -1
- package/bt/es/styles-piAjmioa.js +0 -1
- package/btv2/es/_auto-entry_btv2-MRo9uN0G.js +0 -1
- package/btv2/es/styles-DDILK0OD.js +0 -1
- package/btv2/es/styles-jaR81r7K.js +0 -1
- package/e24/es/_auto-entry_e24-Dag0NmvA.js +0 -1
- package/e24/es/styles-DWN7ScxN.js +0 -1
- package/e24/es/styles-OeJACyX-.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DWPg01OG.js +0 -1
- package/fotbollskanalen/es/styles-BwQkjDsz.js +0 -1
- package/fotbollskanalen/es/styles-DuRijs8K.js +0 -1
- package/koket/es/_auto-entry_koket-D-xXMINR.js +0 -1
- package/koket/es/styles-CJgrKIWZ.js +0 -1
- package/koket/es/styles-CMxXnqj6.js +0 -1
- package/mtv/es/_auto-entry_mtv-DnI-H9i2.js +0 -1
- package/mtv/es/styles-BAWfKRMB.js +0 -1
- package/omni/es/_auto-entry_omni-Dy5foZ3f.js +0 -1
- package/omni/es/styles-Fppy73ED.js +0 -1
- package/sa/es/_auto-entry_sa-BEX1k52c.js +0 -1
- package/sa/es/styles-4bmP-QDX.js +0 -1
- package/sa/es/styles-D7-ytw3y.js +0 -1
- package/sav2/es/_auto-entry_sav2-D3OEHbDX.js +0 -1
- package/sav2/es/styles-C9Blk6Zb.js +0 -1
- package/sav2/es/styles-CStbBgZ3.js +0 -1
- package/svd/es/_auto-entry_svd-CDoHrGMT.js +0 -1
- package/svd/es/styles-2RVPwYsO.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-D-GrdLbq.js +0 -1
- package/svdv2/es/styles-C-_9XNs5.js +0 -1
- package/svdv2/es/styles-C2V7nYjT.js +0 -1
- package/tv4/es/_auto-entry_tv4-zgTGNqGw.js +0 -1
- package/tv4/es/styles-DGvkLKRg.js +0 -1
- package/tv4/es/styles-ppZY4J4D.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-DiluniLZ.js +0 -1
- package/tvnu/es/styles-DubOMzyG.js +0 -1
- package/tvnu/es/styles-VRf6Ag8X.js +0 -1
- package/vg/es/_auto-entry_vg-BVAizjC3.js +0 -1
- package/vg/es/styles-Ba17TnsX.js +0 -1
- package/vg/es/styles-CxH4A3gD.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-Dq8TsPsA.js +0 -1
- package/vgv2/es/styles-Cge-OTIP.js +0 -1
- package/vgv2/es/styles-PKpKYB9H.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"react/jsx-runtime";const e={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},t={SVD:"svd",VG:"vg",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",OMNI:"omni",MTV:"mtv"},n={publisherClassName:t.MTV,classesToRemoveOnRefresh:[]};function i(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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function d(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((i=i.apply(e,t||[])).next())})}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,d;"function"==typeof SuppressedError&&SuppressedError;var s=r(function(){if(d)return a;d=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)?l((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 o(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 r(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var a={};return i.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,i)(e[o],t[o],i):a[o]=n(t[o],i))}),a}function l(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):s(t,o,r):n(o,r)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},a=l}());const l={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},c=(e,t)=>s(e,t,l),u=(e,t)=>Object.assign(Object.assign({},e),t),p=(e,t)=>{var n;return c(null!==(n=e)&&void 0!==n?n:{},t)},v=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{console.warn("[Advertory WARN]: ",e)},h=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),i||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,o;const r=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.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f={placements:(e,t)=>t,takeover:p,refreshConfig:u,editory:p,appearanceConfig:p,pageContext:u,pageOptions:u,pageSectionsSelectors:u,tcf:u},m=(e,t)=>{const n=e;for(const e of Object.keys(f)){const i=t[e];void 0!==i&&(n[e]=f[e](n[e],i))}},y=6;class b{set(e){h(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");m(this.config,e)}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=c(b.DEFAULT_SITE_HANDLERS,e)}}b.DEFAULT_SITE_HANDLERS={siteEvents:e,initNativeAd:()=>{}};const w=new b,C=w.modifyConfigProperties.bind(w);class I{initialize(){this.DATA=Object.assign({},I.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)}}I.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new I,T=864e5,S=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return v("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=T)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=T)=>{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 v("Error with parsing localStorage data"),null}}}})(),A="glimrTags",O=["glwe_","glwet_"],x={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",L="native_override_desc2",_=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 v("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(v("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{v("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{v("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);v("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),j={NO:"no",SE:"se"},$="cmp:loaded";let N="undefined"!=typeof window?window._tcf_:void 0,q=!1;const F=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,a=k("bypass_tcf"),d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(v("TCF bypass param detected, returning consent: true"),!0):(v("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(q)return null;if(!N)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=N.getConsentedToAllSync();return v(`TCF consented to all is: ${t}`),N.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(v("Getting TCF consent manager..."),window._tcf_)return v("TCF consent manager is already available"),N=window._tcf_,void e(N);v("TCF consent manager is not available");const n=()=>{v("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(N=window._tcf_,e(N)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener($,n),q=!0,t(new Error("Timeout waiting for CMP to load"))},r);v("Listening for CMP loaded event..."),document.addEventListener($,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>o(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`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===j.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===j.NO;if(t||i)return v("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield _(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,t)=>{try{if(!N)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(()=>{v("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);N.onTcfReady(()=>{v("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),N.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>o(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return v(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`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:o}=F(e,0,n);return(yield o())?(v(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(v(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),M=(...e)=>o(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 R(t,n,i,"glimr")}const{getConsentAsync:o}=F(t,0,i);return yield o()}),D=()=>o(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void v("No consent for glimr data fetching.");const t=yield(n=500,o(void 0,void 0,void 0,function*(){return yield Promise.race([o(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)=>{S.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){v(`Error during getting glimr data: ${e}`)}else v("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),B={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},U=e=>O.some(t=>e.startsWith(t)),H=e=>e.startsWith("glgc_"),V=e=>e.startsWith("glci_"),W=e=>!U(e)&&!H(e),K=e=>e===j.NO?"no-sno":"se-generic",z=(e,t)=>o(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:o}={}}=e,r=yield M(e);if(!(null==i?void 0:i.enabled)||!r)return v("No consent for getting glimr tags."),{};const a=K(o),d=G(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),G=(e,t)=>{const n=X();if(!n)return x;const i=((e=[])=>e.filter(U))(n),o=((e=[])=>e.filter(H))(n),r=((e=[],t,n)=>{var i;const o=e.filter(W);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},X=()=>{const e=S.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(V))(null!==(e=X())&&void 0!==e?e:[])},Q=()=>(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),Y=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd},ee=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:o}}=w.get(),r=[`${K(o)}-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?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},te="opaque",ne=e=>o(void 0,void 0,void 0,function*(){if(e.type!==te){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>o(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=i(t,["timeout"]);if(n)return((e,t,n)=>o(void 0,void 0,void 0,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ne(n)}finally{clearTimeout(o)}}))(e,r,n);const a=yield fetch(e,r);return ne(a)}),post:(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),o=yield fetch(e,{method:"POST",headers:t,body:i});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},oe="advertory:ppids-cache",re={[j.SE]:`SCH${j.SE.toUpperCase()}-EnvHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-EnvHash`},ae={[j.SE]:`SCH${j.SE.toUpperCase()}-UserHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-UserHash`},de={[j.SE]:`sch${j.SE}-envhash-v3`,[j.NO]:`sch${j.NO}-envhash-v3`},se={[j.SE]:`sch${j.SE}-userhash-v3`,[j.NO]:`sch${j.NO}-userhash-v3`},le={[j.SE]:`'sch${j.SE}-iosid-v3'`,[j.NO]:`'sch${j.NO}-iosid-v3'`},ce={[j.SE]:`sch${j.SE}-androidid-v3`,[j.NO]:`sch${j.NO}-androidid-v3`},ue={[j.SE]:"sdrn:schibsted.com:user",[j.NO]:"sdrn:spid.no:user"};class pe{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 ve=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return o(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("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:""}},ge=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return o(this,void 0,void 0,function*(){var n,i,o,r,a,d,s,l,c,u,p;const v=S.get(oe),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===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.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||v("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 o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=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}}:{});S.set(oe,o)}hashPPIDs(e,t){return o(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ie.post(t,n,e)}catch(e){return v("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return o(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>o(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ue[t]}:${n}`:null}))(t,n),r=yield(a=t,o(void 0,void 0,void 0,function*(){const e=yield a.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var a;const d=window.advertory_idfv,s=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"}},d?{idfv:{plain:d}}:{}),s?{anId:{plain:s}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},he=e=>o(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:o}}=e;if(!(yield R(n,o,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([ve.processPPIDs(t,null==n?void 0:n.timeout),ge.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){v(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),fe=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).add(r,le[e]).add(a,ce[e]).buildEids()}]}},me=()=>{const{ppid1:e,ppid2:t}=ve.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).add(r,le[e]).add(a,ce[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs();return(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).buildRyEids()},Ce=e=>o(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Ie=()=>o(void 0,void 0,void 0,function*(){const{ppid1:e}=ge.getPPIDs();return e}),Ee=(e,...t)=>o(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 o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{d(),n()},a=()=>{d(),i(new Error(`Failed to load ${e}`))},d=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(s)};o.addEventListener("load",r),o.addEventListener("error",a);const s=setTimeout(()=>{d(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}),Te={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},Se={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}]},Ae={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Be(e,Te.ANY_FULLSCREEN)},xe=e=>{const{native:t}=e;return!!t},ke=e=>Be(e,Te.FULLWIDTH),Pe=e=>{const{targetId:t}=e;return t.includes("takeover")||Be(e,Te.TAKEOVER)},Le=e=>Be(e,Te.TAKEOVER),_e=e=>Be(e,Te.WALLPAPER),je=e=>Be(e,Te.COLLAPSE),$e=e=>e.targetId.includes("sponsorstripe"),Ne=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Fe=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,De=e=>e.width>=1600&&e.width<=1620,Be=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,i;const o=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===o,d=!t.height||t.height===r;return a&&d})},Ue="advertory-fullscreen-scroll",He="advertory-fullscreen-scroll-wrapper",Ve="fullscreen-scroll-in-screen",We="in-screen",Ke=e=>e.includes("snoap.no"),ze=e=>{var t,n,i,o,r;return!!(null===(r=null===(o=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===o?void 0:o.ads[1])||void 0===r?void 0:r.rtb)},Ge=(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()),o=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,o).toString()},Xe=Ge([],()=>{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:o,clientHeight:r}=i,a=e/o,d=t/r;i.style.transform=`scale(${a},${d})`,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}),Je=e=>{const t=Ge([],()=>{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},Qe=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},Ye=[],Ze={},et=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,o=new IntersectionObserver(e=>tt(e,i),{}),r=it(e);o.observe(e),i&&(Ze[r]=at(e,null==t?void 0:t.options))},tt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=it(e);n?(nt(i,n),ot(e,i,t)):(nt(i,n),rt(e,i,t))})},nt=(e,t)=>{var n,i;const o=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!o)return;const r=t?"showFullscreen":"hideFullscreen";null===(i=o.contentWindow)||void 0===i||i.postMessage(`advertory:${r}-${e}`,"*")},it=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},ot=(e,t,n)=>{e.classList.add(We),document.body.classList.add(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Ze[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Ze[t]),document.body.classList.remove(Ve),e.classList.remove(We),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},at=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:o=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&dt(e,r,o,0),a.length&&dt(e,a,o,40)}},dt=(e,t,n,i)=>{const o=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-i:(r+t-(a+o))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function st(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}st('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);flex-shrink:0}.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:not([data-ad-label-custom])::before{text-transform:lowercase}.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;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 lt="left",ct={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let ut=null;const pt=(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=`(${Xe})()`,e+t.outerHTML})(n),n=Qe(n),n=(e=>{if(Ke(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=Je(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Ke(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)),Ke(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)),ze(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},vt=()=>{ut=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,o=document.documentElement;o.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),o.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),o.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},gt=()=>{ut||(ut=window.requestAnimationFrame(vt))},ht=(e,t)=>{var n,i,o,r,a;const{pageContext:{countryCode:d,deviceType:s}}=w.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:o="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=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 ${o} 0px,\n ${o} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${o} calc(50% + ${l}px),\n ${o} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"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: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;et(p,t),u.className=Ue,et(p,t),u.className="advertory-fullscreen-scroll";const v=Be(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=He,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(o=null==c?void 0:c.annonsLabel)&&void 0!==o?o:ct[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===lt&&(u.dataset.moveCogwheelToTheLeft="true"),gt(),window.addEventListener("resize",gt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",gt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",gt)},ft=e=>{if(!(null==e?void 0:e.classList.contains(Ue)))return;e.classList.remove(Ue),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(He))&&(t.classList.remove(He),t.classList.remove(We))};var mt=Object.freeze({__proto__:null,createFullscreenScrollAd:ht,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=ze(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=ze(e)?1:0,o=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;o&&(o.banner.content=t)})(e,pt(t,e))},undoFullscreenScrollContainer:ft});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},bt=(e,t,n)=>{var i,o,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(o=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===o?void 0:o.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),yt(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},wt="ad-loaded",Ct="disable-cogwheel",It=()=>null!==k("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},St=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ot=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})}),xt=(e,t,n)=>o(void 0,void 0,void 0,function*(){yield At,yield Ot;new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),kt=()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:o},fullscreenScroll:r,appearanceConfig:a,placements:d}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=w.getHandlers(),{getConsentAsync:l}=F(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const o=Q(),{prebid:{relevantCallbackTimeout:r}={}}=w.get(),a="relevantCb"===i&&r?r:n[i].timeout,d=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,o.loadTags&&o.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:f}=g;Z().push(()=>{v("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return v("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Y();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};v("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(f,h))),v("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(f,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{v("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:u.getCancel()}),u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e)),u.cleanup()}},customNativeRender:e=>{Pt(e,s)},directRenderFn:e=>{var t,n,s;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const g=p.id,h=document.getElementById(g);if(!h)return;const f=null===(t=null==d?void 0:d[o])||void 0===t?void 0:t.find(e=>e.targetId===g),m=null!==(s=null!==(n=null==f?void 0:f.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[o])&&void 0!==s?s:0,y=Object.assign(Object.assign({},u),{targetId:g,banner:!0});v("prebid directRenderFn ad info",{targetId:g,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),xt(h,m,()=>{var e;const t=c(l),n=Oe(y);if(v("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)v("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),ht(y,r),(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()})(t),i&&h.style.setProperty("--advertory-political-box-offset","30px");else{v("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),ft(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(wt),(null==u?void 0:u.creativeId)&&bt(g,h,Number(null==u?void 0:u.creativeId))})}}),v("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e))}},customNativeRender:e=>{Pt(e,s)},directRenderFn:()=>{}})})}),Pt=(e,t)=>{var n;const{divId:i,native:o,bid:r}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],d=`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,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:o,targetId:d},w.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")};let Lt=e=>{window.apntag.anq.push(e)};const _t=e=>{Lt=e},jt=e=>{Lt(e)},$t=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Nt=e=>o(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:o}=F(t,0,i);if(!(yield o()))return;const r=$t("_pulse2data");return r?r.split(",")[9]:void 0}),qt={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ft="takeover-displayed",Rt="takeover-visit-count",Mt=14400,Dt=()=>{const e=$t(Rt);return e?parseInt(e):0},Bt=()=>{const e=Dt(),{takeover:{options:{cookieCapTime:t=Mt}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${Rt}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ut=()=>{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)||Ft;return"true"===$t(n)})())&&(!t||Ht()))},Ht=()=>{const e=Dt();return 0===e?(Bt(),!1):1===e},Vt=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Wt=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},Kt=e=>{const{width:t,height:n}=e;return Vt(t,n)?qt.SPLASH:Be(e,Te.VELVET_TAKEOVER)?qt.VELVET:Wt()?qt.TOPSCROLLER:qt.WELCOME_PAGE},zt=()=>o(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ft,cookieCapTime:n=Mt}={}}={},pageContext:{isMobileApp:i,countryCode:o},tcf:r}=w.get(),a=yield R(r,i,o,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Gt=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 Pe(e)&&i},Xt=(e,t)=>{var n;if(t===qt.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===qt.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Jt=(e,t)=>{t!==qt.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,o=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||o)return;const r=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.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 o=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",o,"important")})(e)},Qt=Ge([],()=>{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 Yt=Object.freeze({__proto__:null,addTakeoverCookie:zt,adjustTakeoverHeight:Jt,canDisplayTakeover:Ut,getProperWelcomePageConfig:Xt,getTakeoverVariant:Kt,handleTakeoverCookieOnAdNotShown:e=>o(void 0,void 0,void 0,function*(){Gt(e)&&(yield zt())}),incrementArticleVisitCount:Bt,isSplashVariant:Vt,isTopscroller:Wt,scaleAd:Qt,shouldAddTakeoverCookieForNotShownAd:Gt});const Zt=e=>`externalImpId:'${e}'`,en=(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,tn=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=w.get(),{targetId:o,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ut())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!==qt.TOPSCROLLER):n,o=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:o})})(e),h=Object.assign({invCode:s,sizes:r,targetId:o,keywords:en(a,l),allowedFormats:d,dynamicSizeWidthCheck:p,globalPlacementId:g},u&&{safeframeConfig:u}),f=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(v("Pulse state pageViewId is:",i),i):(v("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&f&&(v("External Impression ID assigned to defineTag:",Zt(f)),h.externalImpId=Zt(f));const m=(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},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{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=m),h},nn=e=>!e.includes("takeover")||Ut(),on={nativeAd:e=>xe(e)&&!$e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Oe,topscroller:e=>Pe(e)&&Wt(),splash:e=>Pe(e)&&Vt(e.width,e.height),welcomePage:Pe,wallpaper:_e,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:De,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!De(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Pe(e),widescreen:Re,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:$e,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!qe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Fe(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:qe,midboard:Fe},rn=({adObj:e,preferredTestIdData:t})=>{var n,i;const o=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!o)return;const r=null===(i=document.querySelector(`#${o}`))||void 0===i?void 0:i.parentElement;if(!r)return;if(((e,t)=>{var n,i,o,r;const a=null===(r=null===(o=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===o?void 0:o[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(o,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,i;for(const[o,r]of Object.entries(on))if(r(e)){if("nativeAd"===o){const r="default";t.dataset.testid=`${o}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:r}`;break}t.dataset.testid=o;break}})(e,r)},an=e=>{var t;return(null===(t=Object.entries(on).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},dn=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},sn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=K(t),i=e[`${n}-targetid`],o=i?dn(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[o]})},ln=e=>{const{pageContext:{countryCode:t}}=w.get(),n=K(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"]})},cn=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],o=e.find(e=>e.invCode===i),r=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},un=e=>{const{source:t}=e;return"csm"===t},pn="advertory-wallpaper-background",vn="advertory-with-horseshoe",gn=()=>{const e=document.querySelector(`.${pn}`);e&&e.remove()},hn=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${pn}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},fn=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,mn=e=>fn.test(e),yn=e=>e.startsWith("wallpaper:color:"),bn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundImage=`url(${e})`)},wn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundColor=e)};var Cn=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(vn),n.classList.add(vn))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{gn();const e=document.createElement("div");e.classList.add(pn),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-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&&(hn(n),window.addEventListener("scroll",()=>hn(n)))})(n),e()},isShortWallpaperColorMessage:yn,isShortWallpaperUrlMessage:mn,removeWallpaperBackground:gn,setWallpaperBackgroundColor:wn,setWallpaperBackgroundImage:bn});const In=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")&&gn())},En=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"))},Tn=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Sn=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`)},An=/_\d+$/,On=e=>e.replace(An,"");let xn="";const kn=new Map,Pn=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(xn!==window.location.pathname&&(kn.clear(),xn=window.location.pathname),e.map(e=>{var t;const n=On(e.invCode),i=null!==(t=kn.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,kn.set(n,i+1),e})):e},Ln=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const _n=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return o(this,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>o(void 0,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;try{return yield ie.get(t,{timeout:5e3})}catch(e){throw v("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,r;const a=((e,t)=>{const{sections:n}=e,o=i(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?c(o,r):o})(t,null!==(r=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>c(t,e))(e,a)}getConfig(e){return o(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return v("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return o(this,void 0,void 0,function*(){var t,n,i,o;if(!this.localSiteConfig)return;if(m(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(o=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void v("Error fetching updated S3 config, keeping current config",{error:e})}})}},jn=_n.getConfig.bind(_n),$n=_n.resolveUpdatedConfig.bind(_n),Nn=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},qn=()=>{gn();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{In(e.id),Nn(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=dn(e.id),t.push(e.id)}),jt(()=>window.apntag.clearRequest()),t},Fn=()=>{E.setData("wallpaper",{isAvailable:!1}),E.setData("horseshoe",{isAvailable:!1})},Rn=e=>o(void 0,void 0,void 0,function*(){const t=yield $n(e);var n;t?(w.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):C(null!=e?e:{})}),Mn="mobile",Dn="tablet",Bn="desktop",Un="web_desktop",Hn="web_phone",Vn="wde",Wn="wph",Kn="noGroupedPlacements",zn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Gn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Xn=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:o}}=w.get(),r=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Dn&&0===i.length?e[Bn]:i})(n,o),a=r.filter(Gn),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=zn(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=d.querySelectorAll(r),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const o=Jn(e,t,n);if(o.disabled)return v(`Placement ${o.targetId} is disabled - collapsing`),In(o.targetId),null;const r=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(i=o.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),d=`${e.id}-${Tt(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),r&&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({},o),{targetId:d})}),c=l.filter(e=>null!=e);return Pn(c)});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)},Jn=(e,t,n)=>{const i=n[t],o=n[n.length-1],r=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==o?void 0:o.targetId)?o:r||o},Qn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},o=Object.values(i).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=dn(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,o]of Object.entries(t))n[i]=e.filter(e=>o.includes(dn(e.targetId)));return n})(e,i),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(dn(e.targetId))))(e,new Set([...d,...o]));return Object.assign(Object.assign(Object.assign({},a),r),{[Kn]:s})},Yn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Zn=new Map,ei=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ti=".brandstudio-premium-content-widget",ni=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ii=({adWrapper:e,placementContainer:t})=>{const n=ni({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Nn(i=t),i.innerHTML=""},oi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ri=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const o=i?t.closest(ti):null,r=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&&!o)return;if(a)return oi(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=o;d&&s.contains(d)?oi(d):s.hasAttribute("style")&&oi(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},ai=(e,t,n,i,o,r)=>{var a;const d=performance.now(),s=null!==(a=Zn.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,o)&&n<0;d-s>=o&&l&&(Zn.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),o=null==n?void 0:n.parentElement;o&&n&&ii({adWrapper:o,placementContainer:n}),jt(()=>{e.setKeywords([t],{[`${K(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},di=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:o,boundingClientRect:r}=e;t(window.apntag,o.id,r.y,n,i,o)})})(e,ai,t,n),Yn(300));i.observe(e)},si=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const o=e.slice(i,i+t);n.push(o)}return n},li=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),ci=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},ui=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=w.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),fi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},pi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const o of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=o.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==i?void 0:i.requestThreshold;ci(o,r)&&i&&(Sn(i.targetId),n.length&&o.classList.remove(...n),fi([i],t))}},vi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=w.get();t&&(e.forEach(({targetId:e})=>{const t=gi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&pi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),pi(e,!1,t))};n.persisted&&(li()?window.addEventListener("scroll",i,{passive:!0}):pi(e,!1,t))})})(e,n))},gi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},hi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(gi(t)),o=(e=>1===e[0]&&1===e[1])(i),r={sizes:[i],allowedFormats:o?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return o||(r.native=void 0),r},fi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),o=si(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of o)jt(()=>window.apntag.refresh(e))},mi=e=>{const{apntag:t,bus:n}=e,{siteEvents:i,initNativeAd:r}=w.getHandlers(),a=[];return{adRequested:()=>{n.emit("adRequested"),i.adRequested()},adAvailable:e=>o(void 0,void 0,void 0,function*(){var t,o,a,d,s,l;v("core adAvailable start",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:je(e),isWallpaperAd:_e(e)});const c=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(un(e)&&c&&(null===(d=c[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(l=null===(s=c[1])||void 0===s?void 0:s.rtb)||void 0===l?void 0:l.banner),Oe(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return mt});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:g}=w.get();if(Re(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-iEmKomsz.js");e()}if(Oe(e)&&!Ne(e.targetId)){v("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return mt});t(e,g)}if(!xe(e)||un(e)||Ne(e.targetId)||null==r||r(e,w.get()),Pe(e)&&!je(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-BOVIWQ-8.js");t(e.targetId),yield n(e)}if(_e(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return Cn});t(()=>jt(()=>window.apntag.showTag(e.targetId)),p),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&E.setData("horseshoe",{isAvailable:!0}),i.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),v("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:je(e),isWallpaperAd:_e(e)})}),adLoaded:e=>o(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:d,adScaleConfig:s}=w.get(),l=document.getElementById(e.targetId);if(Ne(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-BCVnwxmr.js");t(e)}if(a.includes(e.targetId)&&xe(e)&&(null==r||r(e,w.get()),rn({adObj:e})),!a.includes(e.targetId)&&un(e)&&a.push(e.targetId),je(e)&&In(e.targetId),Pe(e)){const{modifyTakeoverIframe:n}=yield import("./index-BOVIWQ-8.js");n(t,e.targetId)}if((e=>Be(e,Te.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-Bq-dre8e.js");t(e)}if((e=>Be(e,Te.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-Bq-dre8e.js");t(e)}if(ke(e)){const{applyFullwidthFormat:t}=yield import("./index-Bq-dre8e.js");t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),o=null==i?void 0:i.parentElement;if(!o||!i)return;ri({adWrapper:o,placementContainer:i});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&di(i,a,r))})(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Tn(e.targetId);if(E.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-DHJi2AoA.js");t(e),n(e)}i.adLoaded(e),yt(e.targetId),l&&(l.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),o=null==i?void 0:i.mainFirstColumn,r=o?null===(t=document.querySelector(o))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(l)),rn({adObj:e}),(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:o}=e;o?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:an(e)}}))}),adNoBid:e=>o(void 0,void 0,void 0,function*(){if(In(e.targetId),Pe(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Yt});yield t(e)}i.adNoBid(e)}),adError:(e,t)=>o(void 0,void 0,void 0,function*(){if(Pe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yt});yield e(t)}i.adError(e,t)}),adCollapse:()=>{i.adCollapse()},adRequestFailure:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adRequestFailure(e)}),adBadRequest:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adBadRequest(e)}),adLoadedMediated:e=>i.adLoadedMediated(e),adNoBidMediated:e=>{i.adNoBidMediated(e)}}};let yi;const bi=()=>yi,wi={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>o(void 0,void 0,void 0,function*(){yi=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=yi,_t(e=>window.apntag.anq.push(e)),yield Promise.allSettled([o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||yi.setEndpoint("ib.adnxs-simple.com",!0)}),o(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),o(void 0,void 0,void 0,function*(){if(It())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),o=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&o&&(yield Ee(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>o(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 o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();return(yield R(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=ln(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),jt(()=>bi().setPageOpts(r))}),definePlacements: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)),o=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===o?-1:-1===i&&-1!==o?1:i-o})})(e).forEach(e=>{v("xandr definePlacements",{placement:e});const i=tn(e);if(nn(e.targetId)){const o=t(i),r=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:o}=e;return{adTypes:t,invCode:n,keywords:sn(i),sizes:o}})(o);n.push(r),jt(()=>(v("xandr definePlacements - add to the queue",{placement:e,preparedTag:o}),bi().defineTag(o)))}}),(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)},requestPlacements:e=>o(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>nn(e)).map(({targetId:e})=>e);t.length&&jt(()=>(v("xandr requestPlacements",{placementsIdsToLoad:t}),bi().loadTags([...t])))}),bindEvents:e=>o(void 0,void 0,void 0,function*(){var t;yield(t={apntag:bi(),bus:e},o(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=mi(t);jt(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Ci=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:o}=window,[r,a]=t;if(!i.dataset.lockedsize&&a&&r)i.style.width=`${r}px`,i.style.height=`${a}px`,n&&(o.resizeAd(i.id,[r,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=r.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&o.resizeAd(i.id,[e,t])}},Ii="collapseAd",Ei="hideAd",Ti="resizeAd",Si="wallpaperImageUrl",Ai="wallpaperColor",Oi="velvet",xi=[Ti,Si,Ai,Ii,Ei,Oi];let ki;const Pi=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(mn(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Si,wallpaperImageUrl:t}}if(yn(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ai,wallpaperColor:t}}if(e.startsWith(Ii)||e.startsWith(Ei)){const t=e.split(":")[1];return{name:Ii,targetId:t}}if(e.includes("name")&&xi.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!xi.some(e=>n.name===e))return;const{name:i,targetId:o,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;i===Oi&&d&&(d.includes("noScroll")&&(ki=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==ki||ki(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Ii&&i!==Ei||!o||In(o),i===Ti&&o&&d&&Ci(o,d),"resizeMediationAd"===i&&o&&s&&Ci(o,s,!0),i===Si&&r&&bn(r),i===Ai&&a&&wn(a)},Li=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},a=e=>{En(e),jt(()=>i.showTag(e))};return{withXandrAd:a,withFinnBlinkAd:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-CXCyp7D9.js");yield t(e,r,null)}),withFullAdsChain:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void a(e);const{loadFinnBlinkAd:t}=yield import("./index-CXCyp7D9.js");yield t(e,r,a,()=>o(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e)}))})}},_i=(e,t)=>o(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield xt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ne(t)&&i?(v(`loading finn blink ad for blink only placement for ${t}`),void Li().withFinnBlinkAd(t)):Ne(t)?(v(`loading finn blink ad with full ads chain for ${t}`),void Li().withFullAdsChain(t)):void jt(()=>(v("core showTag",{id:t}),e.showTag(t)))})(window.apntag,(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),ji=(e,t)=>o(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});st(".advertory-brandmetrics-survey{width:100%}");const $i="advertory-brandmetrics-survey",Ni=()=>o(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)}}),qi=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Fi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Ri=()=>o(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 o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Mi={pageContext:{publisher:"aftonbladet",countryCode:j.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"}},Di={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Bi=e=>(null==e?void 0:e.parent)?[...Bi(e.parent),e.shortPath||"unknown"]:[],Ui=(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]=Bi(e);return Di[n]||"ovrigaavdelningar"})(e)}_{position}`,Hi={aftonbladet:Mi},Vi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Ui(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Bi(e).join(":")}}},Wi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},Ki=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),zi="se-generic",Gi="aa-sch",Xi="kv_",Ji="pause",Qi="{deviceType}",Yi="{position}",Zi="afp_",eo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),to="1-1",no="16-9",io="3-4",oo="9-16",ro="responsive",ao={[to]:1,[no]:1.78,[oo]:.56,[ro]:1},so={[to]:1,[no]:1.78,[io]:1.33,[oo]:.56},lo=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},a=Bn===n?Vn:Wn,d=o.replace(Qi,a);return(e,n)=>{if(e===Ji)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Yi,Ji).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&eo.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(Qi,a).replace(Yi,e)}return d.replace(Yi,e)}},co=()=>{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"},uo=e=>e===Mn,po=853,vo=767,go=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},ho=()=>{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},fo=()=>{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},mo=()=>{const e=null!==(t=fo()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=fo()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},yo=()=>Object.fromEntries(new URLSearchParams(window.location.search)),bo=(e,t)=>o(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:o}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:o,publisher:i,pageType:"front",deviceType:e.deviceType},s=(yield R(n,e.isApp,o,"video"))?"1":"0",l=yield Ri(),c=yield Ce(o),u=yield Nt({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>go(so,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(f=e.playerAspectRatio)?go(ao,Number(f.toFixed(2))):ro;var f,m;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Gi}-country_code`]:o,[`${Gi}-publisher`]:i,[`${Gi}-supply_type`]:(m=e.deviceType,m===Bn?Un:Hn),[`kw_${Gi}-page_type`]:"collection",[`${Gi}-page_type`]:"collection",[`${zi}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${zi}-page`]:"index",[`${zi}-page`]:"index",[`${zi}-screenheight`]:String(window.screen.height),[`${zi}-screenwidth`]:String(window.screen.width),[`${zi}-viewportheight`]:String(a),[`${zi}-viewportwidth`]:String(r),[`${zi}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${zi}-mobile-os`]:co(),[`${zi}-audience`]:void 0,[`${zi}-externalid_src`]:mo(),[`${zi}-tags`]:e.tags,[`${zi}-articleid`]:p,"article-id":p},yield z(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${zi}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(yo()).some(e=>e.includes(Xi))&&(()=>{const e=yo(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Xi)).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":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),wo=["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"],Co=["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"],Io=["external_uid","gdpr","gdpr_consent","eids","article-id"],Eo=(e,t)=>{const n=[...wo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Io.includes(e)?e:`kw_${e}`,t]))},To=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Co.includes(e))),So=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i,o,r;const a=(e=>{var t;Hi[e]||g(`[video] No config found for publisher "${e}"`);return null!==(t=Hi[e])&&void 0!==t?t:Mi})(e.publisher),d=(e=>{var t;return null!==(t=Vi[e])&&void 0!==t?t:Vi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===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!==(o=Number(e.aspectRatio))&&void 0!==o?o:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield bo({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:ho(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:Wi(e.startMode)}}),Ao=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=i||{},l=lo(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Zi)?`${Zi}${t}`:t)(s),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,o),"se-generic-playback-method":Ki.get(d),"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({},Eo(r,n)),To(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Oo=e=>t=>o(void 0,void 0,void 0,function*(){const n=yield So(e,t);return Ao(n,e)}),xo={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]}]},ko={no:"NOK",se:"SEK"},Po={no:"no",se:"sv"};class Lo{buildFetchObject(e,t,n,i){return o(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:r}=i,{invCode:a,xandrPlacementId:d}=e,s=yield Ri(),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(xo),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:Tt(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({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.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||Po[o]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield Nt(i),ext:{consent:s.gdpr_consent||"",eids:we(o)}},at:1,cur:[ko[o]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,i){return o(this,void 0,void 0,function*(){try{v("Starting fetching Studio ad from Xandr:",Fi);const o=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${Fi}?${a.toString()}`:Fi,s=yield this.buildFetchObject(e,t,n,i),l=yield ie.post(d,o,s);return v("Fetch operation completed successfully.",l),l}catch(e){v("Error during fetch operation:",e)}return null})}}const _o=0,jo=3,$o=(e,t,n,i)=>{const o=t.parentElement;if(!o)return;const r=e?`-${e}`:"",a=i?`__${i}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),o.classList.remove(...o.classList),t.classList.add(d),o.classList.add(s),t.dataset.adType=n},No={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},qo=(e,t)=>{Fo(e,t),Mo(e,t)},Fo=(e,t)=>{var n,i;const o=document.querySelector(`#${e.targetId}`);if(!o||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==o?void 0:o.querySelectorAll(r)).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:[])Bo(i)}),t.dataset.tracked="true")})},Ro=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),o="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!o?null==n||n.forEach(Do):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Mo=(e,t)=>{var n;let i=!1;const o=document.querySelector(`#${e.targetId}`);if(!o||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Bn])&&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,Ro(e),c.disconnect();break}},s);c.observe(o)},Do=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Bo(e):window.navigator.sendBeacon(e)},Bo=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Uo=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:[]}),Ho=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:o},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[o],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void v(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Yn(d)).observe(s)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(tn(e)).keywords)&&void 0!==i?i:{},p=new Lo,g=yield p.fetchData(e,c,u,t);g&&(((e,t,n)=>{const i=n===Mn?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===_o){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")}})(s,g,o),g.adType===jo&&($o(t.pageContext.publisher,s,No.NATIVE_AD,t.pageContext.pageType),qo({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:o,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var o,r,a;let d;(null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),bt(e,n,Number(null==i?void 0:i.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),Vo=(e,t)=>{e.forEach(e=>Ho(e,t).catch(e=>{v("Failed to handle server-side ad:",e)}))},Wo="_adchoices_non_rtb",Ko=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Wo}={}}={}}=w.get();return`${On(e)}${t}`},zo=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>In(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Ko(e.invCode)})))(e)),Go=e=>`${Math.max(0,Math.round(e))}px`,Xo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},Jo=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},Qo=()=>{const{pageSectionsSelectors:e}=w.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Xo(t);Jo({"--advertory-header-height":Go(n)})})(e.header)};let Yo=wi,Zo=[];const er=["takeover","wallpaper"],tr=(e,t)=>{var n,i;const{initNativeAd:o}=w.getHandlers();null==o||o(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:w.get())},nr=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:o,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:f,fullWidth:m}=e,b=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:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:o,tcf:r,queryConfig:Object.assign(Object.assign({},i),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),h&&{takeover:h}),f&&{fullscreenScroll:f}),m&&{fullWidth:m})}})(e);window.advertory={initialized:!0,version:"3.16.2",siteConfig:e,renderNativeAd:tr,alertoryConfig:t}},ir=()=>o(void 0,void 0,void 0,function*(){yield Yo.setTargeting()}),or=e=>o(void 0,void 0,void 0,function*(){var t,n;const{prebid:i,tcf:o,pageContext:{isMobileApp:r,countryCode:a}}=w.get(),d=yield R(o,r,a,"loadPlacements"),s=zo(e,d);null===(t=Yo.definePlacements)||void 0===t||t.call(Yo,s);(null==i?void 0:i.enabled)&&d&&!It()?(v("core loadPlacements prebid enabled"),yield kt()):(v("core load tags invoked without prebid enabled"),yield null===(n=Yo.requestPlacements)||void 0===n?void 0:n.call(Yo,s))}),rr=(e,t)=>o(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:o,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[i];a&&(v("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:o,deviceDefaultThreshold:d}),yield _i(a,null!=o?o:d)),a&&(null==r?void 0:r.scroll)&&(v("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),ar=e=>e.some(({targetId:e})=>er.some(t=>e.includes(t))),dr=e=>o(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),o=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),o=Qn(e),r=Object.keys((null==t?void 0:t[i])||{}).map(e=>o[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...si(d,n)]})(i);for(const e of o)ar(e)?(v("core loadAds without lazy loading",{placementsToLoad:e}),yield or(e)):e.length&&(v("core loadAds with lazy loading",{placementsToLoad:e}),yield sr(e));const{finnBlink:r}=w.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-CXCyp7D9.js");yield e(n)}}),sr=e=>o(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return v("lazy load is not enabled",{placements:e}),void(yield or(e));const o=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{v("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const o=e.every(e=>i.includes(e.targetId)),r=e.map(e=>e.targetId);!o&&i.push(...r),!o&&or(e),v("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:o,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(v("lazy loading - observe element",{targetId:e.targetId,element:t}),o.observe(t))})}),lr=()=>o(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>o(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>o(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=Zo.find(({targetId:t})=>t===e.targetId);t&&(yield rr(t,e),Zo=Zo.filter(e=>e.targetId!==t.targetId))})),yield Yo.bindEvents(e)}),cr=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;if(v(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return v("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:o,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:d,contextSelector:s}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let c=[];if(r)return qn(),Zo=[],Fn(),[];if(o&&(c=null!==(i=qn())&&void 0!==i?i:[]),o&&!l)return[];o&&l&&(Zo=[],Fn()),a&&(qn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{En(e.id)})),yield Rn(e),(null==e?void 0:e.pageSectionsSelectors)&&Qo(),yield ir();const{clientSidePlacements:u,serverSidePlacements:p}=Uo(Xn(s)),g=[...u,...p];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>dn(e)));e.filter(e=>n.has(e)).forEach(e=>En(e))})(c,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>dn(e)));e.filter(e=>!n.has(e)).forEach(e=>Tn(e))})(c,g);let h=u;return d&&(h=h.filter(e=>Ne(e.targetId))),Vo(p,w.get()),h.length>0&&(Zo=[...Zo,...h.map(e=>Object.assign({},e))],ui(h),vi(h),yield dr(h)),Zo}),ur=(e,t,n)=>o(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:a,getConsentAsync:d}=F(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),s=yield jn(e);yield Ni(),yield ji(a),yield ji(d),v("TCF resolved successfully"),yield((e,t,...n)=>o(void 0,[e,t,...n],void 0,function*(e,t,n=wi){var i,r;Yo=n,w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:a,kilkaya:d,rightColumnSplit:s,finnBlink:l}=e;E.initialize(),window.addEventListener("message",Pi,!1);const[c]=yield Promise.allSettled([Yo.setup(),he(e),o(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),o(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:o}}=w.get(),{getConsentAsync:r}=F(n,0,o),a=yield r();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${$i}`))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($i)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),D(),o(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 Ee(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(v("Driver has been set up"),null==a?void 0:a.enabled){const{loadNorstat:e}=yield import("./index-C_K15-N2.js");yield e()}if(v("Libraries have been loaded and trackers have been set"),Qo(),yield lr(),yield ir(),v("Page options have been set"),nr(e),v("Advertory is setup on window"),"dom-discovered"===Yo.capabilities.tagDefinition)return yield null===(i=Yo.requestPage)||void 0===i?void 0:i.call(Yo),void v("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Uo(Xn());if(Zo=u,Vo(p,e),ui(Zo),vi(Zo),yield dr(Zo),v("Ads has been loaded",Zo),cn(Zo),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-CXCyp7D9.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==s?void 0:s.enabled){const{initRightColumnSplit:t}=yield import("./index-D3znrlvr.js");t(e.rightColumnSplit)}if(null==d?void 0:d.enabled){const{runKilkaya:t}=yield import("./index-Cj-7zBIk.js");yield t(e)}}))(s,t,n),v("Run function resolved successfully")}),pr=["sponsor","seamless"],vr=["shopping"],gr=(e,t,n,i)=>{var o;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:f,customTitle3:m,customTitle4:y,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:E,customIcon1:T,customIcon2:S,customDisplayUrl1:A}=e,O=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:O(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=pr.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&T;return O(t?T:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(o=null!=u?u:g)&&void 0!==o?o:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=f?f:"",customTitle3:null!=m?m:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=E?E:"",logo2:O(S),previewVideoSrc:null!=A?A:""},t)},hr=(e,t)=>{const n=(i=L,window.location.href.includes(i));var i;const o=new URLSearchParams(window.location.search).get(L),r=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!vr.includes(t.toLowerCase())?r?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},fr=(e,n,i,o)=>{const r=document.querySelector(`#${e}`);r&&n&&(r.innerHTML=n,((e,n)=>{const i=e.parentElement,{publisher:o,pageType:r}=n,a=o&&Object.values(t).includes(o);i&&a&&$o(o,e,No.NATIVE_AD,r)})(r,i),o())},mr=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:o,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=hr(e.targetId,l))&&void 0!==i?i:c,p=ct[t.language||j.NO],v=gr(d,p,s,t);return(d.video?r[u]:o[u]||o.default)(v,t)})(e,t,n);fr(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&qo(e,t)})},yr=e=>(t,n)=>{var i;const{targetId:o}=t,r=document.querySelector(`#${o}`);if(!r)return;const a=e.getOptions(null!=n?n:{});mr(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,r)},br=()=>{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},wr=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Cr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return o(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 o(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Ir=9826;class Er{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Mn?"phone":Dn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return o(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 o(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(()=>{const e=$t("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return o(this,void 0,void 0,function*(){return yield Nt(w.get())})}isTrackingForbidden(){return o(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=Ir}={}}=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 o(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=F(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 Tr=new Er;function Sr(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(),o=co();return{OS:o,mobileOS:["ios","android"].includes(o)?o:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Tr.prepare.bind(Tr);const Ar=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Or(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Ar.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class xr extends Er{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}=Sr(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Or(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),o=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":`${o.split("_").pop()||o}_${"article"===i?"article":"front"}`}}}const kr=new class extends xr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,o,r,a,d;const s=w.get(),l=null!==(i=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(r=null===(o=s.pageSetup)||void 0===o?void 0:o.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Cr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(z(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(me()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},fe(j.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Pr=kr.prepare.bind(kr);class Lr extends Er{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!==(r=null===(o=window.screen)||void 0===o?void 0:o.height)&&void 0!==r?r:0};var n,i,o,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return o(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}=Sr(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 _r=new class extends Lr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,r,a,d;const s=w.get(),l=null!==(i=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(d=null===(a=null===(r=s.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===a?void 0:a.keywords)&&void 0!==d?d:{},u=new Cr;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(z(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>o(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(me()).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"===$t("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({},fe(j.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},jr=_r.prepare.bind(_r);let $r;const Nr=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=w.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,adUnitId:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:v("relevant-managed requestPage - placement container was not found",{targetId:e})})},qr=()=>{const{prebid:e}=w.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!It())},Fr={name:"relevant-managed",capabilities:{tagDefinition:"dom-discovered",deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>o(void 0,void 0,void 0,function*(){var e;const{prebid:t}=w.get();qr()?(null==t?void 0:t.prebidUrl)?(_t(e=>Z().push(e)),yield Ee(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Ee(t.prebidUrl)):v("relevant-managed setup - prebidUrl is required, skipping script loading"):v("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>o(void 0,void 0,void 0,function*(){if(!qr())return;const{pageOptions:e}=w.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Z().push(()=>{Y().addPrebidConfig({ortb2:t})})}),requestPage:()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=w.get();if(!qr())return void v("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void v("relevant-managed requestPage - configId is required, skipping");(yield R(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(Nr(),null==$r||$r.emit("adRequested"),Z().push(()=>{v("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Y().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):v("relevant-managed requestPage - consent not granted, skipping")}),bindEvents:e=>o(void 0,void 0,void 0,function*(){$r=e})},Rr={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:o,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=w.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((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})(o,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,o=`${K(t)}-adformat`,r=n?n[o]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[o]:i?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=w.get(),n=`${K(t)}-targetid`;return e?{[n]:[e]}:{}})(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=br(),h=(e=>wr(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(o),f=((e,t)=>wr(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(o,{safeFrameAutoInitialSize:!0}),m=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,y=(new Cr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${K(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:m,invCode:c,keywords:y,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>o(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===j.SE?jr(e):Pr(e)}),siteEvents:e},Mr=((e,t,n)=>({init:i=>{return r=Object.assign(Object.assign({},i),{siteSpecificConfig:t}),a=e,d=n,o(void 0,void 0,void 0,function*(){v(`Received configuration passed to Advertory: ${JSON.stringify(r)}`),yield ur(r,a,d)});var r,a,d},update:cr,renderNativeAd:tr,getVideoPPIDs:Ce,createInitNativeAd:yr,getVideoAdsConfig:Oo}))(Rr,n,Fr);export{No as A,ze as B,j as C,ct as D,Qe as E,Ct as F,rn as G,Oe as H,ht as I,xe as J,uo as K,vo as L,po as M,t as N,an as O,Be as P,zn as Q,Mr as R,Te as S,qt as T,o as _,Ie as a,In as b,w as c,i as d,qi as e,$o as f,dn as g,R as h,st as i,be as j,Xo as k,v as l,Jo as m,Go as n,J as o,En as p,Ee as q,ci as r,_i as s,St as t,Li as u,Xt as v,Qt as w,Kt as x,zt as y,Jt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,F as t,f as r,A as s,G as n,H as a,I as i,J as o}from"./_auto-entry_mtv-
|
|
1
|
+
import{c as e,F as t,f as r,A as s,G as n,H as a,I as i,J as o}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";const l=(a,i)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${a}`);if(!c)return;if(c.classList.add(t),!o)return;r(o,c,s.FINN_BLINK,null!=i?i:l);n({preferredTestIdData:{targetId:a,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();a(t)&&i(t,r),o(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
|
-
import{T as e,v as o,D as t,c as r,w as l,_ as s,x as a,y as n,z as c,B as d,E as i}from"./_auto-entry_mtv-
|
|
1
|
+
import{T as e,v as o,D as t,c as r,w as l,_ as s,x as a,y as n,z as c,B as d,E as i}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},g=new WeakMap,b=(e,o,t)=>{var r;window.addEventListener(o,t),g.set(e,[...null!==(r=g.get(e))&&void 0!==r?r:[],()=>window.removeEventListener(o,t)])},h=e=>{document.body.style.overflow=e?"initial":"hidden"},f=e=>{(e=>{var o;null===(o=g.get(e))||void 0===o||o.forEach(e=>e()),g.delete(e)})(e),m(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),h(!0),e.style.display="none"},E=e=>{const o=()=>f(e);return b(e,"advertory:closeTakeover",o),m(),o},L=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&((e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&f(e)};m(),b(e,"keydown",o)})(e),E(e),m(),o.addEventListener("click",()=>{f(e)}),h(!1))},S=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),E(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},k=e=>{(e=>{b(e,"advertory:closeTakeover",()=>f(e))})(e)},T=e=>{const{takeover:{splash:{showAnnonsLabel:o=!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"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},x=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},A=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).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=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},q=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},C=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).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})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},O=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},P=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,O(o))},R=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},M=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&w(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:A,[e.SPLASH]:T,[e.TOPSCROLLER]:x,[e.VELVET]:q})[t](o)})(i,u),C(),((o,t)=>{({[e.WELCOME_PAGE]:S,[e.TOPSCROLLER]:S,[e.SPLASH]:L,[e.VELVET]:k})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{M as createTakeoverAd,P as modifyTakeoverAdContent,R as modifyTakeoverIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,K as e,l as n}from"./_auto-entry_mtv-
|
|
1
|
+
import{c as t,K as e,l as n}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";const i=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},l=(n,l,r)=>{var o,a;const d=document.querySelector(`#${n.targetId}`),{siteSpecificConfig:{publisherClassName:s,fullWidthFormatClassName:u}={},fullWidth:c,pageContext:{deviceType:f}}=t.get();if(!d)return null;const p=d.parentElement,m=e(f)||r;if(d.style.width=m?"100vw":"100%",d.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),s&&u){const t=`advertory-${s}-${u}`;d.classList.add(`${t}__${l}`),null==p||p.classList.add(`${t}-wrapper__${l}`)}const v=null===(a=null===(o=null==c?void 0:c.options)||void 0===o?void 0:o.styles)||void 0===a?void 0:a[f],y=(null==c?void 0:c.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&i(d,v.adContainer),y&&v.adContainerWrapper&&p&&i(p,v.adContainerWrapper),d},r=(t,e,i,r,o)=>{var a;const d=l(t,r,o);if(!d)return void n("[Ad full width] adContainer not found");const s=d.querySelector("iframe"),u=null==s?void 0:s.parentElement;if(!s||!u)return void n("[Ad full width] iframe or iframeWrapper not found");const c=parseFloat(window.getComputedStyle(d,"::before").height)||0,f="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${e}px)`:String((null===(a=null===document||void 0===document?void 0:document.documentElement)||void 0===a?void 0:a.clientWidth)/e);n(`[Ad full width] ratioWidth ${e}, ratioHeight ${i}, adObjWidth: ${t.width}, scaleFactor ${f}`),u.style.transform=`scale(${f})`,u.style.transformOrigin="left top",d.style.height=`calc(100vw / ${e} * ${i} + ${c}px)`},o=n=>{const i=l(n,"fullwidth-ad",!1);if(!i)return;const r=i.querySelector("iframe");if(!r)return;const{deviceType:o}=t.get().pageContext;r.style.width=e(o)?"100vw":"100%",(null==r?void 0:r.parentElement)&&(r.parentElement.style.width=e(o)?"100vw":"100%")},a=t=>{r(t,1080,1920,"ninesixteen-ad",!0)},d=t=>{r(t,1080,1080,"fullsquare-ad",!0)};export{d as applyFullsquareFormat,o as applyFullwidthFormat,a as applyNinesixteenFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_mtv-
|
|
1
|
+
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_mtv-PapZnH4W.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-BCVnwxmr.js";import"react/jsx-runtime";n('.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 y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as e,h as o,j as n,C as s}from"./_auto-entry_mtv-
|
|
1
|
+
import{_ as t,c as e,h as o,j as n,C as s}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((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(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,C as e,l as n,o as a,p as r,q as i,h as l,N as s}from"./_auto-entry_mtv-DnI-H9i2.js";import{jsxs as o,jsx as d}from"react/jsx-runtime";class c{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(t=>t),n]:[n]}}class u{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class p{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const n=e.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}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:n,itemId:a}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),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,n,a,r,i,l,s,o,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(d=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===d||d.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class g extends p{constructor(t,e,n){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=n}getEventBaseData(t){var e,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:d,placement:c}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:d},page:{"@id":null!=p?p:c,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,t)}}getEventTarget(t){const{link:e,itemId:n,title:a}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),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 n=this.parseKilkayaData(t);return Object.assign(Object.assign({},n),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v=/^glci_/,h="gender_",m="geo_",y="male",f="female";class k extends p{constructor(t,e,n){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=n}getPlacementData(t){var e;const n=t.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(t){var e,n;const{title:a="",clientName:r="",creativeId:i="",link:l=""}=this.parseKilkayaData(t),{columnName:s,primaryPosition:o}=this.getPlacementData(t),d={publicUrl:l,urlPath:l?new URL(l).pathname:""},{publicUrl:c,urlPath:u}=l&&(null===(n=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===n?void 0:n.call(e,l))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:a,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(t){const{link:e,itemId:n,title:a}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}getEventInput(t){return{object:this.getEventBaseData(t),target:this.getEventTarget(t)}}}const b="[data-k5a-teaser-analytics]",w=(t,n,a,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const l=new(r===e.SE?k:g)(t,n,a),s=new WeakMap,o=t=>{const e=s.get(t);e&&(e.disconnect(),s.delete(t))},d=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const n=t.target,a=n.querySelector(b);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(l.trackContentView(n),e.unobserve(t.target),o(n)):((t,e)=>{if(s.has(t))return;const n=new MutationObserver(()=>{const n=t.querySelector(b);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(l.trackContentView(t),e.unobserve(t),o(t))});n.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(t,n)})(n,e)})},{threshold:.5});i.forEach(t=>{d.observe(t),t.addEventListener("click",()=>l.trackContentClick(t))})};class I{constructor(t){this.identity=t,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var t;try{const e=yield null===(t=this.identity)||void 0===t?void 0:t.getUser();return null!=e?e:null}catch(t){return n("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var t,e;return null!==(e=yield null===(t=this.identity)||void 0===t?void 0:t.isLoggedIn())&&void 0!==e&&e})}onIdentityLogout(t){var e;null===(e=this.identity)||void 0===e||e.on("logout",t)}}const P=()=>t(void 0,void 0,void 0,function*(){try{const n=yield(e=500,t(void 0,void 0,void 0,function*(){return Promise.race([t(void 0,void 0,void 0,function*(){return yield new Promise(t=>{if("undefined"!=typeof window)if(window.Identity)t(window.Identity);else{const e=()=>{t(window.Identity)};window.addEventListener("identity-initialized",e,{once:!0})}else t(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),a=new I(n),r=yield a.getIdentityUser(),{gender:i}=null!=r?r:{};return i===y||i===f?`${h}${i}`:void 0}catch(t){return}var e}),E=()=>t(void 0,void 0,void 0,function*(){const t=[],e=yield P(),n=(()=>{const t=a().map(t=>`${m}${t.replace(v,"")}`);return Array.from(new Set(t))})();return e&&t.push(e),n&&t.push(...n),t}),T="front";class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===T?"sdrn:e24:frontpage:front":`sdrn:e24:article:${e}`}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.svd.se"===e?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===T?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${e}`}}class D{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.aftonbladet.se"===e?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:n,countryCode:a}}){if(!(null==t?void 0:t.instance))return;const r={[s.VG]:new c,[s.E24]:new U,"no-aftenposten":new S,[s.BT]:new L,"no-bergenstidende":new L,[s.SA]:new A,"no-stavangeraftenblad":new A,[s.SVD]:new C,[s.AFTONBLADET]:new D}[n]||new u;w(t.instance,r,e,a)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield E();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var e;const a=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.streamSlot;if(n(`Kilkaya event for slot: ${a}`),!a)return void n("Kilkaya slot empty, Xandr backfill won't be loaded");const r=a.parentElement;r?(n(`Kilkaya placement ${a.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):n("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";r(a)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield i(e)})}run(e){return t(this,void 0,void 0,function*(){var t,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield l(a,r,i,"kilkaya");o&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e))})}}const j=({placementName:t,slotTag:e,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(t,e)=>{const n={};if(!t)return n;for(const[a,r]of Object.entries(t)){n[e?`${e}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),c=l(i,"data");return o("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,c,{children:[d("div",{className:"inscreen-target"}),d("k5a-stream",{name:t,"slot-tag":e}),d("div",{className:"container"}),d("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=e=>t(void 0,void 0,void 0,function*(){const t=new K;yield t.run(e)});export{j as Kilkaya,O as runKilkaya};
|
|
1
|
+
import{_ as t,C as e,l as n,o as a,p as r,q as i,h as l,N as s}from"./_auto-entry_mtv-PapZnH4W.js";import{jsxs as o,jsx as d}from"react/jsx-runtime";class c{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(t=>t),n]:[n]}}class u{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class p{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const n=e.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}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:n,itemId:a}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),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,n,a,r,i,l,s,o,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(d=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===d||d.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class g extends p{constructor(t,e,n){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=n}getEventBaseData(t){var e,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:d,placement:c}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:d},page:{"@id":null!=p?p:c,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,t)}}getEventTarget(t){const{link:e,itemId:n,title:a}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),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 n=this.parseKilkayaData(t);return Object.assign(Object.assign({},n),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v=/^glci_/,h="gender_",m="geo_",y="male",f="female";class k extends p{constructor(t,e,n){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=n}getPlacementData(t){var e;const n=t.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(t){var e,n;const{title:a="",clientName:r="",creativeId:i="",link:l=""}=this.parseKilkayaData(t),{columnName:s,primaryPosition:o}=this.getPlacementData(t),d={publicUrl:l,urlPath:l?new URL(l).pathname:""},{publicUrl:c,urlPath:u}=l&&(null===(n=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===n?void 0:n.call(e,l))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:a,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(t){const{link:e,itemId:n,title:a}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}getEventInput(t){return{object:this.getEventBaseData(t),target:this.getEventTarget(t)}}}const b="[data-k5a-teaser-analytics]",w=(t,n,a,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const l=new(r===e.SE?k:g)(t,n,a),s=new WeakMap,o=t=>{const e=s.get(t);e&&(e.disconnect(),s.delete(t))},d=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const n=t.target,a=n.querySelector(b);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(l.trackContentView(n),e.unobserve(t.target),o(n)):((t,e)=>{if(s.has(t))return;const n=new MutationObserver(()=>{const n=t.querySelector(b);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(l.trackContentView(t),e.unobserve(t),o(t))});n.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(t,n)})(n,e)})},{threshold:.5});i.forEach(t=>{d.observe(t),t.addEventListener("click",()=>l.trackContentClick(t))})};class I{constructor(t){this.identity=t,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return t(this,void 0,void 0,function*(){var t;try{const e=yield null===(t=this.identity)||void 0===t?void 0:t.getUser();return null!=e?e:null}catch(t){return n("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return t(this,void 0,void 0,function*(){var t,e;return null!==(e=yield null===(t=this.identity)||void 0===t?void 0:t.isLoggedIn())&&void 0!==e&&e})}onIdentityLogout(t){var e;null===(e=this.identity)||void 0===e||e.on("logout",t)}}const P=()=>t(void 0,void 0,void 0,function*(){try{const n=yield(e=500,t(void 0,void 0,void 0,function*(){return Promise.race([t(void 0,void 0,void 0,function*(){return yield new Promise(t=>{if("undefined"!=typeof window)if(window.Identity)t(window.Identity);else{const e=()=>{t(window.Identity)};window.addEventListener("identity-initialized",e,{once:!0})}else t(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),a=new I(n),r=yield a.getIdentityUser(),{gender:i}=null!=r?r:{};return i===y||i===f?`${h}${i}`:void 0}catch(t){return}var e}),E=()=>t(void 0,void 0,void 0,function*(){const t=[],e=yield P(),n=(()=>{const t=a().map(t=>`${m}${t.replace(v,"")}`);return Array.from(new Set(t))})();return e&&t.push(e),n&&t.push(...n),t}),T="front";class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===T?"sdrn:e24:frontpage:front":`sdrn:e24:article:${e}`}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.svd.se"===e?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===T?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${e}`}}class D{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.aftonbladet.se"===e?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:n,countryCode:a}}){if(!(null==t?void 0:t.instance))return;const r={[s.VG]:new c,[s.E24]:new U,"no-aftenposten":new S,[s.BT]:new L,"no-bergenstidende":new L,[s.SA]:new A,"no-stavangeraftenblad":new A,[s.SVD]:new C,[s.AFTONBLADET]:new D}[n]||new u;w(t.instance,r,e,a)}injectKilkayaMeta(e){return t(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield E();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var e;const a=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.streamSlot;if(n(`Kilkaya event for slot: ${a}`),!a)return void n("Kilkaya slot empty, Xandr backfill won't be loaded");const r=a.parentElement;r?(n(`Kilkaya placement ${a.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):n("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";r(a)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield i(e)})}run(e){return t(this,void 0,void 0,function*(){var t,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield l(a,r,i,"kilkaya");o&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e))})}}const j=({placementName:t,slotTag:e,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(t,e)=>{const n={};if(!t)return n;for(const[a,r]of Object.entries(t)){n[e?`${e}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),c=l(i,"data");return o("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,c,{children:[d("div",{className:"inscreen-target"}),d("k5a-stream",{name:t,"slot-tag":e}),d("div",{className:"container"}),d("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},O=e=>t(void 0,void 0,void 0,function*(){const t=new K;yield t.run(e)});export{j as Kilkaya,O as runKilkaya};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as t,m as e,n}from"./_auto-entry_mtv-
|
|
1
|
+
import{k as t,m as e,n}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";const r=".advertory-right-column-track",o="--advertory-right-column-track-height",i=t=>t.getBoundingClientRect().top+window.scrollY,a=(t,e)=>`${t}-${e}`,d=(r,d,l)=>{var c;const s=Array.from(null!==(c=r.querySelectorAll(d))&&void 0!==c?c:[]),u=(t=>t.map(t=>{var e;return null===(e=document.querySelector(`[id^="${t}"]`))||void 0===e?void 0:e.parentElement}).map((t,e)=>({point:t,originalIndex:e})).filter(t=>Boolean(t.point)))(l);if(0===u.length)return;const m=i(r);u.forEach(({point:r,originalIndex:d})=>{((r,d,l)=>{const c=i(r),s=a(o,d),u=c-l,m=a("--advertory-right-column-split-point-height",d),v=t(r);e({[s]:n(u),[m]:n(v)})})(r,d+1,m),(r=>{const o=null==r?void 0:r.id;if(!o)return;const i=a("--advertory-right-column-ad-height",o),d=t(r);e({[i]:n(d)})})(s[d])});((t,r)=>{const a=i(t)-r;e({[o]:n(a)})})(u[Math.min(s.length,u.length-1)].point,m)};let l=!1;const c=t=>{if(!(null==t?void 0:t.enabled)||l)return;const{splitPointIDs:e,adSelector:n,trackSelector:o=r}=t,i=document.querySelector(o);if(!i)return;l=!0;const a=()=>{d(i,n,e)};a(),window.addEventListener("resize",a),window.addEventListener("orientationchange",a),window.addEventListener("load",a),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(a)});new ResizeObserver(a).observe(i)};export{c as initRightColumnSplit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e,M as t,O as n,c as r,P as o,S as i,Q as d}from"./_auto-entry_mtv-
|
|
1
|
+
import{L as e,M as t,O as n,c as r,P as o,S as i,Q as d}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(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")},c=(e,t)=>{if(e&&t)return t/e},a=new Map;a.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),a.set("panorama",{scale:.79,transformOrigin:"center center"}),a.set("outstream",{scale:.79,transformOrigin:"center center"}),a.set("integration",{scale:.79,transformOrigin:"center center"}),a.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),s=a.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const c=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;c&&"number"==typeof u&&!isNaN(u)&&c.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,c,a,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!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(c=null==p?void 0:p.offsetWidth)&&void 0!==c?c:window.screen.width,h=null!==(u=null===(a=null==p?void 0:p.parentElement)||void 0===a?void 0:a.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,c as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,r as t,t as o}from"./_auto-entry_mtv-
|
|
1
|
+
import{c as e,r as t,t as o}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";const r=1e4,n=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const i=()=>{const{widescreenSwitching:t}=e.get(),{enabled:i,options:{rotationInterval:a=r,widescreenIdPrefix:c}={}}=null!=t?t:{};if(!i)return;const l=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(c);let y=0,p=Date.now(),d=n(l);if(!l.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="")})})(l);const u=o(()=>{d||(d=n(l)||d,p=Date.now());Date.now()-p>=a&&((()=>{const e=w(y),t=l.map(e=>e[y]),o=l.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{i as initWidescreenSwitching};
|
package/mtv/es/index.d.ts
CHANGED
|
@@ -75,7 +75,6 @@ interface AstNative {
|
|
|
75
75
|
customIcon1?: AstNativeIcon;
|
|
76
76
|
customIcon2: AstNativeIcon;
|
|
77
77
|
customDisplayUrl1?: string;
|
|
78
|
-
customDisplayUrl2?: string;
|
|
79
78
|
}
|
|
80
79
|
interface AstAdObj {
|
|
81
80
|
adType: AstAdType;
|
|
@@ -376,7 +375,6 @@ interface AdNativeData {
|
|
|
376
375
|
customBody5?: string;
|
|
377
376
|
logo2?: string;
|
|
378
377
|
previewVideoSrc?: string;
|
|
379
|
-
feedUrl?: string;
|
|
380
378
|
}
|
|
381
379
|
interface Options {
|
|
382
380
|
publisher?: Newsroom;
|
package/mtv/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{R as default}from"./_auto-entry_mtv-
|
|
1
|
+
export{R as default}from"./_auto-entry_mtv-PapZnH4W.js";import"react/jsx-runtime";
|