@schibsted/advertory 3.19.0 → 3.19.1-no-issue.0

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.
Files changed (434) hide show
  1. package/ad-native/cjs/index.js +1 -1
  2. package/ad-native/es/index.js +1 -1
  3. package/aftenposten/cjs/index.js +1 -1
  4. package/aftenposten/es/_auto-entry_aftenposten-Vn4OrgOl.js +1 -0
  5. package/aftenposten/es/{events-xQDHepfd.js → events-CeyCFgxs.js} +1 -1
  6. package/{aftonbladet/es/identity-facade-YCmvHQL4.js → aftenposten/es/identity-facade-DRBzts4a.js} +1 -1
  7. package/aftenposten/es/index-0zXAXWpB.js +1 -0
  8. package/aftenposten/es/{index-DbMF7ZzI.js → index-9o7orc-q.js} +1 -1
  9. package/aftenposten/es/{index-BR2fDQ3t.js → index-CMYjn7eh.js} +1 -1
  10. package/aftenposten/es/{index-BFDpivf7.js → index-Cns_J_3W.js} +1 -1
  11. package/aftenposten/es/{index-CEc919BP.js → index-D4vyY4gu.js} +1 -1
  12. package/aftenposten/es/{index-C8BGU0H-.js → index-DAjDUdBH.js} +1 -1
  13. package/aftenposten/es/{index-DoNUR1U3.js → index-JUNUnnnP.js} +1 -1
  14. package/aftenposten/es/{index-DdQ7ku5W.js → index-iKPz3HoX.js} +1 -1
  15. package/aftenposten/es/index.js +1 -1
  16. package/aftenposten/es/{styles-CCqSli4X.js → styles-BMhcQrU_.js} +1 -1
  17. package/aftenposten/es/{styles-DWHjxzlg.js → styles-BT_J6du7.js} +1 -1
  18. package/aftenposten/es/{styles-CJ54OWq6.js → styles-BsdsYFpi.js} +1 -1
  19. package/aftenposten/es/{styles-DuXHeE-l.js → styles-C0oQezYv.js} +1 -1
  20. package/aftenposten/es/{styles-BfymPmLm.js → styles-CJxyzzB9.js} +1 -1
  21. package/aftenposten/es/{styles-BNvjI7Zm.js → styles-CYqcKpLw.js} +1 -1
  22. package/aftenposten/es/{styles-Cmayky32.js → styles-Cd9aeErN.js} +1 -1
  23. package/aftenposten/es/{styles-K7tpE8_Y.js → styles-D37BuwXO.js} +1 -1
  24. package/aftenposten/es/{styles-C-DhtppN.js → styles-DHCIigzf.js} +1 -1
  25. package/aftenposten/es/{styles-Cu6_bWyx.js → styles-DVr2OkHK.js} +1 -1
  26. package/aftenposten/es/{styles-D_weffQF.js → styles-Ds2Fra1z.js} +1 -1
  27. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-Mzjbp4ha.js +1 -0
  28. package/aftenpostenv2/es/{events-DtEgEZu5.js → events-BB8CEh1V.js} +1 -1
  29. package/aftenpostenv2/es/{identity-facade-Cqco51UF.js → identity-facade-DdMiGw7k.js} +1 -1
  30. package/aftenpostenv2/es/{index-1bMBECFZ.js → index-Bygbyp5F.js} +1 -1
  31. package/aftenpostenv2/es/{index-DSjPd2s4.js → index-C4vto1JS.js} +1 -1
  32. package/aftenpostenv2/es/{index-DnJSE16l.js → index-CR1kP8Gy.js} +1 -1
  33. package/aftenpostenv2/es/{index-Bm7xOUah.js → index-CTF8HW1j.js} +1 -1
  34. package/aftenpostenv2/es/{index-FNm09Hu5.js → index-DeFXGCqe.js} +1 -1
  35. package/aftenpostenv2/es/index-DuRD73YM.js +1 -0
  36. package/aftenpostenv2/es/{index-gy-9pNJD.js → index-iHJr-lBd.js} +1 -1
  37. package/aftenpostenv2/es/{index-rvkEfm4F.js → index-tRl9Q0Ot.js} +1 -1
  38. package/aftenpostenv2/es/index.js +1 -1
  39. package/aftenpostenv2/es/{styles--ODSHkGx.js → styles-BnLpTflM.js} +1 -1
  40. package/aftenpostenv2/es/{styles-fzCBUGam.js → styles-C-qyQd_V.js} +1 -1
  41. package/aftenpostenv2/es/{styles-CYRnGCOf.js → styles-C33jJuT9.js} +1 -1
  42. package/aftenpostenv2/es/{styles-DJAn92kg.js → styles-CLMXknRj.js} +1 -1
  43. package/aftenpostenv2/es/{styles-DrPAORY8.js → styles-COtVIV0q.js} +1 -1
  44. package/aftenpostenv2/es/{styles-BQirFtLP.js → styles-CYT10c0D.js} +1 -1
  45. package/aftenpostenv2/es/{styles-CoE8ldJR.js → styles-CeSRdnd7.js} +1 -1
  46. package/aftenpostenv2/es/{styles-3ZwXsuxG.js → styles-DbA_tTha.js} +1 -1
  47. package/aftenpostenv2/es/{styles-v_gZvJl3.js → styles-OAroClbJ.js} +1 -1
  48. package/aftenpostenv2/es/{styles-BZw7HTv7.js → styles-tp94MiZP.js} +1 -1
  49. package/aftenpostenv2/es/{styles-Cx18n8ID.js → styles-x09rDMy6.js} +1 -1
  50. package/aftonbladet/cjs/index.js +1 -1
  51. package/aftonbladet/es/_auto-entry_aftonbladet-CqN7rodq.js +1 -0
  52. package/aftonbladet/es/{events-Dn4HgHY0.js → events-ezGBbqNF.js} +1 -1
  53. package/{aftenposten/es/identity-facade-B1A7Z8yI.js → aftonbladet/es/identity-facade-wHlto_Ud.js} +1 -1
  54. package/aftonbladet/es/{index-Hmt-WETp.js → index-9wdC_Vok.js} +1 -1
  55. package/aftonbladet/es/{index-D7tEeN2y.js → index-BAOAtMZc.js} +1 -1
  56. package/aftonbladet/es/{index-lHJ8rPdO.js → index-BIIK4yrq.js} +1 -1
  57. package/aftonbladet/es/{index-DxIRmf9j.js → index-D-krSRJ9.js} +1 -1
  58. package/aftonbladet/es/index-D8fkEt9y.js +1 -0
  59. package/aftonbladet/es/{index-C8L28Sbb.js → index-DBeFoQy1.js} +1 -1
  60. package/aftonbladet/es/{index-D-l1zaRE.js → index-KEUY716p.js} +1 -1
  61. package/aftonbladet/es/{index-CNoND9KG.js → index-gg-ve0B9.js} +1 -1
  62. package/aftonbladet/es/index.js +1 -1
  63. package/aftonbladet/es/{styles-C_NEx-3s.js → styles-BSPIx2Ae.js} +1 -1
  64. package/aftonbladet/es/{styles-D4M4fmOm.js → styles-B_wvSEjP.js} +1 -1
  65. package/aftonbladet/es/{styles-DuNRDVxB.js → styles-BjFWm14o.js} +1 -1
  66. package/aftonbladet/es/{styles-Dkb_Bh3e.js → styles-BvPoW36O.js} +1 -1
  67. package/aftonbladet/es/{styles-DkBKPNDs.js → styles-D2b8BFFx.js} +1 -1
  68. package/aftonbladet/es/{styles-4zXciFo4.js → styles-DXV5qBPw.js} +1 -1
  69. package/aftonbladet/es/{styles-BLS5TzS8.js → styles-DlHYj294.js} +1 -1
  70. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Dd4sZcVO.js +1 -0
  71. package/aftonbladetv2/es/{events-BcI_eHc7.js → events-Dq6yrM-q.js} +1 -1
  72. package/aftonbladetv2/es/{identity-facade-C2_1gsAa.js → identity-facade-DR2t3Cri.js} +1 -1
  73. package/aftonbladetv2/es/{index-BPVgqjSK.js → index-CGd0t9Er.js} +1 -1
  74. package/aftonbladetv2/es/index-Cj0ekcqV.js +1 -0
  75. package/aftonbladetv2/es/{index-C87hTI7W.js → index-CnXlL3iy.js} +1 -1
  76. package/aftonbladetv2/es/{index-D6cUOv7e.js → index-DDU3YskD.js} +1 -1
  77. package/aftonbladetv2/es/{index-BrbM5bYX.js → index-DGZf9IWe.js} +1 -1
  78. package/aftonbladetv2/es/{index-Deh_hDuT.js → index-DQ5TNO69.js} +1 -1
  79. package/aftonbladetv2/es/{index-7IyWH9Pi.js → index-Oad_bUKx.js} +1 -1
  80. package/aftonbladetv2/es/{index-DfiXnG3N.js → index-_D_vHN-t.js} +1 -1
  81. package/aftonbladetv2/es/index.js +1 -1
  82. package/aftonbladetv2/es/{styles-DoMnjSM2.js → styles-BxT51RW4.js} +1 -1
  83. package/aftonbladetv2/es/{styles-BK5VBwQb.js → styles-C-7kktuH.js} +1 -1
  84. package/aftonbladetv2/es/{styles-B17PRnLw.js → styles-CCEK-yfw.js} +1 -1
  85. package/aftonbladetv2/es/{styles-ClbFUK7m.js → styles-CncvQ9LP.js} +1 -1
  86. package/aftonbladetv2/es/{styles-CIwSexMs.js → styles-CogG1b6V.js} +1 -1
  87. package/aftonbladetv2/es/{styles-BVD-shyq.js → styles-DZ9kam-y.js} +1 -1
  88. package/aftonbladetv2/es/{styles-D5Hbe4BD.js → styles-LWyi66tm.js} +1 -1
  89. package/bt/cjs/index.js +1 -1
  90. package/bt/es/_auto-entry_bt-Ccop0hnP.js +1 -0
  91. package/bt/es/{events-YRqEmDeJ.js → events-C9smzS6u.js} +1 -1
  92. package/bt/es/{identity-facade-BjI4-cFT.js → identity-facade-C7nMMSdU.js} +1 -1
  93. package/bt/es/{index-B3i9CLRJ.js → index-BHMoIPNF.js} +1 -1
  94. package/bt/es/{index-BOCFWXjz.js → index-BJJUGnp9.js} +1 -1
  95. package/bt/es/{index-BMuNECOp.js → index-BzQOX2uO.js} +1 -1
  96. package/bt/es/index-CSAlJQlo.js +1 -0
  97. package/{sa/es/index-Bn65l6Sc.js → bt/es/index-CgL7wRll.js} +1 -1
  98. package/bt/es/{index-78QagF5C.js → index-D8bwNG1U.js} +1 -1
  99. package/bt/es/{index-vl1Q4LBE.js → index-DzJ-nX_N.js} +1 -1
  100. package/bt/es/{index-CJms3bV6.js → index-M7qqMSN6.js} +1 -1
  101. package/bt/es/index.js +1 -1
  102. package/bt/es/{styles-D8ovgsaK.js → styles-1Z-BvPXT.js} +1 -1
  103. package/bt/es/{styles-BByyc3sq.js → styles-BrjStVfz.js} +1 -1
  104. package/bt/es/{styles-D8GThw3e.js → styles-Brmnr4fX.js} +1 -1
  105. package/bt/es/{styles-BVlkZfXV.js → styles-CDtFKzcR.js} +1 -1
  106. package/bt/es/{styles-Qg4AW4zT.js → styles-CHemUSWo.js} +1 -1
  107. package/bt/es/{styles-CkzFP96P.js → styles-CPtXxSXd.js} +1 -1
  108. package/{sa/es/styles-D5V5ppDj.js → bt/es/styles-CirZ4ZUL.js} +1 -1
  109. package/bt/es/{styles-DQtRkDqG.js → styles-CqUUV1mP.js} +1 -1
  110. package/{sa/es/styles-DHZkBRdL.js → bt/es/styles-D9KvjWrW.js} +1 -1
  111. package/bt/es/{styles-Dsk0btPX.js → styles-Dt5i0Xnn.js} +1 -1
  112. package/btv2/es/_auto-entry_btv2-BZPnTHdb.js +1 -0
  113. package/{sav2/es/events-5-DW8DNa.js → btv2/es/events-BJWRHHwG.js} +1 -1
  114. package/{sav2/es/identity-facade-BROor3DB.js → btv2/es/identity-facade-C2w8eiwx.js} +1 -1
  115. package/btv2/es/{index-DFGzN5x9.js → index-BB5DsQ-G.js} +1 -1
  116. package/{omni/es/index-DzypmlB0.js → btv2/es/index-CT89wr2E.js} +1 -1
  117. package/btv2/es/{index-l1O-tlpN.js → index-D6YagkIP.js} +1 -1
  118. package/btv2/es/{index-CWZH5cCc.js → index-DMFC_FRe.js} +1 -1
  119. package/btv2/es/{index-DAFsfJ9t.js → index-c3PhaZ15.js} +1 -1
  120. package/btv2/es/index-ggMKpKiT.js +1 -0
  121. package/btv2/es/{index-C4AnfrKp.js → index-mTDiUf1y.js} +1 -1
  122. package/{vgv2/es/index-D00u_Vrz.js → btv2/es/index-sHbFMduy.js} +1 -1
  123. package/btv2/es/index.js +1 -1
  124. package/btv2/es/{styles-Dg9ALvok.js → styles--3zIpIDu.js} +1 -1
  125. package/btv2/es/{styles-BVRqiO2h.js → styles-CMtz4aXv.js} +1 -1
  126. package/{sav2/es/styles-DKWFSmJx.js → btv2/es/styles-CO28wwPA.js} +1 -1
  127. package/{sav2/es/styles-CfBbNztv.js → btv2/es/styles-CPRz1OC9.js} +1 -1
  128. package/btv2/es/{styles-CMKS_Jvj.js → styles-CTgcY2r_.js} +1 -1
  129. package/btv2/es/{styles-Ds8u5Def.js → styles-D0Ih-Yup.js} +1 -1
  130. package/{sav2/es/styles-CqS3_D5H.js → btv2/es/styles-DlOq8aXj.js} +1 -1
  131. package/{sav2/es/styles-D3AEgmZ7.js → btv2/es/styles-Z5qvHnjz.js} +1 -1
  132. package/btv2/es/{styles-uRz4QDyG.js → styles-uyoDGh5J.js} +1 -1
  133. package/btv2/styles.css +1 -1
  134. package/e24/es/_auto-entry_e24-BGXbriil.js +1 -0
  135. package/e24/es/{events-CwvQGu-m.js → events-S641kX9T.js} +1 -1
  136. package/e24/es/{index-DG9t2woh.js → index-BSVKjEkg.js} +1 -1
  137. package/e24/es/{index-Cmi93XZ-.js → index-BTvUeaQ_.js} +1 -1
  138. package/e24/es/{index-BbGstTBs.js → index-BU5r61zX.js} +1 -1
  139. package/e24/es/index-BWI6vRKE.js +1 -0
  140. package/e24/es/{index-Cy5SA-Ed.js → index-C4NsdduS.js} +1 -1
  141. package/e24/es/{index-DDX95Sij.js → index-CL_M3XJN.js} +1 -1
  142. package/e24/es/{index-D-uX9uoo.js → index-CQlSs7ya.js} +1 -1
  143. package/e24/es/{index-BmM9Q_Fm.js → index-DA1FI8Xw.js} +1 -1
  144. package/e24/es/index.js +1 -1
  145. package/e24/es/{styles-Cl1I905Q.js → styles-BKTOl866.js} +1 -1
  146. package/e24/es/{styles-Dwf1vw4U.js → styles-BbMz-kjy.js} +1 -1
  147. package/e24/es/{styles-B6xU6J45.js → styles-C1xnHR5U.js} +1 -1
  148. package/e24/es/{styles-ChBYY8bm.js → styles-C2IWitB8.js} +1 -1
  149. package/e24/es/{styles-BxvgdFG4.js → styles-CN3MLmiC.js} +1 -1
  150. package/e24/es/{styles-DEJwGPrm.js → styles-COubePoP.js} +1 -1
  151. package/e24/es/{styles-aNb4-iQ2.js → styles-CvFaf1Yc.js} +1 -1
  152. package/e24/es/{styles-qPuQBHOZ.js → styles-D5IpZTLl.js} +1 -1
  153. package/e24/es/{styles-CJzB5pSG.js → styles-DU17mD29.js} +1 -1
  154. package/e24/es/{styles-Do2kU3xu.js → styles-GVQUXqjF.js} +1 -1
  155. package/{tv4/es/styles-BDKGAK5o.js → e24/es/styles-I6iP52nH.js} +1 -1
  156. package/e24/es/{styles-Dflg9p-h.js → styles-OtGYatPS.js} +1 -1
  157. package/fotbollskanalen/cjs/index.js +1 -1
  158. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-Cis6u8nx.js +1 -0
  159. package/fotbollskanalen/es/{events-CWXuTPQI.js → events-CErQBDbx.js} +1 -1
  160. package/fotbollskanalen/es/{identity-facade-DjclF_1k.js → identity-facade-Cd0xFp-P.js} +1 -1
  161. package/fotbollskanalen/es/{index-B5X2tzCJ.js → index-0cTBXgu_.js} +1 -1
  162. package/fotbollskanalen/es/{index-B502oNgV.js → index-8-MxeSak.js} +1 -1
  163. package/fotbollskanalen/es/{index-UzsfNA_u.js → index-BNKhnB2X.js} +1 -1
  164. package/fotbollskanalen/es/{index-tOea9GR8.js → index-CfE2zRVA.js} +1 -1
  165. package/fotbollskanalen/es/index-D919tUfL.js +1 -0
  166. package/fotbollskanalen/es/{index-DrVft5FF.js → index-DWDobzw2.js} +1 -1
  167. package/fotbollskanalen/es/{index-_1063RUZ.js → index-D_m1tNzr.js} +1 -1
  168. package/fotbollskanalen/es/{index-DPO2qCL6.js → index-DnflSwwi.js} +1 -1
  169. package/fotbollskanalen/es/index.js +1 -1
  170. package/fotbollskanalen/es/{styles-DGEkhUjm.js → styles-BYAE0nuV.js} +1 -1
  171. package/fotbollskanalen/es/{styles-S1QWzSdb.js → styles-CjSxtkKA.js} +1 -1
  172. package/fotbollskanalen/es/{styles-CVCPktwj.js → styles-DWRKyKsH.js} +1 -1
  173. package/fotbollskanalen/es/{styles-B_dFAksr.js → styles-DoMARHz-.js} +1 -1
  174. package/fotbollskanalen/es/{styles-BijNP6ET.js → styles-N6QXZdBw.js} +1 -1
  175. package/godt/cjs/index.js +1 -1
  176. package/kilkaya/cjs/index.js +1 -1
  177. package/kilkaya/es/index.js +1 -1
  178. package/klart/cjs/index.js +1 -1
  179. package/koket/cjs/index.js +1 -1
  180. package/koket/es/_auto-entry_koket-DEi08GsD.js +1 -0
  181. package/koket/es/{events-mbYajTsn.js → events-D0jYcUeQ.js} +1 -1
  182. package/koket/es/{identity-facade-BDC_83uu.js → identity-facade-DGR2KXb0.js} +1 -1
  183. package/koket/es/{index-CcgdzAMk.js → index-BiN_j5yF.js} +1 -1
  184. package/koket/es/{index-Bxy5DWVd.js → index-COjdKOIC.js} +1 -1
  185. package/koket/es/{index-CXmUpEcC.js → index-CQvyfxy7.js} +1 -1
  186. package/koket/es/{index-Di7VhOpX.js → index-CZepXzSI.js} +1 -1
  187. package/koket/es/{index-BAq2NOWx.js → index-Dd6DytL_.js} +1 -1
  188. package/{svdv2/es/index-BBT24FDS.js → koket/es/index-DxQrrF8I.js} +1 -1
  189. package/koket/es/{index-CmPLF2Z6.js → index-VRz_-_4D.js} +1 -1
  190. package/koket/es/index-hrozgvxA.js +1 -0
  191. package/koket/es/index.js +1 -1
  192. package/koket/es/{styles-DFdUAMLD.js → styles-2nRrhSTY.js} +1 -1
  193. package/{svdv2/es/styles-DeJhuM1w.js → koket/es/styles-DB7i278X.js} +1 -1
  194. package/koket/es/{styles-CSh9_vAt.js → styles-DLA1Z6l8.js} +1 -1
  195. package/koket/es/{styles-DsywZyMH.js → styles-DwXfDIxZ.js} +1 -1
  196. package/{svdv2/es/styles-bdRhUD4i.js → koket/es/styles-DwkZ_p16.js} +1 -1
  197. package/minmote/cjs/index.js +1 -1
  198. package/mtv/es/{_auto-entry_mtv-DfNaThKA.js → _auto-entry_mtv-DRW0kA4m.js} +1 -1
  199. package/mtv/es/{identity-facade-D_-1QlSb.js → identity-facade-CJ8c0bqS.js} +1 -1
  200. package/mtv/es/{index-p610-MLD.js → index-CFYCmF1J.js} +1 -1
  201. package/mtv/es/{index-Dw0iebnS.js → index-D4NB24fY.js} +1 -1
  202. package/mtv/es/{index-DV7Ugpbb.js → index-Qxn8dY-g.js} +1 -1
  203. package/mtv/es/{index-D7_oA5KZ.js → index-nBZ5K5Kv.js} +1 -1
  204. package/mtv/es/index.js +1 -1
  205. package/mtv/es/{styles-BMAOyNUZ.js → styles-B1j-p8S0.js} +1 -1
  206. package/omni/es/_auto-entry_omni-B9sSvILM.js +1 -0
  207. package/{tvnu/es/events-DAuZVg9R.js → omni/es/events-Cioach8_.js} +1 -1
  208. package/{btv2/es/identity-facade-BhICwE-t.js → omni/es/identity-facade-BEiNjpAG.js} +1 -1
  209. package/omni/es/{index-amUvs-_W.js → index-BsGrXSMa.js} +1 -1
  210. package/omni/es/{index-IIqMYioz.js → index-CQ6lEs-C.js} +1 -1
  211. package/omni/es/{index-Chrat1gK.js → index-CyfrZuuZ.js} +1 -1
  212. package/omni/es/{index-C0tOd4WT.js → index-D0Xk46wI.js} +1 -1
  213. package/omni/es/index-Dfvew5bB.js +1 -0
  214. package/{btv2/es/index-C_4mn5_g.js → omni/es/index-DrDnCVxl.js} +1 -1
  215. package/omni/es/{index-6RrI5Xc8.js → index-DsIf2Jp_.js} +1 -1
  216. package/omni/es/{index-2sqkxCUP.js → index-kiADEuJB.js} +1 -1
  217. package/omni/es/index.js +1 -1
  218. package/omni/es/{styles-BYS1P-tF.js → styles-B-mUMWuW.js} +1 -1
  219. package/omni/es/{styles-Bow7auoh.js → styles-PqDnPVIk.js} +1 -1
  220. package/omni/es/{styles-CV0NQhKX.js → styles-tchgrWpp.js} +1 -1
  221. package/package.json +1 -1
  222. package/pent/cjs/index.js +1 -1
  223. package/sa/cjs/index.js +1 -1
  224. package/sa/es/_auto-entry_sa-B90buSg_.js +1 -0
  225. package/sa/es/{events-CgW4jEAG.js → events-BDm2JXbt.js} +1 -1
  226. package/sa/es/{identity-facade-Daj6yMGJ.js → identity-facade-Du3t0bDX.js} +1 -1
  227. package/sa/es/{index-C6w0pjh-.js → index-B4kEMpzY.js} +1 -1
  228. package/sa/es/{index-BQTjJitn.js → index-Bkh6p5_i.js} +1 -1
  229. package/sa/es/{index-B-VUvpKF.js → index-CE9qGsh2.js} +1 -1
  230. package/{bt/es/index-D31HelSe.js → sa/es/index-CtfXtqTv.js} +1 -1
  231. package/sa/es/{index-CuH6WR7s.js → index-DA7Q4WHW.js} +1 -1
  232. package/sa/es/{index-tbR32a6N.js → index-DrQ9Rl5w.js} +1 -1
  233. package/sa/es/index-ImXI6pQR.js +1 -0
  234. package/sa/es/{index-D61ZK7Cb.js → index-nKRbUL9r.js} +1 -1
  235. package/sa/es/index.js +1 -1
  236. package/sa/es/{styles-Y4cCQABF.js → styles-9Fx_6yr5.js} +1 -1
  237. package/sa/es/{styles-CJQupH56.js → styles-BUL1wZ5y.js} +1 -1
  238. package/sa/es/{styles-DcQMUe8C.js → styles-ByMmz0e0.js} +1 -1
  239. package/sa/es/{styles-B0IbKP96.js → styles-CPKBE8zW.js} +1 -1
  240. package/{vg/es/styles-r7kx75rx.js → sa/es/styles-CeeACct8.js} +1 -1
  241. package/sa/es/{styles-Ca3-DJZq.js → styles-D8eQA_yK.js} +1 -1
  242. package/sa/es/{styles-B09eEPL5.js → styles-DOviD27n.js} +1 -1
  243. package/sa/es/{styles-CK_iyyOw.js → styles-Nvczj2Ub.js} +1 -1
  244. package/{vg/es/styles-ConMXAAa.js → sa/es/styles-iwqf3_1W.js} +1 -1
  245. package/{vg/es/styles-BX8TjOhH.js → sa/es/styles-yPZGmJIc.js} +1 -1
  246. package/sav2/es/_auto-entry_sav2-Bs8MsM6a.js +1 -0
  247. package/{omni/es/events-K68kj4rV.js → sav2/es/events-D_9VSl6Z.js} +1 -1
  248. package/{omni/es/identity-facade-Duta4qyh.js → sav2/es/identity-facade-Cr4rwkJz.js} +1 -1
  249. package/{tvnu/es/index-DtReuiTF.js → sav2/es/index-B4N0TdUP.js} +1 -1
  250. package/sav2/es/{index-UGWFEB3j.js → index-BHFti2zS.js} +1 -1
  251. package/sav2/es/{index-BV_Oux9-.js → index-BTEI_WkF.js} +1 -1
  252. package/sav2/es/{index-R5XLuH8n.js → index-Bi_UUVZ1.js} +1 -1
  253. package/sav2/es/index-BxI9UyGB.js +1 -0
  254. package/sav2/es/{index-DBju8vD1.js → index-Cc5hkUdM.js} +1 -1
  255. package/sav2/es/{index-DSPOhBze.js → index-D_EKOl4E.js} +1 -1
  256. package/sav2/es/{index-MPeNVDBL.js → index-OGUI7j7E.js} +1 -1
  257. package/sav2/es/index.js +1 -1
  258. package/{btv2/es/styles-BkMkQCbs.js → sav2/es/styles-BjvO994H.js} +1 -1
  259. package/{vgv2/es/styles-BDDajuUD.js → sav2/es/styles-C2TzVPFL.js} +1 -1
  260. package/sav2/es/{styles-D-aY7Kms.js → styles-CWmphdeU.js} +1 -1
  261. package/sav2/es/{styles-Cfjk3GeF.js → styles-Cd0SgcFq.js} +1 -1
  262. package/{vgv2/es/styles-Bvy3Pr5x.js → sav2/es/styles-DENOdgSx.js} +1 -1
  263. package/{btv2/es/styles-CVrRZHar.js → sav2/es/styles-DrR_qod2.js} +1 -1
  264. package/{vgv2/es/styles-B8Xt4Rvd.js → sav2/es/styles-DrXHzn6R.js} +1 -1
  265. package/sav2/es/{styles-DkEzbye-.js → styles-lwSXVr6b.js} +1 -1
  266. package/sav2/es/{styles-B8y3G3FO.js → styles-ru8KhIM1.js} +1 -1
  267. package/svd/cjs/index.js +1 -1
  268. package/svd/es/_auto-entry_svd-Dx2VI6-9.js +1 -0
  269. package/svd/es/{events-CJEzzOkM.js → events-Ceb8WmTs.js} +1 -1
  270. package/svd/es/{identity-facade-G8xOuiES.js → identity-facade-C_3phxtY.js} +1 -1
  271. package/svd/es/{index-DaCqWD2C.js → index-B9QI-z6H.js} +1 -1
  272. package/{tv4/es/index-CmryMy4l.js → svd/es/index-BKV5RD-u.js} +1 -1
  273. package/svd/es/index-BWc5ogTG.js +1 -0
  274. package/{tv4/es/index-DePsb88V.js → svd/es/index-C_NJTEGQ.js} +1 -1
  275. package/{tv4/es/index-C06nqWj8.js → svd/es/index-DNn1Ly1W.js} +1 -1
  276. package/svd/es/{index-KJC6As1v.js → index-DTC3yyGt.js} +1 -1
  277. package/svd/es/{index-7pMjf183.js → index-xhAB19sS.js} +1 -1
  278. package/svd/es/{index-CdeqDRiL.js → index-ywTg6KyG.js} +1 -1
  279. package/svd/es/index.js +1 -1
  280. package/svd/es/{styles-Czwz7iv9.js → styles-2-zz3TYG.js} +1 -1
  281. package/svd/es/{styles-D6FUS2Lx.js → styles-B6MRQGuw.js} +1 -1
  282. package/{tv4/es/styles-CNdrS2sT.js → svd/es/styles-C0ApEfwo.js} +1 -1
  283. package/svd/es/{styles-C27QJnxq.js → styles-C2agZFFg.js} +1 -1
  284. package/svd/es/{styles-aqr9svHM.js → styles-CSDUJeku.js} +1 -1
  285. package/svd/es/{styles-D0qm6kVv.js → styles-DHXshXpM.js} +1 -1
  286. package/svd/es/{styles-BOupZnrK.js → styles-rCeO6GMX.js} +1 -1
  287. package/svdv2/es/_auto-entry_svdv2-JJ9TfPJO.js +1 -0
  288. package/svdv2/es/{events-KCadTxl3.js → events-ZWbERVho.js} +1 -1
  289. package/svdv2/es/{identity-facade-6XLh3tPd.js → identity-facade-BTVzZOZq.js} +1 -1
  290. package/svdv2/es/{index-CQXOnY9t.js → index-2P0Otfgs.js} +1 -1
  291. package/svdv2/es/{index-wb3kiAkb.js → index-BXdaqfbQ.js} +1 -1
  292. package/svdv2/es/{index-Dg6mY90s.js → index-CHLE0bum.js} +1 -1
  293. package/svdv2/es/{index-CCn-OmI-.js → index-CaH-juqz.js} +1 -1
  294. package/svdv2/es/{index-B8RbMmJ8.js → index-DI6he37b.js} +1 -1
  295. package/svdv2/es/index-L5CuriFF.js +1 -0
  296. package/{koket/es/index-BFYKJukh.js → svdv2/es/index-PNMlOchJ.js} +1 -1
  297. package/svdv2/es/{index-DuGmh88D.js → index-_AIYXIO_.js} +1 -1
  298. package/svdv2/es/index.js +1 -1
  299. package/svdv2/es/{styles-BtVQF7bs.js → styles-B1xmBB6O.js} +1 -1
  300. package/svdv2/es/{styles-CEKLrR1u.js → styles-BAPJVbD_.js} +1 -1
  301. package/{koket/es/styles-BbTxS441.js → svdv2/es/styles-CL00OYj0.js} +1 -1
  302. package/svdv2/es/{styles-CzH_1sLm.js → styles-CQZKuLF2.js} +1 -1
  303. package/svdv2/es/{styles-DNEg4Iyo.js → styles-CWlgGt_1.js} +1 -1
  304. package/svdv2/es/{styles-BuvxUEbh.js → styles-DVfh9hRS.js} +1 -1
  305. package/{koket/es/styles-Co5ZqMbg.js → svdv2/es/styles-DfNHSboJ.js} +1 -1
  306. package/svdv2/es/{styles-PQSqNTuq.js → styles-QfuFV96y.js} +1 -1
  307. package/tek/cjs/index.js +1 -1
  308. package/tv4/cjs/index.js +1 -1
  309. package/tv4/es/_auto-entry_tv4-CLEQCEAD.js +1 -0
  310. package/tv4/es/{events-C66ndP0f.js → events-i3kBi_OS.js} +1 -1
  311. package/tv4/es/{identity-facade-Byb8x97X.js → identity-facade-Do1zB2la.js} +1 -1
  312. package/tv4/es/{index-VnOUEyPC.js → index-C5iBDusU.js} +1 -1
  313. package/tv4/es/{index-D4MnNwZH.js → index-COw2Im1Y.js} +1 -1
  314. package/tv4/es/{index-IHhoDSFm.js → index-Csu2CVMG.js} +1 -1
  315. package/{svd/es/index-De8cMolp.js → tv4/es/index-DceA2C2r.js} +1 -1
  316. package/{svd/es/index-D8-w2Zrr.js → tv4/es/index-DxpUUXHz.js} +1 -1
  317. package/tv4/es/index-DzNro5LN.js +1 -0
  318. package/{svd/es/index-ByFum0Ht.js → tv4/es/index-bvjJ_q71.js} +1 -1
  319. package/tv4/es/{index-CnO0y594.js → index-hDzST151.js} +1 -1
  320. package/tv4/es/index.js +1 -1
  321. package/{svd/es/styles-D9r9OnLQ.js → tv4/es/styles-6HA9wkR4.js} +1 -1
  322. package/tv4/es/{styles-BHRB_mp-.js → styles-CYPeOouf.js} +1 -1
  323. package/{e24/es/styles-DF27RJ5O.js → tv4/es/styles-DoWLSqJ2.js} +1 -1
  324. package/tv4/es/{styles-BqOiKQK-.js → styles-DyLAzVyd.js} +1 -1
  325. package/tv4/es/{styles-Bpwmf5SO.js → styles-pXDZFKvZ.js} +1 -1
  326. package/tvnu/cjs/index.js +1 -1
  327. package/tvnu/es/_auto-entry_tvnu-DhK2hGPK.js +1 -0
  328. package/{btv2/es/events-DMH43tLi.js → tvnu/es/events-Bl2oKJLY.js} +1 -1
  329. package/tvnu/es/{identity-facade-NomeYive.js → identity-facade-BoToWNdW.js} +1 -1
  330. package/tvnu/es/index-6VcE4bTj.js +1 -0
  331. package/{btv2/es/index-DAOWTrWO.js → tvnu/es/index-BSLQYjDE.js} +1 -1
  332. package/tvnu/es/{index-BfjWCLvz.js → index-CIAUF6e-.js} +1 -1
  333. package/tvnu/es/{index-XMGOKdOu.js → index-D42rP3aQ.js} +1 -1
  334. package/{sav2/es/index-Coz-p9iZ.js → tvnu/es/index-DCp587_P.js} +1 -1
  335. package/tvnu/es/{index-BxKvAcWF.js → index-DdneQ-AT.js} +1 -1
  336. package/tvnu/es/{index-D1CmJu8a.js → index-Ds4n39cw.js} +1 -1
  337. package/tvnu/es/{index-dpIRNaul.js → index-uwwRqVN-.js} +1 -1
  338. package/tvnu/es/index.js +1 -1
  339. package/tvnu/es/{styles-CJ-D06Ze.js → styles-BEcDVuYf.js} +1 -1
  340. package/tvnu/es/{styles-ieCYZ2BR.js → styles-D18yfQT6.js} +1 -1
  341. package/tvnu/es/{styles-CkBdQxSE.js → styles-DdjiZVlh.js} +1 -1
  342. package/{btv2/es/styles-a3-2JcCe.js → tvnu/es/styles-xYe-soxp.js} +1 -1
  343. package/vg/cjs/index.js +1 -1
  344. package/vg/es/_auto-entry_vg-ggC4D0fo.js +1 -0
  345. package/vg/es/{events-azOYx0q1.js → events-B6aQ4mb6.js} +1 -1
  346. package/vg/es/{index-CKhvsgVy.js → index-Bb8q28GO.js} +1 -1
  347. package/vg/es/{index-GXg9GWOy.js → index-Bh4tjCwX.js} +1 -1
  348. package/vg/es/{index-CwCLyscs.js → index-Cwim28QT.js} +1 -1
  349. package/vg/es/{index-CGf-bWSP.js → index-DSEIQlRS.js} +1 -1
  350. package/vg/es/index-DiOiZjjE.js +1 -0
  351. package/vg/es/{index-B5wDCTqX.js → index-f1pxr85G.js} +1 -1
  352. package/vg/es/{index-BEOyX2Wr.js → index-rub7pPf2.js} +1 -1
  353. package/vg/es/{index-C-p2n13h.js → index-vxTmIWkE.js} +1 -1
  354. package/vg/es/index.js +1 -1
  355. package/vg/es/{styles-CluX5NBm.js → styles-7QG6CVJG.js} +1 -1
  356. package/vg/es/{styles-D8pQb7vJ.js → styles-B-dB3Lo1.js} +1 -1
  357. package/vg/es/{styles-BzpRtGlm.js → styles-B8rR6vDS.js} +1 -1
  358. package/vg/es/{styles-qoJJL703.js → styles-BOHnBv0o.js} +1 -1
  359. package/vg/es/{styles-vLVEdNtd.js → styles-Bfulc85W.js} +1 -1
  360. package/{bt/es/styles-C1RQLfGY.js → vg/es/styles-Ce7Q31_E.js} +1 -1
  361. package/vg/es/{styles-v287uw0Q.js → styles-CfMl7RBw.js} +1 -1
  362. package/vg/es/{styles-CGPMvWKF.js → styles-CxeyxVLj.js} +1 -1
  363. package/{bt/es/styles-Cxm0surD.js → vg/es/styles-D0u6ti29.js} +1 -1
  364. package/vg/es/{styles-BXTr-tOf.js → styles-D3SluajL.js} +1 -1
  365. package/vg/es/{styles-CrdVtM5r.js → styles-DpoKn87z.js} +1 -1
  366. package/vg/es/{styles-BRFXPOOo.js → styles-Dy0ru3aj.js} +1 -1
  367. package/{sa/es/styles-CzG_TYUC.js → vg/es/styles-Z84viB_o.js} +1 -1
  368. package/vg/es/{styles-BbqBATF4.js → styles-aAGkIyIw.js} +1 -1
  369. package/vg/es/{styles-btaPzyxf.js → styles-d34C4V8B.js} +1 -1
  370. package/vg/es/{styles-saWjZ7Vw.js → styles-sgTDgtt5.js} +1 -1
  371. package/vgv2/es/_auto-entry_vgv2-DVZL5Sc3.js +1 -0
  372. package/vgv2/es/{events-DllI3OCE.js → events-qKDPls1n.js} +1 -1
  373. package/vgv2/es/{index-B_ydkmG-.js → index-BP3rUagH.js} +1 -1
  374. package/vgv2/es/{index-D7a67PWC.js → index-C9zYe4Rm.js} +1 -1
  375. package/vgv2/es/{index-BT-sPtHS.js → index-CNfk_QsD.js} +1 -1
  376. package/vgv2/es/{index-DcUpfciw.js → index-CVtGaO2l.js} +1 -1
  377. package/vgv2/es/index-CaXYj2P9.js +1 -0
  378. package/vgv2/es/{index-1W9g-nvN.js → index-D5EI-G8s.js} +1 -1
  379. package/vgv2/es/{index-2cJe-Eef.js → index-DgqeMwsf.js} +1 -1
  380. package/{tvnu/es/index-ByPGwuny.js → vgv2/es/index-o7KWvPzX.js} +1 -1
  381. package/vgv2/es/index.js +1 -1
  382. package/vgv2/es/{styles-D0rdjk3q.js → styles-B9xSMjX-.js} +1 -1
  383. package/{sav2/es/styles-DLd-glgd.js → vgv2/es/styles-BAnSnP7l.js} +1 -1
  384. package/vgv2/es/{styles-CHiCEnI8.js → styles-BCBOlSNF.js} +1 -1
  385. package/vgv2/es/{styles-DDwrDy_L.js → styles-B_ABOXWh.js} +1 -1
  386. package/vgv2/es/styles-BjZulJDP.js +1 -0
  387. package/vgv2/es/{styles-BNc9ub3p.js → styles-BtDxi_2x.js} +1 -1
  388. package/{tvnu/es/styles-C3UIWT_6.js → vgv2/es/styles-ByDKTI-3.js} +1 -1
  389. package/vgv2/es/{styles-i7ormIJY.js → styles-CQqUmbpG.js} +1 -1
  390. package/vgv2/es/{styles-BsxHydq2.js → styles-CvZiTM2V.js} +1 -1
  391. package/vgv2/es/{styles-BqNKW7Qs.js → styles-D0fAY-s9.js} +1 -1
  392. package/vgv2/es/{styles-Doih5h9g.js → styles-D8k0c8Uh.js} +1 -1
  393. package/vgv2/es/{styles-DcLW6Ufi.js → styles-DOrISdC5.js} +1 -1
  394. package/vgv2/es/{styles-D3PM0A4u.js → styles-DfN1M2i1.js} +1 -1
  395. package/vgv2/es/{styles-DiGH9BWs.js → styles-GjR7LAAl.js} +1 -1
  396. package/vgv2/es/{styles-yWE21nMi.js → styles-M7JBvL88.js} +1 -1
  397. package/{btv2/es/styles-UOd4vRaH.js → vgv2/es/styles-XkaVCLpV.js} +1 -1
  398. package/aftenposten/es/_auto-entry_aftenposten-Tve0PdPg.js +0 -1
  399. package/aftenposten/es/index-DLSHhMHq.js +0 -1
  400. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DWtGX9qk.js +0 -1
  401. package/aftenpostenv2/es/index-CeVnQlsp.js +0 -1
  402. package/aftonbladet/es/_auto-entry_aftonbladet-gwuJYn5k.js +0 -1
  403. package/aftonbladet/es/index-9s1OEytQ.js +0 -1
  404. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DaiGRw9V.js +0 -1
  405. package/aftonbladetv2/es/index-D1j_NWjg.js +0 -1
  406. package/bt/es/_auto-entry_bt-D1MD_xdz.js +0 -1
  407. package/bt/es/index-DPURtZv7.js +0 -1
  408. package/btv2/es/_auto-entry_btv2-4dXVMldo.js +0 -1
  409. package/btv2/es/index-hRBAHHA1.js +0 -1
  410. package/e24/es/_auto-entry_e24-BlFIZILi.js +0 -1
  411. package/e24/es/index-DS6u_jwd.js +0 -1
  412. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DRg32rfb.js +0 -1
  413. package/fotbollskanalen/es/index-KuC48Gth.js +0 -1
  414. package/koket/es/_auto-entry_koket-BHg0RvvL.js +0 -1
  415. package/koket/es/index-PevTPzLn.js +0 -1
  416. package/omni/es/_auto-entry_omni-Dqd2l-yE.js +0 -1
  417. package/omni/es/index-DOsDI_Kk.js +0 -1
  418. package/sa/es/_auto-entry_sa-DyqGrGx4.js +0 -1
  419. package/sa/es/index-CW8otao7.js +0 -1
  420. package/sav2/es/_auto-entry_sav2-oUKXN5Cv.js +0 -1
  421. package/sav2/es/index-ehh4zyl6.js +0 -1
  422. package/svd/es/_auto-entry_svd-BJDmLwK4.js +0 -1
  423. package/svd/es/index-BGuy7q75.js +0 -1
  424. package/svdv2/es/_auto-entry_svdv2-CLreTPmH.js +0 -1
  425. package/svdv2/es/index-DWku1ORo.js +0 -1
  426. package/tv4/es/_auto-entry_tv4-CBLGjHou.js +0 -1
  427. package/tv4/es/index-DYGzrH19.js +0 -1
  428. package/tvnu/es/_auto-entry_tvnu-BwxgbyD2.js +0 -1
  429. package/tvnu/es/index-DvJP2BFc.js +0 -1
  430. package/vg/es/_auto-entry_vg-CZCnWz9h.js +0 -1
  431. package/vg/es/index-CDwF0YQd.js +0 -1
  432. package/vgv2/es/_auto-entry_vgv2-Jn4NMMCE.js +0 -1
  433. package/vgv2/es/index-CU7M1MUX.js +0 -1
  434. package/vgv2/es/styles-DeXRJf7-.js +0 -1
