OwlCyberSecurity - MANAGER
Edit File: donationFormEmbed.js
(()=>{var e={44126:(e,n,t)=>{e.exports=t(29036)},80481:e=>{!function(n){if("undefined"!=typeof window){var t=!0,i="",o=0,r="",a=null,s="",u=!1,c={resize:1,click:1},d=128,l=!0,f=1,m="bodyOffset",g=m,h=!0,p="",w={},y=32,b=null,v=!1,T=!1,M="[iFrameSizer]",E="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},O="child",x=window.parent,S="*",z=0,k=!1,N=null,R=16,F=1,C="scroll",A=C,W=window,L=function(){oe("onMessage function not defined")},P=function(){},H=function(){},j={height:function(){return oe("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return oe("Custom width calculation function not defined"),document.body.scrollWidth}},B={},q=!1;try{var D=Object.create({},{passive:{get:function(){q=!0}}});window.addEventListener("test",_,D),window.removeEventListener("test",_,D)}catch(e){}var U,V,J,X,Y,Q,K,G={bodyOffset:function(){return document.body.offsetHeight+ge("marginTop")+ge("marginBottom")},offset:function(){return G.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return j.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,pe(G))},min:function(){return Math.min.apply(null,pe(G))},grow:function(){return G.max()},lowestElement:function(){return Math.max(G.bodyOffset()||G.documentElementOffset(),he("bottom",ye()))},taggedElement:function(){return we("bottom","data-iframe-height")}},Z={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return j.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Z.bodyScroll(),Z.documentElementScroll())},max:function(){return Math.max.apply(null,pe(Z))},min:function(){return Math.min.apply(null,pe(Z))},rightMostElement:function(){return he("right",ye())},taggedElement:function(){return we("right","data-iframe-width")}},$=(U=be,Y=null,Q=0,K=function(){Q=Date.now(),Y=null,X=U.apply(V,J),Y||(V=J=null)},function(){var e=Date.now();Q||(Q=e);var n=R-(e-Q);return V=this,J=arguments,n<=0||n>R?(Y&&(clearTimeout(Y),Y=null),Q=e,X=U.apply(V,J),Y||(V=J=null)):Y||(Y=setTimeout(K,n)),X});ee(window,"message",(function(c){var f,m={init:function(){var e,f,m;p=c.data,x=c.source,function(){function e(e){return"true"===e}var a=p.substr(13).split(":");E=a[0],o=n!==a[1]?Number(a[1]):o,u=n!==a[2]?e(a[2]):u,v=n!==a[3]?e(a[3]):v,y=n!==a[4]?Number(a[4]):y,t=n!==a[6]?e(a[6]):t,r=a[7],g=n!==a[8]?a[8]:g,i=a[9],s=a[10],z=n!==a[11]?Number(a[11]):z,w.enable=n!==a[12]&&e(a[12]),O=n!==a[13]?a[13]:O,A=n!==a[14]?a[14]:A,T=n!==a[15]?Boolean(a[15]):T}(),ie("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(re,e),L="onMessage"in e?e.onMessage:L,P="onReady"in e?e.onReady:P,S="targetOrigin"in e?e.targetOrigin:S,g="heightCalculationMethod"in e?e.heightCalculationMethod:g,A="widthCalculationMethod"in e?e.widthCalculationMethod:A}function n(e,n){return"function"==typeof e&&(ie("Setup custom "+n+"CalcMethod"),j[n]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),g=n(g,"height"),A=n(A,"width")),ie("TargetOrigin for parent set to: "+S)}(),n===r&&(r=o+"px"),ae("margin",(f="margin",-1!==(m=r).indexOf("-")&&(oe("Negative CSS value ignored for "+f),m=""),m)),ae("background",i),ae("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),de(),le(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),W.parentIFrame={autoResize:function(e){return!0===e&&!1===t?(t=!0,fe()):!1===e&&!0===t&&(t=!1,ue("remove"),null!==a&&a.disconnect(),clearInterval(b)),Ie(0,0,"autoResize",JSON.stringify(t)),t},close:function(){Ie(0,0,"close")},getId:function(){return E},getPageInfo:function(e){"function"==typeof e?(H=e,Ie(0,0,"pageInfo")):(H=function(){},Ie(0,0,"pageInfoStop"))},moveToAnchor:function(e){w.findTarget(e)},reset:function(){Ee("parentIFrame.reset")},scrollTo:function(e,n){Ie(n,e,"scrollTo")},scrollToOffset:function(e,n){Ie(n,e,"scrollToOffset")},sendMessage:function(e,n){Ie(0,0,"message",JSON.stringify(e),n)},setHeightCalculationMethod:function(e){g=e,de()},setWidthCalculationMethod:function(e){A=e,le()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),S=e},size:function(e,n){ve("size","parentIFrame.size("+(e||"")+(n?","+n:"")+")",e,n)}},function(){function e(e){Ie(0,0,e.type,e.screenY+":"+e.screenX)}function n(n,t){ie("Add event listener: "+t),ee(window.document,n,e)}!0===T&&(n("mouseenter","Mouse Enter"),n("mouseleave","Mouse Leave"))}(),fe(),w=function(){function e(){return{x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop}}function t(n){var t=n.getBoundingClientRect(),i=e();return{x:parseInt(t.left,10)+parseInt(i.x,10),y:parseInt(t.top,10)+parseInt(i.y,10)}}function i(e){function i(e){var n=t(e);ie("Moving to in page link (#"+o+") at x: "+n.x+" y: "+n.y),Ie(n.y,n.x,"scrollToOffset")}var o=e.split("#")[1]||e,r=decodeURIComponent(o),a=document.getElementById(r)||document.getElementsByName(r)[0];n!==a?i(a):(ie("In page link (#"+o+") not found in iFrame, so sending to parent"),Ie(0,0,"inPageLink","#"+o))}function o(){var e=window.location.hash,n=window.location.href;""!==e&&"#"!==e&&i(n)}function r(){function e(e){function n(e){e.preventDefault(),i(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&ee(e,"click",n)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){ee(window,"hashchange",o)}function s(){setTimeout(o,d)}function u(){Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),r(),a(),s()):oe("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return w.enable?u():ie("In page linking not enabled"),{findTarget:i}}(),ve("init","Init message from host page"),P(),l=!1,setTimeout((function(){h=!1}),d)},reset:function(){h?ie("Page reset ignored by init"):(ie("Page size reset by host page"),Me("resetPage"))},resize:function(){ve("resizeParent","Parent window requested size check")},moveToAnchor:function(){w.findTarget(k())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=k();ie("PageInfoFromParent called from parent: "+e),H(JSON.parse(e)),ie(" --")},message:function(){var e=k();ie("onMessage called from parent: "+e),L(JSON.parse(e)),ie(" --")}};function I(){return c.data.split("]")[1].split(":")[0]}function k(){return c.data.substr(c.data.indexOf(":")+1)}function N(){return c.data.split(":")[2]in{true:1,false:1}}M===(""+c.data).substr(0,13)&&(!1===l?(f=I())in m?m[f]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||N()||oe("Unexpected message ("+c.data+")"):N()?m.init():ie('Ignored message of type "'+I()+'". Received before initialization.'))})),ee(window,"readystatechange",Oe),Oe()}function _(){}function ee(e,n,t,i){e.addEventListener(n,t,!!q&&(i||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function te(e){return M+"["+E+"] "+e}function ie(e){v&&"object"==typeof window.console&&console.log(te(e))}function oe(e){"object"==typeof window.console&&console.warn(te(e))}function re(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],oe("Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}function ae(e,t){n!==t&&""!==t&&"null"!==t&&(document.body.style[e]=t,ie("Body "+e+' set to "'+t+'"'))}function se(e){var n={add:function(n){function t(){ve(e.eventName,e.eventType)}B[n]=t,ee(window,n,t,{passive:!0})},remove:function(e){var n,t,i=B[e];delete B[e],n=e,t=i,window.removeEventListener(n,t,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(n[e.method])):n[e.method](e.eventName),ie(ne(e.method)+" event listener: "+e.eventType)}function ue(e){se({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),se({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),se({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),se({method:e,eventType:"Input",eventName:"input"}),se({method:e,eventType:"Mouse Up",eventName:"mouseup"}),se({method:e,eventType:"Mouse Down",eventName:"mousedown"}),se({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),se({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),se({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),se({method:e,eventType:"Touch Start",eventName:"touchstart"}),se({method:e,eventType:"Touch End",eventName:"touchend"}),se({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),se({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),se({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),se({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===O&&se({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ce(e,n,t,i){return n!==e&&(e in t||(oe(e+" is not a valid option for "+i+"CalculationMethod."),e=n),ie(i+' calculation method set to "'+e+'"')),e}function de(){g=ce(g,m,G,"height")}function le(){A=ce(A,C,Z,"width")}function fe(){var e;!0===t?(ue("add"),e=0>y,window.MutationObserver||window.WebKitMutationObserver?e?me():a=function(){function e(e){function n(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",o,!1),a.push(e))}"attributes"===e.type&&"src"===e.attributeName?n(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),n)}function n(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",o,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function t(e,t,i){n(e.target),ve(t,i+": "+e.target.src)}function i(e){t(e,"imageLoad","Image loaded")}function o(e){t(e,"imageLoadFailed","Image load failed")}function r(n){ve("mutationObserver","mutationObserver: "+n[0].target+" "+n[0].type),n.forEach(e)}var a=[],s=window.MutationObserver||window.WebKitMutationObserver,u=function(){var e=document.querySelector("body");return u=new s(r),ie("Create body MutationObserver"),u.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),u}();return{disconnect:function(){"disconnect"in u&&(ie("Disconnect body MutationObserver"),u.disconnect(),a.forEach(n))}}}():(ie("MutationObserver not supported in this browser!"),me())):ie("Auto Resize disabled")}function me(){0!==y&&(ie("setInterval: "+y+"ms"),b=setInterval((function(){ve("interval","setInterval: "+y)}),Math.abs(y)))}function ge(e,n){var t=0;return n=n||document.body,t=null!==(t=document.defaultView.getComputedStyle(n,null))?t[e]:0,parseInt(t,10)}function he(e,n){for(var t=n.length,i=0,o=0,r=ne(e),a=Date.now(),s=0;s<t;s++)(i=n[s].getBoundingClientRect()[e]+ge("margin"+r,n[s]))>o&&(o=i);return a=Date.now()-a,ie("Parsed "+t+" HTML elements"),ie("Element position calculated in "+a+"ms"),function(e){e>R/2&&ie("Event throttle increased to "+(R=2*e)+"ms")}(a),o}function pe(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function we(e,n){var t=document.querySelectorAll("["+n+"]");return 0===t.length&&(oe("No tagged elements ("+n+") found on page"),document.querySelectorAll("body *")),he(e,t)}function ye(){return document.querySelectorAll("body *")}function be(e,t,i,o){var r,a;!function(){function e(e,n){return!(Math.abs(e-n)<=z)}return r=n!==i?i:G[g](),a=n!==o?o:Z[A](),e(f,r)||u&&e(F,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(g in I||u&&A in I)?Ee(t):e in{interval:1}||ie("No change in size detected"):(Te(),Ie(f=r,F=a,e))}function ve(e,n,t,i){k&&e in c?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+n),"init"===e?be(e,n,t,i):$(e,n,t,i))}function Te(){k||(k=!0,ie("Trigger event lock on")),clearTimeout(N),N=setTimeout((function(){k=!1,ie("Trigger event lock off"),ie("--")}),d)}function Me(e){f=G[g](),F=Z[A](),Ie(f,F,e)}function Ee(e){var n=g;g=m,ie("Reset trigger event: "+e),Te(),Me("reset"),g=n}function Ie(e,t,i,o,r){var a;n===r?r=S:ie("Message targetOrigin: "+r),ie("Sending message to host page ("+(a=E+":"+e+":"+t+":"+i+(n!==o?":"+o:""))+")"),x.postMessage(M+a,r)}function Oe(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},10570:(e,n)=>{var t,i,o;!function(r){if("undefined"!=typeof window){var a,s=0,u=!1,c=!1,d="[iFrameSizer]",l=null,f=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},h=null,p={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(){I("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},w={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){H(t,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),i=[],(o="function"==typeof(t=D)?t.apply(n,i):t)===r||(e.exports=o),window.iFrameResize=window.iFrameResize||D()}function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function b(e,n,t){e.addEventListener(n,t,!1)}function v(e,n,t){e.removeEventListener(n,t,!1)}function T(e){return g[e]?g[e].log:u}function M(e,n){O("log",e,n,T(e))}function E(e,n){O("info",e,n,T(e))}function I(e,n){O("warn",e,n,!0)}function O(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return d+"["+function(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}(e)+"]"}(n),t)}function x(e){function n(){t("Height"),t("Width"),W((function(){A(x),R(z),c("onResized",x)}),x,"init")}function t(e){var n=Number(g[z]["max"+e]),t=Number(g[z]["min"+e]),i=e.toLowerCase(),o=Number(x[i]);M(z,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,M(z,"Set "+i+" to min value")),o>n&&(o=n,M(z,"Set "+i+" to max value")),x[i]=""+o}function i(e){return O.substr(O.indexOf(":")+7+e)}function o(e,n){var t,i;t=function(){var t,i;L("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=x.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},w[i=n]||(w[i]=setTimeout((function(){w[i]=null,t()}),32))}function r(e){var n=e.getBoundingClientRect();return N(z),{x:Math.floor(Number(n.left)+Number(l.x)),y:Math.floor(Number(n.top)+Number(l.y))}}function a(e){var n=e?r(x.iframe):{x:0,y:0},t={x:Number(x.width)+n.x,y:Number(x.height)+n.y};M(z,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):I(z,"Unable to scroll to requested position, window.parentIFrame not found"):(l=t,s(),M(z,"--"))}function s(){!1!==c("onScroll",l)?R(z):F()}function u(e){var n={};if(0===Number(x.width)&&0===Number(x.height)){var t=i(9).split(":");n={x:t[1],y:t[0]}}else n={x:x.width,y:x.height};c(e,{iframe:x.iframe,screenX:Number(n.x),screenY:Number(n.y),type:x.type})}function c(e,n){return S(z,e,n)}var f,m,h,p,y,T,O=e.data,x={},z=null;"[iFrameResizerChild]Ready"===O?function(){for(var e in g)L("iFrame requested init",P(e),g[e].iframe,e)}():d===(""+O).substr(0,13)&&O.substr(13).split(":")[0]in g?(p=(h=O.substr(13).split(":"))[1]?parseInt(h[1],10):0,y=g[h[0]]&&g[h[0]].iframe,T=getComputedStyle(y),x={iframe:y,id:h[0],height:p+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(T)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(T),width:h[2],type:h[3]},z=x.id,g[z]&&(g[z].loaded=!0),(m=x.type in{true:1,false:1,undefined:1})&&M(z,"Ignoring init message from meta parent page"),!m&&function(e){var n=!0;return g[e]||(n=!1,I(x.type+" No settings for "+e+". Message was: "+O)),n}(z)&&(M(z,"Received: "+O),f=!0,null===x.iframe&&(I(z,"IFrame ("+x.id+") not found"),f=!1),f&&function(){var n,t=e.origin,i=g[z]&&g[z].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(M(z,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(n=g[z]&&g[z].remoteHost,M(z,"Checking connection is from: "+n),t===n)))throw new Error("Unexpected message received from: "+t+" for "+x.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(){switch(g[z]&&g[z].firstRun&&g[z]&&(g[z].firstRun=!1),x.type){case"close":k(x.iframe);break;case"message":m=i(6),M(z,"onMessage passed: {iframe: "+x.iframe.id+", message: "+m+"}"),c("onMessage",{iframe:x.iframe,message:JSON.parse(m)}),M(z,"--");break;case"mouseenter":u("onMouseEnter");break;case"mouseleave":u("onMouseLeave");break;case"autoResize":g[z].autoResize=JSON.parse(i(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":o(g[z]&&g[z].iframe,z),function(){function e(e,i){function r(){g[t]?o(g[t].iframe,t):n()}["scroll","resize"].forEach((function(n){M(t,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",v)}var t=z;e("Add ",b),g[t]&&(g[t].stopPageInfo=n)}();break;case"pageInfoStop":g[z]&&g[z].stopPageInfo&&(g[z].stopPageInfo(),delete g[z].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",d=decodeURIComponent(t),(f=document.getElementById(d)||document.getElementsByName(d)[0])?(e=r(f),M(z,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),l={x:e.x,y:e.y},s(),M(z,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(t):M(z,"In page link #"+t+" not found and window.parentIFrame not found"):M(z,"In page link #"+t+" not found");break;case"reset":C(x);break;case"init":n(),c("onInit",x.iframe);break;default:0===Number(x.width)&&0===Number(x.height)?I("Unsupported message received ("+x.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,t,d,f,m}())):E(z,"Ignored: "+O)}function S(e,n,t){var i=null,o=null;if(g[e]){if("function"!=typeof(i=g[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function z(e){var n=e.id;delete g[n]}function k(e){var n=e.id;if(!1!==S(n,"onClose",n)){M(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){I(e)}S(n,"onClosed",n),M(n,"--"),z(e)}else M(n,"Close iframe cancelled by onClose event")}function N(e){null===l&&M(e,"Get page position: "+(l={x:window.pageXOffset!==r?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==r?window.pageYOffset:document.documentElement.scrollTop}).x+","+l.y)}function R(e){null!==l&&(window.scrollTo(l.x,l.y),M(e,"Set page position: "+l.x+","+l.y),F())}function F(){l=null}function C(e){M(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),N(e.id),W((function(){A(e),L("reset","reset",e.iframe,e.id)}),e,"reset")}function A(e){function n(n){c||"0"!==e[n]||(c=!0,M(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(g).forEach((function(e){!function(e){function n(n){return"0px"===(g[e]&&g[e].iframe.style[n])}g[e]&&null!==g[e].iframe.offsetParent&&(n("height")||n("width"))&&L("Visibility change","resize",g[e].iframe,e)}(e)}))}function n(n){M("window","Mutation observed: "+n[0].target+" "+n[0].type),j(e,16)}var t,i=y();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",M(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):M("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;g[i]&&(g[i].sizeHeight&&t("height"),g[i].sizeWidth&&t("width"))}function W(e,n,t){t!==n.type&&f&&!window.jasmine?(M(n.id,"Requesting animation frame"),f(e)):e()}function L(e,n,t,i,o){var r,a=!1;i=i||t.id,g[i]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(r=g[i]&&g[i].targetOrigin,M(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+r),t.contentWindow.postMessage(d+n,r)):I(i,"["+e+"] IFrame("+i+") not found"),o&&g[i]&&g[i].warningTimeout&&(g[i].msgTimeout=setTimeout((function(){!g[i]||g[i].loaded||a||(a=!0,I(i,"IFrame has not responded within "+g[i].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[i].warningTimeout)))}function P(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod+":"+g[e].mouseEvents}function H(e,n){function t(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],I(a,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var i,o,a=function(t){var i;return""===t&&(e.id=(i=n&&n.id||p.id+s++,null!==document.getElementById(i)&&(i+=s++),t=i),u=(n||{}).log,M(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in g&&"iFrameResizer"in e?I(a,"Ignored iFrame, already setup."):(function(n){var i;n=n||{},g[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(n),Object.keys(n).forEach(t,n),function(e){for(var n in p)Object.prototype.hasOwnProperty.call(p,n)&&(g[a][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:p[n])}(n),g[a]&&(g[a].targetOrigin=!0===g[a].checkOrigin?""===(i=g[a].remoteHost)||null!==i.match(/^(about:blank|javascript:|file:\/\/)/)?"*":i:"*")}(n),function(){switch(M(a,"IFrame scrolling "+(g[a]&&g[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(g[a]&&g[a].scrolling)?"hidden":"auto",g[a]&&g[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[a]?g[a].scrolling:"no"}}(),function(){function n(n){var t=g[a][n];1/0!==t&&0!==t&&(e.style[n]="number"==typeof t?t+"px":t,M(a,"Set "+n+" = "+e.style[n]))}function t(e){if(g[a]["min"+e]>g[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!=typeof(g[a]&&g[a].bodyMargin)&&"0"!==(g[a]&&g[a].bodyMargin)||(g[a].bodyMarginV1=g[a].bodyMargin,g[a].bodyMargin=g[a].bodyMargin+"px"),i=P(a),(o=y())&&function(n){e.parentNode&&new n((function(n){n.forEach((function(n){Array.prototype.slice.call(n.removedNodes).forEach((function(n){n===e&&k(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),b(e,"load",(function(){var n,t;L("iFrame.onload",i,e,r,!0),n=g[a]&&g[a].firstRun,t=g[a]&&g[a].heightCalculationMethod in m,!n&&t&&C({iframe:e,height:0,width:0,type:"init"})})),L("init",i,e,r,!0),g[a]&&(g[a].iframe.iFrameResizer={close:k.bind(null,g[a].iframe),removeListeners:z.bind(null,g[a].iframe),resize:L.bind(null,"Window resize","resize",g[a].iframe),moveToAnchor:function(e){L("Move to anchor","moveToAnchor:"+e,g[a].iframe,a)},sendMessage:function(e){L("Send Message","message:"+(e=JSON.stringify(e)),g[a].iframe,a)}}))}function j(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function B(){"hidden"!==document.visibilityState&&(M("document","Trigger event: Visiblity change"),j((function(){q("Tab Visable","resize")}),16))}function q(e,n){Object.keys(g).forEach((function(t){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(t)&&L(e,n,g[t].iframe,t)}))}function D(){function e(e,t){t&&(function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),H(t,e),n.push(t))}var n;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!f;e+=1)f=window[n[e]+"RequestAnimationFrame"];f?f=f.bind(window):M("setup","RequestAnimationFrame not supported")}(),b(window,"message",x),b(window,"resize",(function(){M("window","Trigger event: resize"),j((function(){q("Window resize","resize")}),16)})),b(document,"visibilitychange",B),b(document,"-webkit-visibilitychange",B),function(t,i){switch(n=[],function(e){e&&e.enablePublicMethods&&I("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(t),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(r,t));break;case"object":e(t,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return n}}}()},29036:(e,n,t)=>{var i=t(10570);n.iframeResize=i,t(80481)}},n={};function t(i){var o=n[i];if(void 0!==o)return o.exports;var r=n[i]={exports:{}};return e[i](r,r.exports,t),r.exports}(()=>{"use strict";(0,t(44126).iframeResize)({heightCalculationMethod:"taggedElement"},"iframe[data-givewp-embed]")})()})();