PageSourceSearch

https://www.allgemeine-zeitung.de/assets/Game-DgBNX7LV.js

js allgemeine-zeitung.de collected 2026-10-01 10:35:23 UTC 17,510 bytes, 1 lines download raw bytes

1import{d2 as _e,G as Oe,j as Ae,N as Ve,p as Be,x as se,P as qe,O as Ue,_ as Ge,r as De,d3 as Je,o as Qe,c as Xe,a as Ye,w as Ke,aV as Ze,$ as $e,h as et}from"./index-BpyDjooP.js";var Re={exports:{}};(function(w){(function(f){if(typeof window>"u")return;var v=0,E=!1,O=!1,A="message",j=A.length,V="[iFrameSizer]",D=V.length,M=null,W=window.requestAnimationFrame,ke={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},t={},J=null,q={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){R("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}};function ue(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function B(e,n,c){e.addEventListener(n,c,!1)}function xe(e,n,c){e.removeEventListener(n,c,!1)}function Ie(){var e=["moz","webkit","o","ms"],n;for(n=0;n<e.length&&!W;n+=1)W=window[e[n]+"RequestAnimationFrame"];W?W=W.bind(window):d("setup","RequestAnimationFrame not supported")}function Pe(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}function Te(e){return V+"["+Pe(e)+"]"}function ce(e){return t[e]?t[e].log:E}function d(e,n){Q("log",e,n,ce(e))}function fe(e,n){Q("info",e,n,ce(e))}function R(e,n){Q("warn",e,n,!0)}function Q(e,n,c,o){o===!0&&typeof window.console=="object"&&console[e](Te(n),c)}function Ne(e){function n(){function i(){pe(m),ge(s),_("onResized",m)}l("Height"),l("Width"),we(i,m,"init")}function c(){var i=x.slice(D).split(":"),u=i[1]?parseInt(i[1],10):0,h=t[i[0]]&&t[i[0]].iframe,p=getComputedStyle(h);return{iframe:h,id:i[0],height:u+o(p)+g(p),width:i[2],type:i[3]}}function o(i){if(i.boxSizing!=="border-box")return 0;var u=i.paddingTop?parseInt(i.paddingTop,10):0,h=i.paddingBottom?parseInt(i.paddingBottom,10):0;return u+h}function g(i){if(i.boxSizing!=="border-box")return 0;var u=i.borderTopWidth?parseInt(i.borderTopWidth,10):0,h=i.borderBottomWidth?parseInt(i.borderBottomWidth,10):0;return u+h}function l(i){var u=Number(t[s]["max"+i]),h=Number(t[s]["min"+i]),p=i.toLowerCase(),y=Number(m[p]);d(s,"Checking "+p+" is in range "+h+"-"+u),y<h&&(y=h,d(s,"Set "+p+" to min value")),y>u&&(y=u,d(s,"Set "+p+" to max value")),m[p]=""+y}function P(){function i(){function p(){var z=0,C=!1;for(d(s,"Checking connection is from allowed list of origins: "+h);z<h.length;z++)if(h[z]===u){C=!0;break}return C}function y(){var z=t[s]&&t[s].remoteHost;return d(s,"Checking connection is from: "+z),u===z}return h.constructor===Array?p():y()}var u=e.origin,h=t[s]&&t[s].checkOrigin;if(h&&""+u!="null"&&!i())throw new Error("Unexpected message received from: "+u+" for "+m.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function H(){return V===(""+x).slice(0,D)&&x.slice(D).split(":")[0]in t}function T(){var i=m.type in{true:1,false:1,undefined:1};return i&&d(s,"Ignoring init message from meta parent page"),i}function N(i){return x.slice(x.indexOf(":")+j+i)}function S(i){d(s,"onMessage passed: {iframe: "+m.iframe.id+", message: "+i+"}"),_("onMessage",{iframe:m.iframe,message:JSON.parse(i)}),d(s,"--")}function $(){var i=document.body.getBoundingClientRect(),u=m.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:u.height,iframeWidth:u.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(u.top-i.top,10),offsetLeft:parseInt(u.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function U(i,u){function h(){I("Send Page Info","pageInfo:"+$(),i,u)}Le(h,32,u)}function ee(){function i(y,z){function C(){t[p]?U(t[p].iframe,p):u()}["scroll","resize"].forEach(function(ze){d(p,y+ze+" listener for sendPageInfo"),z(window,ze,C)})}function u(){i("Remove ",xe)}function h(){i("Add ",B)}var p=s;h(),t[p]&&(t[p].stopPageInfo=u)}function te(){t[s]&&t[s].stopPageInfo&&(t[s].stopPageInfo(),delete t[s].stopPageInfo)}function ne(){var i=!0;return m.iframe===null&&(R(s,"IFrame ("+m.id+") not found"),i=!1),i}function a(i){var u=i.getBoundingClientRect();return de(s),{x:Math.floor(Number(u.left)+Number(M.x)),y:Math.floor(Number(u.top)+Number(M.y))}}function r(i){function u(){M=z,b(),d(s,"--")}function h(){return{x:Number(m.width)+y.x,y:Number(m.height)+y.y}}function p(){window.parentIFrame?window.parentIFrame["scrollTo"+(i?"Offset":"")](z.x,z.y):R(s,"Unable to scroll to requested position, window.parentIFrame not found")}var y=i?a(m.iframe):{x:0,y:0},z=h();d(s,"Reposition requested from iFrame (offset x:"+y.x+" y:"+y.y+")"),window.top===window.self?u():p()}function b(){_("onScroll",M)===!1?me():ge(s)}function F(i){function u(){var C=a(z);d(s,"Moving to in page link (#"+p+") at x: "+C.x+" y: "+C.y),M={x:C.x,y:C.y},b(),d(s,"--")}function h(){window.parentIFrame?window.parentIFrame.moveToAnchor(p):d(s,"In page link #"+p+" not found and window.parentIFrame not found")}var p=i.split("#")[1]||"",y=decodeURIComponent(p),z=document.getElementById(y)||document.getElementsByName(y)[0];z?u():window.top===window.self?d(s,"In page link #"+p+" not found"):h()}function k(i){var u={};if(Number(m.width)===0&&Number(m.height)===0){var h=N(9).split(":");u={x:h[1],y:h[0]}}else u={x:m.width,y:m.height};_(i,{iframe:m.iframe,screenX:Number(u.x),screenY:Number(u.y),type:m.type})}function _(i,u){return X(s,i,u)}function ie(){switch(t[s]&&t[s].firstRun&&ae(),m.type){case"close"
1:{Y(m.iframe);break}case"message":{S(N(6));break}case"mouseenter":{k("onMouseEnter");break}case"mouseleave":{k("onMouseLeave");break}case"autoResize":{t[s].autoResize=JSON.parse(N(9));break}case"scrollTo":{r(!1);break}case"scrollToOffset":{r(!0);break}case"pageInfo":{U(t[s]&&t[s].iframe,s),ee();break}case"pageInfoStop":{te();break}case"inPageLink":{F(N(9));break}case"reset":{he(m);break}case"init":{n(),_("onInit",m.iframe);break}default:Number(m.width)===0&&Number(m.height)===0?R("Unsupported message received ("+m.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}}function oe(i){var u=!0;return t[i]||(u=!1,R(m.type+" No settings for "+i+". Message was: "+x)),u}function re(){for(var i in t)I("iFrame requested init",be(i),t[i].iframe,i)}function ae(){t[s]&&(t[s].firstRun=!1)}var x=e.data,m={},s=null;x==="[iFrameResizerChild]Ready"?re():H()?(m=c(),s=m.id,t[s]&&(t[s].loaded=!0),!T()&&oe(s)&&(d(s,"Received: "+x),ne()&&P()&&ie())):fe(s,"Ignored: "+x)}function X(e,n,c){var o=null,g=null;if(t[e])if(o=t[e][n],typeof o=="function")g=o(c);else throw new TypeError(n+" on iFrame["+e+"] is not a function");return g}function le(e){var n=e.id;delete t[n]}function Y(e){var n=e.id;if(X(n,"onClose",n)===!1){d(n,"Close iframe cancelled by onClose event");return}d(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(c){R(c)}X(n,"onClosed",n),d(n,"--"),le(e)}function de(e){M===null&&(M={x:window.pageXOffset===f?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===f?document.documentElement.scrollTop:window.pageYOffset},d(e,"Get page position: "+M.x+","+M.y))}function ge(e){M!==null&&(window.scrollTo(M.x,M.y),d(e,"Set page position: "+M.x+","+M.y),me())}function me(){M=null}function he(e){function n(){pe(e),I("reset","reset",e.iframe,e.id)}d(e.id,"Size reset requested by "+(e.type==="init"?"host page":"iFrame")),de(e.id),we(n,e,"reset")}function pe(e){function n(l){if(!e.id){d("undefined","messageData id not set");return}e.iframe.style[l]=e[l]+"px",d(e.id,"IFrame ("+g+") "+l+" set to "+e[l]+"px")}function c(l){!O&&e[l]==="0"&&(O=!0,d(g,"Hidden iFrame detected, creating visibility listener"),Se())}function o(l){n(l),c(l)}var g=e.iframe.id;t[g]&&(t[g].sizeHeight&&o("height"),t[g].sizeWidth&&o("width"))}
1function we(e,n,c){c!==n.type&&W&&!window.jasmine?(d(n.id,"Requesting animation frame"),W(e)):e()}function I(e,n,c,o,g){function l(){var S=t[o]&&t[o].targetOrigin;d(o,"["+e+"] Sending msg to iframe["+o+"] ("+n+") targetOrigin: "+S),c.contentWindow.postMessage(V+n,S)}function P(){R(o,"["+e+"] IFrame("+o+") not found")}function H(){c&&"contentWindow"in c&&c.contentWindow!==null?l():P()}function T(){function S(){t[o]&&!t[o].loaded&&!N&&(N=!0,R(o,"IFrame has not responded within "+t[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}g&&t[o]&&t[o].warningTimeout&&(t[o].msgTimeout=setTimeout(S,t[o].warningTimeout))}var N=!1;o=o||c.id,t[o]&&(H(),T())}function be(e){return e+":"+t[e].bodyMarginV1+":"+t[e].sizeWidth+":"+t[e].log+":"+t[e].interval+":"+t[e].enablePublicMethods+":"+t[e].autoResize+":"+t[e].bodyMargin+":"+t[e].heightCalculationMethod+":"+t[e].bodyBackground+":"+t[e].bodyPadding+":"+t[e].tolerance+":"+t[e].inPageLinks+":"+t[e].resizeFrom+":"+t[e].widthCalculationMethod+":"+t[e].mouseEvents}function Ce(e){return typeof e=="number"}function ve(e,n){function c(){function r(F){var k=t[a][F];k!==1/0&&k!==0&&(e.style[F]=Ce(k)?k+"px":k,d(a,"Set "+F+" = "+e.style[F]))}function b(F){if(t[a]["min"+F]>t[a]["max"+F])throw new Error("Value for min"+F+" can not be greater than max"+F)}b("Height"),b("Width"),r("maxHeight"),r("minHeight"),r("maxWidth"),r("minWidth")}function o(){var r=n&&n.id||q.id+v++;return document.getElementById(r)!==null&&(r+=v++),r}function g(r){return r===""&&(e.id=r=o(),E=(n||{}).log,d(r,"Added missing iframe ID: "+r+" ("+e.src+")")),r}function l(){switch(d(a,"IFrame scrolling "+(t[a]&&t[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=(t[a]&&t[a].scrolling)===!1?"hidden":"auto",t[a]&&t[a].scrolling){case"omit":break;case!0:{e.scrolling="yes";break}case!1:{e.scrolling="no";break}default:e.scrolling=t[a]?t[a].scrolling:"no"}}function P(){(typeof(t[a]&&t[a].bodyMargin)=="number"||(t[a]&&t[a].bodyMargin)==="0")&&(t[a].bodyMarginV1=t[a].bodyMargin,t[a].bodyMargin=""+t[a].bodyMargin+"px")}function H(){var r=t[a]&&t[a].firstRun,b=t[a]&&t[a].heightCalculationMethod in ke;!r&&b&&he({iframe:e,height:0,width:0,type:"init"})}function T(){t[a]&&(t[a].iframe.iFrameResizer={close:Y.bind(null,t[a].iframe),removeListeners:le.bind(null,t[a].iframe),resize:I.bind(null,"Window resize","resize",t[a].iframe),moveToAnchor:function(r){I("Move to anchor","moveToAnchor:"+r,t[a].iframe,a)},sendMessage:function(r){r=JSON.stringify(r),I("Send Message","message:"+r,t[a].iframe,a)}})}function N(r){function b(){I("iFrame.onload",r,e,f,!0),H()}function F(_){if(e.parentNode){var ie=new _(function(oe){oe.forEach(function(re){var ae=Array.prototype.slice.call(re.removedNodes);ae.forEach(function(x){x===e&&Y(e)})})});ie.observe(e.parentNode,{childList:!0})}}var k=ue();k&&F(k),B(e,"load",b),I("init",r,e,f,!0)}function S(r){if(typeof r!="object")throw new TypeError("Options is not an object")}function $(r){for(var b in q)Object.prototype.hasOwnProperty.call(q,b)&&(t[a][b]=Object.prototype.hasOwnProperty.call(r,b)?r[b]:q[b])}function U(r){return r===""||r.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":r}function ee(r){var b=r.split("Callback");if(b.length===2){var F="on"+b[0].charAt(0).toUpperCase()+b[0].slice(1);this[F]=this[r],delete this[r],R(a,"Deprecated: '"+r+"' has been renamed '"+F+"'. The old method will be removed in the next major version.")}}function te(r){r=r||{},t[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},S(r),Object.keys(r).forEach(ee,r),$(r),t[a]&&(t[a].targetOrigin=t[a].checkOrigin===!0?U(t[a].remoteHost):"*")}function ne(){return a in t&&"iFrameResizer"in e}var a=g(e.id);ne()?R(a,"Ignored iFrame, already setup."):(te(n),l(),c(),P(),N(be(a)),T())}function K(e,n){J===null&&(J=setTimeout(function(){J=null,e()},n))}var Z={};function Le(e,n,c){Z[c]||(Z[c]=setTimeout(function(){Z[c]=null,e()},n))}function Se(){function e(){function g(l){function P(T){return(t[l]&&t[l].iframe.style[T])==="0px"}function H(T){return T.offsetParent!==null}t[l]&&H(t[l].iframe)&&(P("height")||P("width"))&&I("Visibility change","resize",t[l].iframe,l)}Object.keys(t).forEach(function(l){g(l)})}function n(g){d("window","Mutation observed: "+g[0].target+" "+g[0].type),K(e,16)}function c(){var g=document.querySelector("body"),l={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},P=new o(n);P.observe(g,l)}var o=ue();o&&c()}function je(e){function n(){Fe("Window "+e,"resize")}d("window","Trigger event: "+e),K(n,16)}function ye(){function e(){Fe("Tab Visible","resize")}document.visibilityState!=="hidden"&&(d("document","Trigger event: Visibility change"),K(e,16))}function Fe(e,n){function c(o){return t[o]&&t[o].resizeFrom==="parent"&&t[o].autoResize&&!t[o].firstRun}Object.keys(t).forEach(function(o){c(o)&&I(e,n,t[o].iframe,o)})}function We(){B(window,"message",Ne),B(window,"resize",function(){je("resize")}),B(document,"visibilitychange",ye),B(document,"-webkit-visibilitychange",ye)}function Me(){function e(o,g){function l(){if(g.tagName){if(g.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected <IFRAME> tag, found <"+g.tagName+">")}else throw new TypeError("Object is not a valid DOM element")}g&&(l(),ve(g,o),c.push(g))}function n(o){o&&o.enablePublicMethods&&R("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var c;return Ie(),We(),function(g,l){switch(c=[],n(g),typeof l){case"undefined":case"string":{Array.prototype.forEach.call(document.querySelectorAll(l||"iframe"),e.bind(f,g));break}case"object":{e(g,l);break}default:throw new TypeError("Unexpected data type ("+typeof l+")")}return c}}function He(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(c){function o(g,l){ve(l,c)}return this.filter("iframe").each(o).end()}):fe("","Unable to bind to jQuery, it is not fully loaded.")}window.jQuery!==f&&He(window.jQuery),w.exports=Me(),window.iFrameResize=window.iFrameResize||Me()})()})(Re);var tt=Re.exports;const nt=_e(tt),it={mounted(w,f){if(w.tagName==="IFRAME"){const{value:v}=f;w.addEventListener("load",()=>nt(v,w))}},unmounted(w){var f;w.tagName==="IFRAME"&&((f=w==null?void 0:w.iFrameResizer)==null||f.removeListeners())}};var ot=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,G=(w,f,v,E)=>{for(var O=E>1?void 0:E?rt(f,v):f,A=w.length-1,j;A>=0;A--)(j=w[A])&&(O=(E?j(f,v,O):j(O))||O);return E&&O&&ot(f,v,O),O};const at=Oe("userServices/userServices"),st=Oe("edition"),ut=["https://puzzleplayz.com","https://raetsel.raetselzentrale.de"];let L=class extends Ae(Ve){constructor(){super(...arguments),this.defaultIFrameHeight="750px"}get gameConfigurationForCurrentEdition(){return this.childElements.filter(f=>f.element.properties.edition===this.currentEditionShortcut)}isValidGameProvider(f){return ut.some(v=>f.startsWith(v))}get iframeUrl(){if(this.gameConfigurationForCurrentEdition.length>0){const{unlimitedUrl:f,limitedUrl:v}=this.gameConfigurationForCurrentEdition[0].element.properties;if(this.isLoggedIn){if(this.isValidGameProvider(f))return f}else if(this.isValidGameProvider(v))return v}}onMessage(f){var v;if(f.origin==="https://raetsel.raetselzentrale.de")try{if(f.data.psaction==="storage.setItem")window.localStorage.setItem(f.data.key,f.data.data);else if(f.data.psaction==="storage.getItem"){const E=window.localStorage.getItem(f.data.key);(v=f.source)==null||v.postMessage({psaction:"storage.getItemResponse",key:f.data.key,data:E},{targetOrigin:f.origin})}else f.data.psaction==="storage.removeItem"&&window.localStorage.removeItem(f.data.key)}catch(E){Be.error(E)}}onResized(){se()&&this.jumpToAnchorLink("#gameIframe")}created(){se()&&window.addEventListener("message",this.onMessage)}unmounted(){se()&&window.removeEventListener("message",this.onMessage)}};G([at.Getter("isLoggedIn")],L.prototype,"isLoggedIn",2);G([st.Getter("getShortcut")],L.prototype,"currentEditionShortcut",2);G([qe({required:!0})],L.prototype,"childElements",2);L=G([Ue({name:"Game",directives:{iframeResize:it}})],L);const ct={key:0,id:"gameIframe"},ft=["src","height"];function lt(w,f,v,E,O,A){const j=De("client-only"),V=Je("iframe-resize");return w.iframeUrl?(Qe(),Xe("div",ct,[Ye(j,null,{default:Ke(()=>[Ze($e("iframe",{src:w.iframeUrl,width:"100%",height:w.defaultIFrameHeight,frameborder:"0"},null,8,ft),[[V,{heightCalculationMethod:"taggedElement",onResized:w.onResized}]])]),_:1})])):et("",!0)}const mt=Ge(L,[["render",lt]]);var Ee;try{"__c"in L&&((Ee=L.__c).componentFileName??(Ee.componentFileName=Object.create(null)),Object.defineProperty(L.__c,"componentFileName",{value:"app/components/storyline/game/Game.vue"}))}catch(w){console.error("injectFileNamePlugin",w)}export{mt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.