package/godt/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e,t,n=require("react/jsx-runtime");function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=o(function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function a(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 d(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=i(e[t],n)}),a(t).forEach(function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))}),o}function l(e,t,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||n,o.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(t);return a===Array.isArray(e)?a?o.arrayMerge(e,t,o):s(e,t,o):i(t,o)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e=l}());const r={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,t)=>i(e,t,r),d=(e,t)=>Object.assign(Object.assign({},e),t),s=(e,t)=>{var n;return a(null!==(n=e)&&void 0!==n?n:{},t)},l=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},c=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},u=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||c("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||c("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||c("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||c("pageContext.deviceType is required."),n||c("pageOptions is required."),o||c("placements is required."),(null==i?void 0:i.defaultThreshold)||c("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,i;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.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==r?void 0:r[t])&&c(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},p={placements:(e,t)=>t,takeover:s,refreshConfig:d,editory:s,appearanceConfig:s,pageContext:d,pageOptions:d,pageSectionsSelectors:d,tcf:d},v=(e,t)=>{const n=e;for(const e of Object.keys(p)){const o=t[e];void 0!==o&&(n[e]=p[e](n[e],o))}},g=6;class h{set(e){u(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");v(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=a(h.DEFAULT_SITE_HANDLERS,e)}}h.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const m=new h,f=m.modifyConfigProperties.bind(m);let y;const b=()=>y,w="advertory-wallpaper-background",x="advertory-with-horseshoe",k=()=>{const e=document.querySelector(`.${w}`);e&&e.remove()},C=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${w}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},I=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,T=e=>I.test(e),S=e=>e.startsWith("wallpaper:color:"),E=e=>{const t=document.querySelector(`.${w}`);t&&(t.style.backgroundImage=`url(${e})`)},A=e=>{const t=document.querySelector(`.${w}`);t&&(t.style.backgroundColor=e)};var O=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(x),n.classList.add(x))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{k();const e=document.createElement("div");e.classList.add(w),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&&(C(n),window.addEventListener("scroll",()=>C(n)))})(n),e()},isShortWallpaperColorMessage:S,isShortWallpaperUrlMessage:T,removeWallpaperBackground:k,setWallpaperBackgroundColor:A,setWallpaperBackgroundImage:E});const P=e=>new URLSearchParams(window.location.search).get(e),j="takeover",$="native_override_desc2",L=e=>window.location.href.includes(e),_=()=>null!==P("disable_prebid"),N=e=>{if("0"===P("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")&&k())},q=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"))},F=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};function M(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function B(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class D{initialize(){this.DATA=Object.assign({},D.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)}}D.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const R=new D,z=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},U=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,o=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${o}px`)},W="opaque",H=e=>B(void 0,void 0,void 0,function*(){if(e.type!==W){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),V={get:(e,...t)=>B(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=M(t,["timeout"]);if(n)return((e,t,n)=>B(void 0,void 0,void 0,function*(){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:o.signal}));return H(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return H(i)}),post:(e,t,n)=>B(void 0,void 0,void 0,function*(){const o=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:o});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},K="https://inv-platform-cdn.inventory.schibsted.io",G=5e3,X="editory/native-creator/native-templates",J=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!o)return null;return`${n||K}/editory/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`};const Y=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:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return B(this,void 0,void 0,function*(){const t=J(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>B(void 0,void 0,void 0,function*(){const t=J(e);if(!t)return null;try{return yield V.get(t,{timeout:G})}catch(e){throw l("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,i;const r=((e,t)=>{const{sections:n}=e,o=M(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?a(o,i):o})(t,null!==(i=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>a(t,e))(e,r)}getConfig(e){return B(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 l("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return B(this,void 0,void 0,function*(){var t,n,o,i;if(!this.localSiteConfig)return;if(v(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(i=null===(o=this.localSiteConfig.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void l("Error fetching updated S3 config, keeping current config",{error:e})}})}},Q=Y.getConfig.bind(Y),Z=Y.resolveUpdatedConfig.bind(Y),ee=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=R.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=o},te=()=>{var e,t;k();const n=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),o=[];return n.forEach(e=>{N(e.id),ee(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),o=null==t?void 0:t.getAttribute("data-probable-width");n&&o&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",o+"px"))})(e.id),e.innerHTML="",e.id=F(e.id),o.push(e.id)}),null===(t=null===(e=b())||void 0===e?void 0:e.clear)||void 0===t||t.call(e,o),o},ne=()=>{R.setData("wallpaper",{isAvailable:!1}),R.setData("horseshoe",{isAvailable:!1})},oe=e=>B(void 0,void 0,void 0,function*(){const t=yield Z(e);var n;t?(m.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):f(null!=e?e:{})}),ie="0123456789abcdefghijklmnopqrstuvwxyz",re=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=ie[Math.floor(36*Math.random())]}return t},ae=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),de=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})}),se="mobile",le="tablet",ce="desktop",ue="web_desktop",pe="web_phone",ve="wde",ge="wph",he="noGroupedPlacements",me=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},fe=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ye=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:o,pageContext:{deviceType:i}}=m.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===le&&0===o.length?e[ce]:o})(n,i),a=r.filter(fe),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=me(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{var t,n,r;const s=new RegExp(`^${e}(_(\\d+))?$`),c=a.filter(({targetId:e})=>e.match(s)),u=(null==o?void 0:o.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,p=d.querySelectorAll(u),v=Array.from(p).filter(({id:e})=>e.match(s)).map((e,t)=>{var n;const o=be(e,t,c);if(o.disabled)return l(`Placement ${o.targetId} is disabled - collapsing`),N(o.targetId),null;const i=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,r=i&&(null===(n=o.finnBlink)||void 0===n?void 0:n.loadOnlyFinnBlink),a=`${e.id}-${re(6)}`;return e.id=a,e.setAttribute("data-advertory-ad-rendered","true"),i&&e.setAttribute("data-is-finn-blink-placement","true"),r&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&R.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},o),{targetId:a})}),g=v.filter(e=>null!=e);return null!==(r=null===(n=null===(t=b())||void 0===t?void 0:t.enrichPlacementsAfterDiscovery)||void 0===n?void 0:n.call(t,g))&&void 0!==r?r:g});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(s)},be=(e,t,n)=>{const o=n[t],i=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:r||i},we=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=m.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=F(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[o,i]of Object.entries(t))n[o]=e.filter(e=>i.includes(F(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(F(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[he]:s})},xe="ABSOLUTE_FULLSCREEN",ke="ANY_FULLSCREEN",Ce="NINESIXTEEN",Ie="FULLWIDTH",Te="FULLSQUARE",Se="TAKEOVER",Ee="VELVET_TAKEOVER",Ae="WALLPAPER",Oe="COLLAPSE",Pe={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}]},je={wallpaper:1600,"l-format":1600},$e=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Ve(e,ke)},Le=e=>{const{native:t}=e;return!!t},_e=e=>Ve(e,Ie),Ne=e=>{const{targetId:t}=e;return t.includes("takeover")||Ve(e,Se)},qe=e=>Ve(e,Se),Fe=e=>Ve(e,Ae),Me=e=>Ve(e,Oe),Be=e=>e.targetId.includes("sponsorstripe"),De=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Re=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),ze=e=>e.targetId.startsWith("midboard"),Ue=e=>e.targetId.includes("widescreen"),We=e=>e.width>=1260&&e.width<=1280,He=e=>e.width>=1600&&e.width<=1620,Ve=(e,t)=>{const n=Pe[t];if(!n)return!1;return!!n.find(t=>{var n,o;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(o=e.banner)||void 0===o?void 0:o.height)||e.height,a=t.width===i,d=!t.height||t.height===r;return a&&d})},Ke=e=>{const{source:t}=e;return"csm"===t},Ge=e=>{const{siteSpecificConfig:t}=m.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},Xe=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 l("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(l("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);l("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),Je={NO:"no",SE:"se"},Ye="cmp:loaded";let Qe="undefined"!=typeof window?window._tcf_:void 0,Ze=!1;const et=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=P("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(Ze)return null;if(!Qe)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=Qe.getConsentedToAllSync();return l(`TCF consented to all is: ${t}`),Qe.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),Qe=window._tcf_,void e(Qe);l("TCF consent manager is not available");const n=()=>{l("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(Qe=window._tcf_,e(Qe)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(Ye,n),Ze=!0,t(new Error("Timeout waiting for CMP to load"))},i);l("Listening for CMP loaded event..."),document.addEventListener(Ye,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>B(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`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===Je.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===Je.NO;if(t||o)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Xe(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!Qe)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{l("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);Qe.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),Qe.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},tt=(e,t,n,...o)=>B(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return l(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=et(e,0,n);return(yield i())?(l(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(l(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),nt=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},ot=e=>B(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=et(t,0,o);if(!(yield i()))return;const r=nt("_pulse2data");return r?r.split(",")[9]:void 0}),it="splash",rt="welcomePage",at="topscroller",dt="velvet",st=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const o=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=o.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,i).toString()},lt="takeover-displayed",ct="takeover-visit-count",ut=14400,pt=()=>{const e=nt(ct);return e?parseInt(e):0},vt=()=>{const e=pt(),{takeover:{options:{cookieCapTime:t=ut}={}}={}}=m.get(),n=document.location.hostname;window.document.cookie=`${ct}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},gt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=m.get();return"0"!==P(j)&&("1"===P(j)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=m.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||lt;return"true"===nt(n)})())&&(!t||ht()))},ht=()=>{const e=pt();return 0===e?(vt(),!1):1===e},mt=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),ft=()=>{const{takeover:e}=m.get();return Boolean(null==e?void 0:e.topscroller)},yt=e=>{const{width:t,height:n}=e;return mt(t,n)?it:Ve(e,Ee)?dt:ft()?at:rt},bt=()=>B(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=lt,cookieCapTime:n=ut}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=m.get(),a=yield tt(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),wt=e=>{var t,n;const o=!!(null===(n=null===(t=m.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ne(e)&&o},xt=(e,t)=>{var n;if(t===at){const{topscroller:t}=e;return null!=t?t:{}}if(t===it){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},kt=(e,t)=>{t!==it?(e=>{var t,n;const o=null===(t=m.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=m.get().takeover)||void 0===n?void 0:n.topscroller;if(!o||i)return;const r=document.querySelector(o),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=qe(e)?"60svh":`calc(100svh - ${l}px)`,u=qe(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=m.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),o=document.querySelector(`#${e.targetId}`);if(!n||!o)return;const i=`calc(100svh - ${n.offsetHeight}px)`;o.style.setProperty("height",i,"important")})(e)},Ct=st([],()=>{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 It=Object.freeze({__proto__:null,addTakeoverCookie:bt,adjustTakeoverHeight:kt,canDisplayTakeover:gt,getProperWelcomePageConfig:xt,getTakeoverVariant:yt,handleTakeoverCookieOnAdNotShown:e=>B(void 0,void 0,void 0,function*(){wt(e)&&(yield bt())}),incrementArticleVisitCount:vt,isSplashVariant:mt,isTopscroller:ft,scaleAd:Ct,shouldAddTakeoverCookieForNotShownAd:wt});const Tt={nativeAd:e=>Le(e)&&!Be(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:_e,fullscreenScroll:$e,topscroller:e=>Ne(e)&&ft(),splash:e=>Ne(e)&&mt(e.width,e.height),welcomePage:Ne,wallpaper:Fe,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:We,hFormat:He,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!He(e)&&!We(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ne(e),widescreen:Ue,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Be,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)&&!ze(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:ze},St=({adObj:e,preferredTestIdData:t})=>{var n,o;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const r=null===(o=document.querySelector(`#${i}`))||void 0===o?void 0:o.parentElement;if(!r)return;if(((e,t)=>{var n,o,i,r;const a=null===(r=null===(i=null===(o=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===o?void 0:o.tags)||void 0===i?void 0:i[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(i,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,o;for(const[i,r]of Object.entries(Tt))if(r(e)){if("nativeAd"===i){const r="default";t.dataset.testid=`${i}-${null!==(o=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==o?o:r}`;break}t.dataset.testid=i;break}})(e,r)},Et=e=>{var t;return(null===(t=Object.entries(Tt).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},At=()=>{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"},Ot=e=>e===se,Pt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},jt=(e,t=window.screen.width,n,o)=>{const i=Pt(e,t);if(n&&n(e,i),o)return void o(e);const r=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);r&&(r.style.transform=`scale(${i})`,r.style.transformOrigin="left top")},$t=(e,t)=>{if(e&&t)return t/e},Lt=new Map;Lt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),Lt.set("panorama",{scale:.79,transformOrigin:"center center"}),Lt.set("outstream",{scale:.79,transformOrigin:"center center"}),Lt.set("integration",{scale:.79,transformOrigin:"center center"}),Lt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var _t=Object.freeze({__proto__:null,calculateScaleFactor:Pt,getAspectRatio:$t,scaleAd:jt,scaleAdIpadAirPortrait:e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>767&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=853))return;var t,n;const o=Et(e),i=Lt.get(o),r=document.querySelector(`#${e.targetId}`);if(!r||!i)return;if(r.style.transformOrigin=i.transformOrigin,r.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),d=null==r?void 0:r.offsetWidth;a&&"number"==typeof d&&!isNaN(d)&&a.style.setProperty("right",String(-1*d*.2)+"px")},scaleAds:e=>{var t,n,o,i,r,a;const{adScaleConfig:d,pageContext:{deviceType:s}}=m.get();if(!(null==d?void 0:d.enabled))return;if(Ve(e,ke))return;const l=null!==(t=d.adsToBeScaled[s])&&void 0!==t?t:[],c=me(e.targetId.split("-")[0]);if(!l.includes(c))return;const u=null!==(o=null===(n=d.offset)||void 0===n?void 0:n[c])&&void 0!==o?o:0,p=document.getElementById(e.targetId),v=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,g=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;jt(e,(v<g?v:g)-u)}});const Nt={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{jt(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},qt={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"},Ft={publisherClassName:qt.GODT,fullWidthFormatClassName:"netboard"},Mt=864e5,Bt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return l("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=Mt)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=Mt)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return l("Error with parsing localStorage data"),null}}}})(),Dt="glimrTags",Rt=["glwe_","glwet_"],zt={geofenceTags:[],geoTags:[],weatherTags:[]},Ut=(...e)=>B(void 0,[...e],void 0,function*(e=m.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield tt(t,n,o,"glimr")}const{getConsentAsync:i}=et(t,0,o);return yield i()}),Wt=()=>B(void 0,void 0,void 0,function*(){const{glimr:e}=m.get();if(!(yield Ut())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(n=500,B(void 0,void 0,void 0,function*(){return yield Promise.race([B(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)=>{Bt.setWithTimestamp(Dt,{tags:e,tagMappings:t}),n(!0)})})}catch(e){l(`Error during getting glimr data: ${e}`)}else l("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),Ht={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"},Vt=e=>Rt.some(t=>e.startsWith(t)),Kt=e=>e.startsWith("glgc_"),Gt=e=>e.startsWith("glci_"),Xt=e=>!Vt(e)&&!Kt(e),Jt=e=>e===Je.NO?"no-sno":"se-generic",Yt=(e,t)=>B(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Ut(e);if(!(null==o?void 0:o.enabled)||!r)return l("No consent for getting glimr tags."),{};const a=Jt(i),d=Qt(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Qt=(e,t)=>{const n=Zt();if(!n)return zt;const o=((e=[])=>e.filter(Vt))(n),i=((e=[])=>e.filter(Kt))(n),r=((e=[],t,n)=>{var o;const i=e.filter(Xt);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=Ht[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},Zt=()=>{const e=Bt.getByTimestamp(Dt);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},en=()=>{var e;return((e=[])=>e.filter(Gt))(null!==(e=Zt())&&void 0!==e?e:[])},tn="advertory:ppids-cache",nn={[Je.SE]:`SCH${Je.SE.toUpperCase()}-EnvHash`,[Je.NO]:`SCH${Je.NO.toUpperCase()}-EnvHash`},on={[Je.SE]:`SCH${Je.SE.toUpperCase()}-UserHash`,[Je.NO]:`SCH${Je.NO.toUpperCase()}-UserHash`},rn={[Je.SE]:`sch${Je.SE}-envhash-v3`,[Je.NO]:`sch${Je.NO}-envhash-v3`},an={[Je.SE]:`sch${Je.SE}-userhash-v3`,[Je.NO]:`sch${Je.NO}-userhash-v3`},dn={[Je.SE]:`'sch${Je.SE}-iosid-v3'`,[Je.NO]:`'sch${Je.NO}-iosid-v3'`},sn={[Je.SE]:`sch${Je.SE}-androidid-v3`,[Je.NO]:`sch${Je.NO}-androidid-v3`},ln={[Je.SE]:"sdrn:schibsted.com:user",[Je.NO]:"sdrn:spid.no:user"};class cn{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:o})=>{t.append(e,`${o}-${n}`)}),t}}const un=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return B(this,arguments,void 0,function*(e,t=1e4){var n,o;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===(o=i.xandr)||void 0===o?void 0:o.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||l("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:""}},pn=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return B(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Bt.get(tn),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===(o=g.idfv)||void 0===o?void 0:o.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||l("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,o){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=o?o:null}shouldHash(e,t){var n,o;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(o=t[i])||void 0===o?void 0:o.plain))return!0}return!1}cachePPIDs(e,t,n,o){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}}:{}),o?{anId:{plain:o}}:{});Bt.set(tn,i)}hashPPIDs(e,t){return B(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield V.post(t,n,e)}catch(e){return l("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return B(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>B(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ln[t]}:${n}`:null}))(t,n),i=yield(r=t,B(void 0,void 0,void 0,function*(){const e=yield r.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var r;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:o},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:o,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:o.plain,environmentId:i.plain}}},vn=e=>B(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield tt(n,i,o,"setPPIDs")))return;if(!t)return;(yield Promise.allSettled([un.processPPIDs(t,null==n?void 0:n.timeout),pn.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){l(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),gn=e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=pn.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]).add(r,dn[e]).add(a,sn[e]).buildEids()}]}},hn=()=>{const{ppid1:e,ppid2:t}=un.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},mn=e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=pn.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]).add(r,dn[e]).add(a,sn[e]).buildRyEids()}}]}}},fn=e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i}=pn.getPPIDs();return(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]).buildRyEids()},yn=e=>B(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i}=pn.getPPIDs(),r=(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),bn=(e,...t)=>B(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,o)=>{const i=document.createElement("script");i.async=!0,i.src=e;const r=()=>{d(),n()},a=()=>{d(),o(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",r),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",r),i.addEventListener("error",a);const s=setTimeout(()=>{d(),o(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),wn="collapseAd",xn="hideAd",kn="resizeAd",Cn="wallpaperImageUrl",In="wallpaperColor",Tn="velvet",Sn=[kn,Cn,In,wn,xn,Tn];let En;const An=e=>{var t,n,o;const i=b();if(!(null===(t=null==i?void 0:i.messageOrigins)||void 0===t?void 0:t.includes(e.origin.trim())))return;const{data:r}=e;if(!r)return;const a=(e=>{if("object"==typeof e)return e;if(T(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Cn,wallpaperImageUrl:t}}if(S(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:In,wallpaperColor:t}}if(e.startsWith(wn)||e.startsWith(xn)){const t=e.split(":")[1];return{name:wn,targetId:t}}if(e.includes("name")&&Sn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(r);if(!a)return;if(!a.name||!Sn.some(e=>a.name===e))return;const{name:d,targetId:s,wallpaperImageUrl:l,wallpaperColor:c,cmd:u,size:p}=a;d===Tn&&u&&(u.includes("noScroll")&&(En=(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==En||En(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),d!==wn&&d!==xn||!s||N(s),d===kn&&s&&u&&(null===(n=i.resizeCreative)||void 0===n||n.call(i,s,u)),"resizeMediationAd"===d&&s&&p&&(null===(o=i.resizeCreative)||void 0===o||o.call(i,s,p,!0)),d===Cn&&l&&E(l),d===In&&c&&A(c)},On=(e,t,n)=>B(void 0,void 0,void 0,function*(){yield ae,yield de;new IntersectionObserver((t,o)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),o.unobserve(e),o.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Pn=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=m.get(),o={publisher:e,countryCode:t,finnBlink:n},i=e=>{var t,n;q(e),null===(n=null===(t=b())||void 0===t?void 0:t.render)||void 0===n||n.call(t,e)};return{withAdServerAd:i,withFinnBlinkAd:e=>B(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return xd});yield t(e,o,null)}),withFullAdsChain:e=>B(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void i(e);const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return xd});yield t(e,o,i,()=>B(void 0,void 0,void 0,function*(){if(!R.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return O});t(e)}))})}},jn=(e,t)=>B(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield On(e,t,()=>((e,t)=>{var n,o;const i="true"===t.dataset.isFinnBlinkOnlyPlacement;return De(e)&&i?(l(`loading finn blink ad for blink only placement for ${e}`),void Pn().withFinnBlinkAd(e)):De(e)?(l(`loading finn blink ad with full ads chain for ${e}`),void Pn().withFullAdsChain(e)):void(null===(o=null===(n=b())||void 0===n?void 0:n.render)||void 0===o||o.call(n,e))})((e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),$n=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Ln=new Map,_n=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],Nn=".brandstudio-premium-content-widget",qn=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),Fn=({adWrapper:e,placementContainer:t})=>{const n=qn({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),ee(o=t),o.innerHTML=""},Mn=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},Bn=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=m.get(),o=_n.includes(n)&&Boolean(t.closest(Nn));const i=o?t.closest(Nn):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!o&&!a||o&&!i)return;if(a)return Mn(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?Mn(d):s.hasAttribute("style")&&Mn(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},Dn=(e,t,n,o,i)=>{var r;const a=performance.now(),d=null!==(r=Ln.get(e))&&void 0!==r?r:0,s=((e,t)=>!!t&&e+t<(new Date).getTime())(n,o)&&t<0;a-d>=o&&s&&(Ln.set(e,a),((e,t)=>{var n,o;const i=null==t?void 0:t.parentElement;i&&t&&Fn({adWrapper:i,placementContainer:t}),null===(o=null===(n=b())||void 0===n?void 0:n.refresh)||void 0===o||o.call(n,[e],{applyReloadKeyword:!0})})(e,i))},Rn=(e,t=6)=>{const n=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);n.push(i)}return n},zn=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Un=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Wn=(e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;Bn({adWrapper:i,placementContainer:o});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();o&&"true"!==o.dataset.subscribedForRefresh&&(o.dataset.subscribedForRefresh="true",o.dataset.refresh&&((e,t,n)=>{const o=new IntersectionObserver((e,o)=>((e,t,n,o)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:r}=e;t(i.id,r.y,n,o,i)})})(e,Dn,t,n),$n(300));o.observe(e)})(o,a,r))},Hn=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=m.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Xn(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Vn=(e,t,n)=>{const o=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of o){const o=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)}),r=null==o?void 0:o.requestThreshold;Un(i,r)&&o&&(U(o.targetId),n.length&&i.classList.remove(...n),Xn([o],t))}},Kn=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=m.get();t&&(e.forEach(({targetId:e})=>{const t=Gn(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Vn(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),Vn(e,!1,t))};n.persisted&&(zn()?window.addEventListener("scroll",o,{passive:!0}):Vn(e,!1,t))})})(e,n))},Gn=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Xn=(e,t=!1)=>{const n=b();if(!(null==n?void 0:n.refresh))return;const{queryConfig:{batchSize:o=g}={}}=m.get();for(const i of Rn(e,o))n.refresh(i.map(({targetId:e})=>e),t?{keepPreviousSizes:i}:void 0)},Jn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=m.get(),n=Jt(t),o=e[`${n}-targetid`],i=o?F(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},Yn=e=>{const{pageContext:{countryCode:t}}=m.get(),n=Jt(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"]})},Qn=e=>{if("true"!==P("scrollToFirstInvCode"))return;const t=P("ast_override_inv_code");if(!t)return;const n=t.split(",")[0].split(":")[0],o=e.find(e=>e.invCode===n),i=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);i&&i.scrollIntoView({behavior:"smooth",block:"start"})},Zn=(e,t)=>B(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 eo(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}eo(".advertory-brandmetrics-survey{width:100%}");const to="advertory-brandmetrics-survey",no=()=>B(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)}}),oo="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",io=()=>B(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,o)=>{var i;o||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),ro={pageContext:{publisher:"aftonbladet",countryCode:Je.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"}},ao={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},so=e=>(null==e?void 0:e.parent)?[...so(e.parent),e.shortPath||"unknown"]:[],lo=(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]=so(e);return ao[n]||"ovrigaavdelningar"})(e)}_{position}`,co={aftonbladet:ro},uo={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:lo(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:so(e).join(":")}}},po=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},vo=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),go="se-generic",ho="aa-sch",mo="kv_",fo="pause",yo="{deviceType}",bo="{position}",wo="afp_",xo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),ko="1-1",Co="16-9",Io="3-4",To="9-16",So="responsive",Eo={[ko]:1,[Co]:1.78,[To]:.56,[So]:1},Ao={[ko]:1,[Co]:1.78,[Io]:1.33,[To]:.56},Oo=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=ce===n?ve:ge,d=i.replace(yo,a);return(e,n)=>{if(e===fo)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(bo,fo).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&xo.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(yo,a).replace(bo,e)}return d.replace(bo,e)}},Po=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[o,i])=>{const r=Math.abs(e[n]-t);return Math.abs(i-t)<r?o:n},n[0][0])},jo=()=>{var e,t;const n=jwplayer().getContainer(),o=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return o&&"number"==typeof o.offsetWidth&&"number"==typeof o.offsetHeight&&0!==o.offsetHeight?o.offsetWidth/o.offsetHeight:1},$o=()=>{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},Lo=()=>{const e=null!==(t=$o()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=$o()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},_o=()=>Object.fromEntries(new URLSearchParams(window.location.search)),No=(e,t)=>B(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:o,countryCode:i}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:o,pageType:"front",deviceType:e.deviceType},s=(yield tt(n,e.isApp,i,"video"))?"1":"0",l=yield io(),c=yield yn(i),u=yield ot({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Po(Ao,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Po(Eo,Number(m.toFixed(2))):So;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ho}-country_code`]:i,[`${ho}-publisher`]:o,[`${ho}-supply_type`]:(f=e.deviceType,f===ce?ue:pe),[`kw_${ho}-page_type`]:"collection",[`${ho}-page_type`]:"collection",[`${go}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${go}-page`]:"index",[`${go}-page`]:"index",[`${go}-screenheight`]:String(window.screen.height),[`${go}-screenwidth`]:String(window.screen.width),[`${go}-viewportheight`]:String(a),[`${go}-viewportwidth`]:String(r),[`${go}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${go}-mobile-os`]:At(),[`${go}-audience`]:void 0,[`${go}-externalid_src`]:Lo(),[`${go}-tags`]:e.tags,[`${go}-articleid`]:p,"article-id":p},yield Yt(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${go}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(_o()).some(e=>e.includes(mo))&&(()=>{const e=_o(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(mo)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),qo=["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"],Fo=["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"],Mo=["external_uid","gdpr","gdpr_consent","eids","article-id"],Bo=(e,t)=>{const n=[...qo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Mo.includes(e)?e:`kw_${e}`,t]))},Do=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Fo.includes(e))),Ro=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;co[e]||c(`[video] No config found for publisher "${e}"`);return null!==(t=co[e])&&void 0!==t?t:ro})(e.publisher),d=(e=>{var t;return null!==(t=uo[e])&&void 0!==t?t:uo.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),u=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,v=u?"preroll":"bumper";var g;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield No({pageAdsKeywords:e.pageAdsKeywords,tags:(g=e.tags,g?g.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:u,instreamAspectRatio:p,playerAspectRatio:jo(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:po(e.startMode)}}),zo=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=Oo(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(wo)?`${wo}${t}`:t)(s),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":vo.get(d),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Bo(r,n)),Do(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Uo=e=>t=>B(void 0,void 0,void 0,function*(){const n=yield Ro(e,t);return zo(n,e)}),Wo={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]}]},Ho={no:"NOK",se:"SEK"},Vo={no:"no",se:"sv"};class Ko{buildFetchObject(e,t,n,o){return B(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield io(),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(Wo),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:re(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Vo[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield ot(o),ext:{consent:s.gdpr_consent||"",eids:fn(i)}},at:1,cur:[Ho[i]],source:{tid:re(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return B(this,void 0,void 0,function*(){try{l("Starting fetching Studio ad from Xandr:",oo);const i=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${oo}?${a.toString()}`:oo,s=yield this.buildFetchObject(e,t,n,o),c=yield V.post(d,i,s);return l("Fetch operation completed successfully.",c),c}catch(e){l("Error during fetch operation:",e)}return null})}}const Go=0,Xo=3,Jo=e=>`externalImpId:'${e}'`,Yo=(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,Qo=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=m.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:c=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:v=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||gt())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],o=Array.isArray(n)?n.filter(e=>e!==at):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":o}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:i})})(e),h=Object.assign({invCode:s,sizes:r,targetId:i,keywords:Yo(a,c),allowedFormats:d,dynamicSizeWidthCheck:v,globalPlacementId:g},p&&{safeframeConfig:p}),f=(e=>{var t,n;const o=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 o?(l("Pulse state pageViewId is:",o),o):(l("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&f&&(l("External Impression ID assigned to defineTag:",Jo(f)),h.externalImpId=Jo(f));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,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),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}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},Zo=e=>!e.includes("takeover")||gt(),ei=(e,t,n,o)=>{const i=t.parentElement;if(!i)return;const r=e?`-${e}`:"",a=o?`__${o}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},ti="finn-blink",ni="native-ad",oi=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},ii=(e,t,n)=>{var o,i,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),oi(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},ri=(e,t,n)=>{var o;const i=t.replace(/-[^-]*$/,"");return null===(o=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===o?void 0:o.invCode},ai=(e,t)=>{new IntersectionObserver((e,n)=>{for(const o of e)if(o.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class di{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&&ai(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 si extends di{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 ri(e,this.adObj.targetId,t)}buildAdObject(){const e=si.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 li=Object.freeze({__proto__:null,XandrAdTracker:si});const ci=(e,t)=>{ui(e,t),vi(e,t)},ui=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,o,i,r,a,d;for(const t of null!==(o=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==o?o:[])hi(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:ce};new si({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},pi=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=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;o||!i?null==n||n.forEach(gi):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},vi=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:ce])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,pi(e),c.disconnect();break}},s);c.observe(i)},gi=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?hi(e):window.navigator.sendBeacon(e)},hi=e=>{V.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},mi=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:[]}),fi=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void l(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},$n(d)).observe(s)});const{prepareTag:c}=m.getHandlers(),u=R.getData("alertoryConfigKeywords"),p=null!==(o=c(Qo(e)).keywords)&&void 0!==o?o:{},v=new Ko,g=yield v.fetchData(e,u,p,t);g&&(((e,t,n)=>{const o=n===se?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===Go){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>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(s,g,i),g.adType===Xo&&(ei(t.pageContext.publisher,s,ni,t.pageContext.pageType),ci({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:i,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,o)=>{var i,r,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==o?void 0:o.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),ii(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),yi=(e,t)=>{e.forEach(e=>fi(e,t).catch(e=>{l("Failed to handle server-side ad:",e)}))},bi=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(qt).includes(o);n&&r&&ei(o,e,ni,i)})(i,n),o())},wi={"no-aftenposten":qt.AFTENPOSTEN,"no-stavangeraftenblad":qt.SA,"no-bergenstidende":qt.BT},xi=(()=>{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()}}})(),ki=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:K}/${X}/${e}/adjustments/${t}.json`)(e,n,t),i=xi.getAdjustment(o);if(i)return i;const r=V.get(o,{timeout:G}).catch(e=>(l("Failed to fetch native template adjustment",{error:e,url:o}),null));return xi.setAdjustment(o,r),r},Ci=(e,t,n)=>B(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:K}/${X}/${e}/default.json`)(e,n);let i=xi.getTemplate(o);i||(i=V.get(o,{timeout:G}).catch(e=>{throw l("Failed to fetch native template",{error:e,url:o}),xi.deleteTemplate(o),e}),xi.setTemplate(o,i));const r=ki(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),Ii="data-ad-video",Ti="viewable",Si="adClick",Ei=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.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"}))},Ai=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),Oi=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},Pi=e=>B(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 o=document.createElement("script");o.id=e,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(o,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)))}))}),ji={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 B(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Cd})})}})}},$i=(e,t)=>{null==e||e.forEach(e=>{ji[e](t)})},Li={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},_i=({container:e,native:t,type:n,publisher:o})=>{const i=e.querySelector(`[${Ii}]`),{video:r,image:a,clickUrl:d=""}=t;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:s,videoLoop:l}=(e=>{var t;return null!==(t=Li[e.toLowerCase()])&&void 0!==t?t:Li.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="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:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},Ai(e)?e:{}),{provider:Object.assign(Object.assign({},Ai(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:Ei(r.content,d),publisher:o,videoLoop:l});B(void 0,[{playerConfig:p,clickUrl:d,pluginsNames:s}],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const o=yield Pi(e);$i(t),o.once("assetReady",()=>{Oi(o,t)}),o.on(Ti,e=>{const{viewable:t}=e;t?o.play():o.pause()}),n&&o.on(Si,()=>{window.open(n,"_blank")}),e.repeat&&o.on("pause",()=>{o.play()})})},Ni=(e,t)=>{const{adjustmentOverrides:n}=e,o=M(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},o),t.overrides&&{adjustmentOverrides:a({},t.overrides)})},qi="desktop",Fi="mobile",Mi="container",Bi="text",Di="image",Ri="cogwheel",zi="video",Ui=e=>{if(e)return e===se?Fi:qi},Wi=(e,t,n)=>{var o,i,r,a,d,s,l,c,u,p,v,g,h;const m=t?null===(o=e.overrides)||void 0===o?void 0:o[t]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],y=t?null===(r=null==n?void 0:n[t])||void 0===r?void 0:r[e.id]:void 0;if(null!==(s=null!==(d=null!==(a=null==y?void 0:y.hidden)&&void 0!==a?a:null==f?void 0:f.hidden)&&void 0!==d?d:null==m?void 0:m.hidden)&&void 0!==s?s:e.hidden)return null;const b=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),w=null!==(u=null!==(c=null!==(l=null==y?void 0:y.tag)&&void 0!==l?l:null==f?void 0:f.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==y?void 0:y.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,k=null===(h=e.children)||void 0===h?void 0:h.map(e=>Wi(e,t,n)).filter(e=>null!==e),C={id:e.id,tag:w,type:e.type,name:e.name,styles:b,connections:e.connections};return void 0!==x&&(C.text=x),void 0!==k&&(C.children=k),C},Hi=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"&quot;"))(t)}`).join(";"),Vi=(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 Ki{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 Gi=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const{properties:o}of e)for(const e of o){const o=Vi(t,e);o&&n.push(o)}return n.join(" ")})(e.connections,t):n},Xi=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Yi(e,t,n,!1)).join(""),s=new Ki(r);return o(s),s.attr("href","a"===r?Gi(e,t):"").attr("style",Hi(a)).children(d).build()},Ji={[Mi]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Xi(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Ri]:(e,t,n)=>Xi(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[Bi]:(e,t)=>{var n;return new Ki(e.tag).attr("style",Hi(e.styles)).children(Gi(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Di]:(e,t)=>new Ki("img",!0).attr("style",Hi(e.styles)).attr("src",Gi(e,t)).build(),[zi]:(e,t)=>"video"===e.tag&&Gi(e,t)?new Ki("div").attr(Ii,"true").attr("style",Hi(e.styles)).build():""},Yi=(e,t,n,o=!0)=>{const i=Ji[e.type];return i?i(e,t,n,o):""},Qi=e=>(t,{publisher:n,containerId:o,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const a=o?Ni(e,o):e,d=Wi(a.root,n,a.adjustmentOverrides);return d?Yi(d,t,{breakpoint:n,publisher:i,containerId:r}):null})({config:e,nativeData:t,breakpoint:Ui(i),publisher:n,containerId:o}),Zi="[data-carousel-track]",er=({image_link:e,title:t})=>{const n=document.createElement("figure"),o=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),o.className="slide-image",o.src=e,o.alt=t,o.loading="lazy",o.draggable=!1,n.appendChild(o),n},tr=e=>Boolean(e.title&&e.link&&e.image_link),nr=(e,t)=>B(void 0,void 0,void 0,function*(){const n=e.querySelector(Zi);var o;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>B(void 0,void 0,void 0,function*(){try{const t=yield V.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(c("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return c("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const r=i.items.filter(tr);if(!r.length)return void c("Carousel feed has no usable items");yield Promise.resolve().then(function(){return Td});const a={title:(o=e).querySelector("[data-product-title]"),description:o.querySelector("[data-product-description]"),price:o.querySelector("[data-product-price]"),link:o.querySelector("[data-product-link]")};n.replaceChildren(...r.map(er)),(({root:e,onChange:t})=>{var n;const o=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(Zi),r=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!o||!i||!r.length)return;const a=r.length,d=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let s=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,r=(o.clientWidth-t)/2-s*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${r+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{s=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===s)),null==t||t((s-1+a)%a)},g=()=>{0===s?v(a,!1):s===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*o.clientWidth?-Math.sign(c):0;l=null,c=0,v(s+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...d),i.addEventListener("transitionend",e=>{e.target===i&&g()}),o.addEventListener("pointerdown",e=>{g(),l=e.clientX,o.setPointerCapture(e.pointerId),p(!1)}),o.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),o.addEventListener("pointerup",h),o.addEventListener("pointercancel",h),o.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:o},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),o&&(o.href=i.link)})(a,r[e])}),l("Carousel mounted",{items:r.length})}catch(t){c("Carousel could not be rendered",t),e.replaceChildren()}else c("Carousel feed url is missing or not a valid https url",{url:t})}),or="default",ir=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r,a,d;const s=document.querySelector(`#${e.targetId}`),{native:c}=e;if(!c||!s)return;const{desc2:u}=c,p=null==u?void 0:u.toLowerCase(),v=((e,t)=>{const n=L($),o=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&o?o:(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!=u?u:or),g=(null!=v?v:p)||or,h=(null===(n=c.video)||void 0===n?void 0:n.content)?`${g}-video`:g,m=(e=>{var t;if(e)return null!==(t=wi[e])&&void 0!==t?t:e})(null===(o=t.pageContext)||void 0===o?void 0:o.publisher);try{const{schema:n,adjustment:o}=yield Ci(h,m,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),l=o?Ni(n,o):n,u=Qi(l),p={publisher:m,pageType:null===(r=t.pageContext)||void 0===r?void 0:r.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},v=u(c,p),{enabled:f=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};bi(e.targetId,v,p,()=>{oi(e.targetId),_i({container:s,native:c,type:g,publisher:m}),f&&ci(e,p)})}catch(e){l("Failed to render native ad from config",{error:e})}}),rr="explicit",ar="dom-discovered",dr=e=>`${Math.max(0,Math.round(e))}px`,sr=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},lr=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},cr=()=>{const{pageSectionsSelectors:e}=m.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=sr(t);lr({"--advertory-header-height":dr(n)})})(e.header)},ur=()=>{const e=b();if(!e)throw new Error("Ad server driver is not set, pass a driver to init()");return e};let pr=[];const vr=["takeover","wallpaper"],gr=(e,t)=>{var n,o;const{initNativeAd:i}=m.getHandlers();null==i||i(e,null!==(o=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==o?o:m.get())},hr=e=>{const t=(e=>{var t;const n=R.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:h,takeover:m,fullscreenScroll:f,fullWidth:y}=e,b=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:g;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:h,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),f&&{fullscreenScroll:f}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.19.0",siteConfig:e,renderNativeAd:gr,alertoryConfig:t}},mr=()=>B(void 0,void 0,void 0,function*(){yield ur().setTargeting()}),fr=e=>B(void 0,void 0,void 0,function*(){var t,n,o,i;const r=ur(),a=null!==(n=yield null===(t=r.adjustPlacementsBeforeRequest)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:e;null===(o=r.definePlacements)||void 0===o||o.call(r,a),yield null===(i=r.requestPlacements)||void 0===i?void 0:i.call(r,a)}),yr=(e,t)=>B(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=m.get(),{requestThreshold:i,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[o];a&&(l("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:d}),yield jn(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(l("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),br=e=>e.some(({targetId:e})=>vr.some(t=>e.includes(t))),wr=e=>B(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,o]=(e=>e.reduce(([e,t],n)=>{var o;return(null===(o=null==n?void 0:n.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=g}={},pageContext:{deviceType:o}}=m.get(),i=we(e),r=Object.keys((null==t?void 0:t[o])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...Rn(d,n)]})(o);for(const e of i)br(e)?(l("core loadAds without lazy loading",{placementsToLoad:e}),yield fr(e)):e.length&&(l("core loadAds with lazy loading",{placementsToLoad:e}),yield xr(e));const{finnBlink:r}=m.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return xd});yield e(n)}}),xr=e=>B(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=m.get(),o=[];if(!t)return l("lazy load is not enabled",{placements:e}),void(yield fr(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{l("lazy load is enabled - handler start",{loadedTargetIds:o,placements:e});const i=e.every(e=>o.includes(e.targetId)),r=e.map(e=>e.targetId);!i&&o.push(...r),!i&&fr(e),l("lazy load is enabled - handler stop",{loadedTargetIds:o,placements:e,arePlacementsLoaded:i,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(l("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),kr=()=>B(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>B(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=>B(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=pr.find(({targetId:t})=>t===e.targetId);t&&(yield yr(t,e),pr=pr.filter(e=>e.targetId!==t.targetId))})),yield ur().bindEvents(e)}),Cr=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r;if(l(`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 l("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:a,disableAds:d,reloadExistingAds:s,renderFinnBlinkPlacements:c,contextSelector:u}=null!=t?t:{},p=Object.keys(null!=e?e:{}).length>0;let v=[];if(d)return te(),pr=[],ne(),[];if(a&&(v=null!==(o=te())&&void 0!==o?o:[]),a&&!p)return[];if(a&&p&&(pr=[],ne()),s&&(te(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{q(e.id)})),yield oe(e),(null==e?void 0:e.pageSectionsSelectors)&&cr(),yield mr(),ur().capabilities.tagDefinition===ar)return l("Advertory update - dom-discovered driver finds its own placements, requesting the page"),yield null===(r=(i=ur()).requestPage)||void 0===r?void 0:r.call(i),pr;const{clientSidePlacements:g,serverSidePlacements:h}=mi(ye(u)),f=[...g,...h];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>F(e)));e.filter(e=>n.has(e)).forEach(e=>q(e))})(v,f),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>F(e)));e.filter(e=>!n.has(e)).forEach(e=>z(e))})(v,f);let y=g;return c&&(y=y.filter(e=>De(e.targetId))),yi(h,m.get()),y.length>0&&(pr=[...pr,...y.map(e=>Object.assign({},e))],ur().capabilities.refresh&&(Hn(y),Kn(y)),yield wr(y)),pr}),Ir=(e,t,n)=>B(void 0,void 0,void 0,function*(){var o,i;y=n,m.set(e),m.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:a,rightColumnSplit:d,finnBlink:s}=e;R.initialize(),window.addEventListener("message",An,!1);const[c]=yield Promise.allSettled([n.setup(),vn(e),B(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=m.get();(yield tt(t,n,o,"gpt-endpoint"))&&(yield bn(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),B(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=m.get(),{getConsentAsync:r}=et(n,0,i),a=yield r();if(e&&t&&a){if(yield bn(t),document.querySelector(`.${to}`))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(to)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),Wt(),B(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=m.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield bn(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(l("Driver has been set up"),null==r?void 0:r.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Ed});yield e()}if(l("Libraries have been loaded and trackers have been set"),cr(),yield kr(),yield mr(),l("Page options have been set"),hr(e),l("Advertory is setup on window"),n.capabilities.tagDefinition===ar)return yield null===(o=n.requestPage)||void 0===o?void 0:o.call(n),void l("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=mi(ye());if(pr=u,yi(p,e),n.capabilities.refresh&&(Hn(pr),Kn(pr)),yield wr(pr),l("Ads has been loaded",pr),Qn(pr),null==s?void 0:s.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return xd});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 Promise.resolve().then(function(){return _d});t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return es});yield t(e)}}),Tr=(e,t,n)=>B(void 0,void 0,void 0,function*(){l(`Received configuration passed to Advertory: ${JSON.stringify(e)}`),yield((e,t,n)=>B(void 0,void 0,void 0,function*(){var o,i;const{initConsentManager:r,getConsentAsync:a}=et(e.tcf,null===(o=e.pageContext)||void 0===o||o.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),d=yield Q(e);yield no(),yield Zn(r),yield Zn(a),l("TCF resolved successfully"),yield Ir(d,t,n),l("Run function resolved successfully")}))(e,t,n)}),Sr={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"}},Er=["sponsor","seamless"],Ar=["shopping"],Or=(e,t,n,o)=>{var i;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:x,customBody4:k,customBody5:C,customIcon1:I,customIcon2:T,customDisplayUrl1:S,customDisplayUrl2:E}=e,A=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:A(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=Er.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return A(t?I:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",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!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=x?x:"",customBody4:null!=k?k:"",customBody5:null!=C?C:"",logo2:A(T),previewVideoSrc:null!=S?S:"",feedUrl:null!=E?E:""},t)},Pr=(e,t)=>{const n=L($),o=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!Ar.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},jr=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(qt).includes(o);n&&r&&ei(o,e,ni,i)})(i,n),o())},$r=(e,t,n)=>{var o;const i=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=Pr(e.targetId,l))&&void 0!==o?o:c,p=Sr[t.language||Je.NO],v=Or(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);jr(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&ci(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&nr(r,null===(o=e.native)||void 0===o?void 0:o.customDisplayUrl2)},Lr=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});$r(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},_r=/_\d+$/,Nr=e=>e.replace(_r,""),qr=()=>{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 Fr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return B(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 B(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Mr=9826;class Br{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=m.get();if(t){return{"aa-sch-supply_type":`app_${e===se?"phone":le}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return B(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 B(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=nt("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return B(this,void 0,void 0,function*(){return yield ot(m.get())})}isTrackingForbidden(){return B(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=Mr}={}}=m.get();return"true"===P("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=m.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return B(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get(),{getConsentAsync:o}=et(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=m.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 Dr=new Br;function Rr(e=!1){var t,n;const o=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=At();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Dr.prepare.bind(Dr);const zr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Ur(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",zr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Wr extends Br{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=m.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=m.get(),{OS:n,isHybridApp:o}=Rr(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Ur(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=m.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"===o?"article":"front"}`}}}const Hr=new class extends Wr{prepare(e){return B(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=m.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Fr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Yt(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(hn()).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({},gn(Je.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Vr=Hr.prepare.bind(Hr);class Kr extends Br{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=m.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return{width:e||n||0,height:t||o||0}}(),t={width:null!==(o=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==o?o:0,height:null!==(r=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==r?r:0};var n,o,i,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return B(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}}=m.get(),{appMode:t,mobileOS:n}=Rr(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:o}}=m.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"===o?"article":"front"}`}}}const Gr=new class extends Kr{prepare(e){return B(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=m.get(),s=null!==(o=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},l=null!==(a=null===(r=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},c=new Fr;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(Yt(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>B(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),c.add(this.getSupplyTypeKeywords()).add(hn()).addIf(l.appType,this.getAppTypeKeywords()).addIf(l.device,this.getDeviceKeywords()).addIf(l.screen,this.getScreenKeywords()).addIf(l.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(l.sectionPageType,this.getSectionPageTypeKeywords()).addIf(l.hasContext,this.getHasContextKeywords(e.keywords)).addIf(l.hasPlusMembership,{"se-generic-has_plus":"plus"===nt("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const u=c.build(),p=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:u,user:Object.assign(Object.assign({},gn(Je.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Xr=Gr.prepare.bind(Gr),Jr=[];let Yr=e=>{Jr.push(e)};const Qr=e=>{Yr(e)},Zr="ad-loaded",ea={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},ta=e=>{const{apntag:t,bus:n}=e,{siteEvents:o,initNativeAd:i}=m.getHandlers(),r=Object.assign(Object.assign({},ea),o),a=[];return{adRequested:()=>{n.emit("adRequested"),r.adRequested()},adAvailable:e=>B(void 0,void 0,void 0,function*(){var t,o,a,d,s,c;l("core adAvailable start",{adObj:e,isFullscreenScrollAd:$e(e),isFinnBlink:De(e.targetId),isNativeAd:Le(e),isMediation:Ke(e),isTakeoverAd:Ne(e),isCollapseAd:Me(e),isWallpaperAd:Fe(e)});const u=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(Ke(e)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(c=null===(s=u[1])||void 0===s?void 0:s.rtb)||void 0===c?void 0:c.banner),$e(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return $a});t(e)}const{widescreenSwitching:p,wallpaper:v,fullscreenScroll:g}=m.get();if(Ue(e)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return rs});e()}if($e(e)&&!De(e.targetId)){l("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 $a});t(e,g)}if(!Le(e)||Ke(e)||De(e.targetId)||null==i||i(e,m.get()),Ne(e)&&!Me(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield Promise.resolve().then(function(){return Ss});t(e.targetId),yield n(e)}if(Fe(e)&&(null==v?void 0:v.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return O});t(()=>Qr(()=>window.apntag.showTag(e.targetId)),v),R.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&R.setData("horseshoe",{isAvailable:!0}),r.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),l("core adAvailable stop",{adObj:e,isFullscreenScrollAd:$e(e),isFinnBlink:De(e.targetId),isNativeAd:Le(e),isMediation:Ke(e),isTakeoverAd:Ne(e),isCollapseAd:Me(e),isWallpaperAd:Fe(e)})}),adLoaded:e=>B(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:d,adScaleConfig:s,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=m.get(),v=document.getElementById(e.targetId);if(De(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield Promise.resolve().then(function(){return pd});t(e)}if(a.includes(e.targetId)&&Le(e)&&(null==i||i(e,m.get()),St({adObj:e})),!a.includes(e.targetId)&&Ke(e)&&a.push(e.targetId),Me(e)&&N(e.targetId),Ne(e)){const{modifyTakeoverIframe:n}=yield Promise.resolve().then(function(){return Ss});n(t,e.targetId)}if((e=>Ve(e,Ce))(e)){const{applyNinesixteenFormat:t}=yield Promise.resolve().then(function(){return Ps});t(e)}if((e=>Ve(e,Te))(e)){const{applyFullsquareFormat:t}=yield Promise.resolve().then(function(){return Ps});t(e)}if(_e(e)){const{applyFullwidthFormat:t}=yield Promise.resolve().then(function(){return Ps});t(e)}Wn(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&z(e.targetId);if(R.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return O});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield Promise.resolve().then(function(){return _t});t(e),n(e)}if(r.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return li}),n=new t(m.get(),e);n.trackLoad(),n.trackImpression()}oi(e.targetId),v&&(v.classList.add(Zr),(e=>{var t,n;const{pageSectionsSelectors:o}=m.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),St({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:Et(e)}}))}),adNoBid:e=>B(void 0,void 0,void 0,function*(){if(N(e.targetId),Ne(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return It});yield t(e)}r.adNoBid(e)}),adError:(e,t)=>B(void 0,void 0,void 0,function*(){if(Ne(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return It});yield e(t)}r.adError(e,t)}),adCollapse:()=>{r.adCollapse()},adRequestFailure:e=>B(void 0,void 0,void 0,function*(){N(e.targetId),r.adRequestFailure(e)}),adBadRequest:e=>B(void 0,void 0,void 0,function*(){N(e.targetId),r.adBadRequest(e)}),adLoadedMediated:e=>r.adLoadedMediated(e),adNoBidMediated:e=>{r.adNoBidMediated(e)}}},na=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Gn(t)),i=(e=>1===e[0]&&1===e[1])(o),r={sizes:[o],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(r.native=void 0),r},oa=()=>(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),ia=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),ra=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=m.get(),r=[`${Jt(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",...o?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},aa="advertory-fullscreen-scroll",da="advertory-fullscreen-scroll-wrapper",sa="fullscreen-scroll-in-screen",la="in-screen",ca=e=>e.includes("snoap.no"),ua=e=>{var t,n,o,i,r;return!!(null===(r=null===(i=null===(o=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===o?void 0:o.adResponse)||void 0===i?void 0:i.ads[1])||void 0===r?void 0:r.rtb)},pa=st([],()=>{const e=({width:e,height:t})=>{var n;const o=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!o)return;const{clientWidth:i,clientHeight:r}=o,a=e/i,d=t/r;o.style.transform=`scale(${a},${d})`,o.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}),va=e=>{const t=st([],()=>{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 o=n.contentDocument.createElement("style");o.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(o),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},ga=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},ha=[],ma={},fa=(e,t)=>{var n;const o=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>ya(e,o),{}),r=wa(e);i.observe(e),o&&(ma[r]=Ca(e,null==t?void 0:t.options))},ya=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=wa(e);n?(ba(o,n),xa(e,o,t)):(ba(o,n),ka(e,o,t))})},ba=(e,t)=>{var n,o;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const r=t?"showFullscreen":"hideFullscreen";null===(o=i.contentWindow)||void 0===o||o.postMessage(`advertory:${r}-${e}`,"*")},wa=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},xa=(e,t,n)=>{e.classList.add(la),document.body.classList.add(sa),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),ha.includes(t)||ha.push(t),n&&window.addEventListener("scroll",ma[t],{passive:!0})},ka=(e,t,n)=>{ha.includes(t)&&(n&&window.removeEventListener("scroll",ma[t]),document.body.classList.remove(sa),e.classList.remove(la),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Ca=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:o=[".skyscraper_r"],headerZIndex:i=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),o.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&Ia(e,r,i,0),a.length&&Ia(e,a,i,40)}},Ia=(e,t,n,o)=>{const i=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-o:(r+t-(a+i))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};eo('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 Ta="left";let Sa=null;const Ea=(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=`(${pa})()`,e+t.outerHTML})(n),n=ga(n),n=(e=>{if(ca(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=va(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ca(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)),ca(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)),ua(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},Aa=()=>{Sa=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,o=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",`${o}px`)},Oa=()=>{Sa||(Sa=window.requestAnimationFrame(Aa))},Pa=(e,t)=>{var n,o,i,r,a;const{pageContext:{countryCode:d,deviceType:s}}=m.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:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/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 ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==c?void 0:c.overlayStyles)&&void 0!==o?o:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;fa(p,t),u.className=aa,fa(p,t),u.className="advertory-fullscreen-scroll";const v=Ve(e,xe)?"absolute":"fixed";u.style.position=v,p.className=da,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:Sr[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===Ta&&(u.dataset.moveCogwheelToTheLeft="true"),Oa(),window.addEventListener("resize",Oa),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",Oa),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",Oa)},ja=e=>{if(!(null==e?void 0:e.classList.contains(aa)))return;e.classList.remove(aa),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(da))&&(t.classList.remove(da),t.classList.remove(la))};var $a=Object.freeze({__proto__:null,createFullscreenScrollAd:Pa,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=ua(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=ua(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Ea(t,e))},undoFullscreenScrollContainer:ja});const La=()=>B(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:o,deviceType:i},fullscreenScroll:r,appearanceConfig:a,placements:d}=m.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=m.getHandlers(),{getConsentAsync:c}=et(t,0,n),u=yield c(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=oa(),{prebid:{relevantCallbackTimeout:r}={}}=m.get(),a="relevantCb"===o&&r?r:n[o].timeout,d=setTimeout(()=>{!n[o].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${o}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),v=oa(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=oa();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:f}=g;(()=>{const e=ia();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{l("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!v.loadTags)return l("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!v.loadTags,condition:"or"}),void p.cleanup();const t=ia();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const c=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};l("prebid consentManagement",c),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},mn(n)),ra(f,h))),l("core add prebid config",Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},mn(n)),ra(f,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{l("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e)),p.cleanup()}},customNativeRender:e=>{_a(e,s)},directRenderFn:e=>{var t,n,s;const{settings:c,renderFn:u}=e,{bid:p,adDiv:v}=c||{};if(!v)return;const g=v.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==d?void 0:d[i])||void 0===t?void 0:t.find(e=>e.targetId===g),f=null!==(s=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==s?s:0,y=Object.assign(Object.assign({},p),{targetId:g,banner:!0});l("prebid directRenderFn ad info",{targetId:g,width:null==p?void 0:p.width,height:null==p?void 0:p.height,adId:null==p?void 0:p.adId,creativeId:null==p?void 0:p.creativeId}),On(h,f,()=>{var e;const t=u(c),n=$e(y);if(l("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)l("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),Pa(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const o=new MutationObserver(()=>{n()&&o.disconnect()});o.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),o&&h.style.setProperty("--advertory-political-box-offset","30px");else{l("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),ja(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(Zr),(null==p?void 0:p.creativeId)&&ii(g,h,Number(null==p?void 0:p.creativeId))})}}),l("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e))}},customNativeRender:e=>{_a(e,s)},directRenderFn:()=>{}})})}),_a=(e,t)=>{var n;const{divId:o,native:i,bid:r}=e,a=document.querySelectorAll(`[id^=${o}]`)[0],d=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:d},m.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},Na="_adchoices_non_rtb",qa=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Na}={}}={}}=m.get();return`${Nr(e)}${t}`},Fa=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>N(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:qa(e.invCode)})))(e));let Ma="";const Ba=new Map;let Da;const Ra=()=>{var e;Da=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=Da,Yr=e=e=>window.apntag.anq.push(e),Jr.splice(0).forEach(t=>e(t))},za=()=>Da,Ua=()=>{const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();return tt(e,t,n,"loadPlacements")},Wa={name:"xandr",capabilities:{tagDefinition:rr,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:()=>B(void 0,void 0,void 0,function*(){Ra(),yield Promise.allSettled([B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();(yield tt(e,t,n,"xandr-endpoint"))||Da.setEndpoint("ib.adnxs-simple.com",!0)}),B(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=m.get();yield bn(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),B(void 0,void 0,void 0,function*(){if(_())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=m.get(),i=yield tt(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield bn(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>B(void 0,void 0,void 0,function*(){const{pageOptions:e}=m.get(),{preparePageOptions:t}=m.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=m.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"]}})(),o=yield B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();return(yield tt(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)}),o));(e=>{const t=R.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Yn(e);R.setData("alertoryConfigKeywords",n)})(i.keywords),Qr(()=>za().setPageOpts(i))}),enrichPlacementsAfterDiscovery:e=>{const{pageSetup:{tag:t}={}}=m.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Ma!==window.location.pathname&&(Ba.clear(),Ma=window.location.pathname),e.map(e=>{var t;const n=Nr(e.invCode),o=null!==(t=Ba.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=m.get();return`${e}-${t}`})()}-count`]=o,Ba.set(n,o+1),e})):e},adjustPlacementsBeforeRequest:e=>B(void 0,void 0,void 0,function*(){const t=yield Ua();return Fa(e,t)}),definePlacements:e=>{const{prepareTag:t}=m.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const o=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==o&&-1===i?-1:-1===o&&-1!==i?1:o-i})})(e).forEach(e=>{l("xandr definePlacements",{placement:e});const o=Qo(e);if(Zo(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:Jn(o),sizes:i}})(i);n.push(r),Qr(()=>(l("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),za().defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>B(void 0,void 0,void 0,function*(){const{prebid:t}=m.get();if((null==t?void 0:t.enabled)&&(yield Ua())&&!_())return l("xandr requestPlacements prebid enabled"),void(yield La());l("xandr requestPlacements without prebid enabled");const n=e.filter(({targetId:e})=>Zo(e)).map(({targetId:e})=>e);n.length&&Qr(()=>(l("xandr requestPlacements",{placementsIdsToLoad:n}),za().loadTags([...n])))}),bindEvents:e=>B(void 0,void 0,void 0,function*(){var t;yield(t={apntag:za(),bus:e},B(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=ta(t);Qr(()=>{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:()=>{Qr(()=>window.apntag.clearRequest())},render:e=>{Qr(()=>(l("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,na(e));Qr(()=>{((e,t)=>{if(!t)return;const{pageContext:{countryCode:n}}=m.get();window.apntag.setKeywords(e,{[`${Jt(n)}-adreload`]:"1"},{overrideKeyValue:!0})})(e,n),window.apntag.refresh(e)})},resizeCreative:(e,t,n)=>{const o=document.getElementById(`div_utif_${e}`);if(!o)return;const{apntag:i}=window,[r,a]=t;if(!o.dataset.lockedsize&&a&&r)o.style.width=`${r}px`,o.style.height=`${a}px`,n&&(i.resizeAd(o.id,[r,a]),o.dataset.lockedsize="true",o.dataset.lockedwidth=r.toString(),o.dataset.lockedheight=a.toString());else if(null==o?void 0:o.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=o.dataset;e&&t&&i.resizeAd(o.id,[e,t])}}},Ha="viewable",Va="adClick";var Ka=e=>(t,n,o)=>{const{video:i,img:r,url:a}=t,{publisher:d,productTag:s}=n,{pluginsNames:l,videoLoop:c}=o||{};if(!(null==i?void 0:i.content))return null;const u=Math.ceil(1e5*Math.random()),p=r||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${u}`,g=Ga(i.content,a),h=Xa({id:u,nodeId:v,poster:p,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Ja({playerConfig:h,clickUrl:a,pluginsNames:l}),`${e(t,n,v)}`};const Ga=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.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"}))},Xa=({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="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:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},Ai(e)?e:{}),{provider:Object.assign(Object.assign({},Ai(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Ja=e=>B(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield Pi(t);$i(n),r.once("assetReady",()=>{Oi(r,n)}),r.on(Ha,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Va,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Ya=({containerId:e,url:t,body:n,title:o,logo:i,isContentVideoAd:r=!1,imgWidth:a})=>{const d=`\n <div class="ad-header">\n <span>ANNONSØRINNHOLD</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`<div class="ad-text">${o}</div>`;return`\n <div id="${e}" class="advertory-godt-ad-content" ${a?`style="max-width: ${a}px"`:""}>\n <div class="ad-info" id="${e}-button"></div>\n ${r?`\n ${d}\n ${n}\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${s}\n </a>\n `:`\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${d}\n ${n}\n ${s}\n </a>\n `}\n </div>\n `},Qa=["IntegrationMenu"],Za=({containerId:e},t,n)=>` <div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-video-wrapper">\n <div id="${n}"></div>\n </div>\n <span class="ad-label">${Sr.no.adText}</span>\n </div>`;eo('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}');const ed={FRONT:"front"};eo('.advertory-abo-ad-native-sponsorstripe{position:relative;top:0;left:0;width:100%;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const td={default:{NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return $s}),`<article class="advertory-no-ad-native-default">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_self">\n <div class="ad-content">\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${i}" />\n </div>\n <div class="ad-text-container">\n <div class="ad-sponsor">\n <span class="ad-label">${r}</span> ${n}\n </div>\n <div class="ad-title">${o}</div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,logo:a,imgAltText:d})=>{const s=$t(i,r);return Ya({containerId:e,url:t,title:n,logo:a,imgWidth:i,body:`\n<div class="ad-image-wrapper" ${s?`style="padding-bottom: ${100*s}%"`:""}>\n <img alt="${d}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>Ka(({containerId:e,url:t,title:n,logo:o},i,r)=>Ya({containerId:e,url:t,title:n,isContentVideoAd:!0,logo:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>Ka(({containerId:e,url:t,sponsoredBy:n,title:o},i,r)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i})=>`\n<div id="${e}" class="advertory-godt-ad-native">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <div class="ad-header">${Sr.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">${i}</div>\n </a>\n</div>`)({containerId:e,url:t,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),weeklyMenuVideo:(e,t)=>Ka(Za)(e,t,{videoLoop:true,pluginsNames:Qa}),weeklyMenuStripe:({title:e,logo:t})=>`<div class="advertory-godt-ad-weekly-menu-stripe">\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').nextElementSibling;\n\n if (disclaimer.style.display === 'none') {\n disclaimer.style.display = 'block';\n } else {\n disclaimer.style.display = 'none';\n }\n } catch (error) {}\n })(arguments[0]);return false;"\n >\n <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14.25 16.5h-.75A1.5 1.5 0 0 1 12 15v-3.75a.75.75 0 0 0-.75-.75h-.75M11.625 6.75a.375.375 0 1 0 0 .75.375.375 0 0 0 0-.75v0"/><path clip-rule="evenodd" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25Z" fill-rule="evenodd"/></g></svg>\n </button>\n <div class="disclaimer" style="display: none">\n Annonsøren som presenterer ukemenyen har betalt for profilering av logoen på VG-forsiden og Godt.no, og annonsen mellom oppskriftene.\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>`,weeklyMenu:({containerId:e,url:t,img:n,imgAltText:o})=>`<div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <img alt="${o}" class="ad-image" src="${n}" />\n <span class="ad-label">${Sr.no.adText}</span>\n </a>\n</div>`,sponsorstripe:({title:e,logo:t})=>`\n <div class="advertory-godt-sponsorstripe">\n <div class="ad-container">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.add('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path fill="currentColor" d="M9 9.327a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0zM10 4.399a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 .348c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10m-8 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0" clip-rule="evenodd"/></svg>\n </button>\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n </div>\n <div class="disclaimer">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.remove('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 20.07a9.375 9.375 0 1 0 0-18.75 9.375 9.375 0 1 0 0 18.75" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7.25 14.444 7.5-7.5M14.75 14.444l-7.5-7.5"/></svg>\n </button>\n <div>\n Annonsøren som presenterer denne saken har betalt for profilering av fremhevet annonsemateriell i artikler og innhold på Godt.no\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>\n </div>`},nd={displayTemplates:{default:td.default,content:td.content,"ukesmeny-stripe":td.weeklyMenuStripe,ukesmeny:td.weeklyMenu,sponsorstripe:td.sponsorstripe,seamless:{NATIVE_SEAMLESS:({containerId:e,url:t,adText:n,img:o,cta:i,description:r,logo:a,sponsoredBy:d,title:s,feedUrl:l})=>(Promise.resolve().then(function(){return js}),`<article class="advertory-shared-ad-native-seamless">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank" data-product-link>\n <div class="ad-content">\n <div class="ad-header">\n ${a&&`<img alt="${d}" class="ad-logo" src="${a}" loading="lazy" />`}\n <div class="ad-annons">${n}</div>\n </div>\n ${(({img:e,title:t,feedUrl:n})=>n?'<div class="ad-carousel">\n <div class="carousel-window" data-carousel-viewport>\n <div class="carousel-track" data-carousel-track></div>\n </div>\n </div>':`<div class="ad-image-container">\n <img alt="${t}" class="ad-image" src="${e}" loading="lazy">\n </div>`)({img:o,title:s,feedUrl:l})}\n <div class="ad-footer">\n <div class="ad-row">\n <div class="ad-text-wrapper">\n <div class="ad-description" data-product-description>${r}</div>\n <h2 class="ad-headline" data-product-title>${s}</h2>\n </div>\n <div class="ad-purchase">\n <span class="ad-price" data-product-price></span>\n <div class="ad-action">${i}</div>\n </div>\n </div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_SEAMLESS},videoTemplates:{default:td.nativeVideo,content:td.contentVideo,menu:td.weeklyMenuVideo}},od={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=m.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=m.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}}=m.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${Jt(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in je)||window.innerWidth>=je[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=m.get(),n=`${Jt(t)}-targetid`;return e?{[n]:[e]}:{}})(o),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=qr(),h=(e=>Ge(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),f=((e,t)=>Ge(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Fr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${Jt(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:b,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>B(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=m.get();return yield t===Je.SE?Xr(e):Vr(e)}),siteEvents:Nt,initNativeAd:(e,t)=>{var n,o,i;if(null===(o=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===o?void 0:o.enabled)return void ir(e,t);const{targetId:r}=e;if(!document.querySelector(`#${r}`))return;const{pageType:a=ed.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l}=null!=t?t:{},c={language:Je.NO,publisher:qt.GODT,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l};$r(e,c,nd)}},id=((e,t,n)=>({init:o=>Tr(Object.assign(Object.assign({},o),{siteSpecificConfig:n}),e,t),update:Cr,renderNativeAd:gr,getVideoPPIDs:yn,createInitNativeAd:Lr,getVideoAdsConfig:Uo}))(od,Wa,Ft);eo('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const rd={Blink:"Blink"},ad=new Map,dd=e=>{var t;if(!ad.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,n]of Object.entries(rd)){const o=e[t];null!=o&&(window[n]=o)}})(e)).catch(t=>{throw ad.delete(e),t});ad.set(e,t)}return null!==(t=ad.get(e))&&void 0!==t?t:Promise.resolve()},sd="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js";class ld extends di{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return ri(e,this.targetId,t)}buildAdObject(){const e=ld.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const cd=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o},pulse:i}=m.get(),r=document.querySelector(`#${e}`);if(!r)return;if(r.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new ld(m.get(),e);t.trackLoad(),t.trackImpression(),r.addEventListener("click",()=>t.trackEngagement())}ei(n,r,ti,null!=t?t:o);St({preferredTestIdData:{targetId:e,testId:"finn"}})},ud=e=>{const{pageContext:{publisher:t=""}}=m.get(),n=document.querySelector(`#${e}`);if(!n)return;const o=`-${t}`;n.classList.remove(`advertory${o}-finn-blink`),n.classList.remove(`advertory${o}-finn-blink-wrapper`)};var pd=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=m.get(),{initNativeAd:n}=m.getHandlers();$e(e)&&Pa(e,t),Le(e)&&(null==n||n(e,m.get()))},finnBlinkLoaded:cd,xandrAdLoaded:ud});const vd=e=>{var t,n;const o=document.querySelector(`[id^="${e}"]`);return null!==(n=null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==n?n:e},gd=(e,t)=>{const{finnBlink:{enabled:n}={}}=m.get(),o=(null==t?void 0:t.enabled)||(e=>{var t;const n=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!o||!n)return null;const{height:i,requireImage:r,position:a,offset:d}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${vd(e)}`,enabled:o,position:null!=a?a:e,height:null!=i?i:100,offset:null!=d?d:200,requireImage:r,advertoryTheme:null==t?void 0:t.advertoryTheme}},hd=(e,t,n)=>B(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=m.get();l(`rendering finn blink ad for ${e}`);const a=F(e),d=o[i].find(e=>e.targetId===a),s=gd(e,null==d?void 0:d.finnBlink);if(!(null==s?void 0:s.enabled))return l(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void ud(e);if((e=>{var t;const n=vd(e),o=document.querySelector(`[id^="${n}"]`);return!!(null===(t=null==o?void 0:o.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void l(`Finn blink already loaded ${e}`);const{publisher:c,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:v}={}}=null!=p?p:{},g=null!=v?v:`${c}.${u}`,h="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield B(void 0,void 0,void 0,function*(){const{ppid1:e}=pn.getPPIDs();return e});yield(f=Object.assign(Object.assign({},s),{channel:g,userId:e,theme:h}),B(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=f,n=M(f,["userId","theme"]),o=window[rd.Blink];if(!o)return;const i=new o({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},n))})),cd(s.selector.replace("#",""),s.advertoryTheme)}catch(t){l(`Finn blink error ${t}`),n&&n(e),!n&&N(e),ud(e)}var f}),md=(...e)=>B(void 0,[...e],void 0,function*(e=500){return Promise.race([B(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])});class fd{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return B(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return l("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return B(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const yd=()=>B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();if(!(yield tt(e,t,n,"finn-blink")))return l("Skip loading finn blink ad due to missing TCF consent."),!1;const o=yield md();return!!(yield new fd(o).isUserLoggedIn())||(l("Skip loading finn blink ad because the user is not logged in."),!1)}),bd=(e,t)=>{var n;(l(`Appending ${t.id} after ${e.id}`),e.parentElement&&(n=e.parentElement,!Array.from(n.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):l(`Cannot perform afterend on: ${e.id}`)},wd=e=>document.querySelector(`#${e}`);var xd=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>B(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=m.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=wd(n);i&&(yield jn(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>B(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=m.get();if(l(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield yd())||i)return n&&n(e),ud(e),void(!n&&N(e));try{yield dd(sd)}catch(e){console.error(e)}yield hd(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>B(void 0,void 0,void 0,function*(){var n,o;if(!t)return;const{replacementConfig:i}=t,r=null===(n=null==i?void 0:i.adsToReplace)||void 0===n?void 0:n[e],a=null===(o=null==i?void 0:i.sizes)||void 0===o?void 0:o[e];(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})()&&r&&a?(yield yd())&&(yield dd(sd),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=m.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),ei(t,o,ti),l(`Creating blink container for: ${e}`),n})(t);(e=>{l(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),bd(n,o),n.dataset.finnBlinkId=t,Pn().withFullAdsChain(e)})):l(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const kd=eo("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var Cd=Object.freeze({__proto__:null,default:kd});const Id=eo("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");var Td=Object.freeze({__proto__:null,default:Id});const Sd=e=>e===Je.NO?"schibsted":"schibstedse";var Ed=Object.freeze({__proto__:null,getCampaign:Sd,loadNorstat:()=>B(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=m.get(),i=yield tt(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i}=pn.getPPIDs(),r=(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{B(void 0,[e,t,...n],void 0,function*(e,t,n=!0){if(document.getElementById(t))return;const o=document.createElement("img");o.src=e,o.id=null!=t?t:"",n&&(o.style.display="none"),document.body.appendChild(o)})})(`https://sch-map.norstatsurveys.com/api/nids/${Sd(t)}/map/${r}`,"norstat")})});const Ad=".advertory-right-column-track",Od="--advertory-right-column-track-height",Pd=e=>e.getBoundingClientRect().top+window.scrollY,jd=(e,t)=>`${e}-${t}`,$d=(e,t,n)=>{var o;const i=Array.from(null!==(o=e.querySelectorAll(t))&&void 0!==o?o:[]),r=(e=>e.map(e=>{var t;return null===(t=document.querySelector(`[id^="${e}"]`))||void 0===t?void 0:t.parentElement}).map((e,t)=>({point:e,originalIndex:t})).filter(e=>Boolean(e.point)))(n);if(0===r.length)return;const a=Pd(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Pd(e),i=jd(Od,t),r=o-n,a=jd("--advertory-right-column-split-point-height",t),d=sr(e);lr({[i]:dr(r),[a]:dr(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=jd("--advertory-right-column-ad-height",t),o=sr(e);lr({[n]:dr(o)})})(i[t])});((e,t)=>{const n=Pd(e)-t;lr({[Od]:dr(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let Ld=!1;var _d=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||Ld)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=Ad}=e,i=document.querySelector(o);if(!i)return;Ld=!0;const r=()=>{$d(i,n,t)};r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),window.addEventListener("load",r),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(r)});new ResizeObserver(r).observe(i)}});class Nd{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class qd{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const Fd="[data-k5a-teaser-analytics]";class Md extends di{constructor(e,t,n,o){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=o}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(Fd);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(Fd);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){ai(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const o=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(o):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(o):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,o)}))}trackEngagement(e){var t,n;const o=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(o):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(o):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,o)}}class Bd extends Md{getEventBaseData(){var e,t,n,o;const{clientName:i,creativeId:r,itemId:a,placement:d}=this.parseKilkayaData(),{primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:d,elementType:"Article",custom:{customer:i,creativeId:null!=r?r:a},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},placement:{primaryPosition:s,secondaryPosition:l,source:c},tags:null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===o?void 0:o.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class Dd extends Md{getEventBaseData(){var e,t;const{title:n="",clientName:o="",creativeId:i="",link:r="",itemId:a=""}=this.parseKilkayaData(),{columnName:d,primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u={publicUrl:r,urlPath:r?new URL(r).pathname:""},{publicUrl:p,urlPath:v}=r&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,r))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:d,primaryPosition:s,secondaryPosition:l,source:c},tags:[o,n,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:o,"spt:creativeId":i,pageTitle:n,publicUrl:p,urlPath:v},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const Rd=/^glci_/,zd="gender_",Ud="geo_",Wd="male",Hd="female",Vd=()=>B(void 0,void 0,void 0,function*(){const e=[],t=yield B(void 0,void 0,void 0,function*(){try{const e=yield md(),t=new fd(e),n=yield t.getIdentityUser(),{gender:o}=null!=n?n:{};return o===Wd||o===Hd?`${zd}${o}`:void 0}catch(e){return}}),n=(()=>{const e=en().map(e=>`${Ud}${e.replace(Rd,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class Kd{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===ed.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Gd{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Xd{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class Jd{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class Yd{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===ed.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Qd{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class Zd{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:o}}){if(!(null==e?void 0:e.instance))return;const i={[qt.VG]:new Nd,[qt.E24]:new Kd,"no-aftenposten":new Gd,[qt.BT]:new Xd,"no-bergenstidende":new Xd,[qt.SA]:new Jd,"no-stavangeraftenblad":new Jd,[qt.SVD]:new Yd,[qt.AFTONBLADET]:new Qd}[n]||new qd;((e,t,n,o)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const r=o===Je.SE?new Dd(e,i,t):new Bd(e,i,t,n);r.trackImpression(),i.addEventListener("click",()=>r.trackEngagement())})})(e.instance,i,t,o)}injectKilkayaMeta(e){return B(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield Vd();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(l(`Kilkaya event for slot: ${n}`),!n)return void l("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(l(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):l("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";q(o)}loadKilkayaScript(e){return B(this,void 0,void 0,function*(){yield bn(e)})}run(e){return B(this,void 0,void 0,function*(){var t,n;const{tcf:o,pageContext:{isMobileApp:i,countryCode:r},kilkaya:a}=e;if(!(null==a?void 0:a.enabled))return;const d=yield tt(o,i,r,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(d),yield this.loadKilkayaScript(null!==(n=null===(t=a.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e)})}}var es=Object.freeze({__proto__:null,Kilkaya:({placementName:e,slotTag:t,fallbackTargetId:o,children:i,pulseData:r,htmlAttributes:a})=>{const d=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},s=d(r,"data-pulse"),l=d(a,"data");return n.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":t},s,l,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("k5a-stream",{name:e,"slot-tag":t}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":o,style:{display:"none"},children:i})]}))},runKilkaya:e=>B(void 0,void 0,void 0,function*(){const t=new Zd;yield t.run(e)})});const ts=1e4,ns=(e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=m.get();if(!t)return[];return Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`)))},os=e=>e.some(e=>e.some(e=>!!e&&Un(e,0)));let is;var rs=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=m.get(),{enabled:t,options:{rotationInterval:n=ts,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;let i=ns(o),r=0,a=Date.now(),d=os(i);if(!i.length)return;is&&window.removeEventListener("scroll",is);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1,c=e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})};c(i);const u=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{const e=ns(o);((e,t)=>{const n=e.flat(),o=t.flat();return n.length===o.length&&n.every((e,t)=>e===o[t])})(e,i)||(i=e,r=0,a=Date.now(),c(i)),d||(d=os(i)||d,a=Date.now());Date.now()-a>=n&&((()=>{const e=l(r),t=i.map(e=>e[r]),n=i.map(t=>t[e]);s(t,"opacity","0"),setTimeout(()=>{s(t,"display","none"),s(n,"opacity","0"),s(n,"display","block"),setTimeout(()=>{s(n,"opacity","1")},450)},450)})(),r=l(r),a=Date.now())},1e3);is=u,window.addEventListener("scroll",u)}});const as="#fff",ds="#0098da",ss=e=>"dark"===e,ls=(e,t,n,o)=>{if(!n)return;const i={[rt]:()=>{const{buttonLabel:o}=xt(n,t);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(n.innerText=null!=o?o:"")})},[it]:()=>{const{themeColors:i,logotype:r,buttonLabel:a,showArrowIcon:d}=xt(n,t),s=((e,t)=>{var n,o,i,r;if(!e)return;const a=ss(t)?e.darkMode:void 0;return{backgroundColor:null!==(o=null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:e.backgroundColor)&&void 0!==o?o:as,color:null!==(r=null!==(i=null==a?void 0:a.color)&&void 0!==i?i:e.color)&&void 0!==r?r:ds}})(i,o),l=((e,t)=>{var n,o;if(!e)return;const i=ss(t)?e.darkMode:void 0;return{url:null!==(n=null==i?void 0:i.url)&&void 0!==n?n:e.url,alt:null!==(o=null==i?void 0:i.alt)&&void 0!==o?o:e.alt}})(r,o);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const n=e.querySelector(`${t}`);if(n){if("#advertory-splash-close-label"===t&&(n.innerText=null!=a?a:""),".advertory-splash-close"===t&&!d){const e=n.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===t&&s&&(n.style.color=s.color),"#advertory-splash-logotype"===t&&l&&(n.setAttribute("src",l.url),n.setAttribute("alt",l.alt)),".advertory-splash-navbar-wrapper"===t&&s&&(n.style.setProperty("background-color",s.backgroundColor,"important"),n.style.color=s.color)}})},[at]:()=>{const{buttonLabel:o,showArrowIcon:i,showCloseButton:r=!0}=xt(n,t);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(".advertory-topscroller-close"!==t||r||(n.style.display="none"),"#advertory-topscroller-scroll-image"!==t||i||(n.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(n.innerText=null!=o?o:""))})},[dt]:()=>{}};i[t]()},cs=(e,t=!0)=>{(e===rt||e===at)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},us=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},ps=new WeakMap,vs=(e,t,n)=>{var o;window.addEventListener(t,n),ps.set(e,[...null!==(o=ps.get(e))&&void 0!==o?o:[],()=>window.removeEventListener(t,n)])},gs=e=>{document.body.style.overflow=e?"initial":"hidden"},hs=e=>{(e=>{var t;null===(t=ps.get(e))||void 0===t||t.forEach(e=>e()),ps.delete(e)})(e),us(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),gs(!0),e.style.display="none"},ms=e=>{const t=()=>hs(e);return vs(e,"advertory:closeTakeover",t),us(),t},fs=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&((e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&hs(e)};us(),vs(e,"keydown",t)})(e),ms(e),us(),t.addEventListener("click",()=>{hs(e)}),gs(!1))},ys=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),ms(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},bs=e=>{(e=>{vs(e,"advertory:closeTakeover",()=>hs(e))})(e)},ws=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=m.get(),n=e.querySelectorAll(".advertory-splash-navbar-wrapper"),o=document.querySelector(".advertory-takeover-label");Array.from(n).forEach(e=>e.style.display="flex"),t&&o&&(o.style.display="flex",o.innerText=Sr.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},xs=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Sr.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},ks=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Sr.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},Cs=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=Sr.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},Is=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var n;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(n=Array.from(e.target.classList))&&void 0!==n?n:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},Ts=(e,t)=>{let n=e;return e.includes("529299503")&&(n=(e=>{const t=document.createElement("script");return t.textContent=`(${Ct})()`,e+t.outerHTML})(e)),n=ga(n),n};var Ss=Object.freeze({__proto__:null,createTakeoverAd:e=>B(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:n}=m.get(),{targetId:o}=e,i=document.querySelector(`#${o}`),r=document.querySelector(".advertory-takeover-wrapper");if(!i||!r||!t)return;const a=yt(e),d=r.offsetHeight,s=window.scrollY>d;r.style.display="block",!s&&cs(a,!1),((e,t)=>{({[rt]:ks,[it]:ws,[at]:xs,[dt]:Cs})[t](e)})(r,a),Is(),((e,t)=>{({[rt]:ys,[at]:ys,[it]:fs,[dt]:bs})[t](e)})(r,a),ls(r,a,t,null==n?void 0:n.theme),yield bt(),!s&&cs(a,!0),kt(e,a)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=ua(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=ua(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Ts(t))},modifyTakeoverIframe:(e,t)=>{var n;const o="100%",i="100%";e.resizeAd(t,[o,i]);const r=null===(n=document.querySelector(`#div_utif_${t}`))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(r),t=e.width,n=e.height;t===o&&n===i||(r.style.width=o,r.style.height=i)}}).observe(r,{attributes:!0,attributeFilter:["style"]})}});const Es=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},As=(e,t,n)=>{var o,i;const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:d}={},fullWidth:s,pageContext:{deviceType:l}}=m.get();if(!r)return null;const c=r.parentElement,u=Ot(l)||n;if(r.style.width=u?"100vw":"100%",r.style.position="relative",c&&(c.style.width=u?"100vw":"100%",c.style.position="relative"),a&&d){const e=`advertory-${a}-${d}`;r.classList.add(`${e}__${t}`),null==c||c.classList.add(`${e}-wrapper__${t}`)}const p=null===(i=null===(o=null==s?void 0:s.options)||void 0===o?void 0:o.styles)||void 0===i?void 0:i[l],v=(null==s?void 0:s.enabled)&&p;return!v&&c&&u&&(c.style.left="50%",c.style.marginLeft="-50vw"),v&&p.adContainer&&Es(r,p.adContainer),v&&p.adContainerWrapper&&c&&Es(c,p.adContainerWrapper),r},Os=(e,t,n,o,i)=>{var r;const a=As(e,o,i);if(!a)return void l("[Ad full width] adContainer not found");const d=a.querySelector("iframe"),s=null==d?void 0:d.parentElement;if(!d||!s)return void l("[Ad full width] iframe or iframeWrapper not found");const c=parseFloat(window.getComputedStyle(a,"::before").height)||0,u="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${t}px)`:String((null===(r=null===document||void 0===document?void 0:document.documentElement)||void 0===r?void 0:r.clientWidth)/t);l(`[Ad full width] ratioWidth ${t}, ratioHeight ${n}, adObjWidth: ${e.width}, scaleFactor ${u}`),s.style.transform=`scale(${u})`,s.style.transformOrigin="left top",a.style.height=`calc(100vw / ${t} * ${n} + ${c}px)`};var Ps=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{Os(e,1080,1080,"fullsquare-ad",!0)},applyFullwidthFormat:e=>{const t=As(e,"fullwidth-ad",!1);if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=m.get().pageContext;n.style.width=Ot(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=Ot(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{Os(e,1080,1920,"ninesixteen-ad",!0)}});eo('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:40px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;max-width:100%;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel .carousel-window{width:calc(100% + 16px);min-width:calc(100% + 16px);mask-image:linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);-webkit-mask-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, #000 5%, #000 95%, rgba(0, 0, 0, 0.5) 100%)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;min-width:0;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;min-width:0;font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:6px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:13px;font-weight:500;white-space:nowrap}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');var js=Object.freeze({__proto__:null});eo('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');var $s=Object.freeze({__proto__:null});module.exports=id;
1
+ "use strict";var e,t,n=require("react/jsx-runtime");function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=o(function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function a(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 d(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=i(e[t],n)}),a(t).forEach(function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))}),o}function l(e,t,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||n,o.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(t);return a===Array.isArray(e)?a?o.arrayMerge(e,t,o):s(e,t,o):i(t,o)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e=l}());const r={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,t)=>i(e,t,r),d=(e,t)=>Object.assign(Object.assign({},e),t),s=(e,t)=>{var n;return a(null!==(n=e)&&void 0!==n?n:{},t)},l=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},c=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},u=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||c("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||c("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||c("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||c("pageContext.deviceType is required."),n||c("pageOptions is required."),o||c("placements is required."),(null==i?void 0:i.defaultThreshold)||c("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,i;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.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==r?void 0:r[t])&&c(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},p={placements:(e,t)=>t,takeover:s,refreshConfig:d,editory:s,appearanceConfig:s,pageContext:d,pageOptions:d,pageSectionsSelectors:d,tcf:d},v=(e,t)=>{const n=e;for(const e of Object.keys(p)){const o=t[e];void 0!==o&&(n[e]=p[e](n[e],o))}},g=6;class h{set(e){u(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");v(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=a(h.DEFAULT_SITE_HANDLERS,e)}}h.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const m=new h,f=m.modifyConfigProperties.bind(m);let y;const b=()=>y,w="advertory-wallpaper-background",x="advertory-with-horseshoe",k=()=>{const e=document.querySelector(`.${w}`);e&&e.remove()},C=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${w}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},I=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,S=e=>I.test(e),T=e=>e.startsWith("wallpaper:color:"),E=e=>{const t=document.querySelector(`.${w}`);t&&(t.style.backgroundImage=`url(${e})`)},A=e=>{const t=document.querySelector(`.${w}`);t&&(t.style.backgroundColor=e)};var O=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(x),n.classList.add(x))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{k();const e=document.createElement("div");e.classList.add(w),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&&(C(n),window.addEventListener("scroll",()=>C(n)))})(n),e()},isShortWallpaperColorMessage:T,isShortWallpaperUrlMessage:S,removeWallpaperBackground:k,setWallpaperBackgroundColor:A,setWallpaperBackgroundImage:E});const P=e=>new URLSearchParams(window.location.search).get(e),j="takeover",$="native_override_desc2",L=e=>window.location.href.includes(e),_=()=>null!==P("disable_prebid"),N=e=>{if("0"===P("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")&&k())},q=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"))},F=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};function M(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function B(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class D{initialize(){this.DATA=Object.assign({},D.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)}}D.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const R=new D,z=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},U=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,o=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${o}px`)},W="opaque",H=e=>B(void 0,void 0,void 0,function*(){if(e.type!==W){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),V={get:(e,...t)=>B(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=M(t,["timeout"]);if(n)return((e,t,n)=>B(void 0,void 0,void 0,function*(){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:o.signal}));return H(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return H(i)}),post:(e,t,n)=>B(void 0,void 0,void 0,function*(){const o=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:o});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},K="https://inv-platform-cdn.inventory.schibsted.io",G=5e3,X="editory/native-creator/native-templates",J=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!o)return null;return`${n||K}/editory/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`};const Y=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:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return B(this,void 0,void 0,function*(){const t=J(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>B(void 0,void 0,void 0,function*(){const t=J(e);if(!t)return null;try{return yield V.get(t,{timeout:G})}catch(e){throw l("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,i;const r=((e,t)=>{const{sections:n}=e,o=M(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?a(o,i):o})(t,null!==(i=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>a(t,e))(e,r)}getConfig(e){return B(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 l("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return B(this,void 0,void 0,function*(){var t,n,o,i;if(!this.localSiteConfig)return;if(v(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(i=null===(o=this.localSiteConfig.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void l("Error fetching updated S3 config, keeping current config",{error:e})}})}},Q=Y.getConfig.bind(Y),Z=Y.resolveUpdatedConfig.bind(Y),ee=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=R.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=o},te=()=>{var e,t;k();const n=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),o=[];return n.forEach(e=>{N(e.id),ee(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),o=null==t?void 0:t.getAttribute("data-probable-width");n&&o&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",o+"px"))})(e.id),e.innerHTML="",e.id=F(e.id),o.push(e.id)}),null===(t=null===(e=b())||void 0===e?void 0:e.clear)||void 0===t||t.call(e,o),o},ne=()=>{R.setData("wallpaper",{isAvailable:!1}),R.setData("horseshoe",{isAvailable:!1})},oe=e=>B(void 0,void 0,void 0,function*(){const t=yield Z(e);var n;t?(m.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):f(null!=e?e:{})}),ie="0123456789abcdefghijklmnopqrstuvwxyz",re=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=ie[Math.floor(36*Math.random())]}return t},ae=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),de=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})}),se="mobile",le="tablet",ce="desktop",ue="web_desktop",pe="web_phone",ve="wde",ge="wph",he="noGroupedPlacements",me=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},fe=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ye=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:o,pageContext:{deviceType:i}}=m.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===le&&0===o.length?e[ce]:o})(n,i),a=r.filter(fe),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=me(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{var t,n,r;const s=new RegExp(`^${e}(_(\\d+))?$`),c=a.filter(({targetId:e})=>e.match(s)),u=(null==o?void 0:o.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,p=d.querySelectorAll(u),v=Array.from(p).filter(({id:e})=>e.match(s)).map((e,t)=>{var n;const o=be(e,t,c);if(o.disabled)return l(`Placement ${o.targetId} is disabled - collapsing`),N(o.targetId),null;const i=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,r=i&&(null===(n=o.finnBlink)||void 0===n?void 0:n.loadOnlyFinnBlink),a=`${e.id}-${re(6)}`;return e.id=a,e.setAttribute("data-advertory-ad-rendered","true"),i&&e.setAttribute("data-is-finn-blink-placement","true"),r&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&R.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},o),{targetId:a})}),g=v.filter(e=>null!=e);return null!==(r=null===(n=null===(t=b())||void 0===t?void 0:t.enrichPlacementsAfterDiscovery)||void 0===n?void 0:n.call(t,g))&&void 0!==r?r:g});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(s)},be=(e,t,n)=>{const o=n[t],i=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:r||i},we=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=m.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=F(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[o,i]of Object.entries(t))n[o]=e.filter(e=>i.includes(F(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(F(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[he]:s})},xe="ABSOLUTE_FULLSCREEN",ke="ANY_FULLSCREEN",Ce="NINESIXTEEN",Ie="FULLWIDTH",Se="FULLSQUARE",Te="TAKEOVER",Ee="VELVET_TAKEOVER",Ae="WALLPAPER",Oe="COLLAPSE",Pe={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}]},je={wallpaper:1600,"l-format":1600},$e=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Ve(e,ke)},Le=e=>{const{native:t}=e;return!!t},_e=e=>Ve(e,Ie),Ne=e=>{const{targetId:t}=e;return t.includes("takeover")||Ve(e,Te)},qe=e=>Ve(e,Te),Fe=e=>Ve(e,Ae),Me=e=>Ve(e,Oe),Be=e=>e.targetId.includes("sponsorstripe"),De=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Re=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),ze=e=>e.targetId.startsWith("midboard"),Ue=e=>e.targetId.includes("widescreen"),We=e=>e.width>=1260&&e.width<=1280,He=e=>e.width>=1600&&e.width<=1620,Ve=(e,t)=>{const n=Pe[t];if(!n)return!1;return!!n.find(t=>{var n,o;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(o=e.banner)||void 0===o?void 0:o.height)||e.height,a=t.width===i,d=!t.height||t.height===r;return a&&d})},Ke=e=>{const{source:t}=e;return"csm"===t},Ge=e=>{const{siteSpecificConfig:t}=m.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},Xe=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 l("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(l("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);l("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),Je={NO:"no",SE:"se"},Ye="cmp:loaded";let Qe="undefined"!=typeof window?window._tcf_:void 0,Ze=!1;const et=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=P("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(Ze)return null;if(!Qe)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=Qe.getConsentedToAllSync();return l(`TCF consented to all is: ${t}`),Qe.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),Qe=window._tcf_,void e(Qe);l("TCF consent manager is not available");const n=()=>{l("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(Qe=window._tcf_,e(Qe)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(Ye,n),Ze=!0,t(new Error("Timeout waiting for CMP to load"))},i);l("Listening for CMP loaded event..."),document.addEventListener(Ye,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>B(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`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===Je.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===Je.NO;if(t||o)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Xe(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!Qe)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{l("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);Qe.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),Qe.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},tt=(e,t,n,...o)=>B(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return l(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=et(e,0,n);return(yield i())?(l(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(l(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),nt=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},ot=e=>B(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=et(t,0,o);if(!(yield i()))return;const r=nt("_pulse2data");return r?r.split(",")[9]:void 0}),it="splash",rt="welcomePage",at="topscroller",dt="velvet",st=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const o=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=o.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,i).toString()},lt="takeover-displayed",ct="takeover-visit-count",ut=14400,pt=()=>{const e=nt(ct);return e?parseInt(e):0},vt=()=>{const e=pt(),{takeover:{options:{cookieCapTime:t=ut}={}}={}}=m.get(),n=document.location.hostname;window.document.cookie=`${ct}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},gt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=m.get();return"0"!==P(j)&&("1"===P(j)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=m.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||lt;return"true"===nt(n)})())&&(!t||ht()))},ht=()=>{const e=pt();return 0===e?(vt(),!1):1===e},mt=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),ft=()=>{const{takeover:e}=m.get();return Boolean(null==e?void 0:e.topscroller)},yt=e=>{const{width:t,height:n}=e;return mt(t,n)?it:Ve(e,Ee)?dt:ft()?at:rt},bt=()=>B(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=lt,cookieCapTime:n=ut}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=m.get(),a=yield tt(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),wt=e=>{var t,n;const o=!!(null===(n=null===(t=m.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ne(e)&&o},xt=(e,t)=>{var n;if(t===at){const{topscroller:t}=e;return null!=t?t:{}}if(t===it){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},kt=(e,t)=>{t!==it?(e=>{var t,n;const o=null===(t=m.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=m.get().takeover)||void 0===n?void 0:n.topscroller;if(!o||i)return;const r=document.querySelector(o),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=qe(e)?"60svh":`calc(100svh - ${l}px)`,u=qe(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=m.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),o=document.querySelector(`#${e.targetId}`);if(!n||!o)return;const i=`calc(100svh - ${n.offsetHeight}px)`;o.style.setProperty("height",i,"important")})(e)},Ct=st([],()=>{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 It=Object.freeze({__proto__:null,addTakeoverCookie:bt,adjustTakeoverHeight:kt,canDisplayTakeover:gt,getProperWelcomePageConfig:xt,getTakeoverVariant:yt,handleTakeoverCookieOnAdNotShown:e=>B(void 0,void 0,void 0,function*(){wt(e)&&(yield bt())}),incrementArticleVisitCount:vt,isSplashVariant:mt,isTopscroller:ft,scaleAd:Ct,shouldAddTakeoverCookieForNotShownAd:wt});const St={nativeAd:e=>Le(e)&&!Be(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:_e,fullscreenScroll:$e,topscroller:e=>Ne(e)&&ft(),splash:e=>Ne(e)&&mt(e.width,e.height),welcomePage:Ne,wallpaper:Fe,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:We,hFormat:He,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!He(e)&&!We(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ne(e),widescreen:Ue,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Be,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)&&!ze(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:ze},Tt=({adObj:e,preferredTestIdData:t})=>{var n,o;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const r=null===(o=document.querySelector(`#${i}`))||void 0===o?void 0:o.parentElement;if(!r)return;if(((e,t)=>{var n,o,i,r;const a=null===(r=null===(i=null===(o=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===o?void 0:o.tags)||void 0===i?void 0:i[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(i,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,o;for(const[i,r]of Object.entries(St))if(r(e)){if("nativeAd"===i){const r="default";t.dataset.testid=`${i}-${null!==(o=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==o?o:r}`;break}t.dataset.testid=i;break}})(e,r)},Et=e=>{var t;return(null===(t=Object.entries(St).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},At=()=>{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"},Ot=e=>e===se,Pt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},jt=(e,t=window.screen.width,n,o)=>{const i=Pt(e,t);if(n&&n(e,i),o)return void o(e);const r=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);r&&(r.style.transform=`scale(${i})`,r.style.transformOrigin="left top")},$t=(e,t)=>{if(e&&t)return t/e},Lt=new Map;Lt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),Lt.set("panorama",{scale:.79,transformOrigin:"center center"}),Lt.set("outstream",{scale:.79,transformOrigin:"center center"}),Lt.set("integration",{scale:.79,transformOrigin:"center center"}),Lt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var _t=Object.freeze({__proto__:null,calculateScaleFactor:Pt,getAspectRatio:$t,scaleAd:jt,scaleAdIpadAirPortrait:e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>767&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=853))return;var t,n;const o=Et(e),i=Lt.get(o),r=document.querySelector(`#${e.targetId}`);if(!r||!i)return;if(r.style.transformOrigin=i.transformOrigin,r.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),d=null==r?void 0:r.offsetWidth;a&&"number"==typeof d&&!isNaN(d)&&a.style.setProperty("right",String(-1*d*.2)+"px")},scaleAds:e=>{var t,n,o,i,r,a;const{adScaleConfig:d,pageContext:{deviceType:s}}=m.get();if(!(null==d?void 0:d.enabled))return;if(Ve(e,ke))return;const l=null!==(t=d.adsToBeScaled[s])&&void 0!==t?t:[],c=me(e.targetId.split("-")[0]);if(!l.includes(c))return;const u=null!==(o=null===(n=d.offset)||void 0===n?void 0:n[c])&&void 0!==o?o:0,p=document.getElementById(e.targetId),v=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,g=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;jt(e,(v<g?v:g)-u)}});const Nt={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{jt(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},qt={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"},Ft={publisherClassName:qt.GODT,fullWidthFormatClassName:"netboard"},Mt=864e5,Bt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return l("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=Mt)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=Mt)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return l("Error with parsing localStorage data"),null}}}})(),Dt="glimrTags",Rt=["glwe_","glwet_"],zt={geofenceTags:[],geoTags:[],weatherTags:[]},Ut=(...e)=>B(void 0,[...e],void 0,function*(e=m.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield tt(t,n,o,"glimr")}const{getConsentAsync:i}=et(t,0,o);return yield i()}),Wt=()=>B(void 0,void 0,void 0,function*(){const{glimr:e}=m.get();if(!(yield Ut())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(n=500,B(void 0,void 0,void 0,function*(){return yield Promise.race([B(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)=>{Bt.setWithTimestamp(Dt,{tags:e,tagMappings:t}),n(!0)})})}catch(e){l(`Error during getting glimr data: ${e}`)}else l("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),Ht={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"},Vt=e=>Rt.some(t=>e.startsWith(t)),Kt=e=>e.startsWith("glgc_"),Gt=e=>e.startsWith("glci_"),Xt=e=>!Vt(e)&&!Kt(e),Jt=e=>e===Je.NO?"no-sno":"se-generic",Yt=(e,t)=>B(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Ut(e);if(!(null==o?void 0:o.enabled)||!r)return l("No consent for getting glimr tags."),{};const a=Jt(i),d=Qt(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Qt=(e,t)=>{const n=Zt();if(!n)return zt;const o=((e=[])=>e.filter(Vt))(n),i=((e=[])=>e.filter(Kt))(n),r=((e=[],t,n)=>{var o;const i=e.filter(Xt);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=Ht[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},Zt=()=>{const e=Bt.getByTimestamp(Dt);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},en=()=>{var e;return((e=[])=>e.filter(Gt))(null!==(e=Zt())&&void 0!==e?e:[])},tn="advertory:ppids-cache",nn={[Je.SE]:`SCH${Je.SE.toUpperCase()}-EnvHash`,[Je.NO]:`SCH${Je.NO.toUpperCase()}-EnvHash`},on={[Je.SE]:`SCH${Je.SE.toUpperCase()}-UserHash`,[Je.NO]:`SCH${Je.NO.toUpperCase()}-UserHash`},rn={[Je.SE]:`sch${Je.SE}-envhash-v3`,[Je.NO]:`sch${Je.NO}-envhash-v3`},an={[Je.SE]:`sch${Je.SE}-userhash-v3`,[Je.NO]:`sch${Je.NO}-userhash-v3`},dn={[Je.SE]:`'sch${Je.SE}-iosid-v3'`,[Je.NO]:`'sch${Je.NO}-iosid-v3'`},sn={[Je.SE]:`sch${Je.SE}-androidid-v3`,[Je.NO]:`sch${Je.NO}-androidid-v3`},ln={[Je.SE]:"sdrn:schibsted.com:user",[Je.NO]:"sdrn:spid.no:user"};class cn{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:o})=>{t.append(e,`${o}-${n}`)}),t}}const un=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return B(this,arguments,void 0,function*(e,t=1e4){var n,o;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===(o=i.xandr)||void 0===o?void 0:o.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||l("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:""}},pn=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return B(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Bt.get(tn),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===(o=g.idfv)||void 0===o?void 0:o.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||l("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,o){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=o?o:null}shouldHash(e,t){var n,o;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(o=t[i])||void 0===o?void 0:o.plain))return!0}return!1}cachePPIDs(e,t,n,o){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}}:{}),o?{anId:{plain:o}}:{});Bt.set(tn,i)}hashPPIDs(e,t){return B(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield V.post(t,n,e)}catch(e){return l("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return B(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>B(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ln[t]}:${n}`:null}))(t,n),i=yield(r=t,B(void 0,void 0,void 0,function*(){const e=yield r.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var r;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:o},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:o,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:o.plain,environmentId:i.plain}}},vn=e=>B(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield tt(n,i,o,"setPPIDs")))return;if(!t)return;(yield Promise.allSettled([un.processPPIDs(t,null==n?void 0:n.timeout),pn.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){l(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),gn=e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=pn.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]).add(r,dn[e]).add(a,sn[e]).buildEids()}]}},hn=()=>{const{ppid1:e,ppid2:t}=un.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},mn=e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=pn.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]).add(r,dn[e]).add(a,sn[e]).buildRyEids()}}]}}},fn=e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i}=pn.getPPIDs();return(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]).buildRyEids()},yn=e=>B(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i}=pn.getPPIDs(),r=(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),bn=(e,...t)=>B(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,o)=>{const i=document.createElement("script");i.async=!0,i.src=e;const r=()=>{d(),n()},a=()=>{d(),o(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",r),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",r),i.addEventListener("error",a);const s=setTimeout(()=>{d(),o(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),wn="collapseAd",xn="hideAd",kn="resizeAd",Cn="wallpaperImageUrl",In="wallpaperColor",Sn="velvet",Tn=[kn,Cn,In,wn,xn,Sn];let En;const An=e=>{var t,n,o;const i=b();if(!(null===(t=null==i?void 0:i.messageOrigins)||void 0===t?void 0:t.includes(e.origin.trim())))return;const{data:r}=e;if(!r)return;const a=(e=>{if("object"==typeof e)return e;if(S(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Cn,wallpaperImageUrl:t}}if(T(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:In,wallpaperColor:t}}if(e.startsWith(wn)||e.startsWith(xn)){const t=e.split(":")[1];return{name:wn,targetId:t}}if(e.includes("name")&&Tn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(r);if(!a)return;if(!a.name||!Tn.some(e=>a.name===e))return;const{name:d,targetId:s,wallpaperImageUrl:l,wallpaperColor:c,cmd:u,size:p}=a;d===Sn&&u&&(u.includes("noScroll")&&(En=(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==En||En(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),d!==wn&&d!==xn||!s||N(s),d===kn&&s&&u&&(null===(n=i.resizeCreative)||void 0===n||n.call(i,s,u)),"resizeMediationAd"===d&&s&&p&&(null===(o=i.resizeCreative)||void 0===o||o.call(i,s,p,!0)),d===Cn&&l&&E(l),d===In&&c&&A(c)},On=(e,t,n)=>B(void 0,void 0,void 0,function*(){yield ae,yield de;new IntersectionObserver((t,o)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),o.unobserve(e),o.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Pn=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=m.get(),o={publisher:e,countryCode:t,finnBlink:n},i=e=>{var t,n;q(e),null===(n=null===(t=b())||void 0===t?void 0:t.render)||void 0===n||n.call(t,e)};return{withAdServerAd:i,withFinnBlinkAd:e=>B(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return Id});yield t(e,o,null)}),withFullAdsChain:e=>B(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void i(e);const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return Id});yield t(e,o,i,()=>B(void 0,void 0,void 0,function*(){if(!R.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return O});t(e)}))})}},jn=(e,t)=>B(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield On(e,t,()=>((e,t)=>{var n,o;const i="true"===t.dataset.isFinnBlinkOnlyPlacement;return De(e)&&i?(l(`loading finn blink ad for blink only placement for ${e}`),void Pn().withFinnBlinkAd(e)):De(e)?(l(`loading finn blink ad with full ads chain for ${e}`),void Pn().withFullAdsChain(e)):void(null===(o=null===(n=b())||void 0===n?void 0:n.render)||void 0===o||o.call(n,e))})((e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),$n=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Ln=new Map,_n=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],Nn=".brandstudio-premium-content-widget",qn=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),Fn=({adWrapper:e,placementContainer:t})=>{const n=qn({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),ee(o=t),o.innerHTML=""},Mn=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},Bn=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=m.get(),o=_n.includes(n)&&Boolean(t.closest(Nn));const i=o?t.closest(Nn):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!o&&!a||o&&!i)return;if(a)return Mn(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?Mn(d):s.hasAttribute("style")&&Mn(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},Dn=(e,t,n,o,i)=>{var r;const a=performance.now(),d=null!==(r=Ln.get(e))&&void 0!==r?r:0,s=((e,t)=>!!t&&e+t<(new Date).getTime())(n,o)&&t<0;a-d>=o&&s&&(Ln.set(e,a),((e,t)=>{var n,o;const i=null==t?void 0:t.parentElement;i&&t&&Fn({adWrapper:i,placementContainer:t}),null===(o=null===(n=b())||void 0===n?void 0:n.refresh)||void 0===o||o.call(n,[e],{applyReloadKeyword:!0})})(e,i))},Rn=(e,t=6)=>{const n=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);n.push(i)}return n},zn=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Un=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Wn=(e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;Bn({adWrapper:i,placementContainer:o});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();o&&"true"!==o.dataset.subscribedForRefresh&&(o.dataset.subscribedForRefresh="true",o.dataset.refresh&&((e,t,n)=>{const o=new IntersectionObserver((e,o)=>((e,t,n,o)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:r}=e;t(i.id,r.y,n,o,i)})})(e,Dn,t,n),$n(300));o.observe(e)})(o,a,r))},Hn=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=m.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Xn(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Vn=(e,t,n)=>{const o=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of o){const o=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)}),r=null==o?void 0:o.requestThreshold;Un(i,r)&&o&&(U(o.targetId),n.length&&i.classList.remove(...n),Xn([o],t))}},Kn=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=m.get();t&&(e.forEach(({targetId:e})=>{const t=Gn(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Vn(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),Vn(e,!1,t))};n.persisted&&(zn()?window.addEventListener("scroll",o,{passive:!0}):Vn(e,!1,t))})})(e,n))},Gn=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Xn=(e,t=!1)=>{const n=b();if(!(null==n?void 0:n.refresh))return;const{queryConfig:{batchSize:o=g}={}}=m.get();for(const i of Rn(e,o))n.refresh(i.map(({targetId:e})=>e),t?{keepPreviousSizes:i}:void 0)},Jn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=m.get(),n=Jt(t),o=e[`${n}-targetid`],i=o?F(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},Yn=e=>{const{pageContext:{countryCode:t}}=m.get(),n=Jt(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"]})},Qn=e=>{if("true"!==P("scrollToFirstInvCode"))return;const t=P("ast_override_inv_code");if(!t)return;const n=t.split(",")[0].split(":")[0],o=e.find(e=>e.invCode===n),i=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);i&&i.scrollIntoView({behavior:"smooth",block:"start"})},Zn=(e,t)=>B(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 eo(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}eo(".advertory-brandmetrics-survey{width:100%}");const to="advertory-brandmetrics-survey",no=()=>B(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)}}),oo="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",io=()=>B(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,o)=>{var i;o||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),ro={pageContext:{publisher:"aftonbladet",countryCode:Je.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"}},ao={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},so=e=>(null==e?void 0:e.parent)?[...so(e.parent),e.shortPath||"unknown"]:[],lo=(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]=so(e);return ao[n]||"ovrigaavdelningar"})(e)}_{position}`,co={aftonbladet:ro},uo={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:lo(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:so(e).join(":")}}},po=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},vo=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),go="se-generic",ho="aa-sch",mo="kv_",fo="pause",yo="{deviceType}",bo="{position}",wo="afp_",xo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),ko="1-1",Co="16-9",Io="3-4",So="9-16",To="responsive",Eo={[ko]:1,[Co]:1.78,[So]:.56,[To]:1},Ao={[ko]:1,[Co]:1.78,[Io]:1.33,[So]:.56},Oo=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=ce===n?ve:ge,d=i.replace(yo,a);return(e,n)=>{if(e===fo)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(bo,fo).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&xo.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(yo,a).replace(bo,e)}return d.replace(bo,e)}},Po=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[o,i])=>{const r=Math.abs(e[n]-t);return Math.abs(i-t)<r?o:n},n[0][0])},jo=()=>{var e,t;const n=jwplayer().getContainer(),o=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return o&&"number"==typeof o.offsetWidth&&"number"==typeof o.offsetHeight&&0!==o.offsetHeight?o.offsetWidth/o.offsetHeight:1},$o=()=>{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},Lo=()=>{const e=null!==(t=$o()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=$o()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},_o=()=>Object.fromEntries(new URLSearchParams(window.location.search)),No=(e,t)=>B(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:o,countryCode:i}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:o,pageType:"front",deviceType:e.deviceType},s=(yield tt(n,e.isApp,i,"video"))?"1":"0",l=yield io(),c=yield yn(i),u=yield ot({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Po(Ao,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Po(Eo,Number(m.toFixed(2))):To;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ho}-country_code`]:i,[`${ho}-publisher`]:o,[`${ho}-supply_type`]:(f=e.deviceType,f===ce?ue:pe),[`kw_${ho}-page_type`]:"collection",[`${ho}-page_type`]:"collection",[`${go}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${go}-page`]:"index",[`${go}-page`]:"index",[`${go}-screenheight`]:String(window.screen.height),[`${go}-screenwidth`]:String(window.screen.width),[`${go}-viewportheight`]:String(a),[`${go}-viewportwidth`]:String(r),[`${go}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${go}-mobile-os`]:At(),[`${go}-audience`]:void 0,[`${go}-externalid_src`]:Lo(),[`${go}-tags`]:e.tags,[`${go}-articleid`]:p,"article-id":p},yield Yt(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${go}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(_o()).some(e=>e.includes(mo))&&(()=>{const e=_o(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(mo)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),qo=["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"],Fo=["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"],Mo=["external_uid","gdpr","gdpr_consent","eids","article-id"],Bo=(e,t)=>{const n=[...qo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Mo.includes(e)?e:`kw_${e}`,t]))},Do=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Fo.includes(e))),Ro=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;co[e]||c(`[video] No config found for publisher "${e}"`);return null!==(t=co[e])&&void 0!==t?t:ro})(e.publisher),d=(e=>{var t;return null!==(t=uo[e])&&void 0!==t?t:uo.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),u=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,v=u?"preroll":"bumper";var g;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield No({pageAdsKeywords:e.pageAdsKeywords,tags:(g=e.tags,g?g.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:u,instreamAspectRatio:p,playerAspectRatio:jo(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:po(e.startMode)}}),zo=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=Oo(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(wo)?`${wo}${t}`:t)(s),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":vo.get(d),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Bo(r,n)),Do(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Uo=e=>t=>B(void 0,void 0,void 0,function*(){const n=yield Ro(e,t);return zo(n,e)}),Wo={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]}]},Ho={no:"NOK",se:"SEK"},Vo={no:"no",se:"sv"};class Ko{buildFetchObject(e,t,n,o){return B(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield io(),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(Wo),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:re(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Vo[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield ot(o),ext:{consent:s.gdpr_consent||"",eids:fn(i)}},at:1,cur:[Ho[i]],source:{tid:re(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return B(this,void 0,void 0,function*(){try{l("Starting fetching Studio ad from Xandr:",oo);const i=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${oo}?${a.toString()}`:oo,s=yield this.buildFetchObject(e,t,n,o),c=yield V.post(d,i,s);return l("Fetch operation completed successfully.",c),c}catch(e){l("Error during fetch operation:",e)}return null})}}const Go=0,Xo=3,Jo=e=>`externalImpId:'${e}'`,Yo=(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,Qo=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=m.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:c=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:v=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||gt())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],o=Array.isArray(n)?n.filter(e=>e!==at):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":o}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:i})})(e),h=Object.assign({invCode:s,sizes:r,targetId:i,keywords:Yo(a,c),allowedFormats:d,dynamicSizeWidthCheck:v,globalPlacementId:g},p&&{safeframeConfig:p}),f=(e=>{var t,n;const o=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 o?(l("Pulse state pageViewId is:",o),o):(l("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&f&&(l("External Impression ID assigned to defineTag:",Jo(f)),h.externalImpId=Jo(f));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,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),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}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},Zo=e=>!e.includes("takeover")||gt(),ei=(e,t,n,o)=>{const i=t.parentElement;if(!i)return;const r=e?`-${e}`:"",a=o?`__${o}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},ti="finn-blink",ni="native-ad",oi=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},ii=(e,t,n)=>{var o,i,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),oi(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},ri=(e,t,n)=>{var o;const i=t.replace(/-[^-]*$/,"");return null===(o=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===o?void 0:o.invCode},ai=(e,t)=>{new IntersectionObserver((e,n)=>{for(const o of e)if(o.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class di{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"").split("-")[0]}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&&ai(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 si extends di{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 ri(e,this.adObj.targetId,t)}buildAdObject(){const e=si.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 li=Object.freeze({__proto__:null,XandrAdTracker:si});const ci=(e,t)=>{ui(e,t),vi(e,t)},ui=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,o,i,r,a,d;for(const t of null!==(o=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==o?o:[])hi(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:ce};new si({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},pi=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=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;o||!i?null==n||n.forEach(gi):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},vi=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:ce])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,pi(e),c.disconnect();break}},s);c.observe(i)},gi=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?hi(e):window.navigator.sendBeacon(e)},hi=e=>{V.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},mi=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:[]}),fi=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void l(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},$n(d)).observe(s)});const{prepareTag:c}=m.getHandlers(),u=R.getData("alertoryConfigKeywords"),p=null!==(o=c(Qo(e)).keywords)&&void 0!==o?o:{},v=new Ko,g=yield v.fetchData(e,u,p,t);g&&(((e,t,n)=>{const o=n===se?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===Go){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>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(s,g,i),g.adType===Xo&&(ei(t.pageContext.publisher,s,ni,t.pageContext.pageType),ci({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:i,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,o)=>{var i,r,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==o?void 0:o.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),ii(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),yi=(e,t)=>{e.forEach(e=>fi(e,t).catch(e=>{l("Failed to handle server-side ad:",e)}))},bi=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(qt).includes(o);n&&r&&ei(o,e,ni,i)})(i,n),o())},wi={"no-aftenposten":qt.AFTENPOSTEN,"no-stavangeraftenblad":qt.SA,"no-bergenstidende":qt.BT},xi=(()=>{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()}}})(),ki=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:K}/${X}/${e}/adjustments/${t}.json`)(e,n,t),i=xi.getAdjustment(o);if(i)return i;const r=V.get(o,{timeout:G}).catch(e=>(l("Failed to fetch native template adjustment",{error:e,url:o}),null));return xi.setAdjustment(o,r),r},Ci=(e,t,n)=>B(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:K}/${X}/${e}/default.json`)(e,n);let i=xi.getTemplate(o);i||(i=V.get(o,{timeout:G}).catch(e=>{throw l("Failed to fetch native template",{error:e,url:o}),xi.deleteTemplate(o),e}),xi.setTemplate(o,i));const r=ki(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),Ii="data-ad-video",Si="viewable",Ti="adClick",Ei=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.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"}))},Ai=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),Oi=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},Pi=e=>B(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 o=document.createElement("script");o.id=e,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(o,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)))}))}),ji={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 B(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Td})})}})}},$i=(e,t)=>{null==e||e.forEach(e=>{ji[e](t)})},Li={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},_i=({container:e,native:t,type:n,publisher:o})=>{const i=e.querySelector(`[${Ii}]`),{video:r,image:a,clickUrl:d=""}=t;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:s,videoLoop:l}=(e=>{var t;return null!==(t=Li[e.toLowerCase()])&&void 0!==t?t:Li.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="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:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},Ai(e)?e:{}),{provider:Object.assign(Object.assign({},Ai(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:Ei(r.content,d),publisher:o,videoLoop:l});B(void 0,[{playerConfig:p,clickUrl:d,pluginsNames:s}],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const o=yield Pi(e);$i(t),o.once("assetReady",()=>{Oi(o,t)}),o.on(Si,e=>{const{viewable:t}=e;t?o.play():o.pause()}),n&&o.on(Ti,()=>{window.open(n,"_blank")}),e.repeat&&o.on("pause",()=>{o.play()})})},Ni=(e,t)=>{const{adjustmentOverrides:n}=e,o=M(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},o),t.overrides&&{adjustmentOverrides:a({},t.overrides)})},qi="desktop",Fi="mobile",Mi="container",Bi="text",Di="image",Ri="cogwheel",zi="video",Ui=e=>{if(e)return e===se?Fi:qi},Wi=(e,t,n)=>{var o,i,r,a,d,s,l,c,u,p,v,g,h;const m=t?null===(o=e.overrides)||void 0===o?void 0:o[t]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],y=t?null===(r=null==n?void 0:n[t])||void 0===r?void 0:r[e.id]:void 0;if(null!==(s=null!==(d=null!==(a=null==y?void 0:y.hidden)&&void 0!==a?a:null==f?void 0:f.hidden)&&void 0!==d?d:null==m?void 0:m.hidden)&&void 0!==s?s:e.hidden)return null;const b=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),w=null!==(u=null!==(c=null!==(l=null==y?void 0:y.tag)&&void 0!==l?l:null==f?void 0:f.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==y?void 0:y.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,k=null===(h=e.children)||void 0===h?void 0:h.map(e=>Wi(e,t,n)).filter(e=>null!==e),C={id:e.id,tag:w,type:e.type,name:e.name,styles:b,connections:e.connections};return void 0!==x&&(C.text=x),void 0!==k&&(C.children=k),C},Hi=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"&quot;"))(t)}`).join(";"),Vi=(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 Ki{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 Gi=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const{properties:o}of e)for(const e of o){const o=Vi(t,e);o&&n.push(o)}return n.join(" ")})(e.connections,t):n},Xi=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Yi(e,t,n,!1)).join(""),s=new Ki(r);return o(s),s.attr("href","a"===r?Gi(e,t):"").attr("style",Hi(a)).children(d).build()},Ji={[Mi]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Xi(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Ri]:(e,t,n)=>Xi(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[Bi]:(e,t)=>{var n;return new Ki(e.tag).attr("style",Hi(e.styles)).children(Gi(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Di]:(e,t)=>new Ki("img",!0).attr("style",Hi(e.styles)).attr("src",Gi(e,t)).build(),[zi]:(e,t)=>"video"===e.tag&&Gi(e,t)?new Ki("div").attr(Ii,"true").attr("style",Hi(e.styles)).build():""},Yi=(e,t,n,o=!0)=>{const i=Ji[e.type];return i?i(e,t,n,o):""},Qi=e=>(t,{publisher:n,containerId:o,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const a=o?Ni(e,o):e,d=Wi(a.root,n,a.adjustmentOverrides);return d?Yi(d,t,{breakpoint:n,publisher:i,containerId:r}):null})({config:e,nativeData:t,breakpoint:Ui(i),publisher:n,containerId:o}),Zi="[data-carousel-track]",er=({image_link:e,title:t})=>{const n=document.createElement("figure"),o=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),o.className="slide-image",o.src=e,o.alt=t,o.loading="lazy",o.draggable=!1,n.appendChild(o),n},tr=e=>Boolean(e.title&&e.link&&e.image_link),nr=(e,t)=>B(void 0,void 0,void 0,function*(){const n=e.querySelector(Zi);var o;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>B(void 0,void 0,void 0,function*(){try{const t=yield V.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(c("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return c("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const r=i.items.filter(tr);if(!r.length)return void c("Carousel feed has no usable items");yield Promise.resolve().then(function(){return Ad});const a={title:(o=e).querySelector("[data-product-title]"),description:o.querySelector("[data-product-description]"),price:o.querySelector("[data-product-price]"),link:o.querySelector("[data-product-link]")};n.replaceChildren(...r.map(er)),(({root:e,onChange:t})=>{var n;const o=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(Zi),r=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!o||!i||!r.length)return;const a=r.length,d=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let s=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,r=(o.clientWidth-t)/2-s*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${r+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{s=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===s)),null==t||t((s-1+a)%a)},g=()=>{0===s?v(a,!1):s===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*o.clientWidth?-Math.sign(c):0;l=null,c=0,v(s+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...d),i.addEventListener("transitionend",e=>{e.target===i&&g()}),o.addEventListener("pointerdown",e=>{g(),l=e.clientX,o.setPointerCapture(e.pointerId),p(!1)}),o.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),o.addEventListener("pointerup",h),o.addEventListener("pointercancel",h),o.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:o},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),o&&(o.href=i.link)})(a,r[e])}),l("Carousel mounted",{items:r.length})}catch(t){c("Carousel could not be rendered",t),e.replaceChildren()}else c("Carousel feed url is missing or not a valid https url",{url:t})}),or="default",ir=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r,a,d;const s=document.querySelector(`#${e.targetId}`),{native:c}=e;if(!c||!s)return;const{desc2:u}=c,p=null==u?void 0:u.toLowerCase(),v=((e,t)=>{const n=L($),o=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&o?o:(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!=u?u:or),g=(null!=v?v:p)||or,h=(null===(n=c.video)||void 0===n?void 0:n.content)?`${g}-video`:g,m=(e=>{var t;if(e)return null!==(t=wi[e])&&void 0!==t?t:e})(null===(o=t.pageContext)||void 0===o?void 0:o.publisher);try{const{schema:n,adjustment:o}=yield Ci(h,m,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),l=o?Ni(n,o):n,u=Qi(l),p={publisher:m,pageType:null===(r=t.pageContext)||void 0===r?void 0:r.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},v=u(c,p),{enabled:f=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};bi(e.targetId,v,p,()=>{oi(e.targetId),_i({container:s,native:c,type:g,publisher:m}),f&&ci(e,p)})}catch(e){l("Failed to render native ad from config",{error:e})}}),rr="explicit",ar="dom-discovered",dr=e=>`${Math.max(0,Math.round(e))}px`,sr=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},lr=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},cr=()=>{const{pageSectionsSelectors:e}=m.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=sr(t);lr({"--advertory-header-height":dr(n)})})(e.header)},ur=()=>{const e=b();if(!e)throw new Error("Ad server driver is not set, pass a driver to init()");return e};let pr=[];const vr=["takeover","wallpaper"],gr=(e,t)=>{var n,o;const{initNativeAd:i}=m.getHandlers();null==i||i(e,null!==(o=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==o?o:m.get())},hr=e=>{const t=(e=>{var t;const n=R.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:h,takeover:m,fullscreenScroll:f,fullWidth:y}=e,b=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:g;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:h,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),f&&{fullscreenScroll:f}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.19.1-no-issue.0",siteConfig:e,renderNativeAd:gr,alertoryConfig:t}},mr=()=>B(void 0,void 0,void 0,function*(){yield ur().setTargeting()}),fr=e=>B(void 0,void 0,void 0,function*(){var t,n,o,i;const r=ur(),a=null!==(n=yield null===(t=r.adjustPlacementsBeforeRequest)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:e;null===(o=r.definePlacements)||void 0===o||o.call(r,a),yield null===(i=r.requestPlacements)||void 0===i?void 0:i.call(r,a)}),yr=(e,t)=>B(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=m.get(),{requestThreshold:i,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[o];a&&(l("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:d}),yield jn(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(l("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),br=e=>e.some(({targetId:e})=>vr.some(t=>e.includes(t))),wr=e=>B(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,o]=(e=>e.reduce(([e,t],n)=>{var o;return(null===(o=null==n?void 0:n.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=g}={},pageContext:{deviceType:o}}=m.get(),i=we(e),r=Object.keys((null==t?void 0:t[o])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...Rn(d,n)]})(o);for(const e of i)br(e)?(l("core loadAds without lazy loading",{placementsToLoad:e}),yield fr(e)):e.length&&(l("core loadAds with lazy loading",{placementsToLoad:e}),yield xr(e));const{finnBlink:r}=m.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return Id});yield e(n)}}),xr=e=>B(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=m.get(),o=[];if(!t)return l("lazy load is not enabled",{placements:e}),void(yield fr(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{l("lazy load is enabled - handler start",{loadedTargetIds:o,placements:e});const i=e.every(e=>o.includes(e.targetId)),r=e.map(e=>e.targetId);!i&&o.push(...r),!i&&fr(e),l("lazy load is enabled - handler stop",{loadedTargetIds:o,placements:e,arePlacementsLoaded:i,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(l("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),kr=()=>B(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>B(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=>B(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=pr.find(({targetId:t})=>t===e.targetId);t&&(yield yr(t,e),pr=pr.filter(e=>e.targetId!==t.targetId))})),yield ur().bindEvents(e)}),Cr=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r;if(l(`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 l("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:a,disableAds:d,reloadExistingAds:s,renderFinnBlinkPlacements:c,contextSelector:u}=null!=t?t:{},p=Object.keys(null!=e?e:{}).length>0;let v=[];if(d)return te(),pr=[],ne(),[];if(a&&(v=null!==(o=te())&&void 0!==o?o:[]),a&&!p)return[];if(a&&p&&(pr=[],ne()),s&&(te(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{q(e.id)})),yield oe(e),(null==e?void 0:e.pageSectionsSelectors)&&cr(),yield mr(),ur().capabilities.tagDefinition===ar)return l("Advertory update - dom-discovered driver finds its own placements, requesting the page"),yield null===(r=(i=ur()).requestPage)||void 0===r?void 0:r.call(i),pr;const{clientSidePlacements:g,serverSidePlacements:h}=mi(ye(u)),f=[...g,...h];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>F(e)));e.filter(e=>n.has(e)).forEach(e=>q(e))})(v,f),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>F(e)));e.filter(e=>!n.has(e)).forEach(e=>z(e))})(v,f);let y=g;return c&&(y=y.filter(e=>De(e.targetId))),yi(h,m.get()),y.length>0&&(pr=[...pr,...y.map(e=>Object.assign({},e))],ur().capabilities.refresh&&(Hn(y),Kn(y)),yield wr(y)),pr}),Ir=(e,t,n)=>B(void 0,void 0,void 0,function*(){var o,i;y=n,m.set(e),m.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:a,rightColumnSplit:d,finnBlink:s}=e;R.initialize(),window.addEventListener("message",An,!1);const[c]=yield Promise.allSettled([n.setup(),vn(e),B(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=m.get();(yield tt(t,n,o,"gpt-endpoint"))&&(yield bn(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),B(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=m.get(),{getConsentAsync:r}=et(n,0,i),a=yield r();if(e&&t&&a){if(yield bn(t),document.querySelector(`.${to}`))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(to)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),Wt(),B(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=m.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield bn(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(l("Driver has been set up"),null==r?void 0:r.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Pd});yield e()}if(l("Libraries have been loaded and trackers have been set"),cr(),yield kr(),yield mr(),l("Page options have been set"),hr(e),l("Advertory is setup on window"),n.capabilities.tagDefinition===ar)return yield null===(o=n.requestPage)||void 0===o?void 0:o.call(n),void l("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=mi(ye());if(pr=u,yi(p,e),n.capabilities.refresh&&(Hn(pr),Kn(pr)),yield wr(pr),l("Ads has been loaded",pr),Qn(pr),null==s?void 0:s.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return Id});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 Promise.resolve().then(function(){return Fd});t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return os});yield t(e)}}),Sr=(e,t,n)=>B(void 0,void 0,void 0,function*(){l(`Received configuration passed to Advertory: ${JSON.stringify(e)}`),yield((e,t,n)=>B(void 0,void 0,void 0,function*(){var o,i;const{initConsentManager:r,getConsentAsync:a}=et(e.tcf,null===(o=e.pageContext)||void 0===o||o.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),d=yield Q(e);yield no(),yield Zn(r),yield Zn(a),l("TCF resolved successfully"),yield Ir(d,t,n),l("Run function resolved successfully")}))(e,t,n)}),Tr={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"}},Er=["sponsor","seamless"],Ar=["shopping"],Or=(e,t,n,o)=>{var i;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:x,customBody4:k,customBody5:C,customIcon1:I,customIcon2:S,customDisplayUrl1:T,customDisplayUrl2:E}=e,A=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:A(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=Er.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return A(t?I:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",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!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=x?x:"",customBody4:null!=k?k:"",customBody5:null!=C?C:"",logo2:A(S),previewVideoSrc:null!=T?T:"",feedUrl:null!=E?E:""},t)},Pr=(e,t)=>{const n=L($),o=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!Ar.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},jr=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(qt).includes(o);n&&r&&ei(o,e,ni,i)})(i,n),o())},$r=(e,t,n)=>{var o;const i=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=Pr(e.targetId,l))&&void 0!==o?o:c,p=Tr[t.language||Je.NO],v=Or(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);jr(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&ci(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&nr(r,null===(o=e.native)||void 0===o?void 0:o.customDisplayUrl2)},Lr=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});$r(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},_r=/_\d+$/,Nr=e=>e.replace(_r,""),qr=()=>{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 Fr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return B(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 B(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Mr=9826;class Br{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=m.get();if(t){return{"aa-sch-supply_type":`app_${e===se?"phone":le}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return B(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 B(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=nt("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return B(this,void 0,void 0,function*(){return yield ot(m.get())})}isTrackingForbidden(){return B(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=Mr}={}}=m.get();return"true"===P("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=m.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return B(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get(),{getConsentAsync:o}=et(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=m.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 Dr=new Br;function Rr(e=!1){var t,n;const o=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=At();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Dr.prepare.bind(Dr);const zr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Ur(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",zr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Wr extends Br{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=m.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=m.get(),{OS:n,isHybridApp:o}=Rr(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Ur(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=m.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"===o?"article":"front"}`}}}const Hr=new class extends Wr{prepare(e){return B(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=m.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Fr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Yt(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(hn()).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({},gn(Je.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Vr=Hr.prepare.bind(Hr);class Kr extends Br{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=m.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return{width:e||n||0,height:t||o||0}}(),t={width:null!==(o=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==o?o:0,height:null!==(r=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==r?r:0};var n,o,i,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return B(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}}=m.get(),{appMode:t,mobileOS:n}=Rr(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:o}}=m.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"===o?"article":"front"}`}}}const Gr=new class extends Kr{prepare(e){return B(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=m.get(),s=null!==(o=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},l=null!==(a=null===(r=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},c=new Fr;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(Yt(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>B(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),c.add(this.getSupplyTypeKeywords()).add(hn()).addIf(l.appType,this.getAppTypeKeywords()).addIf(l.device,this.getDeviceKeywords()).addIf(l.screen,this.getScreenKeywords()).addIf(l.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(l.sectionPageType,this.getSectionPageTypeKeywords()).addIf(l.hasContext,this.getHasContextKeywords(e.keywords)).addIf(l.hasPlusMembership,{"se-generic-has_plus":"plus"===nt("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const u=c.build(),p=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:u,user:Object.assign(Object.assign({},gn(Je.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Xr=Gr.prepare.bind(Gr),Jr=[];let Yr=e=>{Jr.push(e)};const Qr=e=>{Yr(e)},Zr={fullscreenScroll:()=>Promise.resolve().then(function(){return Na})},ea={},ta=(e,t)=>{const n=ea[e];return n?(null==t||t(n),Promise.resolve(n)):Zr[e]().then(n=>(ea[e]=n,null==t||t(n),n))},na="ad-loaded",oa={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},ia=e=>{const{apntag:t,bus:n}=e,{siteEvents:o,initNativeAd:i}=m.getHandlers(),r=Object.assign(Object.assign({},oa),o),a=[];return{adRequested:()=>{n.emit("adRequested"),r.adRequested()},adAvailable:e=>B(void 0,void 0,void 0,function*(){var t,o,a,d,s,c;l("core adAvailable start",{adObj:e,isFullscreenScrollAd:$e(e),isFinnBlink:De(e.targetId),isNativeAd:Le(e),isMediation:Ke(e),isTakeoverAd:Ne(e),isCollapseAd:Me(e),isWallpaperAd:Fe(e)});const u=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;Ke(e)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(c=null===(s=u[1])||void 0===s?void 0:s.rtb)||void 0===c?void 0:c.banner),$e(e)&&(yield ta("fullscreenScroll",({modifyFullscreenScrollAd:t})=>t(e)));const{widescreenSwitching:p,wallpaper:v,fullscreenScroll:g}=m.get();if(Ue(e)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return ss});e()}if($e(e)&&!De(e.targetId)){l("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 ta("fullscreenScroll");t(e,g)}if(!Le(e)||Ke(e)||De(e.targetId)||null==i||i(e,m.get()),Ne(e)&&!Me(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield Promise.resolve().then(function(){return Os});t(e.targetId),yield n(e)}if(Fe(e)&&(null==v?void 0:v.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return O});t(()=>Qr(()=>window.apntag.showTag(e.targetId)),v),R.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&R.setData("horseshoe",{isAvailable:!0}),r.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),l("core adAvailable stop",{adObj:e,isFullscreenScrollAd:$e(e),isFinnBlink:De(e.targetId),isNativeAd:Le(e),isMediation:Ke(e),isTakeoverAd:Ne(e),isCollapseAd:Me(e),isWallpaperAd:Fe(e)})}),adLoaded:e=>B(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:d,adScaleConfig:s,pulse:l}=m.get(),c=document.getElementById(e.targetId);if(De(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield Promise.resolve().then(function(){return hd});t(e)}if(a.includes(e.targetId)&&Le(e)&&(null==i||i(e,m.get()),Tt({adObj:e})),!a.includes(e.targetId)&&Ke(e)&&a.push(e.targetId),Me(e)&&N(e.targetId),Ne(e)){const{modifyTakeoverIframe:n}=yield Promise.resolve().then(function(){return Os});n(t,e.targetId)}if((e=>Ve(e,Ce))(e)){const{applyNinesixteenFormat:t}=yield Promise.resolve().then(function(){return Ls});t(e)}if((e=>Ve(e,Se))(e)){const{applyFullsquareFormat:t}=yield Promise.resolve().then(function(){return Ls});t(e)}if(_e(e)){const{applyFullwidthFormat:t}=yield Promise.resolve().then(function(){return Ls});t(e)}Wn(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&z(e.targetId);if(R.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return O});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield Promise.resolve().then(function(){return _t});t(e),n(e)}if(r.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return li}),n=new t(m.get(),e);n.trackLoad(),n.trackImpression()}oi(e.targetId),c&&(c.classList.add(na),(e=>{var t,n;const{pageSectionsSelectors:o}=m.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(c)),Tt({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:Et(e)}}))}),adNoBid:e=>B(void 0,void 0,void 0,function*(){if(N(e.targetId),Ne(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return It});yield t(e)}r.adNoBid(e)}),adError:(e,t)=>B(void 0,void 0,void 0,function*(){if(Ne(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return It});yield e(t)}r.adError(e,t)}),adCollapse:()=>{r.adCollapse()},adRequestFailure:e=>B(void 0,void 0,void 0,function*(){N(e.targetId),r.adRequestFailure(e)}),adBadRequest:e=>B(void 0,void 0,void 0,function*(){N(e.targetId),r.adBadRequest(e)}),adLoadedMediated:e=>r.adLoadedMediated(e),adNoBidMediated:e=>{r.adNoBidMediated(e)}}},ra=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Gn(t)),i=(e=>1===e[0]&&1===e[1])(o),r={sizes:[o],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(r.native=void 0),r},aa=()=>(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),da=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),sa=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=m.get(),r=[`${Jt(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",...o?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},la="advertory-fullscreen-scroll",ca="advertory-fullscreen-scroll-wrapper",ua="fullscreen-scroll-in-screen",pa="in-screen",va=e=>e.includes("snoap.no"),ga=e=>{var t,n,o,i,r;return!!(null===(r=null===(i=null===(o=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===o?void 0:o.adResponse)||void 0===i?void 0:i.ads[1])||void 0===r?void 0:r.rtb)},ha=st([],()=>{const e=({width:e,height:t})=>{var n;const o=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!o)return;const{clientWidth:i,clientHeight:r}=o,a=e/i,d=t/r;o.style.transform=`scale(${a},${d})`,o.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}),ma=e=>{const t=st([],()=>{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 o=n.contentDocument.createElement("style");o.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(o),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},fa=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},ya=[],ba={},wa=(e,t)=>{var n;const o=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>xa(e,o),{}),r=Ca(e);i.observe(e),o&&(ba[r]=Ta(e,null==t?void 0:t.options))},xa=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=Ca(e);n?(ka(o,n),Ia(e,o,t)):(ka(o,n),Sa(e,o,t))})},ka=(e,t)=>{var n,o;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const r=t?"showFullscreen":"hideFullscreen";null===(o=i.contentWindow)||void 0===o||o.postMessage(`advertory:${r}-${e}`,"*")},Ca=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},Ia=(e,t,n)=>{e.classList.add(pa),document.body.classList.add(ua),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),ya.includes(t)||ya.push(t),n&&window.addEventListener("scroll",ba[t],{passive:!0})},Sa=(e,t,n)=>{ya.includes(t)&&(n&&window.removeEventListener("scroll",ba[t]),document.body.classList.remove(ua),e.classList.remove(pa),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Ta=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:o=[".skyscraper_r"],headerZIndex:i=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),o.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&Ea(e,r,i,0),a.length&&Ea(e,a,i,40)}},Ea=(e,t,n,o)=>{const i=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-o:(r+t-(a+i))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};eo('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 Aa="left";let Oa=null;const Pa=(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=`(${ha})()`,e+t.outerHTML})(n),n=fa(n),n=(e=>{if(va(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=ma(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>va(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)),va(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)),ga(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},ja=()=>{Oa=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,o=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",`${o}px`)},$a=()=>{Oa||(Oa=window.requestAnimationFrame(ja))},La=(e,t)=>{var n,o,i,r,a;const{pageContext:{countryCode:d,deviceType:s}}=m.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:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/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 ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==c?void 0:c.overlayStyles)&&void 0!==o?o:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;wa(p,t),u.className=la,wa(p,t),u.className="advertory-fullscreen-scroll";const v=Ve(e,xe)?"absolute":"fixed";u.style.position=v,p.className=ca,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:Tr[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===Aa&&(u.dataset.moveCogwheelToTheLeft="true"),$a(),window.addEventListener("resize",$a),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",$a),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",$a)},_a=e=>{if(!(null==e?void 0:e.classList.contains(la)))return;e.classList.remove(la),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(ca))&&(t.classList.remove(ca),t.classList.remove(pa))};var Na=Object.freeze({__proto__:null,createFullscreenScrollAd:La,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=ga(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=ga(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Pa(t,e))},undoFullscreenScrollContainer:_a});const qa=()=>B(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:o,deviceType:i},fullscreenScroll:r,appearanceConfig:a,placements:d}=m.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=m.getHandlers(),{getConsentAsync:c}=et(t,0,n),u=yield c(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=aa(),{prebid:{relevantCallbackTimeout:r}={}}=m.get(),a="relevantCb"===o&&r?r:n[o].timeout,d=setTimeout(()=>{!n[o].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${o}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),v=aa(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=aa();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:f}=g;(()=>{const e=da();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{l("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!v.loadTags)return l("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!v.loadTags,condition:"or"}),void p.cleanup();const t=da();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const c=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};l("prebid consentManagement",c),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},mn(n)),sa(f,h))),l("core add prebid config",Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},mn(n)),sa(f,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{l("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e)),p.cleanup()}},customNativeRender:e=>{Fa(e,s)},directRenderFn:e=>{var t,n,s;const{settings:c,renderFn:u}=e,{bid:p,adDiv:v}=c||{};if(!v)return;const g=v.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==d?void 0:d[i])||void 0===t?void 0:t.find(e=>e.targetId===g),f=null!==(s=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==s?s:0,y=Object.assign(Object.assign({},p),{targetId:g,banner:!0});l("prebid directRenderFn ad info",{targetId:g,width:null==p?void 0:p.width,height:null==p?void 0:p.height,adId:null==p?void 0:p.adId,creativeId:null==p?void 0:p.creativeId}),On(h,f,()=>{var e;const t=u(c),n=$e(y);if(l("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)l("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),La(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const o=new MutationObserver(()=>{n()&&o.disconnect()});o.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),o&&h.style.setProperty("--advertory-political-box-offset","30px");else{l("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),_a(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(na),(null==p?void 0:p.creativeId)&&ii(g,h,Number(null==p?void 0:p.creativeId))})}}),l("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e))}},customNativeRender:e=>{Fa(e,s)},directRenderFn:()=>{}})})}),Fa=(e,t)=>{var n;const{divId:o,native:i,bid:r}=e,a=document.querySelectorAll(`[id^=${o}]`)[0],d=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:d},m.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},Ma="_adchoices_non_rtb",Ba=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Ma}={}}={}}=m.get();return`${Nr(e)}${t}`},Da=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>N(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Ba(e.invCode)})))(e));let Ra="";const za=new Map;let Ua;const Wa=()=>{var e;Ua=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=Ua,Yr=e=e=>window.apntag.anq.push(e),Jr.splice(0).forEach(t=>e(t))},Ha=()=>Ua,Va=()=>{const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();return tt(e,t,n,"loadPlacements")},Ka={name:"xandr",capabilities:{tagDefinition:rr,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:()=>B(void 0,void 0,void 0,function*(){Wa(),yield Promise.allSettled([B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();(yield tt(e,t,n,"xandr-endpoint"))||Ua.setEndpoint("ib.adnxs-simple.com",!0)}),B(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=m.get();yield bn(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),B(void 0,void 0,void 0,function*(){if(_())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=m.get(),i=yield tt(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield bn(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>B(void 0,void 0,void 0,function*(){const{pageOptions:e}=m.get(),{preparePageOptions:t}=m.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=m.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"]}})(),o=yield B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();return(yield tt(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)}),o));(e=>{const t=R.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Yn(e);R.setData("alertoryConfigKeywords",n)})(i.keywords),Qr(()=>Ha().setPageOpts(i))}),enrichPlacementsAfterDiscovery:e=>{const{pageSetup:{tag:t}={}}=m.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Ra!==window.location.pathname&&(za.clear(),Ra=window.location.pathname),e.map(e=>{var t;const n=Nr(e.invCode),o=null!==(t=za.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=m.get();return`${e}-${t}`})()}-count`]=o,za.set(n,o+1),e})):e},adjustPlacementsBeforeRequest:e=>B(void 0,void 0,void 0,function*(){const t=yield Va();return Da(e,t)}),definePlacements:e=>{const{prepareTag:t}=m.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const o=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==o&&-1===i?-1:-1===o&&-1!==i?1:o-i})})(e).forEach(e=>{l("xandr definePlacements",{placement:e});const o=Qo(e);if(Zo(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:Jn(o),sizes:i}})(i);n.push(r),Qr(()=>(l("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),Ha().defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>B(void 0,void 0,void 0,function*(){const{prebid:t}=m.get();if((null==t?void 0:t.enabled)&&(yield Va())&&!_())return l("xandr requestPlacements prebid enabled"),void(yield qa());l("xandr requestPlacements without prebid enabled");const n=e.filter(({targetId:e})=>Zo(e)).map(({targetId:e})=>e);n.length&&Qr(()=>(l("xandr requestPlacements",{placementsIdsToLoad:n}),Ha().loadTags([...n])))}),bindEvents:e=>B(void 0,void 0,void 0,function*(){var t;yield(t={apntag:Ha(),bus:e},B(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=ia(t);Qr(()=>{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:()=>{Qr(()=>window.apntag.clearRequest())},render:e=>{Qr(()=>(l("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,ra(e));Qr(()=>{((e,t)=>{if(!t)return;const{pageContext:{countryCode:n}}=m.get();window.apntag.setKeywords(e,{[`${Jt(n)}-adreload`]:"1"},{overrideKeyValue:!0})})(e,n),window.apntag.refresh(e)})},resizeCreative:(e,t,n)=>{const o=document.getElementById(`div_utif_${e}`);if(!o)return;const{apntag:i}=window,[r,a]=t;if(!o.dataset.lockedsize&&a&&r)o.style.width=`${r}px`,o.style.height=`${a}px`,n&&(i.resizeAd(o.id,[r,a]),o.dataset.lockedsize="true",o.dataset.lockedwidth=r.toString(),o.dataset.lockedheight=a.toString());else if(null==o?void 0:o.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=o.dataset;e&&t&&i.resizeAd(o.id,[e,t])}}},Ga="viewable",Xa="adClick";var Ja=e=>(t,n,o)=>{const{video:i,img:r,url:a}=t,{publisher:d,productTag:s}=n,{pluginsNames:l,videoLoop:c}=o||{};if(!(null==i?void 0:i.content))return null;const u=Math.ceil(1e5*Math.random()),p=r||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${u}`,g=Ya(i.content,a),h=Qa({id:u,nodeId:v,poster:p,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Za({playerConfig:h,clickUrl:a,pluginsNames:l}),`${e(t,n,v)}`};const Ya=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.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"}))},Qa=({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="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:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},Ai(e)?e:{}),{provider:Object.assign(Object.assign({},Ai(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Za=e=>B(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield Pi(t);$i(n),r.once("assetReady",()=>{Oi(r,n)}),r.on(Ga,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Xa,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),ed=({containerId:e,url:t,body:n,title:o,logo:i,isContentVideoAd:r=!1,imgWidth:a})=>{const d=`\n <div class="ad-header">\n <span>ANNONSØRINNHOLD</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`<div class="ad-text">${o}</div>`;return`\n <div id="${e}" class="advertory-godt-ad-content" ${a?`style="max-width: ${a}px"`:""}>\n <div class="ad-info" id="${e}-button"></div>\n ${r?`\n ${d}\n ${n}\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${s}\n </a>\n `:`\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${d}\n ${n}\n ${s}\n </a>\n `}\n </div>\n `},td=["IntegrationMenu"],nd=({containerId:e},t,n)=>` <div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-video-wrapper">\n <div id="${n}"></div>\n </div>\n <span class="ad-label">${Tr.no.adText}</span>\n </div>`;eo('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}');const od={FRONT:"front"};eo('.advertory-abo-ad-native-sponsorstripe{position:relative;top:0;left:0;width:100%;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const id={default:{NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return Ns}),`<article class="advertory-no-ad-native-default">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_self">\n <div class="ad-content">\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${i}" />\n </div>\n <div class="ad-text-container">\n <div class="ad-sponsor">\n <span class="ad-label">${r}</span> ${n}\n </div>\n <div class="ad-title">${o}</div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,logo:a,imgAltText:d})=>{const s=$t(i,r);return ed({containerId:e,url:t,title:n,logo:a,imgWidth:i,body:`\n<div class="ad-image-wrapper" ${s?`style="padding-bottom: ${100*s}%"`:""}>\n <img alt="${d}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>Ja(({containerId:e,url:t,title:n,logo:o},i,r)=>ed({containerId:e,url:t,title:n,isContentVideoAd:!0,logo:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>Ja(({containerId:e,url:t,sponsoredBy:n,title:o},i,r)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i})=>`\n<div id="${e}" class="advertory-godt-ad-native">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <div class="ad-header">${Tr.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">${i}</div>\n </a>\n</div>`)({containerId:e,url:t,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),weeklyMenuVideo:(e,t)=>Ja(nd)(e,t,{videoLoop:true,pluginsNames:td}),weeklyMenuStripe:({title:e,logo:t})=>`<div class="advertory-godt-ad-weekly-menu-stripe">\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').nextElementSibling;\n\n if (disclaimer.style.display === 'none') {\n disclaimer.style.display = 'block';\n } else {\n disclaimer.style.display = 'none';\n }\n } catch (error) {}\n })(arguments[0]);return false;"\n >\n <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14.25 16.5h-.75A1.5 1.5 0 0 1 12 15v-3.75a.75.75 0 0 0-.75-.75h-.75M11.625 6.75a.375.375 0 1 0 0 .75.375.375 0 0 0 0-.75v0"/><path clip-rule="evenodd" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25Z" fill-rule="evenodd"/></g></svg>\n </button>\n <div class="disclaimer" style="display: none">\n Annonsøren som presenterer ukemenyen har betalt for profilering av logoen på VG-forsiden og Godt.no, og annonsen mellom oppskriftene.\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>`,weeklyMenu:({containerId:e,url:t,img:n,imgAltText:o})=>`<div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <img alt="${o}" class="ad-image" src="${n}" />\n <span class="ad-label">${Tr.no.adText}</span>\n </a>\n</div>`,sponsorstripe:({title:e,logo:t})=>`\n <div class="advertory-godt-sponsorstripe">\n <div class="ad-container">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.add('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path fill="currentColor" d="M9 9.327a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0zM10 4.399a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 .348c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10m-8 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0" clip-rule="evenodd"/></svg>\n </button>\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n </div>\n <div class="disclaimer">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.remove('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 20.07a9.375 9.375 0 1 0 0-18.75 9.375 9.375 0 1 0 0 18.75" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7.25 14.444 7.5-7.5M14.75 14.444l-7.5-7.5"/></svg>\n </button>\n <div>\n Annonsøren som presenterer denne saken har betalt for profilering av fremhevet annonsemateriell i artikler og innhold på Godt.no\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>\n </div>`},rd={displayTemplates:{default:id.default,content:id.content,"ukesmeny-stripe":id.weeklyMenuStripe,ukesmeny:id.weeklyMenu,sponsorstripe:id.sponsorstripe,seamless:{NATIVE_SEAMLESS:({containerId:e,url:t,adText:n,img:o,cta:i,description:r,logo:a,sponsoredBy:d,title:s,feedUrl:l})=>(Promise.resolve().then(function(){return _s}),`<article class="advertory-shared-ad-native-seamless">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank" data-product-link>\n <div class="ad-content">\n <div class="ad-header">\n ${a&&`<img alt="${d}" class="ad-logo" src="${a}" loading="lazy" />`}\n <div class="ad-annons">${n}</div>\n </div>\n ${(({img:e,title:t,feedUrl:n})=>n?'<div class="ad-carousel">\n <div class="carousel-window" data-carousel-viewport>\n <div class="carousel-track" data-carousel-track></div>\n </div>\n </div>':`<div class="ad-image-container">\n <img alt="${t}" class="ad-image" src="${e}" loading="lazy">\n </div>`)({img:o,title:s,feedUrl:l})}\n <div class="ad-footer">\n <div class="ad-row">\n <div class="ad-text-wrapper">\n <div class="ad-description" data-product-description>${r}</div>\n <h2 class="ad-headline" data-product-title>${s}</h2>\n </div>\n <div class="ad-purchase">\n <span class="ad-price" data-product-price></span>\n <div class="ad-action">${i}</div>\n </div>\n </div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_SEAMLESS},videoTemplates:{default:id.nativeVideo,content:id.contentVideo,menu:id.weeklyMenuVideo}},ad={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=m.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=m.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}}=m.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${Jt(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in je)||window.innerWidth>=je[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=m.get(),n=`${Jt(t)}-targetid`;return e?{[n]:[e]}:{}})(o),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=qr(),h=(e=>Ge(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),f=((e,t)=>Ge(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Fr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${Jt(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:b,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>B(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=m.get();return yield t===Je.SE?Xr(e):Vr(e)}),siteEvents:Nt,initNativeAd:(e,t)=>{var n,o,i;if(null===(o=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===o?void 0:o.enabled)return void ir(e,t);const{targetId:r}=e;if(!document.querySelector(`#${r}`))return;const{pageType:a=od.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l}=null!=t?t:{},c={language:Je.NO,publisher:qt.GODT,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l};$r(e,c,rd)}},dd=((e,t,n)=>({init:o=>Sr(Object.assign(Object.assign({},o),{siteSpecificConfig:n}),e,t),update:Cr,renderNativeAd:gr,getVideoPPIDs:yn,createInitNativeAd:Lr,getVideoAdsConfig:Uo}))(ad,Ka,Ft);eo('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const sd={Blink:"Blink"},ld=new Map,cd=e=>{var t;if(!ld.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,n]of Object.entries(sd)){const o=e[t];null!=o&&(window[n]=o)}})(e)).catch(t=>{throw ld.delete(e),t});ld.set(e,t)}return null!==(t=ld.get(e))&&void 0!==t?t:Promise.resolve()},ud="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js";class pd extends di{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return ri(e,this.targetId,t)}buildAdObject(){const e=pd.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const vd=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o},pulse:i}=m.get(),r=document.querySelector(`#${e}`);if(!r)return;if(r.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new pd(m.get(),e);t.trackLoad(),t.trackImpression(),r.addEventListener("click",()=>t.trackEngagement())}ei(n,r,ti,null!=t?t:o);Tt({preferredTestIdData:{targetId:e,testId:"finn"}})},gd=e=>{const{pageContext:{publisher:t=""}}=m.get(),n=document.querySelector(`#${e}`);if(!n)return;const o=`-${t}`;n.classList.remove(`advertory${o}-finn-blink`),n.classList.remove(`advertory${o}-finn-blink-wrapper`)};var hd=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=m.get(),{initNativeAd:n}=m.getHandlers();$e(e)&&La(e,t),Le(e)&&(null==n||n(e,m.get()))},finnBlinkLoaded:vd,xandrAdLoaded:gd});const md=e=>{var t,n;const o=document.querySelector(`[id^="${e}"]`);return null!==(n=null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==n?n:e},fd=(e,t)=>{const{finnBlink:{enabled:n}={}}=m.get(),o=(null==t?void 0:t.enabled)||(e=>{var t;const n=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!o||!n)return null;const{height:i,requireImage:r,position:a,offset:d}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${md(e)}`,enabled:o,position:null!=a?a:e,height:null!=i?i:100,offset:null!=d?d:200,requireImage:r,advertoryTheme:null==t?void 0:t.advertoryTheme}},yd=(e,t,n)=>B(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=m.get();l(`rendering finn blink ad for ${e}`);const a=F(e),d=o[i].find(e=>e.targetId===a),s=fd(e,null==d?void 0:d.finnBlink);if(!(null==s?void 0:s.enabled))return l(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void gd(e);if((e=>{var t;const n=md(e),o=document.querySelector(`[id^="${n}"]`);return!!(null===(t=null==o?void 0:o.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void l(`Finn blink already loaded ${e}`);const{publisher:c,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:v}={}}=null!=p?p:{},g=null!=v?v:`${c}.${u}`,h="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield B(void 0,void 0,void 0,function*(){const{ppid1:e}=pn.getPPIDs();return e});yield(f=Object.assign(Object.assign({},s),{channel:g,userId:e,theme:h}),B(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=f,n=M(f,["userId","theme"]),o=window[sd.Blink];if(!o)return;const i=new o({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},n))})),vd(s.selector.replace("#",""),s.advertoryTheme)}catch(t){l(`Finn blink error ${t}`),n&&n(e),!n&&N(e),gd(e)}var f}),bd=(...e)=>B(void 0,[...e],void 0,function*(e=500){return Promise.race([B(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])});class wd{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return B(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return l("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return B(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const xd=()=>B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();if(!(yield tt(e,t,n,"finn-blink")))return l("Skip loading finn blink ad due to missing TCF consent."),!1;const o=yield bd();return!!(yield new wd(o).isUserLoggedIn())||(l("Skip loading finn blink ad because the user is not logged in."),!1)}),kd=(e,t)=>{var n;(l(`Appending ${t.id} after ${e.id}`),e.parentElement&&(n=e.parentElement,!Array.from(n.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):l(`Cannot perform afterend on: ${e.id}`)},Cd=e=>document.querySelector(`#${e}`);var Id=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>B(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=m.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=Cd(n);i&&(yield jn(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>B(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=m.get();if(l(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield xd())||i)return n&&n(e),gd(e),void(!n&&N(e));try{yield cd(ud)}catch(e){console.error(e)}yield yd(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>B(void 0,void 0,void 0,function*(){var n,o;if(!t)return;const{replacementConfig:i}=t,r=null===(n=null==i?void 0:i.adsToReplace)||void 0===n?void 0:n[e],a=null===(o=null==i?void 0:i.sizes)||void 0===o?void 0:o[e];(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})()&&r&&a?(yield xd())&&(yield cd(ud),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=m.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),ei(t,o,ti),l(`Creating blink container for: ${e}`),n})(t);(e=>{l(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),kd(n,o),n.dataset.finnBlinkId=t,Pn().withFullAdsChain(e)})):l(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const Sd=eo("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var Td=Object.freeze({__proto__:null,default:Sd});const Ed=eo("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");var Ad=Object.freeze({__proto__:null,default:Ed});const Od=e=>e===Je.NO?"schibsted":"schibstedse";var Pd=Object.freeze({__proto__:null,getCampaign:Od,loadNorstat:()=>B(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=m.get(),i=yield tt(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=un.getPPIDs(),{ppid1:o,ppid2:i}=pn.getPPIDs(),r=(new cn).add(n,nn[e]).add(t,on[e]).add(i,rn[e]).add(o,an[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{B(void 0,[e,t,...n],void 0,function*(e,t,n=!0){if(document.getElementById(t))return;const o=document.createElement("img");o.src=e,o.id=null!=t?t:"",n&&(o.style.display="none"),document.body.appendChild(o)})})(`https://sch-map.norstatsurveys.com/api/nids/${Od(t)}/map/${r}`,"norstat")})});const jd=".advertory-right-column-track",$d="--advertory-right-column-track-height",Ld=e=>e.getBoundingClientRect().top+window.scrollY,_d=(e,t)=>`${e}-${t}`,Nd=(e,t,n)=>{var o;const i=Array.from(null!==(o=e.querySelectorAll(t))&&void 0!==o?o:[]),r=(e=>e.map(e=>{var t;return null===(t=document.querySelector(`[id^="${e}"]`))||void 0===t?void 0:t.parentElement}).map((e,t)=>({point:e,originalIndex:t})).filter(e=>Boolean(e.point)))(n);if(0===r.length)return;const a=Ld(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Ld(e),i=_d($d,t),r=o-n,a=_d("--advertory-right-column-split-point-height",t),d=sr(e);lr({[i]:dr(r),[a]:dr(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=_d("--advertory-right-column-ad-height",t),o=sr(e);lr({[n]:dr(o)})})(i[t])});((e,t)=>{const n=Ld(e)-t;lr({[$d]:dr(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let qd=!1;var Fd=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||qd)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=jd}=e,i=document.querySelector(o);if(!i)return;qd=!0;const r=()=>{Nd(i,n,t)};r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),window.addEventListener("load",r),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(r)});new ResizeObserver(r).observe(i)}});class Md{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class Bd{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const Dd="[data-k5a-teaser-analytics]";class Rd extends di{constructor(e,t,n,o){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=o}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(Dd);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(Dd);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){ai(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const o=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(o):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(o):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,o)}))}trackEngagement(e){var t,n;const o=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(o):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(o):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,o)}}class zd extends Rd{getEventBaseData(){var e,t,n,o;const{clientName:i,creativeId:r,itemId:a,placement:d}=this.parseKilkayaData(),{primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:d,elementType:"Article",custom:{customer:i,creativeId:null!=r?r:a},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},placement:{primaryPosition:s,secondaryPosition:l,source:c},tags:null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===o?void 0:o.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class Ud extends Rd{getEventBaseData(){var e,t;const{title:n="",clientName:o="",creativeId:i="",link:r="",itemId:a=""}=this.parseKilkayaData(),{columnName:d,primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u={publicUrl:r,urlPath:r?new URL(r).pathname:""},{publicUrl:p,urlPath:v}=r&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,r))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:d,primaryPosition:s,secondaryPosition:l,source:c},tags:[o,n,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:o,"spt:creativeId":i,pageTitle:n,publicUrl:p,urlPath:v},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const Wd=/^glci_/,Hd="gender_",Vd="geo_",Kd="male",Gd="female",Xd=()=>B(void 0,void 0,void 0,function*(){const e=[],t=yield B(void 0,void 0,void 0,function*(){try{const e=yield bd(),t=new wd(e),n=yield t.getIdentityUser(),{gender:o}=null!=n?n:{};return o===Kd||o===Gd?`${Hd}${o}`:void 0}catch(e){return}}),n=(()=>{const e=en().map(e=>`${Vd}${e.replace(Wd,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class Jd{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===od.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class Yd{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Qd{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class Zd{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class es{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===od.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ts{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class ns{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:o}}){if(!(null==e?void 0:e.instance))return;const i={[qt.VG]:new Md,[qt.E24]:new Jd,"no-aftenposten":new Yd,[qt.BT]:new Qd,"no-bergenstidende":new Qd,[qt.SA]:new Zd,"no-stavangeraftenblad":new Zd,[qt.SVD]:new es,[qt.AFTONBLADET]:new ts}[n]||new Bd;((e,t,n,o)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const r=o===Je.SE?new Ud(e,i,t):new zd(e,i,t,n);r.trackImpression(),i.addEventListener("click",()=>r.trackEngagement())})})(e.instance,i,t,o)}injectKilkayaMeta(e){return B(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield Xd();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(l(`Kilkaya event for slot: ${n}`),!n)return void l("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(l(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):l("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";q(o)}loadKilkayaScript(e){return B(this,void 0,void 0,function*(){yield bn(e)})}run(e){return B(this,void 0,void 0,function*(){var t,n;const{tcf:o,pageContext:{isMobileApp:i,countryCode:r},kilkaya:a}=e;if(!(null==a?void 0:a.enabled))return;const d=yield tt(o,i,r,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(d),yield this.loadKilkayaScript(null!==(n=null===(t=a.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e)})}}var os=Object.freeze({__proto__:null,Kilkaya:({placementName:e,slotTag:t,fallbackTargetId:o,children:i,pulseData:r,htmlAttributes:a})=>{const d=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},s=d(r,"data-pulse"),l=d(a,"data");return n.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":t},s,l,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("k5a-stream",{name:e,"slot-tag":t}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":o,style:{display:"none"},children:i})]}))},runKilkaya:e=>B(void 0,void 0,void 0,function*(){const t=new ns;yield t.run(e)})});const is=1e4,rs=(e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=m.get();if(!t)return[];return Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`)))},as=e=>e.some(e=>e.some(e=>!!e&&Un(e,0)));let ds;var ss=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=m.get(),{enabled:t,options:{rotationInterval:n=is,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;let i=rs(o),r=0,a=Date.now(),d=as(i);if(!i.length)return;ds&&document.removeEventListener("scroll",ds,!0);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1,c=e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})};c(i);const u=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{const e=rs(o);((e,t)=>{const n=e.flat(),o=t.flat();return n.length===o.length&&n.every((e,t)=>e===o[t])})(e,i)||(i=e,r=0,a=Date.now(),c(i)),d||(d=as(i)||d,a=Date.now());Date.now()-a>=n&&((()=>{const e=l(r),t=i.map(e=>e[r]),n=i.map(t=>t[e]);s(t,"opacity","0"),setTimeout(()=>{s(t,"display","none"),s(n,"opacity","0"),s(n,"display","block"),setTimeout(()=>{s(n,"opacity","1")},450)},450)})(),r=l(r),a=Date.now())},1e3);ds=u,document.addEventListener("scroll",u,!0)}});const ls="#fff",cs="#0098da",us=e=>"dark"===e,ps=(e,t,n,o)=>{if(!n)return;const i={[rt]:()=>{const{buttonLabel:o}=xt(n,t);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(n.innerText=null!=o?o:"")})},[it]:()=>{const{themeColors:i,logotype:r,buttonLabel:a,showArrowIcon:d}=xt(n,t),s=((e,t)=>{var n,o,i,r;if(!e)return;const a=us(t)?e.darkMode:void 0;return{backgroundColor:null!==(o=null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:e.backgroundColor)&&void 0!==o?o:ls,color:null!==(r=null!==(i=null==a?void 0:a.color)&&void 0!==i?i:e.color)&&void 0!==r?r:cs}})(i,o),l=((e,t)=>{var n,o;if(!e)return;const i=us(t)?e.darkMode:void 0;return{url:null!==(n=null==i?void 0:i.url)&&void 0!==n?n:e.url,alt:null!==(o=null==i?void 0:i.alt)&&void 0!==o?o:e.alt}})(r,o);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const n=e.querySelector(`${t}`);if(n){if("#advertory-splash-close-label"===t&&(n.innerText=null!=a?a:""),".advertory-splash-close"===t&&!d){const e=n.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===t&&s&&(n.style.color=s.color),"#advertory-splash-logotype"===t&&l&&(n.setAttribute("src",l.url),n.setAttribute("alt",l.alt)),".advertory-splash-navbar-wrapper"===t&&s&&(n.style.setProperty("background-color",s.backgroundColor,"important"),n.style.color=s.color)}})},[at]:()=>{const{buttonLabel:o,showArrowIcon:i,showCloseButton:r=!0}=xt(n,t);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(".advertory-topscroller-close"!==t||r||(n.style.display="none"),"#advertory-topscroller-scroll-image"!==t||i||(n.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(n.innerText=null!=o?o:""))})},[dt]:()=>{}};i[t]()},vs=(e,t=!0)=>{(e===rt||e===at)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},gs=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},hs=new WeakMap,ms=(e,t,n)=>{var o;window.addEventListener(t,n),hs.set(e,[...null!==(o=hs.get(e))&&void 0!==o?o:[],()=>window.removeEventListener(t,n)])},fs=e=>{document.body.style.overflow=e?"initial":"hidden"},ys=e=>{(e=>{var t;null===(t=hs.get(e))||void 0===t||t.forEach(e=>e()),hs.delete(e)})(e),gs(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),fs(!0),e.style.display="none"},bs=e=>{const t=()=>ys(e);return ms(e,"advertory:closeTakeover",t),gs(),t},ws=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&((e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&ys(e)};gs(),ms(e,"keydown",t)})(e),bs(e),gs(),t.addEventListener("click",()=>{ys(e)}),fs(!1))},xs=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),bs(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},ks=e=>{(e=>{ms(e,"advertory:closeTakeover",()=>ys(e))})(e)},Cs=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=m.get(),n=e.querySelectorAll(".advertory-splash-navbar-wrapper"),o=document.querySelector(".advertory-takeover-label");Array.from(n).forEach(e=>e.style.display="flex"),t&&o&&(o.style.display="flex",o.innerText=Tr.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},Is=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Tr.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},Ss=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Tr.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},Ts=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=Tr.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},Es=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var n;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(n=Array.from(e.target.classList))&&void 0!==n?n:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},As=(e,t)=>{let n=e;return e.includes("529299503")&&(n=(e=>{const t=document.createElement("script");return t.textContent=`(${Ct})()`,e+t.outerHTML})(e)),n=fa(n),n};var Os=Object.freeze({__proto__:null,createTakeoverAd:e=>B(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:n}=m.get(),{targetId:o}=e,i=document.querySelector(`#${o}`),r=document.querySelector(".advertory-takeover-wrapper");if(!i||!r||!t)return;const a=yt(e),d=r.offsetHeight,s=window.scrollY>d;r.style.display="block",!s&&vs(a,!1),((e,t)=>{({[rt]:Ss,[it]:Cs,[at]:Is,[dt]:Ts})[t](e)})(r,a),Es(),((e,t)=>{({[rt]:xs,[at]:xs,[it]:ws,[dt]:ks})[t](e)})(r,a),ps(r,a,t,null==n?void 0:n.theme),yield bt(),!s&&vs(a,!0),kt(e,a)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=ga(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=ga(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,As(t))},modifyTakeoverIframe:(e,t)=>{var n;const o="100%",i="100%";e.resizeAd(t,[o,i]);const r=null===(n=document.querySelector(`#div_utif_${t}`))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(r),t=e.width,n=e.height;t===o&&n===i||(r.style.width=o,r.style.height=i)}}).observe(r,{attributes:!0,attributeFilter:["style"]})}});const Ps=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},js=(e,t,n)=>{var o,i;const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:d}={},fullWidth:s,pageContext:{deviceType:l}}=m.get();if(!r)return null;const c=r.parentElement,u=Ot(l)||n;if(r.style.width=u?"100vw":"100%",r.style.position="relative",c&&(c.style.width=u?"100vw":"100%",c.style.position="relative"),a&&d){const e=`advertory-${a}-${d}`;r.classList.add(`${e}__${t}`),null==c||c.classList.add(`${e}-wrapper__${t}`)}const p=null===(i=null===(o=null==s?void 0:s.options)||void 0===o?void 0:o.styles)||void 0===i?void 0:i[l],v=(null==s?void 0:s.enabled)&&p;return!v&&c&&u&&(c.style.left="50%",c.style.marginLeft="-50vw"),v&&p.adContainer&&Ps(r,p.adContainer),v&&p.adContainerWrapper&&c&&Ps(c,p.adContainerWrapper),r},$s=(e,t,n,o,i)=>{var r;const a=js(e,o,i);if(!a)return void l("[Ad full width] adContainer not found");const d=a.querySelector("iframe"),s=null==d?void 0:d.parentElement;if(!d||!s)return void l("[Ad full width] iframe or iframeWrapper not found");const c=parseFloat(window.getComputedStyle(a,"::before").height)||0,u="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${t}px)`:String((null===(r=null===document||void 0===document?void 0:document.documentElement)||void 0===r?void 0:r.clientWidth)/t);l(`[Ad full width] ratioWidth ${t}, ratioHeight ${n}, adObjWidth: ${e.width}, scaleFactor ${u}`),s.style.transform=`scale(${u})`,s.style.transformOrigin="left top",a.style.height=`calc(100vw / ${t} * ${n} + ${c}px)`};var Ls=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{$s(e,1080,1080,"fullsquare-ad",!0)},applyFullwidthFormat:e=>{const t=js(e,"fullwidth-ad",!1);if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=m.get().pageContext;n.style.width=Ot(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=Ot(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{$s(e,1080,1920,"ninesixteen-ad",!0)}});eo('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:40px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;max-width:100%;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel .carousel-window{width:calc(100% + 16px);min-width:calc(100% + 16px);mask-image:linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);-webkit-mask-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, #000 5%, #000 95%, rgba(0, 0, 0, 0.5) 100%)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;min-width:0;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;min-width:0;font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:6px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:13px;font-weight:500;white-space:nowrap}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');var _s=Object.freeze({__proto__:null});eo('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');var Ns=Object.freeze({__proto__:null});module.exports=dd;