(()=>{function me(){"use strict";function e(a,p,g){"addEventListener"in window?a.addEventListener(p,g,!1):"attachEvent"in window&&a.attachEvent("on"+p,g)}function i(){var a,p=["moz","webkit","o","ms"];for(a=0;a
x)throw new Error("Value for min"+u+" can not be greater than max"+u);n(" Checking "+k+" is in range "+N+"-"+x),N>L&&(L=N,n(" Set "+k+" to min value")),L>x&&(L=x,n(" Set "+k+" to max value")),y[k]=""+L}function F(){var u=y.iframe.src;!u&&y.iframe.getAttribute("data-src")&&(u=y.iframe.getAttribute("data-src"));var x=a.origin,N=u.split("/").slice(0,3).join("/");if(l.checkOrigin&&(n(" Checking connection is from: "+N),""+x!="null"&&x!==N))throw new Error("Unexpected message received from: "+x+" for "+y.iframe.id+". Message was: "+a.data+". This error can be disabled by adding the checkOrigin: false option.");return!0}function $(){return U===(""+D).substr(0,A)}function G(){var u=y.type in{true:1,false:1};return u&&n(" Ignoring init message from meta parent page"),u}function z(u){return D.substr(D.indexOf(":")+ie+u)}function _(u){n(" MessageCallback passed: {iframe: "+y.iframe.id+", message: "+u+"}"),l.messageCallback({iframe:y.iframe,message:JSON.parse(u)}),n(" --")}function ge(){if(y.iframe===null)throw new Error("iFrame ("+y.id+") does not exist on "+B);return!0}function le(u){var x=u.getBoundingClientRect();return r(),{x:parseInt(x.left,10)+parseInt(h.x,10),y:parseInt(x.top,10)+parseInt(h.y,10)}}function ce(u){function x(){h=L,pe(),n(" --")}function N(){return{x:Number(y.width)+k.x,y:Number(y.height)+k.y}}var k=u?le(y.iframe):{x:0,y:0},L=N();n(" Reposition requested from iFrame (offset x:"+k.x+" y:"+k.y+")"),window.top!==window.self?window.parentIFrame?u?parentIFrame.scrollToOffset(L.x,L.y):parentIFrame.scrollTo(y.width,y.height):s(" Unable to scroll to requested position, window.parentIFrame not found"):x()}function pe(){l.scrollCallback(h)!==!1&&m()}function he(u){function x(we){var K=le(we);n(" Moving to in page link (#"+N+") at x: "+K.x+" y: "+K.y),h={x:K.x,y:K.y},pe(),n(" --")}var N=u.split("#")[1]||"",k=decodeURIComponent(N),L=document.getElementById(k)||document.getElementsByName(k)[0];window.top!==window.self?window.parentIFrame?parentIFrame.moveToAnchor(N):n(" In page link #"+N+" not found and window.parentIFrame not found"):L?x(L):n(" In page link #"+N+" not found")}function ye(){switch(y.type){case"close":g(y.iframe),l.resizedCallback(y);break;case"message":_(z(6));break;case"scrollTo":ce(!1);break;case"scrollToOffset":ce(!0);break;case"inPageLink":he(z(9));break;case"reset":d(y);break;case"init":p(),l.initCallback(y.iframe);break;default:p()}}var D=a.data,y={};$()&&(n(" Received: "+D),y=v(),!G()&&ge()&&F()&&(ye(),H=!1))}function r(){h===null&&(h={x:window.pageXOffset!==void 0?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==void 0?window.pageYOffset:document.documentElement.scrollTop},n(" Get page position: "+h.x+","+h.y))}function m(){h!==null&&(window.scrollTo(h.x,h.y),n(" Set page position: "+h.x+","+h.y),h=null)}function d(a){function p(){c(a),C("reset","reset",a.iframe)}n(" Size reset requested by "+(a.type==="init"?"host page":"iFrame")),r(),S(p,a,"init")}function c(a){function p(g){a.iframe.style[g]=a[g]+"px",n(" IFrame ("+a.iframe.id+") "+g+" set to "+a[g]+"px")}l.sizeHeight&&p("height"),l.sizeWidth&&p("width")}function S(a,p,g){g!==p.type&&E?(n(" Requesting animation frame"),E(a)):a()}function C(a,p,g){n("["+a+"] Sending msg to iframe ("+p+")"),g.contentWindow.postMessage(U+p,"*")}function R(){function a(){function z(_){1/0!==l[_]&&l[_]!==0&&($.style[_]=l[_]+"px",n(" Set "+_+" = "+l[_]+"px"))}z("maxHeight"),z("minHeight"),z("maxWidth"),z("minWidth")}function p(z){return z===""&&($.id=z="iFrameResizer"+ee++,n(" Added missing iframe ID: "+z+" ("+$.src+")")),z}function g(){n(" IFrame scrolling "+(l.scrolling?"enabled":"disabled")+" for "+G),$.style.overflow=l.scrolling===!1?"hidden":"auto",$.scrolling=l.scrolling===!1?"no":"yes"}function v(){(typeof l.bodyMargin=="number"||l.bodyMargin==="0")&&(l.bodyMarginV1=l.bodyMargin,l.bodyMargin=""+l.bodyMargin+"px")}function I(){return G+":"+l.bodyMarginV1+":"+l.sizeWidth+":"+l.log+":"+l.interval+":"+l.enablePublicMethods+":"+l.autoResize+":"+l.bodyMargin+":"+l.heightCalculationMethod+":"+l.bodyBackground+":"+l.bodyPadding+":"+l.tolerance}function F(z){e($,"load",function(){var _=H;C("iFrame.onload",z,$),!_&&l.heightCalculationMethod in Y&&d({iframe:$,height:0,width:0,type:"init"})}),C("init",z,$)}var $=this,G=p($.id);g(),a(),v(),F(I())}function Z(a){if(typeof a!="object")throw new TypeError("Options is not an object.")}function W(a){a=a||{},Z(a);for(var p in w)w.hasOwnProperty(p)&&(l[p]=a.hasOwnProperty(p)?a[p]:w[p])}function j(){function a(p){if(!p.tagName)throw new TypeError("Object is not a valid DOM element");if(p.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected