@schibsted/advertory 3.18.0 → 3.19.0-inv-2777.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-I5o2erln.js +1 -0
- package/aftenposten/es/{events-CrUg0OPQ.js → events-BLN6spYK.js} +1 -1
- package/aftenposten/es/identity-facade-DTbhHE2R.js +1 -0
- package/aftenposten/es/{index-CRmEgEA-.js → index-B8_LDE5N.js} +1 -1
- package/aftenposten/es/index-CGTW0Npf.js +1 -0
- package/aftenposten/es/{index-CukHpBrP.js → index-CUo2hEUB.js} +1 -1
- package/aftenposten/es/{index-D32eGxZe.js → index-Cqu8ypfF.js} +1 -1
- package/aftenposten/es/index-DRB-D6AP.js +1 -0
- package/aftenposten/es/{index-Baw9qoIS.js → index-HItMfMV0.js} +1 -1
- package/aftenposten/es/index-Utb3AvYa.js +1 -0
- package/aftenposten/es/{index-B8H4adn8.js → index-t3vPQPQK.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-te1Pc83x.js → styles-C7bP6-II.js} +1 -1
- package/aftenposten/es/{styles-D5ApGFNI.js → styles-CDyqLWcy.js} +1 -1
- package/aftenposten/es/{styles-D_6_RmQo.js → styles-CGq6biri.js} +1 -1
- package/aftenposten/es/{styles-DHu1uaqZ.js → styles-CJ-uYsKG.js} +1 -1
- package/aftenposten/es/{styles-C2cUV2b9.js → styles-CcxETzjQ.js} +1 -1
- package/aftenposten/es/{styles-CnQw6LZA.js → styles-DKdEyJGA.js} +1 -1
- package/aftenposten/es/{styles-B4tTww6V.js → styles-DWXr3xGx.js} +1 -1
- package/aftenposten/es/{styles-De8j1a-R.js → styles-DsV2nSPa.js} +1 -1
- package/aftenposten/es/{styles-oO_QUZ2K.js → styles-LDEIhm3f.js} +1 -1
- package/aftenposten/es/{styles-DU53ed9M.js → styles-gz_Kgebe.js} +1 -1
- package/aftenposten/es/{styles-DOKeZ3h-.js → styles-yXXvcoFb.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-C7nW4wL-.js +1 -0
- package/aftenpostenv2/es/{events-BrKUU6S-.js → events-CEG6Ypay.js} +1 -1
- package/aftenpostenv2/es/identity-facade-DRqxnBns.js +1 -0
- package/aftenpostenv2/es/index-BereL9ve.js +1 -0
- package/aftenpostenv2/es/{index-Bva5GG_A.js → index-CE5rx_Op.js} +1 -1
- package/aftenpostenv2/es/index-CEMXejJF.js +1 -0
- package/aftenpostenv2/es/index-CFftj-fT.js +1 -0
- package/aftenpostenv2/es/{index-B3eSx0AF.js → index-Cnl2JZew.js} +1 -1
- package/aftenpostenv2/es/{index-DLyPNdxl.js → index-DanYUQpn.js} +1 -1
- package/aftenpostenv2/es/{index-DYl7sSG_.js → index-DjCfTiNb.js} +1 -1
- package/aftenpostenv2/es/{index-ynKvMWyD.js → index-Y53XVUdv.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-BukZbfMI.js → styles-B8LJ8U1M.js} +1 -1
- package/aftenpostenv2/es/{styles-DsNPVIp7.js → styles-BHopiPE2.js} +1 -1
- package/aftenpostenv2/es/{styles-ZLshTJTG.js → styles-BUoQr6B8.js} +1 -1
- package/aftenpostenv2/es/{styles-CkIPdN9M.js → styles-Bbj3qupP.js} +1 -1
- package/aftenpostenv2/es/{styles-DyvLGuPw.js → styles-C9bSg4Kx.js} +1 -1
- package/aftenpostenv2/es/{styles-Bdvoy-5V.js → styles-C_IRSPrb.js} +1 -1
- package/aftenpostenv2/es/{styles-Cp2Dp8Rx.js → styles-Ch02DU-5.js} +1 -1
- package/aftenpostenv2/es/{styles-jtekW9Qf.js → styles-CqdHNeje.js} +1 -1
- package/aftenpostenv2/es/{styles-CArxNqcE.js → styles-D8ypA1oW.js} +1 -1
- package/aftenpostenv2/es/{styles-44Ytvc9u.js → styles-br3R2iCx.js} +1 -1
- package/aftenpostenv2/es/{styles-BJBUx_yM.js → styles-uIkJnrLa.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-3WSGz0um.js +1 -0
- package/aftonbladet/es/{events-DJJwehoG.js → events-CaIO7UDY.js} +1 -1
- package/aftonbladet/es/identity-facade-Dst1rRCp.js +1 -0
- package/aftonbladet/es/{index-CcK3t2zJ.js → index-BtUKYngD.js} +1 -1
- package/aftonbladet/es/{index-C7WHdqMB.js → index-C-JROf63.js} +1 -1
- package/aftonbladet/es/{index-BMlpU8aw.js → index-CutoY9Ew.js} +1 -1
- package/aftonbladet/es/index-DUQDOykO.js +1 -0
- package/aftonbladet/es/index-DpHZVmhx.js +1 -0
- package/aftonbladet/es/{index-L7Igeo8s.js → index-IvlEtFIt.js} +1 -1
- package/aftonbladet/es/index-yRAYzWRT.js +1 -0
- package/aftonbladet/es/{index-DHQi_Gb5.js → index-zwr8tsE0.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-BwQI8Har.js → styles-4Y_GrYnL.js} +1 -1
- package/aftonbladet/es/{styles-B8-C3HbP.js → styles-BJKFMNdq.js} +1 -1
- package/aftonbladet/es/{styles-B24gjaYN.js → styles-BvcWUQEe.js} +1 -1
- package/aftonbladet/es/{styles-C2KNA6_Q.js → styles-CSFk-zIu.js} +1 -1
- package/aftonbladet/es/{styles-Bs-L9RIM.js → styles-CZ3A_pAw.js} +1 -1
- package/aftonbladet/es/{styles-Du4kYdG3.js → styles-Co0cNMjc.js} +1 -1
- package/aftonbladet/es/{styles-DpD1yUu5.js → styles-DoyI8eaT.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DWxm7sRH.js +1 -0
- package/aftonbladetv2/es/{events-pCNuOORU.js → events-Ca3rSBTh.js} +1 -1
- package/aftonbladetv2/es/identity-facade-DJ6PNmw-.js +1 -0
- package/aftonbladetv2/es/{index-DmNGezFs.js → index-Aj5wgfTi.js} +1 -1
- package/aftonbladetv2/es/index-BqdfdMgy.js +1 -0
- package/aftonbladetv2/es/index-CKDhCprF.js +1 -0
- package/aftonbladetv2/es/{index-nAn7C_ww.js → index-CaK7SWwl.js} +1 -1
- package/aftonbladetv2/es/{index-DZF6xWvX.js → index-DcfLzvst.js} +1 -1
- package/aftonbladetv2/es/{index-ChI1Xtav.js → index-S-wkCKmX.js} +1 -1
- package/aftonbladetv2/es/{index-FxbhCpIm.js → index-dWFsMh2G.js} +1 -1
- package/aftonbladetv2/es/index-jPx8REOt.js +1 -0
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-WUl2O9SJ.js → styles-6pocLh99.js} +1 -1
- package/aftonbladetv2/es/{styles-DzMy_ylE.js → styles-BxnB7j6R.js} +1 -1
- package/aftonbladetv2/es/{styles-BPm6_Tyf.js → styles-DT8Q_PoN.js} +1 -1
- package/aftonbladetv2/es/{styles-m7_3GfZS.js → styles-DZEePoGF.js} +1 -1
- package/aftonbladetv2/es/{styles-Duqf6IZA.js → styles-HdVx85Be.js} +1 -1
- package/aftonbladetv2/es/{styles-3aKR0OYZ.js → styles-faIgU_uj.js} +1 -1
- package/aftonbladetv2/es/{styles-xrODYqc8.js → styles-xV9FhdrY.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-BdX_viMp.js +1 -0
- package/bt/es/{events-DE_uZlA1.js → events-DVh4ufEu.js} +1 -1
- package/bt/es/identity-facade-BpyVeTyr.js +1 -0
- package/bt/es/{index-CODK_zJ9.js → index-BZUq2SW7.js} +1 -1
- package/bt/es/{index-Dr3GcIfK.js → index-CognghbM.js} +1 -1
- package/bt/es/{index-B0a_Oa4i.js → index-Cxwv3LPr.js} +1 -1
- package/bt/es/{index-CSofW9eD.js → index-D0JTwarB.js} +1 -1
- package/bt/es/{index-Du1q8PZU.js → index-D6TRzlei.js} +1 -1
- package/bt/es/index-DazMwoQX.js +1 -0
- package/bt/es/index-csrXMBzw.js +1 -0
- package/{vg/es/index-BJB7jY6x.js → bt/es/index-mGxOnkwp.js} +1 -1
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-BM5_s_r7.js → styles-B_pZRfjc.js} +1 -1
- package/bt/es/{styles-CSxhZElM.js → styles-BbJSg_U6.js} +1 -1
- package/bt/es/{styles-B_fc-kdO.js → styles-CJps0Rxy.js} +1 -1
- package/bt/es/{styles-imkAc2uq.js → styles-CYDX0RPZ.js} +1 -1
- package/bt/es/{styles-BscvjspQ.js → styles-CasVsxI0.js} +1 -1
- package/{sa/es/styles-CiDiUkgA.js → bt/es/styles-Ce-KnASY.js} +1 -1
- package/bt/es/{styles-BvkvfBxv.js → styles-Cwc6Zv2j.js} +1 -1
- package/bt/es/{styles-Bta58nId.js → styles-DgFDXZAf.js} +1 -1
- package/{vg/es/styles-1n8j2EjV.js → bt/es/styles-Dtfdh0aF.js} +1 -1
- package/bt/es/{styles-D4NwmlBA.js → styles-uX2S0Lfq.js} +1 -1
- package/btv2/es/_auto-entry_btv2-B2qi6CpH.js +1 -0
- package/btv2/es/{events-BqMvV7di.js → events-BOIrR4R_.js} +1 -1
- package/btv2/es/identity-facade-xPJQjNlO.js +1 -0
- package/btv2/es/{index-DpxleBMV.js → index-B-grl-dl.js} +1 -1
- package/btv2/es/{index-CBJLiIfz.js → index-BRKwj5ZQ.js} +1 -1
- package/btv2/es/index-BZzzXcCx.js +1 -0
- package/{vgv2/es/index-DVRyKCSg.js → btv2/es/index-CPCmPAhQ.js} +1 -1
- package/btv2/es/{index-B5UitQXo.js → index-CPQL5y-p.js} +1 -1
- package/{sav2/es/index-Heoe_AIr.js → btv2/es/index-C_A57yAS.js} +1 -1
- package/btv2/es/{index-DV0c6Xrq.js → index-Ci-yfDR6.js} +1 -1
- package/btv2/es/index-DFySK3p1.js +1 -0
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-x4cDdw2y.js → styles-BRw-s88s.js} +1 -1
- package/btv2/es/{styles-CVY_OoAs.js → styles-BTqHtLKH.js} +1 -1
- package/{sav2/es/styles-CjU4l-SU.js → btv2/es/styles-DD8tU9y8.js} +1 -1
- package/btv2/es/{styles-BSPiAJfQ.js → styles-DGHQBKFH.js} +1 -1
- package/{sav2/es/styles-CK4Np9Dz.js → btv2/es/styles-DW_i61N8.js} +1 -1
- package/{sav2/es/styles-Jp_tDrzp.js → btv2/es/styles-DYVU3tcW.js} +1 -1
- package/btv2/es/{styles-B2feTcg_.js → styles-Drye1jfj.js} +1 -1
- package/btv2/es/{styles-CkiWn-pK.js → styles-F4zXe0tb.js} +1 -1
- package/btv2/es/{styles-BInms_h5.js → styles-zpV5vDh9.js} +1 -1
- package/e24/es/_auto-entry_e24-BHVABDNm.js +1 -0
- package/e24/es/{events-DF8f8UTH.js → events-Pwa-0LIO.js} +1 -1
- package/e24/es/{index-CYHnZe0J.js → index-B-_X2ZFI.js} +1 -1
- package/e24/es/{index-BsmbZsXV.js → index-BhMQSe2M.js} +1 -1
- package/e24/es/index-Bk8mWwhj.js +1 -0
- package/e24/es/{index-Woi0QIyP.js → index-CuOVbGVy.js} +1 -1
- package/e24/es/{index-BeeAlBuD.js → index-DNVZ4QwM.js} +1 -1
- package/e24/es/{index-CP6Im7lE.js → index-Dc0bUyFl.js} +1 -1
- package/e24/es/index-De86N5K_.js +1 -0
- package/{svd/es/index-B0d8xAfM.js → e24/es/index-oOfk4AA8.js} +1 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-Cmrihndl.js → styles-BBbEZTuM.js} +1 -1
- package/{tv4/es/styles-B-tvI5HI.js → e24/es/styles-BgJ17xAm.js} +1 -1
- package/e24/es/{styles-Bfd45Pjf.js → styles-BpPmVYGN.js} +1 -1
- package/e24/es/{styles-SI2Tr_RP.js → styles-C6LkOf4g.js} +1 -1
- package/e24/es/{styles-CElrg8qK.js → styles-CUvUkuf3.js} +1 -1
- package/e24/es/{styles-Bz0tFWFB.js → styles-Dykpabqp.js} +1 -1
- package/e24/es/{styles-D3vWLz7X.js → styles-JHfmRduG.js} +1 -1
- package/e24/es/{styles-BhEr5ezW.js → styles-QALafejp.js} +1 -1
- package/e24/es/{styles-jZ8udc-A.js → styles-WNjhmcLr.js} +1 -1
- package/e24/es/{styles-D3LLw4RS.js → styles-XE9jfJbx.js} +1 -1
- package/e24/es/{styles-C4GttOVW.js → styles-kBFs3dkl.js} +1 -1
- package/e24/es/{styles-DjdLwJ-N.js → styles-vLx6qFPx.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-BoGkrwkH.js → _auto-entry_fotbollskanalen-CrG_cfpZ.js} +1 -1
- package/fotbollskanalen/es/{events-XgL2a9Ad.js → events-B8snudSd.js} +1 -1
- package/fotbollskanalen/es/identity-facade-CH1me9la.js +1 -0
- package/fotbollskanalen/es/index-BSiOg_42.js +1 -0
- package/fotbollskanalen/es/index-C9XoXOuS.js +1 -0
- package/fotbollskanalen/es/index-CG5YfBkF.js +1 -0
- package/fotbollskanalen/es/{index-Bb-DsC59.js → index-CeeO40RJ.js} +1 -1
- package/fotbollskanalen/es/{index-CABM14sH.js → index-CsfHL8iH.js} +1 -1
- package/fotbollskanalen/es/{index-D3_ErBOr.js → index-D5N06cIT.js} +1 -1
- package/fotbollskanalen/es/{index-B4s9_MRH.js → index-D9Xw6jYK.js} +1 -1
- package/fotbollskanalen/es/{index-D5gs6mRS.js → index-Da0jB_vt.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-hLRHR3gJ.js → styles-BZ0OJgX4.js} +1 -1
- package/fotbollskanalen/es/{styles-Be0tghxV.js → styles-BZi0Qmw0.js} +1 -1
- package/fotbollskanalen/es/{styles-Bvv8u7Ja.js → styles-ChWjL32t.js} +1 -1
- package/fotbollskanalen/es/{styles-5gUPsWW9.js → styles-D7fPpTjT.js} +1 -1
- package/fotbollskanalen/es/{styles-CoTOpYRX.js → styles-F4YIR4QZ.js} +1 -1
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/{_auto-entry_koket-BITL2_K1.js → _auto-entry_koket-jCESBApo.js} +1 -1
- package/koket/es/{events-CJe7o002.js → events-1ipHknTy.js} +1 -1
- package/koket/es/identity-facade-B4rM65lV.js +1 -0
- package/koket/es/index-BTWOuZTO.js +1 -0
- package/koket/es/{index-CSA4jvBm.js → index-Bn7dEH0-.js} +1 -1
- package/koket/es/{index-D2ikK49F.js → index-CgCLIebU.js} +1 -1
- package/koket/es/{index-Dxz_IhQv.js → index-CzR8T1zM.js} +1 -1
- package/koket/es/{index-DnTZqSNs.js → index-D69SbO30.js} +1 -1
- package/koket/es/index-DAC5BmSR.js +1 -0
- package/{svdv2/es/index-vayJTGli.js → koket/es/index-Davj8EGR.js} +1 -1
- package/koket/es/index-L52a1eqK.js +1 -0
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-XF3Es5pU.js → koket/es/styles-BAMBRmTS.js} +1 -1
- package/koket/es/{styles-_ywNTArC.js → styles-BmSH6K6S.js} +1 -1
- package/{svdv2/es/styles-DQ_w0XU-.js → koket/es/styles-CJwXy2w7.js} +1 -1
- package/koket/es/{styles-B5AKPQcZ.js → styles-CMGzd2G-.js} +1 -1
- package/koket/es/{styles-D7VFY5X2.js → styles-DztbCkVJ.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/{_auto-entry_mtv-D53dvC1i.js → _auto-entry_mtv-A1lh_f2x.js} +1 -1
- package/mtv/es/identity-facade-3bQWoGpu.js +1 -0
- package/mtv/es/index-B4XPW-DB.js +1 -0
- package/mtv/es/{index-TbvSGRB5.js → index-B71MNwTZ.js} +1 -1
- package/mtv/es/index-CaiSLPFG.js +1 -0
- package/mtv/es/{index-DIuXGid2.js → index-D_6otdWK.js} +1 -1
- package/mtv/es/index.js +1 -1
- package/mtv/es/{styles-BpMDR0GA.js → styles-DtbxEFXS.js} +1 -1
- package/omni/es/{_auto-entry_omni-BVChM78_.js → _auto-entry_omni-z1lzT_vm.js} +1 -1
- package/{sav2/es/events-BM5FbEtd.js → omni/es/events-BBTSvTq_.js} +1 -1
- package/omni/es/identity-facade-CpQj_A9q.js +1 -0
- package/omni/es/index-1NNCUzEK.js +1 -0
- package/omni/es/{index-DS_3fMAL.js → index-BMR06ZGu.js} +1 -1
- package/omni/es/{index-ChmcSFS1.js → index-CGqGPoFg.js} +1 -1
- package/omni/es/index-CVKnojc-.js +1 -0
- package/omni/es/{index-DUL7FQvO.js → index-CbaMD1iB.js} +1 -1
- package/{tvnu/es/index-BjEOq_zN.js → omni/es/index-ClHtnty4.js} +1 -1
- package/omni/es/index-DiIBjZjQ.js +1 -0
- package/omni/es/{index-DEd1G3aM.js → index-OM5E1rRz.js} +1 -1
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-kHuAMSyr.js → styles-BoFOty2O.js} +1 -1
- package/omni/es/{styles-CW92yIpD.js → styles-DULm4hqA.js} +1 -1
- package/omni/es/{styles-BdEe5Ynl.js → styles-Dwfxd72Z.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-CEkiLfTE.js +1 -0
- package/{vg/es/events-BfqUtz1_.js → sa/es/events-C_OP-drM.js} +1 -1
- package/sa/es/identity-facade-XCLarHY-.js +1 -0
- package/sa/es/index--qV4KuEf.js +1 -0
- package/sa/es/{index-Cto0_xo8.js → index-BB-NtU6m.js} +1 -1
- package/sa/es/{index-Cx1T5nb9.js → index-BITVhNXM.js} +1 -1
- package/sa/es/{index-fKdGZ7GD.js → index-BJcAPEzG.js} +1 -1
- package/sa/es/{index-DFBOTrjK.js → index-Cbx8IWy_.js} +1 -1
- package/sa/es/index-DAd4rnmo.js +1 -0
- package/sa/es/index-DLIkUwbu.js +1 -0
- package/sa/es/{index-CuD4xNFU.js → index-_X4hxOA6.js} +1 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-BMtPMhSP.js → styles-B1xC-vhc.js} +1 -1
- package/sa/es/{styles-CL6zmM-h.js → styles-BMSytP5I.js} +1 -1
- package/sa/es/{styles-BvRBg64g.js → styles-BQpVfQuo.js} +1 -1
- package/sa/es/{styles-DnI_syRT.js → styles-C1BihPCf.js} +1 -1
- package/{vg/es/styles-CzX1ajop.js → sa/es/styles-CgKuxW92.js} +1 -1
- package/{vg/es/styles-3vc-o84P.js → sa/es/styles-DGIQKXsV.js} +1 -1
- package/sa/es/{styles-G5IDTsth.js → styles-DHUvkA4T.js} +1 -1
- package/sa/es/{styles-B3bE3oeO.js → styles-_V0N5g1Q.js} +1 -1
- package/sa/es/{styles-DjWc-g-U.js → styles-f7hwf_If.js} +1 -1
- package/sa/es/{styles-KY5KJOnA.js → styles-lm0VkjLu.js} +1 -1
- package/sav2/es/_auto-entry_sav2-Dg9kOYgl.js +1 -0
- package/{tvnu/es/events-Dn2KJr0j.js → sav2/es/events-Dw49C1aQ.js} +1 -1
- package/sav2/es/identity-facade-VkESwrPB.js +1 -0
- package/sav2/es/{index-C5WrRc-b.js → index-BDsyD7vH.js} +1 -1
- package/sav2/es/{index-CqZ5h5be.js → index-Blei8_jo.js} +1 -1
- package/{tvnu/es/index-C3LNZYqg.js → sav2/es/index-C84LigBq.js} +1 -1
- package/sav2/es/index-Cb5HCAnO.js +1 -0
- package/sav2/es/index-D-pNfBB7.js +1 -0
- package/sav2/es/index-DAd9El7r.js +1 -0
- package/sav2/es/{index-BgbkIwOq.js → index-DTCJ9gA4.js} +1 -1
- package/{omni/es/index-DoPgNVgH.js → sav2/es/index-DqRT8m6d.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-BKirbOEP.js → styles-Bj4gyI-B.js} +1 -1
- package/{vgv2/es/styles-NmqmsWTa.js → sav2/es/styles-BsPiznR9.js} +1 -1
- package/{btv2/es/styles-DTzc8iL0.js → sav2/es/styles-ByBaebd0.js} +1 -1
- package/sav2/es/{styles-eYX3EHRu.js → styles-CFR4hR2_.js} +1 -1
- package/sav2/es/{styles-DmiRDUDx.js → styles-CetOvyn7.js} +1 -1
- package/sav2/es/{styles-B4ork19U.js → styles-CfD9j2e7.js} +1 -1
- package/{vgv2/es/styles-ctQS7q-2.js → sav2/es/styles-D0qjW9Aq.js} +1 -1
- package/{vgv2/es/styles-CFJwqIst.js → sav2/es/styles-DqTfrHe0.js} +1 -1
- package/sav2/es/{styles-9CZX0c_O.js → styles-DzgtUZhr.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-DNcUfunH.js +1 -0
- package/svd/es/{events-C1VnSaGH.js → events-DLxuY8Q3.js} +1 -1
- package/svd/es/identity-facade-CpvH29T-.js +1 -0
- package/svd/es/{index-B3Ok5Zxi.js → index-1HhBMda-.js} +1 -1
- package/svd/es/index-BIF13YKP.js +1 -0
- package/svd/es/{index-DkAKiA6e.js → index-CbhEdAVP.js} +1 -1
- package/svd/es/index-D5a6siLS.js +1 -0
- package/{tv4/es/index-BsfijWz0.js → svd/es/index-DQO39FOa.js} +1 -1
- package/svd/es/index-DU7KSrUo.js +1 -0
- package/{tv4/es/index-B4Kh7kpG.js → svd/es/index-DcO9ji44.js} +1 -1
- package/svd/es/{index-CbwiRx-g.js → index-Dqn5cKNE.js} +1 -1
- package/svd/es/index.js +1 -1
- package/{tv4/es/styles-DwosxoLg.js → svd/es/styles--tH7ID5P.js} +1 -1
- package/svd/es/{styles-CtcLRY0n.js → styles-9gKu2jBz.js} +1 -1
- package/svd/es/{styles-4soJ7u-x.js → styles-BO5FiqJ9.js} +1 -1
- package/svd/es/{styles-C3IWf8aj.js → styles-C-E4aHsf.js} +1 -1
- package/svd/es/{styles-Dul2qFeg.js → styles-Cs6Iv9Cu.js} +1 -1
- package/svd/es/{styles-B6yIVgo2.js → styles-DNBHB-9j.js} +1 -1
- package/svd/es/{styles-CYqkTmPz.js → styles-kPokjjT6.js} +1 -1
- package/svdv2/es/{_auto-entry_svdv2-C-1qQWmF.js → _auto-entry_svdv2-C_5Fiqu4.js} +1 -1
- package/svdv2/es/{events-Dd2yn2PL.js → events-lK_ZKUge.js} +1 -1
- package/svdv2/es/identity-facade-onZ2deYS.js +1 -0
- package/svdv2/es/{index-ZVx6osQq.js → index-BOkDG1JC.js} +1 -1
- package/svdv2/es/{index-CgvIVueE.js → index-Bdr2fASe.js} +1 -1
- package/svdv2/es/index-BpzevZKi.js +1 -0
- package/svdv2/es/{index-B1Msxa1O.js → index-BwE23Uxb.js} +1 -1
- package/svdv2/es/index-BxPzM5AV.js +1 -0
- package/svdv2/es/{index-D7ABApW9.js → index-DjtuTCUi.js} +1 -1
- package/{koket/es/index-D76GM_Dq.js → svdv2/es/index-Dm8MTxsi.js} +1 -1
- package/svdv2/es/index-exStjbLZ.js +1 -0
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-CqjB4SkE.js → styles-0YjWOSRt.js} +1 -1
- package/{koket/es/styles-If56BndQ.js → svdv2/es/styles-BN-lvZRj.js} +1 -1
- package/svdv2/es/{styles-BGCZCbcv.js → styles-DFtVALCc.js} +1 -1
- package/svdv2/es/{styles-Xcws2oR2.js → styles-DbHQdhND.js} +1 -1
- package/svdv2/es/{styles-Bz8f24X2.js → styles-Dl6zLmAW.js} +1 -1
- package/svdv2/es/{styles-B0JQvBQt.js → styles-PL4dIdVO.js} +1 -1
- package/svdv2/es/{styles-CEborJgX.js → styles-U3_SmwsP.js} +1 -1
- package/{koket/es/styles-CvVaiJbk.js → svdv2/es/styles-VQtptkzT.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/{_auto-entry_tv4-DrT58fo2.js → _auto-entry_tv4-DPS_xBsd.js} +1 -1
- package/tv4/es/{events-CA_qpiiH.js → events-BfYZjqrU.js} +1 -1
- package/tv4/es/identity-facade-BFFNRwV6.js +1 -0
- package/tv4/es/{index-DJfxqylY.js → index-BMxd_Gtp.js} +1 -1
- package/{svd/es/index-t-VmRR6x.js → tv4/es/index-BigjvxfB.js} +1 -1
- package/{e24/es/index-Cmwd1gSI.js → tv4/es/index-C-mia82Q.js} +1 -1
- package/{e24/es/index-BQJbsM6e.js → tv4/es/index-CAPfJ8jt.js} +1 -1
- package/tv4/es/index-CT-oyNFh.js +1 -0
- package/tv4/es/{index-DGUaN9RI.js → index-CdYSNGsv.js} +1 -1
- package/tv4/es/index-DdHmc2J7.js +1 -0
- package/tv4/es/index-_PN2JNpc.js +1 -0
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-BQnfcenF.js → tv4/es/styles-B3lnCgWE.js} +1 -1
- package/{svd/es/styles-B62zkTco.js → tv4/es/styles-C0IyA_c5.js} +1 -1
- package/tv4/es/{styles-BjfL5pmp.js → styles-CR90-vcj.js} +1 -1
- package/tv4/es/{styles-CMOqiTdr.js → styles-DHA-YYlu.js} +1 -1
- package/tv4/es/{styles-DYdmZGFU.js → styles-IhaFt-8s.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-k701awgX.js +1 -0
- package/{omni/es/events-Dcpm5emQ.js → tvnu/es/events-BAsgragb.js} +1 -1
- package/tvnu/es/identity-facade-DyaeBNvi.js +1 -0
- package/tvnu/es/{index-CCfVOFWB.js → index-BgZIaA8R.js} +1 -1
- package/tvnu/es/index-Br4-aX_E.js +1 -0
- package/{btv2/es/index-CNOhmWcU.js → tvnu/es/index-Cn_RNF6A.js} +1 -1
- package/tvnu/es/{index-BTKg4emk.js → index-DHceXdIG.js} +1 -1
- package/tvnu/es/index-DR2lq06Z.js +1 -0
- package/tvnu/es/index-b55kvvsZ.js +1 -0
- package/tvnu/es/{index-DFmrpUUo.js → index-d2BE-And.js} +1 -1
- package/{sav2/es/index-CXNd1xW1.js → tvnu/es/index-feivFRNJ.js} +1 -1
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-DWXHDRlP.js → styles-Br46mFsH.js} +1 -1
- package/tvnu/es/{styles-DQHdlPhl.js → styles-C57rQD9Y.js} +1 -1
- package/tvnu/es/{styles-D3x4jf-j.js → styles-CnWoMSnw.js} +1 -1
- package/{btv2/es/styles-UQhKSng8.js → tvnu/es/styles-CuKX2VOz.js} +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-BNrDgJdV.js +1 -0
- package/{sa/es/events-C3BMo9Uo.js → vg/es/events-6gSmwsz8.js} +1 -1
- package/vg/es/{index-CDqvLPgT.js → index-3nIV6xSB.js} +1 -1
- package/vg/es/index-B14K2oXW.js +1 -0
- package/vg/es/{index-x8PwNet6.js → index-ChrwTwox.js} +1 -1
- package/vg/es/{index-CuWR3e5A.js → index-D4gW65W7.js} +1 -1
- package/vg/es/{index-CTaICLSw.js → index-I4CC3SXq.js} +1 -1
- package/vg/es/index-e3uNtkOh.js +1 -0
- package/vg/es/index-jUlwEy9w.js +1 -0
- package/vg/es/{index-C_JV8JF_.js → index-kiZ-pIee.js} +1 -1
- package/vg/es/index.js +1 -1
- package/{sa/es/styles-CcFDd5SA.js → vg/es/styles-1_MY6s_z.js} +1 -1
- package/vg/es/{styles-L2IpsHbq.js → styles-AotK4pEw.js} +1 -1
- package/vg/es/{styles-DK6OtLji.js → styles-B3jwVmae.js} +1 -1
- package/vg/es/{styles-BsguFks5.js → styles-B6dPCWoT.js} +1 -1
- package/vg/es/{styles-Q9SKc1Hh.js → styles-BH3YDzqQ.js} +1 -1
- package/{bt/es/styles-BmrHJiYo.js → vg/es/styles-BdhwwTMp.js} +1 -1
- package/vg/es/{styles-CVbJvaly.js → styles-Bk6Y-apI.js} +1 -1
- package/vg/es/{styles-CgOAOEfA.js → styles-CFCS30mO.js} +1 -1
- package/vg/es/{styles-BmpqqoHg.js → styles-DSbo0-8H.js} +1 -1
- package/vg/es/{styles--yOXPdjG.js → styles-DWFFqvvw.js} +1 -1
- package/vg/es/{styles-B-9EIsrQ.js → styles-DdWRfff6.js} +1 -1
- package/vg/es/{styles-CNRmBQ4c.js → styles-Dm3Jqysp.js} +1 -1
- package/{bt/es/styles-C9A3YE-k.js → vg/es/styles-DyZpYf6x.js} +1 -1
- package/vg/es/{styles-Di-6gMqt.js → styles-HPS2Y8JW.js} +1 -1
- package/vg/es/{styles-CC05R_3-.js → styles-R741_EWe.js} +1 -1
- package/vg/es/{styles-pTQEVgFw.js → styles-xWMDIEIY.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-UkCdEMKx.js +1 -0
- package/vgv2/es/events-BGH_2u4C.js +1 -0
- package/vgv2/es/{index-DYYNBjmC.js → index-BJHlv5wq.js} +1 -1
- package/vgv2/es/{index-DG8kZFha.js → index-BY1RRzu_.js} +1 -1
- package/vgv2/es/{index-MIhy6YLN.js → index-CnZ-2BVw.js} +1 -1
- package/vgv2/es/index-CnpFbljE.js +1 -0
- package/vgv2/es/index-DPC29Oyg.js +1 -0
- package/vgv2/es/{index-D57YFxL2.js → index-DYUnc-AT.js} +1 -1
- package/vgv2/es/{index-BgPYv31C.js → index-DeB__Ujr.js} +1 -1
- package/vgv2/es/index-aiDW0KKe.js +1 -0
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-ridlIX7w.js → styles-5-2XixJL.js} +1 -1
- package/vgv2/es/{styles-DikRMMY4.js → styles-B5lS1AzJ.js} +1 -1
- package/{tvnu/es/styles-D12Q2zLD.js → vgv2/es/styles-BLaOqKHS.js} +1 -1
- package/vgv2/es/styles-C4M6Q7lp.js +1 -0
- package/{sav2/es/styles-C30jV7ky.js → vgv2/es/styles-CDhMIRVB.js} +1 -1
- package/vgv2/es/{styles-BdeVHtB7.js → styles-CTav3GdT.js} +1 -1
- package/{btv2/es/styles-CaJ8VnX_.js → vgv2/es/styles-C_RSsDAD.js} +1 -1
- package/vgv2/es/{styles-Dn0aUcYr.js → styles-DBUy3w5x.js} +1 -1
- package/vgv2/es/{styles-C1IfNQfL.js → styles-DQBO3u8n.js} +1 -1
- package/vgv2/es/{styles-CTcizZ-Q.js → styles-DnBrd6xx.js} +1 -1
- package/vgv2/es/{styles-D6H8kUXu.js → styles-DsLMuxWt.js} +1 -1
- package/vgv2/es/{styles-BdY5gfHd.js → styles-FzbKeELd.js} +1 -1
- package/vgv2/es/{styles-DOULAbPJ.js → styles-SyG-uaHK.js} +1 -1
- package/vgv2/es/{styles-Bhz17umu.js → styles-dLJY4bwA.js} +1 -1
- package/vgv2/es/{styles-DPSrcrqr.js → styles-h7qQQ1cd.js} +1 -1
- package/vgv2/es/{styles-CQVrfUUl.js → styles-v2oJSyNj.js} +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-DNQJWDRJ.js +0 -1
- package/aftenposten/es/index-B88se93R.js +0 -1
- package/aftenposten/es/index-DkODCj7Y.js +0 -1
- package/aftenposten/es/index-oxCgGc0x.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BtdjJBRi.js +0 -1
- package/aftenpostenv2/es/index-DSAe15TH.js +0 -1
- package/aftenpostenv2/es/index-Do7nyVpB.js +0 -1
- package/aftenpostenv2/es/index-dOfoy9xz.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CznwHJ9L.js +0 -1
- package/aftonbladet/es/index-BTr2EHBG.js +0 -1
- package/aftonbladet/es/index-BfGlK5AK.js +0 -1
- package/aftonbladet/es/index-DX1V8TfP.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Cuo_y3Oe.js +0 -1
- package/aftonbladetv2/es/index-BG9zfrXp.js +0 -1
- package/aftonbladetv2/es/index-CG-_IAXO.js +0 -1
- package/aftonbladetv2/es/index-Df0qhN5Y.js +0 -1
- package/bt/es/_auto-entry_bt-CZB9FTXD.js +0 -1
- package/bt/es/index-Cd2KH2u-.js +0 -1
- package/bt/es/index-PV9x_biL.js +0 -1
- package/bt/es/index-vemxQymc.js +0 -1
- package/btv2/es/_auto-entry_btv2-jyP99ykN.js +0 -1
- package/btv2/es/index-C9BTFt3G.js +0 -1
- package/btv2/es/index-CMZC7H8g.js +0 -1
- package/btv2/es/index-DxvAY5Lc.js +0 -1
- package/e24/es/_auto-entry_e24-o2zJnnp7.js +0 -1
- package/e24/es/index-v06i8ZMq.js +0 -1
- package/fotbollskanalen/es/index-CxQRsQ7s.js +0 -1
- package/fotbollskanalen/es/index-D3vJg6of.js +0 -1
- package/fotbollskanalen/es/index-uHEsJIAw.js +0 -1
- package/koket/es/index-Bj4wpTgt.js +0 -1
- package/koket/es/index-DUMFbWv2.js +0 -1
- package/koket/es/index-D_t1L0Jw.js +0 -1
- package/mtv/es/index-BZztN2dU.js +0 -1
- package/mtv/es/index-DT8GWwa8.js +0 -1
- package/omni/es/index-B5L9LdZe.js +0 -1
- package/omni/es/index-D8Du6qKy.js +0 -1
- package/omni/es/index-fF0V2I_V.js +0 -1
- package/sa/es/_auto-entry_sa-J8OfTxac.js +0 -1
- package/sa/es/index-CawIeUqK.js +0 -1
- package/sa/es/index-Du-rhVYT.js +0 -1
- package/sa/es/index-DxUp0ZXa.js +0 -1
- package/sav2/es/_auto-entry_sav2-nmDgZMyM.js +0 -1
- package/sav2/es/index-BMjVrYV7.js +0 -1
- package/sav2/es/index-CFCEtWva.js +0 -1
- package/sav2/es/index-CwfU7lhW.js +0 -1
- package/svd/es/_auto-entry_svd-BOBXC1NB.js +0 -1
- package/svd/es/index-C0zYrhS8.js +0 -1
- package/svd/es/index-CB5fxcjW.js +0 -1
- package/svd/es/index-CPMzs4OC.js +0 -1
- package/svdv2/es/index-C_Hy2D6G.js +0 -1
- package/svdv2/es/index-Cm2XNnkR.js +0 -1
- package/svdv2/es/index-DjDdQPHz.js +0 -1
- package/tv4/es/index-1faQFOdm.js +0 -1
- package/tv4/es/index-BM8z6Ixi.js +0 -1
- package/tv4/es/index-CuR9OppE.js +0 -1
- package/tv4/es/index-iFXY2RDG.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-BN6qNwOY.js +0 -1
- package/tvnu/es/index-C-17pOoR.js +0 -1
- package/tvnu/es/index-CR8jWo2c.js +0 -1
- package/tvnu/es/index-vd3IGMiX.js +0 -1
- package/vg/es/_auto-entry_vg-Trd8pvQs.js +0 -1
- package/vg/es/index-DeQUkpYq.js +0 -1
- package/vg/es/index-DkPggcF3.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-B3OjjjK2.js +0 -1
- package/vgv2/es/events-Bq8LUFIZ.js +0 -1
- package/vgv2/es/index-BWIZzC2g.js +0 -1
- package/vgv2/es/index-Cqg9XYLx.js +0 -1
- package/vgv2/es/styles-8OZXx9WD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const r={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},i={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"},o={publisherClassName:i.OMNI,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{d(r.next(e))}catch(e){o(e)}}function s(e){try{d(r.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((r=r.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=d(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}());const p={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},v=(e,t)=>u(e,t,p),g=(e,t)=>Object.assign(Object.assign({},e),t),h=(e,t)=>{var n;return v(null!==(n=e)&&void 0!==n?n:{},t)},m=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},y=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},f=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||y("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||y("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||y("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||y("pageContext.deviceType is required."),n||y("pageOptions is required."),r||y("placements is required."),(null==i?void 0:i.defaultThreshold)||y("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&y(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},w={placements:(e,t)=>t,takeover:h,refreshConfig:g,editory:h,appearanceConfig:h,pageContext:g,pageOptions:g,pageSectionsSelectors:g,tcf:g},b=(e,t)=>{const n=e;for(const e of Object.keys(w)){const r=t[e];void 0!==r&&(n[e]=w[e](n[e],r))}},x=6;class C{set(e){f(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");b(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=v(C.DEFAULT_SITE_HANDLERS,e)}}C.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const A=new C,I=A.modifyConfigProperties.bind(A);class E{initialize(){this.DATA=Object.assign({},E.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)}}E.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const S=new E,T=864e5,k=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return m("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=T)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=T)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return m("Error with parsing localStorage data"),null}}}})(),O="glimrTags",P=["glwe_","glwet_"],j={geofenceTags:[],geoTags:[],weatherTags:[]},L=e=>new URLSearchParams(window.location.search).get(e),N="takeover",_="native_override_desc2",$=e=>window.location.href.includes(e),q=()=>null!==L("disable_prebid"),R=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 m("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(m("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{m("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{m("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);m("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),F={NO:"no",SE:"se"},M="cmp:loaded";let D="undefined"!=typeof window?window._tcf_:void 0,B=!1;const z=(e,t,n)=>{const r=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,o=L("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(m("TCF bypass param detected, returning consent: true"),!0):(m("TCF is not enabled, returning consent: true"),!0))(r,o))return!0;if(B)return null;if(!D)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=D.getConsentedToAllSync();return m(`TCF consented to all is: ${t}`),D.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(m("Getting TCF consent manager..."),window._tcf_)return m("TCF consent manager is already available"),D=window._tcf_,void e(D);m("TCF consent manager is not available");const n=()=>{m("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(D=window._tcf_,e(D)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(M,n),B=!0,t(new Error("Timeout waiting for CMP to load"))},i);m("Listening for CMP loaded event..."),document.addEventListener(M,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return m(`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===F.SE,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===F.NO;if(t||r)return m("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield R(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!D)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{m("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);D.onTcfReady(()=>{m("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),D.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},H=(e,t,n,...r)=>s(void 0,[e,t,n,...r],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return m(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return m(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=z(e,0,n);return(yield i())?(m(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(m(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}),W=(...e)=>s(void 0,[...e],void 0,function*(e=A.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield H(t,n,r,"glimr")}const{getConsentAsync:i}=z(t,0,r);return yield i()}),U=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=A.get();if(!(yield W())||!(null==e?void 0:e.enabled))return void m("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{k.setWithTimestamp(O,{tags:e,tagMappings:t}),n(!0)})})}catch(e){m(`Error during getting glimr data: ${e}`)}else m("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),V={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"},K=e=>P.some(t=>e.startsWith(t)),G=e=>e.startsWith("glgc_"),J=e=>e.startsWith("glci_"),Y=e=>!K(e)&&!G(e),X=e=>e===F.NO?"no-sno":"se-generic",Q=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield W(e);if(!(null==r?void 0:r.enabled)||!o)return m("No consent for getting glimr tags."),{};const a=X(i),s=Z(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),Z=(e,t)=>{const n=ee();if(!n)return j;const r=((e=[])=>e.filter(K))(n),i=((e=[])=>e.filter(G))(n),o=((e=[],t,n)=>{var r;const i=e.filter(Y);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=V[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},ee=()=>{const e=k.getByTimestamp(O);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},te=()=>{var e;return((e=[])=>e.filter(J))(null!==(e=ee())&&void 0!==e?e:[])},ne="opaque",re=e=>s(void 0,void 0,void 0,function*(){if(e.type!==ne){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>s(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=a(t,["timeout"]);if(n)return((e,t,n)=>s(void 0,void 0,void 0,function*(){const r=new AbortController,i=setTimeout(()=>r.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return re(n)}finally{clearTimeout(i)}}))(e,r,n);const i=yield fetch(e,r);return re(i)}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const r=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:r});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},oe="advertory:ppids-cache",ae={[F.SE]:`SCH${F.SE.toUpperCase()}-EnvHash`,[F.NO]:`SCH${F.NO.toUpperCase()}-EnvHash`},se={[F.SE]:`SCH${F.SE.toUpperCase()}-UserHash`,[F.NO]:`SCH${F.NO.toUpperCase()}-UserHash`},de={[F.SE]:`sch${F.SE}-envhash-v3`,[F.NO]:`sch${F.NO}-envhash-v3`},le={[F.SE]:`sch${F.SE}-userhash-v3`,[F.NO]:`sch${F.NO}-userhash-v3`},ce={[F.SE]:`'sch${F.SE}-iosid-v3'`,[F.NO]:`'sch${F.NO}-iosid-v3'`},ue={[F.SE]:`sch${F.SE}-androidid-v3`,[F.NO]:`sch${F.NO}-androidid-v3`},pe={[F.SE]:"sdrn:schibsted.com:user",[F.NO]:"sdrn:spid.no:user"};class ve{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:r})=>{t.append(e,`${r}-${n}`)}),t}}const ge=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,r;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(r=i.xandr)||void 0===r?void 0:r.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||m("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:""}},he=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,r,i,o,a,s,d,l,c,u,p;const v=k.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===(r=g.idfv)||void 0===r?void 0:r.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||m("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,r){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=r?r:null}shouldHash(e,t){var n,r;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(r=t[i])||void 0===r?void 0:r.plain))return!0}return!1}cachePPIDs(e,t,n,r){const i=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}}:{}),r?{anId:{plain:r}}:{});k.set(oe,i)}hashPPIDs(e,t){return s(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 m("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const r=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${pe[t]}:${n}`:null}))(t,n),i=yield(o=t,s(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:r},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:r,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:r.plain,environmentId:i.plain}}},me=e=>s(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:r,isMobileApp:i}}=e;if(!(yield H(n,i,r,"setPPIDs")))return;if(!t)return;(yield Promise.allSettled([ge.processPPIDs(t,null==n?void 0:n.timeout),he.processPPIDs(t,r)])).forEach((e,t)=>{if("rejected"===e.status){m(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),ye=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=he.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]).add(o,ce[e]).add(a,ue[e]).buildEids()}]}},fe=()=>{const{ppid1:e,ppid2:t}=ge.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},we=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=he.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]).add(o,ce[e]).add(a,ue[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i}=he.getPPIDs(),o=(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},xe=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i}=he.getPPIDs();return(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]).buildRyEids()},Ce=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i}=he.getPPIDs(),o=(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),Ae=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=he.getPPIDs();return e}),Ie=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(d)};i.addEventListener("load",o),i.addEventListener("error",a);const d=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),Ee={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}]},Te={wallpaper:1600,"l-format":1600},ke=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&ze(e,Ee.ANY_FULLSCREEN)},Oe=e=>{const{native:t}=e;return!!t},Pe=e=>ze(e,Ee.FULLWIDTH),je=e=>{const{targetId:t}=e;return t.includes("takeover")||ze(e,Ee.TAKEOVER)},Le=e=>ze(e,Ee.TAKEOVER),Ne=e=>ze(e,Ee.WALLPAPER),_e=e=>ze(e,Ee.COLLAPSE),$e=e=>e.targetId.includes("sponsorstripe"),qe=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Re=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Fe=e=>e.targetId.startsWith("midboard"),Me=e=>e.targetId.includes("widescreen"),De=e=>e.width>=1260&&e.width<=1280,Be=e=>e.width>=1600&&e.width<=1620,ze=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,r;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(r=e.banner)||void 0===r?void 0:r.height)||e.height,a=t.width===i,s=!t.height||t.height===o;return a&&s})};let He;const We=()=>He,Ue="advertory-wallpaper-background",Ve="advertory-with-horseshoe",Ke=()=>{const e=document.querySelector(`.${Ue}`);e&&e.remove()},Ge=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Ue}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Je=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Ye=e=>Je.test(e),Xe=e=>e.startsWith("wallpaper:color:"),Qe=e=>{const t=document.querySelector(`.${Ue}`);t&&(t.style.backgroundImage=`url(${e})`)},Ze=e=>{const t=document.querySelector(`.${Ue}`);t&&(t.style.backgroundColor=e)};var et=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Ve),n.classList.add(Ve))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{Ke();const e=document.createElement("div");e.classList.add(Ue),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&&(Ge(n),window.addEventListener("scroll",()=>Ge(n)))})(n),e()},isShortWallpaperColorMessage:Xe,isShortWallpaperUrlMessage:Ye,removeWallpaperBackground:Ke,setWallpaperBackgroundColor:Ze,setWallpaperBackgroundImage:Qe});const tt=e=>{if("0"===L("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")&&Ke())},nt=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"))},rt=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},it=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},ot=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,r=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${r}px`)},at="https://inv-platform-cdn.inventory.schibsted.io",st=5e3,dt="editory/native-creator/native-templates",lt=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:r}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!r)return null;return`${n||at}/editory/editable-configurations/${t.publisherClassName}/${r.toLowerCase()}.json`};const ct=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:r}=e;return Boolean(t&&n&&(null==r?void 0:r.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return s(this,void 0,void 0,function*(){const t=lt(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>s(void 0,void 0,void 0,function*(){const t=lt(e);if(!t)return null;try{return yield ie.get(t,{timeout:st})}catch(e){throw m("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,r,i;const o=((e,t)=>{const{sections:n}=e,r=a(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?v(r,i):r})(t,null!==(i=null===(r=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===r?void 0:r.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>v(t,e))(e,o)}getConfig(e){return s(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 m("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return s(this,void 0,void 0,function*(){var t,n,r,i;if(!this.localSiteConfig)return;if(b(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const o=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===(i=null===(r=this.localSiteConfig.editory)||void 0===r?void 0:r.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==o)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void m("Error fetching updated S3 config, keeping current config",{error:e})}})}},ut=ct.getConfig.bind(ct),pt=ct.resolveUpdatedConfig.bind(ct),vt=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:r}=(e=>{const t=S.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=r},gt=()=>{var e,t;Ke();const n=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),r=[];return n.forEach(e=>{tt(e.id),vt(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),r=null==t?void 0:t.getAttribute("data-probable-width");n&&r&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",r+"px"))})(e.id),e.innerHTML="",e.id=rt(e.id),r.push(e.id)}),null===(t=null===(e=We())||void 0===e?void 0:e.clear)||void 0===t||t.call(e,r),r},ht=()=>{S.setData("wallpaper",{isAvailable:!1}),S.setData("horseshoe",{isAvailable:!1})},mt=e=>s(void 0,void 0,void 0,function*(){const t=yield pt(e);var n;t?(A.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):I(null!=e?e:{})}),yt="0123456789abcdefghijklmnopqrstuvwxyz",ft=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=yt[Math.floor(36*Math.random())]}return t},wt=(e,t)=>{let n=null;return(...r)=>{null===n&&(e(...r),n=setTimeout(()=>{n=null},t))}},bt=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),xt=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})}),Ct="mobile",At="tablet",It="desktop",Et="web_desktop",St="web_phone",Tt="wde",kt="wph",Ot="noGroupedPlacements",Pt=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},jt=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Lt=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:r,pageContext:{deviceType:i}}=A.get(),o=((e,t)=>{var n;const r=null!==(n=e[t])&&void 0!==n?n:[];return t===At&&0===r.length?e[It]:r})(n,i),a=o.filter(jt),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=Pt(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{var t,n,o;const d=new RegExp(`^${e}(_(\\d+))?$`),l=a.filter(({targetId:e})=>e.match(d)),c=(null==r?void 0:r.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,u=s.querySelectorAll(c),p=Array.from(u).filter(({id:e})=>e.match(d)).map((e,t)=>{var n;const r=Nt(e,t,l);if(r.disabled)return m(`Placement ${r.targetId} is disabled - collapsing`),tt(r.targetId),null;const i=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,o=i&&(null===(n=r.finnBlink)||void 0===n?void 0:n.loadOnlyFinnBlink),a=`${e.id}-${ft(6)}`;return e.id=a,e.setAttribute("data-advertory-ad-rendered","true"),i&&e.setAttribute("data-is-finn-blink-placement","true"),o&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&S.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},r),{targetId:a})}),v=p.filter(e=>null!=e);return null!==(o=null===(n=null===(t=We())||void 0===t?void 0:t.enrichPlacementsAfterDiscovery)||void 0===n?void 0:n.call(t,v))&&void 0!==o?o:v});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))})(d)},Nt=(e,t,n)=>{const r=n[t],i=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:o||i},_t=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=A.get(),r=(null==t?void 0:t[n])||{},i=Object.values(r).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=rt(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[r,i]of Object.entries(t))n[r]=e.filter(e=>i.includes(rt(e.targetId)));return n})(e,r),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(rt(e.targetId))))(e,new Set([...s,...i]));return Object.assign(Object.assign(Object.assign({},a),o),{[Ot]:d})},$t="collapseAd",qt="hideAd",Rt="resizeAd",Ft="wallpaperImageUrl",Mt="wallpaperColor",Dt="velvet",Bt=[Rt,Ft,Mt,$t,qt,Dt];let zt;const Ht=e=>{var t,n,r;const i=We();if(!(null===(t=null==i?void 0:i.messageOrigins)||void 0===t?void 0:t.includes(e.origin.trim())))return;const{data:o}=e;if(!o)return;const a=(e=>{if("object"==typeof e)return e;if(Ye(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Ft,wallpaperImageUrl:t}}if(Xe(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Mt,wallpaperColor:t}}if(e.startsWith($t)||e.startsWith(qt)){const t=e.split(":")[1];return{name:$t,targetId:t}}if(e.includes("name")&&Bt.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(o);if(!a)return;if(!a.name||!Bt.some(e=>a.name===e))return;const{name:s,targetId:d,wallpaperImageUrl:l,wallpaperColor:c,cmd:u,size:p}=a;s===Dt&&u&&(u.includes("noScroll")&&(zt=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(u.includes("close")||u.includes("ended"))&&(null==zt||zt(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),s!==$t&&s!==qt||!d||tt(d),s===Rt&&d&&u&&(null===(n=i.resizeCreative)||void 0===n||n.call(i,d,u)),"resizeMediationAd"===s&&d&&p&&(null===(r=i.resizeCreative)||void 0===r||r.call(i,d,p,!0)),s===Ft&&l&&Qe(l),s===Mt&&c&&Ze(c)},Wt=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield bt,yield xt;new IntersectionObserver((t,r)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),r.unobserve(e),r.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Ut=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=A.get(),r={publisher:e,countryCode:t,finnBlink:n},i=e=>{var t,n;nt(e),null===(n=null===(t=We())||void 0===t?void 0:t.render)||void 0===n||n.call(t,e)};return{withAdServerAd:i,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-B5L9LdZe.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void i(e);const{loadFinnBlinkAd:t}=yield import("./index-B5L9LdZe.js");yield t(e,r,i,()=>s(void 0,void 0,void 0,function*(){if(!S.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return et});t(e)}))})}},Vt=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield Wt(e,t,()=>((e,t)=>{var n,r;const i="true"===t.dataset.isFinnBlinkOnlyPlacement;return qe(e)&&i?(m(`loading finn blink ad for blink only placement for ${e}`),void Ut().withFinnBlinkAd(e)):qe(e)?(m(`loading finn blink ad with full ads chain for ${e}`),void Ut().withFullAdsChain(e)):void(null===(r=null===(n=We())||void 0===n?void 0:n.render)||void 0===r||r.call(n,e))})((e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),Kt=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Gt=new Map,Jt=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],Yt=".brandstudio-premium-content-widget",Xt=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),Qt=({adWrapper:e,placementContainer:t})=>{const n=Xt({adWrapper:e,placementContainer:t});var r;null==e||e.style.setProperty("height",`${n}px`),vt(r=t),r.innerHTML=""},Zt=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},en=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=A.get(),r=Jt.includes(n)&&Boolean(t.closest(Yt));const i=r?t.closest(Yt):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!r&&!a||r&&!i)return;if(a)return Zt(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=i;s&&d.contains(s)?Zt(s):d.hasAttribute("style")&&Zt(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},tn=(e,t,n,r,i)=>{var o;const a=performance.now(),s=null!==(o=Gt.get(e))&&void 0!==o?o:0,d=((e,t)=>!!t&&e+t<(new Date).getTime())(n,r)&&t<0;a-s>=r&&d&&(Gt.set(e,a),((e,t)=>{var n,r;const i=null==t?void 0:t.parentElement;i&&t&&Qt({adWrapper:i,placementContainer:t}),null===(r=null===(n=We())||void 0===n?void 0:n.refresh)||void 0===r||r.call(n,[e],{applyReloadKeyword:!0})})(e,i))},nn=(e,t=6)=>{const n=[];for(let r=0;r<e.length;r+=t){const i=e.slice(r,r+t);n.push(i)}return n},rn=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),on=(e,t=0)=>{const n=e.getBoundingClientRect(),r=window.innerHeight;return n.bottom>-t&&n.top<r+t},an=(e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,r=document.querySelector(`#${n}`),i=null==r?void 0:r.parentElement;if(!i||!r)return;en({adWrapper:i,placementContainer:r});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();r&&"true"!==r.dataset.subscribedForRefresh&&(r.dataset.subscribedForRefresh="true",r.dataset.refresh&&((e,t,n)=>{const r=new IntersectionObserver((e,r)=>((e,t,n,r)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:o}=e;t(i.id,o.y,n,r,i)})})(e,tn,t,n),Kt(300));r.observe(e)})(r,a,o))},sn=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=A.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),un(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},dn=(e,t,n)=>{const r=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of r){const r=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==r?void 0:r.requestThreshold;on(i,o)&&r&&(ot(r.targetId),n.length&&i.classList.remove(...n),un([r],t))}},ln=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:r}}=A.get();t&&(e.forEach(({targetId:e})=>{const t=cn(e);t&&(t.dataset.bfCacheRefresh="true")}),r?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&dn(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const r=()=>{window.scrollY>0&&(window.removeEventListener("scroll",r),dn(e,!1,t))};n.persisted&&(rn()?window.addEventListener("scroll",r,{passive:!0}):dn(e,!1,t))})})(e,n))},cn=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},un=(e,t=!1)=>{const n=We();if(!(null==n?void 0:n.refresh))return;const{queryConfig:{batchSize:r=x}={}}=A.get();for(const i of nn(e,r))n.refresh(i.map(({targetId:e})=>e),t?{keepPreviousSizes:i}:void 0)},pn=e=>{const{source:t}=e;return"csm"===t},vn=e=>{const{siteSpecificConfig:t}=A.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},gn=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},hn=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e,{getConsentAsync:i}=z(t,0,r);if(!(yield i()))return;const o=gn("_pulse2data");return o?o.split(",")[9]:void 0}),mn={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},yn=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const r=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=r.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,i).toString()},fn="takeover-displayed",wn="takeover-visit-count",bn=14400,xn=()=>{const e=gn(wn);return e?parseInt(e):0},Cn=()=>{const e=xn(),{takeover:{options:{cookieCapTime:t=bn}={}}={}}=A.get(),n=document.location.hostname;window.document.cookie=`${wn}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},An=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=A.get();return"0"!==L(N)&&("1"===L(N)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=A.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||fn;return"true"===gn(n)})())&&(!t||In()))},In=()=>{const e=xn();return 0===e?(Cn(),!1):1===e},En=(e,t)=>[[1,1],[1920,1080]].some(([n,r])=>n===e&&r===t),Sn=()=>{const{takeover:e}=A.get();return Boolean(null==e?void 0:e.topscroller)},Tn=e=>{const{width:t,height:n}=e;return En(t,n)?mn.SPLASH:ze(e,Ee.VELVET_TAKEOVER)?mn.VELVET:Sn()?mn.TOPSCROLLER:mn.WELCOME_PAGE},kn=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=fn,cookieCapTime:n=bn}={}}={},pageContext:{isMobileApp:r,countryCode:i},tcf:o}=A.get(),a=yield H(o,r,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),On=e=>{var t,n;const r=!!(null===(n=null===(t=A.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return je(e)&&r},Pn=(e,t)=>{var n;if(t===mn.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===mn.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},jn=(e,t)=>{t!==mn.SPLASH?(e=>{var t,n;const r=null===(t=A.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=A.get().takeover)||void 0===n?void 0:n.topscroller;if(!r||i)return;const o=document.querySelector(r),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=A.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),r=document.querySelector(`#${e.targetId}`);if(!n||!r)return;const i=`calc(100svh - ${n.offsetHeight}px)`;r.style.setProperty("height",i,"important")})(e)},Ln=yn([],()=>{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 Nn=Object.freeze({__proto__:null,addTakeoverCookie:kn,adjustTakeoverHeight:jn,canDisplayTakeover:An,getProperWelcomePageConfig:Pn,getTakeoverVariant:Tn,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){On(e)&&(yield kn())}),incrementArticleVisitCount:Cn,isSplashVariant:En,isTopscroller:Sn,scaleAd:Ln,shouldAddTakeoverCookieForNotShownAd:On});const _n={nativeAd:e=>Oe(e)&&!$e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:Pe,fullscreenScroll:ke,topscroller:e=>je(e)&&Sn(),splash:e=>je(e)&&En(e.width,e.height),welcomePage:je,wallpaper:Ne,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:De,hFormat:Be,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Be(e)&&!De(e),topboard:e=>e.targetId.startsWith("topboard")&&!je(e),widescreen:Me,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")&&!Re(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:Re,midboard:Fe},$n=({adObj:e,preferredTestIdData:t})=>{var n,r;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const o=null===(r=document.querySelector(`#${i}`))||void 0===r?void 0:r.parentElement;if(!o)return;if(((e,t)=>{var n,r,i,o;const a=null===(o=null===(i=null===(r=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===r?void 0:r.tags)||void 0===i?void 0:i[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(i,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,r;for(const[i,o]of Object.entries(_n))if(o(e)){if("nativeAd"===i){const o="default";t.dataset.testid=`${i}-${null!==(r=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==r?r:o}`;break}t.dataset.testid=i;break}})(e,o)},qn=e=>{var t;return(null===(t=Object.entries(_n).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Rn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=A.get(),n=X(t),r=e[`${n}-targetid`],i=r?rt(r[0]):"";return Object.assign(Object.assign({},e),r&&{[`${n}-targetid`]:[i]})},Fn=e=>{const{pageContext:{countryCode:t}}=A.get(),n=X(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"]})},Mn=e=>{if("true"!==L("scrollToFirstInvCode"))return;const t=L("ast_override_inv_code");if(!t)return;const n=t.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===n),i=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);i&&i.scrollIntoView({behavior:"smooth",block:"start"})},Dn=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});function Bn(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}Bn(".advertory-brandmetrics-survey{width:100%}");const zn="advertory-brandmetrics-survey",Hn=()=>s(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),Wn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Un="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Vn=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,r)=>{var i;r||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Kn={pageContext:{publisher:"aftonbladet",countryCode:F.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"}},Gn={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Jn=e=>(null==e?void 0:e.parent)?[...Jn(e.parent),e.shortPath||"unknown"]:[],Yn=(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]=Jn(e);return Gn[n]||"ovrigaavdelningar"})(e)}_{position}`,Xn={aftonbladet:Kn},Qn={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Yn(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Jn(e).join(":")}}},Zn=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},er=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),tr="se-generic",nr="aa-sch",rr="kv_",ir="pause",or="{deviceType}",ar="{position}",sr="afp_",dr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),lr="1-1",cr="16-9",ur="3-4",pr="9-16",vr="responsive",gr={[lr]:1,[cr]:1.78,[pr]:.56,[vr]:1},hr={[lr]:1,[cr]:1.78,[ur]:1.33,[pr]:.56},mr=(e,t,n,r)=>{const{invCode:i="",videoOverlayInvCode:o}=null!=e?e:{},a=It===n?Tt:kt,s=i.replace(or,a);return(e,n)=>{if(e===ir)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(ar,ir).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&dr.has(e)){return(r&&o?o:t.frontpageInvCodeTemplate).replace(or,a).replace(ar,e)}return s.replace(ar,e)}},yr=()=>{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"},fr=e=>e===Ct,wr=853,br=767,xr=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[r,i])=>{const o=Math.abs(e[n]-t);return Math.abs(i-t)<o?r:n},n[0][0])},Cr=()=>{var e,t;const n=jwplayer().getContainer(),r=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return r&&"number"==typeof r.offsetWidth&&"number"==typeof r.offsetHeight&&0!==r.offsetHeight?r.offsetWidth/r.offsetHeight:1},Ar=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},Ir=()=>{const e=null!==(t=Ar()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Ar()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Er=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Sr=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:r,countryCode:i}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:i,publisher:r,pageType:"front",deviceType:e.deviceType},d=(yield H(n,e.isApp,i,"video"))?"1":"0",l=yield Vn(),c=yield Ce(i),u=yield hn({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>xr(hr,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?xr(gr,Number(m.toFixed(2))):vr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${nr}-country_code`]:i,[`${nr}-publisher`]:r,[`${nr}-supply_type`]:(y=e.deviceType,y===It?Et:St),[`kw_${nr}-page_type`]:"collection",[`${nr}-page_type`]:"collection",[`${tr}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${tr}-page`]:"index",[`${tr}-page`]:"index",[`${tr}-screenheight`]:String(window.screen.height),[`${tr}-screenwidth`]:String(window.screen.width),[`${tr}-viewportheight`]:String(a),[`${tr}-viewportwidth`]:String(o),[`${tr}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${tr}-mobile-os`]:yr(),[`${tr}-audience`]:void 0,[`${tr}-externalid_src`]:Ir(),[`${tr}-tags`]:e.tags,[`${tr}-articleid`]:p,"article-id":p},yield Q(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${tr}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Er()).some(e=>e.includes(rr))&&(()=>{const e=Er(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(rr)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Tr=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],kr=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],Or=["external_uid","gdpr","gdpr_consent","eids","article-id"],Pr=(e,t)=>{const n=[...Tr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Or.includes(e)?e:`kw_${e}`,t]))},jr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>kr.includes(e))),Lr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r,i,o;const a=(e=>{var t;Xn[e]||y(`[video] No config found for publisher "${e}"`);return null!==(t=Xn[e])&&void 0!==t?t:Kn})(e.publisher),s=(e=>{var t;return null!==(t=Qn[e])&&void 0!==t?t:Qn.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(r=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===r?void 0:r.toString(),c=e.assetId===l,u=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Sr({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Cr(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:Zn(e.startMode)}}),Nr=(e,t)=>{const{siteConfig:n,siteVideoParams:r,isUserPresentOnFrontPage:i,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=r||{},l=mr(r,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(sr)?`${sr}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":er.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Pr(o,n)),jr(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},_r=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield Lr(e,t);return Nr(n,e)}),$r={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]}]},qr={no:"NOK",se:"SEK"},Rr={no:"no",se:"sv"};class Fr{buildFetchObject(e,t,n,r){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:o}=r,{invCode:a,xandrPlacementId:s}=e,d=yield Vn(),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($r),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:ft(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Rr[i]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield hn(r),ext:{consent:d.gdpr_consent||"",eids:xe(i)}},at:1,cur:[qr[i]],source:{tid:ft(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,r){return s(this,void 0,void 0,function*(){try{m("Starting fetching Studio ad from Xandr:",Un);const i=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Un}?${a.toString()}`:Un,d=yield this.buildFetchObject(e,t,n,r),l=yield ie.post(s,i,d);return m("Fetch operation completed successfully.",l),l}catch(e){m("Error during fetch operation:",e)}return null})}}const Mr=0,Dr=3,Br=e=>`externalImpId:'${e}'`,zr=(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,Hr=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:r}=A.get(),{targetId:i,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||An())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],r=Array.isArray(n)?n.filter(e=>e!==mn.TOPSCROLLER):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":r}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:i})})(e),g=Object.assign({invCode:d,sizes:o,targetId:i,keywords:zr(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),h=(e=>{var t,n;const r=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 r?(m("Pulse state pageViewId is:",r),r):(m("Pulse state does not contain field pageViewId or it is empty"),"")})(r);n&&h&&(m("External Impression ID assigned to defineTag:",Br(h)),g.externalImpId=Br(h));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,r])=>((null==e?void 0:e.includes(n))&&(t[n]=r),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{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"))&&(g.native=y),g},Wr=e=>!e.includes("takeover")||An(),Ur=(e,t,n,r)=>{const i=t.parentElement;if(!i)return;const o=e?`-${e}`:"",a=r?`__${r}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(s),i.classList.add(d),t.dataset.adType=n},Vr={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Kr=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},Gr=(e,t,n)=>{var r,i,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(i=null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),Kr(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},Jr=(e,t,n)=>{var r;const i=t.replace(/-[^-]*$/,"");return null===(r=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===r?void 0:r.invCode},Yr=(e,t)=>{new IntersectionObserver((e,n)=>{for(const r of e)if(r.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Xr{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Yr(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class Qr extends Xr{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return Jr(e,this.adObj.targetId,t)}buildAdObject(){const e=Qr.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var Zr=Object.freeze({__proto__:null,XandrAdTracker:Qr});const ei=(e,t)=>{ti(e,t),ri(e,t)},ti=(e,t)=>{var n,r;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(r=null==t?void 0:t.clickLinkSelector)&&void 0!==r?r:"a.ad-link";(null==i?void 0:i.querySelectorAll(o)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,r,i,o,a,s;for(const t of null!==(r=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==r?r:[])oi(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(o=null==t?void 0:t.pulse)||void 0===o?void 0:o.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(s=t.deviceType)&&void 0!==s?s:It};new Qr({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},ni=e=>{var t;const{native:{impressionTrackers:n}={}}=e,r=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;r||!i?null==n||n.forEach(ii):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},ri=(e,t)=>{var n;let r=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:It])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!r)for(const n of t)if(n.isIntersecting){r=!0,ni(e),c.disconnect();break}},d);c.observe(i)},ii=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?oi(e):window.navigator.sendBeacon(e)},oi=e=>{ie.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},ai=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:[]}),si=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r;const{pageContext:{deviceType:i},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[i],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void m(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Kt(s)).observe(d)});const{prepareTag:l}=A.getHandlers(),c=S.getData("alertoryConfigKeywords"),u=null!==(r=l(Hr(e)).keywords)&&void 0!==r?r:{},p=new Fr,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const r=n===Ct?t.mobileHTML:t.desktopHTML;if(r){if(t.adType===Mr){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>${r}`,e.appendChild(n)}else e.innerHTML=r;e.classList.add("ad-loaded")}})(d,v,i),v.adType===Dr&&(Ur(t.pageContext.publisher,d,Vr.NATIVE_AD,t.pageContext.pageType),ei({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:i,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,r)=>{var i,o,a;let s;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==r?void 0:r.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),Gr(e,n,Number(null==r?void 0:r.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),di=(e,t)=>{e.forEach(e=>si(e,t).catch(e=>{m("Failed to handle server-side ad:",e)}))},li=(e,t,n,r)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:r,pageType:o}=t,a=r&&Object.values(i).includes(r);n&&a&&Ur(r,e,Vr.NATIVE_AD,o)})(o,n),r())},ci={"no-aftenposten":i.AFTENPOSTEN,"no-stavangeraftenblad":i.SA,"no-bergenstidende":i.BT},ui=(()=>{const e=new Map,t=new Map;return{getTemplate:t=>e.get(t),setTemplate:(t,n)=>{e.set(t,n)},deleteTemplate:t=>{e.delete(t)},getAdjustment:e=>t.get(e),setAdjustment:(e,n)=>{t.set(e,n)},clear:()=>{e.clear(),t.clear()}}})(),pi=(e,t,n)=>{if(!n)return Promise.resolve(null);const r=((e,t,n)=>`${null!=n?n:at}/${dt}/${e}/adjustments/${t}.json`)(e,n,t),i=ui.getAdjustment(r);if(i)return i;const o=ie.get(r,{timeout:st}).catch(e=>(m("Failed to fetch native template adjustment",{error:e,url:r}),null));return ui.setAdjustment(r,o),o},vi=(e,t,n)=>s(void 0,void 0,void 0,function*(){const r=((e,t)=>`${null!=t?t:at}/${dt}/${e}/default.json`)(e,n);let i=ui.getTemplate(r);i||(i=ie.get(r,{timeout:st}).catch(e=>{throw m("Failed to fetch native template",{error:e,url:r}),ui.deleteTemplate(r),e}),ui.setTemplate(r,i));const o=pi(e,n,t),[a,s]=yield Promise.all([i,o]);return{schema:a,adjustment:s}}),gi="data-ad-video",hi="viewable",mi="adClick",yi=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),r=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(r){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},fi=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),wi=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const r=document.createElement("script");r.id=e,r.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",r.async=!0;try{r.src=r.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(r,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),bi={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-CW92yIpD.js")})}})}},xi=e=>s(void 0,[e],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const r=yield wi(e);((e,t)=>{null==e||e.forEach(e=>{bi[e](t)})})(t),r.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(r,t)}),r.on(hi,e=>{const{viewable:t}=e;t?r.play():r.pause()}),n&&r.on(mi,()=>{window.open(n,"_blank")}),e.repeat&&r.on("pause",()=>{r.play()})}),Ci={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},Ai=({container:e,native:t,type:n,publisher:r})=>{const i=e.querySelector(`[${gi}]`),{video:o,image:a,clickUrl:s=""}=t;if(!i||!(null==o?void 0:o.content))return;const{pluginsNames:d,videoLoop:l}=(e=>{var t;return null!==(t=Ci[e.toLowerCase()])&&void 0!==t?t:Ci.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({id:e,nodeId:t,poster:n,tagURL:r,publisher:i="",productTag:o="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:r}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},fi(e)?e:{}),{provider:Object.assign(Object.assign({},fi(null==e?void 0:e.provider)?e.provider:{}),{productTag:o})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:yi(o.content,s),publisher:r,videoLoop:l});xi({playerConfig:p,clickUrl:s,pluginsNames:d})},Ii=(e,t)=>{const{adjustmentOverrides:n}=e,r=a(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},r),t.overrides&&{adjustmentOverrides:v({},t.overrides)})},Ei="desktop",Si="mobile",Ti="container",ki="text",Oi="image",Pi="cogwheel",ji="video",Li=e=>{if(e)return e===Ct?Si:Ei},Ni=(e,t,n)=>{var r,i,o,a,s,d,l,c,u,p,v,g,h;const m=t?null===(r=e.overrides)||void 0===r?void 0:r[t]:void 0,y=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],f=t?null===(o=null==n?void 0:n[t])||void 0===o?void 0:o[e.id]:void 0;if(null!==(d=null!==(s=null!==(a=null==f?void 0:f.hidden)&&void 0!==a?a:null==y?void 0:y.hidden)&&void 0!==s?s:null==m?void 0:m.hidden)&&void 0!==d?d:e.hidden)return null;const w=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==y?void 0:y.styles),null==f?void 0:f.styles),b=null!==(u=null!==(c=null!==(l=null==f?void 0:f.tag)&&void 0!==l?l:null==y?void 0:y.tag)&&void 0!==c?c:null==m?void 0:m.tag)&&void 0!==u?u:e.tag,x=null!==(g=null!==(v=null!==(p=null==f?void 0:f.text)&&void 0!==p?p:null==y?void 0:y.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,C=null===(h=e.children)||void 0===h?void 0:h.map(e=>Ni(e,t,n)).filter(e=>null!==e),A={id:e.id,tag:b,type:e.type,name:e.name,styles:w,connections:e.connections};return void 0!==x&&(A.text=x),void 0!==C&&(A.children=C),A},_i=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"""))(t)}`).join(";"),$i=(e,t)=>{const n=e[t];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class qi{constructor(e,t=!1){this.tag=e,this.voidElement=t,this.attributes=new Map,this.content=""}attr(e,t){return t&&this.attributes.set(e,t),this}children(e){return this.content=e,this}build(){const e=[...this.attributes].map(([e,t])=>` ${e}="${t}"`).join("");return this.voidElement?`<${this.tag}${e}>`:`<${this.tag}${e}>${this.content}</${this.tag}>`}}const Ri=(e,t,n="")=>{var r;return(null===(r=e.connections)||void 0===r?void 0:r.length)?((e,t)=>{const n=[];for(const{properties:r}of e)for(const e of r){const r=$i(t,e);r&&n.push(r)}return n.join(" ")})(e.connections,t):n},Fi=(e,t,n,r)=>{var i;const{tag:o,styles:a}=e,s=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Di(e,t,n,!1)).join(""),d=new qi(o);return r(d),d.attr("href","a"===o?Ri(e,t):"").attr("style",_i(a)).children(s).build()},Mi={[Ti]:(e,t,n,r)=>{var i;const o=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Fi(e,t,n,t=>{r&&t.attr("class",`advertory-${o}-ad-native-${e.name.toLowerCase()}`)})},[Pi]:(e,t,n)=>Fi(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[ki]:(e,t)=>{var n;return new qi(e.tag).attr("style",_i(e.styles)).children(Ri(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Oi]:(e,t)=>new qi("img",!0).attr("style",_i(e.styles)).attr("src",Ri(e,t)).build(),[ji]:(e,t)=>"video"===e.tag&&Ri(e,t)?new qi("div").attr(gi,"true").attr("style",_i(e.styles)).build():""},Di=(e,t,n,r=!0)=>{const i=Mi[e.type];return i?i(e,t,n,r):""},Bi=e=>(t,{publisher:n,containerId:r,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:r,publisher:i,containerId:o})=>{const a=r?Ii(e,r):e,s=Ni(a.root,n,a.adjustmentOverrides);return s?Di(s,t,{breakpoint:n,publisher:i,containerId:o}):null})({config:e,nativeData:t,breakpoint:Li(i),publisher:n,containerId:r}),zi="[data-carousel-track]",Hi=({image_link:e,title:t})=>{const n=document.createElement("figure"),r=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),r.className="slide-image",r.src=e,r.alt=t,r.loading="lazy",r.draggable=!1,n.appendChild(r),n},Wi=e=>Boolean(e.title&&e.link&&e.image_link),Ui=(e,t)=>s(void 0,void 0,void 0,function*(){const n=e.querySelector(zi);var r;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>s(void 0,void 0,void 0,function*(){try{const t=yield ie.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(y("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return y("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const o=i.items.filter(Wi);if(!o.length)return void y("Carousel feed has no usable items");yield import("./styles-kHuAMSyr.js");const a={title:(r=e).querySelector("[data-product-title]"),description:r.querySelector("[data-product-description]"),price:r.querySelector("[data-product-price]"),link:r.querySelector("[data-product-link]")};n.replaceChildren(...o.map(Hi)),(({root:e,onChange:t})=>{var n;const r=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(zi),o=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!r||!i||!o.length)return;const a=o.length,s=[o[a-1].cloneNode(!0),...o,o[0].cloneNode(!0)];let d=1,l=null,c=0,u=!1;const p=e=>{const t=s[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,o=(r.clientWidth-t)/2-d*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${o+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{d=e,p(n),s.forEach((e,t)=>e.classList.toggle("is-active",t===d)),null==t||t((d-1+a)%a)},g=()=>{0===d?v(a,!1):d===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*r.clientWidth?-Math.sign(c):0;l=null,c=0,v(d+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...s),i.addEventListener("transitionend",e=>{e.target===i&&g()}),r.addEventListener("pointerdown",e=>{g(),l=e.clientX,r.setPointerCapture(e.pointerId),p(!1)}),r.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),r.addEventListener("pointerup",h),r.addEventListener("pointercancel",h),r.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:r},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),r&&(r.href=i.link)})(a,o[e])}),m("Carousel mounted",{items:o.length})}catch(t){y("Carousel could not be rendered",t),e.replaceChildren()}else y("Carousel feed url is missing or not a valid https url",{url:t})}),Vi="default",Ki=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r,i,o,a,s;const d=document.querySelector(`#${e.targetId}`),{native:l}=e;if(!l||!d)return;const{desc2:c}=l,u=null==c?void 0:c.toLowerCase(),p=((e,t)=>{const n=$(_),r=new URLSearchParams(window.location.search).get(_),i=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))&&!["shopping"].includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=c?c:Vi),v=(null!=p?p:u)||Vi,g=(null===(n=l.video)||void 0===n?void 0:n.content)?`${v}-video`:v,h=(e=>{var t;if(e)return null!==(t=ci[e])&&void 0!==t?t:e})(null===(r=t.pageContext)||void 0===r?void 0:r.publisher);try{const{schema:n,adjustment:r}=yield vi(g,h,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),c=r?Ii(n,r):n,u=Bi(c),p={publisher:h,pageType:null===(o=t.pageContext)||void 0===o?void 0:o.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a",pulse:t.pulse},m=u(l,p),{enabled:y=!0}=null!==(s=t.nativeTrackingConfig)&&void 0!==s?s:{};li(e.targetId,m,p,()=>{Kr(e.targetId),Ai({container:d,native:l,type:v,publisher:h}),y&&ei(e,p)})}catch(e){m("Failed to render native ad from config",{error:e})}}),Gi="explicit",Ji="dom-discovered",Yi=e=>`${Math.max(0,Math.round(e))}px`,Xi=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},Qi=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const r=e[t];n.style.setProperty(t,r)}},Zi=()=>{const{pageSectionsSelectors:e}=A.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Xi(t);Qi({"--advertory-header-height":Yi(n)})})(e.header)},eo=()=>{const e=We();if(!e)throw new Error("Ad server driver is not set, pass a driver to init()");return e};let to=[];const no=["takeover","wallpaper"],ro=(e,t)=>{var n,r;const{initNativeAd:i}=A.getHandlers();null==i||i(e,null!==(r=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==r?r:A.get())},io=e=>{const t=(e=>{var t;const n=S.getData("alertoryConfigKeywords"),{queryConfig:r,placements:i,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:y}=e,f=null!==(t=null==r?void 0:r.batchSize)&&void 0!==t?t:x;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:i,tcf:o,queryConfig:Object.assign(Object.assign({},r),{batchSize:f})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.18.0",siteConfig:e,renderNativeAd:ro,alertoryConfig:t}},oo=()=>s(void 0,void 0,void 0,function*(){yield eo().setTargeting()}),ao=e=>s(void 0,void 0,void 0,function*(){var t,n,r,i;const o=eo(),a=null!==(n=yield null===(t=o.adjustPlacementsBeforeRequest)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:e;null===(r=o.definePlacements)||void 0===r||r.call(o,a),yield null===(i=o.requestPlacements)||void 0===i?void 0:i.call(o,a)}),so=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:r}}=A.get(),{requestThreshold:i,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[r];a&&(m("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:s}),yield Vt(a,null!=i?i:s)),a&&(null==o?void 0:o.scroll)&&(m("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=o.scroll.toString())}),lo=e=>e.some(({targetId:e})=>no.some(t=>e.includes(t))),co=e=>s(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,r]=(e=>e.reduce(([e,t],n)=>{var r;return(null===(r=null==n?void 0:n.finnBlink)||void 0===r?void 0:r.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=x}={},pageContext:{deviceType:r}}=A.get(),i=_t(e),o=Object.keys((null==t?void 0:t[r])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...nn(s,n)]})(r);for(const e of i)lo(e)?(m("core loadAds without lazy loading",{placementsToLoad:e}),yield ao(e)):e.length&&(m("core loadAds with lazy loading",{placementsToLoad:e}),yield uo(e));const{finnBlink:o}=A.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-B5L9LdZe.js");yield e(n)}}),uo=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=A.get(),r=[];if(!t)return m("lazy load is not enabled",{placements:e}),void(yield ao(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{m("lazy load is enabled - handler start",{loadedTargetIds:r,placements:e});const i=e.every(e=>r.includes(e.targetId)),o=e.map(e=>e.targetId);!i&&r.push(...o),!i&&ao(e),m("lazy load is enabled - handler stop",{loadedTargetIds:r,placements:e,arePlacementsLoaded:i,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(m("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),po=()=>s(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>s(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=>s(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=to.find(({targetId:t})=>t===e.targetId);t&&(yield so(t,e),to=to.filter(e=>e.targetId!==t.targetId))})),yield eo().bindEvents(e)}),vo=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r,i,o;if(m(`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 m("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:a,disableAds:s,reloadExistingAds:d,renderFinnBlinkPlacements:l,contextSelector:c}=null!=t?t:{},u=Object.keys(null!=e?e:{}).length>0;let p=[];if(s)return gt(),to=[],ht(),[];if(a&&(p=null!==(r=gt())&&void 0!==r?r:[]),a&&!u)return[];if(a&&u&&(to=[],ht()),d&&(gt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{nt(e.id)})),yield mt(e),(null==e?void 0:e.pageSectionsSelectors)&&Zi(),yield oo(),eo().capabilities.tagDefinition===Ji)return m("Advertory update - dom-discovered driver finds its own placements, requesting the page"),yield null===(o=(i=eo()).requestPage)||void 0===o?void 0:o.call(i),to;const{clientSidePlacements:v,serverSidePlacements:g}=ai(Lt(c)),h=[...v,...g];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>rt(e)));e.filter(e=>n.has(e)).forEach(e=>nt(e))})(p,h),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>rt(e)));e.filter(e=>!n.has(e)).forEach(e=>it(e))})(p,h);let y=v;return l&&(y=y.filter(e=>qe(e.targetId))),di(g,A.get()),y.length>0&&(to=[...to,...y.map(e=>Object.assign({},e))],eo().capabilities.refresh&&(sn(y),ln(y)),yield co(y)),to}),go=(e,t,n)=>s(void 0,void 0,void 0,function*(){var r,i;He=n,A.set(e),A.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:o,kilkaya:a,rightColumnSplit:d,finnBlink:l}=e;S.initialize(),window.addEventListener("message",Ht,!1);const[c]=yield Promise.allSettled([n.setup(),me(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=A.get();(yield H(t,n,r,"gpt-endpoint"))&&(yield Ie(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:r,countryCode:i}}=A.get(),{getConsentAsync:o}=z(n,0,i),a=yield o();if(e&&t&&a){if(yield Ie(t),document.querySelector(`.${zn}`))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(zn)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),U(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=A.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ie(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(m("Driver has been set up"),null==o?void 0:o.enabled){const{loadNorstat:e}=yield import("./index-DS_3fMAL.js");yield e()}if(m("Libraries have been loaded and trackers have been set"),Zi(),yield po(),yield oo(),m("Page options have been set"),io(e),m("Advertory is setup on window"),n.capabilities.tagDefinition===Ji)return yield null===(r=n.requestPage)||void 0===r?void 0:r.call(n),void m("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=ai(Lt());if(to=u,di(p,e),n.capabilities.refresh&&(sn(to),ln(to)),yield co(to),m("Ads has been loaded",to),Mn(to),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-B5L9LdZe.js");yield t(null===(i=null==e?void 0:e.pageContext)||void 0===i?void 0:i.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield import("./index-DUL7FQvO.js");t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield import("./index-D8Du6qKy.js");yield t(e)}}),ho=(e,t,n)=>s(void 0,void 0,void 0,function*(){m(`Received configuration passed to Advertory: ${JSON.stringify(e)}`),yield((e,t,n)=>s(void 0,void 0,void 0,function*(){var r,i;const{initConsentManager:o,getConsentAsync:a}=z(e.tcf,null===(r=e.pageContext)||void 0===r||r.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),s=yield ut(e);yield Hn(),yield Dn(o),yield Dn(a),m("TCF resolved successfully"),yield go(s,t,n),m("Run function resolved successfully")}))(e,t,n)}),mo={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"}},yo=["sponsor","seamless"],fo=["shopping"],wo=(e,t,n,r)=>{var i;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:C,customBody5:A,customIcon1:I,customIcon2:E,customDisplayUrl1:S,customDisplayUrl2:T}=e,k=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:k(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=yo.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=r.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return k(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=u?u:g)&&void 0!==i?i:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=C?C:"",customBody5:null!=A?A:"",logo2:k(E),previewVideoSrc:null!=S?S:"",feedUrl:null!=T?T:""},t)},bo=(e,t)=>{const n=$(_),r=new URLSearchParams(window.location.search).get(_),i=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))&&!fo.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},xo=(e,t,n,r)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:r,pageType:o}=t,a=r&&Object.values(i).includes(r);n&&a&&Ur(r,e,Vr.NATIVE_AD,o)})(o,n),r())},Co=(e,t,n)=>{var r;const i=((e,t,n)=>{var r;const{displayTemplates:i,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(r=bo(e.targetId,l))&&void 0!==r?r:c,p=mo[t.language||F.NO],v=wo(s,p,d,t);return(s.video?o[u]:i[u]||i.default)(v,t)})(e,t,n);xo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&ei(e,t)});const o=document.querySelector(`#${e.targetId}`);o&&Ui(o,null===(r=e.native)||void 0===r?void 0:r.customDisplayUrl2)},Ao=e=>(t,n)=>{var r;const{targetId:i}=t,o=document.querySelector(`#${i}`);if(!o)return;const a=e.getOptions(null!=n?n:{});Co(t,a,e.templates),null===(r=e.postProcess)||void 0===r||r.call(e,t,o)},Io=/_\d+$/,Eo=e=>e.replace(Io,""),So=()=>{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};class To{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const ko=9826;class Oo{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=A.get();if(t){return{"aa-sch-supply_type":`app_${e===Ct?"phone":At}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=gn("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield hn(A.get())})}isTrackingForbidden(){return s(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=ko}={}}=A.get();return"true"===L("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=A.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get(),{getConsentAsync:r}=z(e,0,n);return{"aa-sch-cmp_advertising":(yield r())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=A.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 Po=new Oo;function jo(e=!1){var t,n;const r=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=yr();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:r.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Po.prepare.bind(Po);const Lo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function No(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Lo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class _o extends Oo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=A.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=A.get(),{OS:n,isHybridApp:r}=jo(t);return{"no-sno-apptype":n&&e&&r?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return No(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:r}}=A.get(),i=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":`${i.split("_").pop()||i}_${"article"===r?"article":"front"}`}}}const $o=new class extends _o{prepare(e){return s(this,void 0,void 0,function*(){var t,n,r,i,o,a,s;const d=A.get(),l=null!==(r=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},c=null!==(a=null===(o=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new To;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Q(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(fe()).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({},ye(F.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},qo=$o.prepare.bind($o);class Ro extends Oo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=A.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return{width:e||n||0,height:t||r||0}}(),t={width:null!==(r=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==r?r:0,height:null!==(o=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==o?o:0};var n,r,i,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=A.get(),{appMode:t,mobileOS:n}=jo(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:r}}=A.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"===r?"article":"front"}`}}}const Fo=new class extends Ro{prepare(e){return s(this,void 0,void 0,function*(){var t,n,r,i,o,a;const d=A.get(),l=null!==(r=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},c=null!==(a=null===(o=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new To;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Q(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(fe()).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"===gn("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({},ye(F.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Mo=Fo.prepare.bind(Fo),Do=[];let Bo=e=>{Do.push(e)};const zo=e=>{Bo(e)},Ho="ad-loaded",Wo="disable-cogwheel",Uo={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},Vo=e=>{const{apntag:t,bus:n}=e,{siteEvents:r,initNativeAd:i}=A.getHandlers(),o=Object.assign(Object.assign({},Uo),r),a=[];return{adRequested:()=>{n.emit("adRequested"),o.adRequested()},adAvailable:e=>s(void 0,void 0,void 0,function*(){var t,r,a,s,d,l;m("core adAvailable start",{adObj:e,isFullscreenScrollAd:ke(e),isFinnBlink:qe(e.targetId),isNativeAd:Oe(e),isMediation:pn(e),isTakeoverAd:je(e),isCollapseAd:_e(e),isWallpaperAd:Ne(e)});const c=null===(a=null===(r=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===r?void 0:r.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(pn(e)&&c&&(null===(s=c[1])||void 0===s?void 0:s.rtb)&&(e.banner=null===(l=null===(d=c[1])||void 0===d?void 0:d.rtb)||void 0===l?void 0:l.banner),ke(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return Aa});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:v}=A.get();if(Me(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-fF0V2I_V.js");e()}if(ke(e)&&!qe(e.targetId)){m("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 Aa});t(e,v)}if(!Oe(e)||pn(e)||qe(e.targetId)||null==i||i(e,A.get()),je(e)&&!_e(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-DEd1G3aM.js");t(e.targetId),yield n(e)}if(Ne(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return et});t(()=>zo(()=>window.apntag.showTag(e.targetId)),p),S.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&S.setData("horseshoe",{isAvailable:!0}),o.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),m("core adAvailable stop",{adObj:e,isFullscreenScrollAd:ke(e),isFinnBlink:qe(e.targetId),isNativeAd:Oe(e),isMediation:pn(e),isTakeoverAd:je(e),isCollapseAd:_e(e),isWallpaperAd:Ne(e)})}),adLoaded:e=>s(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:r,wallpaper:s,adScaleConfig:d,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=A.get(),v=document.getElementById(e.targetId);if(qe(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-Dcpm5emQ.js");t(e)}if(a.includes(e.targetId)&&Oe(e)&&(null==i||i(e,A.get()),$n({adObj:e})),!a.includes(e.targetId)&&pn(e)&&a.push(e.targetId),_e(e)&&tt(e.targetId),je(e)){const{modifyTakeoverIframe:n}=yield import("./index-DEd1G3aM.js");n(t,e.targetId)}if((e=>ze(e,Ee.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-ChmcSFS1.js");t(e)}if((e=>ze(e,Ee.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-ChmcSFS1.js");t(e)}if(Pe(e)){const{applyFullwidthFormat:t}=yield import("./index-ChmcSFS1.js");t(e)}an(e,n),(null==r?void 0:r.clearProbableDimensionsEnabled)&&it(e.targetId);if(S.getData("horseshoe").isAvailable&&(null==s?void 0:s.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return et});t(e.targetId)}if(null==d?void 0:d.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-DoPgNVgH.js");t(e),n(e)}if(o.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return Zr}),n=new t(A.get(),e);n.trackLoad(),n.trackImpression()}Kr(e.targetId),v&&(v.classList.add(Ho),(e=>{var t,n;const{pageSectionsSelectors:r}=A.get(),i=null==r?void 0:r.mainFirstColumn,o=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),$n({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const r=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;r&&((e,t)=>{const{height:n,width:r,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&r&&(t.dataset.adSizes=`[${r},${n}]`)})(e,r)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:qn(e)}}))}),adNoBid:e=>s(void 0,void 0,void 0,function*(){if(tt(e.targetId),je(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Nn});yield t(e)}o.adNoBid(e)}),adError:(e,t)=>s(void 0,void 0,void 0,function*(){if(je(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Nn});yield e(t)}o.adError(e,t)}),adCollapse:()=>{o.adCollapse()},adRequestFailure:e=>s(void 0,void 0,void 0,function*(){tt(e.targetId),o.adRequestFailure(e)}),adBadRequest:e=>s(void 0,void 0,void 0,function*(){tt(e.targetId),o.adBadRequest(e)}),adLoadedMediated:e=>o.adLoadedMediated(e),adNoBidMediated:e=>{o.adNoBidMediated(e)}}},Ko=e=>{const{targetId:t,allowedFormats:n}=e,r=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(cn(t)),i=(e=>1===e[0]&&1===e[1])(r),o={sizes:[r],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(o.native=void 0),o},Go=()=>(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),Jo=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Yo=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:r=!1}={},pageContext:{countryCode:i}}=A.get(),o=[`${X(i)}-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",...r?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},Xo="advertory-fullscreen-scroll",Qo="advertory-fullscreen-scroll-wrapper",Zo="fullscreen-scroll-in-screen",ea="in-screen",ta=e=>e.includes("snoap.no"),na=e=>{var t,n,r,i,o;return!!(null===(o=null===(i=null===(r=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===r?void 0:r.adResponse)||void 0===i?void 0:i.ads[1])||void 0===o?void 0:o.rtb)},ra=yn([],()=>{const e=({width:e,height:t})=>{var n;const r=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!r)return;const{clientWidth:i,clientHeight:o}=r,a=e/i,s=t/o;r.style.transform=`scale(${a},${s})`,r.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}),ia=e=>{const t=yn([],()=>{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 r=n.contentDocument.createElement("style");r.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(r),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},oa=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},aa=[],sa={},da=(e,t)=>{var n;const r=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>la(e,r),{}),o=ua(e);i.observe(e),r&&(sa[o]=ga(e,null==t?void 0:t.options))},la=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const r=ua(e);n?(ca(r,n),pa(e,r,t)):(ca(r,n),va(e,r,t))})},ca=(e,t)=>{var n,r;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const o=t?"showFullscreen":"hideFullscreen";null===(r=i.contentWindow)||void 0===r||r.postMessage(`advertory:${o}-${e}`,"*")},ua=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},pa=(e,t,n)=>{e.classList.add(ea),document.body.classList.add(Zo),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),aa.includes(t)||aa.push(t),n&&window.addEventListener("scroll",sa[t],{passive:!0})},va=(e,t,n)=>{aa.includes(t)&&(n&&window.removeEventListener("scroll",sa[t]),document.body.classList.remove(Zo),e.classList.remove(ea),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},ga=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:r=[".skyscraper_r"],headerZIndex:i=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),r.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&ha(e,o,i,0),a.length&&ha(e,a,i,40)}},ha=(e,t,n,r)=>{const i=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-r:(o+t-(a+i))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};Bn('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 ma="left";let ya=null;const fa=(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=`(${ra})()`,e+t.outerHTML})(n),n=oa(n),n=(e=>{if(ta(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=ia(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ta(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)),ta(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)),na(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},wa=()=>{ya=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,r=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${r}px`)},ba=()=>{ya||(ya=window.requestAnimationFrame(wa))},xa=(e,t)=>{var n,r,i,o,a;const{pageContext:{countryCode:s,deviceType:d}}=A.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:r=1302,backgroundColor:i="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=r/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(r=null==c?void 0:c.overlayStyles)&&void 0!==r?r:{},d);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;da(p,t),u.className=Xo,da(p,t),u.className="advertory-fullscreen-scroll";const v=ze(e,Ee.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=Qo,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:mo[s].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===ma&&(u.dataset.moveCogwheelToTheLeft="true"),ba(),window.addEventListener("resize",ba),null===(o=window.visualViewport)||void 0===o||o.addEventListener("resize",ba),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",ba)},Ca=e=>{if(!(null==e?void 0:e.classList.contains(Xo)))return;e.classList.remove(Xo),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(Qo))&&(t.classList.remove(Qo),t.classList.remove(ea))};var Aa=Object.freeze({__proto__:null,createFullscreenScrollAd:xa,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,r=na(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,r=na(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[r].rtb;i&&(i.banner.content=t)})(e,fa(t,e))},undoFullscreenScrollContainer:Ca});const Ia=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:r,deviceType:i},fullscreenScroll:o,appearanceConfig:a,placements:s}=A.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=A.getHandlers(),{getConsentAsync:l}=z(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:r=>{const i=Go(),{prebid:{relevantCallbackTimeout:o}={}}=A.get(),a="relevantCb"===r&&o?o:n[r].timeout,s=setTimeout(()=>{!n[r].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${r}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Go(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Go();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:h}=v;(()=>{const e=Jo();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{m("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return m("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Jo();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};m("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},we(n)),Yo(h,g))),m("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},we(n)),Yo(h,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{m("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=>{Ea(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const v=p.id,g=document.getElementById(v);if(!g)return;const h=null===(t=null==s?void 0:s[i])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==h?void 0:h.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});m("prebid directRenderFn ad info",{targetId:v,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}),Wt(g,y,()=>{var e;const t=c(l),n=ke(f);if(m("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)m("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),xa(f,o),(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 r=new MutationObserver(()=>{n()&&r.disconnect()});r.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),r&&g.style.setProperty("--advertory-political-box-offset","30px");else{m("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),Ca(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(Ho),(null==u?void 0:u.creativeId)&&Gr(v,g,Number(null==u?void 0:u.creativeId))})}}),m("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=>{Ea(e,d)},directRenderFn:()=>{}})})}),Ea=(e,t)=>{var n;const{divId:r,native:i,bid:o}=e,a=document.querySelectorAll(`[id^=${r}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:s},A.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},Sa="_adchoices_non_rtb",Ta=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Sa}={}}={}}=A.get();return`${Eo(e)}${t}`},ka=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>tt(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Ta(e.invCode)})))(e));let Oa="";const Pa=new Map;let ja;const La=()=>{var e;ja=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=ja,Bo=e=e=>window.apntag.anq.push(e),Do.splice(0).forEach(t=>e(t))},Na=()=>ja,_a=()=>{const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get();return H(e,t,n,"loadPlacements")},$a={name:"xandr",capabilities:{tagDefinition:Gi,deferredRequest:!0,deferredRender:!0,refresh:!0},messageOrigins:["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"],setup:()=>s(void 0,void 0,void 0,function*(){La(),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get();(yield H(e,t,n,"xandr-endpoint"))||ja.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=A.get();yield Ie(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){if(q())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=A.get(),i=yield H(t,n,r,"prebid");(null==e?void 0:e.enabled)&&i&&(yield Ie(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=A.get(),{preparePageOptions:t}=A.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=A.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"]}})(),r=yield s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get();return(yield H(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),r));(e=>{const t=S.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Fn(e);S.setData("alertoryConfigKeywords",n)})(i.keywords),zo(()=>Na().setPageOpts(i))}),enrichPlacementsAfterDiscovery:e=>{const{pageSetup:{tag:t}={}}=A.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Oa!==window.location.pathname&&(Pa.clear(),Oa=window.location.pathname),e.map(e=>{var t;const n=Eo(e.invCode),r=null!==(t=Pa.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=A.get();return`${e}-${t}`})()}-count`]=r,Pa.set(n,r+1),e})):e},adjustPlacementsBeforeRequest:e=>s(void 0,void 0,void 0,function*(){const t=yield _a();return ka(e,t)}),definePlacements:e=>{const{prepareTag:t}=A.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const r=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==r&&-1===i?-1:-1===r&&-1!==i?1:r-i})})(e).forEach(e=>{m("xandr definePlacements",{placement:e});const r=Hr(e);if(Wr(e.targetId)){const i=t(r),o=(e=>{const{allowedFormats:t,invCode:n,keywords:r,sizes:i}=e;return{adTypes:t,invCode:n,keywords:Rn(r),sizes:i}})(i);n.push(o),zo(()=>(m("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),Na().defineTag(i)))}}),(e=>{var t,n,r;(null===(r=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===r?void 0:r.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>s(void 0,void 0,void 0,function*(){const{prebid:t}=A.get();if((null==t?void 0:t.enabled)&&(yield _a())&&!q())return m("xandr requestPlacements prebid enabled"),void(yield Ia());m("xandr requestPlacements without prebid enabled");const n=e.filter(({targetId:e})=>Wr(e)).map(({targetId:e})=>e);n.length&&zo(()=>(m("xandr requestPlacements",{placementsIdsToLoad:n}),Na().loadTags([...n])))}),bindEvents:e=>s(void 0,void 0,void 0,function*(){var t;yield(t={apntag:Na(),bus:e},s(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=Vo(t);zo(()=>{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)})}))}),clear:()=>{zo(()=>window.apntag.clearRequest())},render:e=>{zo(()=>(m("core showTag",{id:e}),window.apntag.showTag(e)))},refresh:(e,{keepPreviousSizes:t,applyReloadKeyword:n}={})=>{for(const e of null!=t?t:[])window.apntag.modifyTag(e.targetId,Ko(e));zo(()=>{((e,t)=>{if(!t)return;const{pageContext:{countryCode:n}}=A.get();window.apntag.setKeywords(e,{[`${X(n)}-adreload`]:"1"},{overrideKeyValue:!0})})(e,n),window.apntag.refresh(e)})},resizeCreative:(e,t,n)=>{const r=document.getElementById(`div_utif_${e}`);if(!r)return;const{apntag:i}=window,[o,a]=t;if(!r.dataset.lockedsize&&a&&o)r.style.width=`${o}px`,r.style.height=`${a}px`,n&&(i.resizeAd(r.id,[o,a]),r.dataset.lockedsize="true",r.dataset.lockedwidth=o.toString(),r.dataset.lockedheight=a.toString());else if(null==r?void 0:r.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=r.dataset;e&&t&&i.resizeAd(r.id,[e,t])}}},qa=["omni.se","www.omni.se"],Ra=e=>String(null!=e?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Fa=e=>{const t=String(null!=e?e:"").trim();if(!t)return"#";if(t.startsWith("/")&&!t.startsWith("//"))return Ra(t);try{const e=new URL(t);if("http:"===e.protocol||"https:"===e.protocol)return Ra(e.toString())}catch(e){}return"#"},Ma=(e,t)=>{if(!e.img)return"";const n=[e.imgWidth,e.imgHeight].filter(e=>"number"==typeof e&&e>0).map((e,t)=>0===t?` width="${e}"`:` height="${e}"`).join("");return`<img class="${t}" src="${Fa(e.img)}" alt="${Ra(e.imgAltText||e.title)}"${n} loading="lazy" />`},Da=({containerId:e})=>{var t;if("undefined"==typeof document)return"large";const n=null===(t=document.getElementById(e))||void 0===t?void 0:t.closest("[data-native-layout]");return"small"===(null==n?void 0:n.dataset.nativeLayout)?"small":"large"},Ba={CONTENT_DISPLAY:e=>{import("./styles-BdEe5Ynl.js");const t=Da(e),n=e.description||e.adContent||e.desc2;return`<article class="advertory-omni-native advertory-omni-native-content-display advertory-omni-native--${t}"><div class="advertory-omni-native__label"><span>Annons</span><div id="${Ra(e.containerId)}-button"></div></div><a class="ad-link advertory-omni-native__link" href="${Fa(e.url)}" target="_blank" rel="noreferrer noopener"><div class="advertory-omni-native__content"><div class="advertory-omni-native__copy"><h3>${Ra(e.title)}</h3>${n?`<p>${Ra(n)}</p>`:""}<small>Extern länk${e.sponsoredBy?` | ${Ra(e.sponsoredBy)}`:""}</small></div>${Ma(e,"advertory-omni-native__image")}</div></a></article>`},NATIVE_CLASSIC:e=>{import("./styles-BdEe5Ynl.js");const t=Da(e),n=(e=>{const t=String(null!=e?e:"").trim();if(!t||t.startsWith("//")||!t.startsWith("/")&&!/^https?:\/\//i.test(t))return null;try{const e="undefined"==typeof window?"https://omni.se":window.location.origin,n=new URL(t,e);if(!["http:","https:"].includes(n.protocol)||n.username||n.password||n.pathname.startsWith("//"))return null;const r=!n.port&&qa.includes(n.hostname);return n.origin===e||r?`${n.pathname}${n.search}${n.hash}`:null}catch(e){return null}})(e.url),r=n?`href="${Ra(n)}" data-advertory-internal-link`:`href="${Fa(e.url)}" target="_blank" rel="noreferrer noopener"`;return`<article class="advertory-omni-native advertory-omni-native-brand-studio advertory-omni-native--${t}"><div class="advertory-omni-native__label"><span class="advertory-omni-native__label-text"><span class="advertory-omni-native__label-vignette">Annons · </span>${Ra(e.sponsoredBy)}</span><div id="${Ra(e.containerId)}-button"></div></div><a class="ad-link advertory-omni-native__link" ${r}><div class="advertory-omni-native__content"><div class="advertory-omni-native__copy"><h3>${Ra(e.title)}</h3>${e.description?`<p>${Ra(e.description)}</p>`:""}</div>${Ma(e,"advertory-omni-native__image")}</div></a></article>`}},za={displayTemplates:{default:Ba.CONTENT_DISPLAY,content_display:Ba.CONTENT_DISPLAY,contentdisplay:Ba.CONTENT_DISPLAY,native:Ba.CONTENT_DISPLAY,brandstudio_native_ad:Ba.NATIVE_CLASSIC},videoTemplates:{default:Ba.CONTENT_DISPLAY,brandstudio_native_ad:Ba.NATIVE_CLASSIC}},Ha={FRONT:"front"};Bn(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:auto}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const Wa=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),t("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:[e("span",{id:"advertory-splash-close-label"}),e("svg",{id:"advertory-splash-close-image",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e("path",{d:"M6 3l5 5-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})});var Ua="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",Va="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";Bn(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const Ka=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Ua,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:Va,width:"54",height:"54"})]}),{})]});Bn(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const Ga=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Ua,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:Va,width:"54",height:"54"})]}),{})]});Bn(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:auto}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const Ja=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(Wa,{}),e(Ka,{}),e(Ga,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Ya={prepareTag:e=>{var t;const{keywords:n,targetId:r,invCode:i,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=A.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=A.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(i,l),u=(e=>{const{pageContext:{countryCode:t}}=A.get(),{keywords:n,dynamicSizeWidthCheck:r}=e,i=`${X(t)}-adformat`,o=n?n[i]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Te)||window.innerWidth>=Te[e]);return{[i]:r?a:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=A.get(),n=`${X(t)}-targetid`;return e?{[n]:[e]}:{}})(r),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=So(),h=(e=>vn(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),m=((e,t)=>vn(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new To).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${X(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=A.get();return yield t===F.SE?Mo(e):qo(e)}),siteEvents:r,initNativeAd:(e,t)=>{var n,r,o;if(null===(r=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===r?void 0:r.enabled)return void Ki(e,t);const{targetId:a}=e,s=document.querySelector(`#${a}`);if(!s)return;const{pageType:d=Ha.FRONT,deviceType:l}=null!==(o=null==t?void 0:t.pageContext)&&void 0!==o?o:{},{nativeTrackingConfig:c,appearanceConfig:u}=null!=t?t:{},p={language:F.SE,publisher:i.OMNI,deviceType:l,pageType:d,nativeTrackingConfig:c,appearanceConfig:u};Co(e,p,za),s.classList.add("advertory-omni-native-slot")}},Xa=((e,t,n)=>({init:r=>ho(Object.assign(Object.assign({},r),{siteSpecificConfig:n}),e,t),update:vo,renderNativeAd:ro,getVideoPPIDs:Ce,createInitNativeAd:Ao,getVideoAdsConfig:_r}))(Ya,$a,o);export{Vr as A,kn as B,F as C,mo as D,jn as E,na as F,oa as G,Jr as H,Wo as I,$n as J,ke as K,xa as L,Oe as M,i as N,fr as O,Ha as P,br as Q,wr as R,qn as S,mn as T,ze as U,Ee as V,Pt as W,Xa as X,Ja as Y,s as _,Ae as a,tt as b,A as c,a as d,Wn as e,Ur as f,rt as g,H as h,Bn as i,be as j,Xi as k,m as l,Qi as m,Yi as n,Xr as o,te as p,nt as q,Ie as r,Vt as s,on as t,Ut as u,wt as v,Yr as w,Pn as x,Ln as y,Tn as z};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const r={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},i={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"},o={publisherClassName:i.OMNI,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{d(r.next(e))}catch(e){o(e)}}function s(e){try{d(r.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((r=r.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=d(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function s(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}());const p={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},v=(e,t)=>u(e,t,p),g=(e,t)=>Object.assign(Object.assign({},e),t),h=(e,t)=>{var n;return v(null!==(n=e)&&void 0!==n?n:{},t)},m=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},y=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},f=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||y("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||y("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||y("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||y("pageContext.deviceType is required."),n||y("pageOptions is required."),r||y("placements is required."),(null==i?void 0:i.defaultThreshold)||y("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.widescreenSwitching)||void 0===r?void 0:r.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&y(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},w={placements:(e,t)=>t,takeover:h,refreshConfig:g,editory:h,appearanceConfig:h,pageContext:g,pageOptions:g,pageSectionsSelectors:g,tcf:g},b=(e,t)=>{const n=e;for(const e of Object.keys(w)){const r=t[e];void 0!==r&&(n[e]=w[e](n[e],r))}},x=6;class C{set(e){f(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");b(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=v(C.DEFAULT_SITE_HANDLERS,e)}}C.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const A=new C,I=A.modifyConfigProperties.bind(A);class E{initialize(){this.DATA=Object.assign({},E.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)}}E.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const S=new E,T=864e5,k=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return m("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=T)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=T)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return m("Error with parsing localStorage data"),null}}}})(),O="glimrTags",P=["glwe_","glwet_"],j={geofenceTags:[],geoTags:[],weatherTags:[]},L=e=>new URLSearchParams(window.location.search).get(e),N="takeover",$="native_override_desc2",_=e=>window.location.href.includes(e),q=()=>null!==L("disable_prebid"),F=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 m("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(m("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{m("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{m("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);m("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),R={NO:"no",SE:"se"},M="cmp:loaded";let D="undefined"!=typeof window?window._tcf_:void 0,B=!1;const z=(e,t,n)=>{const r=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,o=L("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(m("TCF bypass param detected, returning consent: true"),!0):(m("TCF is not enabled, returning consent: true"),!0))(r,o))return!0;if(B)return null;if(!D)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=D.getConsentedToAllSync();return m(`TCF consented to all is: ${t}`),D.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(m("Getting TCF consent manager..."),window._tcf_)return m("TCF consent manager is already available"),D=window._tcf_,void e(D);m("TCF consent manager is not available");const n=()=>{m("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(D=window._tcf_,e(D)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(M,n),B=!0,t(new Error("Timeout waiting for CMP to load"))},i);m("Listening for CMP loaded event..."),document.addEventListener(M,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return m(`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===R.SE,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===R.NO;if(t||r)return m("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield F(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!D)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{m("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);D.onTcfReady(()=>{m("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),D.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},H=(e,t,n,...r)=>s(void 0,[e,t,n,...r],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return m(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return m(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=z(e,0,n);return(yield i())?(m(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(m(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}),W=(...e)=>s(void 0,[...e],void 0,function*(e=A.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield H(t,n,r,"glimr")}const{getConsentAsync:i}=z(t,0,r);return yield i()}),U=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=A.get();if(!(yield W())||!(null==e?void 0:e.enabled))return void m("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{k.setWithTimestamp(O,{tags:e,tagMappings:t}),n(!0)})})}catch(e){m(`Error during getting glimr data: ${e}`)}else m("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),V={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"},K=e=>P.some(t=>e.startsWith(t)),G=e=>e.startsWith("glgc_"),J=e=>e.startsWith("glci_"),Y=e=>!K(e)&&!G(e),X=e=>e===R.NO?"no-sno":"se-generic",Q=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield W(e);if(!(null==r?void 0:r.enabled)||!o)return m("No consent for getting glimr tags."),{};const a=X(i),s=Z(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),Z=(e,t)=>{const n=ee();if(!n)return j;const r=((e=[])=>e.filter(K))(n),i=((e=[])=>e.filter(G))(n),o=((e=[],t,n)=>{var r;const i=e.filter(Y);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=V[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},ee=()=>{const e=k.getByTimestamp(O);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},te=()=>{var e;return((e=[])=>e.filter(J))(null!==(e=ee())&&void 0!==e?e:[])},ne="opaque",re=e=>s(void 0,void 0,void 0,function*(){if(e.type!==ne){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>s(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=a(t,["timeout"]);if(n)return((e,t,n)=>s(void 0,void 0,void 0,function*(){const r=new AbortController,i=setTimeout(()=>r.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return re(n)}finally{clearTimeout(i)}}))(e,r,n);const i=yield fetch(e,r);return re(i)}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const r=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:r});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},oe="advertory:ppids-cache",ae={[R.SE]:`SCH${R.SE.toUpperCase()}-EnvHash`,[R.NO]:`SCH${R.NO.toUpperCase()}-EnvHash`},se={[R.SE]:`SCH${R.SE.toUpperCase()}-UserHash`,[R.NO]:`SCH${R.NO.toUpperCase()}-UserHash`},de={[R.SE]:`sch${R.SE}-envhash-v3`,[R.NO]:`sch${R.NO}-envhash-v3`},le={[R.SE]:`sch${R.SE}-userhash-v3`,[R.NO]:`sch${R.NO}-userhash-v3`},ce={[R.SE]:`'sch${R.SE}-iosid-v3'`,[R.NO]:`'sch${R.NO}-iosid-v3'`},ue={[R.SE]:`sch${R.SE}-androidid-v3`,[R.NO]:`sch${R.NO}-androidid-v3`},pe={[R.SE]:"sdrn:schibsted.com:user",[R.NO]:"sdrn:spid.no:user"};class ve{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:r})=>{t.append(e,`${r}-${n}`)}),t}}const ge=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,r;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(r=i.xandr)||void 0===r?void 0:r.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||m("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:""}},he=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,r,i,o,a,s,d,l,c,u,p;const v=k.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===(r=g.idfv)||void 0===r?void 0:r.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||m("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,r){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=r?r:null}shouldHash(e,t){var n,r;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(r=t[i])||void 0===r?void 0:r.plain))return!0}return!1}cachePPIDs(e,t,n,r){const i=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}}:{}),r?{anId:{plain:r}}:{});k.set(oe,i)}hashPPIDs(e,t){return s(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 m("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const r=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${pe[t]}:${n}`:null}))(t,n),i=yield(o=t,s(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:r},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:r,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:r.plain,environmentId:i.plain}}},me=e=>s(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:r,isMobileApp:i}}=e;if(!(yield H(n,i,r,"setPPIDs")))return;if(!t)return;(yield Promise.allSettled([ge.processPPIDs(t,null==n?void 0:n.timeout),he.processPPIDs(t,r)])).forEach((e,t)=>{if("rejected"===e.status){m(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),ye=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=he.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]).add(o,ce[e]).add(a,ue[e]).buildEids()}]}},fe=()=>{const{ppid1:e,ppid2:t}=ge.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},we=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=he.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]).add(o,ce[e]).add(a,ue[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i}=he.getPPIDs(),o=(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},xe=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i}=he.getPPIDs();return(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]).buildRyEids()},Ce=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:r,ppid2:i}=he.getPPIDs(),o=(new ve).add(n,ae[e]).add(t,se[e]).add(i,de[e]).add(r,le[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),Ae=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=he.getPPIDs();return e}),Ie=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{s(),n()},a=()=>{s(),r(new Error(`Failed to load ${e}`))},s=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(d)};i.addEventListener("load",o),i.addEventListener("error",a);const d=setTimeout(()=>{s(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),Ee={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}]},Te={wallpaper:1600,"l-format":1600},ke=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&ze(e,Ee.ANY_FULLSCREEN)},Oe=e=>{const{native:t}=e;return!!t},Pe=e=>ze(e,Ee.FULLWIDTH),je=e=>{const{targetId:t}=e;return t.includes("takeover")||ze(e,Ee.TAKEOVER)},Le=e=>ze(e,Ee.TAKEOVER),Ne=e=>ze(e,Ee.WALLPAPER),$e=e=>ze(e,Ee.COLLAPSE),_e=e=>e.targetId.includes("sponsorstripe"),qe=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Fe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Re=e=>e.targetId.startsWith("midboard"),Me=e=>e.targetId.includes("widescreen"),De=e=>e.width>=1260&&e.width<=1280,Be=e=>e.width>=1600&&e.width<=1620,ze=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,r;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(r=e.banner)||void 0===r?void 0:r.height)||e.height,a=t.width===i,s=!t.height||t.height===o;return a&&s})};let He;const We=()=>He,Ue="advertory-wallpaper-background",Ve="advertory-with-horseshoe",Ke=()=>{const e=document.querySelector(`.${Ue}`);e&&e.remove()},Ge=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Ue}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Je=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Ye=e=>Je.test(e),Xe=e=>e.startsWith("wallpaper:color:"),Qe=e=>{const t=document.querySelector(`.${Ue}`);t&&(t.style.backgroundImage=`url(${e})`)},Ze=e=>{const t=document.querySelector(`.${Ue}`);t&&(t.style.backgroundColor=e)};var et=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Ve),n.classList.add(Ve))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{Ke();const e=document.createElement("div");e.classList.add(Ue),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&&(Ge(n),window.addEventListener("scroll",()=>Ge(n)))})(n),e()},isShortWallpaperColorMessage:Xe,isShortWallpaperUrlMessage:Ye,removeWallpaperBackground:Ke,setWallpaperBackgroundColor:Ze,setWallpaperBackgroundImage:Qe});const tt=e=>{if("0"===L("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")&&Ke())},nt=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"))},rt=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},it=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},ot=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,r=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${r}px`)},at="https://inv-platform-cdn.inventory.schibsted.io",st=5e3,dt="editory/native-creator/native-templates",lt=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:r}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!r)return null;return`${n||at}/editory/editable-configurations/${t.publisherClassName}/${r.toLowerCase()}.json`};const ct=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:r}=e;return Boolean(t&&n&&(null==r?void 0:r.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return s(this,void 0,void 0,function*(){const t=lt(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>s(void 0,void 0,void 0,function*(){const t=lt(e);if(!t)return null;try{return yield ie.get(t,{timeout:st})}catch(e){throw m("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,r,i;const o=((e,t)=>{const{sections:n}=e,r=a(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?v(r,i):r})(t,null!==(i=null===(r=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===r?void 0:r.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>v(t,e))(e,o)}getConfig(e){return s(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 m("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return s(this,void 0,void 0,function*(){var t,n,r,i;if(!this.localSiteConfig)return;if(b(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const o=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===(i=null===(r=this.localSiteConfig.editory)||void 0===r?void 0:r.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==o)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void m("Error fetching updated S3 config, keeping current config",{error:e})}})}},ut=ct.getConfig.bind(ct),pt=ct.resolveUpdatedConfig.bind(ct),vt=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:r}=(e=>{const t=S.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=r},gt=()=>{var e,t;Ke();const n=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),r=[];return n.forEach(e=>{tt(e.id),vt(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),r=null==t?void 0:t.getAttribute("data-probable-width");n&&r&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",r+"px"))})(e.id),e.innerHTML="",e.id=rt(e.id),r.push(e.id)}),null===(t=null===(e=We())||void 0===e?void 0:e.clear)||void 0===t||t.call(e,r),r},ht=()=>{S.setData("wallpaper",{isAvailable:!1}),S.setData("horseshoe",{isAvailable:!1})},mt=e=>s(void 0,void 0,void 0,function*(){const t=yield pt(e);var n;t?(A.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):I(null!=e?e:{})}),yt="0123456789abcdefghijklmnopqrstuvwxyz",ft=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=yt[Math.floor(36*Math.random())]}return t},wt=(e,t)=>{let n=null;return(...r)=>{null===n&&(e(...r),n=setTimeout(()=>{n=null},t))}},bt=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),xt=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})}),Ct="mobile",At="tablet",It="desktop",Et="web_desktop",St="web_phone",Tt="wde",kt="wph",Ot="noGroupedPlacements",Pt=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},jt=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Lt=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:r,pageContext:{deviceType:i}}=A.get(),o=((e,t)=>{var n;const r=null!==(n=e[t])&&void 0!==n?n:[];return t===At&&0===r.length?e[It]:r})(n,i),a=o.filter(jt),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=Pt(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{var t,n,o;const d=new RegExp(`^${e}(_(\\d+))?$`),l=a.filter(({targetId:e})=>e.match(d)),c=(null==r?void 0:r.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,u=s.querySelectorAll(c),p=Array.from(u).filter(({id:e})=>e.match(d)).map((e,t)=>{var n;const r=Nt(e,t,l);if(r.disabled)return m(`Placement ${r.targetId} is disabled - collapsing`),tt(r.targetId),null;const i=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,o=i&&(null===(n=r.finnBlink)||void 0===n?void 0:n.loadOnlyFinnBlink),a=`${e.id}-${ft(6)}`;return e.id=a,e.setAttribute("data-advertory-ad-rendered","true"),i&&e.setAttribute("data-is-finn-blink-placement","true"),o&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&S.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},r),{targetId:a})}),v=p.filter(e=>null!=e);return null!==(o=null===(n=null===(t=We())||void 0===t?void 0:t.enrichPlacementsAfterDiscovery)||void 0===n?void 0:n.call(t,v))&&void 0!==o?o:v});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))})(d)},Nt=(e,t,n)=>{const r=n[t],i=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:o||i},$t=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=A.get(),r=(null==t?void 0:t[n])||{},i=Object.values(r).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=rt(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[r,i]of Object.entries(t))n[r]=e.filter(e=>i.includes(rt(e.targetId)));return n})(e,r),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(rt(e.targetId))))(e,new Set([...s,...i]));return Object.assign(Object.assign(Object.assign({},a),o),{[Ot]:d})},_t="collapseAd",qt="hideAd",Ft="resizeAd",Rt="wallpaperImageUrl",Mt="wallpaperColor",Dt="velvet",Bt=[Ft,Rt,Mt,_t,qt,Dt];let zt;const Ht=e=>{var t,n,r;const i=We();if(!(null===(t=null==i?void 0:i.messageOrigins)||void 0===t?void 0:t.includes(e.origin.trim())))return;const{data:o}=e;if(!o)return;const a=(e=>{if("object"==typeof e)return e;if(Ye(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Rt,wallpaperImageUrl:t}}if(Xe(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Mt,wallpaperColor:t}}if(e.startsWith(_t)||e.startsWith(qt)){const t=e.split(":")[1];return{name:_t,targetId:t}}if(e.includes("name")&&Bt.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(o);if(!a)return;if(!a.name||!Bt.some(e=>a.name===e))return;const{name:s,targetId:d,wallpaperImageUrl:l,wallpaperColor:c,cmd:u,size:p}=a;s===Dt&&u&&(u.includes("noScroll")&&(zt=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(u.includes("close")||u.includes("ended"))&&(null==zt||zt(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),s!==_t&&s!==qt||!d||tt(d),s===Ft&&d&&u&&(null===(n=i.resizeCreative)||void 0===n||n.call(i,d,u)),"resizeMediationAd"===s&&d&&p&&(null===(r=i.resizeCreative)||void 0===r||r.call(i,d,p,!0)),s===Rt&&l&&Qe(l),s===Mt&&c&&Ze(c)},Wt=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield bt,yield xt;new IntersectionObserver((t,r)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),r.unobserve(e),r.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Ut=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=A.get(),r={publisher:e,countryCode:t,finnBlink:n},i=e=>{var t,n;nt(e),null===(n=null===(t=We())||void 0===t?void 0:t.render)||void 0===n||n.call(t,e)};return{withAdServerAd:i,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-1NNCUzEK.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void i(e);const{loadFinnBlinkAd:t}=yield import("./index-1NNCUzEK.js");yield t(e,r,i,()=>s(void 0,void 0,void 0,function*(){if(!S.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return et});t(e)}))})}},Vt="advertory:requestFilled",Kt={},Gt=e=>{var t,n;return null!==(n=null===(t=Kt[rt(e)])||void 0===t?void 0:t.isFilled)&&void 0!==n&&n},Jt=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield Wt(e,t,()=>((e,t)=>{var n,r;const i="true"===t.dataset.isFinnBlinkOnlyPlacement;return qe(e)&&i?(m(`loading finn blink ad for blink only placement for ${e}`),void Ut().withFinnBlinkAd(e)):qe(e)&&Gt(e)?(m(`request of ${e} is fully filled, showing ad server ad instead of finn blink`),void Ut().withAdServerAd(e)):qe(e)?(m(`loading finn blink ad with full ads chain for ${e}`),void Ut().withFullAdsChain(e)):void(null===(r=null===(n=We())||void 0===n?void 0:n.render)||void 0===r||r.call(n,e))})((e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),Yt=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Xt=new Map,Qt=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],Zt=".brandstudio-premium-content-widget",en=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),tn=({adWrapper:e,placementContainer:t})=>{const n=en({adWrapper:e,placementContainer:t});var r;null==e||e.style.setProperty("height",`${n}px`),vt(r=t),r.innerHTML=""},nn=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},rn=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=A.get(),r=Qt.includes(n)&&Boolean(t.closest(Zt));const i=r?t.closest(Zt):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!r&&!a||r&&!i)return;if(a)return nn(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=i;s&&d.contains(s)?nn(s):d.hasAttribute("style")&&nn(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},on=(e,t,n,r,i)=>{var o;const a=performance.now(),s=null!==(o=Xt.get(e))&&void 0!==o?o:0,d=((e,t)=>!!t&&e+t<(new Date).getTime())(n,r)&&t<0;a-s>=r&&d&&(Xt.set(e,a),((e,t)=>{var n,r;const i=null==t?void 0:t.parentElement;i&&t&&tn({adWrapper:i,placementContainer:t}),null===(r=null===(n=We())||void 0===n?void 0:n.refresh)||void 0===r||r.call(n,[e],{applyReloadKeyword:!0})})(e,i))},an=(e,t=6)=>{const n=[];for(let r=0;r<e.length;r+=t){const i=e.slice(r,r+t);n.push(i)}return n},sn=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),dn=(e,t=0)=>{const n=e.getBoundingClientRect(),r=window.innerHeight;return n.bottom>-t&&n.top<r+t},ln=(e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,r=document.querySelector(`#${n}`),i=null==r?void 0:r.parentElement;if(!i||!r)return;rn({adWrapper:i,placementContainer:r});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();r&&"true"!==r.dataset.subscribedForRefresh&&(r.dataset.subscribedForRefresh="true",r.dataset.refresh&&((e,t,n)=>{const r=new IntersectionObserver((e,r)=>((e,t,n,r)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:o}=e;t(i.id,o.y,n,r,i)})})(e,on,t,n),Yt(300));r.observe(e)})(r,a,o))},cn=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=A.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),gn(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},un=(e,t,n)=>{const r=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of r){const r=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==r?void 0:r.requestThreshold;dn(i,o)&&r&&(ot(r.targetId),n.length&&i.classList.remove(...n),gn([r],t))}},pn=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:r}}=A.get();t&&(e.forEach(({targetId:e})=>{const t=vn(e);t&&(t.dataset.bfCacheRefresh="true")}),r?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&un(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const r=()=>{window.scrollY>0&&(window.removeEventListener("scroll",r),un(e,!1,t))};n.persisted&&(sn()?window.addEventListener("scroll",r,{passive:!0}):un(e,!1,t))})})(e,n))},vn=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},gn=(e,t=!1)=>{const n=We();if(!(null==n?void 0:n.refresh))return;const{queryConfig:{batchSize:r=x}={}}=A.get();for(const i of an(e,r))n.refresh(i.map(({targetId:e})=>e),t?{keepPreviousSizes:i}:void 0)},hn=e=>{const{source:t}=e;return"csm"===t},mn=e=>{const{siteSpecificConfig:t}=A.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},yn=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},fn=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e,{getConsentAsync:i}=z(t,0,r);if(!(yield i()))return;const o=yn("_pulse2data");return o?o.split(",")[9]:void 0}),wn={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},bn=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const r=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=r.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,i).toString()},xn="takeover-displayed",Cn="takeover-visit-count",An=14400,In=()=>{const e=yn(Cn);return e?parseInt(e):0},En=()=>{const e=In(),{takeover:{options:{cookieCapTime:t=An}={}}={}}=A.get(),n=document.location.hostname;window.document.cookie=`${Cn}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Sn=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=A.get();return"0"!==L(N)&&("1"===L(N)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=A.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||xn;return"true"===yn(n)})())&&(!t||Tn()))},Tn=()=>{const e=In();return 0===e?(En(),!1):1===e},kn=(e,t)=>[[1,1],[1920,1080]].some(([n,r])=>n===e&&r===t),On=()=>{const{takeover:e}=A.get();return Boolean(null==e?void 0:e.topscroller)},Pn=e=>{const{width:t,height:n}=e;return kn(t,n)?wn.SPLASH:ze(e,Ee.VELVET_TAKEOVER)?wn.VELVET:On()?wn.TOPSCROLLER:wn.WELCOME_PAGE},jn=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=xn,cookieCapTime:n=An}={}}={},pageContext:{isMobileApp:r,countryCode:i},tcf:o}=A.get(),a=yield H(o,r,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Ln=e=>{var t,n;const r=!!(null===(n=null===(t=A.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return je(e)&&r},Nn=(e,t)=>{var n;if(t===wn.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===wn.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},$n=(e,t)=>{t!==wn.SPLASH?(e=>{var t,n;const r=null===(t=A.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=A.get().takeover)||void 0===n?void 0:n.topscroller;if(!r||i)return;const o=document.querySelector(r),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=A.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),r=document.querySelector(`#${e.targetId}`);if(!n||!r)return;const i=`calc(100svh - ${n.offsetHeight}px)`;r.style.setProperty("height",i,"important")})(e)},_n=bn([],()=>{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 qn=Object.freeze({__proto__:null,addTakeoverCookie:jn,adjustTakeoverHeight:$n,canDisplayTakeover:Sn,getProperWelcomePageConfig:Nn,getTakeoverVariant:Pn,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Ln(e)&&(yield jn())}),incrementArticleVisitCount:En,isSplashVariant:kn,isTopscroller:On,scaleAd:_n,shouldAddTakeoverCookieForNotShownAd:Ln});const Fn={nativeAd:e=>Oe(e)&&!_e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:Pe,fullscreenScroll:ke,topscroller:e=>je(e)&&On(),splash:e=>je(e)&&kn(e.width,e.height),welcomePage:je,wallpaper:Ne,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:De,hFormat:Be,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Be(e)&&!De(e),topboard:e=>e.targetId.startsWith("topboard")&&!je(e),widescreen:Me,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")&&!Fe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Re(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:Fe,midboard:Re},Rn=({adObj:e,preferredTestIdData:t})=>{var n,r;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const o=null===(r=document.querySelector(`#${i}`))||void 0===r?void 0:r.parentElement;if(!o)return;if(((e,t)=>{var n,r,i,o;const a=null===(o=null===(i=null===(r=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===r?void 0:r.tags)||void 0===i?void 0:i[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(i,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,r;for(const[i,o]of Object.entries(Fn))if(o(e)){if("nativeAd"===i){const o="default";t.dataset.testid=`${i}-${null!==(r=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==r?r:o}`;break}t.dataset.testid=i;break}})(e,o)},Mn=e=>{var t;return(null===(t=Object.entries(Fn).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Dn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=A.get(),n=X(t),r=e[`${n}-targetid`],i=r?rt(r[0]):"";return Object.assign(Object.assign({},e),r&&{[`${n}-targetid`]:[i]})},Bn=e=>{const{pageContext:{countryCode:t}}=A.get(),n=X(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"]})},zn=e=>{if("true"!==L("scrollToFirstInvCode"))return;const t=L("ast_override_inv_code");if(!t)return;const n=t.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===n),i=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);i&&i.scrollIntoView({behavior:"smooth",block:"start"})},Hn=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});function Wn(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}Wn(".advertory-brandmetrics-survey{width:100%}");const Un="advertory-brandmetrics-survey",Vn=()=>s(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),Kn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Gn="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Jn=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,r)=>{var i;r||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Yn={pageContext:{publisher:"aftonbladet",countryCode:R.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"}},Xn={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Qn=e=>(null==e?void 0:e.parent)?[...Qn(e.parent),e.shortPath||"unknown"]:[],Zn=(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]=Qn(e);return Xn[n]||"ovrigaavdelningar"})(e)}_{position}`,er={aftonbladet:Yn},tr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Zn(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Qn(e).join(":")}}},nr=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},rr=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),ir="se-generic",or="aa-sch",ar="kv_",sr="pause",dr="{deviceType}",lr="{position}",cr="afp_",ur=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),pr="1-1",vr="16-9",gr="3-4",hr="9-16",mr="responsive",yr={[pr]:1,[vr]:1.78,[hr]:.56,[mr]:1},fr={[pr]:1,[vr]:1.78,[gr]:1.33,[hr]:.56},wr=(e,t,n,r)=>{const{invCode:i="",videoOverlayInvCode:o}=null!=e?e:{},a=It===n?Tt:kt,s=i.replace(dr,a);return(e,n)=>{if(e===sr)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(lr,sr).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&ur.has(e)){return(r&&o?o:t.frontpageInvCodeTemplate).replace(dr,a).replace(lr,e)}return s.replace(lr,e)}},br=()=>{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"},xr=e=>e===Ct,Cr=853,Ar=767,Ir=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[r,i])=>{const o=Math.abs(e[n]-t);return Math.abs(i-t)<o?r:n},n[0][0])},Er=()=>{var e,t;const n=jwplayer().getContainer(),r=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return r&&"number"==typeof r.offsetWidth&&"number"==typeof r.offsetHeight&&0!==r.offsetHeight?r.offsetWidth/r.offsetHeight:1},Sr=()=>{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},Tr=()=>{const e=null!==(t=Sr()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Sr()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},kr=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Or=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:r,countryCode:i}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:i,publisher:r,pageType:"front",deviceType:e.deviceType},d=(yield H(n,e.isApp,i,"video"))?"1":"0",l=yield Jn(),c=yield Ce(i),u=yield fn({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Ir(fr,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Ir(yr,Number(m.toFixed(2))):mr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${or}-country_code`]:i,[`${or}-publisher`]:r,[`${or}-supply_type`]:(y=e.deviceType,y===It?Et:St),[`kw_${or}-page_type`]:"collection",[`${or}-page_type`]:"collection",[`${ir}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${ir}-page`]:"index",[`${ir}-page`]:"index",[`${ir}-screenheight`]:String(window.screen.height),[`${ir}-screenwidth`]:String(window.screen.width),[`${ir}-viewportheight`]:String(a),[`${ir}-viewportwidth`]:String(o),[`${ir}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${ir}-mobile-os`]:br(),[`${ir}-audience`]:void 0,[`${ir}-externalid_src`]:Tr(),[`${ir}-tags`]:e.tags,[`${ir}-articleid`]:p,"article-id":p},yield Q(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${ir}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(kr()).some(e=>e.includes(ar))&&(()=>{const e=kr(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(ar)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Pr=["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"],jr=["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"],Lr=["external_uid","gdpr","gdpr_consent","eids","article-id"],Nr=(e,t)=>{const n=[...Pr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Lr.includes(e)?e:`kw_${e}`,t]))},$r=e=>Object.fromEntries(Object.entries(e).filter(([e])=>jr.includes(e))),_r=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r,i,o;const a=(e=>{var t;er[e]||y(`[video] No config found for publisher "${e}"`);return null!==(t=er[e])&&void 0!==t?t:Yn})(e.publisher),s=(e=>{var t;return null!==(t=tr[e])&&void 0!==t?t:tr.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(r=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===r?void 0:r.toString(),c=e.assetId===l,u=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Or({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Er(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:nr(e.startMode)}}),qr=(e,t)=>{const{siteConfig:n,siteVideoParams:r,isUserPresentOnFrontPage:i,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=r||{},l=wr(r,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(cr)?`${cr}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":rr.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Nr(o,n)),$r(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Fr=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield _r(e,t);return qr(n,e)}),Rr={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]}]},Mr={no:"NOK",se:"SEK"},Dr={no:"no",se:"sv"};class Br{buildFetchObject(e,t,n,r){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:o}=r,{invCode:a,xandrPlacementId:s}=e,d=yield Jn(),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(Rr),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:ft(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Dr[i]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield fn(r),ext:{consent:d.gdpr_consent||"",eids:xe(i)}},at:1,cur:[Mr[i]],source:{tid:ft(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,r){return s(this,void 0,void 0,function*(){try{m("Starting fetching Studio ad from Xandr:",Gn);const i=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Gn}?${a.toString()}`:Gn,d=yield this.buildFetchObject(e,t,n,r),l=yield ie.post(s,i,d);return m("Fetch operation completed successfully.",l),l}catch(e){m("Error during fetch operation:",e)}return null})}}const zr=0,Hr=3,Wr=e=>`externalImpId:'${e}'`,Ur=(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,Vr=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:r}=A.get(),{targetId:i,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Sn())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],r=Array.isArray(n)?n.filter(e=>e!==wn.TOPSCROLLER):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":r}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:i})})(e),g=Object.assign({invCode:d,sizes:o,targetId:i,keywords:Ur(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),h=(e=>{var t,n;const r=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 r?(m("Pulse state pageViewId is:",r),r):(m("Pulse state does not contain field pageViewId or it is empty"),"")})(r);n&&h&&(m("External Impression ID assigned to defineTag:",Wr(h)),g.externalImpId=Wr(h));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,r])=>((null==e?void 0:e.includes(n))&&(t[n]=r),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{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"))&&(g.native=y),g},Kr=e=>!e.includes("takeover")||Sn(),Gr=(e,t,n,r)=>{const i=t.parentElement;if(!i)return;const o=e?`-${e}`:"",a=r?`__${r}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(s),i.classList.add(d),t.dataset.adType=n},Jr={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Yr=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},Xr=(e,t,n)=>{var r,i,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(i=null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),Yr(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},Qr=(e,t,n)=>{var r;const i=t.replace(/-[^-]*$/,"");return null===(r=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===r?void 0:r.invCode},Zr=(e,t)=>{new IntersectionObserver((e,n)=>{for(const r of e)if(r.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class ei{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Zr(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class ti extends ei{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return Qr(e,this.adObj.targetId,t)}buildAdObject(){const e=ti.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var ni=Object.freeze({__proto__:null,XandrAdTracker:ti});const ri=(e,t)=>{ii(e,t),ai(e,t)},ii=(e,t)=>{var n,r;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(r=null==t?void 0:t.clickLinkSelector)&&void 0!==r?r:"a.ad-link";(null==i?void 0:i.querySelectorAll(o)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,r,i,o,a,s;for(const t of null!==(r=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==r?r:[])di(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(o=null==t?void 0:t.pulse)||void 0===o?void 0:o.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(s=t.deviceType)&&void 0!==s?s:It};new ti({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},oi=e=>{var t;const{native:{impressionTrackers:n}={}}=e,r=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;r||!i?null==n||n.forEach(si):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},ai=(e,t)=>{var n;let r=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:It])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!r)for(const n of t)if(n.isIntersecting){r=!0,oi(e),c.disconnect();break}},d);c.observe(i)},si=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?di(e):window.navigator.sendBeacon(e)},di=e=>{ie.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},li=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:[]}),ci=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r;const{pageContext:{deviceType:i},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[i],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void m(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Yt(s)).observe(d)});const{prepareTag:l}=A.getHandlers(),c=S.getData("alertoryConfigKeywords"),u=null!==(r=l(Vr(e)).keywords)&&void 0!==r?r:{},p=new Br,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const r=n===Ct?t.mobileHTML:t.desktopHTML;if(r){if(t.adType===zr){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>${r}`,e.appendChild(n)}else e.innerHTML=r;e.classList.add("ad-loaded")}})(d,v,i),v.adType===Hr&&(Gr(t.pageContext.publisher,d,Jr.NATIVE_AD,t.pageContext.pageType),ri({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:i,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,r)=>{var i,o,a;let s;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==r?void 0:r.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),Xr(e,n,Number(null==r?void 0:r.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),ui=(e,t)=>{e.forEach(e=>ci(e,t).catch(e=>{m("Failed to handle server-side ad:",e)}))},pi=(e,t,n,r)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:r,pageType:o}=t,a=r&&Object.values(i).includes(r);n&&a&&Gr(r,e,Jr.NATIVE_AD,o)})(o,n),r())},vi={"no-aftenposten":i.AFTENPOSTEN,"no-stavangeraftenblad":i.SA,"no-bergenstidende":i.BT},gi=(()=>{const e=new Map,t=new Map;return{getTemplate:t=>e.get(t),setTemplate:(t,n)=>{e.set(t,n)},deleteTemplate:t=>{e.delete(t)},getAdjustment:e=>t.get(e),setAdjustment:(e,n)=>{t.set(e,n)},clear:()=>{e.clear(),t.clear()}}})(),hi=(e,t,n)=>{if(!n)return Promise.resolve(null);const r=((e,t,n)=>`${null!=n?n:at}/${dt}/${e}/adjustments/${t}.json`)(e,n,t),i=gi.getAdjustment(r);if(i)return i;const o=ie.get(r,{timeout:st}).catch(e=>(m("Failed to fetch native template adjustment",{error:e,url:r}),null));return gi.setAdjustment(r,o),o},mi=(e,t,n)=>s(void 0,void 0,void 0,function*(){const r=((e,t)=>`${null!=t?t:at}/${dt}/${e}/default.json`)(e,n);let i=gi.getTemplate(r);i||(i=ie.get(r,{timeout:st}).catch(e=>{throw m("Failed to fetch native template",{error:e,url:r}),gi.deleteTemplate(r),e}),gi.setTemplate(r,i));const o=hi(e,n,t),[a,s]=yield Promise.all([i,o]);return{schema:a,adjustment:s}}),yi="data-ad-video",fi="viewable",wi="adClick",bi=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),r=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(r){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},xi=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),Ci=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const r=document.createElement("script");r.id=e,r.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",r.async=!0;try{r.src=r.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(r,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),Ai={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-DULm4hqA.js")})}})}},Ii=e=>s(void 0,[e],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const r=yield Ci(e);((e,t)=>{null==e||e.forEach(e=>{Ai[e](t)})})(t),r.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(r,t)}),r.on(fi,e=>{const{viewable:t}=e;t?r.play():r.pause()}),n&&r.on(wi,()=>{window.open(n,"_blank")}),e.repeat&&r.on("pause",()=>{r.play()})}),Ei={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},Si=({container:e,native:t,type:n,publisher:r})=>{const i=e.querySelector(`[${yi}]`),{video:o,image:a,clickUrl:s=""}=t;if(!i||!(null==o?void 0:o.content))return;const{pluginsNames:d,videoLoop:l}=(e=>{var t;return null!==(t=Ei[e.toLowerCase()])&&void 0!==t?t:Ei.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({id:e,nodeId:t,poster:n,tagURL:r,publisher:i="",productTag:o="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:r}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},xi(e)?e:{}),{provider:Object.assign(Object.assign({},xi(null==e?void 0:e.provider)?e.provider:{}),{productTag:o})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:bi(o.content,s),publisher:r,videoLoop:l});Ii({playerConfig:p,clickUrl:s,pluginsNames:d})},Ti=(e,t)=>{const{adjustmentOverrides:n}=e,r=a(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},r),t.overrides&&{adjustmentOverrides:v({},t.overrides)})},ki="desktop",Oi="mobile",Pi="container",ji="text",Li="image",Ni="cogwheel",$i="video",_i=e=>{if(e)return e===Ct?Oi:ki},qi=(e,t,n)=>{var r,i,o,a,s,d,l,c,u,p,v,g,h;const m=t?null===(r=e.overrides)||void 0===r?void 0:r[t]:void 0,y=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],f=t?null===(o=null==n?void 0:n[t])||void 0===o?void 0:o[e.id]:void 0;if(null!==(d=null!==(s=null!==(a=null==f?void 0:f.hidden)&&void 0!==a?a:null==y?void 0:y.hidden)&&void 0!==s?s:null==m?void 0:m.hidden)&&void 0!==d?d:e.hidden)return null;const w=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==y?void 0:y.styles),null==f?void 0:f.styles),b=null!==(u=null!==(c=null!==(l=null==f?void 0:f.tag)&&void 0!==l?l:null==y?void 0:y.tag)&&void 0!==c?c:null==m?void 0:m.tag)&&void 0!==u?u:e.tag,x=null!==(g=null!==(v=null!==(p=null==f?void 0:f.text)&&void 0!==p?p:null==y?void 0:y.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,C=null===(h=e.children)||void 0===h?void 0:h.map(e=>qi(e,t,n)).filter(e=>null!==e),A={id:e.id,tag:b,type:e.type,name:e.name,styles:w,connections:e.connections};return void 0!==x&&(A.text=x),void 0!==C&&(A.children=C),A},Fi=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"""))(t)}`).join(";"),Ri=(e,t)=>{const n=e[t];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class Mi{constructor(e,t=!1){this.tag=e,this.voidElement=t,this.attributes=new Map,this.content=""}attr(e,t){return t&&this.attributes.set(e,t),this}children(e){return this.content=e,this}build(){const e=[...this.attributes].map(([e,t])=>` ${e}="${t}"`).join("");return this.voidElement?`<${this.tag}${e}>`:`<${this.tag}${e}>${this.content}</${this.tag}>`}}const Di=(e,t,n="")=>{var r;return(null===(r=e.connections)||void 0===r?void 0:r.length)?((e,t)=>{const n=[];for(const{properties:r}of e)for(const e of r){const r=Ri(t,e);r&&n.push(r)}return n.join(" ")})(e.connections,t):n},Bi=(e,t,n,r)=>{var i;const{tag:o,styles:a}=e,s=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Hi(e,t,n,!1)).join(""),d=new Mi(o);return r(d),d.attr("href","a"===o?Di(e,t):"").attr("style",Fi(a)).children(s).build()},zi={[Pi]:(e,t,n,r)=>{var i;const o=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Bi(e,t,n,t=>{r&&t.attr("class",`advertory-${o}-ad-native-${e.name.toLowerCase()}`)})},[Ni]:(e,t,n)=>Bi(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[ji]:(e,t)=>{var n;return new Mi(e.tag).attr("style",Fi(e.styles)).children(Di(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Li]:(e,t)=>new Mi("img",!0).attr("style",Fi(e.styles)).attr("src",Di(e,t)).build(),[$i]:(e,t)=>"video"===e.tag&&Di(e,t)?new Mi("div").attr(yi,"true").attr("style",Fi(e.styles)).build():""},Hi=(e,t,n,r=!0)=>{const i=zi[e.type];return i?i(e,t,n,r):""},Wi=e=>(t,{publisher:n,containerId:r,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:r,publisher:i,containerId:o})=>{const a=r?Ti(e,r):e,s=qi(a.root,n,a.adjustmentOverrides);return s?Hi(s,t,{breakpoint:n,publisher:i,containerId:o}):null})({config:e,nativeData:t,breakpoint:_i(i),publisher:n,containerId:r}),Ui="[data-carousel-track]",Vi=({image_link:e,title:t})=>{const n=document.createElement("figure"),r=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),r.className="slide-image",r.src=e,r.alt=t,r.loading="lazy",r.draggable=!1,n.appendChild(r),n},Ki=e=>Boolean(e.title&&e.link&&e.image_link),Gi=(e,t)=>s(void 0,void 0,void 0,function*(){const n=e.querySelector(Ui);var r;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>s(void 0,void 0,void 0,function*(){try{const t=yield ie.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(y("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return y("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const o=i.items.filter(Ki);if(!o.length)return void y("Carousel feed has no usable items");yield import("./styles-BoFOty2O.js");const a={title:(r=e).querySelector("[data-product-title]"),description:r.querySelector("[data-product-description]"),price:r.querySelector("[data-product-price]"),link:r.querySelector("[data-product-link]")};n.replaceChildren(...o.map(Vi)),(({root:e,onChange:t})=>{var n;const r=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(Ui),o=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!r||!i||!o.length)return;const a=o.length,s=[o[a-1].cloneNode(!0),...o,o[0].cloneNode(!0)];let d=1,l=null,c=0,u=!1;const p=e=>{const t=s[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,o=(r.clientWidth-t)/2-d*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${o+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{d=e,p(n),s.forEach((e,t)=>e.classList.toggle("is-active",t===d)),null==t||t((d-1+a)%a)},g=()=>{0===d?v(a,!1):d===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*r.clientWidth?-Math.sign(c):0;l=null,c=0,v(d+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...s),i.addEventListener("transitionend",e=>{e.target===i&&g()}),r.addEventListener("pointerdown",e=>{g(),l=e.clientX,r.setPointerCapture(e.pointerId),p(!1)}),r.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),r.addEventListener("pointerup",h),r.addEventListener("pointercancel",h),r.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:r},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),r&&(r.href=i.link)})(a,o[e])}),m("Carousel mounted",{items:o.length})}catch(t){y("Carousel could not be rendered",t),e.replaceChildren()}else y("Carousel feed url is missing or not a valid https url",{url:t})}),Ji="default",Yi=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r,i,o,a,s;const d=document.querySelector(`#${e.targetId}`),{native:l}=e;if(!l||!d)return;const{desc2:c}=l,u=null==c?void 0:c.toLowerCase(),p=((e,t)=>{const n=_($),r=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))&&!["shopping"].includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=c?c:Ji),v=(null!=p?p:u)||Ji,g=(null===(n=l.video)||void 0===n?void 0:n.content)?`${v}-video`:v,h=(e=>{var t;if(e)return null!==(t=vi[e])&&void 0!==t?t:e})(null===(r=t.pageContext)||void 0===r?void 0:r.publisher);try{const{schema:n,adjustment:r}=yield mi(g,h,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),c=r?Ti(n,r):n,u=Wi(c),p={publisher:h,pageType:null===(o=t.pageContext)||void 0===o?void 0:o.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a",pulse:t.pulse},m=u(l,p),{enabled:y=!0}=null!==(s=t.nativeTrackingConfig)&&void 0!==s?s:{};pi(e.targetId,m,p,()=>{Yr(e.targetId),Si({container:d,native:l,type:v,publisher:h}),y&&ri(e,p)})}catch(e){m("Failed to render native ad from config",{error:e})}}),Xi="explicit",Qi="dom-discovered",Zi=e=>`${Math.max(0,Math.round(e))}px`,eo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},to=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const r=e[t];n.style.setProperty(t,r)}},no=()=>{const{pageSectionsSelectors:e}=A.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=eo(t);to({"--advertory-header-height":Zi(n)})})(e.header)},ro=()=>{const e=We();if(!e)throw new Error("Ad server driver is not set, pass a driver to init()");return e};let io=[];const oo=["takeover","wallpaper"],ao=(e,t)=>{var n,r;const{initNativeAd:i}=A.getHandlers();null==i||i(e,null!==(r=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==r?r:A.get())},so=e=>{const t=(e=>{var t;const n=S.getData("alertoryConfigKeywords"),{queryConfig:r,placements:i,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:y}=e,f=null!==(t=null==r?void 0:r.batchSize)&&void 0!==t?t:x;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:i,tcf:o,queryConfig:Object.assign(Object.assign({},r),{batchSize:f})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.19.0-inv-2777.4",siteConfig:e,renderNativeAd:ao,alertoryConfig:t}},lo=()=>s(void 0,void 0,void 0,function*(){yield ro().setTargeting()}),co=e=>s(void 0,void 0,void 0,function*(){var t,n,r,i;const o=ro(),a=null!==(n=yield null===(t=o.adjustPlacementsBeforeRequest)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:e;(e=>{const t={targetIds:new Set(e.map(rt)),filledTargetIds:new Set,isFilled:!1};t.targetIds.forEach(e=>{Kt[e]=t})})(a.map(({targetId:e})=>e)),null===(r=o.definePlacements)||void 0===r||r.call(o,a),yield null===(i=o.requestPlacements)||void 0===i?void 0:i.call(o,a)}),uo=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:r}}=A.get(),{requestThreshold:i,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[r];a&&(m("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:s}),yield Jt(a,null!=i?i:s)),a&&(null==o?void 0:o.scroll)&&(m("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=o.scroll.toString())}),po=e=>e.some(({targetId:e})=>oo.some(t=>e.includes(t))),vo=e=>s(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,r]=(e=>e.reduce(([e,t],n)=>{var r;return(null===(r=null==n?void 0:n.finnBlink)||void 0===r?void 0:r.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=x}={},pageContext:{deviceType:r}}=A.get(),i=$t(e),o=Object.keys((null==t?void 0:t[r])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...an(s,n)]})(r);for(const e of i)po(e)?(m("core loadAds without lazy loading",{placementsToLoad:e}),yield co(e)):e.length&&(m("core loadAds with lazy loading",{placementsToLoad:e}),yield go(e));const{finnBlink:o}=A.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-1NNCUzEK.js");yield e(n)}}),go=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=A.get(),r=[];if(!t)return m("lazy load is not enabled",{placements:e}),void(yield co(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{m("lazy load is enabled - handler start",{loadedTargetIds:r,placements:e});const i=e.every(e=>r.includes(e.targetId)),o=e.map(e=>e.targetId);!i&&r.push(...o),!i&&co(e),m("lazy load is enabled - handler stop",{loadedTargetIds:r,placements:e,arePlacementsLoaded:i,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(m("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),ho=()=>s(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>s(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=>s(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;(e=>{const t=rt(e),n=Kt[t];n&&!n.isFilled&&(n.filledTargetIds.add(t),n.filledTargetIds.size<n.targetIds.size||(n.isFilled=!0,window.dispatchEvent(new CustomEvent(Vt,{detail:{targetIds:Array.from(n.targetIds)}}))))})(e.targetId);const t=io.find(({targetId:t})=>t===e.targetId);t&&(yield uo(t,e),io=io.filter(e=>e.targetId!==t.targetId))})),yield ro().bindEvents(e)}),mo=(e,t)=>s(void 0,void 0,void 0,function*(){var n,r,i,o;if(m(`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 m("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:a,disableAds:s,reloadExistingAds:d,renderFinnBlinkPlacements:l,contextSelector:c}=null!=t?t:{},u=Object.keys(null!=e?e:{}).length>0;let p=[];if(s)return gt(),io=[],ht(),[];if(a&&(p=null!==(r=gt())&&void 0!==r?r:[]),a&&!u)return[];if(a&&u&&(io=[],ht()),d&&(gt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{nt(e.id)})),yield mt(e),(null==e?void 0:e.pageSectionsSelectors)&&no(),yield lo(),ro().capabilities.tagDefinition===Qi)return m("Advertory update - dom-discovered driver finds its own placements, requesting the page"),yield null===(o=(i=ro()).requestPage)||void 0===o?void 0:o.call(i),io;const{clientSidePlacements:v,serverSidePlacements:g}=li(Lt(c)),h=[...v,...g];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>rt(e)));e.filter(e=>n.has(e)).forEach(e=>nt(e))})(p,h),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>rt(e)));e.filter(e=>!n.has(e)).forEach(e=>it(e))})(p,h);let y=v;return l&&(y=y.filter(e=>qe(e.targetId))),ui(g,A.get()),y.length>0&&(io=[...io,...y.map(e=>Object.assign({},e))],ro().capabilities.refresh&&(cn(y),pn(y)),yield vo(y)),io}),yo=(e,t,n)=>s(void 0,void 0,void 0,function*(){var r,i;He=n,A.set(e),A.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:o,kilkaya:a,rightColumnSplit:d,finnBlink:l}=e;S.initialize(),window.addEventListener("message",Ht,!1);const[c]=yield Promise.allSettled([n.setup(),me(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=A.get();(yield H(t,n,r,"gpt-endpoint"))&&(yield Ie(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:r,countryCode:i}}=A.get(),{getConsentAsync:o}=z(n,0,i),a=yield o();if(e&&t&&a){if(yield Ie(t),document.querySelector(`.${Un}`))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(Un)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),U(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=A.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ie(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(m("Driver has been set up"),null==o?void 0:o.enabled){const{loadNorstat:e}=yield import("./index-BMR06ZGu.js");yield e()}if(m("Libraries have been loaded and trackers have been set"),no(),yield ho(),yield lo(),m("Page options have been set"),so(e),m("Advertory is setup on window"),n.capabilities.tagDefinition===Qi)return yield null===(r=n.requestPage)||void 0===r?void 0:r.call(n),void m("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=li(Lt());if(io=u,ui(p,e),n.capabilities.refresh&&(cn(io),pn(io)),yield vo(io),m("Ads has been loaded",io),zn(io),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-1NNCUzEK.js");yield t(null===(i=null==e?void 0:e.pageContext)||void 0===i?void 0:i.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield import("./index-CbaMD1iB.js");t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield import("./index-DiIBjZjQ.js");yield t(e)}}),fo=(e,t,n)=>s(void 0,void 0,void 0,function*(){m(`Received configuration passed to Advertory: ${JSON.stringify(e)}`),yield((e,t,n)=>s(void 0,void 0,void 0,function*(){var r,i;const{initConsentManager:o,getConsentAsync:a}=z(e.tcf,null===(r=e.pageContext)||void 0===r||r.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),s=yield ut(e);yield Vn(),yield Hn(o),yield Hn(a),m("TCF resolved successfully"),yield yo(s,t,n),m("Run function resolved successfully")}))(e,t,n)}),wo={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"}},bo=["sponsor","seamless"],xo=["shopping"],Co=(e,t,n,r)=>{var i;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:C,customBody5:A,customIcon1:I,customIcon2:E,customDisplayUrl1:S,customDisplayUrl2:T}=e,k=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:k(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=bo.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=r.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return k(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=u?u:g)&&void 0!==i?i:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=C?C:"",customBody5:null!=A?A:"",logo2:k(E),previewVideoSrc:null!=S?S:"",feedUrl:null!=T?T:""},t)},Ao=(e,t)=>{const n=_($),r=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))&&!xo.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Io=(e,t,n,r)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:r,pageType:o}=t,a=r&&Object.values(i).includes(r);n&&a&&Gr(r,e,Jr.NATIVE_AD,o)})(o,n),r())},Eo=(e,t,n)=>{var r;const i=((e,t,n)=>{var r;const{displayTemplates:i,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(r=Ao(e.targetId,l))&&void 0!==r?r:c,p=wo[t.language||R.NO],v=Co(s,p,d,t);return(s.video?o[u]:i[u]||i.default)(v,t)})(e,t,n);Io(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&ri(e,t)});const o=document.querySelector(`#${e.targetId}`);o&&Gi(o,null===(r=e.native)||void 0===r?void 0:r.customDisplayUrl2)},So=e=>(t,n)=>{var r;const{targetId:i}=t,o=document.querySelector(`#${i}`);if(!o)return;const a=e.getOptions(null!=n?n:{});Eo(t,a,e.templates),null===(r=e.postProcess)||void 0===r||r.call(e,t,o)},To=/_\d+$/,ko=e=>e.replace(To,""),Oo=()=>{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};class Po{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const jo=9826;class Lo{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=A.get();if(t){return{"aa-sch-supply_type":`app_${e===Ct?"phone":At}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=yn("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield fn(A.get())})}isTrackingForbidden(){return s(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=jo}={}}=A.get();return"true"===L("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=A.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get(),{getConsentAsync:r}=z(e,0,n);return{"aa-sch-cmp_advertising":(yield r())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=A.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 No=new Lo;function $o(e=!1){var t,n;const r=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=br();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:r.includes("hermes"),appMode:e?"hybrid":"notinapp"}}No.prepare.bind(No);const _o=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function qo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",_o.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Fo extends Lo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=A.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=A.get(),{OS:n,isHybridApp:r}=$o(t);return{"no-sno-apptype":n&&e&&r?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return qo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:r}}=A.get(),i=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":`${i.split("_").pop()||i}_${"article"===r?"article":"front"}`}}}const Ro=new class extends Fo{prepare(e){return s(this,void 0,void 0,function*(){var t,n,r,i,o,a,s;const d=A.get(),l=null!==(r=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},c=null!==(a=null===(o=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Po;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Q(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(fe()).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({},ye(R.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Mo=Ro.prepare.bind(Ro);class Do extends Lo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=A.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return{width:e||n||0,height:t||r||0}}(),t={width:null!==(r=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==r?r:0,height:null!==(o=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==o?o:0};var n,r,i,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=A.get(),{appMode:t,mobileOS:n}=$o(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:r}}=A.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"===r?"article":"front"}`}}}const Bo=new class extends Do{prepare(e){return s(this,void 0,void 0,function*(){var t,n,r,i,o,a;const d=A.get(),l=null!==(r=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},c=null!==(a=null===(o=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new Po;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Q(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(fe()).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"===yn("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({},ye(R.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},zo=Bo.prepare.bind(Bo),Ho=[];let Wo=e=>{Ho.push(e)};const Uo=e=>{Wo(e)},Vo="ad-loaded",Ko="disable-cogwheel",Go={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},Jo=e=>{const{apntag:t,bus:n}=e,{siteEvents:r,initNativeAd:i}=A.getHandlers(),o=Object.assign(Object.assign({},Go),r),a=[];return{adRequested:()=>{n.emit("adRequested"),o.adRequested()},adAvailable:e=>s(void 0,void 0,void 0,function*(){var t,r,a,s,d,l;m("core adAvailable start",{adObj:e,isFullscreenScrollAd:ke(e),isFinnBlink:qe(e.targetId),isNativeAd:Oe(e),isMediation:hn(e),isTakeoverAd:je(e),isCollapseAd:$e(e),isWallpaperAd:Ne(e)});const c=null===(a=null===(r=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===r?void 0:r.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(hn(e)&&c&&(null===(s=c[1])||void 0===s?void 0:s.rtb)&&(e.banner=null===(l=null===(d=c[1])||void 0===d?void 0:d.rtb)||void 0===l?void 0:l.banner),ke(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return Sa});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:v}=A.get();if(Me(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-CVKnojc-.js");e()}if(ke(e)&&!qe(e.targetId)){m("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 Sa});t(e,v)}if(!Oe(e)||hn(e)||qe(e.targetId)||null==i||i(e,A.get()),je(e)&&!$e(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-OM5E1rRz.js");t(e.targetId),yield n(e)}if(Ne(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return et});t(()=>Uo(()=>window.apntag.showTag(e.targetId)),p),S.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&S.setData("horseshoe",{isAvailable:!0}),o.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),m("core adAvailable stop",{adObj:e,isFullscreenScrollAd:ke(e),isFinnBlink:qe(e.targetId),isNativeAd:Oe(e),isMediation:hn(e),isTakeoverAd:je(e),isCollapseAd:$e(e),isWallpaperAd:Ne(e)})}),adLoaded:e=>s(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:r,wallpaper:s,adScaleConfig:d,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=A.get(),v=document.getElementById(e.targetId);if(qe(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-BBTSvTq_.js");t(e)}if(a.includes(e.targetId)&&Oe(e)&&(null==i||i(e,A.get()),Rn({adObj:e})),!a.includes(e.targetId)&&hn(e)&&a.push(e.targetId),$e(e)&&tt(e.targetId),je(e)){const{modifyTakeoverIframe:n}=yield import("./index-OM5E1rRz.js");n(t,e.targetId)}if((e=>ze(e,Ee.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-CGqGPoFg.js");t(e)}if((e=>ze(e,Ee.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-CGqGPoFg.js");t(e)}if(Pe(e)){const{applyFullwidthFormat:t}=yield import("./index-CGqGPoFg.js");t(e)}ln(e,n),(null==r?void 0:r.clearProbableDimensionsEnabled)&&it(e.targetId);if(S.getData("horseshoe").isAvailable&&(null==s?void 0:s.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return et});t(e.targetId)}if(null==d?void 0:d.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-ClHtnty4.js");t(e),n(e)}if(o.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return ni}),n=new t(A.get(),e);n.trackLoad(),n.trackImpression()}Yr(e.targetId),v&&(v.classList.add(Vo),(e=>{var t,n;const{pageSectionsSelectors:r}=A.get(),i=null==r?void 0:r.mainFirstColumn,o=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),Rn({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const r=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;r&&((e,t)=>{const{height:n,width:r,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&r&&(t.dataset.adSizes=`[${r},${n}]`)})(e,r)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:Mn(e)}}))}),adNoBid:e=>s(void 0,void 0,void 0,function*(){if(tt(e.targetId),je(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return qn});yield t(e)}o.adNoBid(e)}),adError:(e,t)=>s(void 0,void 0,void 0,function*(){if(je(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return qn});yield e(t)}o.adError(e,t)}),adCollapse:()=>{o.adCollapse()},adRequestFailure:e=>s(void 0,void 0,void 0,function*(){tt(e.targetId),o.adRequestFailure(e)}),adBadRequest:e=>s(void 0,void 0,void 0,function*(){tt(e.targetId),o.adBadRequest(e)}),adLoadedMediated:e=>o.adLoadedMediated(e),adNoBidMediated:e=>{o.adNoBidMediated(e)}}},Yo=e=>{const{targetId:t,allowedFormats:n}=e,r=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(vn(t)),i=(e=>1===e[0]&&1===e[1])(r),o={sizes:[r],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(o.native=void 0),o},Xo=()=>(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),Qo=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Zo=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:r=!1}={},pageContext:{countryCode:i}}=A.get(),o=[`${X(i)}-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",...r?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},ea="advertory-fullscreen-scroll",ta="advertory-fullscreen-scroll-wrapper",na="fullscreen-scroll-in-screen",ra="in-screen",ia=e=>e.includes("snoap.no"),oa=e=>{var t,n,r,i,o;return!!(null===(o=null===(i=null===(r=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===r?void 0:r.adResponse)||void 0===i?void 0:i.ads[1])||void 0===o?void 0:o.rtb)},aa=bn([],()=>{const e=({width:e,height:t})=>{var n;const r=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!r)return;const{clientWidth:i,clientHeight:o}=r,a=e/i,s=t/o;r.style.transform=`scale(${a},${s})`,r.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}),sa=e=>{const t=bn([],()=>{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 r=n.contentDocument.createElement("style");r.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(r),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},da=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},la=[],ca={},ua=(e,t)=>{var n;const r=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>pa(e,r),{}),o=ga(e);i.observe(e),r&&(ca[o]=ya(e,null==t?void 0:t.options))},pa=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const r=ga(e);n?(va(r,n),ha(e,r,t)):(va(r,n),ma(e,r,t))})},va=(e,t)=>{var n,r;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const o=t?"showFullscreen":"hideFullscreen";null===(r=i.contentWindow)||void 0===r||r.postMessage(`advertory:${o}-${e}`,"*")},ga=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},ha=(e,t,n)=>{e.classList.add(ra),document.body.classList.add(na),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),la.includes(t)||la.push(t),n&&window.addEventListener("scroll",ca[t],{passive:!0})},ma=(e,t,n)=>{la.includes(t)&&(n&&window.removeEventListener("scroll",ca[t]),document.body.classList.remove(na),e.classList.remove(ra),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},ya=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:r=[".skyscraper_r"],headerZIndex:i=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),r.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&fa(e,o,i,0),a.length&&fa(e,a,i,40)}},fa=(e,t,n,r)=>{const i=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-r:(o+t-(a+i))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};Wn('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 wa="left";let ba=null;const xa=(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=`(${aa})()`,e+t.outerHTML})(n),n=da(n),n=(e=>{if(ia(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=sa(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ia(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)),ia(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)),oa(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},Ca=()=>{ba=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,r=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${r}px`)},Aa=()=>{ba||(ba=window.requestAnimationFrame(Ca))},Ia=(e,t)=>{var n,r,i,o,a;const{pageContext:{countryCode:s,deviceType:d}}=A.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:r=1302,backgroundColor:i="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=r/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(r=null==c?void 0:c.overlayStyles)&&void 0!==r?r:{},d);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;ua(p,t),u.className=ea,ua(p,t),u.className="advertory-fullscreen-scroll";const v=ze(e,Ee.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=ta,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:wo[s].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===wa&&(u.dataset.moveCogwheelToTheLeft="true"),Aa(),window.addEventListener("resize",Aa),null===(o=window.visualViewport)||void 0===o||o.addEventListener("resize",Aa),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",Aa)},Ea=e=>{if(!(null==e?void 0:e.classList.contains(ea)))return;e.classList.remove(ea),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(ta))&&(t.classList.remove(ta),t.classList.remove(ra))};var Sa=Object.freeze({__proto__:null,createFullscreenScrollAd:Ia,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,r=oa(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,r=oa(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[r].rtb;i&&(i.banner.content=t)})(e,xa(t,e))},undoFullscreenScrollContainer:Ea});const Ta=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:r,deviceType:i},fullscreenScroll:o,appearanceConfig:a,placements:s}=A.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=A.getHandlers(),{getConsentAsync:l}=z(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:r=>{const i=Xo(),{prebid:{relevantCallbackTimeout:o}={}}=A.get(),a="relevantCb"===r&&o?o:n[r].timeout,s=setTimeout(()=>{!n[r].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${r}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Xo(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Xo();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:h}=v;(()=>{const e=Qo();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{m("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return m("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Qo();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};m("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},we(n)),Zo(h,g))),m("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},we(n)),Zo(h,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{m("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=>{ka(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const v=p.id,g=document.getElementById(v);if(!g)return;const h=null===(t=null==s?void 0:s[i])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==h?void 0:h.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});m("prebid directRenderFn ad info",{targetId:v,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}),Wt(g,y,()=>{var e;const t=c(l),n=ke(f);if(m("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)m("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),Ia(f,o),(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 r=new MutationObserver(()=>{n()&&r.disconnect()});r.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),r&&g.style.setProperty("--advertory-political-box-offset","30px");else{m("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),Ea(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(Vo),(null==u?void 0:u.creativeId)&&Xr(v,g,Number(null==u?void 0:u.creativeId))})}}),m("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=>{ka(e,d)},directRenderFn:()=>{}})})}),ka=(e,t)=>{var n;const{divId:r,native:i,bid:o}=e,a=document.querySelectorAll(`[id^=${r}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:s},A.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},Oa="_adchoices_non_rtb",Pa=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Oa}={}}={}}=A.get();return`${ko(e)}${t}`},ja=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>tt(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Pa(e.invCode)})))(e));let La="";const Na=new Map;let $a;const _a=()=>{var e;$a=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=$a,Wo=e=e=>window.apntag.anq.push(e),Ho.splice(0).forEach(t=>e(t))},qa=()=>$a,Fa=()=>{const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get();return H(e,t,n,"loadPlacements")},Ra={name:"xandr",capabilities:{tagDefinition:Xi,deferredRequest:!0,deferredRender:!0,refresh:!0},messageOrigins:["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"],setup:()=>s(void 0,void 0,void 0,function*(){_a(),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get();(yield H(e,t,n,"xandr-endpoint"))||$a.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=A.get();yield Ie(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){if(q())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=A.get(),i=yield H(t,n,r,"prebid");(null==e?void 0:e.enabled)&&i&&(yield Ie(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=A.get(),{preparePageOptions:t}=A.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=A.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"]}})(),r=yield s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=A.get();return(yield H(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),r));(e=>{const t=S.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Bn(e);S.setData("alertoryConfigKeywords",n)})(i.keywords),Uo(()=>qa().setPageOpts(i))}),enrichPlacementsAfterDiscovery:e=>{const{pageSetup:{tag:t}={}}=A.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(La!==window.location.pathname&&(Na.clear(),La=window.location.pathname),e.map(e=>{var t;const n=ko(e.invCode),r=null!==(t=Na.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=A.get();return`${e}-${t}`})()}-count`]=r,Na.set(n,r+1),e})):e},adjustPlacementsBeforeRequest:e=>s(void 0,void 0,void 0,function*(){const t=yield Fa();return ja(e,t)}),definePlacements:e=>{const{prepareTag:t}=A.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const r=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==r&&-1===i?-1:-1===r&&-1!==i?1:r-i})})(e).forEach(e=>{m("xandr definePlacements",{placement:e});const r=Vr(e);if(Kr(e.targetId)){const i=t(r),o=(e=>{const{allowedFormats:t,invCode:n,keywords:r,sizes:i}=e;return{adTypes:t,invCode:n,keywords:Dn(r),sizes:i}})(i);n.push(o),Uo(()=>(m("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),qa().defineTag(i)))}}),(e=>{var t,n,r;(null===(r=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===r?void 0:r.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>s(void 0,void 0,void 0,function*(){const{prebid:t}=A.get();if((null==t?void 0:t.enabled)&&(yield Fa())&&!q())return m("xandr requestPlacements prebid enabled"),void(yield Ta());m("xandr requestPlacements without prebid enabled");const n=e.filter(({targetId:e})=>Kr(e)).map(({targetId:e})=>e);n.length&&Uo(()=>(m("xandr requestPlacements",{placementsIdsToLoad:n}),qa().loadTags([...n])))}),bindEvents:e=>s(void 0,void 0,void 0,function*(){var t;yield(t={apntag:qa(),bus:e},s(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=Jo(t);Uo(()=>{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)})}))}),clear:()=>{Uo(()=>window.apntag.clearRequest())},render:e=>{Uo(()=>(m("core showTag",{id:e}),window.apntag.showTag(e)))},refresh:(e,{keepPreviousSizes:t,applyReloadKeyword:n}={})=>{for(const e of null!=t?t:[])window.apntag.modifyTag(e.targetId,Yo(e));Uo(()=>{((e,t)=>{if(!t)return;const{pageContext:{countryCode:n}}=A.get();window.apntag.setKeywords(e,{[`${X(n)}-adreload`]:"1"},{overrideKeyValue:!0})})(e,n),window.apntag.refresh(e)})},resizeCreative:(e,t,n)=>{const r=document.getElementById(`div_utif_${e}`);if(!r)return;const{apntag:i}=window,[o,a]=t;if(!r.dataset.lockedsize&&a&&o)r.style.width=`${o}px`,r.style.height=`${a}px`,n&&(i.resizeAd(r.id,[o,a]),r.dataset.lockedsize="true",r.dataset.lockedwidth=o.toString(),r.dataset.lockedheight=a.toString());else if(null==r?void 0:r.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=r.dataset;e&&t&&i.resizeAd(r.id,[e,t])}}},Ma=["omni.se","www.omni.se"],Da=e=>String(null!=e?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Ba=e=>{const t=String(null!=e?e:"").trim();if(!t)return"#";if(t.startsWith("/")&&!t.startsWith("//"))return Da(t);try{const e=new URL(t);if("http:"===e.protocol||"https:"===e.protocol)return Da(e.toString())}catch(e){}return"#"},za=(e,t)=>{if(!e.img)return"";const n=[e.imgWidth,e.imgHeight].filter(e=>"number"==typeof e&&e>0).map((e,t)=>0===t?` width="${e}"`:` height="${e}"`).join("");return`<img class="${t}" src="${Ba(e.img)}" alt="${Da(e.imgAltText||e.title)}"${n} loading="lazy" />`},Ha=({containerId:e})=>{var t;if("undefined"==typeof document)return"large";const n=null===(t=document.getElementById(e))||void 0===t?void 0:t.closest("[data-native-layout]");return"small"===(null==n?void 0:n.dataset.nativeLayout)?"small":"large"},Wa={CONTENT_DISPLAY:e=>{import("./styles-Dwfxd72Z.js");const t=Ha(e),n=e.description||e.adContent||e.desc2;return`<article class="advertory-omni-native advertory-omni-native-content-display advertory-omni-native--${t}"><div class="advertory-omni-native__label"><span>Annons</span><div id="${Da(e.containerId)}-button"></div></div><a class="ad-link advertory-omni-native__link" href="${Ba(e.url)}" target="_blank" rel="noreferrer noopener"><div class="advertory-omni-native__content"><div class="advertory-omni-native__copy"><h3>${Da(e.title)}</h3>${n?`<p>${Da(n)}</p>`:""}<small>Extern länk${e.sponsoredBy?` | ${Da(e.sponsoredBy)}`:""}</small></div>${za(e,"advertory-omni-native__image")}</div></a></article>`},NATIVE_CLASSIC:e=>{import("./styles-Dwfxd72Z.js");const t=Ha(e),n=(e=>{const t=String(null!=e?e:"").trim();if(!t||t.startsWith("//")||!t.startsWith("/")&&!/^https?:\/\//i.test(t))return null;try{const e="undefined"==typeof window?"https://omni.se":window.location.origin,n=new URL(t,e);if(!["http:","https:"].includes(n.protocol)||n.username||n.password||n.pathname.startsWith("//"))return null;const r=!n.port&&Ma.includes(n.hostname);return n.origin===e||r?`${n.pathname}${n.search}${n.hash}`:null}catch(e){return null}})(e.url),r=n?`href="${Da(n)}" data-advertory-internal-link`:`href="${Ba(e.url)}" target="_blank" rel="noreferrer noopener"`;return`<article class="advertory-omni-native advertory-omni-native-brand-studio advertory-omni-native--${t}"><div class="advertory-omni-native__label"><span class="advertory-omni-native__label-text"><span class="advertory-omni-native__label-vignette">Annons · </span>${Da(e.sponsoredBy)}</span><div id="${Da(e.containerId)}-button"></div></div><a class="ad-link advertory-omni-native__link" ${r}><div class="advertory-omni-native__content"><div class="advertory-omni-native__copy"><h3>${Da(e.title)}</h3>${e.description?`<p>${Da(e.description)}</p>`:""}</div>${za(e,"advertory-omni-native__image")}</div></a></article>`}},Ua={displayTemplates:{default:Wa.CONTENT_DISPLAY,content_display:Wa.CONTENT_DISPLAY,contentdisplay:Wa.CONTENT_DISPLAY,native:Wa.CONTENT_DISPLAY,brandstudio_native_ad:Wa.NATIVE_CLASSIC},videoTemplates:{default:Wa.CONTENT_DISPLAY,brandstudio_native_ad:Wa.NATIVE_CLASSIC}},Va={FRONT:"front"};Wn(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:auto}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const Ka=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),t("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:[e("span",{id:"advertory-splash-close-label"}),e("svg",{id:"advertory-splash-close-image",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e("path",{d:"M6 3l5 5-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})});var Ga="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",Ja="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";Wn(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const Ya=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Ga,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:Ja,width:"54",height:"54"})]}),{})]});Wn(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const Xa=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Ga,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:Ja,width:"54",height:"54"})]}),{})]});Wn(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:auto}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const Qa=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(Ka,{}),e(Ya,{}),e(Xa,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Za={prepareTag:e=>{var t;const{keywords:n,targetId:r,invCode:i,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=A.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=A.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(i,l),u=(e=>{const{pageContext:{countryCode:t}}=A.get(),{keywords:n,dynamicSizeWidthCheck:r}=e,i=`${X(t)}-adformat`,o=n?n[i]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Te)||window.innerWidth>=Te[e]);return{[i]:r?a:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=A.get(),n=`${X(t)}-targetid`;return e?{[n]:[e]}:{}})(r),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=Oo(),h=(e=>mn(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),m=((e,t)=>mn(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new Po).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${X(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=A.get();return yield t===R.SE?zo(e):Mo(e)}),siteEvents:r,initNativeAd:(e,t)=>{var n,r,o;if(null===(r=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===r?void 0:r.enabled)return void Yi(e,t);const{targetId:a}=e,s=document.querySelector(`#${a}`);if(!s)return;const{pageType:d=Va.FRONT,deviceType:l}=null!==(o=null==t?void 0:t.pageContext)&&void 0!==o?o:{},{nativeTrackingConfig:c,appearanceConfig:u}=null!=t?t:{},p={language:R.SE,publisher:i.OMNI,deviceType:l,pageType:d,nativeTrackingConfig:c,appearanceConfig:u};Eo(e,p,Ua),s.classList.add("advertory-omni-native-slot")}},es=((e,t,n)=>({init:r=>fo(Object.assign(Object.assign({},r),{siteSpecificConfig:n}),e,t),update:mo,renderNativeAd:ao,getVideoPPIDs:Ce,createInitNativeAd:So,getVideoAdsConfig:Fr}))(Za,Ra,o);export{Qa as $,Jr as A,Pn as B,R as C,wo as D,jn as E,$n as F,oa as G,da as H,Qr as I,Ko as J,Rn as K,ke as L,Ia as M,i as N,Oe as O,Va as P,xr as Q,Vt as R,Ar as S,wn as T,Cr as U,Mn as V,ze as W,Ee as X,Pt as Y,es as Z,s as _,Ae as a,tt as b,A as c,a as d,Kn as e,Gr as f,rt as g,H as h,Wn as i,be as j,eo as k,m as l,to as m,Zi as n,ei as o,te as p,Gt as q,nt as r,Jt as s,Ie as t,Ut as u,dn as v,Zr as w,wt as x,Nn as y,_n as z};
|