UNPKG

@nodecg/types

Version:

Dynamic broadcast graphics rendered in a browser

5 lines (4 loc) 1.27 MB
"use strict";(()=>{var hT=Object.create;var pd=Object.defineProperty,fT=Object.defineProperties,mT=Object.getOwnPropertyDescriptor,gT=Object.getOwnPropertyDescriptors,_T=Object.getOwnPropertyNames,dd=Object.getOwnPropertySymbols,vT=Object.getPrototypeOf,Jf=Object.prototype.hasOwnProperty,Hy=Object.prototype.propertyIsEnumerable;var Oy=(e,t,n)=>t in e?pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||(t={}))Jf.call(t,n)&&Oy(e,n,t[n]);if(dd)for(var n of dd(t))Hy.call(t,n)&&Oy(e,n,t[n]);return e},A=(e,t)=>fT(e,gT(t));var Ki=(e,t)=>{var n={};for(var r in e)Jf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&dd)for(var r of dd(e))t.indexOf(r)<0&&Hy.call(e,r)&&(n[r]=e[r]);return n};var y=(e,t)=>()=>(e&&(t=e(e=0)),t);var Tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qf=(e,t)=>{for(var n in t)pd(e,n,{get:t[n],enumerable:!0})},yT=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _T(t))!Jf.call(e,i)&&i!==n&&pd(e,i,{get:()=>t[i],enumerable:!(r=mT(t,i))||r.enumerable});return e};var Xi=(e,t,n)=>(n=e!=null?hT(vT(e)):{},yT(t||!e||!e.__esModule?pd(n,"default",{value:e,enumerable:!0}):n,e));var ce=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(l){i(l)}},s=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});var Dy=Tt(Py=>{(function(){"use strict";var e=!(window.ShadyDOM&&window.ShadyDOM.inUse),t;function n(b){t=b&&b.shimcssproperties?!1:e||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var r;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(r=window.ShadyCSS.cssBuild);var i=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?t=window.ShadyCSS.nativeCss:window.ShadyCSS?(n(window.ShadyCSS),window.ShadyCSS=void 0):n(window.WebComponents&&window.WebComponents.flags);var o=t;function s(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function a(b){var x=b=b.replace(v,"").replace(m,""),k=new s;k.start=0,k.end=x.length;for(var L=k,P=0,D=x.length;P<D;P++)if(x[P]==="{"){L.rules||(L.rules=[]);var be=L,ue=be.rules[be.rules.length-1]||null;L=new s,L.start=P+1,L.parent=be,L.previous=ue,be.rules.push(L)}else x[P]==="}"&&(L.end=P+1,L=L.parent||k);return c(k,b)}function c(b,x){var k=x.substring(b.start,b.end-1);if(b.parsedCssText=b.cssText=k.trim(),b.parent&&(k=x.substring(b.previous?b.previous.end:b.parent.start,b.start-1),k=l(k),k=k.replace(H," "),k=k.substring(k.lastIndexOf(";")+1),k=b.parsedSelector=b.selector=k.trim(),b.atRule=k.indexOf("@")===0,b.atRule?k.indexOf("@media")===0?b.type=h:k.match(M)&&(b.type=u,b.keyframesName=b.selector.split(H).pop()):b.type=k.indexOf("--")===0?g:d),k=b.rules)for(var L=0,P=k.length,D=void 0;L<P&&(D=k[L]);L++)c(D,x);return b}function l(b){return b.replace(/\\([0-9a-f]{1,6})\s/gi,function(x,k){for(x=k,k=6-x.length;k--;)x="0"+x;return"\\"+x})}function p(b,x,k){k=k===void 0?"":k;var L="";if(b.cssText||b.rules){var P=b.rules,D;if((D=P)&&(D=P[0],D=!(D&&D.selector&&D.selector.indexOf("--")===0)),D){D=0;for(var be=P.length,ue=void 0;D<be&&(ue=P[D]);D++)L=p(ue,x,L)}else x?x=b.cssText:(x=b.cssText,x=x.replace(_,"").replace(S,""),x=x.replace(w,"").replace(z,"")),(L=x.trim())&&(L=" "+L+` `)}return L&&(b.selector&&(k+=b.selector+` { `),k+=L,b.selector&&(k+=`} `)),k}var d=1,u=7,h=4,g=1e3,v=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,m=/@import[^;]*;/gim,_=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,S=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,w=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,z=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,M=/^@[^\s]*keyframes/,H=/\s+/g,R=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Q=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Se=/@media\s(.*)/,$=new Set;function K(b){return b?(typeof b=="string"&&(b=a(b)),p(b,o)):""}function se(b){return!b.__cssRules&&b.textContent&&(b.__cssRules=a(b.textContent)),b.__cssRules||null}function ie(b,x,k,L){if(b){var P=!1,D=b.type;if(L&&D===h){var be=b.selector.match(Se);be&&(window.matchMedia(be[1]).matches||(P=!0))}if(D===d?x(b):k&&D===u?k(b):D===g&&(P=!0),(b=b.rules)&&!P)for(P=0,D=b.length,be=void 0;P<D&&(be=b[P]);P++)ie(be,x,k,L)}}function ye(b,x){var k=b.indexOf("var(");if(k===-1)return x(b,"","","");e:{for(var L=0,P=k+3,D=b.length;P<D;P++)if(b[P]==="(")L++;else if(b[P]===")"&&--L===0)break e;P=-1}return L=b.substring(k+4,P),k=b.substring(0,k),b=ye(b.substring(P+1),x),P=L.indexOf(","),P===-1?x(k,L.trim(),"",b):x(k,L.substring(0,P).trim(),L.substring(P+1).trim(),b)}function ke(b){if(r!==void 0)return r;if(b.__cssBuild===void 0){var x=b.getAttribute("css-build");if(x)b.__cssBuild=x;else{e:{if(x=b.localName==="template"?b.content.firstChild:b.firstChild,x instanceof Comment&&(x=x.textContent.trim().split(":"),x[0]==="css-build")){x=x[1];break e}x=""}if(x!==""){var k=b.localName==="template"?b.content.firstChild:b.firstChild;k.parentNode.removeChild(k)}b.__cssBuild=x}}return b.__cssBuild||""}var de=/;\s*/m,Ce=/^\s*(initial)|(inherit)\s*$/,Re=/\s*!important/;function Le(){this.g={}}Le.prototype.set=function(b,x){b=b.trim(),this.g[b]={m:x,o:{}}},Le.prototype.get=function(b){return b=b.trim(),this.g[b]||null};var q=null;function V(){this.h=this.i=null,this.g=new Le}V.prototype.A=function(b){return b=Q.test(b)||R.test(b),Q.lastIndex=0,R.lastIndex=0,b},V.prototype.v=function(b,x){if(b._gatheredStyle===void 0){for(var k=[],L=b.content.querySelectorAll("style"),P=0;P<L.length;P++){var D=L[P];if(D.hasAttribute("shady-unscoped")){if(!e){var be=D.textContent;if(!$.has(be)){$.add(be);var ue=document.createElement("style");ue.setAttribute("shady-unscoped",""),ue.textContent=be,document.head.appendChild(ue)}D.parentNode.removeChild(D)}}else k.push(D.textContent),D.parentNode.removeChild(D)}(k=k.join("").trim())?(L=document.createElement("style"),L.textContent=k,b.content.insertBefore(L,b.content.firstChild),k=L):k=null,b._gatheredStyle=k}return(b=b._gatheredStyle)?this.s(b,x):null},V.prototype.s=function(b,x){x=x===void 0?"":x;var k=se(b);return this.u(k,x),b.textContent=K(k),k},V.prototype.j=function(b){var x=this,k=se(b);return ie(k,function(L){L.selector===":root"&&(L.selector="html"),x.l(L)}),b.textContent=K(k),k},V.prototype.u=function(b,x){var k=this;this.i=x,ie(b,function(L){k.l(L)}),this.i=null},V.prototype.l=function(b){b.cssText=Y(this,b.parsedCssText,b),b.selector===":root"&&(b.selector=":host > *")};function Y(b,x,k){return x=x.replace(R,function(L,P,D,be){return jt(b,L,P,D,be,k)}),oe(b,x,k)}function ne(b,x){for(var k=x;k.parent;)k=k.parent;var L={},P=!1;return ie(k,function(D){(P=P||D===x)||D.selector===x.selector&&Object.assign(L,he(b,D.parsedCssText))}),L}function oe(b,x,k){for(var L;L=Q.exec(x);){var P=L[0],D=L[1];L=L.index;var be=x.slice(0,L+P.indexOf("@apply"));x=x.slice(L+P.length);var ue=k?ne(b,k):{};Object.assign(ue,he(b,be)),P=void 0;var $e=b;D=D.replace(de,"");var kt=[],mt=$e.g.get(D);if(mt||($e.g.set(D,{}),mt=$e.g.get(D)),mt){$e.i&&(mt.o[$e.i]=!0);var te=mt.m;for(P in te)$e=ue&&ue[P],mt=[P,": var(",D,"_-_",P],$e&&mt.push(",",$e.replace(Re,"")),mt.push(")"),Re.test(te[P])&&mt.push(" !important"),kt.push(mt.join(""))}P=kt.join("; "),x=be+P+x,Q.lastIndex=L+P.length}return x}function he(b,x,k){k=k===void 0?!1:k,x=x.split(";");for(var L,P,D={},be=0,ue;be<x.length;be++)if((L=x[be])&&(ue=L.split(":"),1<ue.length)){if(L=ue[0].trim(),P=ue.slice(1).join(":"),k){var $e=b;ue=L;var kt=Ce.exec(P);kt&&(kt[1]?($e.h||($e.h=document.createElement("meta"),$e.h.setAttribute("apply-shim-measure",""),$e.h.style.all="initial",document.head.appendChild($e.h)),ue=window.getComputedStyle($e.h).getPropertyValue(ue)):ue="apply-shim-inherit",P=ue)}D[L]=P}return D}function at(b,x){if(q)for(var k in x.o)k!==b.i&&q(k)}function jt(b,x,k,L,P,D){if(L&&ye(L,function(yt,Rt){Rt&&b.g.get(Rt)&&(P="@apply "+Rt+";")}),!P)return x;var be=oe(b,""+P,D);D=x.slice(0,x.indexOf("--"));var ue=be=he(b,be,!0),$e=b.g.get(k),kt=$e&&$e.m;kt?ue=Object.assign(Object.create(kt),be):b.g.set(k,ue);var mt=[],te,ae=!1;for(te in ue){var Qe=be[te];Qe===void 0&&(Qe="initial"),!kt||te in kt||(ae=!0),mt.push(k+"_-_"+te+": "+Qe)}return ae&&at(b,$e),$e&&($e.m=ue),L&&(D=x+";"+D),D+mt.join("; ")+";"}V.prototype.detectMixin=V.prototype.A,V.prototype.transformStyle=V.prototype.s,V.prototype.transformCustomStyle=V.prototype.j,V.prototype.transformRules=V.prototype.u,V.prototype.transformRule=V.prototype.l,V.prototype.transformTemplate=V.prototype.v,V.prototype._separator="_-_",Object.defineProperty(V.prototype,"invalidCallback",{get:function(){return q},set:function(b){q=b}});var an={},vn=Promise.resolve();function cn(b){(b=an[b])&&(b._applyShimCurrentVersion=b._applyShimCurrentVersion||0,b._applyShimValidatingVersion=b._applyShimValidatingVersion||0,b._applyShimNextVersion=(b._applyShimNextVersion||0)+1)}function lr(b){return b._applyShimCurrentVersion===b._applyShimNextVersion}function ii(b){b._applyShimValidatingVersion=b._applyShimNextVersion,b._validating||(b._validating=!0,vn.then(function(){b._applyShimCurrentVersion=b._applyShimNextVersion,b._validating=!1}))}var C=new V;function G(){this.g=null,C.invalidCallback=cn}function F(b){!b.g&&window.ShadyCSS.CustomStyleInterface&&(b.g=window.ShadyCSS.CustomStyleInterface,b.g.transformCallback=function(x){C.j(x)},b.g.validateCallback=function(){requestAnimationFrame(function(){b.g.enqueued&&b.flushCustomStyles()})})}if(G.prototype.prepareTemplate=function(b,x){F(this),ke(b)===""&&(an[x]=b,x=C.v(b,x),b._styleAst=x)},G.prototype.flushCustomStyles=function(){if(F(this),this.g){var b=this.g.processStyles();if(this.g.enqueued){for(var x=0;x<b.length;x++){var k=this.g.getStyleForCustomStyle(b[x]);k&&C.j(k)}this.g.enqueued=!1}}},G.prototype.styleSubtree=function(b,x){if(F(this),x)for(var k in x)k===null?b.style.removeProperty(k):b.style.setProperty(k,x[k]);if(b.shadowRoot)for(this.styleElement(b),b=b.shadowRoot.children||b.shadowRoot.childNodes,x=0;x<b.length;x++)this.styleSubtree(b[x]);else for(b=b.children||b.childNodes,x=0;x<b.length;x++)this.styleSubtree(b[x])},G.prototype.styleElement=function(b){F(this);var x=b.localName,k;x?-1<x.indexOf("-")?k=x:k=b.getAttribute&&b.getAttribute("is")||"":k=b.is,x=an[k],x&&ke(x)!==""||!x||lr(x)||((lr(x)||x._applyShimValidatingVersion!==x._applyShimNextVersion)&&(this.prepareTemplate(x,k),ii(x)),(b=b.shadowRoot)&&(b=b.querySelector("style"))&&(b.__cssRules=x._styleAst,b.textContent=K(x._styleAst)))},G.prototype.styleDocument=function(b){F(this),this.styleSubtree(document.body,b)},!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var W=new G,Ee=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(b,x){W.flushCustomStyles(),W.prepareTemplate(b,x)},prepareTemplateStyles:function(b,x,k){window.ShadyCSS.prepareTemplate(b,x,k)},prepareTemplateDom:function(){},styleSubtree:function(b,x){W.flushCustomStyles(),W.styleSubtree(b,x)},styleElement:function(b){W.flushCustomStyles(),W.styleElement(b)},styleDocument:function(b){W.flushCustomStyles(),W.styleDocument(b)},getComputedStyleValue:function(b,x){return(b=window.getComputedStyle(b).getPropertyValue(x))?b.trim():""},flushCustomStyles:function(){W.flushCustomStyles()},nativeCss:o,nativeShadow:e,cssBuild:r,disableRuntime:i},Ee&&(window.ShadyCSS.CustomStyleInterface=Ee)}window.ShadyCSS.ApplyShim=C}).call(Py)});var bm=Tt((pc,ym)=>{(function(t,n){typeof pc=="object"&&typeof ym=="object"?ym.exports=n():typeof define=="function"&&define.amd?define([],n):typeof pc=="object"?pc.ClipboardJS=n():t.ClipboardJS=n()})(pc,function(){return function(){var e={686:function(r,i,o){"use strict";o.d(i,{default:function(){return Le}});var s=o(279),a=o.n(s),c=o(370),l=o.n(c),p=o(817),d=o.n(p);function u(q){try{return document.execCommand(q)}catch(V){return!1}}var h=function(V){var Y=d()(V);return u("cut"),Y},g=h;function v(q){var V=document.documentElement.getAttribute("dir")==="rtl",Y=document.createElement("textarea");Y.style.fontSize="12pt",Y.style.border="0",Y.style.padding="0",Y.style.margin="0",Y.style.position="absolute",Y.style[V?"right":"left"]="-9999px";var ne=window.pageYOffset||document.documentElement.scrollTop;return Y.style.top="".concat(ne,"px"),Y.setAttribute("readonly",""),Y.value=q,Y}var m=function(V,Y){var ne=v(V);Y.container.appendChild(ne);var oe=d()(ne);return u("copy"),ne.remove(),oe},_=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ne="";return typeof V=="string"?ne=m(V,Y):V instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(V==null?void 0:V.type)?ne=m(V.value,Y):(ne=d()(V),u("copy")),ne},S=_;function w(q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(Y){return typeof Y}:w=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},w(q)}var z=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=V.action,ne=Y===void 0?"copy":Y,oe=V.container,he=V.target,at=V.text;if(ne!=="copy"&&ne!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(he!==void 0)if(he&&w(he)==="object"&&he.nodeType===1){if(ne==="copy"&&he.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ne==="cut"&&(he.hasAttribute("readonly")||he.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(at)return S(at,{container:oe});if(he)return ne==="cut"?g(he):S(he,{container:oe})},M=z;function H(q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(Y){return typeof Y}:H=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},H(q)}function R(q,V){if(!(q instanceof V))throw new TypeError("Cannot call a class as a function")}function Q(q,V){for(var Y=0;Y<V.length;Y++){var ne=V[Y];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(q,ne.key,ne)}}function Se(q,V,Y){return V&&Q(q.prototype,V),Y&&Q(q,Y),q}function $(q,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(V&&V.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),V&&K(q,V)}function K(q,V){return K=Object.setPrototypeOf||function(ne,oe){return ne.__proto__=oe,ne},K(q,V)}function se(q){var V=ke();return function(){var ne=de(q),oe;if(V){var he=de(this).constructor;oe=Reflect.construct(ne,arguments,he)}else oe=ne.apply(this,arguments);return ie(this,oe)}}function ie(q,V){return V&&(H(V)==="object"||typeof V=="function")?V:ye(q)}function ye(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function ke(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(q){return!1}}function de(q){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},de(q)}function Ce(q,V){var Y="data-clipboard-".concat(q);if(V.hasAttribute(Y))return V.getAttribute(Y)}var Re=function(q){$(Y,q);var V=se(Y);function Y(ne,oe){var he;return R(this,Y),he=V.call(this),he.resolveOptions(oe),he.listenClick(ne),he}return Se(Y,[{key:"resolveOptions",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof oe.action=="function"?oe.action:this.defaultAction,this.target=typeof oe.target=="function"?oe.target:this.defaultTarget,this.text=typeof oe.text=="function"?oe.text:this.defaultText,this.container=H(oe.container)==="object"?oe.container:document.body}},{key:"listenClick",value:function(oe){var he=this;this.listener=l()(oe,"click",function(at){return he.onClick(at)})}},{key:"onClick",value:function(oe){var he=oe.delegateTarget||oe.currentTarget,at=this.action(he)||"copy",jt=M({action:at,container:this.container,target:this.target(he),text:this.text(he)});this.emit(jt?"success":"error",{action:at,text:jt,trigger:he,clearSelection:function(){he&&he.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(oe){return Ce("action",oe)}},{key:"defaultTarget",value:function(oe){var he=Ce("target",oe);if(he)return document.querySelector(he)}},{key:"defaultText",value:function(oe){return Ce("text",oe)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(oe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(oe,he)}},{key:"cut",value:function(oe){return g(oe)}},{key:"isSupported",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],he=typeof oe=="string"?[oe]:oe,at=!!document.queryCommandSupported;return he.forEach(function(jt){at=at&&!!document.queryCommandSupported(jt)}),at}}]),Y}(a()),Le=Re},828:function(r){var i=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function s(a,c){for(;a&&a.nodeType!==i;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}r.exports=s},438:function(r,i,o){var s=o(828);function a(p,d,u,h,g){var v=l.apply(this,arguments);return p.addEventListener(u,v,g),{destroy:function(){p.removeEventListener(u,v,g)}}}function c(p,d,u,h,g){return typeof p.addEventListener=="function"?a.apply(null,arguments):typeof u=="function"?a.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(v){return a(v,d,u,h,g)}))}function l(p,d,u,h){return function(g){g.delegateTarget=s(g.target,d),g.delegateTarget&&h.call(p,g)}}r.exports=c},879:function(r,i){i.node=function(o){return o!==void 0&&o instanceof HTMLElement&&o.nodeType===1},i.nodeList=function(o){var s=Object.prototype.toString.call(o);return o!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in o&&(o.length===0||i.node(o[0]))},i.string=function(o){return typeof o=="string"||o instanceof String},i.fn=function(o){var s=Object.prototype.toString.call(o);return s==="[object Function]"}},370:function(r,i,o){var s=o(879),a=o(438);function c(u,h,g){if(!u&&!h&&!g)throw new Error("Missing required arguments");if(!s.string(h))throw new TypeError("Second argument must be a String");if(!s.fn(g))throw new TypeError("Third argument must be a Function");if(s.node(u))return l(u,h,g);if(s.nodeList(u))return p(u,h,g);if(s.string(u))return d(u,h,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(u,h,g){return u.addEventListener(h,g),{destroy:function(){u.removeEventListener(h,g)}}}function p(u,h,g){return Array.prototype.forEach.call(u,function(v){v.addEventListener(h,g)}),{destroy:function(){Array.prototype.forEach.call(u,function(v){v.removeEventListener(h,g)})}}}function d(u,h,g){return a(document.body,u,h,g)}r.exports=c},817:function(r){function i(o){var s;if(o.nodeName==="SELECT")o.focus(),s=o.value;else if(o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"){var a=o.hasAttribute("readonly");a||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),a||o.removeAttribute("readonly"),s=o.value}else{o.hasAttribute("contenteditable")&&o.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(o),c.removeAllRanges(),c.addRange(l),s=c.toString()}return s}r.exports=i},279:function(r){function i(){}i.prototype={on:function(o,s,a){var c=this.e||(this.e={});return(c[o]||(c[o]=[])).push({fn:s,ctx:a}),this},once:function(o,s,a){var c=this;function l(){c.off(o,l),s.apply(a,arguments)}return l._=s,this.on(o,l,a)},emit:function(o){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[o]||[]).slice(),c=0,l=a.length;for(c;c<l;c++)a[c].fn.apply(a[c].ctx,s);return this},off:function(o,s){var a=this.e||(this.e={}),c=a[o],l=[];if(c&&s)for(var p=0,d=c.length;p<d;p++)c[p].fn!==s&&c[p].fn._!==s&&l.push(c[p]);return l.length?a[o]=l:delete a[o],this}},r.exports=i,r.exports.TinyEmitter=i}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return function(){n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,{a:i}),i}}(),function(){n.d=function(r,i){for(var o in i)n.o(i,o)&&!n.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:i[o]})}}(),function(){n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)}}(),n(686)}().default})});var Rb=Tt((Fee,Sp)=>{(function(e){if(typeof window=="undefined")return;var t=0,n=!1,r=!1,i="message",o=i.length,s="[iFrameSizer]",a=s.length,c=null,l=window.requestAnimationFrame,p=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),d={},u=null,h=Object.freeze({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(){R("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}});function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function v(C,G,F){C.addEventListener(G,F,!1)}function m(C,G,F){C.removeEventListener(G,F,!1)}function _(){var C=["moz","webkit","o","ms"],G;for(G=0;G<C.length&&!l;G+=1)l=window[C[G]+"RequestAnimationFrame"];l?l=l.bind(window):M("setup","RequestAnimationFrame not supported")}function S(C){var G="Host page: "+C;return window.top!==window.self&&(G=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+C:"Nested host page: "+C),G}function w(C){return s+"["+S(C)+"]"}function z(C){return d[C]?d[C].log:n}function M(C,G){Q("log",C,G,z(C))}function H(C,G){Q("info",C,G,z(C))}function R(C,G){Q("warn",C,G,!0)}function Q(C,G,F,W){W===!0&&typeof window.console=="object"&&console[C](w(G),F)}function Se(C){function G(){function J(){Ce(Oe),ye(me),Lr("onResized",Oe)}b("Height"),b("Width"),Re(J,Oe,"init")}function F(){var J=ln.slice(a).split(":"),ge=J[1]?parseInt(J[1],10):0,Ve=d[J[0]]&&d[J[0]].iframe,Ge=getComputedStyle(Ve);return{iframe:Ve,id:J[0],height:ge+W(Ge)+Ee(Ge),width:J[2],type:J[3]}}function W(J){if(J.boxSizing!=="border-box")return 0;var ge=J.paddingTop?parseInt(J.paddingTop,10):0,Ve=J.paddingBottom?parseInt(J.paddingBottom,10):0;return ge+Ve}function Ee(J){if(J.boxSizing!=="border-box")return 0;var ge=J.borderTopWidth?parseInt(J.borderTopWidth,10):0,Ve=J.borderBottomWidth?parseInt(J.borderBottomWidth,10):0;return ge+Ve}function b(J){var ge=Number(d[me]["max"+J]),Ve=Number(d[me]["min"+J]),Ge=J.toLowerCase(),je=Number(Oe[Ge]);M(me,"Checking "+Ge+" is in range "+Ve+"-"+ge),je<Ve&&(je=Ve,M(me,"Set "+Ge+" to min value")),je>ge&&(je=ge,M(me,"Set "+Ge+" to max value")),Oe[Ge]=""+je}function x(){function J(){function Ge(){var ct=0,yn=!1;for(M(me,"Checking connection is from allowed list of origins: "+Ve);ct<Ve.length;ct++)if(Ve[ct]===ge){yn=!0;break}return yn}function je(){var ct=d[me]&&d[me].remoteHost;return M(me,"Checking connection is from: "+ct),ge===ct}return Ve.constructor===Array?Ge():je()}var ge=C.origin,Ve=d[me]&&d[me].checkOrigin;if(Ve&&""+ge!="null"&&!J())throw new Error("Unexpected message received from: "+ge+" for "+Oe.iframe.id+". Message was: "+C.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function k(){return s===(""+ln).slice(0,a)&&ln.slice(a).split(":")[0]in d}function L(){var J=Oe.type in{true:1,false:1,undefined:1};return J&&M(me,"Ignoring init message from meta parent page"),J}function P(J){return ln.slice(ln.indexOf(":")+o+J)}function D(J){M(me,"onMessage passed: {iframe: "+Oe.iframe.id+", message: "+J+"}"),Lr("onMessage",{iframe:Oe.iframe,message:JSON.parse(J)}),M(me,"--")}function be(){var J=document.body.getBoundingClientRect(),ge=Oe.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:ge.height,iframeWidth:ge.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(ge.top-J.top,10),offsetLeft:parseInt(ge.left-J.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function ue(J,ge){function Ve(){Le("Send Page Info","pageInfo:"+be(),J,ge)}he(Ve,32,ge)}function $e(){function J(je,ct){function yn(){d[Ge]?ue(d[Ge].iframe,Ge):ge()}["scroll","resize"].forEach(function(ld){M(Ge,je+ld+" listener for sendPageInfo"),ct(window,ld,yn)})}function ge(){J("Remove ",m)}function Ve(){J("Add ",v)}var Ge=me;Ve(),d[Ge]&&(d[Ge].stopPageInfo=ge)}function kt(){d[me]&&d[me].stopPageInfo&&(d[me].stopPageInfo(),delete d[me].stopPageInfo)}function mt(){var J=!0;return Oe.iframe===null&&(R(me,"IFrame ("+Oe.id+") not found"),J=!1),J}function te(J){var ge=J.getBoundingClientRect();return ie(me),{x:Math.floor(Number(ge.left)+Number(c.x)),y:Math.floor(Number(ge.top)+Number(c.y))}}function ae(J){function ge(){c=ct,Qe(),M(me,"--")}function Ve(){return{x:Number(Oe.width)+je.x,y:Number(Oe.height)+je.y}}function Ge(){window.parentIFrame?window.parentIFrame["scrollTo"+(J?"Offset":"")](ct.x,ct.y):R(me,"Unable to scroll to requested position, window.parentIFrame not found")}var je=J?te(Oe.iframe):{x:0,y:0},ct=Ve();M(me,"Reposition requested from iFrame (offset x:"+je.x+" y:"+je.y+")"),window.top===window.self?ge():Ge()}function Qe(){Lr("onScroll",c)===!1?ke():ye(me)}function yt(J){function ge(){var yn=te(ct);M(me,"Moving to in page link (#"+Ge+") at x: "+yn.x+" y: "+yn.y),c={x:yn.x,y:yn.y},Qe(),M(me,"--")}function Ve(){window.parentIFrame?window.parentIFrame.moveToAnchor(Ge):M(me,"In page link #"+Ge+" not found and window.parentIFrame not found")}var Ge=J.split("#")[1]||"",je=decodeURIComponent(Ge),ct=document.getElementById(je)||document.getElementsByName(je)[0];ct?ge():window.top===window.self?M(me,"In page link #"+Ge+" not found"):Ve()}function Rt(J){var ge={};if(Number(Oe.width)===0&&Number(Oe.height)===0){var Ve=P(9).split(":");ge={x:Ve[1],y:Ve[0]}}else ge={x:Oe.width,y:Oe.height};Lr(J,{iframe:Oe.iframe,screenX:Number(ge.x),screenY:Number(ge.y),type:Oe.type})}function Lr(J,ge){return $(me,J,ge)}function Da(){switch(d[me]&&d[me].firstRun&&Fa(),Oe.type){case"close":{se(Oe.iframe);break}case"message":{D(P(6));break}case"mouseenter":{Rt("onMouseEnter");break}case"mouseleave":{Rt("onMouseLeave");break}case"autoResize":{d[me].autoResize=JSON.parse(P(9));break}case"scrollTo":{ae(!1);break}case"scrollToOffset":{ae(!0);break}case"pageInfo":{ue(d[me]&&d[me].iframe,me),$e();break}case"pageInfoStop":{kt();break}case"inPageLink":{yt(P(9));break}case"reset":{de(Oe);break}case"init":{G(),Lr("onInit",Oe.iframe);break}default:Number(Oe.width)===0&&Number(Oe.height)===0?R("Unsupported message received ("+Oe.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):G()}}function Na(J){var ge=!0;return d[J]||(ge=!1,R(Oe.type+" No settings for "+J+". Message was: "+ln)),ge}function Wo(){for(var J in d)Le("iFrame requested init",q(J),d[J].iframe,J)}function Fa(){d[me]&&(d[me].firstRun=!1)}var ln=C.data,Oe={},me=null;ln==="[iFrameResizerChild]Ready"?Wo():k()?(Oe=F(),me=Oe.id,d[me]&&(d[me].loaded=!0),!L()&&Na(me)&&(M(me,"Received: "+ln),mt()&&x()&&Da())):H(me,"Ignored: "+ln)}function $(C,G,F){var W=null,Ee=null;if(d[C])if(W=d[C][G],typeof W=="function")Ee=W(F);else throw new TypeError(G+" on iFrame["+C+"] is not a function");return Ee}function K(C){var G=C.id;delete d[G]}function se(C){var G=C.id;if($(G,"onClose",G)===!1){M(G,"Close iframe cancelled by onClose event");return}M(G,"Removing iFrame: "+G);try{C.parentNode&&C.parentNode.removeChild(C)}catch(F){R(F)}$(G,"onClosed",G),M(G,"--"),K(C)}function ie(C){c===null&&(c={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset},M(C,"Get page position: "+c.x+","+c.y))}function ye(C){c!==null&&(window.scrollTo(c.x,c.y),M(C,"Set page position: "+c.x+","+c.y),ke())}function ke(){c=null}function de(C){function G(){Ce(C),Le("reset","reset",C.iframe,C.id)}M(C.id,"Size reset requested by "+(C.type==="init"?"host page":"iFrame")),ie(C.id),Re(G,C,"reset")}function Ce(C){function G(b){if(!C.id){M("undefined","messageData id not set");return}C.iframe.style[b]=C[b]+"px",M(C.id,"IFrame ("+Ee+") "+b+" set to "+C[b]+"px")}function F(b){!r&&C[b]==="0"&&(r=!0,M(Ee,"Hidden iFrame detected, creating visibility listener"),at())}function W(b){G(b),F(b)}var Ee=C.iframe.id;d[Ee]&&(d[Ee].sizeHeight&&W("height"),d[Ee].sizeWidth&&W("width"))}function Re(C,G,F){F!==G.type&&l&&!window.jasmine?(M(G.id,"Requesting animation frame"),l(C)):C()}function Le(C,G,F,W,Ee){function b(){var D=d[W]&&d[W].targetOrigin;M(W,"["+C+"] Sending msg to iframe["+W+"] ("+G+") targetOrigin: "+D),F.contentWindow.postMessage(s+G,D)}function x(){R(W,"["+C+"] IFrame("+W+") not found")}function k(){F&&"contentWindow"in F&&F.contentWindow!==null?b():x()}function L(){function D(){d[W]&&!d[W].loaded&&!P&&(P=!0,R(W,"IFrame has not responded within "+d[W].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."))}Ee&&d[W]&&d[W].warningTimeout&&(d[W].msgTimeout=setTimeout(D,d[W].warningTimeout))}var P=!1;W=W||F.id,d[W]&&(k(),L())}function q(C){return C+":"+d[C].bodyMarginV1+":"+d[C].sizeWidth+":"+d[C].log+":"+d[C].interval+":"+d[C].enablePublicMethods+":"+d[C].autoResize+":"+d[C].bodyMargin+":"+d[C].heightCalculationMethod+":"+d[C].bodyBackground+":"+d[C].bodyPadding+":"+d[C].tolerance+":"+d[C].inPageLinks+":"+d[C].resizeFrom+":"+d[C].widthCalculationMethod+":"+d[C].mouseEvents}function V(C){return typeof C=="number"}function Y(C,G){function F(){function ae(yt){var Rt=d[te][yt];Rt!==1/0&&Rt!==0&&(C.style[yt]=V(Rt)?Rt+"px":Rt,M(te,"Set "+yt+" = "+C.style[yt]))}function Qe(yt){if(d[te]["min"+yt]>d[te]["max"+yt])throw new Error("Value for min"+yt+" can not be greater than max"+yt)}Qe("Height"),Qe("Width"),ae("maxHeight"),ae("minHeight"),ae("maxWidth"),ae("minWidth")}function W(){var ae=G&&G.id||h.id+t++;return document.getElementById(ae)!==null&&(ae+=t++),ae}function Ee(ae){if(typeof ae!="string")throw new TypeError("Invaild id for iFrame. Expected String");return ae===""&&(C.id=ae=W(),n=(G||{}).log,M(ae,"Added missing iframe ID: "+ae+" ("+C.src+")")),ae}function b(){switch(M(te,"IFrame scrolling "+(d[te]&&d[te].scrolling?"enabled":"disabled")+" for "+te),C.style.overflow=(d[te]&&d[te].scrolling)===!1?"hidden":"auto",d[te]&&d[te].scrolling){case"omit":break;case!0:{C.scrolling="yes";break}case!1:{C.scrolling="no";break}default:C.scrolling=d[te]?d[te].scrolling:"no"}}function x(){(typeof(d[te]&&d[te].bodyMargin)=="number"||(d[te]&&d[te].bodyMargin)==="0")&&(d[te].bodyMarginV1=d[te].bodyMargin,d[te].bodyMargin=""+d[te].bodyMargin+"px")}function k(){var ae=d[te]&&d[te].firstRun,Qe=d[te]&&d[te].heightCalculationMethod in p;!ae&&Qe&&de({iframe:C,height:0,width:0,type:"init"})}function L(){d[te]&&(d[te].iframe.iFrameResizer={close:se.bind(null,d[te].iframe),removeListeners:K.bind(null,d[te].iframe),resize:Le.bind(null,"Window resize","resize",d[te].iframe),moveToAnchor:function(ae){Le("Move to anchor","moveToAnchor:"+ae,d[te].iframe,te)},sendMessage:function(ae){ae=JSON.stringify(ae),Le("Send Message","message:"+ae,d[te].iframe,te)}})}function P(ae){function Qe(){Le("iFrame.onload",ae,C,e,!0),k()}function yt(Lr){if(C.parentNode){var Da=new Lr(function(Na){Na.forEach(function(Wo){var Fa=Array.prototype.slice.call(Wo.removedNodes);Fa.forEach(function(ln){ln===C&&se(C)})})});Da.observe(C.parentNode,{childList:!0})}}var Rt=g();Rt&&yt(Rt),v(C,"load",Qe),Le("init",ae,C,e,!0)}function D(ae){if(typeof ae!="object")throw new TypeError("Options is not an object")}function be(ae){for(var Qe in h)Object.prototype.hasOwnProperty.call(h,Qe)&&(d[te][Qe]=Object.prototype.hasOwnProperty.call(ae,Qe)?ae[Qe]:h[Qe])}function ue(ae){return ae===""||ae.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":ae}function $e(ae){var Qe=ae.split("Callback");if(Qe.length===2){var yt="on"+Qe[0].charAt(0).toUpperCase()+Qe[0].slice(1);this[yt]=this[ae],delete this[ae],R(te,"Deprecated: '"+ae+"' has been renamed '"+yt+"'. The old method will be removed in the next major version.")}}function kt(ae){ae=ae||{},d[te]=Object.create(null),d[te].iframe=C,d[te].firstRun=!0,d[te].remoteHost=C.src&&C.src.split("/").slice(0,3).join("/"),D(ae),Object.keys(ae).forEach($e,ae),be(ae),d[te]&&(d[te].targetOrigin=d[te].checkOrigin===!0?ue(d[te].remoteHost):"*")}function mt(){return te in d&&"iFrameResizer"in C}var te=Ee(C.id);mt()?R(te,"Ignored iFrame, already setup."):(kt(G),b(),F(),x(),P(q(te)),L())}function ne(C,G){u===null&&(u=setTimeout(function(){u=null,C()},G))}var oe={};function he(C,G,F){oe[F]||(oe[F]=setTimeout(function(){oe[F]=null,C()},G))}function at(){function C(){function Ee(b){function x(L){return(d[b]&&d[b].iframe.style[L])==="0px"}function k(L){return L.offsetParent!==null}d[b]&&k(d[b].iframe)&&(x("height")||x("width"))&&Le("Visibility change","resize",d[b].iframe,b)}Object.keys(d).forEach(function(b){Ee(b)})}function G(Ee){M("window","Mutation observed: "+Ee[0].target+" "+Ee[0].type),ne(C,16)}function F(){var Ee=document.querySelector("body"),b={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},x=new W(G);x.observe(Ee,b)}var W=g();W&&F()}function jt(C){function G(){vn("Window "+C,"resize")}M("window","Trigger event: "+C),ne(G,16)}function an(){function C(){vn("Tab Visible","resize")}document.visibilityState!=="hidden"&&(M("document","Trigger event: Visibility change"),ne(C,16))}function vn(C,G){function F(W){return d[W]&&d[W].resizeFrom==="parent"&&d[W].autoResize&&!d[W].firstRun}Object.keys(d).forEach(function(W){F(W)&&Le(C,G,d[W].iframe,W)})}function cn(){v(window,"message",Se),v(window,"resize",function(){jt("resize")}),v(document,"visibilitychange",an),v(document,"-webkit-visibilitychange",an)}function lr(){function C(W,Ee){function b(){if(Ee.tagName){if(Ee.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected <IFRAME> tag, found <"+Ee.tagName+">")}else throw new TypeError("Object is not a valid DOM element")}Ee&&(b(),Y(Ee,W),F.push(Ee))}function G(W){W&&W.enablePublicMethods&&R("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var F;return _(),cn(),function(Ee,b){switch(F=[],G(Ee),typeof b){case"undefined":case"string":{Array.prototype.forEach.call(document.querySelectorAll(b||"iframe"),C.bind(e,Ee));break}case"object":{C(Ee,b);break}default:throw new TypeError("Unexpected data type ("+typeof b+")")}return F}}function ii(C){C.fn?C.fn.iFrameResize||(C.fn.iFrameResize=function(F){function W(Ee,b){Y(b,F)}return this.filter("iframe").each(W).end()}):H("","Unable to bind to jQuery, it is not fully loaded.")}window.jQuery!==e&&ii(window.jQuery),typeof define=="function"&&define.amd?define([],lr):typeof Sp=="object"&&typeof Sp.exports=="object"&&(Sp.exports=lr()),window.iFrameResize=window.iFrameResize||lr()})()});var Lb=Tt((Bee,Im)=>{(function(e){if(typeof window=="undefined")return;var t=!0,n=10,r="",i=0,o="",s=null,a="",c=!1,l={resize:1,click:1},p=128,d=!0,u=1,h="bodyOffset",g=h,v=!0,m="",_={},S=32,w=null,z=!1,M=!1,H="[iFrameSizer]",R=H.length,Q="",Se={max:1,min:1,bodyScroll:1,documentElementScroll:1},$="child",K=!0,se=window.parent,ie="*",ye=0,ke=!1,de=null,Ce=16,Re=1,Le="scroll",q=Le,V=window,Y=function(){W("onMessage function not defined")},ne=function(){},oe=function(){},he={height:function(){return W("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return W("Custom width calculation function not defined"),document.body.scrollWidth}},at={},jt=!1;function an(){}try{var vn=Object.create({},{passive:{get:function(){jt=!0}}});window.addEventListener("test",an,vn),window.removeEventListener("test",an,vn)}catch(T){}function cn(T,O,B,_e){T.addEventListener(O,B,jt?_e||{}:!1)}function lr(T,O,B){T.removeEventListener(O,B,!1)}function ii(T){return T.charAt(0).toUpperCase()+T.slice(1)}function C(T){var O,B,_e,Ue=null,gt=0,Lt=function(){gt=Date.now(),Ue=null,_e=T.apply(O,B),Ue||(O=B=null)};return function(){var wt=Date.now();gt||(gt=wt);var Ze=Ce-(wt-gt);return O=this,B=arguments,Ze<=0||Ze>Ce?(Ue&&(clearTimeout(Ue),Ue=null),gt=wt,_e=T.apply(O,B),Ue||(O=B=null)):Ue||(Ue=setTimeout(Lt,Ze)),_e}}function G(T){return H+"["+Q+"] "+T}function F(T){z&&typeof window.console=="object"&&console.log(G(T))}function W(T){typeof window.console=="object"&&console.warn(G(T))}function Ee(){b(),F("Initialising iFrame ("+window.location.href+")"),k(),D(),P("background",r),P("padding",a),Rt(),mt(),te(),be(),Na(),Da(),ae(),_=Lr(),Yi("init","Init message from host page"),ne()}function b(){function T(B){return B==="true"}var O=m.slice(R).split(":");Q=O[0],i=e===O[1]?i:Number(O[1]),c=e===O[2]?c:T(O[2]),z=e===O[3]?z:T(O[3]),S=e===O[4]?S:Number(O[4]),t=e===O[6]?t:T(O[6]),o=O[7],g=e===O[8]?g:O[8],r=O[9],a=O[10],ye=e===O[11]?ye:Number(O[11]),_.enable=e===O[12]?!1:T(O[12]),$=e===O[13]?$:O[13],q=e===O[14]?q:O[14],M=e===O[15]?M:T(O[15])}function x(T){var O=T.split("Callback");if(O.length===2){var B="on"+O[0].charAt(0).toUpperCase()+O[0].slice(1);this[B]=this[T],delete this[T],W("Deprecated: '"+T+"' has been renamed '"+B+"'. The old method will be removed in the next major version.")}}function k(){function T(){var B=window.iFrameResizer;F("Reading data from page: "+JSON.stringify(B)),Object.keys(B).forEach(x,B),Y="onMessage"in B?B.onMessage:Y,ne="onReady"in B?B.onReady:ne,ie="targetOrigin"in B?B.targetOrigin:ie,g="heightCalculationMethod"in B?B.heightCalculationMethod:g,q="widthCalculationMethod"in B?B.widthCalculationMethod:q}function O(B,_e){return typeof B=="function"&&(F("Setup custom "+_e+"CalcMethod"),he[_e]=B,B="custom"),B}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(T(),g=O(g,"height"),q=O(q,"width")),F("TargetOrigin for parent set to: "+ie)}function L(T,O){return O.indexOf("-")!==-1&&(W("Negative CSS value ignored for "+T),O=""),O}function P(T,O){e!==O&&O!==""&&O!=="null"&&(document.body.style[T]=O,F("Body "+T+' set to "'+O+'"'))}function D(){e===o&&(o=i+"px"),P("margin",L("margin",o))}function be(){document.documentElement.style.height="",document.body.style.height="",F('HTML & body height set to "auto"')}function ue(T){var O={add:function(B){function _e(){Yi(T.eventName,T.eventType)}at[B]=_e,cn(window,B,_e,{passive:!0})},remove:function(B){var _e=at[B];delete at[B],lr(window,B,_e)}};T.eventNames&&Array.prototype.map?(T.eventName=T.eventNames[0],T.eventNames.map(O[T.method])):O[T.method](T.eventName),F(ii(T.method)+" event listener: "+T.eventType)}function $e(T){ue({method:T,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ue({method:T,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ue({method:T,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ue({method:T,eventType:"Input",eventName:"input"}),ue({method:T,eventType:"Mouse Up",eventName:"mouseup"}),ue({method:T,eventType:"Mouse Down",eventName:"mousedown"}),ue({method:T,eventType:"Orientation Change",eventName:"orientationchange"}),ue({method:T,eventType:"Print",eventNames:["afterprint","beforeprint"]}),ue({method:T,eventType:"Ready State Change",eventName:"readystatechange"}),ue({method:T,eventType:"Touch Start",eventName:"touchstart"}),ue({method:T,eventType:"Touch End",eventName:"touchend"}),ue({method:T,eventType:"Touch Cancel",eventName:"touchcancel"}),ue({method:T,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ue({method:T,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ue({method:T,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),$==="child"&&ue({method:T,eventType:"IFrame Resized",eventName:"resize"})}function kt(T,O,B,_e){return O!==T&&(T in B||(W(T+" is not a valid option for "+_e+"CalculationMethod."),T=O),F(_e+' calculation method set to "'+T+'"')),T}function mt(){g=kt(g,h,je,"height")}function te(){q=kt(q,Le,ct,"width")}function ae(){t===!0?($e("add"),ln()):F("Auto Resize disabled")}function Qe(){s!==null&&s.disconnect()}function yt(){$e("remove"),Qe(),clearInterval(w)}function Rt(){var T=document.createElement("div");T.style.clear="both",T.style.display="block",T.style.height="0",document.body.appendChild(T)}function Lr(){function T(){return{x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}}function O(Ze){var lt=Ze.getBoundingClientRect(),et=T();return{x:parseInt(lt.left,10)+parseInt(et.x,10),y:parseInt(lt.top,10)+parseInt(et.y,10)}}function B(Ze){function lt(Vn){var qo=O(Vn);F("Moving to in page link (#"+et+") at x: "+qo.x+" y: "+qo.y),bn(qo.y,qo.x,"scrollToOffset")}var et=Ze.split("#")[1]||Ze,De=decodeURIComponent(et),Sn=document.getElementById(De)||document.getElementsByName(De)[0];e===Sn?(F("In page link (#"+et+") not found in iFrame, so sending to parent"),bn(0,0,"inPageLink","#"+et)):lt(Sn)}function _e(){var Ze=window.location.hash,lt=window.location.href;Ze!==""&&Ze!=="#"&&B(lt)}function Ue(){function Ze(lt){function et(De){De.preventDefault(),B(this.getAttribute("href"))}lt.getAttribute("href")!=="#"&&cn(lt,"click",et)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),Ze)}function gt(){cn(window,"hashchange",_e)}function Lt(){setTimeout(_e,p)}function wt(){Array.prototype.forEach&&document.querySelectorAll?(F("Setting up location.hash handlers"),Ue(),gt(),Lt()):W("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return _.enable?wt():F("In page linking not enabled"),{findTarget:B}}function Da(){if(M!==!0)return;function T(B){bn(0,0,B.type,B.screenY+":"+B.screenX)}function O(B,_e){F("Add event listener: "+_e),cn(window.document,B,T)}O("mouseenter","Mouse Enter"),O("mouseleave","Mouse Leave")}function Na(){F("Enable public methods"),V.parentIFrame={autoResize:function(O){return O===!0&&t===!1?(t=!0,ae()):O===!1&&t===!0&&(t=!1,yt()),bn(0,0,"autoResize",JSON.stringify(t)),t},close:function(){bn(0,0,"close")},getId:function(){return Q},getPageInfo:function(O){typeof O=="function"?(oe=O,bn(0,0,"pageInfo")):(oe=function(){},bn(0,0,"pageInfoStop"))},moveToAnchor:function(O){_.findTarget(O)},reset:function(){Ry("parentIFrame.reset")},scrollTo:function(O,B){bn(B,O,"scrollTo")},scrollToOffset:function(O,B){bn(B,O,"scrollToOffset")},sendMessage:function(O,B){bn(0,0,"message",JSON.stringify(O),B)},setHeightCalculationMethod:function(O){g=O,mt()},setWidthCalculationMethod:function(O){q=O,te()},setTargetOrigin:function(O){F("Set targetOrigin: "+O),ie=O},size:function(O,B){var _e=""+(O||"")+(B?","+B:"");Yi("size","parentIFrame.size("+_e+")",O,B)}}}function Wo(){S!==0&&(F("setInterval: "+S+"ms"),w=setInterval(function(){Yi("interval","setInterval: "+S)},Math.abs(S)))}function Fa(){function T(De){function Sn(Vn){Vn.complete===!1&&(F("Attach listeners to "+Vn.src),Vn.addEventListener("load",Ue,!1),Vn.addEventListener("error",gt,!1),Ze.push(Vn))}De.type==="attributes"&&De.attributeName==="src"?Sn(De.target):De.type==="childList"&&Array.prototype.forEach.call(De.target.querySelectorAll("img"),Sn)}function O(De){Ze.splice(Ze.indexOf(De),1)}function B(De){F("Remove listeners from "+De.src),De.removeEventListener("load",Ue,!1),De.removeEventListener("error",gt,!1),O(De)}function _e(De,Sn,Vn){B(De.target),Yi(Sn,Vn+": "+De.target.src)}function Ue(De){_e(De,"imageLoad","Image loaded")}function gt(De){_e(De,"imageLoadFailed","Image load failed")}function Lt(De){Yi("mutationObserver","mutationObserver: "+De[0].target+" "+De[0].type),De.forEach(T)}function wt(){var De=document.querySelector("body"),Sn={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return et=new lt(Lt),F("Create body MutationObserver"),et.observe(De,Sn),et}var Ze=[],lt=window.MutationObserver||window.WebKitMutationObserver,et=wt();return{disconnect:function(){"disconnect"in et&&(F("Disconnect body MutationObserver"),et.disconnect(),Ze.forEach(B))}}}function ln(){var T=0>S;window.MutationObserver||window.WebKitMutationObserver?T?Wo():s=Fa():(F("MutationObserver not supported in this browser!"),Wo())}function Oe(T,O){var B=0;return O=O||document.body,B=document.defaultView.getComputedStyle(O,null),B=B===null?0:B[T],parseInt(B,n)}function me(T){T>Ce/2&&(Ce=2*T,F("Event throttle increased to "+Ce+"ms"))}function J(T,O){for(var B=O.length,_e=0,Ue=0,gt=ii(T),Lt=Date.now(),wt=0;wt<B;wt++)_e=O[wt].getBoundingClientRect()[T]+Oe("margin"+gt,O[wt]),_e>Ue&&(Ue=_e);return Lt=Date.now()-Lt,F("Parsed "+B+" HTML elements"),F("Element position calculated in "+Lt+"ms"),me(Lt),Ue}function ge(T){return[T.bodyOffset(),T.bodyScroll(),T.documentElementOffset(),T.documentElementScroll()]}function Ve(T,O){function B(){return W("No tagged elements ("+O+") found on page"),document.querySelectorAll("body *")}var _e=document.querySelectorAll("["+O+"]");return _e.length===0&&B(),J(T,_e)}function Ge(){return document.querySelectorAll("body *")}var je={bodyOffset:function(){return document.body.offsetHeight+Oe("marginTop")+Oe("marginBottom")},offset:function(){return je.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return he.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ge(je))},min:function(){return Math.min.apply(null,ge(je))},grow:function(){return je.max()},lowestElement:function(){return Math.max(je.bodyOffset()||je.documentElementOffset(),J("bottom",Ge()))},taggedElement:function(){return Ve("bottom","data-iframe-height")}},ct={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return he.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(ct.bodyScroll(),ct.documentElementScroll())},max:function(){return Math.max.apply(null,ge(ct))},min:function(){return Math.min.apply(null,ge(ct))},rightMostElement:function(){return J("right",Ge())},taggedElement:function(){return Ve("right","data-iframe-width")}};function yn(T,O,B,_e){function Ue(){u=et,Re=De,bn(u,Re,T)}function gt(){function Sn(Vn,qo){var uT=Math.abs(Vn-qo)<=ye;return!uT}return et=e===B?je[g]():B,De=e===_e?ct[q]():_e,Sn(u,et)||c&&Sn(Re,De)}function Lt(){return!(T in{init:1,interval:1,size:1})}function wt(){return g in Se||c&&q in Se}function Ze(){F("No change in size detected")}function lt(){Lt()&&wt()?Ry(O):T in{interval:1}||Ze()}var et,De;gt()||T==="init"?(zy(),Ue()):lt()}var ld=C(yn);function Yi(T,O,B,_e){function Ue(){T in{reset:1,resetPage:1,init:1}||F("Trigger event: "+O)}function gt(){return ke&&T in l}gt()?F("Trigger event cancelled: "+T):(Ue(),T==="init"?yn(T,O,B,_e):ld(T,O,B,_e))}function zy(){ke||(ke=!0,F("Trigger event lock on")),clearTimeout(de),de=setTimeout(function(){ke=!1,F("Trigger event lock off"),F("--")},p)}function ky(T){u=je[g](),Re=ct[q](),bn(u,Re,T)}function Ry(T){var O=g;g=h,F("Reset trigger event: "+T),zy(),ky("reset"),g=O}function bn(T,O,B,_e,Ue){function gt(){e===Ue?Ue=ie:F("Message targetOrigin: "+Ue)}function Lt(){var wt=T+":"+O,Ze=Q+":"+wt+":"+B+(e===_e?"":":"+_e);F("Sending message to host page ("+Ze+")"),se.postMessage(H+Ze,Ue)}K===!0&&(gt(),Lt())}function pT(T){var O={init:function(){m=T.data,se=T.source,Ee(),d=!1,setTimeout(function(){v=!1},p)},reset:function(){v?F("Page reset ignored by init"):(F("Page size reset by host page"),ky("resetPage"))},resize:function(){Yi("resizeParent","Parent window requested size check")},moveToAnchor:function(){_.findTarget(Ue())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var et=Ue();F("PageInfoFromParent called from parent: "+et),oe(JSON.parse(et)),F(" --")},message:function(){var et=Ue();F("onMessage called from parent: "+et),Y(JSON.parse(et)),F(" --")}};function B(){return H===(""+T.data).slice(0,R)}function _e(){return T.data.split("]")[1].split(":")[0]}function U