"use strict";(()=>{var Po=Object.create;var Gn=Object.defineProperty;var To=Object.getOwnPropertyDescriptor;var _o=Object.getOwnPropertyNames;var Ao=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty;var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Eo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _o(t))!Co.call(e,o)&&o!==n&&Gn(e,o,{get:()=>t[o],enumerable:!(r=To(t,o))||r.enumerable});return e};var Xt=(e,t,n)=>(n=e!=null?Po(Ao(e)):{},Eo(t||!e||!e.__esModule?Gn(n,"default",{value:e,enumerable:!0}):n,e));var qt=me((Zi,Wt)=>{var Zn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);Zn?(Yt=new Uint8Array(16),Wt.exports=function(){return Zn(Yt),Yt}):($t=new Array(16),Wt.exports=function(){for(var t=0,n;t<16;t++)t&3||(n=Math.random()*4294967296),$t[t]=n>>>((t&3)<<3)&255;return $t});var Yt,$t});var Qt=me((ea,tr)=>{var er=[];for(nt=0;nt<256;++nt)er[nt]=(nt+256).toString(16).substr(1);var nt;function Do(e,t){var n=t||0,r=er;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}tr.exports=Do});var or=me((ta,rr)=>{var Ro=qt(),Uo=Qt(),nr,Kt,Zt=0,en=0;function Lo(e,t,n){var r=t&&n||0,o=t||[];e=e||{};var a=e.node||nr,s=e.clockseq!==void 0?e.clockseq:Kt;if(a==null||s==null){var c=Ro();a==null&&(a=nr=[c[0]|1,c[1],c[2],c[3],c[4],c[5]]),s==null&&(s=Kt=(c[6]<<8|c[7])&16383)}var u=e.msecs!==void 0?e.msecs:new Date().getTime(),f=e.nsecs!==void 0?e.nsecs:en+1,d=u-Zt+(f-en)/1e4;if(d<0&&e.clockseq===void 0&&(s=s+1&16383),(d<0||u>Zt)&&e.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Zt=u,en=f,Kt=s,u+=122192928e5;var y=((u&268435455)*1e4+f)%4294967296;o[r++]=y>>>24&255,o[r++]=y>>>16&255,o[r++]=y>>>8&255,o[r++]=y&255;var h=u/4294967296*1e4&268435455;o[r++]=h>>>8&255,o[r++]=h&255,o[r++]=h>>>24&15|16,o[r++]=h>>>16&255,o[r++]=s>>>8|128,o[r++]=s&255;for(var I=0;I<6;++I)o[r+I]=a[I];return t||Uo(o)}rr.exports=Lo});var ar=me((na,ir)=>{var jo=qt(),No=Qt();function Vo(e,t,n){var r=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||jo)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[r+a]=o[a];return t||No(o)}ir.exports=Vo});var nn=me((ra,ur)=>{var Mo=or(),sr=ar(),tn=sr;tn.v1=Mo;tn.v4=sr;ur.exports=tn});var _r=me((aa,Tr)=>{(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,a=0;o>>5]|=n[o]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,a=0;o>>6-a*2);return r}};Tr.exports=t})()});var sn=me((sa,Ar)=>{var an={utf8:{stringToBytes:function(e){return an.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(an.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n{(function(){var e=_r(),t=sn().utf8,n=sn().bin,r=function(a){a.constructor==String?a=t.stringToBytes(a):typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||(a=a.toString());var s=e.bytesToWords(a),c=a.length*8,u=[],f=1732584193,d=-271733879,y=-1732584194,h=271733878,I=-1009589776;s[c>>5]|=128<<24-c%32,s[(c+64>>>9<<4)+15]=c;for(var x=0;x>>31}var P=(f<<5|f>>>27)+I+(u[p]>>>0)+(p<20?(d&y|~d&h)+1518500249:p<40?(d^y^h)+1859775393:p<60?(d&y|d&h|y&h)-1894007588:(d^y^h)-899497514);I=h,h=y,y=d<<30|d>>>2,d=f,f=P}f+=m,d+=F,y+=V,h+=A,I+=R}return[f,d,y,h,I]},o=function(a,s){var c=e.wordsToBytes(r(a));return s&&s.asBytes?c:s&&s.asString?n.bytesToString(c):e.bytesToHex(c)};o._blocksize=16,o._digestsize=20,Cr.exports=o})()});var Jn=e=>{let n=document.cookie.split("; ").find(r=>r.startsWith(e+"="));return n?decodeURIComponent(n.split("=")[1]??""):null},Xn=(e,t,n={})=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.days){let o=new Date(Date.now()+n.days*864e5).toUTCString();r+=`; expires=${o}`}r+=n.path?`; path=${n.path}`:"; path=/",r+=n.domain?`; domain=${n.domain}`:"",r+=n.secure?"; secure":"",document.cookie=r};var Yn=()=>{let e=document.querySelector(".id-Comments-statusMessage");return!!(e&&e.textContent?.trim()==="Liebe Leserinnen und Leser,der Inhalt dieses Artikels entstand in Zusammenarbeit mit unserem Partner. Da eine faire Betreuung der Kommentare nicht sichergestellt werden kann, ist der Text nicht kommentierbar.Die Redaktion")},$n=()=>{let e=document.getElementById("id-MainNavigation"),t=document.getElementById("id-MainNav-wrap");return!(e||t)};var Oo="tagsjs_debug_mode",tt=e=>{let{tag:t="common"}=e,n=localStorage.getItem(Oo)==="true"||!1;return{log:(...r)=>{n&&console.log(`tagsjs(${t}):`,...r)},info:(...r)=>{n&&console.info(`tagsjs(${t}):`,...r)},warn:(...r)=>console.warn(`tagsjs(${t}):`,...r),error:(...r)=>console.error(`tagsjs(${t}):`,...r)}};var Wn=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push=new Proxy(window.dataLayer.push,{apply:(e,t,n)=>{let r=e.apply(t,n),o=new CustomEvent("tagsjs.dataLayerPush",{detail:n});return window.dispatchEvent(o),r}})},He=(e,t)=>{let r=window.dataLayer.flatMap(a=>Object.keys(a)).filter(a=>e.includes(a)),o=r.length===e.length;return t.info("found these values in dataLayer",r),t.info("dataLayer is ready",o),o},St=e=>Object.assign({},...e.map(t=>{let n=window.dataLayer.find(r=>t in r);if(n)return{[t]:n[t]||null}}));var qn="flyin-visitor",Qn=["de.ippen-digital.user.userType"],Kn=async e=>{let t=tt({tag:"flyin"});if(t.info("init",e),Yn()){t.info("don't show on PR articles");return}if($n()){t.info("don't show in App");return}let n=!1,r=()=>{if(n)return;let o=St(["de.ippen-digital.user.userType","de.ippen-digital.story.isPaywallContent"]);if(o["de.ippen-digital.user.userType"]&&o["de.ippen-digital.user.userType"]==="Premium"){t.info("don't show for Premium users");return}if(o["de.ippen-digital.story.isPaywallContent"]){t.info("don't show on paywall content");return}ko(e),n=!0};window.addEventListener("tagsjs.dataLayerPush",()=>{He(Qn,t)&&r()}),He(Qn,t)&&r()},ko=async e=>{let t=tt({tag:"flyin"}),{fileName:n,actionUrl:r="#",capping:o={count:3,days:3}}=e,a=+(Jn(qn)??0);if(t.info(`cookieCount: ${a}, capping.count: ${o.count}`),a>=o.count){t.info("cap reached - do not show");return}let c=(await(await fetch(`https://tags.data.chiemgau24.de/assets/flyin/${n}`)).text()).replaceAll("{{ASSET_URL}}","https://tags.data.chiemgau24.de/assets"),f=new DOMParser().parseFromString(c,"text/html"),d=document.createElement("div"),y=d.attachShadow({mode:"closed"});y.appendChild(f.documentElement);let h=y.getElementById("flyin-collapse"),I=y.getElementById("flyin-close"),x=y.getElementById("flyin-action"),m=y.getElementById("flyin-content");h?a>0?(m?.classList.toggle("collapsed"),h?.classList.toggle("rotated"),window.dataLayer.push({event:"flyinEvent",eventState:"show_closed"}),t.info("initially collapsed after first view")):(window.dataLayer.push({event:"flyinEvent",eventState:"show_open"}),t.info("first view expanded for first view")):(window.dataLayer.push({event:"flyinEvent",eventState:"normal"}),t.info('no collapse element, show "normal"')),h?.addEventListener("click",()=>{m?.classList.toggle("collapsed"),h?.classList.toggle("rotated"),m?.classList.contains("collapsed")?(window.dataLayer.push({event:"flyinEvent",eventState:"collapse_click"}),t.info("collapse")):(window.dataLayer.push({event:"flyinEvent",eventState:"expand_click"}),t.info("expand"))}),I?.addEventListener("click",()=>{d.parentNode?.removeChild(d),window.dataLayer.push({event:"flyinEvent",eventState:"close_click"}),t.info("close clicked")}),x?.setAttribute("href",r),x?.addEventListener("click",()=>{window.dataLayer.push({event:"flyinEvent",eventState:"cta_click"}),t.info(`action clicked - redirecting to ${r}`)}),document.body.appendChild(d),Xn(qn,`${a+1}`,{days:o.days})};var L=function(){return L=Object.assign||function(t){for(var n,r=1,o=arguments.length;r>18&63,a=u>>12&63,s=u>>6&63,c=u&63,y[d++]=ve.charAt(o)+ve.charAt(a)+ve.charAt(s)+ve.charAt(c);while(f>16&255,r=f>>8&255,o=f&255,c===64?I[y++]=String.fromCharCode(n):u===64?I[y++]=String.fromCharCode(n,r):I[y++]=String.fromCharCode(n,r,o);while(d=Z.error&&typeof console<"u"){var d=Pt+s+` `;c?console.error.apply(console,W([d+` `,c],u,!1)):console.error.apply(console,W([d],u,!1))}}function r(s,c){for(var u=[],f=2;f=Z.warn&&typeof console<"u"){var d=Pt+s;c?console.warn.apply(console,W([d+` `,c],u,!1)):console.warn.apply(console,W([d],u,!1))}}function o(s){for(var c=[],u=1;u=Z.debug&&typeof console<"u"&&console.debug.apply(console,W([Pt+s],c,!1))}function a(s){for(var c=[],u=1;u=Z.info&&typeof console<"u"&&console.info.apply(console,W([Pt+s],c,!1))}return{setLogLevel:t,warn:r,error:n,debug:o,info:a}}function Yo(){var e=[],t=[],n=function(r){var o=ti(r),a=ni(r),s=[],c=on(e,r,a,o);s.push.apply(s,c);var u=ai(t,r,a,o);return s.push.apply(s,u),s};return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return t},addGlobalContexts:function(r){for(var o=[],a=[],s=0,c=r;s0){for(var t=!1,n=0,r=e.slice(2);n1?qo(t):!1}function gr(e){var t=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$"),n=t.exec(e);if(n!==null&&vr(n[1]))return n.slice(1,6)}function rn(e){var t=gr(e);if(t){var n=t[0];return t.length===5&&vr(n)}return!1}function Qo(e){return Array.isArray(e)&&e.every(function(t){return typeof t=="string"})}function cr(e){return Qo(e)?e.every(function(t){return rn(t)}):typeof e=="string"?rn(e):!1}function rt(e){var t=e;return pr(t)&&"schema"in t&&"data"in t?typeof t.schema=="string"&&typeof t.data=="object":!1}function Ko(e){var t=e,n=0;if(e!=null&&typeof e=="object"&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(t,"accept"))if(cr(t.accept))n+=1;else return!1;if(Object.prototype.hasOwnProperty.call(t,"reject"))if(cr(t.reject))n+=1;else return!1;return n>0&&n<=2}return!1}function _t(e){return typeof e=="function"&&e.length<=1}function Ge(e){return _t(e)||rt(e)}function yr(e){return Array.isArray(e)&&e.length===2?Array.isArray(e[1])?_t(e[0])&&e[1].every(Ge):_t(e[0])&&Ge(e[1]):!1}function hr(e){return Array.isArray(e)&&e.length===2&&Ko(e[0])?Array.isArray(e[1])?e[1].every(Ge):Ge(e[1]):!1}function lr(e){return yr(e)||hr(e)}function Zo(e,t){var n=0,r=0,o=e.accept;Array.isArray(o)?e.accept.some(function(s){return Tt(s,t)})&&r++:typeof o=="string"&&Tt(o,t)&&r++;var a=e.reject;return Array.isArray(a)?e.reject.some(function(s){return Tt(s,t)})&&n++:typeof a=="string"&&Tt(a,t)&&n++,r>0&&n===0?!0:(r===0&&n>0,!1)}function Tt(e,t){if(!rn(e))return!1;var n=gr(e),r=Wo(t);if(n&&r){if(!ei(n[0],r[0]))return!1;for(var o=1;o<5;o++)if(!wr(n[o],r[o]))return!1;return!0}return!1}function ei(e,t){var n=t.split("."),r=e.split(".");if(n&&r){if(n.length!==r.length)return!1;for(var o=0;oDate.now())return t.getItem(e);t.removeItem(e),t.removeItem(e+".expires");return}catch{return}}function At(e,t,n){n===void 0&&(n=63072e3);try{var r=window.localStorage,o=Date.now()+n*1e3;return r.setItem("".concat(e,".expires"),o.toString()),r.setItem(e,t),!0}catch{return!1}}function Or(e){try{var t=window.localStorage;return t.removeItem(e),t.removeItem(e+".expires"),!0}catch{return!1}}function kr(e){try{return window.sessionStorage.getItem(e)}catch{return}}function ci(e,t){try{return window.sessionStorage.setItem(e,t),!0}catch{return!1}}var li={sessionId:!0,sourceId:!0,sourcePlatform:!1,userId:!1,reason:!1};function fi(e,t,n){var r,o,a=new Date().getTime(),s=L(L({},li),t),c=n.domainUserId,u=n.userId,f=n.sessionId,d=n.sourceId,y=n.sourcePlatform,h=n.event,I=h.currentTarget,x=typeof s.reason=="function"?s.reason(h):(r=I?.textContent)===null||r===void 0?void 0:r.trim();return e?o=[c,a,s.sessionId&&f,s.userId&&un(u||""),s.sourceId&&un(d||""),s.sourcePlatform&&y,s.reason&&un(x||"")].map(function(m){return m||""}).join(".").replace(/([.]*$)/,""):o=n.domainUserId+"."+a,o}function un(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function Mr(e){return!!(e&&typeof e.valueOf()=="string")}function Dr(e){return Number.isInteger&&Number.isInteger(e)||typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Rr(e){if(!Mr(e)){e=e.text||"";var t=document.getElementsByTagName("title");t&&t[0]!=null&&(e=t[0].text)}return e}function vn(e){var t=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),n=t.exec(e);return n?n[1]:e}function Ur(e){var t=e.length;return e.charAt(--t)==="."&&(e=e.slice(0,t)),e.slice(0,2)==="*."&&(e=e.slice(1)),e}function cn(e){var t=window,n=at("referrer",t.location.href)||at("referer",t.location.href);if(n)return n;if(e)return e;try{if(t.top)return t.top.document.referrer;if(t.parent)return t.parent.document.referrer}catch{}return document.referrer}function Je(e,t,n,r){if(e.addEventListener)return e.addEventListener(t,n,r),!0;if(e.attachEvent)return e.attachEvent("on"+t,n);e["on"+t]=n}function at(e,t){var n=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(t);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null}function di(e,t,n){var r=t+"="+n,o=e.split("#"),a=o[0].split("?"),s=a.shift(),c=a.join("?");if(!c)c=r;else{for(var u=!0,f=c.split("&"),d=0;d=0;c--){var u=s.slice(c).join(".");if(Pe(o,a,0,"/",u,e,t),Pe(o)===a){Et(o,u,e,t);for(var f=mi(r),d=0;d1?document.cookie=e+"="+encodeURIComponent(t??"")+(n?"; Expires="+new Date(+new Date+n*1e3).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(a?"; SameSite="+a:"")+(s?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function vi(){try{return!!window.localStorage}catch{return!0}}function gi(){var e="modernizr";if(!vi())return!1;try{var t=window.localStorage;return t.setItem(e,e),t.removeItem(e),!0}catch{return!1}}var yi="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",hi="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",wi="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",bi="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function Ii(e,t,n,r,o,a,s,c,u,f,d,y,h,I,x,m,F,V,A,R){V===void 0&&(V=!0);var p=!1,_,P=[],j=!1;r=typeof r=="string"?r.toLowerCase():r;var Q=r===!0||r==="beacon"||r==="true",ne=!!(Q&&window.navigator&&typeof window.navigator.sendBeacon=="function"&&!ct(window.navigator.userAgent)),re=ne&&Q,X=r==="get",z=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),oe=!X&&z&&(r==="post"||Q),Ce=oe?o:"/i",ie="snowplowOutQueue_".concat(e,"_").concat(oe?"post2":"get");if(Q&&(h={}),a=n&&gi()&&oe&&a||1,n)try{var Ee=window.localStorage.getItem(ie);P=Ee?JSON.parse(Ee):[]}catch{}Array.isArray(P)||(P=[]),t.outQueues.push(P),z&&a>1&&t.bufferFlushers.push(function(v){p||H(v)});function Xe(v){var S="?",b={co:!0,cx:!0},w=!0;for(var E in v)v.hasOwnProperty(E)&&!b.hasOwnProperty(E)&&(w?w=!1:S+="&",S+=encodeURIComponent(E)+"="+encodeURIComponent(v[E]));for(var T in b)v.hasOwnProperty(T)&&b.hasOwnProperty(T)&&(S+="&"+T+"="+encodeURIComponent(v[T]));return S}function Oe(v){var S=Object.keys(v).map(function(b){return[b,v[b]]}).reduce(function(b,w){var E=w[0],T=w[1];return b[E]=T.toString(),b},{});return{evt:S,bytes:ke(JSON.stringify(S))}}function ke(v){for(var S=0,b=0;b=55296&&w<=57343?(S+=4,b++):w<65535?S+=3:S+=4}return S}var he=function(v){return typeof v[0]=="object"&&"evt"in v[0]};function De(v,S){var b=se(S,!0,!1),w=Le([v.evt]);b.onreadystatechange=function(){b.readyState===4&&(we(b.status)?A?.(w):R?.({status:b.status,message:b.statusText,events:w,willRetry:!1}))},b.send(Ue(w))}function ae(v){for(var S=0;S=s){b(w.bytes,s),De(w,_);return}else P.push(w)}else{var E=Xe(v);if(c>0){var T=je(E),M=ke(T);if(M>=c){if(b(M,c),z){var w=Oe(v),O=S+o;De(w,O)}return}}P.push(E)}var U=!1;n&&(U=At(ie,JSON.stringify(P.slice(0,f)))),!p&&(!U||P.length>=a)&&H()}function H(v){for(v===void 0&&(v=!1);P.length&&typeof P[0]!="string"&&typeof P[0]!="object";)P.shift();if(!P.length){p=!1;return}if(!Mr(_))throw"No collector configured";if(p=!0,F&&!j){var S=se(F,!1,v);j=!0,S.timeout=d,S.onreadystatechange=function(){S.readyState===4&&H()},S.send();return}if(z){var b=function(le){for(var G=0,K=0;G=s));)G+=1;return G},w=void 0,E=void 0,T=void 0;if(he(P)?(w=_,E=se(w,!0,v),T=b(P)):(w=je(P[0]),E=se(w,!1,v),T=1),!he(P))Re(E,T,[w]),E.send();else{var M=P.slice(0,T);if(M.length>0){var O=!1,U=M.map(function(le){return le.evt});if(re){var ue=new Blob([Ue(Le(U))],{type:"application/json"});try{O=window.navigator.sendBeacon(w,ue)}catch{O=!1}}if(O===!0)ae(T),A?.(M),H();else{var be=Le(U);Re(E,T,be),E.send(Ue(be))}}}}else if(!y&&!he(P)){var Ie=new Image(1,1),ce=!0;Ie.onload=function(){ce&&(ce=!1,P.shift(),n&&At(ie,JSON.stringify(P.slice(0,f))),H())},Ie.onerror=function(){ce&&(ce=!1,p=!1)},Ie.src=je(P[0]),setTimeout(function(){ce&&p&&(ce=!1,H())},d)}else p=!1}function we(v){return v>=200&&v<300}function $e(v){return we(v)||!V?!1:x.includes(v)?!0:!m.includes(v)}function se(v,S,b){var w=new XMLHttpRequest;S?(w.open("POST",v,!b),w.setRequestHeader("Content-Type","application/json; charset=UTF-8")):w.open("GET",v,!b),w.withCredentials=I,y&&w.setRequestHeader("SP-Anonymous","*");for(var E in h)Object.prototype.hasOwnProperty.call(h,E)&&w.setRequestHeader(E,h[E]);return w}function Ue(v){return JSON.stringify({schema:bi,data:v})}function Le(v){for(var S=new Date().getTime().toString(),b=0;b1?at(t,r[1]):null}function Lr(e,t,n){var r;return e==="translate.googleusercontent.com"?(n===""&&(n=t),t=(r=xi(t,"u"))!==null&&r!==void 0?r:"",e=vn(t)):(e==="cc.bingj.com"||e==="webcache.googleusercontent.com")&&(t=document.links[0].href,e=vn(t)),[e,t,n]}var Br=0,ge=1,Si=2,st=3,hn=4,Fr=5,ye=6,Te=7,_e=8,Ae=9,te=10;function Pi(){var e=["1","",0,0,0,void 0,"","","",void 0,0];return e}function Ti(e,t,n,r){var o=new Date,a=Math.round(o.getTime()/1e3),s;e?(s=e.split("."),s.unshift("0")):s=["1",t,a,r,a,"",n],(!s[ye]||s[ye]==="undefined")&&(s[ye]=(0,ee.v4)()),(!s[Te]||s[Te]==="undefined")&&(s[Te]=""),(!s[_e]||s[_e]==="undefined")&&(s[_e]=""),(!s[Ae]||s[Ae]==="undefined")&&(s[Ae]=""),(!s[te]||s[te]==="undefined")&&(s[te]=0);var c=function(d,y){var h=parseInt(d);return isNaN(h)?y:h},u=function(d){return d?c(d,void 0):void 0},f=[s[Br],s[ge],c(s[Si],a),c(s[st],r),c(s[hn],a),u(s[Fr]),s[ye],s[Te],s[_e],u(s[Ae]),c(s[te],0)];return f}function _i(e,t){var n;return e[ge]?n=e[ge]:t?(n="",e[ge]=n):(n=(0,ee.v4)(),e[ge]=n),n}function ot(e,t){t===void 0&&(t={memorizedVisitCount:1});var n=t.memorizedVisitCount;gn(e)?(e[Te]=e[ye],e[Fr]=e[hn],e[st]++):e[st]=n;var r=(0,ee.v4)();return e[ye]=r,e[te]=0,e[_e]="",e[Ae]=void 0,r}function ln(e){e[hn]=Math.round(new Date().getTime()/1e3)}function Ai(e,t){if(e[te]===0){var n=t.build();e[_e]=n.eid;var r=n.dtm||n.ttm;e[Ae]=r?parseInt(r):void 0}}function Ci(e){e[te]+=1}function Ei(e,t){var n=W([],e,!0);return t&&(n[ge]="",n[Te]=""),n.shift(),n.join(".")}function jr(e,t,n){var r=e[Ae],o={userId:n?"00000000-0000-0000-0000-000000000000":e[ge],sessionId:e[ye],eventIndex:e[te],sessionIndex:e[st],previousSessionId:n?null:e[Te]||null,storageMechanism:t=="localStorage"?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[_e]||null,firstEventTimestamp:r?new Date(r).toISOString():null};return o}function fn(e){return e[ye]}function Oi(e){return e[ge]}function dn(e){return e[st]}function gn(e){return e[Br]==="0"}function ki(e){return e[te]}function Di(){return"ResizeObserver"in window}var Nr=!1;function Ri(){if(!Nr&&!(!document||!document.body||!document.documentElement)){Nr=!0;var e=new ResizeObserver(function(t){for(var n=0,r=t;n=0&&t>=0?e+ut+t:null}function Li(){var e=document.documentElement,t=document.body,n=t?Math.max(t.offsetHeight,t.scrollHeight):0,r=Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth),o=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,n);return isNaN(r)||isNaN(o)?"":r+ut+o}function ji(){return screen.width+ut+screen.height}function mn(e){return e&&e.split(ut).map(function(t){return Math.floor(Number(t))}).join(ut)}function Ni(e,t,n,r,o,a){a===void 0&&(a={});var s=[],c=function(d,y,h,I,x,m){var F,V,A,R,p,_,P,j,Q,ne,re,X,z,oe,Ce,ie,Ee,Xe,Oe,ke,he,De,ae,Re,Ye,H,we,$e,se;m.eventMethod=(F=m.eventMethod)!==null&&F!==void 0?F:"post";var Ue=function(i){var l;return(l=i.stateStorageStrategy)!==null&&l!==void 0?l:"cookieAndLocalStorage"},Le=function(i){var l,g;return typeof i.anonymousTracking=="boolean"?!1:(g=((l=i.anonymousTracking)===null||l===void 0?void 0:l.withSessionTracking)===!0)!==null&&g!==void 0?g:!1},je=function(i){var l,g;return typeof i.anonymousTracking=="boolean"?!1:(g=((l=i.anonymousTracking)===null||l===void 0?void 0:l.withServerAnonymisation)===!0)!==null&&g!==void 0?g:!1},ct=function(i){return!!i.anonymousTracking},v=(A=(V=m?.contexts)===null||V===void 0?void 0:V.browser)!==null&&A!==void 0?A:!1,S=(p=(R=m?.contexts)===null||R===void 0?void 0:R.webPage)!==null&&p!==void 0?p:!0,b=function(i){return typeof i=="boolean"?{useExtendedCrossDomainLinker:i}:{useExtendedCrossDomainLinker:!0,collectCrossDomainAttributes:i}};s.push(vo()),S&&s.push(po()),v&&s.push(mo()),s.push.apply(s,(_=m.plugins)!==null&&_!==void 0?_:[]);var w=Ir({base64:m.encodeBase64,corePlugins:s,callback:uo}),E=document.characterSet||document.charset,T=Lr(window.location.hostname,window.location.href,cn()),M=Ur(T[0]),O=T[1],U=T[2],ue,be=(P=m.platform)!==null&&P!==void 0?P:"web",Ie=jn(I),ce=(j=m.postPath)!==null&&j!==void 0?j:"/com.snowplowanalytics.snowplow/tp2",le=(Q=m.appId)!==null&&Q!==void 0?Q:"",G,K=document.title,Ne,kt=!1,Qr=(ne=m.resetActivityTrackingOnPageView)!==null&&ne!==void 0?ne:!0,wn,bn,Kr=(re=m.cookieName)!==null&&re!==void 0?re:"_sp_",We=(X=m.cookieDomain)!==null&&X!==void 0?X:void 0,Dt="/",lt=(z=m.cookieSameSite)!==null&&z!==void 0?z:"None",ft=(oe=m.cookieSecure)!==null&&oe!==void 0?oe:!0,In=window.navigator.doNotTrack||window.navigator.msDoNotTrack||window.doNotTrack,xn=typeof m.respectDoNotTrack<"u"?m.respectDoNotTrack&&(In==="yes"||In==="1"):!1,Rt,Sn=(Ce=m.cookieLifetime)!==null&&Ce!==void 0?Ce:63072e3,Pn=(ie=m.sessionCookieTimeout)!==null&&ie!==void 0?ie:1800,Ve=Le(m),Ut=je(m),Y=ct(m),k=Ue(m),dt,Lt=new Date().getTime(),pt,mt,vt,gt,Tn,yt,J,$=1,fe,de=Ii(d,x,k=="localStorage"||k=="cookieAndLocalStorage",m.eventMethod,ce,(Ee=m.bufferSize)!==null&&Ee!==void 0?Ee:1,(Xe=m.maxPostBytes)!==null&&Xe!==void 0?Xe:4e4,(Oe=m.maxGetBytes)!==null&&Oe!==void 0?Oe:0,(ke=m.useStm)!==null&&ke!==void 0?ke:!0,(he=m.maxLocalStorageQueueSize)!==null&&he!==void 0?he:1e3,(De=m.connectionTimeout)!==null&&De!==void 0?De:5e3,Ut,(ae=m.customHeaders)!==null&&ae!==void 0?ae:{},(Re=m.withCredentials)!==null&&Re!==void 0?Re:!0,(Ye=m.retryStatusCodes)!==null&&Ye!==void 0?Ye:[],((H=m.dontRetryStatusCodes)!==null&&H!==void 0?H:[]).concat([400,401,403,410,422]),m.idService,m.retryFailedRequests,m.onRequestSuccess,m.onRequestFailure),jt=!1,Me=(we=m.preservePageViewIdForUrl)!==null&&we!==void 0?we:!1,Nt=void 0,N={enabled:!1,installed:!1,configurations:{}},Zr=(se=($e=m.contexts)===null||$e===void 0?void 0:$e.session)!==null&&se!==void 0?se:!1,ht,wt=m.onSessionUpdateCallback,Vt=!1,_n=b(m.useExtendedCrossDomainLinker||!1),eo=_n.useExtendedCrossDomainLinker,to=_n.collectCrossDomainAttributes;m.hasOwnProperty("discoverRootDomain")&&m.discoverRootDomain&&(We=pi(lt,ft));var bt=pn(),no=bt.browserLanguage,ro=bt.resolution,oo=bt.colorDepth,io=bt.cookiesEnabled;w.setTrackerVersion(h),w.setTrackerNamespace(y),w.setAppId(le),w.setPlatform(be),w.addPayloadPair("cookie",io?"1":"0"),w.addPayloadPair("cs",E),w.addPayloadPair("lang",no),w.addPayloadPair("res",ro),w.addPayloadPair("cd",oo),En(),Ln(),m.crossDomainLinker&&An(m.crossDomainLinker);function xe(){T=Lr(window.location.hostname,window.location.href,cn()),T[1]!==O&&(U=cn(O)),M=Ur(T[0]),O=T[1]}function ao(i){var l="_sp";return function(g){var C=g.currentTarget,D=fi(i,to,{domainUserId:yt,userId:fe||void 0,sessionId:J,sourceId:le,sourcePlatform:be,event:g});C?.href&&(C.href=di(C.href,l,D))}}function An(i){for(var l=ao(eo),g=0;g=0&&(i=i.slice(0,C)),(C=i.lastIndexOf("/"))!==i.length-1&&(i=i.slice(0,C+1)),i+l)}function uo(i){xn||ht||de.enqueueRequest(i.build(),Ie)}function Be(i){return Kr+i+"."+Tn}function Mt(i){var l=Be(i);if(k=="localStorage")return ui(l);if(k=="cookie"||k=="cookieAndLocalStorage")return Pe(l)}function En(){xe(),Tn=(0,Vr.default)((We||M)+(Dt||"/")).slice(0,4)}function qe(){var i=new Date;dt=i.getTime()}function co(){lo(),qe()}function On(){var i=document.documentElement;return i?[i.scrollLeft||window.pageXOffset,i.scrollTop||window.pageYOffset]:[0,0]}function kn(){var i=On(),l=i[0];pt=l,mt=l;var g=i[1];vt=g,gt=g}function lo(){var i=On(),l=i[0];lmt&&(mt=l);var g=i[1];ggt&&(gt=g)}function It(i){return Math.round(i)}function Bt(){var i=Be("ses"),l="*";return Dn(i,l,Pn)}function Ft(i){var l=Be("id"),g=Ei(i,Y);return Dn(l,g,Sn)}function Dn(i,l,g){return Y&&!Ve?!1:k=="localStorage"?At(i,l,g):k=="cookie"||k=="cookieAndLocalStorage"?(Pe(i,l,g,Dt,We,lt,ft),document.cookie.indexOf("".concat(i,"="))!==-1):!1}function Rn(i){var l=Be("id"),g=Be("ses");Or(l),Or(g),Et(l,We,lt,ft),Et(g,We,lt,ft),i?.preserveSession||(J=(0,ee.v4)(),$=1),i?.preserveUser||(yt=Y?"":(0,ee.v4)(),fe=null)}function Un(i){i&&i.stateStorageStrategy&&(m.stateStorageStrategy=i.stateStorageStrategy,k=Ue(m)),Y=ct(m),Ve=Le(m),Ut=je(m),de.setUseLocalStorage(k=="localStorage"||k=="cookieAndLocalStorage"),de.setAnonymousTracking(Ut)}function Ln(){if(!(Y&&!Ve)){var i=k!="none"&&!!Mt("ses"),l=Qe();yt=_i(l,Y),i?J=fn(l):J=ot(l),$=dn(l),k!="none"&&(Bt(),ln(l),Ft(l))}}function Qe(){if(k=="none")return Pi();var i=Mt("id")||void 0;return Ti(i,yt,J,$)}function jn(i){return i.indexOf("http")===0?i:(document.location.protocol==="https:"?"https":"http")+"://"+i}function Nn(){(!jt||x.pageViewId==null)&&(x.pageViewId=(0,ee.v4)(),x.pageViewUrl=G||O)}function Ke(){return fo()&&(x.pageViewId=(0,ee.v4)(),x.pageViewUrl=G||O),x.pageViewId}function fo(){if(x.pageViewId==null)return!0;if(jt||!Me)return!1;if(x.pageViewUrl===void 0)return!0;var i=G||O;if(Me===!0||Me=="full"||!("URL"in window))return x.pageViewUrl!=i;var l=new URL(i),g=new URL(x.pageViewUrl);return Me=="pathname"?l.pathname!=g.pathname:Me=="pathnameAndSearch"?l.pathname!=g.pathname||l.search!=g.search:!1}function Vn(){if(k==="none"||Y||!S)return null;var i="_sp_tab_id",l=kr(i);return l||(ci(i,(0,ee.v4)()),l=kr(i)),l||null}function po(){return{contexts:function(){return[{schema:yi,data:{id:Ke()}}]}}}function mo(){return{contexts:function(){return[{schema:hi,data:L(L({},pn()),{tabId:Vn()})}]}}}function vo(){var i=function(g){return Y?null:g},l=function(g){return Ve?g:i(g)};return{beforeTrack:function(g){var C=Mt("ses"),D=Qe(),pe=ki(D)===0;if(Rt?ht=!!Pe(Rt):ht=!1,xn||ht){Rn();return}gn(D)?(!C&&k!="none"?J=ot(D):J=fn(D),$=dn(D)):new Date().getTime()-Lt>Pn*1e3&&($++,J=ot(D,{memorizedVisitCount:$})),ln(D),Ai(D,g),Ci(D);var B=pn(),Fe=B.viewport,Ze=B.documentSize;g.add("vp",Fe),g.add("ds",Ze),g.add("vid",l($)),g.add("sid",l(J)),g.add("duid",i(Oi(D))),g.add("uid",i(fe)),xe(),g.add("refr",Se(ue||U)),g.add("url",Se(G||O));var et=jr(D,k,Y);if(Zr&&(!Y||Ve)&&go(g,et),k!="none"){Ft(D);var Ht=Bt();(!C||pe)&&Ht&&wt&&!Vt&&(wt(et),Vt=!1)}Lt=new Date().getTime()}}}function go(i,l){var g={schema:wi,data:l};i.addContextEntity(g)}function yo(){var i=Qe();if(gn(i)?(k!="none"?J=ot(i):J=fn(i),$=dn(i)):($++,J=ot(i,{memorizedVisitCount:$})),ln(i),k!="none"){var l=jr(i,k,Y);Ft(i);var g=Bt();g&&wt&&(Vt=!0,wt(l))}Lt=new Date().getTime()}function zt(i,l){return(i||[]).concat(l?l():[])}function ho(i){var l=i.title,g=i.context,C=i.timestamp,D=i.contextCallback;xe(),Nt&&Nt==Ke()&&Nn(),Nt=Ke(),K=document.title,l?(Ne=l,kt=!0):kt&&(Ne=null);var pe=Rr(Ne||K);w.track(xr({pageUrl:Se(G||O),pageTitle:pe,referrer:Se(ue||U)}),zt(g,D),C);var B=new Date,Fe=!1;if(N.enabled&&!N.installed){N.installed=!0,Fe=!0;var Ze={update:function(){if(typeof window<"u"&&typeof window.addEventListener=="function"){var ze=!1,xt=Object.defineProperty({},"passive",{get:function(){ze=!0},set:function(){}}),zn=function(){};window.addEventListener("testPassiveEventSupport",zn,xt),window.removeEventListener("testPassiveEventSupport",zn,xt),Ze.hasSupport=ze}}};Ze.update();var et="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(Ze,"hasSupport")?Je(document,et,qe,{passive:!0}):Je(document,et,qe),kn();var Ht=["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"],xo=["resize","focus","blur"],Gt=function(So,ze){return ze===void 0&&(ze=qe),function(xt){return Je(document,xt,ze)}};Ht.forEach(Gt(document)),xo.forEach(Gt(window)),Gt(window,co)("scroll")}if(N.enabled&&(Qr||Fe)){dt=B.getTime();var Fn=void 0;for(Fn in N.configurations){var Jt=N.configurations[Fn];Jt&&(window.clearInterval(Jt.activityInterval),wo(Jt,g,D))}}}function wo(i,l,g){var C=function(B,Fe){xe(),B({context:Fe,pageViewId:Ke(),minXOffset:pt,minYOffset:vt,maxXOffset:mt,maxYOffset:gt}),kn()},D=function(){var B=new Date;dt+i.configMinimumVisitLength>B.getTime()&&C(i.callback,zt(l,g)),i.activityInterval=window.setInterval(pe,i.configHeartBeatTimer)},pe=function(){var B=new Date;dt+i.configHeartBeatTimer>B.getTime()&&C(i.callback,zt(l,g))};i.configMinimumVisitLength===0?i.activityInterval=window.setInterval(pe,i.configHeartBeatTimer):i.activityInterval=window.setTimeout(D,i.configMinimumVisitLength)}function Mn(i){var l=i.minimumVisitLength,g=i.heartbeatDelay,C=i.callback;if(Dr(l)&&Dr(g))return{configMinimumVisitLength:l*1e3,configHeartBeatTimer:g*1e3,callback:C};q.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function bo(i){var l=i.context,g=i.minXOffset,C=i.minYOffset,D=i.maxXOffset,pe=i.maxYOffset,B=document.title;B!==K&&(K=B,Ne=void 0),w.track(Sr({pageUrl:Se(G||O),pageTitle:Rr(Ne||K),referrer:Se(ue||U),minXOffset:It(g),maxXOffset:It(D),minYOffset:It(C),maxYOffset:It(pe)}),l)}function Bn(i){var l=N.configurations[i];l?.configMinimumVisitLength===0?window.clearTimeout(l?.activityInterval):window.clearInterval(l?.activityInterval),N.configurations[i]=void 0}var Io={getDomainSessionIndex:function(){return $},getPageViewId:Ke,getTabId:Vn,newSession:yo,getCookieName:function(i){return Be(i)},getUserId:function(){return fe},getDomainUserId:function(){return Qe()[1]},getDomainUserInfo:function(){return Qe()},setReferrerUrl:function(i){ue=i},setCustomUrl:function(i){xe(),G=so(O,i)},setDocumentTitle:function(i){K=document.title,Ne=i,kt=!1},discardHashTag:function(i){wn=i},discardBrace:function(i){bn=i},setCookiePath:function(i){Dt=i,En()},setVisitorCookieTimeout:function(i){Sn=i},crossDomainLinker:function(i){An(i)},enableActivityTracking:function(i){N.configurations.pagePing||(N.enabled=!0,N.configurations.pagePing=Mn(L(L({},i),{callback:bo})))},enableActivityTrackingCallback:function(i){N.configurations.callback||(N.enabled=!0,N.configurations.callback=Mn(i))},disableActivityTracking:function(){Bn("pagePing")},disableActivityTrackingCallback:function(){Bn("callback")},updatePageActivity:function(){qe()},setOptOutCookie:function(i){Rt=i},setUserId:function(i){fe=i},setUserIdFromLocation:function(i){xe(),fe=at(i,O)},setUserIdFromReferrer:function(i){xe(),fe=at(i,U)},setUserIdFromCookie:function(i){fe=Pe(i)},setCollectorUrl:function(i){Ie=jn(i),de.setCollectorUrl(Ie)},setBufferSize:function(i){de.setBufferSize(i)},flushBuffer:function(i){i===void 0&&(i={}),de.executeQueue(),i.newBufferSize&&de.setBufferSize(i.newBufferSize)},trackPageView:function(i){i===void 0&&(i={}),ho(i)},preservePageViewId:function(){jt=!0},preservePageViewIdForUrl:function(i){Me=i},disableAnonymousTracking:function(i){m.anonymousTracking=!1,Un(i),Ln(),de.executeQueue()},enableAnonymousTracking:function(i){var l;m.anonymousTracking=(l=i&&i?.options)!==null&&l!==void 0?l:!0,Un(i),Ve||Nn()},clearUserData:Rn};return L(L({},Io),{id:d,namespace:y,core:w,sharedState:x})},u=c(e,t,n,r,o,a),f=L(L({},u),{addPlugin:function(d){var y,h;f.core.addPlugin(d),(h=(y=d.plugin).activateBrowserPlugin)===null||h===void 0||h.call(y,f)}});return s.forEach(function(d){var y;(y=d.activateBrowserPlugin)===null||y===void 0||y.call(d,f)}),f}var it={};function Ot(e,t){try{Vi(e??Mi()).forEach(t)}catch(n){q.error("Function failed",n)}}function zr(e,t,n,r,o,a){return it.hasOwnProperty(e)?null:(it[e]=Ni(e,t,n,r,o,a),it[e])}function Vi(e){return Bi(e,it)}function Mi(){return Object.keys(it)}function Bi(e,t){for(var n=[],r=0,o=e;r{let{appId:t,collectorUrl:n}=e,r=tt({tag:"snowplow"});r.info("init");let o=$r("tagsjs.sp",n,{appId:t,discoverRootDomain:!0,cookieSameSite:"Lax"});Jr({minimumVisitLength:5,heartbeatDelay:5},[o.id]);let a=()=>{let u=St(["de.ippen-digital.user.loggedIn","de.ippen-digital.user.userType","de.ippen-digital.user.persistentId","de.ippen-digital.user.transientId","de.ippen-digital.story.onlineId","de.ippen-digital.story.isPaywallContent"]),f={"^/$":"Homepage"},d=x=>{let m=Object.keys(f).find(F=>new RegExp(F).test(x));return m&&f[m]?f[m]:"Rubrik"},y=u["de.ippen-digital.story.onlineId"]?"Artikeldetail":d(window.location.pathname),h=u["de.ippen-digital.story.isPaywallContent"]?"Premium":"Free",I=u["de.ippen-digital.story.isPaywallContent"]&&u["de.ippen-digital.user.userType"]!=="Premium";return u["de.ippen-digital.user.persistentId"]&&(r.info("Setting business user id",u["de.ippen-digital.user.persistentId"]),Xr(`${u["de.ippen-digital.user.persistentId"]}`)),[{schema:"iglu:de.ovb/user_context/jsonschema/1-0-0",data:{userType:u["de.ippen-digital.user.userType"]||"",cuaUuid:u["de.ippen-digital.user.transientId"]}},{schema:"iglu:de.ovb/article_context/jsonschema/1-0-0",data:{articleId:u["de.ippen-digital.story.onlineId"]?`${u["de.ippen-digital.story.onlineId"]}`:null,articleType:h,contentType:y,contentIsPaywall:!!I,authors:window?.k5aMeta?.author||[]}}]},s=!1,c=()=>{if(s)return;let u=a();Yr({context:u},[o.id]),s=!0,r.info("tracked page view",u)};window.addEventListener("tagsjs.dataLayerPush",u=>{r.info("dataLayerPush",u),He(Wr,r)&&c()}),He(Wr,r)&&c()};Wn(),qr({appId:"chiemgau24.de-test",collectorUrl:"s.chiemgau24.de"}),Kn({fileName:"flyin-ad_202408_ovb24_jubilaeum.html",actionUrl:"https://plus.chiemgau24.de/jubilaeum/?utm_campaign=202408_ch24_jubilaeum&utm_source=ch24&utm_medium=flyin-ad&utm_term=plus_abo_2.50"});})();