text: var Addon;(()=>{var e={541:(e,t,n)=>{"use strict";var o=d(n(353)),r=d(n(37)),i=d(n(630)),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=d(n(457)),u=d(n(729)),c=n(702);n(303);var l=d(n(248)),f=d(n(249));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}window.iFrameResizer=f.default;var p=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.options=e,n.api=new l.default(n),n.channel=s.default.build({window:e.window||window.parent,origin:"*",scope:e.id||location.origin,postMessageObserver:function(e,t){n.emit("postMessage",e,t)},gotMessageObserver:function(e,t){n.emit("gotMessage",e,t)}}),["init","update","reload","_event"].forEach((function(e){n.channel.bind(e,(function(t,o){var r=e,i=o;return"_event"===e&&(r=o.eventName,i=o.eventData),n.emit(r,i),"success"}))})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"request",value:function(e){var t=this;return new c.Promise((function(n,a){if(!(0,i.default)(e))throw new Error("Params must be an object");var s=e.method,u=e.endpoint,c=e.query,l=e.body;if(!(s&&u&&(0,r.default)(s)&&(0,r.default)(u)))throw new Error("Invalid method or endpoint");if(!(0,o.default)(c)&&!(0,i.default)(c))throw new Error("Query must be an object");if(!(0,o.default)(l)&&!(0,i.default)(l))throw new Error("Body must be an object");t.channel.call({method:"request",params:e,success:function(e){n(e)},error:function(e){a(e)}})}))}},{key:"saveData",value:function(e){var t=this;return new c.Promise((function(n,o){if(!(0,i.default)(e))throw new Error("Data must be an object");t.channel.call({method:"saveData",params:e,success:function(){n()},error:function(e){o(e)}})}))}},{key:"addTransaction",value:function(e){var t=this;return new c.Promise((function(n,r){if(!(0,o.default)(e)&&!(0,i.default)(e))throw new Error("Attrs must be an object");t.channel.call({method:"addTransaction",params:e,success:function(e){n(e)},error:function(e){r(e)}})}))}},{key:"editTransaction",value:function(e){var t=this;return new c.Promise((function(n,o){if(!e||!(0,r.default)(e))throw new Error("Invalid id");t.channel.call({method:"editTransaction",params:e,success:function(e){n(e)},error:function(e){o(e)}})}))}},{key:"addInstitution",value:function(e){var t=this;return new c.Promise((function(n,r){if(!(0,o.default)(e)&&!(0,i.default)(e))throw new Error("Attrs must be an object");t.channel.call({method:"addInstitution",params:e,success:function(e){n(e)},error:function(e){r(e)}})}))}},{key:"downloadDocument",value:function(e){var t=this;return new c.Promise((function(n,o){if(!e||!(0,r.default)(e))throw new Error("Invalid id");t.channel.call({method:"downloadDocument",params:e,success:function(){n()},error:function(e){o(e)}})}))}},{key:"upgradePremium",value:function(){var e=this;return new c.Promise((function(t,n){e.channel.call({method:"upgradePremium",success:function(){t()},error:function(e){n(e)}})}))}},{key:"getSharings",value:function(){var e=this;return new c.Promise((function(t,n){e.channel.call({method:"getSharings",success:function(e){t(e)},error:function(e){n(e)}})}))}},{key:"switchUser",value:function(e){var t=this;return new c.Promise((function(n,o){if(!e||!(0,r.default)(e))throw new Error("Invalid id");t.channel.call({method:"switchUser",params:e,success:function(){n()},error:function(e){o(e)}})}))}},{key:"destroy",value:function(){this.channel.destroy()}}]),t}(u.default);e.exports=p},248:e=>{"use strict";var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.addon=t}return t(e,[{key:"getAssets",value:function(e){return this.addon.request({method:"GET",endpoint:"assets",query:e})}},{key:"getCurrencies",value:function(e){return this.addon.request({method:"GET",endpoint:"currencies",query:e})}},{key:"getInstitutions",value:function(e){return this.addon.request({method:"GET",endpoint:"institutions",query:e})}},{key:"getInstitution",value:function(e){return this.addon.request({method:"GET",endpoint:"institutions/"+e})}},{key:"pollInstitution",value:function(e,t){return this.addon.request({method:"GET",endpoint:"institutions/"+e+"/poll?v="+t})}},{key:"syncInstitution",value:function(e){return this.addon.request({method:"POST",endpoint:"institutions/"+e+"/sync"})}},{key:"addInstitution",value:function(e){return console.warn("DEPRECATED: `addon.api.addInstitution`. Use `addon.addInstitution instead.`"),this.addon.request({method:"POST",endpoint:"institutions",body:e})}},{key:"getLiabilities",value:function(e){return this.addon.request({method:"GET",endpoint:"liabilities",query:e})}},{key:"getPositions",value:function(e){return this.addon.request({method:"GET",endpoint:"positions",query:e})}},{key:"getTransactions",value:function(e){return this.addon.request({method:"GET",endpoint:"transactions",query:e})}},{key:"updateTransaction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.addon.request({method:"PUT",endpoint:"transactions/"+e,body:t})}},{key:"getUser",value:function(){return this.addon.request({method:"GET",endpoint:"users/me"})}}]),e}();e.exports=n},249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={heightCalculationMethod:function(){var e=document,t=e.body,n=e.documentElement;return Math.max.apply(null,[t.scrollHeight,t.offsetHeight,n.offsetHeight])}}},702:function(e,t,n){
  /*!
   * @overview es6-promise - a tiny implementation of Promises/A+.
   * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
   * @license   Licensed under MIT license
   *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
   * @version   v4.2.2+97478eb6
   */
  e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var o=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,i=void 0,a=void 0,s=function(e,t){b[r]=e,b[r+1]=t,2===(r+=2)&&(a?a(k):E())};function u(e){a=e}function c(e){s=e}var l="undefined"!=typeof window?window:void 0,f=l||{},d=f.MutationObserver||f.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),m="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){return function(){return process.nextTick(k)}}function g(){return void 0!==i?function(){i(k)}:y()}function v(){var e=0,t=new d(k),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function w(){var e=new MessageChannel;return e.port1.onmessage=k,function(){return e.port2.postMessage(0)}}function y(){var e=setTimeout;return function(){return e(k,1)}}var b=new Array(1e3);function k(){for(var e=0;e<r;e+=2)(0,b[e])(b[e+1]),b[e]=void 0,b[e+1]=void 0;r=0}function O(){try{var e=n(327);return i=e.runOnLoop||e.runOnContext,g()}catch(e){return y()}}var E=void 0;function T(e,t){var n=this,o=new this.constructor(M);void 0===o[x]&&Z(o);var r=n._state;if(r){var i=arguments[r-1];s((function(){return Y(r,o,i,n._result)}))}else B(n,o,e,t);return o}function _(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(M);return q(n,e),n}E=h?p():d?v():m?w():void 0===l?O():y();var x=Math.random().toString(36).substring(16);function M(){}var S=void 0,I=1,C=2,A=new J;function j(){return new TypeError("You cannot resolve a promise with itself")}function P(){return new TypeError("A promises callback cannot return that same promise.")}function N(e){try{return e.then}catch(e){return A.error=e,A}}function F(e,t,n,o){try{e.call(t,n,o)}catch(e){return e}}function R(e,t,n){s((function(e){var o=!1,r=F(n,t,(function(n){o||(o=!0,t!==n?q(e,n):H(e,n))}),(function(t){o||(o=!0,D(e,t))}),"Settle: "+(e._label||" unknown promise"));!o&&r&&(o=!0,D(e,r))}),e)}function z(e,t){t._state===I?H(e,t._result):t._state===C?D(e,t._result):B(t,void 0,(function(t){return q(e,t)}),(function(t){return D(e,t)}))}function L(e,n,o){n.constructor===e.constructor&&o===T&&n.constructor.resolve===_?z(e,n):o===A?(D(e,A.error),A.error=null):void 0===o?H(e,n):t(o)?R(e,n,o):H(e,n)}function q(t,n){t===n?D(t,j()):e(n)?L(t,n,N(n)):H(t,n)}function W(e){e._onerror&&e._onerror(e._result),U(e)}function H(e,t){e._state===S&&(e._result=t,e._state=I,0!==e._subscribers.length&&s(U,e))}function D(e,t){e._state===S&&(e._state=C,e._result=t,s(W,e))}function B(e,t,n,o){var r=e._subscribers,i=r.length;e._onerror=null,r[i]=t,r[i+I]=n,r[i+C]=o,0===i&&e._state&&s(U,e)}function U(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var o=void 0,r=void 0,i=e._result,a=0;a<t.length;a+=3)o=t[a],r=t[a+n],o?Y(n,o,r,i):r(i);e._subscribers.length=0}}function J(){this.error=null}var V=new J;function G(e,t){try{return e(t)}catch(e){return V.error=e,V}}function Y(e,n,o,r){var i=t(o),a=void 0,s=void 0,u=void 0,c=void 0;if(i){if((a=G(o,r))===V?(c=!0,s=a.error,a.error=null):u=!0,n===a)return void D(n,P())}else a=r,u=!0;n._state!==S||(i&&u?q(n,a):c?D(n,s):e===I?H(n,a):e===C&&D(n,a))}function X(e,t){try{t((function(t){q(e,t)}),(function(t){D(e,t)}))}catch(t){D(e,t)}}var K=0;function Q(){return K++}function Z(e){e[x]=K++,e._state=void 0,e._result=void 0,e._subscribers=[]}function $(){return new Error("Array Methods must be provided an Array")}function $(){return new Error("Array Methods must be provided an Array")}var ee=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(M),this.promise[x]||Z(this.promise),o(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?H(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&H(this.promise,this._result))):D(this.promise,$())}return e.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,o=n.resolve;if(o===_){var r=N(e);if(r===T&&e._state!==S)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(n===ae){var i=new n(M);L(i,e,r),this._willSettleAt(i,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(o(e),t)},e.prototype._settledAt=function(e,t,n){var o=this.promise;o._state===S&&(this._remaining--,e===C?D(o,n):this._result[t]=n),0===this._remaining&&H(o,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;B(e,void 0,(function(e){return n._settledAt(I,t,e)}),(function(e){return n._settledAt(C,t,e)}))},e}();function te(e){return new ee(this,e).promise}function ne(e){var t=this;return o(e)?new t((function(n,o){for(var r=e.length,i=0;i<r;i++)t.resolve(e[i]).then(n,o)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function oe(e){var t=new this(M);return D(t,e),t}function re(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ie(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ae=function(){function e(t){this[x]=Q(),this._result=this._state=void 0,this._subscribers=[],M!==t&&("function"!=typeof t&&re(),this instanceof e?X(this,t):ie())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,n=t.constructor;return t.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){throw t}))}))},e}();function se(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var o=null;try{o=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===o&&!t.cast)return}e.Promise=ae}return ae.prototype.then=T,ae.all=te,ae.race=ne,ae.resolve=_,ae.reject=oe,ae._setScheduler=u,ae._setAsap=c,ae._asap=s,ae.polyfill=se,ae.Promise=ae,ae}()},729:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function o(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,o,i,a){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new r(o,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,o,r=[];if(0===this._eventsCount)return r;for(o in e=this._events)t.call(e,o)&&r.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var r=0,i=o.length,a=new Array(i);r<i;r++)a[r]=o[r].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,o=this._events[t];return o?o.fn?1:o.length:0},s.prototype.emit=function(e,t,o,r,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,o),!0;case 4:return l.fn.call(l.context,t,o,r),!0;case 5:return l.fn.call(l.context,t,o,r,i),!0;case 6:return l.fn.call(l.context,t,o,r,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,o);break;case 4:l[c].fn.call(l[c].context,t,o,r);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,o,r){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||r&&!s.once||o&&s.context!==o||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||r&&!s[u].once||o&&s[u].context!==o)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},303:(e,t,n)=>{"use strict";e.exports=n(683)},402:e=>{!function(t){"use strict";if("undefined"!=typeof window){var n,o,r,i,a,s,u,c=!0,l="",f=0,d="",h=null,m="",p=!1,g={resize:1,click:1},v=128,w=!0,y=1,b="bodyOffset",k=b,O=!0,E="",T={},_=32,x=null,M=!1,S="[iFrameSizer]",I=S.length,C="",A={max:1,min:1,bodyScroll:1,documentElementScroll:1},j="child",P=!0,N=window.parent,F="*",R=0,z=!1,L=null,q=16,W=1,H="scroll",D=H,B=window,U=function(){re("MessageCallback function not defined")},J=function(){},V=function(){},G={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},Y={},X=Date.now||function(){return(new Date).getTime()},K={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return K.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return G.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ve(K))},min:function(){return Math.min.apply(null,ve(K))},grow:function(){return K.max()},lowestElement:function(){return Math.max(K.bodyOffset(),ge("bottom",ye()))},taggedElement:function(){return we("bottom","data-iframe-height")}},Q={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return G.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Q.bodyScroll(),Q.documentElementScroll())},max:function(){return Math.max.apply(null,ve(Q))},min:function(){return Math.min.apply(null,ve(Q))},rightMostElement:function(){return ge("right",ye())},taggedElement:function(){return we("right","data-iframe-width")}},Z=(n=function(e,n,o,r){var i,a;!function(){function e(e,t){return!(Math.abs(e-t)<=R)}return i=t!==o?o:K[k](),a=t!==r?r:Q[D](),e(y,i)||p&&e(W,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(k in A||p&&D in A)?Ee(n):e in{interval:1}||oe("No change in size detected"):(ke(),Te(y=i,W=a,e))},a=null,s=0,u=function(){s=X(),a=null,i=n.apply(o,r),a||(o=r=null)},function(){var e=X();s||(s=e);var t=q-(e-s);return o=this,r=arguments,t<=0||t>q?(a&&(clearTimeout(a),a=null),s=e,i=n.apply(o,r),a||(o=r=null)):a||(a=setTimeout(u,t)),i});$(window,"message",_e),"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}function $(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function ee(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function te(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ne(e){return S+"["+C+"] "+e}function oe(e){M&&"object"==typeof window.console&&console.log(ne(e))}function re(e){"object"==typeof window.console&&console.warn(ne(e))}function ie(){var e;!function(){function e(e){return"true"===e}var n=E.substr(I).split(":");C=n[0],f=t!==n[1]?Number(n[1]):f,p=t!==n[2]?e(n[2]):p,M=t!==n[3]?e(n[3]):M,_=t!==n[4]?Number(n[4]):_,c=t!==n[6]?e(n[6]):c,d=n[7],k=t!==n[8]?n[8]:k,l=n[9],m=n[10],R=t!==n[11]?Number(n[11]):R,T.enable=t!==n[12]&&e(n[12]),j=t!==n[13]?n[13]:j,D=t!==n[14]?n[14]:D}(),oe("Initialising iFrame ("+location.href+")"),function(){function e(){var e=window.iFrameResizer;oe("Reading data from page: "+JSON.stringify(e)),U="messageCallback"in e?e.messageCallback:U,J="readyCallback"in e?e.readyCallback:J,F="targetOrigin"in e?e.targetOrigin:F,k="heightCalculationMethod"in e?e.heightCalculationMethod:k,D="widthCalculationMethod"in e?e.widthCalculationMethod:D}function t(e,t){return"function"==typeof e&&(oe("Setup custom "+t+"CalcMethod"),G[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),k=t(k,"height"),D=t(D,"width"));oe("TargetOrigin for parent set to: "+F)}(),function(){t===d&&(d=f+"px");ae("margin",function(e,t){-1!==t.indexOf("-")&&(re("Negative CSS value ignored for "+e),t="");return t}("margin",d))}(),ae("background",l),ae("padding",m),(e=document.createElement("div")).style.clear="both",e.style.display="block",document.body.appendChild(e),le(),fe(),document.documentElement.style.height="",document.body.style.height="",oe('HTML & body height set to "auto"'),oe("Enable public methods"),B.parentIFrame={autoResize:function(e){return!0===e&&!1===c?(c=!0,de()):!1===e&&!0===c&&(c=!1,he()),c},close:function(){Te(0,0,"close"),oe("Disable outgoing messages"),P=!1,oe("Remove event listener: Message"),ee(window,"message",_e),!0===c&&he()},getId:function(){return C},getPageInfo:function(e){"function"==typeof e?(V=e,Te(0,0,"pageInfo")):(V=function(){},Te(0,0,"pageInfoStop"))},moveToAnchor:function(e){T.findTarget(e)},reset:function(){Ee("parentIFrame.reset")},scrollTo:function(e,t){Te(t,e,"scrollTo")},scrollToOffset:function(e,t){Te(t,e,"scrollToOffset")},sendMessage:function(e,t){Te(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){k=e,le()},setWidthCalculationMethod:function(e){D=e,fe()},setTargetOrigin:function(e){oe("Set targetOrigin: "+e),F=e},size:function(e,t){be("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},de(),T=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),o=e();return{x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}}function o(e){function o(e){var t=n(e);oe("Moving to in page link (#"+r+") at x: "+t.x+" y: "+t.y),Te(t.y,t.x,"scrollToOffset")}var r=e.split("#")[1]||e,i=decodeURIComponent(r),a=document.getElementById(i)||document.getElementsByName(i)[0];t!==a?o(a):(oe("In page link (#"+r+") not found in iFrame, so sending to parent"),Te(0,0,"inPageLink","#"+r))}function r(){""!==location.hash&&"#"!==location.hash&&o(location.href)}function i(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&$(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){$(window,"hashchange",r)}function s(){setTimeout(r,v)}function u(){Array.prototype.forEach&&document.querySelectorAll?(oe("Setting up location.hash handlers"),i(),a(),s()):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}T.enable?u():oe("In page linking not enabled");return{findTarget:o}}(),be("init","Init message from host page"),J()}function ae(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,oe("Body "+e+' set to "'+n+'"'))}function se(e){var t={add:function(t){function n(){be(e.eventName,e.eventType)}Y[t]=n,$(window,t,n)},remove:function(e){var t=Y[e];delete Y[e],ee(window,e,t)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),oe(te(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"===j&&se({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ce(e,t,n,o){return t!==e&&(e in n||(re(e+" is not a valid option for "+o+"CalculationMethod."),e=t),oe(o+' calculation method set to "'+e+'"')),e}function le(){k=ce(k,b,K,"height")}function fe(){D=ce(D,H,Q,"width")}function de(){var e;!0===c?(ue("add"),e=0>_,window.MutationObserver||window.WebKitMutationObserver?e?me():h=function(){function e(e){function t(e){!1===e.complete&&(oe("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",a,!1),c.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function n(e){c.splice(c.indexOf(e),1)}function o(e){oe("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",a,!1),n(e)}function r(e,n,r){o(e.target),be(n,r+": "+e.target.src,t,t)}function i(e){r(e,"imageLoad","Image loaded")}function a(e){r(e,"imageLoadFailed","Image load failed")}function s(t){be("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function u(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return f=new l(s),oe("Create body MutationObserver"),f.observe(e,t),f}var c=[],l=window.MutationObserver||window.WebKitMutationObserver,f=u();return{disconnect:function(){"disconnect"in f&&(oe("Disconnect body MutationObserver"),f.disconnect(),c.forEach(o))}}}():(oe("MutationObserver not supported in this browser!"),me())):oe("Auto Resize disabled")}function he(){ue("remove"),null!==h&&h.disconnect(),clearInterval(x)}function me(){0!==_&&(oe("setInterval: "+_+"ms"),x=setInterval((function(){be("interval","setInterval: "+_)}),Math.abs(_)))}function pe(e,t){var n=0;return t=t||document.body,n="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0:function(e){if(/^\d+(px)?$/i.test(e))return parseInt(e,10);var n=t.style.left,o=t.runtimeStyle.left;return t.runtimeStyle.left=t.currentStyle.left,t.style.left=e||0,e=t.style.pixelLeft,t.style.left=n,t.runtimeStyle.left=o,e}(t.currentStyle[e]),parseInt(n,10)}function ge(e,t){for(var n=t.length,o=0,r=0,i=te(e),a=X(),s=0;s<n;s++)(o=t[s].getBoundingClientRect()[e]+pe("margin"+i,t[s]))>r&&(r=o);return a=X()-a,oe("Parsed "+n+" HTML elements"),oe("Element position calculated in "+a+"ms"),function(e){e>q/2&&oe("Event throttle increased to "+(q=2*e)+"ms")}(a),r}function ve(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function we(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ge(e,n)}function ye(){return document.querySelectorAll("body *")}function be(e,t,n,o){z&&e in g?oe("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||oe("Trigger event: "+t),Z(e,t,n,o))}function ke(){z||(z=!0,oe("Trigger event lock on")),clearTimeout(L),L=setTimeout((function(){z=!1,oe("Trigger event lock off"),oe("--")}),v)}function Oe(e){y=K[k](),W=Q[D](),Te(y,W,e)}function Ee(e){var t=k;k=b,oe("Reset trigger event: "+e),ke(),Oe("reset"),k=t}function Te(e,n,o,r,i){var a;!0===P&&(t===i?i=F:oe("Message targetOrigin: "+i),oe("Sending message to host page ("+(a=C+":"+e+":"+n+":"+o+(t!==r?":"+r:""))+")"),N.postMessage(S+a,i))}function _e(t){var n={init:function(){"interactive"===document.readyState||"complete"===document.readyState?(E=t.data,N=t.source,ie(),w=!1,setTimeout((function(){O=!1}),v)):(oe("Waiting for page ready"),$(window,"readystatechange",n.initFromParent))},reset:function(){O?oe("Page reset ignored by init"):(oe("Page size reset by host page"),Oe("resetPage"))},resize:function(){be("resizeParent","Parent window requested size check")},moveToAnchor:function(){T.findTarget(r())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=r();oe("PageInfoFromParent called from parent: "+e),V(JSON.parse(e)),oe(" --")},message:function(){var e=r();oe("MessageCallback called from parent: "+e),U(JSON.parse(e)),oe(" --")}};function o(){return t.data.split("]")[1].split(":")[0]}function r(){return t.data.substr(t.data.indexOf(":")+1)}function i(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var r=o();r in n?n[r]():!e.exports&&"iFrameResize"in window||i()||re("Unexpected message ("+t.data+")")}S===(""+t.data).substr(0,I)&&(!1===w?a():i()?n.init():oe('Ignored message of type "'+o()+'". Received before initialization.'))}}()},28:(e,t)=>{var n,o,r;!function(i){"use strict";if("undefined"!=typeof window){var a,s=0,u=!1,c=!1,l="message".length,f="[iFrameSizer]",d=f.length,h=null,m=window.requestAnimationFrame,p={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},v=null,w={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,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){_("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){L(n,e)})).end()}):T("","Unable to bind to jQuery, it is not fully loaded.")),o=[],(r="function"==typeof(n=function(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),L(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!m;e+=1)m=window[t[e]+"RequestAnimationFrame"];m||E("setup","RequestAnimationFrame not supported")}(),y(window,"message",M),y(window,"resize",(function(){W("resize")})),y(document,"visibilitychange",H),y(document,"-webkit-visibilitychange",H),y(window,"focusin",(function(){W("focus")})),y(window,"focus",(function(){W("focus")})),function(n,o){switch(t=[],function(e){e&&e.enablePublicMethods&&_("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(i,n));break;case"object":e(n,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}})?n.apply(t,o):n)===i||(e.exports=r)}function y(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function b(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function k(e){return f+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function O(e){return g[e]?g[e].log:u}function E(e,t){x("log",e,t,O(e))}function T(e,t){x("info",e,t,O(e))}function _(e,t){x("warn",e,t,!0)}function x(e,t,n,o){!0===o&&"object"==typeof window.console&&console[e](k(t),n)}function M(e){function t(){n("Height"),n("Width"),F((function(){N(w),A(k),u("resizedCallback",w)}),w,"init")}function n(e){var t=Number(g[k]["max"+e]),n=Number(g[k]["min"+e]),o=e.toLowerCase(),r=Number(w[o]);E(k,"Checking "+o+" is in range "+n+"-"+t),r<n&&(r=n,E(k,"Set "+o+" to min value")),r>t&&(r=t,E(k,"Set "+o+" to max value")),w[o]=""+r}function o(e){return v.substr(v.indexOf(":")+l+e)}function r(e,t){q((function(){var n,o;R("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),o=w.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-n.top,10),offsetLeft:parseInt(o.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})),e,t)}),32)}function i(e){var t=e.getBoundingClientRect();return C(k),{x:Math.floor(Number(t.left)+Number(h.x)),y:Math.floor(Number(t.top)+Number(h.y))}}function a(e){var t=e?i(w.iframe):{x:0,y:0},n={x:Number(w.width)+t.x,y:Number(w.height)+t.y};E(k,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):_(k,"Unable to scroll to requested position, window.parentIFrame not found"):(h=n,s(),E(k,"--"))}function s(){!1!==u("scrollCallback",h)?A(k):j()}function u(e,t){return S(k,e,t)}var c,m,p,v=e.data,w={},k=null;"[iFrameResizerChild]Ready"===v?function(){for(var e in g)R("iFrame requested init",z(e),document.getElementById(e),e)}():f===(""+v).substr(0,d)&&v.substr(d).split(":")[0]in g?(p=v.substr(d).split(":"),w={iframe:g[p[0]]&&g[p[0]].iframe,id:p[0],height:p[1],width:p[2],type:p[3]},k=w.id,g[k]&&(g[k].loaded=!0),(m=w.type in{true:1,false:1,undefined:1})&&E(k,"Ignoring init message from meta parent page"),!m&&function(e){var t=!0;return g[e]||(t=!1,_(w.type+" No settings for "+e+". Message was: "+v)),t}(k)&&(E(k,"Received: "+v),c=!0,null===w.iframe&&(_(k,"IFrame ("+w.id+") not found"),c=!1),c&&function(){var t,n=e.origin,o=g[k]&&g[k].checkOrigin;if(o&&""+n!="null"&&!(o.constructor===Array?function(){var e=0,t=!1;for(E(k,"Checking connection is from allowed list of origins: "+o);e<o.length;e++)if(o[e]===n){t=!0;break}return t}():(t=g[k]&&g[k].remoteHost,E(k,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+w.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),w.type){case"close":g[k].closeRequestCallback?S(k,"closeRequestCallback",g[k].iframe):I(w.iframe);break;case"message":e=o(6),E(k,"MessageCallback passed: {iframe: "+w.iframe.id+", message: "+e+"}"),u("messageCallback",{iframe:w.iframe,message:JSON.parse(e)}),E(k,"--");break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":r(g[k]&&g[k].iframe,k),function(){function e(e,o){function i(){g[n]?r(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){E(n,e+t+" listener for sendPageInfo"),o(window,t,i)}))}function t(){e("Remove ",b)}var n=k;e("Add ",y),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[k]&&g[k].stopPageInfo&&(g[k].stopPageInfo(),delete g[k].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",o=decodeURIComponent(n),r=document.getElementById(o)||document.getElementsByName(o)[0];r?(t=i(r),E(k,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),h={x:t.x,y:t.y},s(),E(k,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):E(k,"In page link #"+n+" not found and window.parentIFrame not found"):E(k,"In page link #"+n+" not found")}(o(9));break;case"reset":P(w);break;case"init":t(),u("initCallback",w.iframe);break;default:t()}var e}())):T(k,"Ignored: "+v)}function S(e,t,n){var o=null,r=null;if(g[e]){if("function"!=typeof(o=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=o(n)}return r}function I(e){var t=e.id;E(t,"Removing iFrame: "+t),e.parentNode&&e.parentNode.removeChild(e),S(t,"closedCallback",t),E(t,"--"),delete g[t]}function C(e){null===h&&E(e,"Get page position: "+(h={x:window.pageXOffset!==i?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==i?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function A(e){null!==h&&(window.scrollTo(h.x,h.y),E(e,"Set page position: "+h.x+","+h.y),j())}function j(){h=null}function P(e){E(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),C(e.id),F((function(){N(e),R("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function t(t){c||"0"!==e[t]||(c=!0,E(o,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}function n(e){return null!==e.offsetParent}g[e]&&n(g[e].iframe)&&(t("height")||t("width"))&&R("Visibility change","resize",g[e].iframe,e)}for(var t in g)e(t)}function t(t){E("window","Mutation observed: "+t[0].target+" "+t[0].type),q(e,16)}function n(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new o(t).observe(e,n)}var o=window.MutationObserver||window.WebKitMutationObserver;o&&n()}())}function n(n){!function(t){e.iframe.style[t]=e[t]+"px",E(e.id,"IFrame ("+o+") "+t+" set to "+e[t]+"px")}(n),t(n)}var o=e.iframe.id;g[o]&&(g[o].sizeHeight&&n("height"),g[o].sizeWidth&&n("width"))}function F(e,t,n){n!==t.type&&m?(E(t.id,"Requesting animation frame"),m(e)):e()}function R(e,t,n,o,r){var i,a=!1;o=o||n.id,g[o]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=g[o]&&g[o].targetOrigin,E(o,"["+e+"] Sending msg to iframe["+o+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(f+t,i)):_(o,"["+e+"] IFrame("+o+") not found"),r&&g[o]&&g[o].warningTimeout&&(g[o].msgTimeout=setTimeout((function(){!g[o]||g[o].loaded||a||(a=!0,_(o,"IFrame has not responded within "+g[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored 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 z(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}function L(e,t){var n,o=function(n){var o;return n,""===n&&(e.id=(o=t&&t.id||w.id+s++,null!==document.getElementById(o)&&(o+=s++),n=o),u=(t||{}).log,n,E(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);o in g&&"iFrameResizer"in e?_(o,"Ignored iFrame, already setup."):(!function(t){var n;t=t||{},g[o]={firstRun:!0,iframe:e,remoteHost:e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),function(e){for(var t in w)w.hasOwnProperty(t)&&(g[o][t]=e.hasOwnProperty(t)?e[t]:w[t])}(t),g[o]&&(g[o].targetOrigin=!0===g[o].checkOrigin?""===(n=g[o].remoteHost)||"file://"===n?"*":n:"*")}(t),function(){switch(E(o,"IFrame scrolling "+(g[o]&&g[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=!1===(g[o]&&g[o].scrolling)?"hidden":"auto",g[o]&&g[o].scrolling){case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[o]?g[o].scrolling:"no"}}(),function(){function t(t){1/0!==g[o][t]&&0!==g[o][t]&&(e.style[t]=g[o][t]+"px",E(o,"Set "+t+" = "+g[o][t]+"px"))}function n(e){if(g[o]["min"+e]>g[o]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[o]&&g[o].bodyMargin)&&"0"!==(g[o]&&g[o].bodyMargin)||(g[o].bodyMarginV1=g[o].bodyMargin,g[o].bodyMargin=g[o].bodyMargin+"px"),n=z(o),y(e,"load",(function(){var t,r;R("iFrame.onload",n,e,i,!0),t=g[o]&&g[o].firstRun,r=g[o]&&g[o].heightCalculationMethod in p,!t&&r&&P({iframe:e,height:0,width:0,type:"init"})})),R("init",n,e,i,!0),Function.prototype.bind&&g[o]&&(g[o].iframe.iFrameResizer={close:I.bind(null,g[o].iframe),resize:R.bind(null,"Window resize","resize",g[o].iframe),moveToAnchor:function(e){R("Move to anchor","moveToAnchor:"+e,g[o].iframe,o)},sendMessage:function(e){R("Send Message","message:"+(e=JSON.stringify(e)),g[o].iframe,o)}}))}function q(e,t){null===v&&(v=setTimeout((function(){v=null,e()}),t))}function W(e){E("window","Trigger event: "+e),q((function(){D("Window "+e,"resize")}),16)}function H(){"hidden"!==document.visibilityState&&(E("document","Trigger event: Visiblity change"),q((function(){D("Tab Visable","resize")}),16))}function D(e,t){function n(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun}for(var o in g)n(o)&&R(e,t,document.getElementById(o),o)}}()},683:(e,t,n)=>{t.iframeResizer=n(28),t.iframeResizerContentWindow=n(402)},457:e=>{var t=function(){"use strict";var e=Math.floor(1000001*Math.random()),t={};function n(e){return Array.isArray?Array.isArray(e):-1!=e.constructor.toString().indexOf("Array")}var o={},r=function(e){try{var n=JSON.parse(e.data);if("object"!=typeof n||null===n)throw"malformed"}catch(e){return}var r,i,a,s=e.source,u=e.origin;if("string"==typeof n.method){var c=n.method.split("::");2==c.length?(r=c[0],a=c[1]):a=n.method}if(void 0!==n.id&&(i=n.id),"string"==typeof a){var l=!1;if(t[u]&&t[u][r])for(var f=0;f<t[u][r].length;f++)if(t[u][r][f].win===s){t[u][r][f].handler(u,a,n),l=!0;break}if(!l&&t["*"]&&t["*"][r])for(f=0;f<t["*"][r].length;f++)if(t["*"][r][f].win===s){t["*"][r][f].handler(u,a,n);break}}else void 0!==i&&o[i]&&o[i](u,a,n)};return window.addEventListener?window.addEventListener("message",r,!1):window.attachEvent&&window.attachEvent("onmessage",r),{build:function(r){var i=function(e){if(r.debugOutput&&window.console&&window.console.log){try{"string"!=typeof e&&(e=JSON.stringify(e))}catch(e){}console.log("["+u+"] "+e)}};if(!window.postMessage)throw"jschannel cannot run this browser, no postMessage";if(!window.JSON||!window.JSON.stringify||!window.JSON.parse)throw"jschannel cannot run this browser, no JSON parsing/serialization";if("object"!=typeof r)throw"Channel build invoked without a proper object argument";if(!r.window||!r.window.postMessage)throw"Channel.build() called without a valid window argument";if(window===r.window)throw"target window is same as present window -- not allowed";var a,s=!1;"string"==typeof r.origin&&("*"===r.origin?s=!0:null!==(a=r.origin.match(/^https?:\/\/(?:[-a-zA-Z0-9_\.])+(?::\d+)?/))&&(r.origin=a[0].toLowerCase(),s=!0));if(!s)throw"Channel.build() called with an invalid origin";if(void 0!==r.scope){if("string"!=typeof r.scope)throw"scope, when specified, must be a string";if(r.scope.split("::").length>1)throw"scope may not contain double colons: '::'"}var u=function(){for(var e="",t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n=0;n<5;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}(),c={},l={},f={},d=!1,h=[],m=function(e,t,a){if("function"==typeof r.gotMessageObserver)try{r.gotMessageObserver(e,a)}catch(e){i("gotMessageObserver() raised an exception: "+e.toString())}if(a.id&&t){if(c[t]){var s=function(e,t,n){var o=!1,r=!1;return{origin:t,invoke:function(t,o){if(!f[e])throw"attempting to invoke a callback of a nonexistent transaction: "+e;for(var r=!1,i=0;i<n.length;i++)if(t===n[i]){r=!0;break}if(!r)throw"request supports no such callback '"+t+"'";g({id:e,callback:t,params:o})},error:function(t,n){if(r=!0,!f[e])throw"error called for nonexistent message: "+e;delete f[e],g({id:e,error:t,message:n})},complete:function(t){if(r=!0,!f[e])throw"complete called for nonexistent message: "+e;delete f[e],g({id:e,result:t})},delayReturn:function(e){return"boolean"==typeof e&&(o=!0===e),o},completed:function(){return r}}}(a.id,e,a.callbacks?a.callbacks:[]);f[a.id]={};try{if(a.callbacks&&n(a.callbacks)&&a.callbacks.length>0)for(var u=0;u<a.callbacks.length;u++){for(var d=a.callbacks[u],h=a.params,m=d.split("/"),p=0;p<m.length-1;p++){var v=m[p];"object"!=typeof h[v]&&(h[v]={}),h=h[v]}h[m[m.length-1]]=function(){var e=d;return function(t){return s.invoke(e,t)}}()}var w=c[t](s,a.params);s.delayReturn()||s.completed()||s.complete(w)}catch(e){var y="runtime_error",b=null;if("string"==typeof e?b=e:"object"==typeof e&&(e&&n(e)&&2==e.length?(y=e[0],b=e[1]):"string"==typeof e.error&&(y=e.error,e.message?"string"==typeof e.message?b=e.message:e=e.message:b="")),null===b)try{void 0===(b=JSON.stringify(e))&&(b=e.toString())}catch(t){b=e.toString()}s.error(y,b)}}}else a.id&&a.callback?l[a.id]&&l[a.id].callbacks&&l[a.id].callbacks[a.callback]?l[a.id].callbacks[a.callback](a.params):i("ignoring invalid callback, id:"+a.id+" ("+a.callback+")"):a.id?l[a.id]?(a.error?(0,l[a.id].error)(a.error,a.message):void 0!==a.result?(0,l[a.id].success)(a.result):(0,l[a.id].success)(),delete l[a.id],delete o[a.id]):i("ignoring invalid response: "+a.id):t&&c[t]&&c[t]({origin:e},a.params)};!function(e,n,o,r){function i(t){for(var n=0;n<t.length;n++)if(t[n].win===e)return!0;return!1}var a=!1;if("*"===n){for(var s in t)if(t.hasOwnProperty(s)&&"*"!==s&&"object"==typeof t[s][o]&&(a=i(t[s][o])))break}else t["*"]&&t["*"][o]&&(a=i(t["*"][o])),!a&&t[n]&&t[n][o]&&(a=i(t[n][o]));if(a)throw"A channel is already bound to the same window which overlaps with origin '"+n+"' and has scope '"+o+"'";"object"!=typeof t[n]&&(t[n]={}),"object"!=typeof t[n][o]&&(t[n][o]=[]),t[n][o].push({win:e,handler:r})}(r.window,r.origin,"string"==typeof r.scope?r.scope:"",m);var p=function(e){return"string"==typeof r.scope&&r.scope.length&&(e=[r.scope,e].join("::")),e},g=function(e,t){if(!e)throw"postMessage called with null message";if(i((d?"post  ":"queue ")+" message: "+JSON.stringify(e)),t||d){if("function"==typeof r.postMessageObserver)try{r.postMessageObserver(r.origin,e)}catch(e){i("postMessageObserver() raised an exception: "+e.toString())}r.window.postMessage(JSON.stringify(e),r.origin)}else h.push(e)},v={unbind:function(e){if(c[e]){if(!delete c[e])throw"can't delete method: "+e;return!0}return!1},bind:function(e,t){if(!e||"string"!=typeof e)throw"'method' argument to bind must be string";if(!t||"function"!=typeof t)throw"callback missing from bind params";if(c[e])throw"method '"+e+"' is already bound!";return c[e]=t,this},call:function(t){if(!t)throw"missing arguments to call function";if(!t.method||"string"!=typeof t.method)throw"'method' argument to call must be string";if(!t.success||"function"!=typeof t.success)throw"'success' callback missing from call";var n={},r=[],i=[],a=function(e,t){if(i.indexOf(t)>=0)throw"params cannot be a recursive data structure";if(i.push(t),"object"==typeof t)for(var o in t)if(t.hasOwnProperty(o)){var s=e+(e.length?"/":"")+o;"function"==typeof t[o]?(n[s]=t[o],r.push(s),delete t[o]):"object"==typeof t[o]&&null!==t[o]&&a(s,t[o])}};a("",t.params);var s,u,c,f={id:e,method:p(t.method),params:t.params};r.length&&(f.callbacks=r),t.timeout&&(s=e,u=t.timeout,c=p(t.method),window.setTimeout((function(){if(l[s]){var e="timeout ("+u+"ms) exceeded on method '"+c+"'";(0,l[s].error)("timeout_error",e),delete l[s],delete o[s]}}),u)),l[e]={callbacks:n,error:t.error,success:t.success},o[e]=m,e++,g(f)},notify:function(e){if(!e)throw"missing arguments to notify function";if(!e.method||"string"!=typeof e.method)throw"'method' argument to notify must be string";g({method:p(e.method),params:e.params})},destroy:function(){!function(e,n,o){for(var r=t[n][o],i=0;i<r.length;i++)r[i].win===e&&r.splice(i,1);0===t[n][o].length&&delete t[n][o]}(r.window,r.origin,"string"==typeof r.scope?r.scope:""),window.removeEventListener?window.removeEventListener("message",m,!1):window.detachEvent&&window.detachEvent("onmessage",m),d=!1,c={},f={},l={},r.origin=null,h=[],i("channel destroyed"),u=""}};return v.bind("__ready",(function(e,t){if(i("ready msg received"),d)throw"received ready message while in ready state.  help!";for(u+="ping"===t?"-R":"-L",v.unbind("__ready"),d=!0,i("ready msg accepted."),"ping"===t&&v.notify({method:"__ready",params:"pong"});h.length;)g(h.pop());"function"==typeof r.onReady&&r.onReady(v)})),setTimeout((function(){g({method:p("__ready"),params:"ping"},!0)}),0),v}}}();e.exports=t},705:(e,t,n)=>{var o=n(639).Symbol;e.exports=o},239:(e,t,n)=>{var o=n(705),r=n(607),i=n(333),a=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):i(e)}},957:(e,t,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},924:(e,t,n)=>{var o=n(569)(Object.getPrototypeOf,Object);e.exports=o},607:(e,t,n)=>{var o=n(705),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,s=o?o.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var o=!0}catch(e){}var r=a.call(e);return o&&(t?e[s]=n:delete e[s]),r}},333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},639:(e,t,n)=>{var o=n(957),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();e.exports=i},469:e=>{var t=Array.isArray;e.exports=t},5:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},630:(e,t,n)=>{var o=n(239),r=n(924),i=n(5),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},37:(e,t,n)=>{var o=n(239),r=n(469),i=n(5);e.exports=function(e){return"string"==typeof e||!r(e)&&i(e)&&"[object String]"==o(e)}},353:e=>{e.exports=function(e){return void 0===e}},327:()=>{}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var o=n(541);Addon=o})();
  //# sourceMappingURL=addon.min.js.map