1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[649],{6649:function(e,n,t){"use strict";t.d(n,{Z:function(){return IframeResizer}});var i=t(6702),o=t.n(i),r=t(5697),a=t.n(r),s=t(7294),c=t(2473),l=t.n(c);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}function _objectWithoutPropertiesLoose(e,n){if(null==e)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var d=["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onResized"],u=["title","forwardRef"],IframeResizer=function(e){var n=e.title,t=e.forwardRef,i=_objectWithoutPropertiesLoose(e,u),r=(i.autoResize,i.bodyBackground,i.bodyMargin,i.bodyPadding,i.checkOrigin,i.inPageLinks,i.heightCalculationMethod,i.interval,i.log,i.maxHeight,i.maxWidth,i.minHeight,i.minWidth,i.resizeFrom,i.scrolling,i.sizeHeight,i.sizeWidth,i.warningTimeout,i.tolerance,i.widthCalculationMethod,i.onClosed,i.onInit,i.onMessage,i.onResized,_objectWithoutPropertiesLoose(i,d)),a=(0,s.useRef)(null),onClose=function(){var e;return l()(!(null!=a&&a.current),"[iframeSizerReact]["+(null==a||null==(e=a.current)?void 0:e.id)+"] Close event ignored, to remove the iframe update your React component"),!(null!=a&&a.current)};return(0,s.useEffect)(function(){var e=a.current;return o()(_extends({},i,{onClose:onClose}),e),function(){var n;return null==e||null==(n=e.iFrameResizer)?void 0:n.removeListeners()}},[]),(0,s.useImperativeHandle)(t,function(){return{getIframeElement:function(){return a.current},resize:function(){return a.current.iFrameResizer.resize()},moveToAnchor:function(e){return a.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,n){a.current.iFrameResizer.sendMessage(e,n)}}}),s.createElement("iframe",_extends({title:void 0===n?"iframe":n},r,{ref:a}))};IframeResizer.propTypes={title:a().string}},6702:function(e,n){var t,i,o;console.info(` 2IFRAME-RESIZER 3 4Iframe-Resizer 5 is now available via the following two packages: 5 6 * @iframe-resizer/parent 7 * @iframe-resizer/child 8 9Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery. 10 11Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events. 12 13Please see https://iframe-resizer.com/upgrade for more details. 14`),function(r){if("undefined"!=typeof window){var a,s,c=0,l=!1,d=!1,u=7,f="[iFrameSizer]",g=f.length,m=null,h=window.requestAnimationFrame,p=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),b={},w=null,y=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",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(){warn("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),v={};r!==window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each(function(n,t){setupIFrame(t,e)}).end()}):info("","Unable to bind to jQuery, it is not fully loaded.")),i=[],r!==(o="function"==typeof(t=factory)?t.apply(n,i):t)&&(e.exports=o),window.iFrameResize=window.iFrameResize||factory()}function getMutationObserver(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function addEventListener(e,n,t){e.addEventListener(n,t,!1)}function removeEventListener(e,n,t){e.removeEventListener(n,t,!1)}function isLogEnabled(e){return b[e]?b[e].log:l}function log(e,n){output("log",e,n,isLogEnabled(e))}function info(e,n){output("info",e,n,isLogEnabled(e))}
14function warn(e,n){output("warn",e,n,!0)}function output(e,n,t,i){if(!0===i&&"object"==typeof window.console){var o;console[e](f+"["+(o="Host page: "+n,window.top!==window.self&&(o=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+n:"Nested host page: "+n),o)+"]",t)}}function iFrameListener(e){function resizeIFrame(){ensureInRange("Height"),ensureInRange("Width"),syncResize(function(){var e;setSize(d),setPagePosition(h),chkEvent(h,"onResized",d)},d,"init")}function ensureInRange(e){var n=Number(b[h]["max"+e]),t=Number(b[h]["min"+e]),i=e.toLowerCase(),o=Number(d[i]);log(h,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,log(h,"Set "+i+" to min value")),o>n&&(o=n,log(h,"Set "+i+" to max value")),d[i]=""+o}function getMsgBody(e){return l.slice(l.indexOf(":")+u+e)}function sendPageInfoToIframe(e,n){var t;t=function(){var t,i;trigger("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(i=d.iframe.getBoundingClientRect()).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)},v[n]||(v[n]=setTimeout(function(){v[n]=null,t()},32))}function getElementPosition(e){var n=e.getBoundingClientRect();return getPagePosition(h),{x:Math.floor(Number(n.left)+Number(m.x)),y:Math.floor(Number(n.top)+Number(m.y))}}function scrollRequestFromChild(e){var n=e?getElementPosition(d.iframe):{x:0,y:0},t={x:Number(d.width)+n.x,y:Number(d.height)+n.y};log(h,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(m=t,scrollTo(),log(h,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):warn(h,"Unable to scroll to requested position, window.parentIFrame not found")}function scrollTo(){var e;!1===chkEvent(h,"onScroll",m)?m=null:setPagePosition(h)}function onMouse(e){var n,t={};if(0===Number(d.width)&&0===Number(d.height)){var i=getMsgBody(9).split(":");t={x:i[1],y:i[0]}}else t={x:d.width,y:d.height};n={iframe:d.iframe,screenX:Number(t.x),screenY:Number(t.y),type:d.type},chkEvent(h,e,n)}var n,t,i,o,r,a,s,c,l=e.data,d={},h=null;"[iFrameResizerChild]Ready"===l?!function(){for(var e in b)trigger("iFrame requested init",createOutgoingMsg(e),b[e].iframe,e)}():f===(""+l).slice(0,g)&&l.slice(g).split(":")[0]in b?(t=(n=l.slice(g).split(":"))[1]?parseInt(n[1],10):0,i=b[n[0]]&&b[n[0]].iframe,o=getComputedStyle(i),b[h=(d={iframe:i,id:n[0],height:t+("border-box"!==o.boxSizing?0:(o.paddingTop?parseInt(o.paddingTop,10):0)+(o.paddingBottom?parseInt(o.paddingBottom,10):0))+("border-box"!==o.boxSizing?0:(o.borderTopWidth?parseInt(o.borderTopWidth,10):0)+(o.borderBottomWidth?parseInt(o.borderBottomWidth,10):0)),width:n[2],type:n[3]}).id]&&(b[h].loaded=!0),(r=d.type in{true:1,false:1,undefined:1})&&log(h,"Ignoring init message from meta parent page"),!r&&(s=!0,b[a=h]||(s=!1,warn(d.type+" No settings for "+a+". Message was: "+l)),s)&&(log(h,"Received: "+l),c=!0,null===d.iframe&&(warn(h,"IFrame ("+d.id+") not found"),c=!1),c&&function(){var n,t=e.origin,i=b[h]&&b[h].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(log(h,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(n=b[h]&&b[h].remoteHost,log(h,"Checking connection is from: "+n),t===n)))throw Error("Unexpected message received from: "+t+" for "+d.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(){var e,n,t,i,o,r,a;switch(b[h]&&b[h].firstRun&&b[h]&&(b[h].firstRun=!1),d.type){case"close":closeIFrame(d.iframe);break;case"message":e=getMsgBody(6),log(h,"onMessage passed: {iframe: "+d.iframe.id+", message: "+e+"}"),t={iframe:d.iframe,message:JSON.parse(e)},chkEvent(h,"onMessage",t),log(h,"--");break;case"mouseenter":onMouse("onMouseEnter");break;case"mouseleave":onMouse("onMouseLeave");break;case"autoResize":b[h].autoResize=JSON.parse(getMsgBody(9));break;case"scrollTo":scrollRequestFromChild(!1);break;case"scrollToOffset":scrollRequestFromChild(!0);break;case"pageInfo":sendPageInfoToIframe(b[h]&&b[h].iframe,h),function(){function setListener(n,t){function sendPageInfo(){b[e]?sendPageInfoToIframe(b[e].iframe,e):stop()}["scroll","resize"].forEach(function(i){log(e,n+i+" listener for sendPageInfo"),t(window,i,sendPageInfo)})}function stop(){setListener("Remove ",removeEventListener)}var e=h;setListener("Add ",addEventListener),b[e]&&(b[e].stopPageInfo=stop)}();break;case"pageInfoStop":b[h]&&b[h].stopPageInfo&&(b[h].stopPageInfo(),delete b[h].stopPageInfo);break;case"inPageLink":r=decodeURIComponent(o=getMsgBody(9).split("#")[1]||""),(a=document.getElementById(r)||document.getElementsByName(r)[0])?(i=getElementPosition(a),log(h,"Moving to in page link (#"+o+") at x: "+i.x+" y: "+i.y),m={x:i.x,y:i.y},scrollTo(),log(h,"--")):window.top===window.self?log(h,"In page link #"+o+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(o):log(h,"In page link #"+o+" not found and window.parentIFrame not found");break;case"reset":resetIFrame(d);break;case"init":resizeIFrame(),n=d.iframe,chkEvent(h,"onInit",n);break;default:0===Number(d.width)&&0===Number(d.height)?warn("Unsupported message received ("+d.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):resizeIFrame()}}())):info(h,"Ignored: "+l)}function chkEvent(e,n,t){var i=null,o=null;if(b[e]){if("function"==typeof(i=b[e][n]))o=i(t);else throw TypeError(n+" on iFrame["+e+"] is not a function")}return o}function removeIframeListeners(e){var n=e.id;delete b[n]}function closeIFrame(e){var n=e.id;if(!1===chkEvent(n,"onClose",n)){log(n,"Close iframe cancelled by onClose event");return}log(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){warn(e)}chkEvent(n,"onClosed",n),log(n,"--"),removeIframeListeners(e),s&&(s.disconnect(),s=null)}function getPagePosition(e){null===m&&log(e,"Get page position: "+(m={x:r===window.pageXOffset?document.documentElement.scrollLeft:window.pageXOffset,y:r===window.pageYOffset?document.documentElement.scrollTop:window.pageYOffset}).x+","+m.y)}function setPagePosition(e){null!==m&&(window.scrollTo(m.x,m.y),log(e,"Set page position: "+m.x+","+m.y),m=null)}function resetIFrame(e){log(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),getPagePosition(e.id),syncResize(function(){setSize(e),trigger("reset","reset",e.iframe,e.id)},e,"reset")}function setSize(e){function processDimension(t){(function(t){if(!e.id){log("undefined","messageData id not set");return}
14e.iframe.style[t]=e[t]+"px",log(e.id,"IFrame ("+n+") "+t+" set to "+e[t]+"px")})(t),d||"0"!==e[t]||(d=!0,log(n,"Hidden iFrame detected, creating visibility listener"),function(){function checkIFrames(){Object.keys(b).forEach(function(e){!function(e){function chkDimension(n){return"0px"===(b[e]&&b[e].iframe.style[n])}b[e]&&null!==b[e].iframe.offsetParent&&(chkDimension("height")||chkDimension("width"))&&trigger("Visibility change","resize",b[e].iframe,e)}(e)})}var e,n=getMutationObserver();n&&(e=document.querySelector("body"),new n(function(e){log("window","Mutation observed: "+e[0].target+" "+e[0].type),debouce(checkIFrames,16)}).observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}var n=e.iframe.id;b[n]&&(b[n].sizeHeight&&processDimension("height"),b[n].sizeWidth&&processDimension("width"))}function syncResize(e,n,t){t!==n.type&&h&&!window.jasmine?(log(n.id,"Requesting animation frame"),h(e)):e()}function trigger(e,n,t,i,o){var r=!1;b[i=i||t.id]&&(function(){if(t&&"contentWindow"in t&&null!==t.contentWindow){var o;o=b[i]&&b[i].targetOrigin,log(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+o),t.contentWindow.postMessage(f+n,o)}else warn(i,"["+e+"] IFrame("+i+") not found")}(),o&&b[i]&&b[i].warningTimeout&&(b[i].msgTimeout=setTimeout(function(){!b[i]||b[i].loaded||r||(r=!0,warn(i,"IFrame has not responded within "+b[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."))},b[i].warningTimeout)))}function createOutgoingMsg(e){return e+":"+b[e].bodyMarginV1+":"+b[e].sizeWidth+":"+b[e].log+":"+b[e].interval+":"+b[e].enablePublicMethods+":"+b[e].autoResize+":"+b[e].bodyMargin+":"+b[e].heightCalculationMethod+":"+b[e].bodyBackground+":"+b[e].bodyPadding+":"+b[e].tolerance+":"+b[e].inPageLinks+":"+b[e].resizeFrom+":"+b[e].widthCalculationMethod+":"+b[e].mouseEvents}function setupIFrame(e,n){function depricate(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],warn(o,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var t,i,o=function(t){if("string"!=typeof t)throw TypeError("Invaild id for iFrame. Expected String");if(""===t){var i;e.id=(i=n&&n.id||y.id+c++,null!==document.getElementById(i)&&(i+=c++),t=i),l=(n||{}).log,log(t,"Added missing iframe ID: "+t+" ("+e.src+")")}return t}(e.id);o in b&&"iFrameResizer"in e?warn(o,"Ignored iFrame, already setup."):(function(n){if(n=n||{},b[o]=Object.create(null),b[o].iframe=e,b[o].firstRun=!0,b[o].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw TypeError("Options is not an object")}(n),Object.keys(n).forEach(depricate,n),function(e){for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&(b[o][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:y[n])}(n),b[o]){var t;b[o].targetOrigin=!0===b[o].checkOrigin?""===(t=b[o].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*"}}(n),function(){switch(log(o,"IFrame scrolling "+(b[o]&&b[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=!1===(b[o]&&b[o].scrolling)?"hidden":"auto",b[o]&&b[o].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=b[o]?b[o].scrolling:"no"}}(),function(){function addStyle(n){var t=b[o][n];1/0!==t&&0!==t&&(e.style[n]="number"==typeof t?t+"px":t,log(o,"Set "+n+" = "+e.style[n]))}function chkMinMax(e){if(b[o]["min"+e]>b[o]["max"+e])throw Error("Value for min"+e+" can not be greater than max"+e)}chkMinMax("Height"),chkMinMax("Width"),addStyle("maxHeight"),addStyle("minHeight"),addStyle("maxWidth"),addStyle("minWidth")}(),("number"==typeof(b[o]&&b[o].bodyMargin)||"0"===(b[o]&&b[o].bodyMargin))&&(b[o].bodyMarginV1=b[o].bodyMargin,b[o].bodyMargin=""+b[o].bodyMargin+"px"),t=createOutgoingMsg(o),(i=getMutationObserver())&&(s=function(n){if(!e.parentNode)return null;
14var t=new n(function(n){n.forEach(function(n){Array.prototype.slice.call(n.removedNodes).forEach(function(n){n===e&&closeIFrame(e)})})});return t.observe(e.parentNode,{childList:!0}),t}(i)),addEventListener(e,"load",function(){var n,i;trigger("iFrame.onload",t,e,r,!0),n=b[o]&&b[o].firstRun,i=b[o]&&b[o].heightCalculationMethod in p,!n&&i&&resetIFrame({iframe:e,height:0,width:0,type:"init"})}),trigger("init",t,e,r,!0),b[o]&&(b[o].iframe.iFrameResizer={close:closeIFrame.bind(null,b[o].iframe),removeListeners:removeIframeListeners.bind(null,b[o].iframe),resize:trigger.bind(null,"Window resize","resize",b[o].iframe),moveToAnchor:function(e){trigger("Move to anchor","moveToAnchor:"+e,b[o].iframe,o)},sendMessage:function(e){trigger("Send Message","message:"+(e=JSON.stringify(e)),b[o].iframe,o)}}))}function debouce(e,n){null===w&&(w=setTimeout(function(){w=null,e()},n))}function tabVisible(){"hidden"!==document.visibilityState&&(log("document","Trigger event: Visibility change"),debouce(function(){sendTriggerMsg("Tab Visible","resize")},16))}function sendTriggerMsg(e,n){Object.keys(b).forEach(function(t){b[t]&&"parent"===b[t].resizeFrom&&b[t].autoResize&&!b[t].firstRun&&trigger(e,n,b[t].iframe,t)})}function factory(){var e;function init(n,t){t&&(function(){if(t.tagName){if("IFRAME"!==t.tagName.toUpperCase())throw TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}else throw TypeError("Object is not a valid DOM element")}(),setupIFrame(t,n),e.push(t))}return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!h;e+=1)h=window[n[e]+"RequestAnimationFrame"];h?h=h.bind(window):log("setup","RequestAnimationFrame not supported")}(),addEventListener(window,"message",iFrameListener),addEventListener(window,"resize",function(){var e;log("window","Trigger event: "+(e="resize")),debouce(function(){sendTriggerMsg("Window "+e,"resize")},16)}),addEventListener(document,"visibilitychange",tabVisible),addEventListener(document,"-webkit-visibilitychange",tabVisible),function(n,t){switch(e=[],n&&n.enablePublicMethods&&warn("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),init.bind(r,n));break;case"object":init(n,t);break;default:throw TypeError("Unexpected data type ("+typeof t+")")}return e}}}()},2703:function(e,n,t){"use strict";var i=t(414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,n,t,o,r,a){if(a!==i){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},5697:function(e,n,t){e.exports=t(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2473:function(e){"use strict";e.exports=function(){}}}]);
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.