![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets-rebuild.corals.io/wp-content/plugins/give/build/assets/dist/js/ |
(()=>{var e={44126:(e,n,t)=>{t(29036)},80481:e=>{!function(n){if("undefined"!=typeof window){var t=!0,o="",i=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="",O={max:1,min:1,bodyScroll:1,documentElementScroll:1},I="child",x=window.parent,S="*",k=0,z=!1,N=null,F=16,R=1,C="scroll",A=C,W=window,P=function(){ie("onMessage function not defined")},L=function(){},H=function(){},j={height:function(){return ie("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ie("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=F-(e-Q);return V=this,J=arguments,n<=0||n>F?(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],i=n!==a[1]?Number(a[1]):i,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,o=a[9],s=a[10],k=n!==a[11]?Number(a[11]):k,w.enable=n!==a[12]&&e(a[12]),I=n!==a[13]?a[13]:I,A=n!==a[14]?a[14]:A,T=n!==a[15]?Boolean(a[15]):T}(),oe("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;oe("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(re,e),P="onMessage"in e?e.onMessage:P,L="onReady"in e?e.onReady:L,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&&(oe("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")),oe("TargetOrigin for parent set to: "+S)}(),n===r&&(r=i+"px"),ae("margin",(f="margin",-1!==(m=r).indexOf("-")&&(ie("Negative CSS value ignored for "+f),m=""),m)),ae("background",o),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="",oe('HTML & body height set to "auto"'),oe("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)),Oe(0,0,"autoResize",JSON.stringify(t)),t},close:function(){Oe(0,0,"close")},getId:function(){return E},getPageInfo:function(e){"function"==typeof e?(H=e,Oe(0,0,"pageInfo")):(H=function(){},Oe(0,0,"pageInfoStop"))},moveToAnchor:function(e){w.findTarget(e)},reset:function(){Ee("parentIFrame.reset")},scrollTo:function(e,n){Oe(n,e,"scrollTo")},scrollToOffset:function(e,n){Oe(n,e,"scrollToOffset")},sendMessage:function(e,n){Oe(0,0,"message",JSON.stringify(e),n)},setHeightCalculationMethod:function(e){g=e,de()},setWidthCalculationMethod:function(e){A=e,le()},setTargetOrigin:function(e){oe("Set targetOrigin: "+e),S=e},size:function(e,n){ve("size","parentIFrame.size("+(e||"")+(n?","+n:"")+")",e,n)}},function(){function e(e){Oe(0,0,e.type,e.screenY+":"+e.screenX)}function n(n,t){oe("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(),o=e();return{x:parseInt(t.left,10)+parseInt(o.x,10),y:parseInt(t.top,10)+parseInt(o.y,10)}}function o(e){function o(e){var n=t(e);oe("Moving to in page link (#"+i+") at x: "+n.x+" y: "+n.y),Oe(n.y,n.x,"scrollToOffset")}var i=e.split("#")[1]||e,r=decodeURIComponent(i),a=document.getElementById(r)||document.getElementsByName(r)[0];n!==a?o(a):(oe("In page link (#"+i+") not found in iFrame, so sending to parent"),Oe(0,0,"inPageLink","#"+i))}function i(){var e=window.location.hash,n=window.location.href;""!==e&&"#"!==e&&o(n)}function r(){function e(e){function n(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&ee(e,"click",n)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){ee(window,"hashchange",i)}function s(){setTimeout(i,d)}function u(){Array.prototype.forEach&&document.querySelectorAll?(oe("Setting up location.hash handlers"),r(),a(),s()):ie("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return w.enable?u():oe("In page linking not enabled"),{findTarget:o}}(),ve("init","Init message from host page"),L(),l=!1,setTimeout((function(){h=!1}),d)},reset:function(){h?oe("Page reset ignored by init"):(oe("Page size reset by host page"),Me("resetPage"))},resize:function(){ve("resizeParent","Parent window requested size check")},moveToAnchor:function(){w.findTarget(z())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=z();oe("PageInfoFromParent called from parent: "+e),H(JSON.parse(e)),oe(" --")},message:function(){var e=z();oe("onMessage called from parent: "+e),P(JSON.parse(e)),oe(" --")}};function O(){return c.data.split("]")[1].split(":")[0]}function z(){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=O())in m?m[f]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||N()||ie("Unexpected message ("+c.data+")"):N()?m.init():oe('Ignored message of type "'+O()+'". Received before initialization.'))})),ee(window,"readystatechange",Ie),Ie()}function _(){}function ee(e,n,t,o){e.addEventListener(n,t,!!q&&(o||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function te(e){return M+"["+E+"] "+e}function oe(e){v&&"object"==typeof window.console&&console.log(te(e))}function ie(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],ie("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,oe("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,o=B[e];delete B[e],n=e,t=o,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),oe(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"===I&&se({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ce(e,n,t,o){return n!==e&&(e in t||(ie(e+" is not a valid option for "+o+"CalculationMethod."),e=n),oe(o+' 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&&(oe("Attach listeners to "+e.src),e.addEventListener("load",o,!1),e.addEventListener("error",i,!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){oe("Remove listeners from "+e.src),e.removeEventListener("load",o,!1),e.removeEventListener("error",i,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function t(e,t,o){n(e.target),ve(t,o+": "+e.target.src)}function o(e){t(e,"imageLoad","Image loaded")}function i(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),oe("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&&(oe("Disconnect body MutationObserver"),u.disconnect(),a.forEach(n))}}}():(oe("MutationObserver not supported in this browser!"),me())):oe("Auto Resize disabled")}function me(){0!==y&&(oe("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,o=0,i=0,r=ne(e),a=Date.now(),s=0;s<t;s++)(o=n[s].getBoundingClientRect()[e]+ge("margin"+r,n[s]))>i&&(i=o);return a=Date.now()-a,oe("Parsed "+t+" HTML elements"),oe("Element position calculated in "+a+"ms"),function(e){e>F/2&&oe("Event throttle increased to "+(F=2*e)+"ms")}(a),i}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&&(ie("No tagged elements ("+n+") found on page"),document.querySelectorAll("body *")),he(e,t)}function ye(){return document.querySelectorAll("body *")}function be(e,t,o,i){var r,a;!function(){function e(e,n){return!(Math.abs(e-n)<=k)}return r=n!==o?o:G[g](),a=n!==i?i:Z[A](),e(f,r)||u&&e(R,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(g in O||u&&A in O)?Ee(t):e in{interval:1}||oe("No change in size detected"):(Te(),Oe(f=r,R=a,e))}function ve(e,n,t,o){z&&e in c?oe("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||oe("Trigger event: "+n),"init"===e?be(e,n,t,o):$(e,n,t,o))}function Te(){z||(z=!0,oe("Trigger event lock on")),clearTimeout(N),N=setTimeout((function(){z=!1,oe("Trigger event lock off"),oe("--")}),d)}function Me(e){f=G[g](),R=Z[A](),Oe(f,R,e)}function Ee(e){var n=g;g=m,oe("Reset trigger event: "+e),Te(),Me("reset"),g=n}function Oe(e,t,o,i,r){var a;n===r?r=S:oe("Message targetOrigin: "+r),oe("Sending message to host page ("+(a=E+":"+e+":"+t+":"+o+(n!==i?":"+i:""))+")"),x.postMessage(M+a,r)}function Ie(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},10570:(e,n)=>{var t,o,i;!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(){O("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.")),o=[],(i="function"==typeof(t=D)?t.apply(n,o):t)===r||(e.exports=i),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){I("log",e,n,T(e))}function E(e,n){I("info",e,n,T(e))}function O(e,n){I("warn",e,n,!0)}function I(e,n,t,o){!0===o&&"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),F(k),c("onResized",x)}),x,"init")}function t(e){var n=Number(g[k]["max"+e]),t=Number(g[k]["min"+e]),o=e.toLowerCase(),i=Number(x[o]);M(k,"Checking "+o+" is in range "+t+"-"+n),i<t&&(i=t,M(k,"Set "+o+" to min value")),i>n&&(i=n,M(k,"Set "+o+" to max value")),x[o]=""+i}function o(e){return I.substr(I.indexOf(":")+7+e)}function i(e,n){var t,o;t=function(){var t,o;P("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),o=x.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:o.height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-t.top,10),offsetLeft:parseInt(o.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[o=n]||(w[o]=setTimeout((function(){w[o]=null,t()}),32))}function r(e){var n=e.getBoundingClientRect();return N(k),{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(k,"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):O(k,"Unable to scroll to requested position, window.parentIFrame not found"):(l=t,s(),M(k,"--"))}function s(){!1!==c("onScroll",l)?F(k):R()}function u(e){var n={};if(0===Number(x.width)&&0===Number(x.height)){var t=o(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(k,e,n)}var f,m,h,p,y,T,I=e.data,x={},k=null;"[iFrameResizerChild]Ready"===I?function(){for(var e in g)P("iFrame requested init",L(e),g[e].iframe,e)}():d===(""+I).substr(0,13)&&I.substr(13).split(":")[0]in g?(p=(h=I.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]},k=x.id,g[k]&&(g[k].loaded=!0),(m=x.type in{true:1,false:1,undefined:1})&&M(k,"Ignoring init message from meta parent page"),!m&&function(e){var n=!0;return g[e]||(n=!1,O(x.type+" No settings for "+e+". Message was: "+I)),n}(k)&&(M(k,"Received: "+I),f=!0,null===x.iframe&&(O(k,"IFrame ("+x.id+") not found"),f=!1),f&&function(){var n,t=e.origin,o=g[k]&&g[k].checkOrigin;if(o&&""+t!="null"&&!(o.constructor===Array?function(){var e=0,n=!1;for(M(k,"Checking connection is from allowed list of origins: "+o);e<o.length;e++)if(o[e]===t){n=!0;break}return n}():(n=g[k]&&g[k].remoteHost,M(k,"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[k]&&g[k].firstRun&&g[k]&&(g[k].firstRun=!1),x.type){case"close":z(x.iframe);break;case"message":m=o(6),M(k,"onMessage passed: {iframe: "+x.iframe.id+", message: "+m+"}"),c("onMessage",{iframe:x.iframe,message:JSON.parse(m)}),M(k,"--");break;case"mouseenter":u("onMouseEnter");break;case"mouseleave":u("onMouseLeave");break;case"autoResize":g[k].autoResize=JSON.parse(o(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":i(g[k]&&g[k].iframe,k),function(){function e(e,o){function r(){g[t]?i(g[t].iframe,t):n()}["scroll","resize"].forEach((function(n){M(t,e+n+" listener for sendPageInfo"),o(window,n,r)}))}function n(){e("Remove ",v)}var t=k;e("Add ",b),g[t]&&(g[t].stopPageInfo=n)}();break;case"pageInfoStop":g[k]&&g[k].stopPageInfo&&(g[k].stopPageInfo(),delete g[k].stopPageInfo);break;case"inPageLink":t=o(9).split("#")[1]||"",d=decodeURIComponent(t),(f=document.getElementById(d)||document.getElementsByName(d)[0])?(e=r(f),M(k,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),l={x:e.x,y:e.y},s(),M(k,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(t):M(k,"In page link #"+t+" not found and window.parentIFrame not found"):M(k,"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)?O("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(k,"Ignored: "+I)}function S(e,n,t){var o=null,i=null;if(g[e]){if("function"!=typeof(o=g[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");i=o(t)}return i}function k(e){var n=e.id;delete g[n]}function z(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){O(e)}S(n,"onClosed",n),M(n,"--"),k(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 F(e){null!==l&&(window.scrollTo(l.x,l.y),M(e,"Set page position: "+l.x+","+l.y),R())}function R(){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),P("reset","reset",e.iframe,e.id)}),e,"reset")}function A(e){function n(n){c||"0"!==e[n]||(c=!0,M(o,"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"))&&P("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,o=y();o&&(t=document.querySelector("body"),new o(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 ("+o+") "+n+" set to "+e[n]+"px")):M("undefined","messageData id not set")}(t),n(t)}var o=e.iframe.id;g[o]&&(g[o].sizeHeight&&t("height"),g[o].sizeWidth&&t("width"))}function W(e,n,t){t!==n.type&&f&&!window.jasmine?(M(n.id,"Requesting animation frame"),f(e)):e()}function P(e,n,t,o,i){var r,a=!1;o=o||t.id,g[o]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(r=g[o]&&g[o].targetOrigin,M(o,"["+e+"] Sending msg to iframe["+o+"] ("+n+") targetOrigin: "+r),t.contentWindow.postMessage(d+n,r)):O(o,"["+e+"] IFrame("+o+") not found"),i&&g[o]&&g[o].warningTimeout&&(g[o].msgTimeout=setTimeout((function(){!g[o]||g[o].loaded||a||(a=!0,O(o,"IFrame has not responded within "+g[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[o].warningTimeout)))}function L(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],O(a,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var o,i,a=function(t){var o;return""===t&&(e.id=(o=n&&n.id||p.id+s++,null!==document.getElementById(o)&&(o+=s++),t=o),u=(n||{}).log,M(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in g&&"iFrameResizer"in e?O(a,"Ignored iFrame, already setup."):(function(n){var o;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?""===(o=g[a].remoteHost)||null!==o.match(/^(about:blank|javascript:|file:\/\/)/)?"*":o:"*")}(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"),o=L(a),(i=y())&&function(n){e.parentNode&&new n((function(n){n.forEach((function(n){Array.prototype.slice.call(n.removedNodes).forEach((function(n){n===e&&z(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),b(e,"load",(function(){var n,t;P("iFrame.onload",o,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"})})),P("init",o,e,r,!0),g[a]&&(g[a].iframe.iFrameResizer={close:z.bind(null,g[a].iframe),removeListeners:k.bind(null,g[a].iframe),resize:P.bind(null,"Window resize","resize",g[a].iframe),moveToAnchor:function(e){P("Move to anchor","moveToAnchor:"+e,g[a].iframe,a)},sendMessage:function(e){P("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)&&P(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,o){switch(n=[],function(e){e&&e.enablePublicMethods&&O("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(t),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(r,t));break;case"object":e(t,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return n}}}()},29036:(e,n,t)=>{t(10570);t(80481)}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{"use strict";t(44126)})()})();