1import{aU as Oi}from"./app-C_ju_lDz.js";/* empty css */var ci={exports:{}},ni={exports:{}},Ci=ni.exports,li;function Wi(){return li||(li=1,(function(gn,Fo){(function(jn,Ue){gn.exports=Ue()})(typeof self<"u"?self:Ci,(function(){return(function(jn){var Ue={};function ie(H){if(Ue[H])return Ue[H].exports;var me=Ue[H]={i:H,l:!1,exports:{}};return jn[H].call(me.exports,me,me.exports,ie),me.l=!0,me.exports}return ie.m=jn,ie.c=Ue,ie.d=function(H,me,Te){ie.o(H,me)||Object.defineProperty(H,me,{enumerable:!0,get:Te})},ie.r=function(H){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(H,"__esModule",{value:!0})},ie.t=function(H,me){if(1&me&&(H=ie(H)),8&me||4&me&&typeof H=="object"&&H&&H.__esModule)return H;var Te=Object.create(null);if(ie.r(Te),Object.defineProperty(Te,"default",{enumerable:!0,value:H}),2&me&&typeof H!="string")for(var pr in H)ie.d(Te,pr,(function(Bn){return H[Bn]}).bind(null,pr));return Te},ie.n=function(H){var me=H&&H.__esModule?function(){return H.default}:function(){return H};return ie.d(me,"a",me),me},ie.o=function(H,me){return{}.hasOwnProperty.call(H,me)},ie.p="",ie(ie.s=0)})([function(jn,Ue,ie){ie.r(Ue),ie.d(Ue,"PopupOpenError",(function(){return jo})),ie.d(Ue,"create",(function(){return ri})),ie.d(Ue,"destroy",(function(){return Rr})),ie.d(Ue,"destroyComponents",(function(){return Je})),ie.d(Ue,"destroyAll",(function(){return Ut})),ie.d(Ue,"PROP_TYPE",(function(){return qe})),ie.d(Ue,"PROP_SERIALIZATION",(function(){return pt})),ie.d(Ue,"CONTEXT",(function(){return Br})),ie.d(Ue,"EVENT",(function(){return tr}));function H(r,i){return(H=Object.setPrototypeOf||function(o,c){return o.__proto__=c,o})(r,i)}function me(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,H(r,i)}function Te(){return(Te=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var c in o)({}).hasOwnProperty.call(o,c)&&(r[c]=o[c])}return r}).apply(this,arguments)}function pr(r){try{if(!r)return!1;if(typeof Promise<"u"&&r instanceof Promise)return!0;if(typeof window<"u"&&typeof window.Window=="function"&&r instanceof window.Window||typeof window<"u"&&typeof window.constructor=="function"&&r instanceof window.constructor)return!1;var i={}.toString;if(i){var o=i.call(r);if(o==="[object Window]"||o==="[object global]"||o==="[object DOMWindow]")return!1}if(typeof r.then=="function")return!0}catch{return!1}return!1}var Bn=[],xn=[],yt=0,On;function ro(){if(!yt&&On){var r=On;On=null,r.resolve()}}function Et(){yt+=1}function Cn(){yt-=1,ro()}var g=(function(){function r(o){var c=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],o){var s,l,h=!1,O=!1,P=!1;Et();try{o((function(E){P?c.resolve(E):(h=!0,s=E)}),(function(E){P?c.reject(E):(O=!0,l=E)}))}catch(E){Cn(),this.reject(E);return}Cn(),P=!0,h?this.resolve(s):O&&this.reject(l)}}var i=r.prototype;return i.resolve=function(o){if(this.resolved||this.rejected)return this;if(pr(o))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=o,this.dispatch(),this},i.reject=function(o){var c=this;if(this.resolved||this.rejected)return this;if(pr(o))throw new Error("Can not reject promise with another promise");if(!o){var s=o&&typeof o.toString=="function"?o.toString():{}.toString.call(o);o=new Error("Expected reject to be called with Error, got "+s)}return this.rejected=!0,this.error=o,this.errorHandled||setTimeout((function(){c.errorHandled||(function(l,h){if(Bn.indexOf(l)===-1){Bn.push(l),setTimeout((function(){throw l}),1);for(var O=0;O<xn.length;O++)xn[O](l,h)}})(o,c)}),1),this.dispatch(),this},i.asyncReject=function(o){return this.errorHandled=!0,this.reject(o),this},i.dispatch=function(){var o=this.resolved,c=this.rejected,s=this.handlers;if(!this.dispatching&&(o||c)){this.dispatching=!0,Et();for(var l=function(D,J){return D.then((function(V){J.resolve(V)}),(function(V){J.reject(V)}))},h=0;h<s.length;h++){var O=s[h],P=O.onSuccess,E=O.onError,C=O.promise,y=void 0;if(o)try{y=P?P(this.value):this.value}catch(D){C.reject(D);continue}else if(c){if(!E){C.reject(this.error);continue}try{y=E(this.error)}catch(D){C.reject(D);continue}}if(y instanceof r&&(y.resolved||y.rejected)){var S=y;S.resolved?C.resolve(S.value):C.reject(S.error),S.errorHandled=!0}else pr(y)?y instanceof r&&(y.resolved||y.rejected)?y.resolved?C.resolve(y.value):C.reject(y.error):l(y,C):C.resolve(y)}s.length=0,this.dispatching=!1,Cn()}},i.then=function(o,c){if(o&&typeof o!="function"&&!o.call)throw new Error("Promise.then expected a function for success handler");if(c&&typeof c!="function"&&!c.call)throw new Error("Promise.then expected a function for error handler");var s=new r;return this.handlers.push({promise:s,onSuccess:o,onError:c}),this.errorHandled=!0,this.dispatch(),s},i.catch=function(o){return this.then(void 0,o)}
1,i.finally=function(o){if(o&&typeof o!="function"&&!o.call)throw new Error("Promise.finally expected a function");return this.then((function(c){return r.try(o).then((function(){return c}))}),(function(c){return r.try(o).then((function(){throw c}))}))},i.timeout=function(o,c){var s=this;if(this.resolved||this.rejected)return this;var l=setTimeout((function(){s.resolved||s.rejected||s.reject(c||new Error("Promise timed out after "+o+"ms"))}),o);return this.then((function(h){return clearTimeout(l),h}))},i.toPromise=function(){if(typeof Promise>"u")throw new TypeError("Could not find Promise");return Promise.resolve(this)},i.lazy=function(){return this.errorHandled=!0,this},r.resolve=function(o){return o instanceof r?o:pr(o)?new r((function(c,s){return o.then(c,s)})):new r().resolve(o)},r.reject=function(o){return new r().reject(o)},r.asyncReject=function(o){return new r().asyncReject(o)},r.all=function(o){var c=new r,s=o.length,l=[].slice();if(!s)return c.resolve(l),c;for(var h=function(E,C,y){return C.then((function(S){l[E]=S,(s-=1)==0&&c.resolve(l)}),(function(S){y.reject(S)}))},O=0;O<o.length;O++){var P=o[O];if(P instanceof r){if(P.resolved){l[O]=P.value,s-=1;continue}}else if(!pr(P)){l[O]=P,s-=1;continue}h(O,r.resolve(P),c)}return s===0&&c.resolve(l),c},r.hash=function(o){var c={},s=[],l=function(O){if(o.hasOwnProperty(O)){var P=o[O];pr(P)?s.push(P.then((function(E){c[O]=E}))):c[O]=P}};for(var h in o)l(h);return r.all(s).then((function(){return c}))},r.map=function(o,c){return r.all(o.map(c))},r.onPossiblyUnhandledException=function(o){return(function(c){return xn.push(c),{cancel:function(){xn.splice(xn.indexOf(c),1)}}})(o)},r.try=function(o,c,s){if(o&&typeof o!="function"&&!o.call)throw new Error("Promise.try expected a function");var l;Et();try{l=o.apply(c,s||[])}catch(h){return Cn(),r.reject(h)}return Cn(),r.resolve(l)},r.delay=function(o){return new r((function(c){setTimeout(c,o)}))},r.isPromise=function(o){return!!(o&&o instanceof r)||pr(o)},r.flush=function(){return(function(o){var c=On=On||new o;return ro(),c})(r)},r})();function Wn(r){return{}.toString.call(r)==="[object RegExp]"}var qn={IFRAME:"iframe",POPUP:"popup"},Gr=`Call was rejected by callee.\r 2`;function no(r){return r===void 0&&(r=window),r.location.protocol}function to(r){if(r===void 0&&(r=window),r.mockDomain){var i=r.mockDomain.split("//")[0];if(i)return i}return no(r)}function oo(r){return r===void 0&&(r=window),to(r)==="about:"}function cr(r){if(r===void 0&&(r=window),r)try{if(r.parent&&r.parent!==r)return r.parent}catch{}}function Yr(r){if(r===void 0&&(r=window),r&&!cr(r))try{return r.opener}catch{}}function Hn(r){try{return!0}catch{}return!1}function Jn(r){r===void 0&&(r=window);var i=r.location;if(!i)throw new Error("Can not read window location");var o=no(r);if(!o)throw new Error("Can not read window protocol");if(o==="file:")return"file://";if(o==="about:"){var c=cr(r);return c&&Hn()?Jn(c):"about://"}var s=i.host;if(!s)throw new Error("Can not read window host");return o+"//"+s}function ue(r){r===void 0&&(r=window);var i=Jn(r);return i&&r.mockDomain&&r.mockDomain.indexOf("mock:")===0?r.mockDomain:i}function xe(r){if(!(function(i){try{if(i===window)return!0}catch{}try{var o=Object.getOwnPropertyDescriptor(i,"location");if(o&&o.enumerable===!1)return!1}catch{}try{if(oo(i)&&Hn())return!0}catch{}try{if((function(c){return c===void 0&&(c=window),to(c)==="mock:"})(i)&&Hn())return!0}catch{}try{if(Jn(i)===Jn(window))return!0}catch{}return!1})(r))return!1;try{if(r===window||oo(r)&&Hn()||ue(window)===ue(r))return!0}catch{}return!1}function sr(r){if(!xe(r))throw new Error("Expected window to be same domain");return r}function io(r,i){if(!r||!i)return!1;var o=cr(i);return o?o===r:(function(c){var s=[];try{for(;c.parent!==c;)s.push(c.parent),c=c.parent}catch{}return s})(i).indexOf(r)!==-1}function $n(r){var i=[],o;try{o=r.frames}catch{o=r}var c;try{c=o.length}catch{}if(c===0)return i;if(c){for(var s=0;s<c;s++){var l=void 0;try{l=o[s]}catch{continue}i.push(l)}return i}for(var h=0;h<100;h++){var O=void 0;try{O=o[h]}catch{return i}if(!O)return i;i.push(O)}return i}function Zn(r){for(var i=[],o=0,c=$n(r);o<c.length;o++){var s=c[o];i.push(s);for(var l=0,h=Zn(s);l<h.length;l++)i.push(h[l])}return i}function un(r){r===void 0&&(r=window);try{if(r.top)return r.top}catch{}if(cr(r)===r)return r;try{if(io(window,r)&&window.top)return window.top}catch{}try{if(io(r,window)&&window.top)return window.top}catch{}for(var i=0,o=Zn(r);i<o.length;i++){var c=o[i];try{if(c.top)return c.top}catch{}if(cr(c)===c)return c}}function cn(r){var i=un(r);if(!i)throw new Error("Can not determine top window");var o=[].concat(Zn(i),[i]);return o.indexOf(r)===-1&&(o=[].concat(o,[r],Zn(r))),o}
2var Sn=[],Pt=[];function Fe(r,i){i===void 0&&(i=!0);try{if(r===window)return!1}catch{return!0}try{if(!r)return!0}catch{return!0}try{if(r.closed)return!0}catch(s){return!s||s.message!==Gr}if(i&&xe(r))try{if(r.mockclosed)return!0}catch{}try{if(!r.parent||!r.top)return!0}catch{}var o=(function(s,l){for(var h=0;h<s.length;h++)try{if(s[h]===l)return h}catch{}return-1})(Sn,r);if(o!==-1){var c=Pt[o];if(c&&(function(s){if(!s.contentWindow||!s.parentNode)return!0;var l=s.ownerDocument;if(l&&l.documentElement&&!l.documentElement.contains(s)){for(var h=s;h.parentNode&&h.parentNode!==h;)h=h.parentNode;if(!h.host||!l.documentElement.contains(h.host))return!0}return!1})(c))return!0}return!1}function ao(r,i){for(var o=$n(r),c=0;c<o.length;c++){var s=o[c];try{if(xe(s)&&s.name===i&&o.indexOf(s)!==-1)return s}catch{}}try{if(o.indexOf(r.frames[i])!==-1)return r.frames[i]}catch{}try{if(o.indexOf(r[i])!==-1)return r[i]}catch{}}function Nn(r){return r===void 0&&(r=window),Yr(r=r||window)||cr(r)||void 0}function Lt(r,i){for(var o=0;o<r.length;o++)for(var c=r[o],s=0;s<i.length;s++)if(c===i[s])return!0;return!1}function Gn(r){r===void 0&&(r=window);for(var i=0,o=r;o;)(o=cr(o))&&(i+=1);return i}function jt(r,i){var o=un(r)||r,c=un(i)||i;try{if(o&&c)return o===c}catch{}var s=cn(r),l=cn(i);if(Lt(s,l))return!0;var h=Yr(o),O=Yr(c);return h&&Lt(cn(h),l)||O&&Lt(cn(O),s),!1}function Vr(r,i){if(typeof r=="string"){if(typeof i=="string")return r==="*"||i===r;if(Wn(i)||Array.isArray(i))return!1}return Wn(r)?Wn(i)?r.toString()===i.toString():!Array.isArray(i)&&!!i.match(r):!!Array.isArray(r)&&(Array.isArray(i)?JSON.stringify(r)===JSON.stringify(i):!Wn(i)&&r.some((function(o){return Vr(o,i)})))}function bt(r){return r.match(/^(https?|mock|file):\/\//)?r.split("/").slice(0,3).join("/"):ue()}function _r(r,i,o,c){o===void 0&&(o=1e3),c===void 0&&(c=1/0);var s;return(function l(){if(Fe(r))return s&&clearTimeout(s),i();c<=0?clearTimeout(s):(c-=o,s=setTimeout(l,o))})(),{cancel:function(){s&&clearTimeout(s)}}}function Tr(r){try{if(r===window)return!0}catch(i){if(i&&i.message===Gr)return!0}try{if({}.toString.call(r)==="[object Window]")return!0}catch(i){if(i&&i.message===Gr)return!0}try{if(window.Window&&r instanceof window.Window)return!0}catch(i){if(i&&i.message===Gr)return!0}try{if(r&&r.self===r)return!0}catch(i){if(i&&i.message===Gr)return!0}try{if(r&&r.parent===r)return!0}catch(i){if(i&&i.message===Gr)return!0}try{if(r&&r.top===r)return!0}catch(i){if(i&&i.message===Gr)return!0}try{if(r&&r.__cross_domain_utils_window_check__==="__unlikely_value__")return!1}catch{return!0}try{if("postMessage"in r&&"self"in r&&"location"in r)return!0}catch{}return!1}function uo(r){if(xe(r))return sr(r).frameElement;for(var i=0,o=document.querySelectorAll("iframe");i<o.length;i++){var c=o[i];if(c&&c.contentWindow&&c.contentWindow===r)return c}}function Yn(r){if((function(o){return o===void 0&&(o=window),!!cr(o)})(r)){var i=uo(r);if(i&&i.parentElement){i.parentElement.removeChild(i);return}}try{r.close()}catch{}}function it(r,i){for(var o=0;o<r.length;o++)try{if(r[o]===i)return o}catch{}return-1}var xt=(function(){function r(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",(function(){if(typeof WeakMap>"u"||Object.freeze===void 0)return!1;try{var o=new WeakMap,c={};return Object.freeze(c),o.set(c,"__testvalue__"),o.get(c)==="__testvalue__"}catch{return!1}})())try{this.weakmap=new WeakMap}catch{}this.keys=[],this.values=[]}var i=r.prototype;return i._cleanupClosedWindows=function(){for(var o=this.weakmap,c=this.keys,s=0;s<c.length;s++){var l=c[s];if(Tr(l)&&Fe(l)){if(o)try{o.delete(l)}catch{}c.splice(s,1),this.values.splice(s,1),s-=1}}},i.isSafeToReadWrite=function(o){return!Tr(o)},i.set=function(o,c){if(!o)throw new Error("WeakMap expected key");var s=this.weakmap;if(s)try{s.set(o,c)}catch{delete this.weakmap}if(this.isSafeToReadWrite(o))try{var l=this.name,h=o[l];h&&h[0]===o?h[1]=c:Object.defineProperty(o,l,{value:[o,c],writable:!0});return}catch{}this._cleanupClosedWindows();var O=this.keys,P=this.values,E=it(O,o);E===-1?(O.push(o),P.push(c)):P[E]=c}
2,i.get=function(o){if(!o)throw new Error("WeakMap expected key");var c=this.weakmap;if(c)try{if(c.has(o))return c.get(o)}catch{delete this.weakmap}if(this.isSafeToReadWrite(o))try{var s=o[this.name];return s&&s[0]===o?s[1]:void 0}catch{}this._cleanupClosedWindows();var l=it(this.keys,o);if(l!==-1)return this.values[l]},i.delete=function(o){if(!o)throw new Error("WeakMap expected key");var c=this.weakmap;if(c)try{c.delete(o)}catch{delete this.weakmap}if(this.isSafeToReadWrite(o))try{var s=o[this.name];s&&s[0]===o&&(s[0]=s[1]=void 0)}catch{}this._cleanupClosedWindows();var l=this.keys,h=it(l,o);h!==-1&&(l.splice(h,1),this.values.splice(h,1))},i.has=function(o){if(!o)throw new Error("WeakMap expected key");var c=this.weakmap;if(c)try{if(c.has(o))return!0}catch{delete this.weakmap}if(this.isSafeToReadWrite(o))try{var s=o[this.name];return!(!s||s[0]!==o)}catch{}return this._cleanupClosedWindows(),it(this.keys,o)!==-1},i.getOrSet=function(o,c){if(this.has(o))return this.get(o);var s=c();return this.set(o,s),s},r})();function co(r){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)})(r)}function Bt(){if(typeof Reflect>"u"||!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{return!1}}function Ot(r,i,o){return(Ot=Bt()?Reflect.construct:function(c,s,l){var h=[null];h.push.apply(h,s);var O=new(Function.bind.apply(c,h));return l&&H(O,l.prototype),O}).apply(null,arguments)}function so(r){var i=typeof Map=="function"?new Map:void 0;return(so=function(o){if(o===null||(c=o,Function.toString.call(c).indexOf("[native code]")===-1))return o;var c;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(o))return i.get(o);i.set(o,s)}function s(){return Ot(o,arguments,co(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),H(s,o)})(r)}function fo(r){return r.name||r.__name__||r.displayName||"anonymous"}function qt(r,i){try{delete r.name,r.name=i}catch{}return r.__name__=r.displayName=i,r}function Ht(r){if(typeof btoa=="function")return btoa(encodeURIComponent(r).replace(/%([0-9A-F]{2})/g,(function(i,o){return String.fromCharCode(parseInt(o,16))}))).replace(/[=]/g,"");if(typeof Buffer<"u")return Buffer.from(r,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function xr(){var r="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return r.charAt(Math.floor(Math.random()*r.length))}))+"_"+Ht(new Date().toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}var at;function Ct(r){try{return JSON.stringify([].slice.call(r),(function(i,o){return typeof o=="function"?"memoize["+(function(c){if(at=at||new xt,c==null||typeof c!="object"&&typeof c!="function")throw new Error("Invalid object");var s=at.get(c);return s||(s=typeof c+":"+xr(),at.set(c,s)),s})(o)+"]":o}))}catch{throw new Error("Arguments not serializable -- can not be used to memoize")}}function Wr(){return{}}var Rn=0,Jt=0;function In(r,i){i===void 0&&(i={});var o=i.thisNamespace,c=o!==void 0&&o,s=i.time,l,h,O=Rn;Rn+=1;var P=function(){for(var E=arguments.length,C=new Array(E),y=0;y<E;y++)C[y]=arguments[y];O<Jt&&(l=null,h=null,O=Rn,Rn+=1);var S;S=c?(h=h||new xt).getOrSet(this,Wr):l=l||{};var D=Ct(C),J=S[D];if(J&&s&&Date.now()-J.time<s&&(delete S[D],J=null),J)return J.value;var V=Date.now(),re=r.apply(this,arguments);return S[D]={time:V,value:re},re};return P.reset=function(){l=null,h=null},qt(P,(i.name||fo(r))+"::memoized")}In.clear=function(){Jt=Rn};function Wt(r){var i={};function o(){for(var c=arguments,s=this,l=arguments.length,h=new Array(l),O=0;O<l;O++)h[O]=arguments[O];var P=Ct(h);return i.hasOwnProperty(P)||(i[P]=g.try((function(){return r.apply(s,c)})).finally((function(){delete i[P]}))),i[P]}return o.reset=function(){i={}},qt(o,fo(r)+"::promiseMemoized")}function dr(){}function sn(r){var i=!1;return qt((function(){if(!i)return i=!0,r.apply(this,arguments)}),fo(r)+"::once")}function ut(r,i){if(i===void 0&&(i=1),i>=3)return"stringifyError stack overflow";try{if(!r)return"<unknown error: "+{}.toString.call(r)+">";if(typeof r=="string")return r;if(r instanceof Error){var o=r&&r.stack,c=r&&r.message;if(o&&c)return o.indexOf(c)!==-1?o:c+` 3`+o;if(o)return o;if(c)return c}return r&&r.toString&&typeof r.toString=="function"?r.toString():{}.toString.call(r)}catch(s){return"Error while stringifying error: "+ut(s,i+1)}}function nr(r){return typeof r=="string"?r:r&&r.toString&&typeof r.toString=="function"?r.toString():{}.toString.call(r)}function Vn(r,i){if(!i)return r;if(Object.assign)return Object.assign(r,i);for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o]);return r}In((function(r){if(Object.values)return Object.values(r);var i=[];for(var o in r)r.hasOwnProperty(o)&&i.push(r[o]);return i}));function ct(r){return r}function zn(r,i){var o;return(function c(){o=setTimeout((function(){r(),c()}),i)})(),{cancel:function(){clearTimeout(o)}}}function st(r){return[].slice.call(r)}function Tn(r){return r!=null}function _n(r){return{}.toString.call(r)==="[object RegExp]"}function Xn(r,i,o){if(r.hasOwnProperty(i))return r[i];var c=o();return r[i]=c,c}function dn(r){var i=[],o=!1,c,s={set:function(l,h){return o||(r[l]=h,s.register((function(){delete r[l]}))),h},register:function(l){var h=sn((function(){return l(c)}));return o?l(c):i.push(h),{cancel:function(){var O=i.indexOf(h);O!==-1&&i.splice(O,1)}}},all:function(l){c=l;var h=[];for(o=!0;i.length;){var O=i.shift();h.push(O())}return g.all(h).then(dr)}};return s}function dt(r,i){if(i==null)throw new Error("Expected "+r+" to be present");return i}var St=(function(r){me(i,r);function i(o){var c;return(c=r.call(this,o)||this).name=c.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace((function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s})(c),c.constructor):c.stack=new Error(o).stack,c}return i})(so(Error));function Dt(){var r=document.body;if(!r)throw new Error("Body element not found");return r}function Kn(){return!!document.body&&document.readyState==="complete"}function Mo(){return!!document.body&&document.readyState==="interactive"}function lo(r){return encodeURIComponent(r)}In((function(){return new g((function(r){if(Kn()||Mo())return r();var i=setInterval((function(){if(Kn()||Mo())return clearInterval(i),r()}),10)}))}));function Nt(r){return(function(i,o,c){c===void 0&&(c=[]);var s=i.__inline_memoize_cache__=i.__inline_memoize_cache__||{},l=Ct(c);return s.hasOwnProperty(l)?s[l]:s[l]=(function(){var h={};if(!r||r.indexOf("=")===-1)return h;for(var O=0,P=r.split("&");O<P.length;O++){var E=P[O];(E=E.split("="))[0]&&E[1]&&(h[decodeURIComponent(E[0])]=decodeURIComponent(E[1]))}return h}).apply(void 0,c)})(Nt,0,[r])}function ho(r,i){return i===void 0&&(i={}),i&&Object.keys(i).length?(function(o){return o===void 0&&(o={}),Object.keys(o).filter((function(c){return typeof o[c]=="string"||typeof o[c]=="boolean"})).map((function(c){var s=o[c];
3if(typeof s!="string"&&typeof s!="boolean")throw new TypeError("Invalid type for query");return lo(c)+"="+lo(s.toString())})).join("&")})(Te({},Nt(r),i)):r}function Uo(r,i){r.appendChild(i)}function vo(r){return r instanceof window.Element||r!==null&&typeof r=="object"&&r.nodeType===1&&typeof r.style=="object"&&typeof r.ownerDocument=="object"}function $t(r,i){return i===void 0&&(i=document),vo(r)?r:typeof r=="string"?i.querySelector(r):void 0}function Lo(r){return new g((function(i,o){var c=nr(r),s=$t(r);if(s)return i(s);if(Kn())return o(new Error("Document is ready and element "+c+" does not exist"));var l=setInterval((function(){if(s=$t(r))i(s),clearInterval(l);else if(Kn())return clearInterval(l),o(new Error("Document is ready and element "+c+" does not exist"))}),10)}))}var jo=(function(r){me(i,r);function i(){return r.apply(this,arguments)||this}return i})(St),ft;function wo(r){if((ft=ft||new xt).has(r)){var i=ft.get(r);if(i)return i}var o=new g((function(c,s){r.addEventListener("load",(function(){(function(l){if((function(){for(var h=0;h<Sn.length;h++){var O=!1;try{O=Sn[h].closed}catch{}O&&(Pt.splice(h,1),Sn.splice(h,1))}})(),l&&l.contentWindow)try{Sn.push(l.contentWindow),Pt.push(l)}catch{}})(r),c(r)})),r.addEventListener("error",(function(l){r.contentWindow?c(r):s(l)}))}));return ft.set(r,o),o}function Rt(r){return wo(r).then((function(i){if(!i.contentWindow)throw new Error("Could not find window in iframe");return i.contentWindow}))}function It(r,i){r===void 0&&(r={});var o=r.style||{},c=(function(l,h,O){l===void 0&&(l="div"),h===void 0&&(h={}),l=l.toLowerCase();var P=document.createElement(l);if(h.style&&Vn(P.style,h.style),h.class&&(P.className=h.class.join(" ")),h.id&&P.setAttribute("id",h.id),h.attributes)for(var E=0,C=Object.keys(h.attributes);E<C.length;E++){var y=C[E];P.setAttribute(y,h.attributes[y])}if(h.styleSheet&&(function(S,D,J){J===void 0&&(J=window.document),S.styleSheet?S.styleSheet.cssText=D:S.appendChild(J.createTextNode(D))})(P,h.styleSheet),h.html){if(l==="iframe")throw new Error("Iframe html can not be written unless container provided and iframe in DOM");P.innerHTML=h.html}return P})("iframe",{attributes:Te({allowTransparency:"true"},r.attributes||{}),style:Te({backgroundColor:"transparent",border:"none"},o),html:r.html,class:r.class}),s=window.navigator.userAgent.match(/MSIE|Edge/i);return c.hasAttribute("id")||c.setAttribute("id",xr()),wo(c),(r.url||s)&&c.setAttribute("src",r.url||"about:blank"),c}function po(r,i,o){return r.addEventListener(i,o),{cancel:function(){r.removeEventListener(i,o)}}}function mo(r){r.style.setProperty("display","")}function go(r){r.style.setProperty("display","none","important")}function lt(r){r&&r.parentNode&&r.parentNode.removeChild(r)}function Zt(r){return!(r&&r.parentNode&&r.ownerDocument&&r.ownerDocument.documentElement&&r.ownerDocument.documentElement.contains(r))}function yo(r,i,o){var c=o===void 0?{}:o,s=c.width,l=s===void 0||s,h=c.height,O=h===void 0||h,P=c.interval,E=P===void 0?100:P,C=c.win,y=C===void 0?window:C,S=r.offsetWidth,D=r.offsetHeight,J=!1;i({width:S,height:D});var V=function(){if(!J&&(function(G){return!!(G.offsetWidth||G.offsetHeight||G.getClientRects().length)})(r)){var Pe=r.offsetWidth,Se=r.offsetHeight;(l&&Pe!==S||O&&Se!==D)&&i({width:Pe,height:Se}),S=Pe,D=Se}},re,ne;return y.addEventListener("resize",V),y.ResizeObserver!==void 0?((re=new y.ResizeObserver(V)).observe(r),ne=zn(V,10*E)):y.MutationObserver!==void 0?((re=new y.MutationObserver(V)).observe(r,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),ne=zn(V,10*E)):ne=zn(V,E),{cancel:function(){J=!0,re.disconnect(),window.removeEventListener("resize",V),ne.cancel()}}}function Qn(r){for(;r.parentNode;)r=r.parentNode;return r.toString()==="[object ShadowRoot]"}var kn=typeof document<"u"?document.currentScript:null,Bo=In((function(){if(kn||(kn=(function(){try{var r=(function(){try{throw new Error("_")}catch(h){return h.stack||""}})(),i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(r),o=i&&i[1];if(!o)return;for(var c=0,s=[].slice.call(document.getElementsByTagName("script")).reverse();c<s.length;c++){var l=s[c];if(l.src&&l.src===o)return l}}catch{}})()))return kn;throw new Error("Can not determine current script")})),Eo=xr();In((function(){var r;try{r=Bo()}catch{return Eo}var i=r.getAttribute("data-uid");if(i&&typeof i=="string"||(i=r.getAttribute("data-uid-auto"))&&typeof i=="string")return i;if(r.src){var o=(function(c){for(var s="",l=0;l<c.length;l++){var h=c[l].charCodeAt(0)*l;
3c[l+1]&&(h+=c[l+1].charCodeAt(0)*(l-1)),s+=String.fromCharCode(97+Math.abs(h)%26)}return s})(JSON.stringify({src:r.src,dataset:r.dataset}));i="uid_"+o.slice(o.length-30)}else i=xr();return r.setAttribute("data-uid-auto",i),i}));function zt(r){return(function(i){if(typeof i=="number")return i;var o=i.match(/^([0-9]+)(px|%)$/);if(!o)throw new Error("Could not match css value from "+i);return parseInt(o[1],10)})(r)+"px"}function qo(r){return typeof r=="number"?zt(r):typeof(i=r)=="string"&&/^[0-9]+%$/.test(i)?r:zt(r);var i}function ht(r){r===void 0&&(r=window);var i="__post_robot_10_0_44__";return r!==window?r[i]:r[i]=r[i]||{}}var Po=function(){return{}};function fr(r,i){return r===void 0&&(r="store"),i===void 0&&(i=Po),Xn(ht(),r,(function(){var o=i();return{has:function(c){return o.hasOwnProperty(c)},get:function(c,s){return o.hasOwnProperty(c)?o[c]:s},set:function(c,s){return o[c]=s,s},del:function(c){delete o[c]},getOrSet:function(c,s){return Xn(o,c,s)},reset:function(){o=i()},keys:function(){return Object.keys(o)}}}))}var Ho=function(){};function Tt(){var r=ht();return r.WINDOW_WILDCARD=r.WINDOW_WILDCARD||new Ho,r.WINDOW_WILDCARD}function Ar(r,i){return r===void 0&&(r="store"),i===void 0&&(i=Po),fr("windowStore").getOrSet(r,(function(){var o=new xt,c=function(s){return o.getOrSet(s,i)};return{has:function(s){return c(s).hasOwnProperty(r)},get:function(s,l){var h=c(s);return h.hasOwnProperty(r)?h[r]:l},set:function(s,l){return c(s)[r]=l,l},del:function(s){delete c(s)[r]},getOrSet:function(s,l){return Xn(c(s),r,l)}}}))}function fn(){return fr("instance").getOrSet("instanceID",xr)}function bo(r,i){var o=i.domain,c=Ar("helloPromises"),s=c.get(r);s&&s.resolve({domain:o});var l=g.resolve({domain:o});return c.set(r,l),l}function Be(r,i){return(0,i.send)(r,"postrobot_hello",{instanceID:fn()},{domain:"*",timeout:-1}).then((function(o){var c=o.origin,s=o.data.instanceID;return bo(r,{domain:c}),{win:r,domain:c,instanceID:s}}))}function Jo(r,i){var o=i.send;return Ar("windowInstanceIDPromises").getOrSet(r,(function(){return Be(r,{send:o}).then((function(c){return c.instanceID}))}))}function At(r){Ar("knownWindows").set(r,!0)}function lr(r){return typeof r=="object"&&r!==null&&typeof r.__type__=="string"}function xo(r){return r===void 0?"undefined":r===null?"null":Array.isArray(r)?"array":typeof r=="function"?"function":typeof r=="object"?r instanceof Error?"error":typeof r.then=="function"?"promise":{}.toString.call(r)==="[object RegExp]"?"regex":{}.toString.call(r)==="[object Date]"?"date":"object":typeof r=="string"?"string":typeof r=="number"?"number":typeof r=="boolean"?"boolean":void 0}function An(r,i){return{__type__:r,__val__:i}}var Fr,$o=((Fr={}).function=function(){},Fr.error=function(r){return An("error",{message:r.message,stack:r.stack,code:r.code,data:r.data})},Fr.promise=function(){},Fr.regex=function(r){return An("regex",r.source)},Fr.date=function(r){return An("date",r.toJSON())},Fr.array=function(r){return r},Fr.object=function(r){return r},Fr.string=function(r){return r},Fr.number=function(r){return r},Fr.boolean=function(r){return r},Fr.null=function(r){return r},Fr[void 0]=function(r){return An("undefined",r)},Fr),Zo={},Ur,Oo=((Ur={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},Ur.error=function(r){var i=r.stack,o=r.code,c=r.data,s=new Error(r.message);return s.code=o,c&&(s.data=c),s.stack=i+` 4 5`+s.stack,s},Ur.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},Ur.regex=function(r){return new RegExp(r)},Ur.date=function(r){return new Date(r)},Ur.array=function(r){return r},Ur.object=function(r){return r},Ur.string=function(r){return r},Ur.number=function(r){return r},Ur.boolean=function(r){return r},Ur.null=function(r){return r},Ur[void 0]=function(){},Ur),Go={};new g((function(r){if(window.document&&window.document.body)return r(window.document.body);var i=setInterval((function(){if(window.document&&window.document.body)return clearInterval(i),r(window.document.body)}),10)}));function Dn(){for(var r=fr("idToProxyWindow"),i=0,o=r.keys();i<o.length;i++){var c=o[i];r.get(c).shouldClean()&&r.del(c)}}function Lr(r,i){var o=i.send,c=i.id,s=c===void 0?xr():c,l=r.then((function(P){if(xe(P))return sr(P).name})),h=r.then((function(P){if(Fe(P))throw new Error("Window is closed, can not determine type");
5return Yr(P)?qn.POPUP:qn.IFRAME}));l.catch(dr),h.catch(dr);var O=function(){return r.then((function(P){if(!Fe(P))return xe(P)?sr(P).name:l}))};return{id:s,getType:function(){return h},getInstanceID:Wt((function(){return r.then((function(P){return Jo(P,{send:o})}))})),close:function(){return r.then(Yn)},getName:O,focus:function(){return r.then((function(P){P.focus()}))},isClosed:function(){return r.then((function(P){return Fe(P)}))},setLocation:function(P,E){return E===void 0&&(E={}),r.then((function(C){var y=window.location.protocol+"//"+window.location.host,S=E.method,D=S===void 0?"get":S,J=E.body;if(P.indexOf("/")===0)P=""+y+P;else if(!P.match(/^https?:\/\//)&&P.indexOf(y)!==0)throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(P));if(D==="post")return O().then((function(V){if(!V)throw new Error("Can not post to window without target name");(function(re){var ne=re.url,Pe=re.target,Se=re.body,G=re.method,se=G===void 0?"post":G,de=document.createElement("form");if(de.setAttribute("target",Pe),de.setAttribute("method",se),de.setAttribute("action",ne),de.style.display="none",Se)for(var e=0,n=Object.keys(Se);e<n.length;e++){var t,a=n[e],u=document.createElement("input");u.setAttribute("name",a),u.setAttribute("value",(t=Se[a])==null?void 0:t.toString()),de.appendChild(u)}Dt().appendChild(de),de.submit(),Dt().removeChild(de)})({url:P,target:V,method:D,body:J})}));if(D!=="get")throw new Error("Unsupported method: "+D);if(xe(C))try{if(C.location&&typeof C.location.replace=="function"){C.location.replace(P);return}}catch{}C.location=P}))},setName:function(P){return r.then((function(E){var C=xe(E),y=uo(E);if(!C)throw new Error("Can not set name for cross-domain window: "+P);sr(E).name=P,y&&y.setAttribute("name",P),l=g.resolve(P)}))}}}var ln=(function(){function r(o){var c=o.send,s=o.win,l=o.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new g,this.serializedWindow=l||Lr(this.actualWindowPromise,{send:c}),fr("idToProxyWindow").set(this.getID(),this),s&&this.setWindow(s,{send:c})}var i=r.prototype;return i.getID=function(){return this.serializedWindow.id},i.getType=function(){return this.serializedWindow.getType()},i.isPopup=function(){return this.getType().then((function(o){return o===qn.POPUP}))},i.setLocation=function(o,c){var s=this;return this.serializedWindow.setLocation(o,c).then((function(){return s}))},i.getName=function(){return this.serializedWindow.getName()},i.setName=function(o){var c=this;return this.serializedWindow.setName(o).then((function(){return c}))},i.close=function(){var o=this;return this.serializedWindow.close().then((function(){return o}))},i.focus=function(){var o=this,c=this.isPopup(),s=this.getName(),l=g.hash({isPopup:c,name:s}).then((function(O){var P=O.name;O.isPopup&&P&&window.open("",P)})),h=this.serializedWindow.focus();return g.all([l,h]).then((function(){return o}))},i.isClosed=function(){return this.serializedWindow.isClosed()},i.getWindow=function(){return this.actualWindow},i.setWindow=function(o,c){var s=c.send;this.actualWindow=o,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Lr(this.actualWindowPromise,{send:s,id:this.getID()}),Ar("winToProxyWindow").set(o,this)},i.awaitWindow=function(){return this.actualWindowPromise},i.matchWindow=function(o,c){var s=this,l=c.send;return g.try((function(){return s.actualWindow?o===s.actualWindow:g.hash({proxyInstanceID:s.getInstanceID(),knownWindowInstanceID:Jo(o,{send:l})}).then((function(h){var O=h.proxyInstanceID===h.knownWindowInstanceID;return O&&s.setWindow(o,{send:l}),O}))}))},i.unwrap=function(){return this.actualWindow||this},i.getInstanceID=function(){return this.serializedWindow.getInstanceID()},i.shouldClean=function(){return!!(this.actualWindow&&Fe(this.actualWindow))},i.serialize=function(){return this.serializedWindow},r.unwrap=function(o){return r.isProxyWindow(o)?o.unwrap():o},r.serialize=function(o,c){var s=c.send;return Dn(),r.toProxyWindow(o,{send:s}).serialize()},r.deserialize=function(o,c){var s=c.send;return Dn(),fr("idToProxyWindow").get(o.id)||new r({serializedWindow:o,send:s})}
5,r.isProxyWindow=function(o){return!!(o&&!Tr(o)&&o.isProxyWindow)},r.toProxyWindow=function(o,c){var s=c.send;if(Dn(),r.isProxyWindow(o))return o;var l=o;return Ar("winToProxyWindow").get(l)||new r({win:l,send:s})},r})();function Co(r,i,o,c,s){var l=Ar("methodStore"),h=fr("proxyWindowMethods");ln.isProxyWindow(c)?h.set(r,{val:i,name:o,domain:s,source:c}):(h.del(r),l.getOrSet(c,(function(){return{}}))[r]={domain:s,name:o,val:i,source:c})}function jr(r,i){var o=Ar("methodStore"),c=fr("proxyWindowMethods");return o.getOrSet(r,(function(){return{}}))[i]||c.get(i)}function Yo(r,i,o,c,s){h=(l={on:s.on,send:s.send}).on,O=l.send,fr("builtinListeners").getOrSet("functionCalls",(function(){return h("postrobot_method",{domain:"*"},(function(C){var y=C.source,S=C.origin,D=C.data,J=D.id,V=D.name,re=jr(y,J);if(!re)throw new Error("Could not find method '"+V+"' with id: "+D.id+" in "+ue(window));var ne=re.source,Pe=re.domain,Se=re.val;return g.try((function(){if(!Vr(Pe,S))throw new Error("Method '"+D.name+"' domain "+JSON.stringify(_n(re.domain)?re.domain.source:re.domain)+" does not match origin "+S+" in "+ue(window));if(ln.isProxyWindow(ne))return ne.matchWindow(y,{send:O}).then((function(G){if(!G)throw new Error("Method call '"+D.name+"' failed - proxy window does not match source in "+ue(window))}))})).then((function(){return Se.apply({source:y,origin:S},D.args)}),(function(G){return g.try((function(){if(Se.onError)return Se.onError(G)})).then((function(){throw G.stack&&(G.stack="Remote call to "+V+"("+(function(se){return se===void 0&&(se=[]),st(se).map((function(de){return typeof de=="string"?"'"+de+"'":de===void 0?"undefined":de===null?"null":typeof de=="boolean"?de.toString():Array.isArray(de)?"[ ... ]":typeof de=="object"?"{ ... }":typeof de=="function"?"() => { ... }":"<"+typeof de+">"})).join(", ")})(D.args)+`) failed 6 7`+G.stack),G}))})).then((function(G){return{result:G,id:J,name:V}}))}))}));var l,h,O,P=o.__id__||xr();r=ln.unwrap(r);var E=o.__name__||o.name||c;return typeof E=="string"&&typeof E.indexOf=="function"&&E.indexOf("anonymous::")===0&&(E=E.replace("anonymous::",c+"::")),ln.isProxyWindow(r)?(Co(P,o,E,r,i),r.awaitWindow().then((function(C){Co(P,o,E,C,i)}))):Co(P,o,E,r,i),An("cross_domain_function",{id:P,name:E})}function Vo(r,i,o,c){var s,l=c.on,h=c.send;return(function(O,P){P===void 0&&(P=Zo);var E=JSON.stringify(O,(function(C){var y=this[C];if(lr(this))return y;var S=xo(y);if(!S)return y;var D=P[S]||$o[S];return D?D(y,C):y}));return E===void 0?"undefined":E})(o,((s={}).promise=function(O,P){return(function(E,C,y,S,D){return An("cross_domain_zalgo_promise",{then:Yo(E,C,(function(J,V){return y.then(J,V)}),S,{on:D.on,send:D.send})})})(r,i,O,P,{on:l,send:h})},s.function=function(O,P){return Yo(r,i,O,P,{on:l,send:h})},s.object=function(O){return Tr(O)||ln.isProxyWindow(O)?An("cross_domain_window",ln.serialize(O,{send:h})):O},s))}function Gt(r,i,o,c){var s,l=c.send;return(function(h,O){if(O===void 0&&(O=Go),h!=="undefined")return JSON.parse(h,(function(P,E){if(lr(this))return E;var C,y;if(lr(E)?(C=E.__type__,y=E.__val__):(C=xo(E),y=E),!C)return y;var S=O[C]||Oo[C];return S?S(y,P):y}))})(o,((s={}).cross_domain_zalgo_promise=function(h){return(function(O,P,E){return new g(E.then)})(0,0,h)},s.cross_domain_function=function(h){return(function(O,P,E,C){var y=E.id,S=E.name,D=C.send,J=function(re){re===void 0&&(re={});function ne(){var Pe=arguments;return ln.toProxyWindow(O,{send:D}).awaitWindow().then((function(Se){var G=jr(Se,y);if(G&&G.val!==ne)return G.val.apply({source:window,origin:ue()},Pe);var se=[].slice.call(Pe);return re.fireAndForget?D(Se,"postrobot_method",{id:y,name:S,args:se},{domain:P,fireAndForget:!0}):D(Se,"postrobot_method",{id:y,name:S,args:se},{domain:P,fireAndForget:!1}).then((function(de){return de.data.result}))})).catch((function(Se){throw Se}))}return ne.__name__=S,ne.__origin__=P,ne.__source__=O,ne.__id__=y,ne.origin=P,ne},V=J();return V.fireAndForget=J({fireAndForget:!0}),V})(r,i,h,{send:l})},s.cross_domain_window=function(h){return ln.deserialize(h,{send:l})},s))}var Ft={};Ft.postrobot_post_message=function(r,i,o){o.indexOf("file:")===0&&(o="*"),r.postMessage(i,o)},Ft.postrobot_global=function(r,i){if(!(function(c){return(c=c||window).navigator.mockUserAgent||c.navigator.userAgent})(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!xe(r))throw new Error("Post message through global disabled between different domain windows");if(jt(window,r)!==!1)throw new Error("Can only use global to communicate between two different windows, not between frames");var o=ht(r);if(!o)throw new Error("Can not find postRobot global on foreign window");o.receiveMessage({source:window,origin:ue(),data:i})};function Yt(r,i,o,c){var s=c.on,l=c.send;return g.try((function(){var h=Ar().getOrSet(r,(function(){return{}}));return h.buffer=h.buffer||[],h.buffer.push(o),h.flush=h.flush||g.flush().then((function(){if(Fe(r))throw new Error("Window is closed");var O=Vo(r,i,((P={}).__post_robot_10_0_44__=h.buffer||[],P),{on:s,send:l}),P;delete h.buffer;for(var E=Object.keys(Ft),C=[],y=0;y<E.length;y++){var S=E[y];try{Ft[S](r,O,i)}catch(D){C.push(D)}}if(C.length===E.length)throw new Error(`All post-robot messaging strategies failed: 8 9`+C.map((function(D,J){return J+". "+ut(D)})).join(` 10 11`))})),h.flush.then((function(){delete h.flush}))})).then(dr)}function Wo(r){return fr("responseListeners").get(r)}function Vt(r){fr("responseListeners").del(r)}function So(r){return fr("erroredResponseListeners").has(r)}function _o(r){var i=r.name,o=r.win,c=r.domain,s=Ar("requestListeners");if(o==="*"&&(o=null),c==="*"&&(c=null),!i)throw new Error("Name required to get request listener");for(var l=0,h=[o,Tt()];l<h.length;l++){var O=h[l];if(O){var P=s.get(O);if(P){var E=P[i];if(E){if(c&&typeof c=="string"){if(E[c])return E[c];if(E.__domain_regex__)for(var C=0,y=E.__domain_regex__;C<y.length;C++){var S=y[C],D=S.listener;
vendor: 1,306 bytes, lines 11-15
11if(Vr(S.regex,c))return D}}if(E["*"])return E["*"]}}}}}function Xo(r,i,o,c){var s=c.on,l=c.send,h=_o({name:o.name,win:r,domain:i}),O=o.name==="postrobot_method"&&o.data&&typeof o.data.name=="string"?o.data.name+"()":o.name;function P(E,C,y){return g.flush().then((function(){if(!o.fireAndForget&&!Fe(r))try{return Yt(r,i,{id:xr(),origin:ue(window),type:"postrobot_message_response",hash:o.hash,name:o.name,ack:E,data:C,error:y},{on:s,send:l})}catch(S){throw new Error("Send response message failed for "+O+" in "+ue()+` 12 13`+ut(S))}}))}return g.all([g.flush().then((function(){if(!o.fireAndForget&&!Fe(r))try{return Yt(r,i,{id:xr(),origin:ue(window),type:"postrobot_message_ack",hash:o.hash,name:o.name},{on:s,send:l})}catch(E){throw new Error("Send ack message failed for "+O+" in "+ue()+` 14 15`+ut(E))}})),g.try((function(){if(!h)throw new Error("No handler found for post message: "+o.name+" from "+i+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!Vr(h.domain,i))throw new Error("Request origin "+i+" does not match domain "+h.domain.toString());return h.handler({source:r,origin:i,data:o.data})})).then((function(E){return P("success",E)}),(function(E){return P("error",null,E)}))]).then(dr).catch((function(E){if(h&&h.handleError)return h.handleError(E);throw E}))}
15function Do(r,i,o){if(!So(o.hash)){var c=Wo(o.hash);if(!c)throw new Error("No handler found for post message ack for message: "+o.name+" from "+i+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!Vr(c.domain,i))throw new Error("Ack origin "+i+" does not match domain "+c.domain.toString());if(r!==c.win)throw new Error("Ack source does not match registered window")}catch(s){c.promise.reject(s)}c.ack=!0}}function Ko(r,i,o){if(!So(o.hash)){var c=Wo(o.hash);if(!c)throw new Error("No handler found for post message response for message: "+o.name+" from "+i+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!Vr(c.domain,i))throw new Error("Response origin "+i+" does not match domain "+(s=c.domain,Array.isArray(s)?"("+s.join(" | ")+")":Wn(s)?"RegExp("+s.toString()+")":s.toString()));var s;if(r!==c.win)throw new Error("Response source does not match registered window");Vt(o.hash),o.ack==="error"?c.promise.reject(o.error):o.ack==="success"&&c.promise.resolve({source:r,origin:i,data:o.data})}}function _t(r,i){var o=i.on,c=i.send,s=fr("receivedMessages");try{if(!window||window.closed||!r.source)return}catch{return}var l=r.source,h=r.origin,O=(function(C,y,S,D){var J=D.on,V=D.send,re;try{re=Gt(y,S,C,{on:J,send:V})}catch{return}if(re&&typeof re=="object"&&re!==null){var ne=re.__post_robot_10_0_44__;if(Array.isArray(ne))return ne}})(r.data,l,h,{on:o,send:c});if(O){At(l);for(var P=0;P<O.length;P++){var E=O[P];if(s.has(E.id)||(s.set(E.id,!0),Fe(l)&&!E.fireAndForget))return;E.origin.indexOf("file:")===0&&(h="file://");try{E.type==="postrobot_message_request"?Xo(l,h,E,{on:o,send:c}):E.type==="postrobot_message_response"?Ko(l,h,E):E.type==="postrobot_message_ack"&&Do(l,h,E)}catch(C){setTimeout((function(){throw C}),0)}}}}function yn(r,i,o){if(!r)throw new Error("Expected name");if(typeof(i=i||{})=="function"&&(o=i,i={}),!o)throw new Error("Expected handler");(i=i||{}).name=r,i.handler=o||i.handler;var c=i.window,s=i.domain,l=(function h(O,P){var E=O.name,C=O.win,y=O.domain,S=Ar("requestListeners");if(!E||typeof E!="string")throw new Error("Name required to add request listener");if(Array.isArray(C)){for(var D=[],J=0,V=C;J<V.length;J++)D.push(h({name:E,domain:y,win:V[J]},P));return{cancel:function(){for(var t=0;t<D.length;t++)D[t].cancel()}}}if(Array.isArray(y)){for(var re=[],ne=0,Pe=y;ne<Pe.length;ne++)re.push(h({name:E,win:C,domain:Pe[ne]},P));return{cancel:function(){for(var t=0;t<re.length;t++)re[t].cancel()}}}var Se=_o({name:E,win:C,domain:y});if(C&&C!=="*"||(C=Tt()),y=y||"*",Se)throw C&&y?new Error("Request listener already exists for "+E+" on domain "+y.toString()+" for "+(C===Tt()?"wildcard":"specified")+" window"):C?new Error("Request listener already exists for "+E+" for "+(C===Tt()?"wildcard":"specified")+" window"):y?new Error("Request listener already exists for "+E+" on domain "+y.toString()):new Error("Request listener already exists for "+E);var G=S.getOrSet(C,(function(){return{}})),se=Xn(G,E,(function(){return{}})),de=y.toString(),e,n;return _n(y)?(e=Xn(se,"__domain_regex__",(function(){return[]}))).push(n={regex:y,listener:P}):se[de]=P,{cancel:function(){delete se[de],n&&(e.splice(e.indexOf(n,1)),e.length||delete se.__domain_regex__),Object.keys(se).length||delete G[E],C&&!Object.keys(G).length&&S.del(C)}}})({name:r,win:c,domain:s},{handler:i.handler,handleError:i.errorHandler||function(h){throw h},window:c,domain:s||"*",name:r});return{cancel:function(){l.cancel()}}}var hn=function r(i,o,c,s){var l=(s=s||{}).domain||"*",h=s.timeout||-1,O=s.timeout||5e3,P=s.fireAndForget||!1;return g.try((function(){if((function(E,C,y){if(!E)throw new Error("Expected name");if(typeof y!="string"&&!Array.isArray(y)&&!_n(y))throw new TypeError("Can not send "+E+". Expected domain "+JSON.stringify(y)+" to be a string, array, or regex");if(Fe(C))throw new Error("Can not send "+E+". Target window is closed")})(o,i,l),(function(E,C){var y=Nn(C);if(y)return y===E;if(C===E||un(C)===C)return!1;for(var S=0,D=$n(E);S<D.length;S++)if(D[S]===C)return!0;return!1})(window,i))return(function(E,C,y){C===void 0&&(C=5e3),y===void 0&&(y="Window");var S=(function(D){return Ar("helloPromises").getOrSet(D,(function(){return new g}))})(E);
15return C!==-1&&(S=S.timeout(C,new Error(y+" did not load after "+C+"ms"))),S})(i,O)})).then((function(E){return(function(C,y,S,D){var J=D.send;return g.try((function(){return typeof y=="string"?y:g.try((function(){return S||Be(C,{send:J}).then((function(V){return V.domain}))})).then((function(V){if(!Vr(y,y))throw new Error("Domain "+nr(y)+" does not match "+nr(y));return V}))}))})(i,l,(E===void 0?{}:E).domain,{send:r})})).then((function(E){var C=E,y=o==="postrobot_method"&&c&&typeof c.name=="string"?c.name+"()":o,S=new g,D=o+"_"+xr();if(!P){var J={name:o,win:i,domain:C,promise:S};(function(se,de){fr("responseListeners").set(se,de)})(D,J);var V=Ar("requestPromises").getOrSet(i,(function(){return[]}));V.push(S),S.catch((function(){(function(se){fr("erroredResponseListeners").set(se,!0)})(D),Vt(D)}));var re=(function(se){return Ar("knownWindows").get(se,!1)})(i)?1e4:2e3,ne=h,Pe=re,Se=ne,G=zn((function(){return Fe(i)?S.reject(new Error("Window closed for "+o+" before "+(J.ack?"response":"ack"))):J.cancelled?S.reject(new Error("Response listener was cancelled for "+o)):(Pe=Math.max(Pe-500,0),Se!==-1&&(Se=Math.max(Se-500,0)),J.ack||Pe!==0?Se===0?S.reject(new Error("No response for postMessage "+y+" in "+ue()+" in "+ne+"ms")):void 0:S.reject(new Error("No ack for postMessage "+y+" in "+ue()+" in "+re+"ms")))}),500);S.finally((function(){G.cancel(),V.splice(V.indexOf(S,1))})).catch(dr)}return Yt(i,C,{id:xr(),origin:ue(window),type:"postrobot_message_request",hash:D,name:o,data:c,fireAndForget:P},{on:yn,send:r}).then((function(){return P?S.resolve():S}),(function(se){throw new Error("Send request message failed for "+y+" in "+ue()+` 16 17`+ut(se))}))}))};function et(r){return ln.toProxyWindow(r,{send:hn})}function vt(r){if(!xe(r))throw new Error("Can not get global for window on different domain");return r.__zoid_9_0_86__||(r.__zoid_9_0_86__={}),r.__zoid_9_0_86__}function en(r,i){try{return i(vt(r))}catch{}}function wt(r){return{get:function(){var i=this;return g.try((function(){if(i.source&&i.source!==window)throw new Error("Can not call get on proxy object from a remote window");return r}))}}}function Qo(r){return Ht(JSON.stringify(r))}function Xt(r){var i=vt(r);return i.references=i.references||{},i.references}function No(r){var i=r.data,o=r.metaData,c=r.sender,s=r.receiver,l=r.passByReference,h=l!==void 0&&l,O=r.basic,P=O!==void 0&&O,E=et(s.win),C=P?JSON.stringify(i):Vo(E,s.domain,i,{on:yn,send:hn}),y=h?(function(S){var D=xr();return Xt(window)[D]=S,{type:"uid",uid:D}})(C):{type:"raw",val:C};return{serializedData:Qo({sender:{domain:c.domain},metaData:o,reference:y}),cleanReference:function(){S=window,(D=y).type==="uid"&&delete Xt(S)[D.uid];var S,D}}}function Ro(r){var i=r.sender,o=r.basic,c=o!==void 0&&o,s=(function(C){return JSON.parse((function(y){if(typeof atob=="function")return decodeURIComponent([].map.call(atob(y),(function(S){return"%"+("00"+S.charCodeAt(0).toString(16)).slice(-2)})).join(""));if(typeof Buffer<"u")return Buffer.from(y,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")})(C))})(r.data),l=s.reference,h=s.metaData,O;O=typeof i.win=="function"?i.win({metaData:h}):i.win;var P;P=typeof i.domain=="function"?i.domain({metaData:h}):typeof i.domain=="string"?i.domain:s.sender.domain;var E=(function(C,y){if(y.type==="raw")return y.val;if(y.type==="uid")return Xt(C)[y.uid];throw new Error("Unsupported ref type: "+y.type)})(O,l);return{data:c?JSON.parse(E):(function(C,y,S){return Gt(C,y,S,{send:hn})})(O,P,E),metaData:h,sender:{win:O,domain:P},reference:l}}var qe={STRING:"string",OBJECT:"object",FUNCTION:"function",BOOLEAN:"boolean",NUMBER:"number",ARRAY:"array"},pt={JSON:"json",DOTIFY:"dotify",BASE64:"base64"},Br=qn,tr={RENDER:"zoid-render",RENDERED:"zoid-rendered",DISPLAY:"zoid-display",ERROR:"zoid-error",CLOSE:"zoid-close",DESTROY:"zoid-destroy",PROP
17S:"zoid-props",RESIZE:"zoid-resize",FOCUS:"zoid-focus"};function Io(r){return"__zoid__"+r.name+"__"+r.serializedPayload+"__"}function Kt(r){if(!r)throw new Error("No window name");var i=r.split("__"),o=i[1],c=i[2],s=i[3];if(o!=="zoid")throw new Error("Window not rendered by zoid - got "+o);if(!c)throw new Error("Expected component name");if(!s)throw new Error("Expected serialized payload ref");return{name:c,serializedInitialPayload:s}}var oi=In((function(r){var i=Ro({data:Kt(r).serializedInitialPayload,sender:{win:function(o){return(function(c){if(c.type==="opener")return dt("opener",Yr(window));if(c.type==="parent"&&typeof c.distance=="number")return dt("parent",(function(h,O){return O===void 0&&(O=1),(function(P,E){E===void 0&&(E=1);for(var C=P,y=0;y<E;y++){if(!C)return;C=cr(C)}return C})(h,Gn(h)-O)})(window,c.distance));if(c.type==="global"&&c.uid&&typeof c.uid=="string"){var s=(function(){var h=c.uid,O=Nn(window);if(!O)throw new Error("Can not find ancestor window");for(var P=0,E=cn(O);P<E.length;P++){var C=E[P];if(xe(C)){var y=en(C,(function(S){return S.windows&&S.windows[h]}));if(y)return{v:y}}}})();if(typeof s=="object")return s.v}else if(c.type==="name"){var l=c.name;return dt("namedWindow",(function(h,O){return ao(h,O)||(function P(E,C){var y=ao(E,C);if(y)return y;for(var S=0,D=$n(E);S<D.length;S++){var J=P(D[S],C);if(J)return J}})(un(h)||h,O)})(dt("ancestor",Nn(window)),l))}throw new Error("Unable to find "+c.type+" parent component window")})(o.metaData.windowRef)}}});return{parent:i.sender,payload:i.data,reference:i.reference}}));function ko(){return oi(window.name)}function ii(r,i){if(i===void 0&&(i=window),r===cr(i))return{type:"parent",distance:Gn(r)};if(r===Yr(i))return{type:"opener"};if(xe(r)&&(c=r,c!==un(c))){var o=sr(r).name;if(o)return{type:"name",name:o}}var c}function Qt(r,i,o,c,s){if(!r.hasOwnProperty(o))return c;var l=r[o];return typeof l.childDecorate=="function"?l.childDecorate({value:c,uid:s.uid,tag:s.tag,close:s.close,focus:s.focus,onError:s.onError,onProps:s.onProps,resize:s.resize,getParent:s.getParent,getParentDomain:s.getParentDomain,show:s.show,hide:s.hide,export:s.export,getSiblings:s.getSiblings}):c}function Fn(){return g.try((function(){window.focus()}))}function rn(){return g.try((function(){window.close()}))}var vn=function(){return dr},mt=function(r){return sn(r.value)};function En(r,i,o){for(var c=0,s=Object.keys(Te({},r,i));c<s.length;c++){var l=s[c];o(l,i[l],r[l])}}function gt(r,i,o){var c={};return g.all((function(s,l,h){var O=[];return En(s,l,(function(P,E,C){var y=(function(S,D,J){return g.resolve().then((function(){var V,re;if(J!=null&&D){var ne=(V={},V.get=D.queryParam,V.post=D.bodyParam,V)[o],Pe=(re={},re.get=D.queryValue,re.post=D.bodyValue,re)[o];if(ne)return g.hash({finalParam:g.try((function(){return typeof ne=="function"?ne({value:J}):typeof ne=="string"?ne:S})),finalValue:g.try((function(){return typeof Pe=="function"&&Tn(J)?Pe({value:J}):J}))}).then((function(Se){var G=Se.finalParam,se=Se.finalValue,de;if(typeof se=="boolean")de=se.toString();else if(typeof se=="string")de=se.toString();else if(typeof se=="object"&&se!==null){if(D.serialization===pt.JSON)de=JSON.stringify(se);else if(D.serialization===pt.BASE64)de=Ht(JSON.stringify(se));else if(D.serialization===pt.DOTIFY||!D.serialization){de=(function a(u,d,f){d===void 0&&(d=""),f===void 0&&(f={}),d=d&&d+".";for(var p in u)u.hasOwnProperty(p)&&u[p]!=null&&typeof u[p]!="function"&&(u[p]&&Array.isArray(u[p])&&u[p].length&&u[p].every((function(v){return typeof v!="object"}))?f[""+d+p+"[]"]=u[p].join(","):u[p]&&typeof u[p]=="object"?f=a(u[p],""+d+p,f):f[""+d+p]=u[p].toString());return f})(se,S);for(var e=0,n=Object.keys(de);e<n.length;e++){var t=n[e];c[t]=de[t]}return}}else typeof se=="number"&&(de=se.toString());c[G]=de}))}}))})(P,E,C);O.push(y)})),O})(i,r)).then((function(){return c}))}function zo(r){var i=r.uid,o=r.options,c=r.overrides,s=c===void 0?{}:c,l=r.parentWin,h=l===void 0?window:l,O=o.propsDef,P=o.containerTemplate,E=o.prerenderTemplate,C=o.tag,y=o.name,S=o.attributes,D=o.dimensions,J=o.autoResize,V=o.url,re=o.domain,ne=o.exports,Pe=new g,Se=[],G=dn(),se={},de={},e={visible:!0},n=s.event?s.event:(t={},a={},u={on:function(N,j){var te=a[N]=a[N]||[];te.push(j);var Q=!1;return{cancel:function(){Q||(Q=!0,te.splice(te.indexOf(j),1))}}},once:function(N,j){var te=u.on(N,(function(){te.cancel(),j()}));return te},trigger:function(N){for(var j=arguments.length,te=new Array(j>1?j-1:0),Q=1;Q<j;Q++)te[Q-1]=arguments[Q];var Oe=a[N],Ae=[];
17if(Oe)for(var Ke=function(ar){var He=Oe[ar];Ae.push(g.try((function(){return He.apply(void 0,te)})))},Ye=0;Ye<Oe.length;Ye++)Ke(Ye);return g.all(Ae).then(dr)},triggerOnce:function(N){if(t[N])return g.resolve();t[N]=!0;for(var j=arguments.length,te=new Array(j>1?j-1:0),Q=1;Q<j;Q++)te[Q-1]=arguments[Q];return u.trigger.apply(u,[N].concat(te))},reset:function(){a={}}}),t,a,u,d=s.props?s.props:{},f,p,v,m,b,w=s.onError,x=s.getProxyContainer,W=s.show,T=s.hide,I=s.close,B=s.renderContainer,_=s.getProxyWindow,ce=s.setProxyWin,fe=s.openFrame,M=s.openPrerenderFrame,z=s.prerender,Y=s.open,F=s.openPrerender,U=s.watchForUnload,le=s.getInternalState,he=s.setInternalState,K=function(){return g.try((function(){return s.resolveInitPromise?s.resolveInitPromise():Pe.resolve()}))},L=function(N){return g.try((function(){return s.rejectInitPromise?s.rejectInitPromise(N):Pe.reject(N)}))},De=function(N){for(var j={},te=0,Q=Object.keys(d);te<Q.length;te++){var Oe=Q[te],Ae=O[Oe];Ae&&Ae.sendToChild===!1||Ae&&Ae.sameDomain&&!Vr(N,ue(window))||(j[Oe]=d[Oe])}return g.hash(j)},pe=function(){return g.try((function(){return le?le():e}))},er=function(N){return g.try((function(){return he?he(N):e=Te({},e,N)}))},rr=function(){return _?_():g.try((function(){var N=d.window;if(N){var j=et(N);return G.register((function(){return N.close()})),j}return new ln({send:hn})}))},hr=function(N){return ce?ce(N):g.try((function(){f=N}))},or=function(){return W?W():g.hash({setState:er({visible:!0}),showElement:p?p.get().then(mo):null}).then(dr)},Ir=function(){return T?T():g.hash({setState:er({visible:!1}),showElement:p?p.get().then(go):null}).then(dr)},wn=function(){return typeof V=="function"?V({props:d}):V},qr=function(){return typeof S=="function"?S({props:d}):S},mr=function(){return bt(wn())},pn=function(N,j){var te=j.windowName;return fe?fe(N,{windowName:te}):g.try((function(){if(N===Br.IFRAME)return wt(It({attributes:Te({name:te,title:y},qr().iframe)}))}
17))},Xr=function(N){return M?M(N):g.try((function(){if(N===Br.IFRAME)return wt(It({attributes:Te({name:"__zoid_prerender_frame__"+y+"_"+xr()+"__",title:"prerender__"+y},qr().iframe)}))}))},nn=function(N,j,te){return F?F(N,j,te):g.try((function(){if(N===Br.IFRAME){if(!te)throw new Error("Expected proxy frame to be passed");return te.get().then((function(Q){return G.register((function(){return lt(Q)})),Rt(Q).then((function(Oe){return sr(Oe)})).then((function(Oe){return et(Oe)}))}))}throw new Error("No render context available for "+N)}))},tn=function(){return g.try((function(){if(f)return g.all([n.trigger(tr.FOCUS),f.focus()]).then(dr)}))},rt=function(){var N=vt(window);return N.windows=N.windows||{},N.windows[i]=window,G.register((function(){delete N.windows[i]})),i},Ne=function(N,j,te,Q){if(j===ue(window))return{type:"global",uid:rt()};if(N!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(d.window){var Oe=Q.getWindow();if(!Oe)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(Nn(Oe)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(te===Br.POPUP)return{type:"opener"};if(te===Br.IFRAME)return{type:"parent",distance:Gn(window)};throw new Error("Can not construct window reference for child")},Hr=function(N,j){return g.try((function(){m=N,v=j,K(),G.register((function(){return j.close.fireAndForget().catch(dr)}))}))},Me=function(N){var j=N.width,te=N.height;return g.try((function(){n.trigger(tr.RESIZE,{width:j,height:te})}))},_e=function(N){return g.try((function(){return n.trigger(tr.DESTROY)})).catch(dr).then((function(){return G.all(N)})).then((function(){Pe.asyncReject(N||new Error("Component destroyed"))}))},$e=In((function(N){return g.try((function(){return I?Fe(I.__source__)?void 0:I():g.try((function(){return n.trigger(tr.CLOSE)})).then((function(){return _e(N||new Error("Component closed"))}))}))})),ir=function(N,j){var te=j.proxyWin,Q=j.proxyFrame,Oe=j.windowName;return Y?Y(N,{proxyWin:te,proxyFrame:Q,windowName:Oe}):g.try((function(){if(N===Br.IFRAME){if(!Q)throw new Error("Expected proxy frame to be passed");return Q.get().then((function(Ae){return Rt(Ae).then((function(Ke){return G.register((function(){return lt(Ae)})),G.register((function(){return(function(Ye){for(var ar=0,He=Ar("requestPromises").get(Ye,[]);ar<He.length;ar++)He[ar].reject(new Error("Window "+(Fe(Ye)?"closed":"cleaned up")+" before response")).catch(dr)})(Ke)})),Ke}))}))}throw new Error("No render context available for "+N)})).then((function(Ae){return te.setWindow(Ae,{send:hn}),te.setName(Oe).then((function(){return te}))}))},gr=function(){return g.try((function(){var N=po(window,"unload",sn((function(){_e(new Error("Window navigated away"))}))),j=_r(h,_e,3e3);if(G.register(j.cancel),G.register(N.cancel),U)return U()}))},yr=function(N){var j=!1;return N.isClosed().then((function(te){return te?(j=!0,$e(new Error("Detected component window close"))):g.delay(200).then((function(){return N.isClosed()})).then((function(Q){if(Q)return j=!0,$e(new Error("Detected component window close"))}))})).then((function(){return j}))},Xe=function(N){return w?w(N):g.try((function(){if(Se.indexOf(N)===-1)return Se.push(N),Pe.asyncReject(N),n.trigger(tr.ERROR,N)}))},Or=new g,Jr=function(N){return g.try((function(){Or.resolve(N)}))};Hr.onError=Xe;var Sr=function(N,j){return N({uid:i,container:j.container,context:j.context,doc:j.doc,frame:j.frame,prerenderFrame:j.prerenderFrame,focus:tn,close:$e,state:se,props:d,tag:C,dimensions:typeof D=="function"?D({props:d}):D,event:n})},on=function(N,j){var te=j.context;return z?z(N,{context:te}):g.try((function(){if(E){var Q=N.getWindow();if(Q&&xe(Q)&&(function(vr){try{if(!vr.location.href||vr.location.href==="about:blank")return!0}catch{}return!1})(Q)){var Oe=(Q=sr(Q)).document,Ae=Sr(E,{context:te,doc:Oe});if(Ae){if(Ae.ownerDocument!==Oe)throw new Error("Expected prerender template to have been created with document from child window");(function(vr,Ze){var Kr=Ze.tagName.toLowerCase();if(Kr!=="html")throw new Error("Expected element to be html, got "+Kr);for(var Pr=vr.document.documentElement,Ge=0,Mr=st(Pr.children);Ge<Mr.length;Ge++)Pr.removeChild(Mr[Ge]);for(var Qr=0,zr=st(Ze.children);Qr<zr.length;Qr++)Pr.appendChild(zr[Qr])})(Q,Ae);var Ke=J.width,Ye=Ke!==void 0&&Ke,ar=J.height,He=ar!==void 0&&ar,Qe=J.element,Er=Qe===void 0?"body":Qe;if((Er=$t(Er,Oe))&&(Ye||He)){var Zr=yo(Er,(function(vr){Me({width:Ye?vr.width:void 0,height:He?vr.height:void 0})}),{width:Ye,height:He,win:Q});n.on(tr.RENDERED,Zr.cancel)}}}}}))},$r=function(N,j){var te=j.proxyFrame,Q=j.proxyPrerenderFrame,Oe=j.context,Ae=j.rerender;return B?B(N,{proxyFrame:te,proxyPrerenderFrame:Q,context:Oe,rerender:Ae}):g.hash({container:N.get(),frame:te?te.get():null,prerenderFrame:Q?Q.get():null,internalState:pe()}).then((function(Ke){var Ye=Ke.container,ar=Ke.internalState.visible,He=Sr(P,{context:Oe,container:Ye,frame:Ke.frame,prerenderFrame:Ke.prerenderFrame,doc:document});if(He){ar||go(He),Uo(Ye,He);var Qe=(function(Er,Zr){Zr=sn(Zr);var vr=!1,Ze=[],Kr,Pr,Ge,Mr=function(){vr=!0;for(var Un=0;Un<Ze.length;Un++)Ze[Un].disconnect();Kr&&Kr.cancel(),Ge&&Ge.removeEventListener("unload",Qr),Pr&<(Pr)},Qr=function(){vr||(Zr(),Mr())};if(Zt(Er))return Qr(),{cancel:Mr};if(window.MutationObserver)for(var zr=Er.parentElement;zr;){var tt=new window.MutationObserver((function(){Zt(Er)&&Qr()}));tt.observe(zr,{childList:!0}),Ze.push(tt),zr=zr.parentElement}return(Pr=document.createElement("iframe")).setAttribute("name","__detect_close_"+xr()+"__"),Pr.style.display="none",Rt(Pr).then((function(Un){(Ge=sr(Un)).addEventListener("unload",Qr)})),Er.appendChild(Pr),Kr=zn((function(){Zt(Er)&&Qr()}),1e3),{cancel:Mr}})(He,(function(){var Er=new Error("Detected container element removed from DOM");return g.delay(1).then((function(){if(!Zt(He))return G.all(Er),Ae().then(K,L);$e(Er)}))}
17));return G.register((function(){return Qe.cancel()})),G.register((function(){return lt(He)})),p=wt(He)}}))},Pn=function(){return{state:se,event:n,close:$e,focus:tn,resize:Me,onError:Xe,updateProps:nt,show:or,hide:Ir}},Mn=function(N){N===void 0&&(N={});var j=b,te=Pn();Vn(de,N),(function(Q,Oe,Ae,Ke,Ye){var ar=Ke.state,He=Ke.close,Qe=Ke.focus,Er=Ke.event,Zr=Ke.onError;En(Ae,Q,(function(vr,Ze,Kr){var Pr=!1,Ge=Kr;Object.defineProperty(Oe,vr,{configurable:!0,enumerable:!0,get:function(){return Pr?Ge:(Pr=!0,(function(){if(!Ze)return Ge;var Mr=Ze.alias;if(Mr&&!Tn(Kr)&&Tn(Ae[Mr])&&(Ge=Ae[Mr]),Ze.value&&(Ge=Ze.value({props:Oe,state:ar,close:He,focus:Qe,event:Er,onError:Zr,container:Ye})),!Ze.default||Tn(Ge)||Tn(Ae[vr])||(Ge=Ze.default({props:Oe,state:ar,close:He,focus:Qe,event:Er,onError:Zr,container:Ye})),Tn(Ge)){if(Ze.type===qe.ARRAY?!Array.isArray(Ge):typeof Ge!==Ze.type)throw new TypeError("Prop is not of type "+Ze.type+": "+vr)}else if(Ze.required!==!1&&!Tn(Ae[vr]))throw new Error('Expected prop "'+vr+'" to be defined');return Tn(Ge)&&Ze.decorate&&(Ge=Ze.decorate({value:Ge,props:Oe,state:ar,close:He,focus:Qe,event:Er,onError:Zr,container:Ye})),Ge})())}})})),En(Oe,Q,dr)})(O,d,de,te,j)},nt=function(N){return Mn(N),Pe.then((function(){var j=v,te=f;if(j&&te&&m)return De(m).then((function(Q){return j.updateProps(Q).catch((function(Oe){return yr(te).then((function(Ae){if(!Ae)throw Oe}))}))}))}))},mn=function(N){return x?x(N):g.try((function(){return Lo(N)})).then((function(j){return Qn(j)&&(j=(function te(Q){var Oe=(function(ar){var He=(function(Qe){for(;Qe.parentNode;)Qe=Qe.parentNode;if(Qn(Qe))return Qe})(ar);if(He&&He.host)return He.host})(Q);if(!Oe)throw new Error("Element is not in shadow dom");var Ae="shadow-slot-"+xr(),Ke=document.createElement("slot");Ke.setAttribute("name",Ae),Q.appendChild(Ke);var Ye=document.createElement("div");return Ye.setAttribute("slot",Ae),Oe.appendChild(Ye),Qn(Oe)?te(Ye):Ye})(j)),b=j,wt(j)}))};return{init:function(){(function(){n.on(tr.RENDER,(function(){return d.onRender()})),n.on(tr.DISPLAY,(function(){return d.onDisplay()})),n.on(tr.RENDERED,(function(){return d.onRendered()})),n.on(tr.CLOSE,(function(){return d.onClose()})),n.on(tr.DESTROY,(function(){return d.onDestroy()})),n.on(tr.RESIZE,(function(){return d.onResize()})),n.on(tr.FOCUS,(function(){return d.onFocus()})),n.on(tr.PROPS,(function(N){return d.onProps(N)})),n.on(tr.ERROR,(function(N){return d&&d.onError?d.onError(N):L(N).then((function(){setTimeout((function(){throw N}),1)}))})),G.register(n.reset)})()},render:function(N){var j=N.target,te=N.container,Q=N.context,Oe=N.rerender;return g.try((function(){var Ae=mr(),Ke=re||mr();(function(X,ve,be){if(X!==window){if(!jt(window,X))throw new Error("Can only renderTo an adjacent frame");var Ie=ue();if(!Vr(ve,Ie)&&!xe(X))throw new Error("Can not render remotely to "+ve.toString()+" - can only render to "+Ie);if(be&&typeof be!="string")throw new Error("Container passed to renderTo must be a string selector, got "+typeof be+" }")}})(j,Ke,te);var Ye=g.try((function(){if(j!==window)return(function(X,ve){for(var be={},Ie=0,We=Object.keys(d);Ie<We.length;Ie++){var ze=We[Ie],Le=O[ze];Le&&Le.allowDelegate&&(be[ze]=d[ze])}var je=hn(ve,"zoid_delegate_"+y,{uid:i,overrides:{props:be,event:n,close:$e,onError:Xe,getInternalState:pe,setInternalState:er,resolveInitPromise:K,rejectInitPromise:L}}).then((function(k){var q=k.data.parent;return G.register((function(A){if(!Fe(ve))return q.destroy(A)})),q.getDelegateOverrides()})).catch((function(k){throw new Error(`Unable to delegate rendering. Possibly the component is not loaded in the target window. 18 19`+ut(k))}));return x=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.getProxyContainer.apply(oe,q)}))},B=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.renderContainer.apply(oe,q)}))},W=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.show.apply(oe,q)}))},T=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.hide.apply(oe,q)}))},U=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.watchForUnload.apply(oe,q)}))},X===Br.IFRAME&&(_=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.getProxyWindow.apply(oe,q)}))},fe=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.openFrame.apply(oe,q)}))},M=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.openPrerenderFrame.apply(oe,q)}))},z=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.prerender.apply(oe,q)}))},Y=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.open.apply(oe,q)}))},F=function(){for(var k=arguments.length,q=new Array(k),A=0;A<k;A++)q[A]=arguments[A];return je.then((function(oe){return oe.openPrerender.apply(oe,q)}))}),je})(Q,j)})),ar=d.window,He=gr(),Qe=gt(O,d,"post"),Er=n.trigger(tr.RENDER),Zr=mn(te),vr=rr(),Ze=Zr.then((function(){return Mn()})),Kr=Ze.then((function(){return gt(O,d,"get").then((function(X){return(function(ve,be){var Ie=be.query||{},We=be.hash||{},ze,Le,je=ve.split("#");Le=je[1];var k=(ze=je[0]).split("?");ze=k[0];var q=ho(k[1],Ie),A=ho(Le,We);return q&&(ze=ze+"?"+q),A&&(ze=ze+"#"+A),ze})((function(ve){if(be=bt(ve),be.indexOf("mock:")!==0)return ve;var be;throw new Error("Mock urls not supported out of test mode")})(wn()),{query:X})}))})),Pr=vr.then((function(X){return(function(be){var Ie=be===void 0?{}:be,We=Ie.proxyWin,ze=Ie.initialChildDomain,Le=Ie.childDomainMatch,je=Ie.target,k=je===void 0?window:je,q=Ie.context;return(function(A){var oe=A===void 0?{}:A,ur=oe.proxyWin,ot=oe.childDomainMatch,kr=oe.context;return De(oe.initialChildDomain).then((function(bn){return{uid:i,context:kr,tag:C,childDomainMatch:ot,ver
19sion:"9_0_86",props:bn,exports:(Ao=ur,{init:function(ai){return Hr(this.origin,ai)},close:$e,checkClose:function(){return yr(Ao)},resize:Me,onError:Xe,show:or,hide:Ir,export:Jr})};var Ao}))})({proxyWin:We,initialChildDomain:ze,childDomainMatch:Le,context:q}).then((function(A){var oe=No({data:A,metaData:{windowRef:Ne(k,ze,q,We)},sender:{domain:ue(window)},receiver:{win:We,domain:Le},passByReference:ze===ue()}),ur=oe.serializedData;return G.register(oe.cleanReference),ur}))})({proxyWin:(ve={proxyWin:X,initialChildDomain:Ae,childDomainMatch:Ke,target:j,context:Q}).proxyWin,initialChildDomain:ve.initialChildDomain,childDomainMatch:ve.childDomainMatch,target:ve.target,context:ve.context}).then((function(be){return Io({name:y,serializedPayload:be})}));var ve})),Ge=Pr.then((function(X){return pn(Q,{windowName:X})})),Mr=Xr(Q),Qr=g.hash({proxyContainer:Zr,proxyFrame:Ge,proxyPrerenderFrame:Mr}).then((function(X){return $r(X.proxyContainer,{context:Q,proxyFrame:X.proxyFrame,proxyPrerenderFrame:X.proxyPrerenderFrame,rerender:Oe})})).then((function(X){return X})),zr=g.hash({windowName:Pr,proxyFrame:Ge,proxyWin:vr}).then((function(X){var ve=X.proxyWin;return ar?ve:ir(Q,{windowName:X.windowName,proxyWin:ve,proxyFrame:X.proxyFrame})})),tt=g.hash({proxyWin:zr,proxyPrerenderFrame:Mr}).then((function(X){return nn(Q,X.proxyWin,X.proxyPrerenderFrame)})),Un=zr.then((function(X){return f=X,hr(X)})),eo=g.hash({proxyPrerenderWin:tt,state:Un}).then((function(X){return on(X.proxyPrerenderWin,{context:Q})})),R=g.hash({proxyWin:zr,windowName:Pr}).then((function(X){if(ar)return X.proxyWin.setName(X.windowName)})),$=g.hash({body:Qe}).then((function(X){return o.method?o.method:Object.keys(X.body).length?"post":"get"})),ae=g.hash({proxyWin:zr,windowUrl:Kr,body:Qe,method:$,windowName:R,prerender:eo}).then((function(X){return X.proxyWin.setLocation(X.windowUrl,{method:X.method,body:X.body})})),ee=zr.then((function(X){(function ve(be,Ie){var We=!1;return G.register((function(){We=!0})),g.delay(2e3).then((function(){return be.isClosed()})).then((function(ze){if(!We)return ze?$e(new Error("Detected "+Ie+" close")):ve(be,Ie)}))})(X,Q)})),Ce=g.hash({container:Qr,prerender:eo}).then((function(){return n.trigger(tr.DISPLAY)})),Re=zr.then((function(X){})),ke=ae.then((function(){return g.try((function(){var X=d.timeout;if(X)return Pe.timeout(X,new Error("Loading component timed out after "+X+" milliseconds"))}))})),Ve=Pe.then((function(){return n.trigger(tr.RENDERED)}));return g.hash({initPromise:Pe,buildUrlPromise:Kr,onRenderPromise:Er,getProxyContainerPromise:Zr,openFramePromise:Ge,openPrerenderFramePromise:Mr,renderContainerPromise:Qr,openPromise:zr,openPrerenderPromise:tt,setStatePromise:Un,prerenderPromise:eo,loadUrlPromise:ae,buildWindowNamePromise:Pr,setWindowNamePromise:R,watchForClosePromise:ee,onDisplayPromise:Ce,openBridgePromise:Re,runTimeoutPromise:ke,onRenderedPromise:Ve,delegatePromise:Ye,watchForUnloadPromise:He,finalSetPropsPromise:Ze})})).catch((function(Ae){return g.all([Xe(Ae),_e(Ae)]).then((function(){throw Ae}),(function(){throw Ae}))})).then(dr)},destroy:_e,getProps:function(){return d},setProps:Mn,export:Jr,getHelpers:Pn,getDelegateOverrides:function(){return g.try((function(){return{getProxyContainer:mn,show:or,hide:Ir,renderContainer:$r,getProxyWindow:rr,watchForUnload:gr,openFrame:pn,openPrerenderFrame:Xr,prerender:on,open:ir,openPrerender:nn,setProxyWin:hr}}))},getExports:function(){return ne({getExports:function(){return Or}})}}}function kt(r){var i=r.uid,o=r.frame,c=r.prerenderFrame,s=r.doc,l=r.props,h=r.event,O=r.dimensions,P=O.width,E=O.height;if(o&&c){var C=s.createElement("div");C.setAttribute("id",i);var y=s.createElement("style");return l.cspNonce&&y.setAttribute("nonce",l.cspNonce),y.appendChild(s.createTextNode(` 20 #`+i+` { 21 display: inline-block; 22 position: relative; 23 width: `+P+`; 24 height: `+E+`; 25 } 26 27 #`+i+` > iframe { 28 display: inline-block; 29 position: absolute; 30 width: 100%; 31 height: 100%; 32 top: 0; 33 left: 0; 34 transition: opacity .2s ease-in-out; 35 } 36 37 #`+i+` > iframe.zoid-invisible { 38 opacity: 0; 39 } 40 41 #`+i+` > iframe.zoid-visible { 42 opacity: 1; 43 } 44 `)),C.appendChild(o),C.appendChild(c),C.appendChild(y),c.classList.add("zoid-visible"),o.classList.add("zoid-invisible"),h.on(tr.RENDERED,(function(){c.classList.remove("zoid-visible"),c.classList.add("zoid-invisible"),o.classList.remove("zoid-invisible"),o.classList.add("zoid-visible"),setTimeout((function(){lt(c)}),1)})),h.on(tr.RESIZE,(function(S){var D=S.width,J=S.height;typeof D=="number"&&(C.style.width=qo(D)),typeof J=="number"&&(C.style.height=qo(J))})),C}}var To=dn(),Mt=dn();function ei(r){var i=(function(y){var S=y.tag,D=y.url,J=y.domain,V=y.bridgeUrl,re=y.props,ne=re===void 0?{}:re,Pe=y.dimensions,Se=Pe===void 0?{}:Pe,G=y.autoResize,se=G===void 0?{}:G,de=y.allowedParentDomains,e=de===void 0?"*":de,n=y.attributes,t=n===void 0?{}:n,a=y.defaultContext,u=a===void 0?Br.IFRAME:a,d=y.containerTemplate,f=d===void 0?kt:d,p=y.prerenderTemplate,v=p===void 0?null:p,m=y.validate,b=y.eligible,w=b===void 0?function(){return{eligible:!0}}:b,x=y.logger,W=x===void 0?{info:dr}:x,T=y.exports,I=T===void 0?dr:T,B=y.method,_=y.children,ce=_===void 0?function(){return{}}:_,fe=S.replace(/-/g,"_"),M=Te({},{window:{type:qe.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(z){var Y=z.value;if(!Tr(Y)&&!ln.isProxyWindow(Y))throw new Error("Expected Window or ProxyWindow");if(Tr(Y)){if(Fe(Y))throw new Error("Window is closed");if(!xe(Y))throw new Error("Window is not same domain")}},decorate:function(z){return et(z.value)}},timeout:{type:qe.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:qe.STRING,required:!1},onDisplay:{type:qe.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:vn,decorate:mt},onRendered:{type:qe.FUNCTION,required:!1,sendToChild:!1,default:vn,decorate:mt},onRender:{type:qe.FUNCTION,required:!1,sendToChild:!1,default:vn,decorate:mt},onClose:{type:qe.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:vn,decorate:mt},onDestroy:{type:qe.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:vn,decorate:mt},onResize:{type:qe.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:vn},onFocus:{type:qe.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:vn},close:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.close}},focus:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.focus}},resize:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.resize}},uid:{type:qe.STRING,required:!1,sendToChild:!1,childDecorate:function(z){return z.uid}},tag:{type:qe.STRING,required:!1,sendToChild:!1,childDecorate:function(z){return z.tag}},getParent:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.getParent}},getParentDomain:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.getParentDomain}},show:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.show}},hide:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.hide}},export:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.export}},onError:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.onError}},onProps:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.onProps}},getSiblings:{type:qe.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(z){return z.getSiblings}}},ne);if(!f)throw new Error("Container template required");return{name:fe,tag:S,url:D,domain:J,bridgeUrl:V,method:B,propsDef:M,dimensions:Se,autoResize:se,allowedParentDomains:e,attributes:t,defaultContext:u,containerTemplate:f,prerenderTemplate:v,validate:m,logger:W,eligible:w,children:ce,exports:typeof I=="function"?I:function(z){for(var Y=z.getExports,F={},U=function(K,L){var De=L[K],pe=I[De].type,er=Y().then((function(rr){return rr[De]}));F[De]=pe===qe.FUNCTION?function(){for(var rr=arguments.length,hr=new Array(rr),or=0;or<rr;or++)hr[or]=arguments[or];return er.then((function(Ir){return Ir.apply(void 0,hr)}))}:er},le=0,he=Object.keys(I);le<he.length;le++)U(le,he);return F}}})(r),o=i.name,c=i.tag,s=i.defaultContext,l=i.eligible,h=i.children,O=vt(window),P=[],E=function(){if((function(S){try{return Kt(window.name).name===S}catch{}return!1})(o)){var y=ko().payload;if(y.tag===c&&Vr(y.childDomainMatch,ue()))return!0}return!1}
44,C=In((function(){if(E()){if(window.xprops)throw delete O.components[c],new Error("Can not register "+o+" as child - child already registered");var y=(function(S){var D=S.tag,J=S.propsDef,V=S.autoResize,re=S.allowedParentDomains,ne=[],Pe=ko(),Se=Pe.parent,G=Pe.payload,se=Se.win,de=Se.domain,e,n=new g,t=G.version,a=G.uid,u=G.exports,d=G.context,f=G.props;if(t!=="9_0_86")throw new Error("Parent window has zoid version "+t+", child window has version 9_0_86");var p=u.show,v=u.hide,m=u.close,b=u.onError,w=u.checkClose,x=u.export,W=u.resize,T=u.init,I=function(){return se},B=function(){return de},_=function(F){return ne.push(F),{cancel:function(){ne.splice(ne.indexOf(F),1)}}},ce=function(F){return W.fireAndForget({width:F.width,height:F.height})},fe=function(F){return n.resolve(F),x(F)},M=function(F){var U=(F===void 0?{}:F).anyParent,le=[],he=e.parent;if(U===void 0&&(U=!he),!U&&!he)throw new Error("No parent found for "+D+" child");for(var K=0,L=cn(window);K<L.length;K++){var De=L[K];if(xe(De)){var pe=sr(De).xprops;if(pe&&I()===pe.getParent()){var er=pe.parent;if(U||!he||er&&er.uid===he.uid){var rr=en(De,(function(hr){return hr.exports}));le.push({props:pe,exports:rr})}}}}return le},z=function(F,U,le){le===void 0&&(le=!1);var he=(function(L,De,pe,er,rr,hr){hr===void 0&&(hr=!1);for(var or={},Ir=0,wn=Object.keys(pe);Ir<wn.length;Ir++){var qr=wn[Ir],mr=De[qr];if(!mr||!mr.sameDomain||er===ue(window)&&xe(L)){var pn=Qt(De,0,qr,pe[qr],rr);or[qr]=pn,mr&&mr.alias&&!or[mr.alias]&&(or[mr.alias]=pn)}}if(!hr)for(var Xr=0,nn=Object.keys(De);Xr<nn.length;Xr++){var tn=nn[Xr];pe.hasOwnProperty(tn)||(or[tn]=Qt(De,0,tn,void 0,rr))}return or})(se,J,F,U,{tag:D,show:p,hide:v,close:m,focus:Fn,onError:b,resize:ce,getSiblings:M,onProps:_,getParent:I,getParentDomain:B,uid:a,export:fe},le);e?Vn(e,he):e=he;for(var K=0;K<ne.length;K++)(0,ne[K])(e)},Y=function(F){return g.try((function(){return z(F,de,!0)}))};return{init:function(){return g.try((function(){return xe(se)&&(function(F){var U=F.componentName,le=F.parentComponentWindow,he=Ro({data:Kt(window.name).serializedInitialPayload,sender:{win:le},basic:!0}),K=he.sender;if(he.reference.type==="uid"||he.metaData.windowRef.type==="global"){var L=No({data:he.data,metaData:{windowRef:ii(le)},sender:{domain:K.domain},receiver:{win:window,domain:ue()},basic:!0});window.name=Io({name:U,serializedPayload:L.serializedData})}})({componentName:S.name,parentComponentWindow:se}),vt(window).exports=S.exports({getExports:function(){return n}}),(function(F,U){if(!Vr(F,U))throw new Error("Can not be rendered by domain: "+U)})(re,de),At(se),(function(){window.addEventListener("beforeunload",(function(){w.fireAndForget()})),window.addEventListener("unload",(function(){w.fireAndForget()})),_r(se,(function(){rn()}))})(),T({updateProps:Y,close:rn})})).then((function(){return(F=V.width,U=F!==void 0&&F,le=V.height,he=le!==void 0&&le,K=V.element,Lo(K===void 0?"body":K).catch(dr).then((function(L){return{width:U,height:he,element:L}}))).then((function(L){var De=L.width,pe=L.height,er=L.element;er&&(De||pe)&&d!==Br.POPUP&&yo(er,(function(rr){ce({width:De?rr.width:void 0,height:pe?rr.height:void 0})}),{width:De,height:pe})}));var F,U,le,he,K})).catch((function(F){b(F)}))},getProps:function(){return e||(z(f,de),e)}}})(i);return y.init(),y}}));if(C(),(function(){var y=yn("zoid_allow_delegate_"+o,(function(){return!0})),S=yn("zoid_delegate_"+o,(function(D){var J=D.data;return{parent:zo({uid:J.uid,options:i,overrides:J.overrides,parentWin:D.source})}}));Mt.register(y.cancel),Mt.register(S.cancel)})(),O.components=O.components||{},O.components[c])throw new Error("Can not register multiple components with the same tag: "+c);return O.components[c]=!0,{init:function y(S){var D,J="zoid-"+c+"-"+xr(),V=S||{},re=l({props:V}),ne=re.eligible,Pe=re.reason,Se=V.onDestroy;V.onDestroy=function(){if(D&&ne&&P.splice(P.indexOf(D),1),Se)return Se.apply(void 0,arguments)};var G=zo({uid:J,options:i});G.init(),ne?G.setProps(V):V.onDestroy&&V.onDestroy(),To.register((function(e){return G.destroy(e||new Error("zoid destroyed all components"))}));var se=function(e){var n=(e===void 0?{}:e).decorate;return y((n===void 0?ct:n)(V))},de=function(e,n,t){return g.try((function(){if(!ne){var a=new Error(Pe||o+" component is not eligible");return G.destroy(a).then((function(){throw a}))}
44if(!Tr(e))throw new Error("Must pass window to renderTo");return(function(u,d){return g.try((function(){if(u.window)return et(u.window).getType();if(d){if(d!==Br.IFRAME&&d!==Br.POPUP)throw new Error("Unrecognized context: "+d);return d}return s}))})(V,t)})).then((function(a){if(n=(function(u,d){if(d){if(typeof d!="string"&&!vo(d))throw new TypeError("Expected string or element selector to be passed");return d}if(u===Br.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")})(a,n),e!==window&&typeof n!="string")throw new Error("Must pass string element when rendering to another window");return G.render({target:e,container:n,context:a,rerender:function(){var u=se();return Vn(D,u),u.renderTo(e,n,t)}})})).catch((function(a){return G.destroy(a).then((function(){throw a}))}))};return D=Te({},G.getExports(),G.getHelpers(),(function(){for(var e=h(),n={},t=function(d,f){var p=f[d],v=e[p];n[p]=function(m){var b=G.getProps(),w=Te({},m,{parent:{uid:J,props:b,export:G.export}});return v(w)}},a=0,u=Object.keys(e);a<u.length;a++)t(a,u);return n})(),{isEligible:function(){return ne},clone:se,render:function(e,n){return de(window,e,n)},renderTo:function(e,n,t){return de(e,n,t)}}),ne&&P.push(D),D},instances:P,driver:function(y,S){throw new Error("Driver support not enabled")},isChild:E,canRenderTo:function(y){return hn(y,"zoid_allow_delegate_"+o).then((function(S){return S.data})).catch((function(){return!1}))},registerChild:C}}var ri=function(r){(function(){ht().initialized||(ht().initialized=!0,l=(s={on:yn,send:hn}).on,h=s.send,(O=ht()).receiveMessage=O.receiveMessage||function(P){return _t(P,{on:l,send:h})},(function(P){var E=P.on,C=P.send;fr().getOrSet("postMessageListener",(function(){return po(window,"message",(function(y){(function(S,D){var J=D.on,V=D.send;g.try((function(){var re=S.source||S.sourceElement,ne=S.origin||S.originalEvent&&S.originalEvent.origin,Pe=S.data;if(ne==="null"&&(ne="file://"),re){if(!ne)throw new Error("Post message did not have origin domain");_t({source:re,origin:ne,data:Pe},{on:J,send:V})}}))})(y,{on:E,send:C})}))}))})({on:yn,send:hn}),(function(P){var E=P.on,C=P.send;fr("builtinListeners").getOrSet("helloListener",(function(){var y=E("postrobot_hello",{domain:"*"},(function(D){return bo(D.source,{domain:D.origin}),{instanceID:fn()}})),S=Nn();return S&&Be(S,{send:C}).catch((function(D){})),y}))})({on:yn,send:hn}));var s,l,h,O})();var i=ei(r),o=function(s){return i.init(s)};o.driver=function(s,l){return i.driver(s,l)},o.isChild=function(){return i.isChild()},o.canRenderTo=function(s){return i.canRenderTo(s)},o.instances=i.instances;var c=i.registerChild();return c&&(window.xprops=o.xprops=c.getProps()),o};function Je(r){var i=To.all(r);return To=dn(),i}var Ut=Je;function Rr(r){return Ut(),delete window.__zoid_9_0_86__,(function(){(function(){for(var o=fr("responseListeners"),c=0,s=o.keys();c<s.length;c++){var l=s[c],h=o.get(l);h&&(h.cancelled=!0),o.del(l)}})(),(i=fr().get("postMessageListener"))&&i.cancel();var i;delete window.__post_robot_10_0_44__})(),Mt.all(r)}}])}))})(ni)),ni.exports}var ti={exports:{}},Si=ti.exports,hi;function Di(){return hi||(hi=1,(function(gn,Fo){(function(jn,Ue){gn.exports=Ue()})(typeof self<"u"?self:Si,(function(){return(function(jn){var Ue={};function ie(H){if(Ue[H])return Ue[H].exports;var me=Ue[H]={i:H,l:!1,exports:{}};return jn[H].call(me.exports,me,me.exports,ie),me.l=!0,me.exports}return ie.m=jn,ie.c=Ue,ie.d=function(H,me,Te){ie.o(H,me)||Object.defineProperty(H,me,{enumerable:!0,get:Te})},ie.r=function(H){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(H,"__esModule",{value:!0})},ie.t=function(H,me){if(1&me&&(H=ie(H)),8&me||4&me&&typeof H=="object"&&H&&H.__esModule)return H;var Te=Object.create(null);if(ie.r(Te),Object.defineProperty(Te,"default",{enumerable:!0,value:H}),2&me&&typeof H!="string")for(var pr in H)ie.d(Te,pr,(function(Bn){return H[Bn]}).bind(null,pr));return Te},ie.n=function(H){var me=H&&H.__esModule?function(){return H.default}:function(){return H};return ie.d(me,"a",me),me},ie.o=function(H,me){return{}.hasOwnProperty.call(H,me)},ie.p="",ie(ie.s=0)})([function(jn,Ue,ie){ie.r(Ue),ie.d(Ue,"PopupOpenError",(function(){return Rt})),ie.d(Ue,"create",(function(){return Se})),ie.d(Ue,"destroy",(function(){return de})),ie.d(Ue,"destroyComponents",(function(){return G})),ie.d(Ue,"destroyAll",(function(){return se})),ie.d(Ue,"PROP_TYPE",(function(){return Je})),ie.d(Ue,"PROP_SERIALIZATION",(function(){return Ut})),ie.d(Ue,"CONTEXT",(function(){return Rr})),ie.d(Ue,"EVENT",(function(){return r}));
44function H(e,n){return(H=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t})(e,n)}function me(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,H(e,n)}function Te(){return(Te=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function pr(e){try{if(!e)return!1;if(typeof Promise<"u"&&e instanceof Promise)return!0;if(typeof window<"u"&&typeof window.Window=="function"&&e instanceof window.Window||typeof window<"u"&&typeof window.constructor=="function"&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if(t==="[object Window]"||t==="[object global]"||t==="[object DOMWindow]")return!1}if(typeof e.then=="function")return!0}catch{return!1}return!1}var Bn=[],xn=[],yt=0,On;function ro(){if(!yt&&On){var e=On;On=null,e.resolve()}}function Et(){yt+=1}function Cn(){yt-=1,ro()}var g=(function(){function e(t){var a=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],t){var u,d,f=!1,p=!1,v=!1;Et();try{t((function(m){v?a.resolve(m):(f=!0,u=m)}),(function(m){v?a.reject(m):(p=!0,d=m)}))}catch(m){Cn(),this.reject(m);return}Cn(),v=!0,f?this.resolve(u):p&&this.reject(d)}}var n=e.prototype;return n.resolve=function(t){if(this.resolved||this.rejected)return this;if(pr(t))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=t,this.dispatch(),this},n.reject=function(t){var a=this;if(this.resolved||this.rejected)return this;if(pr(t))throw new Error("Can not reject promise with another promise");if(!t){var u=t&&typeof t.toString=="function"?t.toString():{}.toString.call(t);t=new Error("Expected reject to be called with Error, got "+u)}return this.rejected=!0,this.error=t,this.errorHandled||setTimeout((function(){a.errorHandled||(function(d,f){if(Bn.indexOf(d)===-1){Bn.push(d),setTimeout((function(){throw d}),1);for(var p=0;p<xn.length;p++)xn[p](d,f)}})(t,a)}),1),this.dispatch(),this},n.asyncReject=function(t){return this.errorHandled=!0,this.reject(t),this},n.dispatch=function(){var t=this.resolved,a=this.rejected,u=this.handlers;if(!this.dispatching&&(t||a)){this.dispatching=!0,Et();for(var d=function(W,T){return W.then((function(I){T.resolve(I)}),(function(I){T.reject(I)}))},f=0;f<u.length;f++){var p=u[f],v=p.onSuccess,m=p.onError,b=p.promise,w=void 0;if(t)try{w=v?v(this.value):this.value}catch(W){b.reject(W);continue}else if(a){if(!m){b.reject(this.error);continue}try{w=m(this.error)}catch(W){b.reject(W);continue}}if(w instanceof e&&(w.resolved||w.rejected)){var x=w;x.resolved?b.resolve(x.value):b.reject(x.error),x.errorHandled=!0}else pr(w)?w instanceof e&&(w.resolved||w.rejected)?w.resolved?b.resolve(w.value):b.reject(w.error):d(w,b):b.resolve(w)}u.length=0,this.dispatching=!1,Cn()}},n.then=function(t,a){if(t&&typeof t!="function"&&!t.call)throw new Error("Promise.then expected a function for success handler");if(a&&typeof a!="function"&&!a.call)throw new Error("Promise.then expected a function for error handler");var u=new e;return this.handlers.push({promise:u,onSuccess:t,onError:a}),this.errorHandled=!0,this.dispatch(),u},n.catch=function(t){return this.then(void 0,t)},n.finally=function(t){if(t&&typeof t!="function"&&!t.call)throw new Error("Promise.finally expected a function");return this.then((function(a){return e.try(t).then((function(){return a}))}),(function(a){return e.try(t).then((function(){throw a}))}))},n.timeout=function(t,a){var u=this;if(this.resolved||this.rejected)return this;var d=setTimeout((function(){u.resolved||u.rejected||u.reject(a||new Error("Promise timed out after "+t+"ms"))}),t);return this.then((function(f){return clearTimeout(d),f}))},n.toPromise=function(){if(typeof Promise>"u")throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:pr(t)?new e((function(a,u){return t.then(a,u)})):new e().resolve(t)},e.reject=function(t){return new e().reject(t)},e.asyncReject=function(t){return new e().asyncReject(t)},e.all=function(t){var a=new e,u=t.length,d=[].slice();if(!u)return a.resolve(d),a;for(var f=function(m,b,w){return b.then((function(x){d[m]=x,(u-=1)==0&&a.resolve(d)}),(function(x){w.reject(x)}))},p=0;p<t.length;p++){var v=t[p];if(v instanceof e){if(v.resolved){d[p]=v.value,u-=1;continue}}else if(!pr(v)){d[p]=v,u-=1;continue}f(p,e.resolve(v),a)}return u===0&&a.resolve(d),a},e.hash=function(t){var a={},u=[],d=function(p){if(t.hasOwnProperty(p)){var v=t[p];pr(v)?u.push(v.then((function(m){a[p]=m}))):a[p]=v}};for(var f in t)d(f);return e.all(u).then((function(){return a}))},e.map=function(t,a){return e.all(t.map(a))},e.onPossiblyUnhandledException=function(t){return(function(a){return xn.push(a),{cancel:function(){xn.splice(
44xn.indexOf(a),1)}}})(t)},e.try=function(t,a,u){if(t&&typeof t!="function"&&!t.call)throw new Error("Promise.try expected a function");var d;Et();try{d=t.apply(a,u||[])}catch(f){return Cn(),e.reject(f)}return Cn(),e.resolve(d)},e.delay=function(t){return new e((function(a){setTimeout(a,t)}))},e.isPromise=function(t){return!!(t&&t instanceof e)||pr(t)},e.flush=function(){return(function(t){var a=On=On||new t;return ro(),a})(e)},e})();function Wn(e){return{}.toString.call(e)==="[object RegExp]"}var qn={IFRAME:"iframe",POPUP:"popup"},Gr=`Call was rejected by callee.\r 45`;function no(e){return e===void 0&&(e=window),e.location.protocol}function to(e){if(e===void 0&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return no(e)}function oo(e){return e===void 0&&(e=window),to(e)==="about:"}function cr(e){if(e===void 0&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch{}}function Yr(e){if(e===void 0&&(e=window),e&&!cr(e))try{return e.opener}catch{}}function Hn(e){try{return!0}catch{}return!1}function Jn(e){e===void 0&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=no(e);if(!t)throw new Error("Can not read window protocol");if(t==="file:")return"file://";if(t==="about:"){var a=cr(e);return a&&Hn()?Jn(a):"about://"}var u=n.host;if(!u)throw new Error("Can not read window host");return t+"//"+u}function ue(e){e===void 0&&(e=window);var n=Jn(e);return n&&e.mockDomain&&e.mockDomain.indexOf("mock:")===0?e.mockDomain:n}function xe(e){if(!(function(n){try{if(n===window)return!0}catch{}try{var t=Object.getOwnPropertyDescriptor(n,"location");if(t&&t.enumerable===!1)return!1}catch{}try{if(oo(n)&&Hn())return!0}catch{}try{if((function(a){return a===void 0&&(a=window),to(a)==="mock:"})(n)&&Hn())return!0}catch{}try{if(Jn(n)===Jn(window))return!0}catch{}return!1})(e))return!1;try{if(e===window||oo(e)&&Hn()||ue(window)===ue(e))return!0}catch{}return!1}function sr(e){if(!xe(e))throw new Error("Expected window to be same domain");return e}function io(e,n){if(!e||!n)return!1;var t=cr(n);return t?t===e:(function(a){var u=[];try{for(;a.parent!==a;)u.push(a.parent),a=a.parent}catch{}return u})(n).indexOf(e)!==-1}function $n(e){var n=[],t;try{t=e.frames}catch{t=e}var a;try{a=t.length}catch{}if(a===0)return n;if(a){for(var u=0;u<a;u++){var d=void 0;try{d=t[u]}catch{continue}n.push(d)}return n}for(var f=0;f<100;f++){var p=void 0;try{p=t[f]}catch{return n}if(!p)return n;n.push(p)}return n}function Zn(e){for(var n=[],t=0,a=$n(e);t<a.length;t++){var u=a[t];n.push(u);for(var d=0,f=Zn(u);d<f.length;d++)n.push(f[d])}return n}function un(e){e===void 0&&(e=window);try{if(e.top)return e.top}catch{}if(cr(e)===e)return e;try{if(io(window,e)&&window.top)return window.top}catch{}try{if(io(e,window)&&window.top)return window.top}catch{}for(var n=0,t=Zn(e);n<t.length;n++){var a=t[n];try{if(a.top)return a.top}catch{}if(cr(a)===a)return a}}function cn(e){var n=un(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(Zn(n),[n]);return t.indexOf(e)===-1&&(t=[].concat(t,[e],Zn(e))),t}var Sn=[],Pt=[];function Fe(e,n){n===void 0&&(n=!0);try{if(e===window)return!1}catch{return!0}try{if(!e)return!0}catch{return!0}try{if(e.closed)return!0}catch(u){return!u||u.message!==Gr}if(n&&xe(e))try{if(e.mockclosed)return!0}catch{}try{if(!e.parent||!e.top)return!0}catch{}var t=(function(u,d){for(var f=0;f<u.length;f++)try{if(u[f]===d)return f}catch{}return-1})(Sn,e);if(t!==-1){var a=Pt[t];if(a&&(function(u){if(!u.contentWindow||!u.parentNode)return!0;var d=u.ownerDocument;if(d&&d.documentElement&&!d.documentElement.contains(u)){for(var f=u;f.parentNode&&f.parentNode!==f;)f=f.parentNode;if(!f.host||!d.documentElement.contains(f.host))return!0}return!1})(a))return!0}return!1}function ao(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}function Nn(e,n){for(var t=$n(e),a=0;a<t.length;a++){var u=t[a];try{if(xe(u)&&u.name===n&&t.indexOf(u)!==-1)return u}catch{}}try{if(t.indexOf(e.frames[n])!==-1)return e.frames[n]}catch{}try{if(t.indexOf(e[n])!==-1)return e[n]}catch{}}function Lt(e,n){return e===Yr(n)}function Gn(e){return e===void 0&&(e=window),Yr(e=e||window)||cr(e)||void 0}function jt(e,n){for(var t=0;t<e.length;t++)for(var a=e[t],u=0;u<n.length;u++)if(a===n[u])return!0;return!1}function Vr(e){e===void 0&&(e=window);for(var n=0,t=e;t;)(t=cr(t))&&(n+=1);return n}function bt(e,n){var t=un(e)||e,a=un(n)||n;try{if(t&&a)return t===a}catch{}var u=cn(e),d=cn(n);if(jt(u,d))return!0;var f=Yr(t),p=Yr(a);return f&&jt(cn(f),d)||p&&jt(cn(p),u),!1}function _r(e,n){if(typeof e=="string"){if(typeof n=="string")return e==="*"||n===e;if(Wn(n)||Array.isArray(n))return!1}return Wn(e)?Wn(n)?e.toString()===n.toString():!Array.isArray(n)&&!!n.match(e):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!Wn(n)&&e.some((function(t){return _r(t,n)}
45)))}function Tr(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):ue()}function uo(e,n,t,a){t===void 0&&(t=1e3),a===void 0&&(a=1/0);var u;return(function d(){if(Fe(e))return u&&clearTimeout(u),n();a<=0?clearTimeout(u):(a-=t,u=setTimeout(d,t))})(),{cancel:function(){u&&clearTimeout(u)}}}function Yn(e){try{if(e===window)return!0}catch(n){if(n&&n.message===Gr)return!0}try{if({}.toString.call(e)==="[object Window]")return!0}catch(n){if(n&&n.message===Gr)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(n){if(n&&n.message===Gr)return!0}try{if(e&&e.self===e)return!0}catch(n){if(n&&n.message===Gr)return!0}try{if(e&&e.parent===e)return!0}catch(n){if(n&&n.message===Gr)return!0}try{if(e&&e.top===e)return!0}catch(n){if(n&&n.message===Gr)return!0}try{if(e&&e.__cross_domain_utils_window_check__==="__unlikely_value__")return!1}catch{return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch{}return!1}function it(e){if(n=Tr(e),n.indexOf("mock:")!==0)return e;var n;throw new Error("Mock urls not supported out of test mode")}function xt(e){if(xe(e))return sr(e).frameElement;for(var n=0,t=document.querySelectorAll("iframe");n<t.length;n++){var a=t[n];if(a&&a.contentWindow&&a.contentWindow===e)return a}}function co(e){if((function(t){return t===void 0&&(t=window),!!cr(t)})(e)){var n=xt(e);if(n&&n.parentElement){n.parentElement.removeChild(n);return}}try{e.close()}catch{}}function Bt(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch{}return-1}var Ot=(function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",(function(){if(typeof WeakMap>"u"||Object.freeze===void 0)return!1;try{var t=new WeakMap,a={};return Object.freeze(a),t.set(a,"__testvalue__"),t.get(a)==="__testvalue__"}catch{return!1}})())try{this.weakmap=new WeakMap}catch{}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var t=this.weakmap,a=this.keys,u=0;u<a.length;u++){var d=a[u];if(Yn(d)&&Fe(d)){if(t)try{t.delete(d)}catch{}a.splice(u,1),this.values.splice(u,1),u-=1}}},n.isSafeToReadWrite=function(t){return!Yn(t)},n.set=function(t,a){if(!t)throw new Error("WeakMap expected key");var u=this.weakmap;if(u)try{u.set(t,a)}catch{delete this.weakmap}if(this.isSafeToReadWrite(t))try{var d=this.name,f=t[d];f&&f[0]===t?f[1]=a:Object.defineProperty(t,d,{value:[t,a],writable:!0});return}catch{}this._cleanupClosedWindows();var p=this.keys,v=this.values,m=Bt(p,t);m===-1?(p.push(t),v.push(a)):v[m]=a},n.get=function(t){if(!t)throw new Error("WeakMap expected key");var a=this.weakmap;if(a)try{if(a.has(t))return a.get(t)}catch{delete this.weakmap}if(this.isSafeToReadWrite(t))try{var u=t[this.name];return u&&u[0]===t?u[1]:void 0}catch{}this._cleanupClosedWindows();var d=Bt(this.keys,t);if(d!==-1)return this.values[d]},n.delete=function(t){if(!t)throw new Error("WeakMap expected key");var a=this.weakmap;if(a)try{a.delete(t)}catch{delete this.weakmap}if(this.isSafeToReadWrite(t))try{var u=t[this.name];u&&u[0]===t&&(u[0]=u[1]=void 0)}catch{}this._cleanupClosedWindows();var d=this.keys,f=Bt(d,t);f!==-1&&(d.splice(f,1),this.values.splice(f,1))},n.has=function(t){if(!t)throw new Error("WeakMap expected key");var a=this.weakmap;if(a)try{if(a.has(t))return!0}catch{delete this.weakmap}if(this.isSafeToReadWrite(t))try{var u=t[this.name];return!(!u||u[0]!==t)}catch{}return this._cleanupClosedWindows(),Bt(this.keys,t)!==-1},n.getOrSet=function(t,a){if(this.has(t))return this.get(t);var u=a();return this.set(t,u),u},e})();function so(e){return(so=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(e)}function fo(){if(typeof Reflect>"u"||!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{return!1}}function qt(e,n,t){return(qt=fo()?Reflect.construct:function(a,u,d){var f=[null];f.push.apply(f,u);var p=new(Function.bind.apply(a,f));return d&&H(p,d.prototype),p}).apply(null,arguments)}function Ht(e){var n=typeof Map=="function"?new Map:void 0;return(Ht=function(t){if(t===null||(a=t,Function.toString.call(a).indexOf("[native code]")===-1))return t;var a;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(t))return n.get(t);n.set(t,u)}function u(){return qt(t,arguments,so(this).constructor)}return u.prototype=Object.create(t.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),H(u,t)})(e)}function xr(e){return e.name||e.__name__||e.displayName||"anonymous"}function at(e,n){try{delete e.name,e.name=n}catch{}return e.__name__=e.displayName=n,e}function Ct(e){if(typeof btoa=="function")return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(n,t){return String.fromCharCode(parseInt(t,16))}))).replace(/[=]/g,"");if(typeof Buffer<"u")return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function Wr(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+Ct(new Date().toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}var Rn;function Jt(e){try{return JSON.stringify([].slice.call(e),(function(n,t){return typeof t=="function"?"memoize["+(function(a){if
45(Rn=Rn||new Ot,a==null||typeof a!="object"&&typeof a!="function")throw new Error("Invalid object");var u=Rn.get(a);return u||(u=typeof a+":"+Wr(),Rn.set(a,u)),u})(t)+"]":t}))}catch{throw new Error("Arguments not serializable -- can not be used to memoize")}}function In(){return{}}var Wt=0,dr=0;function sn(e,n){n===void 0&&(n={});var t=n.thisNamespace,a=t!==void 0&&t,u=n.time,d,f,p=Wt;Wt+=1;var v=function(){for(var m=arguments.length,b=new Array(m),w=0;w<m;w++)b[w]=arguments[w];p<dr&&(d=null,f=null,p=Wt,Wt+=1);var x;x=a?(f=f||new Ot).getOrSet(this,In):d=d||{};var W=Jt(b),T=x[W];if(T&&u&&Date.now()-T.time<u&&(delete x[W],T=null),T)return T.value;var I=Date.now(),B=e.apply(this,arguments);return x[W]={time:I,value:B},B};return v.reset=function(){d=null,f=null},at(v,(n.name||xr(e))+"::memoized")}sn.clear=function(){dr=Wt};function ut(e){var n={};function t(){for(var a=arguments,u=this,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];var v=Jt(f);return n.hasOwnProperty(v)||(n[v]=g.try((function(){return e.apply(u,a)})).finally((function(){delete n[v]}))),n[v]}return t.reset=function(){n={}},at(t,xr(e)+"::promiseMemoized")}function nr(){}function Vn(e){var n=!1;return at((function(){if(!n)return n=!0,e.apply(this,arguments)}),xr(e)+"::once")}function ct(e,n){if(n===void 0&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if(typeof e=="string")return e;if(e instanceof Error){var t=e&&e.stack,a=e&&e.message;if(t&&a)return t.indexOf(a)!==-1?t:a+` 46`+t;if(t)return t;if(a)return a}return e&&e.toString&&typeof e.toString=="function"?e.toString():{}.toString.call(e)}catch(u){return"Error while stringifying error: "+ct(u,n+1)}}function zn(e){return typeof e=="string"?e:e&&e.toString&&typeof e.toString=="function"?e.toString():{}.toString.call(e)}function st(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}sn((function(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}));function Tn(e){return e}function _n(e,n){var t;return(function a(){t=setTimeout((function(){e(),a()}),n)})(),{cancel:function(){clearTimeout(t)}}}function Xn(e){return[].slice.call(e)}function dn(e){return e!=null}function dt(e){return{}.toString.call(e)==="[object RegExp]"}function St(e,n,t){if(e.hasOwnProperty(n))return e[n];var a=t();return e[n]=a,a}function Dt(e){var n=[],t=!1,a,u={set:function(d,f){return t||(e[d]=f,u.register((function(){delete e[d]}))),f},register:function(d){var f=Vn((function(){return d(a)}));return t?d(a):n.push(f),{cancel:function(){var p=n.indexOf(f);p!==-1&&n.splice(p,1)}}},all:function(d){a=d;var f=[];for(t=!0;n.length;){var p=n.shift();f.push(p())}return g.all(f).then(nr)}};return u}function Kn(e,n){if(n==null)throw new Error("Expected "+e+" to be present");return n}var Mo=(function(e){me(n,e);function n(t){var a;return(a=e.call(this,t)||this).name=a.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace((function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u})(a),a.constructor):a.stack=new Error(t).stack,a}return n})(Ht(Error));function lo(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Nt(){return!!document.body&&document.readyState==="complete"}function ho(){return!!document.body&&document.readyState==="interactive"}function Uo(e){return encodeURIComponent(e)}sn((function(){return new g((function(e){if(Nt()||ho())return e();var n=setInterval((function(){if(Nt()||ho())return clearInterval(n),e()}),10)}))}));function vo(e){return(function(n,t,a){a===void 0&&(a=[]);var u=n.__inline_memoize_cache__=n.__inline_memoize_cache__||{},d=Jt(a);return u.hasOwnProperty(d)?u[d]:u[d]=(function(){var f={};if(!e||e.indexOf("=")===-1)return f;for(var p=0,v=e.split("&");p<v.length;p++){var m=v[p];(m=m.split("="))[0]&&m[1]&&(f[decodeURIComponent(m[0])]=decodeURIComponent(m[1]))}return f}).apply(void 0,a)})(vo,0,[e])}function $t(e,n){return n===void 0&&(n={}),n&&Object.keys(n).length?(function(t){return t===void 0&&(t={}),Object.keys(t).filter((function(a){return typeof t[a]=="string"||typeof t[a]=="boolean"})).map((function(a){var u=t[a];if(typeof u!="string"&&typeof u!="boolean")throw new TypeError("Invalid type for query");return Uo(a)+"="+Uo(u.toString())})).join("&")})(Te({},vo(e),n)):e}function Lo(e,n){e.appendChild(n)}function jo(e){return e instanceof window.Element||e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}function ft(e,n){return n===void 0&&(n=document),jo(e)?e:typeof e=="string"?n.querySelector(e):void 0}function wo(e){return new g((function(n,t){var a=zn(e),u=ft(e);if(u)return n(u);if(Nt())return t(new Error("Document is ready and element "+a+" does not exist"));var d=setInterval((function(){if(u=ft(e))n(u),clearInterval(d);
46else if(Nt())return clearInterval(d),t(new Error("Document is ready and element "+a+" does not exist"))}),10)}))}var Rt=(function(e){me(n,e);function n(){return e.apply(this,arguments)||this}return n})(Mo),It;function po(e){if((It=It||new Ot).has(e)){var n=It.get(e);if(n)return n}var t=new g((function(a,u){e.addEventListener("load",(function(){(function(d){if((function(){for(var f=0;f<Sn.length;f++){var p=!1;try{p=Sn[f].closed}catch{}p&&(Pt.splice(f,1),Sn.splice(f,1))}})(),d&&d.contentWindow)try{Sn.push(d.contentWindow),Pt.push(d)}catch{}})(e),a(e)})),e.addEventListener("error",(function(d){e.contentWindow?a(e):u(d)}))}));return It.set(e,t),t}function mo(e){return po(e).then((function(n){if(!n.contentWindow)throw new Error("Could not find window in iframe");return n.contentWindow}))}function go(e,n){e===void 0&&(e={});var t=e.style||{},a=(function(d,f,p){d===void 0&&(d="div"),f===void 0&&(f={}),d=d.toLowerCase();var v=document.createElement(d);if(f.style&&st(v.style,f.style),f.class&&(v.className=f.class.join(" ")),f.id&&v.setAttribute("id",f.id),f.attributes)for(var m=0,b=Object.keys(f.attributes);m<b.length;m++){var w=b[m];v.setAttribute(w,f.attributes[w])}if(f.styleSheet&&(function(x,W,T){T===void 0&&(T=window.document),x.styleSheet?x.styleSheet.cssText=W:x.appendChild(T.createTextNode(W))})(v,f.styleSheet),f.html){if(d==="iframe")throw new Error("Iframe html can not be written unless container provided and iframe in DOM");v.innerHTML=f.html}return v})("iframe",{attributes:Te({allowTransparency:"true"},e.attributes||{}),style:Te({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),u=window.navigator.userAgent.match(/MSIE|Edge/i);return a.hasAttribute("id")||a.setAttribute("id",Wr()),po(a),(e.url||u)&&a.setAttribute("src",e.url||"about:blank"),a}function lt(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Zt(e){e.style.setProperty("display","")}function yo(e){e.style.setProperty("display","none","important")}function Qn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function kn(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function Bo(e,n,t){var a=t===void 0?{}
46:t,u=a.width,d=u===void 0||u,f=a.height,p=f===void 0||f,v=a.interval,m=v===void 0?100:v,b=a.win,w=b===void 0?window:b,x=e.offsetWidth,W=e.offsetHeight,T=!1;n({width:x,height:W});var I=function(){if(!T&&(function(M){return!!(M.offsetWidth||M.offsetHeight||M.getClientRects().length)})(e)){var ce=e.offsetWidth,fe=e.offsetHeight;(d&&ce!==x||p&&fe!==W)&&n({width:ce,height:fe}),x=ce,W=fe}},B,_;return w.addEventListener("resize",I),w.ResizeObserver!==void 0?((B=new w.ResizeObserver(I)).observe(e),_=_n(I,10*m)):w.MutationObserver!==void 0?((B=new w.MutationObserver(I)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),_=_n(I,10*m)):_=_n(I,m),{cancel:function(){T=!0,B.disconnect(),window.removeEventListener("resize",I),_.cancel()}}}function Eo(e){for(;e.parentNode;)e=e.parentNode;return e.toString()==="[object ShadowRoot]"}var zt=typeof document<"u"?document.currentScript:null,qo=sn((function(){if(zt||(zt=(function(){try{var e=(function(){try{throw new Error("_")}catch(f){return f.stack||""}})(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),t=n&&n[1];if(!t)return;for(var a=0,u=[].slice.call(document.getElementsByTagName("script")).reverse();a<u.length;a++){var d=u[a];if(d.src&&d.src===t)return d}}catch{}})()))return zt;throw new Error("Can not determine current script")})),ht=Wr();sn((function(){var e;try{e=qo()}catch{return ht}var n=e.getAttribute("data-uid");if(n&&typeof n=="string"||(n=e.getAttribute("data-uid-auto"))&&typeof n=="string")return n;if(e.src){var t=(function(a){for(var u="",d=0;d<a.length;d++){var f=a[d].charCodeAt(0)*d;a[d+1]&&(f+=a[d+1].charCodeAt(0)*(d-1)),u+=String.fromCharCode(97+Math.abs(f)%26)}return u})(JSON.stringify({src:e.src,dataset:e.dataset}));n="uid_"+t.slice(t.length-30)}else n=Wr();return e.setAttribute("data-uid-auto",n),n}));function Po(e){return typeof e=="string"&&/^[0-9]+%$/.test(e)}function fr(e){if(typeof e=="number")return e;var n=e.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+e);return parseInt(n[1],10)}function Ho(e){return fr(e)+"px"}function Tt(e){return typeof e=="number"?Ho(e):Po(e)?e:Ho(e)}function Ar(e,n){if(typeof e=="number")return e;if(Po(e))return parseInt(n*fr(e)/100,10);if(typeof(t=e)=="string"&&/^[0-9]+px$/.test(t))return fr(e);var t;throw new Error("Can not normalize dimension: "+e)}function fn(e){e===void 0&&(e=window);var n="__post_robot_10_0_44__";return e!==window?e[n]:e[n]=e[n]||{}}var bo=function(){return{}};function Be(e,n){return e===void 0&&(e="store"),n===void 0&&(n=bo),St(fn(),e,(function(){var t=n();return{has:function(a){return t.hasOwnProperty(a)},get:function(a,u){return t.hasOwnProperty(a)?t[a]:u},set:function(a,u){return t[a]=u,u},del:function(a){delete t[a]},getOrSet:function(a,u){return St(t,a,u)},reset:function(){t=n()},keys:function(){return Object.keys(t)}}}))}var Jo=function(){};function At(){var e=fn();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new Jo,e.WINDOW_WILDCARD}function lr(e,n){return e===void 0&&(e="store"),n===void 0&&(n=bo),Be("windowStore").getOrSet(e,(function(){var t=new Ot,a=function(u){return t.getOrSet(u,n)};return{has:function(u){return a(u).hasOwnProperty(e)},get:function(u,d){var f=a(u);return f.hasOwnProperty(e)?f[e]:d},set:function(u,d){return a(u)[e]=d,d},del:function(u){delete a(u)[e]},getOrSet:function(u,d){return St(a(u),e,d)}}}))}function xo(){return Be("instance").getOrSet("instanceID",Wr)}function An(e,n){var t=n.domain,a=lr("helloPromises"),u=a.get(e);u&&u.resolve({domain:t});var d=g.resolve({domain:t});return a.set(e,d),d}function Fr(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:xo()},{domain:"*",timeout:-1}).then((function(t){var a=t.origin,u=t.data.instanceID;return An(e,{domain:a}),{win:e,domain:a,instanceID:u}}))}function $o(e,n){var t=n.send;return lr("windowInstanceIDPromises").getOrSet(e,(function(){return Fr(e,{send:t}).then((function(a){return a.instanceID}))}))}function Zo(e,n,t){n===void 0&&(n=5e3),t===void 0&&(t="Window");var a=(function(u){return lr("helloPromises").getOrSet(u,(function(){return new g}))})(e);return n!==-1&&(a=a.timeout(n,new Error(t+" did not load after "+n+"ms"))),a}function Ur(e){lr("knownWindows").set(e,!0)}function Oo(e){return typeof e=="object"&&e!==null&&typeof e.__type__=="string"}function Go(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"array":typeof e=="function"?"function":typeof e=="object"?e instanceof Error?"error":typeof e.then=="function"?"promise":{}.toString.call(e)==="[object RegExp]"?"regex":{}.toString.call(e)==="[object Date]"?"date":"object":typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":void 0}function Dn(e,n){return{__type__:e,__val__:n}}var Lr,ln=((Lr={}).function=function(){},Lr.error=function(e){return Dn("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},Lr.promise=function(){},Lr.regex=function(e){return Dn("regex",e.source)},Lr.date=function(e){return Dn("date",e.toJSON())},Lr.array=function(e){return e},Lr.object=function(e){return e},Lr.string=function(e){return e},Lr.number=function(e){return e},Lr.boolean=function(e){return e},Lr.null=function(e){return e},Lr[void 0]=function(e){return Dn("undefined",e)},Lr),Co={},jr,Yo=((jr={}).function=function(){throw new Error("Function serialization is not implemented;
46 nothing to deserialize")},jr.error=function(e){var n=e.stack,t=e.code,a=e.data,u=new Error(e.message);return u.code=t,a&&(u.data=a),u.stack=n+` 47 48`+u.stack,u},jr.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},jr.regex=function(e){return new RegExp(e)},jr.date=function(e){return new Date(e)},jr.array=function(e){return e},jr.object=function(e){return e},jr.string=function(e){return e},jr.number=function(e){return e},jr.boolean=function(e){return e},jr.null=function(e){return e},jr[void 0]=function(){},jr),Vo={};function Gt(){return!!ao(window).match(/MSIE|trident|edge\/12|edge\/13/i)}function Ft(e){return!bt(window,e)}function Yt(e,n){if(e){if(ue()!==Tr(e))return!0}else if(n&&!xe(n))return!0;return!1}function Wo(e){var n=e.win,t=e.domain;return!(!Gt()||t&&!Yt(t,n)||n&&!Ft(n))}function Vt(e){return"__postrobot_bridge___"+(e=e||Tr(e)).replace(/[^a-zA-Z0-9]+/g,"_")}function So(){return!!(window.name&&window.name===Vt(ue()))}var _o=new g((function(e){if(window.document&&window.document.body)return e(window.document.body);var n=setInterval((function(){if(window.document&&window.document.body)return clearInterval(n),e(window.document.body)}),10)}));function Xo(e){lr("remoteWindowPromises").getOrSet(e,(function(){return new g}))}function Do(e){var n=lr("remoteWindowPromises").get(e);if(!n)throw new Error("Remote window promise not found");return n}function Ko(e,n,t){Do(e).resolve((function(a,u,d){if(a!==e)throw new Error("Remote window does not match window");if(!_r(u,n))throw new Error("Remote domain "+u+" does not match domain "+n);t.fireAndForget(d)}))}function _t(e,n){Do(e).reject(n).catch(nr)}function yn(e){for(var n=e.win,t=e.name,a=e.domain,u=Be("popupWindowsByName"),d=lr("popupWindowsByWin"),f=0,p=u.keys();f<p.length;f++){var v=p[f],m=u.get(v);m&&!Fe(m.win)||u.del(v)}if(Fe(n))return{win:n,name:t,domain:a};var b=d.getOrSet(n,(function(){return t?u.getOrSet(t,(function(){return{win:n,name:t}})):{win:n}}));if(b.win&&b.win!==n)throw new Error("Different window already linked for window: "+(t||"undefined"));return t&&(b.name=t,u.set(t,b)),a&&(b.domain=a,Xo(n)),d.set(n,b),b}function hn(e){var n=e.on,t=e.send,a=e.receiveMessage;u=window.open,window.open=function(d,f,p,v){var m=u.call(this,it(d),f,p,v);return m&&(yn({win:m,name:f,domain:d?Tr(d):null}),m)};var u;(function(d){var f=d.on,p=d.send,v=d.receiveMessage,m=Be("popupWindowsByName");f("postrobot_open_tunnel",(function(b){var w=b.source,x=b.origin,W=b.data,T=Be("bridges").get(x);if(!T)throw new Error("Can not find bridge promise for domain "+x);return T.then((function(I){if(w!==I)throw new Error("Message source does not matched registered bridge for domain "+x);if(!W.name)throw new Error("Register window expected to be passed window name");if(!W.sendMessage)throw new Error("Register window expected to be passed sendMessage method");if(!m.has(W.name))throw new Error("Window with name "+W.name+" does not exist, or was not opened by this window");var B=function(){return m.get(W.name)};if(!B().domain)throw new Error("We do not have a registered domain for window "+W.name);if(B().domain!==x)throw new Error("Message origin "+x+" does not matched registered window origin "+(B().domain||"unknown"));return Ko(B().win,x,W.sendMessage),{sendMessage:function(_){if(window&&!window.closed&&B()){var ce=B().domain;if(ce)try{v({data:_,origin:ce,source:B().win},{on:f,send:p})}catch(fe){g.reject(fe)}}}}}))}))})({on:n,send:t,receiveMessage:a}),(function(d){var f=d.send;fn(window).openTunnelToParent=function(p){var v=p.name,m=p.source,b=p.canary,w=p.sendMessage,x=Be("tunnelWindows"),W=cr(window);if(!W)throw new Error("No parent window found to open tunnel to");var T=(function(I){var B=I.name,_=I.source,ce=I.canary,fe=I.sendMessage;(function(){for(var z=Be("tunnelWindows"),Y=0,F=z.keys();Y<F.length;Y++){var U=F[Y];Fe(z[U].source)&&z.del(U)}})();var M=Wr();return Be("tunnelWindows").set(M,{name:B,source:_,canary:ce,sendMessage:fe}),M})({name:v,source:m,canary:b,sendMessage:w});return f(W,"postrobot_open_tunnel",{name:v,sendMessage:function(){var I=x.get(T);if(I&&I.source&&!Fe(I.source)){try{I.canary()}catch{return}I.sendMessage.apply(this,arguments)}}},{domain:"*"})}})({send:t}),(function(d){var f=d.on,p=d.send,v=d.receiveMessage;g.try((function(){var m=Yr(window);if(m&&Wo({win:m})){return Xo(m),(b=m,lr("remoteBridgeAwaiters").getOrSet(b,(function(){return g.try((function(){var w=Nn(b,Vt(ue()));if(w)return xe(w)&&fn(sr(w))?w:new g((function(x){var W,T;W=setInterval((function(){if(w&&xe(w)&&fn(sr(w)))return clearInterval(W),clearTimeout(T),x(w)}),100),T=setTimeout((function(){return clearInterval(W),x()}),2e3)}))}))}))).then((function(w){return w?window.name?fn(sr(w)).openTunnelToParent({name:window.name,source:window,canary:function(){}
48,sendMessage:function(x){if(window&&!window.closed)try{v({data:x,origin:this.origin,source:this.source},{on:f,send:p})}catch(W){g.reject(W)}}}).then((function(x){var W=x.source,T=x.origin,I=x.data;if(W!==m)throw new Error("Source does not match opener");Ko(W,T,I.sendMessage)})).catch((function(x){throw _t(m,x),x})):_t(m,new Error("Can not register with opener: window does not have a name")):_t(m,new Error("Can not register with opener: no bridge found in opener"))}));var b}}))})({on:n,send:t,receiveMessage:a})}function et(){for(var e=Be("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var a=t[n];e.get(a).shouldClean()&&e.del(a)}}function vt(e,n){var t=n.send,a=n.id,u=a===void 0?Wr():a,d=e.then((function(v){if(xe(v))return sr(v).name})),f=e.then((function(v){if(Fe(v))throw new Error("Window is closed, can not determine type");return Yr(v)?qn.POPUP:qn.IFRAME}));d.catch(nr),f.catch(nr);var p=function(){return e.then((function(v){if(!Fe(v))return xe(v)?sr(v).name:d}))};return{id:u,getType:function(){return f},getInstanceID:ut((function(){return e.then((function(v){return $o(v,{send:t})}))})),close:function(){return e.then(co)},getName:p,focus:function(){return e.then((function(v){v.focus()}))},isClosed:function(){return e.then((function(v){return Fe(v)}))},setLocation:function(v,m){return m===void 0&&(m={}),e.then((function(b){var w=window.location.protocol+"//"+window.location.host,x=m.method,W=x===void 0?"get":x,T=m.body;if(v.indexOf("/")===0)v=""+w+v;else if(!v.match(/^https?:\/\//)&&v.indexOf(w)!==0)throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(v));if(W==="post")return p().then((function(I){if(!I)throw new Error("Can not post to window without target name");(function(B){var _=B.url,ce=B.target,fe=B.body,M=B.method,z=M===void 0?"post":M,Y=document.createElement("form");if(Y.setAttribute("target",ce),Y.setAttribute("method",z),Y.setAttribute("action",_),Y.style.display="none",fe)for(var F=0,U=Object.keys(fe);F<U.length;F++){var le,he=U[F],K=document.createElement("input");K.setAttribute("name",he),K.setAttribute("value",(le=fe[he])==null?void 0:le.toString()),Y.appendChild(K)}lo().appendChild(Y),Y.submit(),lo().removeChild(Y)})({url:v,target:I,method:W,body:T})}));if(W!=="get")throw new Error("Unsupported method: "+W);if(xe(b))try{if(b.location&&typeof b.location.replace=="function"){b.location.replace(v);return}}catch{}b.location=v}))},setName:function(v){return e.then((function(m){yn({win:m,name:v});var b=xe(m),w=xt(m);if(!b)throw new Error("Can not set name for cross-domain window: "+v);sr(m).name=v,w&&w.setAttribute("name",v),d=g.resolve(v)}))}}}var en=(function(){function e(t){var a=t.send,u=t.win,d=t.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new g,this.serializedWindow=d||vt(this.actualWindowPromise,{send:a}),Be("idToProxyWindow").set(this.getID(),this),u&&this.setWindow(u,{send:a})}var n=e.prototype;return n.getID=function(){return this.serializedWindow.id},n.getType=function(){return this.serializedWindow.getType()},n.isPopup=function(){return this.getType().then((function(t){return t===qn.POPUP}))},n.setLocation=function(t,a){var u=this;return this.serializedWindow.setLocation(t,a).then((function(){return u}))},n.getName=function(){return this.serializedWindow.getName()},n.setName=function(t){var a=this;return this.serializedWindow.setName(t).then((function(){return a}))},n.close=function(){var t=this;return this.serializedWindow.close().then((function(){return t}))},n.focus=function(){var t=this,a=this.isPopup(),u=this.getName(),d=g.hash({isPopup:a,name:u}).then((function(p){var v=p.name;p.isPopup&&v&&window.open("",v)})),f=this.serializedWindow.focus();return g.all([d,f]).then((function(){return t}))},n.isClosed=function(){return this.serializedWindow.isClosed()},n.getWindow=function(){return this.actualWindow},n.setWindow=function(t,a){var u=a.send;this.actualWindow=t,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=vt(this.actualWindowPromise,{send:u,id:this.getID()}),lr("winToProxyWindow").set(t,this)},n.awaitWindow=function(){return this.actualWindowPromise},n.matchWindow=function(t,a){var u=this,d=a.send;return g.try((function(){return u.actualWindow?t===u.actualWindow:g.hash({proxyInstanceID:u.getInstanceID(),knownWindowInstanceID:$o(t,{send:d})}).then((function(f){var p=f.proxyInstanceID===f.knownWindowInstanceID;return p&&u.setWindow(t,{send:d}),p}))}))},n.unwrap=function(){return this.actualWindow||this},n.getInstanceID=function(){return this.serializedWindow.getInstanceID()},n.shouldClean=function(){return!!(this.actualWindow&&Fe(this.actualWindow))},n.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,a){var u=a.send;return et(),e.toProxyWindow(t,{send:u}).serialize()},e.deserialize=function(t,a){var u=a.send;
48return et(),Be("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:u})},e.isProxyWindow=function(t){return!!(t&&!Yn(t)&&t.isProxyWindow)},e.toProxyWindow=function(t,a){var u=a.send;if(et(),e.isProxyWindow(t))return t;var d=t;return lr("winToProxyWindow").get(d)||new e({win:d,send:u})},e})();function wt(e,n,t,a,u){var d=lr("methodStore"),f=Be("proxyWindowMethods");en.isProxyWindow(a)?f.set(e,{val:n,name:t,domain:u,source:a}):(f.del(e),d.getOrSet(a,(function(){return{}}))[e]={domain:u,name:t,val:n,source:a})}function Qo(e,n){var t=lr("methodStore"),a=Be("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||a.get(n)}function Xt(e,n,t,a,u){f=(d={on:u.on,send:u.send}).on,p=d.send,Be("builtinListeners").getOrSet("functionCalls",(function(){return f("postrobot_method",{domain:"*"},(function(b){var w=b.source,x=b.origin,W=b.data,T=W.id,I=W.name,B=Qo(w,T);if(!B)throw new Error("Could not find method '"+I+"' with id: "+W.id+" in "+ue(window));var _=B.source,ce=B.domain,fe=B.val;return g.try((function(){if(!_r(ce,x))throw new Error("Method '"+W.name+"' domain "+JSON.stringify(dt(B.domain)?B.domain.source:B.domain)+" does not match origin "+x+" in "+ue(window));if(en.isProxyWindow(_))return _.matchWindow(w,{send:p}).then((function(M){if(!M)throw new Error("Method call '"+W.name+"' failed - proxy window does not match source in "+ue(window))}))})).then((function(){return fe.apply({source:w,origin:x},W.args)}),(function(M){return g.try((function(){if(fe.onError)return fe.onError(M)})).then((function(){throw M.stack&&(M.stack="Remote call to "+I+"("+(function(z){return z===void 0&&(z=[]),Xn(z).map((function(Y){return typeof Y=="string"?"'"+Y+"'":Y===void 0?"undefined":Y===null?"null":typeof Y=="boolean"?Y.toString():Array.isArray(Y)?"[ ... ]":typeof Y=="object"?"{ ... }":typeof Y=="function"?"() => { ... }":"<"+typeof Y+">"})).join(", ")})(W.args)+`) failed 49 50`+M.stack),M}))})).then((function(M){return{result:M,id:T,name:I}}))}))}));var d,f,p,v=t.__id__||Wr();e=en.unwrap(e);var m=t.__name__||t.name||a;return typeof m=="string"&&typeof m.indexOf=="function"&&m.indexOf("anonymous::")===0&&(m=m.replace("anonymous::",a+"::")),en.isProxyWindow(e)?(wt(v,t,m,e,n),e.awaitWindow().then((function(b){wt(v,t,m,b,n)}))):wt(v,t,m,e,n),Dn("cross_domain_function",{id:v,name:m})}function No(e,n,t,a){var u,d=a.on,f=a.send;return(function(p,v){v===void 0&&(v=Co);var m=JSON.stringify(p,(function(b){var w=this[b];if(Oo(this))return w;var x=Go(w);if(!x)return w;var W=v[x]||ln[x];return W?W(w,b):w}));return m===void 0?"undefined":m})(t,((u={}).promise=function(p,v){return(function(m,b,w,x,W){return Dn("cross_domain_zalgo_promise",{then:Xt(m,b,(function(T,I){return w.then(T,I)}),x,{on:W.on,send:W.send})})})(e,n,p,v,{on:d,send:f})},u.function=function(p,v){return Xt(e,n,p,v,{on:d,send:f})},u.object=function(p){return Yn(p)||en.isProxyWindow(p)?Dn("cross_domain_window",en.serialize(p,{send:f})):p},u))}function Ro(e,n,t,a){var u,d=a.send;return(function(f,p){if(p===void 0&&(p=Vo),f!=="undefined")return JSON.parse(f,(function(v,m){if(Oo(this))return m;var b,w;if(Oo(m)?(b=m.__type__,w=m.__val__):(b=Go(m),w=m),!b)return w;var x=p[b]||Yo[b];return x?x(w,v):w}))})(t,((u={}).cross_domain_zalgo_promise=function(f){return(function(p,v,m){return new g(m.then)})(0,0,f)},u.cross_domain_function=function(f){return(function(p,v,m,b){var w=m.id,x=m.name,W=b.send,T=function(B){B===void 0&&(B={});function _(){var ce=arguments;return en.toProxyWindow(p,{send:W}).awaitWindow().then((function(fe){var M=Qo(fe,w);if(M&&M.val!==_)return M.val.apply({source:window,origin:ue()},ce);var z=[].slice.call(ce);return B.fireAndForget?W(fe,"postrobot_method",{id:w,name:x,args:z},{domain:v,fireAndForget:!0}):W(fe,"postrobot_method",{id:w,name:x,args:z},{domain:v,fireAndForget:!1}).then((function(Y){return Y.data.result}))})).catch((function(fe){throw fe}))}return _.__name__=x,_.__origin__=v,_.__source__=p,_.__id__=w,_.origin=v,_},I=T();return I.fireAndForget=T({fireAndForget:!0}),I})(e,n,f,{send:d})},u.cross_domain_window=function(f){return en.deserialize(f,{send:d})},u))}var qe={};qe.postrobot_post_message=function(e,n,t){t.indexOf("file:")===0&&(t="*"),e.postMessage(n,t)},qe.postrobot_bridge=function(e,n,t){if(!Gt()&&!So())throw new Error("Bridge not needed for browser");if(xe(e))throw new Error("Post message through bridge disabled between same domain windows");if(bt(window,e)!==!1)throw new Error("Can only use bridge to communicate between two different windows, not between frames");(function(a,u,d){var f=Lt(window,a),p=Lt(a,window);if(!f&&!p)throw new Error("Can only send messages to and from parent and popup windows");Do(a).then((function(v){return v(a,u,d)}))})(e,t,n)},qe.postrobot_global=function(e,n){if(!ao(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!xe(e))throw new Error("Post message through global disabled between different domain windows");if(bt(window,e)!==!1)throw new Error("Can only use global to communicate between two different windows, not between frames");var t=fn(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:ue(),data:n})};function pt(e,n,t,a){var u=a.on,d=a.send;return g.try((function(){var f=lr().getOrSet(e,(function(){return{}}));return f.buffer=f.buffer||[],f.buffer.push(t),f.flush=f.flush||g.flush().then((function(){if(Fe(e))throw new Error("Window is closed");var p=No(e,n,((v={}).__post_robot_10_0_44__=f.buffer||[],v),{on:u,send:d}),v;delete f.buffer;for(var m=Object.keys(qe),b=[],w=0;w<m.length;w++){var x=m[w];try{qe[x](e,p,n)}catch(W){b.push(W)}}if(b.length===m.length)throw new Error(`All post-robot messaging strategies failed: 51 52`+b.map((function(W,T){return T+". "+ct(W)})).join(` 53 54`))})),f.flush.then((function(){delete f.flush}))})).then(nr)}function Br(e){return Be("responseListeners").get(e)}function tr(e){Be("responseListeners").del(e)}function Io(e){return Be("erroredResponseListeners").has(e)}function Kt(e){var n=e.name,t=e.win,a=e.domain,u=lr("requestListeners");if(t==="*"&&(t=null),a==="*"&&(a=null),!n)throw new Error("Name required to get request listener");for(var d=0,f=[t,At()];d<f.length;d++){var p=f[d];if(p){var v=u.get(p);if(v){var m=v[n];
54if(m){if(a&&typeof a=="string"){if(m[a])return m[a];if(m.__domain_regex__)for(var b=0,w=m.__domain_regex__;b<w.length;b++){var x=w[b],W=x.listener;if(_r(x.regex,a))return W}}if(m["*"])return m["*"]}}}}}function oi(e,n,t,a){var u=a.on,d=a.send,f=Kt({name:t.name,win:e,domain:n}),p=t.name==="postrobot_method"&&t.data&&typeof t.data.name=="string"?t.data.name+"()":t.name;function v(m,b,w){return g.flush().then((function(){if(!t.fireAndForget&&!Fe(e))try{return pt(e,n,{id:Wr(),origin:ue(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:m,data:b,error:w},{on:u,send:d})}catch(x){throw new Error("Send response message failed for "+p+" in "+ue()+` 55 56`+ct(x))}}))}return g.all([g.flush().then((function(){if(!t.fireAndForget&&!Fe(e))try{return pt(e,n,{id:Wr(),origin:ue(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:u,send:d})}catch(m){throw new Error("Send ack message failed for "+p+" in "+ue()+` 57 58`+ct(m))}})),g.try((function(){if(!f)throw new Error("No handler found for post message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!_r(f.domain,n))throw new Error("Request origin "+n+" does not match domain "+f.domain.toString());return f.handler({source:e,origin:n,data:t.data})})).then((function(m){return v("success",m)}),(function(m){return v("error",null,m)}))]).then(nr).catch((function(m){if(f&&f.handleError)return f.handleError(m);throw m}))}function ko(e,n,t){if(!Io(t.hash)){var a=Br(t.hash);if(!a)throw new Error("No handler found for post message ack for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!_r(a.domain,n))throw new Error("Ack origin "+n+" does not match domain "+a.domain.toString());if(e!==a.win)throw new Error("Ack source does not match registered window")}catch(u){a.promise.reject(u)}a.ack=!0}}function ii(e,n,t){if(!Io(t.hash)){var a=Br(t.hash);if(!a)throw new Error("No handler found for post message response for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!_r(a.domain,n))throw new Error("Response origin "+n+" does not match domain "+(u=a.domain,Array.isArray(u)?"("+u.join(" | ")+")":Wn(u)?"RegExp("+u.toString()+")":u.toString()));var u;if(e!==a.win)throw new Error("Response source does not match registered window");tr(t.hash),t.ack==="error"?a.promise.reject(t.error):t.ack==="success"&&a.promise.resolve({source:e,origin:n,data:t.data})}}function Qt(e,n){var t=n.on,a=n.send,u=Be("receivedMessages");try{if(!window||window.closed||!e.source)return}catch{return}var d=e.source,f=e.origin,p=(function(b,w,x,W){var T=W.on,I=W.send,B;try{B=Ro(w,x,b,{on:T,send:I})}catch{return}if(B&&typeof B=="object"&&B!==null){var _=B.__post_robot_10_0_44__;if(Array.isArray(_))return _}})(e.data,d,f,{on:t,send:a});if(p){Ur(d);for(var v=0;v<p.length;v++){var m=p[v];if(u.has(m.id)||(u.set(m.id,!0),Fe(d)&&!m.fireAndForget))return;m.origin.indexOf("file:")===0&&(f="file://");try{m.type==="postrobot_message_request"?oi(d,f,m,{on:t,send:a}):m.type==="postrobot_message_response"?ii(d,f,m):m.type==="postrobot_message_ack"&&ko(d,f,m)}catch(b){setTimeout((function(){throw b}),0)}}}}function Fn(e,n,t){if(!e)throw new Error("Expected name");if(typeof(n=n||{})=="function"&&(t=n,n={}),!t)throw new Error("Expected handler");(n=n||{}).name=e,n.handler=t||n.handler;var a=n.window,u=n.domain,d=(function f(p,v){var m=p.name,b=p.win,w=p.domain,x=lr("requestListeners");if(!m||typeof m!="string")throw new Error("Name required to add request listener");if(Array.isArray(b)){for(var W=[],T=0,I=b;T<I.length;T++)W.push(f({name:m,domain:w,win:I[T]},v));return{cancel:function(){for(var le=0;le<W.length;le++)W[le].cancel()}}}if(Array.isArray(w)){for(var B=[],_=0,ce=w;_<ce.length;_++)B.push(f({name:m,win:b,domain:ce[_]},v));return{cancel:function(){for(var le=0;le<B.length;le++)B[le].cancel()}}}var fe=Kt({name:m,win:b,domain:w});if(b&&b!=="*"||(b=At()),w=w||"*",fe)throw b&&w?new Error("Request listener already exists for "+m+" on domain "+w.toString()+" for "+(b===At()?"wildcard":"specified")+" window"):b?new Error("Request listener already exists for "+m+" for "+(b===At()?"wildcard":"specified")+" window"):w?new Error("Request listener already exists for "+m+" on domain "+w.toString()):new Error("Request listener already exists for "+m);var M=x.getOrSet(b,(function(){return{}})),z=St(M,m,(function(){return{}})),Y=w.toString(),F,U;return dt(w)?(F=St(z,"__domain_regex__",(function(){return[]}))).push(U={regex:w,listener:v}):z[Y]=v,{cancel:function(){delete z[Y],U&&(F.splice(F.indexOf(U,1)),F.length||delete z.__domain_regex__),Object.keys(z).length||delete M[m],b&&!Object.keys(M).length&&x.del(b)}}})({name:e,win:a,domain:u},{handler:n.handler,handleError:n.errorHandler||function(f){throw f},window:a,domain:u||"*",name:e});return{cancel:function(){d.cancel()}}}var rn=function e(n,t,a,u){var d=(u=u||{}).domain||"*",f=u.timeout||-1,p=u.timeout||5e3,v=u.fireAndForget||!1;return g.try((function(){if((function(m,b,w){if(!m)throw new Error("Expected name");
58if(typeof w!="string"&&!Array.isArray(w)&&!dt(w))throw new TypeError("Can not send "+m+". Expected domain "+JSON.stringify(w)+" to be a string, array, or regex");if(Fe(b))throw new Error("Can not send "+m+". Target window is closed")})(t,n,d),(function(m,b){var w=Gn(b);if(w)return w===m;if(b===m||un(b)===b)return!1;for(var x=0,W=$n(m);x<W.length;x++)if(W[x]===b)return!0;return!1})(window,n))return Zo(n,p)})).then((function(m){return(function(b,w,x,W){var T=W.send;return g.try((function(){return typeof w=="string"?w:g.try((function(){return x||Fr(b,{send:T}).then((function(I){return I.domain}))})).then((function(I){if(!_r(w,w))throw new Error("Domain "+zn(w)+" does not match "+zn(w));return I}))}))})(n,d,(m===void 0?{}:m).domain,{send:e})})).then((function(m){var b=m,w=t==="postrobot_method"&&a&&typeof a.name=="string"?a.name+"()":t,x=new g,W=t+"_"+Wr();if(!v){var T={name:t,win:n,domain:b,promise:x};(function(z,Y){Be("responseListeners").set(z,Y)})(W,T);var I=lr("requestPromises").getOrSet(n,(function(){return[]}));I.push(x),x.catch((function(){(function(z){Be("erroredResponseListeners").set(z,!0)})(W),tr(W)}));var B=(function(z){return lr("knownWindows").get(z,!1)})(n)?1e4:2e3,_=f,ce=B,fe=_,M=_n((function(){return Fe(n)?x.reject(new Error("Window closed for "+t+" before "+(T.ack?"response":"ack"))):T.cancelled?x.reject(new Error("Response listener was cancelled for "+t)):(ce=Math.max(ce-500,0),fe!==-1&&(fe=Math.max(fe-500,0)),T.ack||ce!==0?fe===0?x.reject(new Error("No response for postMessage "+w+" in "+ue()+" in "+_+"ms")):void 0:x.reject(new Error("No ack for postMessage "+w+" in "+ue()+" in "+B+"ms")))}),500);x.finally((function(){M.cancel(),I.splice(I.indexOf(x,1))})).catch(nr)}return pt(n,b,{id:Wr(),origin:ue(window),type:"postrobot_message_request",hash:W,name:t,data:a,fireAndForget:v},{on:Fn,send:e}).then((function(){return v?x.resolve():x}),(function(z){throw new Error("Send request message failed for "+w+" in "+ue()+` 59 60`+ct(z))}))}))};function vn(e){return en.toProxyWindow(e,{send:rn})}function mt(e){for(var n=0,t=lr("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(Fe(e)?"closed":"cleaned up")+" before response")).catch(nr)}var En;En={setupBridge:hn,openBridge:function(e,n){var t=Be("bridges"),a=Be("bridgeFrames");return n=n||Tr(e),t.getOrSet(n,(function(){return g.try((function(){if(ue()===n)throw new Error("Can not open bridge on the same domain as current domain: "+n);var u=Vt(n);if(Nn(window,u))throw new Error("Frame with name "+u+" already exists on page");var d=(function(f,p){var v=document.createElement("iframe");return v.setAttribute("name",f),v.setAttribute("id",f),v.setAttribute("style","display: none; margin: 0; padding: 0; border: 0px none; overflow: hidden;"),v.setAttribute("frameborder","0"),v.setAttribute("border","0"),v.setAttribute("scrolling","no"),v.setAttribute("allowTransparency","true"),v.setAttribute("tabindex","-1"),v.setAttribute("hidden","true"),v.setAttribute("title",""),v.setAttribute("role","presentation"),v.src=p,v})(u,e);return a.set(n,d),_o.then((function(f){f.appendChild(d);var p=d.contentWindow;return new g((function(v,m){d.addEventListener("load",v),d.addEventListener("error",m)})).then((function(){return Zo(p,5e3,"Bridge "+e)})).then((function(){return p}))}))}))}))},linkWindow:yn,linkUrl:function(e,n){yn({win:e,domain:Tr(n)})},isBridge:So,needsBridge:Wo,needsBridgeForBrowser:Gt,hasBridge:function(e,n){return Be("bridges").has(n||Tr(e))},needsBridgeForWin:Ft,needsBridgeForDomain:Yt,destroyBridges:function(){for(var e=Be("bridges"),n=Be("bridgeFrames"),t=0,a=n.keys();t<a.length;t++){var u=n.get(a[t]);u&&u.parentNode&&u.parentNode.removeChild(u)}n.reset(),e.reset()}};function gt(e){if(!xe(e))throw new Error("Can not get global for window on different domain");return e.__zoid_9_0_86__||(e.__zoid_9_0_86__={}),e.__zoid_9_0_86__}function zo(e,n){try{return n(gt(e))}catch{}}function kt(e){return{get:function(){var n=this;return g.try((function(){if(n.source&&n.source!==window)throw new Error("Can not call get on proxy object from a remote window");return e}))}}}function To(e){return Ct(JSON.stringify(e))}function Mt(e){var n=gt(e);return n.references=n.references||{},n.references}function ei(e){var n=e.data,t=e.metaData,a=e.sender,u=e.receiver,d=e.passByReference,f=d!==void 0&&d,p=e.basic,v=p!==void 0&&p,m=vn(u.win),b=v?JSON.stringify(n):No(m,u.domain,n,{on:Fn,send:rn}),w=f?(function(x){var W=Wr();return Mt(window)[W]=x,{type:"uid",uid:W}})(b):{type:"raw",val:b};return{serializedData:To({sender:{domain:a.domain},metaData:t,reference:w}),cleanReference:function(){x=window,(W=w).type==="uid"&&delete Mt(x)[W.uid];var x,W}}}function ri(e){var n=e.sender,t=e.basic,a=t!==void 0&&t,u=(function(b){return JSON.parse((function(w){if(typeof atob=="function")return decodeURIComponent([].map.call(atob(w),(function(x){return"%"+("00"+x.charCo
60deAt(0).toString(16)).slice(-2)})).join(""));if(typeof Buffer<"u")return Buffer.from(w,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")})(b))})(e.data),d=u.reference,f=u.metaData,p;p=typeof n.win=="function"?n.win({metaData:f}):n.win;var v;v=typeof n.domain=="function"?n.domain({metaData:f}):typeof n.domain=="string"?n.domain:u.sender.domain;var m=(function(b,w){if(w.type==="raw")return w.val;if(w.type==="uid")return Mt(b)[w.uid];throw new Error("Unsupported ref type: "+w.type)})(p,d);return{data:a?JSON.parse(m):(function(b,w,x){return Ro(b,w,x,{send:rn})})(p,v,m),metaData:f,sender:{win:p,domain:v},reference:d}}var Je={STRING:"string",OBJECT:"object",FUNCTION:"function",BOOLEAN:"boolean",NUMBER:"number",ARRAY:"array"},Ut={JSON:"json",DOTIFY:"dotify",BASE64:"base64"},Rr=qn,r={RENDER:"zoid-render",RENDERED:"zoid-rendered",DISPLAY:"zoid-display",ERROR:"zoid-error",CLOSE:"zoid-close",DESTROY:"zoid-destroy",PROPS:"zoid-props",RESIZE:"zoid-resize",FOCUS:"zoid-focus"};function i(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function o(e){if(!e)throw new Error("No window name");var n=e.split("__"),t=n[1],a=n[2],u=n[3];if(t!=="zoid")throw new Error("Window not rendered by zoid - got "+t);if(!a)throw new Error("Expected component name");if(!u)throw new Error("Expected serialized payload ref");return{name:a,serializedInitialPayload:u}}var c=sn((function(e){var n=ri({data:o(e).serializedInitialPayload,sender:{win:function(t){return(function(a){if(a.type==="opener")return Kn("opener",Yr(window));if(a.type==="parent"&&typeof a.distance=="number")return Kn("parent",(function(f,p){return p===void 0&&(p=1),(function(v,m){m===void 0&&(m=1);for(var b=v,w=0;w<m;w++){if(!b)return;b=cr(b)}return b})(f,Vr(f)-p)})(window,a.distance));if(a.type==="global"&&a.uid&&typeof a.uid=="string"){var u=(function(){var f=a.uid,p=Gn(window);if(!p)throw new Error("Can not find ancestor window");for(var v=0,m=cn(p);v<m.length;v++){var b=m[v];if(xe(b)){var w=zo(b,(function(x){return x.windows&&x.windows[f]}));if(w)return{v:w}}}})();if(typeof u=="object")return u.v}else if(a.type==="name"){var d=a.name;return Kn("namedWindow",(function(f,p){return Nn(f,p)||(function v(m,b){var w=Nn(m,b);if(w)return w;for(var x=0,W=$n(m);x<W.length;x++){var T=v(W[x],b);if(T)return T}})(un(f)||f,p)})(Kn("ancestor",Gn(window)),d))}throw new Error("Unable to find "+a.type+" parent component window")})(t.metaData.windowRef)}}});return{parent:n.sender,payload:n.data,reference:n.reference}}));function s(){return c(window.name)}function l(e,n){if(n===void 0&&(n=window),e===cr(n))return{type:"parent",distance:Vr(e)};if(e===Yr(n))return{type:"opener"};if(xe(e)&&(a=e,a!==un(a))){var t=sr(e).name;if(t)return{type:"name",name:t}}var a}function h(e,n,t,a,u){if(!e.hasOwnProperty(t))return a;var d=e[t];return typeof d.childDecorate=="function"?d.childDecorate({value:a,uid:u.uid,tag:u.tag,close:u.close,focus:u.focus,onError:u.onError,onProps:u.onProps,resize:u.resize,getParent:u.getParent,getParentDomain:u.getParentDomain,show:u.show,hide:u.hide,export:u.export,getSiblings:u.getSiblings}):a}function O(){return g.try((function(){window.focus()}))}function P(){return g.try((function(){window.close()}))}var E=function(){return nr},C=function(e){return Vn(e.value)};function y(e,n,t){for(var a=0,u=Object.keys(Te({},e,n));a<u.length;a++){var d=u[a];t(d,n[d],e[d])}}function S(e,n,t){var a={};return g.all((function(u,d,f){var p=[];return y(u,d,(function(v,m,b){var w=(function(x,W,T){return g.resolve().then((function(){var I,B;if(T!=null&&W){var _=(I={},I.get=W.queryParam,I.post=W.bodyParam,I)[t],ce=(B={},B.get=W.queryValue,B.post=W.bodyValue,B)[t];if(_)return g.hash({finalParam:g.try((function(){return typeof _=="function"?_({value:T}):typeof _=="string"?_:x})),finalValue:g.try((function(){return typeof ce=="function"&&dn(T)?ce({value:T}):T}))}).then((function(fe){var M=fe.finalParam,z=fe.finalValue,Y;if(typeof z=="boolean")Y=z.toString();else if(typeof z=="string")Y=z.toString();else if(typeof z=="object"&&z!==null){if(W.serialization===Ut.JSON)Y=JSON.stringify(z);else if(W.serialization===Ut.BASE64)Y=Ct(JSON.stringify(z));else if(W.serialization===Ut.DOTIFY||!W.serialization){Y=(function he(K,L,De){L===void 0&&(L=""),De===void 0&&(De={}),L=L&&L+".";for(var pe in K)K.hasOwnProperty(pe)&&K[pe]!=null&&typeof K[pe]!="function"&&(K[pe]&&Array.isArray(K[pe])&&K[pe].length&&K[pe].every((function(er){return typeof er!="object"}))?De[""+L+pe+"[]"]=K[pe].join(","):K[pe]&&typeof K[pe]=="object"?De=he(K[pe],""+L+pe,De):De[""+L+pe]=K[pe].toString());return De})(z,x);for(var F=0,U=Object.keys(Y);F<U.length;F++){var le=U[F];a[le]=Y[le]}return}}else typeof z=="number"&&(Y=z.toString());a[M]=Y}))}}))})(v,m,b);p.push(w)})),p})(n,e)).then((function(){return a}))}function D(e){var n=e.uid,t=e.options,a=e.overrides,u=a===void 0?{}:a,d=e.parentWin,f=d===void 0?window:d,p=t.propsDef,v=t.containerTemplate,m=t.prerenderTemplate,b=t.tag,w=t.name,x=t.attributes,W=t.dimensions,T=t.autoResize,I=t.url,B=t.domain,_=t.exports,ce=new g,fe=[],M=Dt(),z={},Y={},F={visible:!0},U=u.event?u.event:(le={},he={},K={on:function(R,$){var ae=he[R]=he[R]||[];ae.push($);var ee=!1;return{cancel:function(){ee||(ee=!0,ae.splice(ae.indexOf($),1))}}},once:function(R,$){var ae=K.on(R,(function(){ae.cancel(),$()}));return ae},trigger:function(R){for(var $=arguments.length,ae=new Array($>1?$-1:0),ee=1;ee<$;ee++)ae[ee-1]=arguments[ee];var Ce=he[R],Re=[];if(Ce)for(var ke=function(X){var ve=Ce[X];Re.push(g.try((function(){return ve.apply(void 0,ae)})))},Ve=0;Ve<Ce.length;Ve++)ke(Ve);return g.all(Re).then(nr)},triggerOnce:function(R){if(le[R])return g.resolve();le[R]=!0;for(var $=arguments.length,ae=new Array($>1?$-1:0),ee=1;ee<$;ee++)ae[ee-1]=arguments[ee];return K.trigger.apply(K,[R].concat(ae))},reset:function(){he={}}}),le,he,K,L=u.props?u.props:{},De,pe,er,rr,hr,or=u.onError,Ir=u.getProxyContainer,wn=u.show,qr=u.hide,mr=u.close,pn=u.renderContainer,Xr=u.getProxyWindow,nn=u.setProxyWin,tn=u.openFrame,rt=u.openPrerenderFrame,Ne=u.prerender,Hr=u.open,Me=u.openPrerender,_e=u.watchForUnload,$e=u.getInternalState,ir=u.setInternalState,gr=function(){return typeof W=="function"?W({props:L}):W},yr=function(){return g.try((function(){return u.resolveInitPromise?u.resolveInitPromise():ce.resolve()}))},Xe=function(R){return g.try((function(){return u.rejectInitPromise?u.rejectInitPromise(R):ce.reject(R)}))},Or=function(R){for(var $={},ae=0,ee=Object.keys(L);ae<ee.length;ae++){var Ce=ee[ae],Re=p[Ce];
vendor: 1,170 bytes, line 60
60Re&&Re.sendToChild===!1||Re&&Re.sameDomain&&!_r(R,ue(window))||($[Ce]=L[Ce])}return g.hash($)},Jr=function(){return g.try((function(){return $e?$e():F}))},Sr=function(R){return g.try((function(){return ir?ir(R):F=Te({},F,R)}))},on=function(){return Xr?Xr():g.try((function(){var R=L.window;if(R){var $=vn(R);return M.register((function(){return R.close()})),$}return new en({send:rn})}))},$r=function(R){return nn?nn(R):g.try((function(){De=R}))},Pn=function(){return wn?wn():g.hash({setState:Sr({visible:!0}),showElement:pe?pe.get().then(Zt):null}).then(nr)},Mn=function(){return qr?qr():g.hash({setState:Sr({visible:!1}),showElement:pe?pe.get().then(yo):null}).then(nr)},nt=function(){return typeof I=="function"?I({props:L}):I},mn=function(){return typeof x=="function"?x({props:L}):x},N=function(){return Tr(nt())},j=function(R,$){var ae=$.windowName;return tn?tn(R,{windowName:ae}):g.try((function(){if(R===Rr.IFRAME)return kt(go({attributes:Te({name:ae,title:w},mn().iframe)}))}))},te=function(R){return rt?rt(R):g.try((function(){if(R===Rr.IFRAME)return kt(go({attributes:Te({name:"__zoid_prerender_frame__"+w+"_"+Wr()+"__",title:"prerender__"+w},mn().iframe)}))}
60))},Q=function(R,$,ae){return Me?Me(R,$,ae):g.try((function(){if(R===Rr.IFRAME){if(!ae)throw new Error("Expected proxy frame to be passed");return ae.get().then((function(ee){return M.register((function(){return Qn(ee)})),mo(ee).then((function(Ce){return sr(Ce)})).then((function(Ce){return vn(Ce)}))}))}if(R===Rr.POPUP)return $;throw new Error("No render context available for "+R)}))},Oe=function(){return g.try((function(){if(De)return g.all([U.trigger(r.FOCUS),De.focus()]).then(nr)}))},Ae=function(){var R=gt(window);return R.windows=R.windows||{},R.windows[n]=window,M.register((function(){delete R.windows[n]})),n},Ke=function(R,$,ae,ee){if($===ue(window))return{type:"global",uid:Ae()};if(R!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(L.window){var Ce=ee.getWindow();if(!Ce)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(Gn(Ce)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(ae===Rr.POPUP)return{type:"opener"};if(ae===Rr.IFRAME)return{type:"parent",distance:Vr(window)};throw new Error("Can not construct window reference for child")},Ye=function(R,$){return g.try((function(){rr=R,er=$,yr(),M.register((function(){return $.close.fireAndForget().catch(nr)}))}))},ar=function(R){var $=R.width,ae=R.height;return g.try((function(){U.trigger(r.RESIZE,{width:$,height:ae})}))},He=function(R){return g.try((function(){return U.trigger(r.DESTROY)})).catch(nr).then((function(){return M.all(R)})).then((function(){ce.asyncReject(R||new Error("Component destroyed"))}))},Qe=sn((function(R){return g.try((function(){return mr?Fe(mr.__source__)?void 0:mr():g.try((function(){return U.trigger(r.CLOSE)})).then((function(){return He(R||new Error("Component closed"))}))}))})),Er=function(R,$){var ae=$.proxyWin,ee=$.proxyFrame,Ce=$.windowName;return Hr?Hr(R,{proxyWin:ae,proxyFrame:ee,windowName:Ce}):g.try((function(){if(R===Rr.IFRAME){if(!ee)throw new Error("Expected proxy frame to be passed");return ee.get().then((function(Ie){return mo(Ie).then((function(We){return M.register((function(){return Qn(Ie)})),M.register((function(){return mt(We)})),We}))}))}if(R===Rr.POPUP){var Re=gr(),ke=Re.width,Ve=ke===void 0?"300px":ke,X=Re.height,ve=X===void 0?"150px":X;Ve=Ar(Ve,window.outerWidth),ve=Ar(ve,window.outerWidth);var be=(function(Ie,We){var ze=(We=We||{}).closeOnUnload,Le=ze===void 0?1:ze,je=We.name,k=je===void 0?"":je,q=We.width,A=We.height,oe=0,ur=0;q&&(window.outerWidth?ur=Math.round((window.outerWidth-q)/2)+window.screenX:window.screen.width&&(ur=Math.round((window.screen.width-q)/2))),A&&(window.outerHeight?oe=Math.round((window.outerHeight-A)/2)+window.screenY:window.screen.height&&(oe=Math.round((window.screen.height-A)/2))),delete We.closeOnUnload,delete We.name,q&&A&&(We=Te({top:oe,left:ur,width:q,height:A,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},We));var ot=Object.keys(We).map((function(bn){if(We[bn]!=null)return bn+"="+zn(We[bn])})).filter(Boolean).join(","),kr;try{kr=window.open("",k,ot)}catch(bn){throw new Rt("Can not open popup window - "+(bn.stack||bn.message))}if(Fe(kr))throw new Rt("Can not open popup window - blocked");return Le&&window.addEventListener("unload",(function(){return kr.close()})),kr})(0,Te({name:Ce,width:Ve,height:ve},mn().popup));return M.register((function(){return co(be)})),M.register((function(){return mt(be)})),be}throw new Error("No render context available for "+R)})).then((function(Re){return ae.setWindow(Re,{send:rn}),ae.setName(Ce).then((function(){return ae}))}))},Zr=function(){return g.try((function(){var R=lt(window,"unload",Vn((function(){He(new Error("Window navigated away"))}))),$=uo(f,He,3e3);if(M.register($.cancel),M.register(R.cancel),_e)return _e()}))},vr=function(R){var $=!1;return R.isClosed().then((function(ae){return ae?($=!0,Qe(new Error("Detected component window close"))):g.delay(200).then((function(){return R.isClosed()})).then((function(ee){if(ee)return $=!0,Qe(new Error("Detected component window close"))}))})).then((function(){return $}))},Ze=function(R){return or?or(R):g.try((function(){if(fe.indexOf(R)===-1)return fe.push(R),ce.asyncReject(R),U.trigger(r.ERROR,R)}))},Kr=new g,Pr=function(R){return g.try((function(){Kr.resolve(R)}
60))};Ye.onError=Ze;var Ge=function(R,$){return R({uid:n,container:$.container,context:$.context,doc:$.doc,frame:$.frame,prerenderFrame:$.prerenderFrame,focus:Oe,close:Qe,state:z,props:L,tag:b,dimensions:gr(),event:U})},Mr=function(R,$){var ae=$.context;return Ne?Ne(R,{context:ae}):g.try((function(){if(m){var ee=R.getWindow();if(ee&&xe(ee)&&(function(ze){try{if(!ze.location.href||ze.location.href==="about:blank")return!0}catch{}return!1})(ee)){var Ce=(ee=sr(ee)).document,Re=Ge(m,{context:ae,doc:Ce});if(Re){if(Re.ownerDocument!==Ce)throw new Error("Expected prerender template to have been created with document from child window");(function(ze,Le){var je=Le.tagName.toLowerCase();if(je!=="html")throw new Error("Expected element to be html, got "+je);for(var k=ze.document.documentElement,q=0,A=Xn(k.children);q<A.length;q++)k.removeChild(A[q]);for(var oe=0,ur=Xn(Le.children);oe<ur.length;oe++)k.appendChild(ur[oe])})(ee,Re);var ke=T.width,Ve=ke!==void 0&&ke,X=T.height,ve=X!==void 0&&X,be=T.element,Ie=be===void 0?"body":be;if((Ie=ft(Ie,Ce))&&(Ve||ve)){var We=Bo(Ie,(function(ze){ar({width:Ve?ze.width:void 0,height:ve?ze.height:void 0})}),{width:Ve,height:ve,win:ee});U.on(r.RENDERED,We.cancel)}}}}}))},Qr=function(R,$){var ae=$.proxyFrame,ee=$.proxyPrerenderFrame,Ce=$.context,Re=$.rerender;return pn?pn(R,{proxyFrame:ae,proxyPrerenderFrame:ee,context:Ce,rerender:Re}):g.hash({container:R.get(),frame:ae?ae.get():null,prerenderFrame:ee?ee.get():null,internalState:Jr()}).then((function(ke){var Ve=ke.container,X=ke.internalState.visible,ve=Ge(v,{context:Ce,container:Ve,frame:ke.frame,prerenderFrame:ke.prerenderFrame,doc:document});if(ve){X||yo(ve),Lo(Ve,ve);var be=(function(Ie,We){We=Vn(We);var ze=!1,Le=[],je,k,q,A=function(){ze=!0;for(var kr=0;kr<Le.length;kr++)Le[kr].disconnect();je&&je.cancel(),q&&q.removeEventListener("unload",oe),k&&Qn(k)},oe=function(){ze||(We(),A())};if(kn(Ie))return oe(),{cancel:A};if(window.MutationObserver)for(var ur=Ie.parentElement;ur;){var ot=new window.MutationObserver((function(){kn(Ie)&&oe()}));ot.observe(ur,{childList:!0}),Le.push(ot),ur=ur.parentElement}return(k=document.createElement("iframe")).setAttribute("name","__detect_close_"+Wr()+"__"),k.style.display="none",mo(k).then((function(kr){(q=sr(kr)).addEventListener("unload",oe)})),Ie.appendChild(k),je=_n((function(){kn(Ie)&&oe()}),1e3),{cancel:A}})(ve,(function(){var Ie=new Error("Detected container element removed from DOM");return g.delay(1).then((function(){if(!kn(ve))return M.all(Ie),Re().then(yr,Xe);Qe(Ie)}))}));return M.register((function(){return be.cancel()})),M.register((function(){return Qn(ve)})),pe=kt(ve)}}))},zr=function(){return{state:z,event:U,close:Qe,focus:Oe,resize:ar,onError:Ze,updateProps:Un,show:Pn,hide:Mn}},tt=function(R){R===void 0&&(R={});var $=hr,ae=zr();st(Y,R),(function(ee,Ce,Re,ke,Ve){var X=ke.state,ve=ke.close,be=ke.focus,Ie=ke.event,We=ke.onError;y(Re,ee,(function(ze,Le,je){var k=!1,q=je;Object.defineProperty(Ce,ze,{configurable:!0,enumerable:!0,get:function(){return k?q:(k=!0,(function(){if(!Le)return q;var A=Le.alias;if(A&&!dn(je)&&dn(Re[A])&&(q=Re[A]),Le.value&&(q=Le.value({props:Ce,state:X,close:ve,focus:be,event:Ie,onError:We,container:Ve})),!Le.default||dn(q)||dn(Re[ze])||(q=Le.default({props:Ce,state:X,close:ve,focus:be,event:Ie,onError:We,container:Ve})),dn(q)){if(Le.type===Je.ARRAY?!Array.isArray(q):typeof q!==Le.type)throw new TypeError("Prop is not of type "+Le.type+": "+ze)}else if(Le.required!==!1&&!dn(Re[ze]))throw new Error('Expected prop "'+ze+'" to be defined');return dn(q)&&Le.decorate&&(q=Le.decorate({value:q,props:Ce,state:X,close:ve,focus:be,event:Ie,onError:We,container:Ve})),q})())}})})),y(Ce,ee,nr)})(p,L,Y,ae,$)},Un=function(R){return tt(R),ce.then((function(){var $=er,ae=De;if($&&ae&&rr)return Or(rr).then((function(ee){return $.updateProps(ee).catch((function(Ce){return vr(ae).then((function(Re){if(!Re)throw Ce}))}))}))}))},eo=function(R){return Ir?Ir(R):g.try((function(){return wo(R)})).then((function($){return Eo($)&&($=(function ae(ee){var Ce=(function(X){var ve=(function(be){for(;be.parentNode;)be=be.parentNode;if(Eo(be))return be})(X);if(ve&&ve.host)return ve.host})(ee);if(!Ce)throw new Error("Element is not in shadow dom");var Re="shadow-slot-"+Wr(),ke=document.createElement("slot");ke.setAttribute("name",Re),ee.appendChild(ke);var Ve=document.createElement("div");return Ve.setAttribute("slot",Re),Ce.appendChild(Ve),Eo(Ce)?ae(Ve):Ve})($)),hr=$,kt($)}))};return{init:function(){(function(){U.on(r.RENDER,(function(){return L.onRender()})),U.on(r.DISPLAY,(function(){return L.onDisplay()})),U.on(r.RENDERED,(function(){return L.onRendered()})),U.on(r.CLOSE,(function(){return L.onClose()})),U.on(r.DESTROY,(function(){return L.onDestroy()})),U.on(r.RESIZE,(function(){return L.onResize()})),U.on(r.FOCUS,(function(){return L.onFocus()}
60)),U.on(r.PROPS,(function(R){return L.onProps(R)})),U.on(r.ERROR,(function(R){return L&&L.onError?L.onError(R):Xe(R).then((function(){setTimeout((function(){throw R}),1)}))})),M.register(U.reset)})()},render:function(R){var $=R.target,ae=R.container,ee=R.context,Ce=R.rerender;return g.try((function(){var Re=N(),ke=B||N();(function(we,Cr,wr){if(we!==window){if(!bt(window,we))throw new Error("Can only renderTo an adjacent frame");var Dr=ue();if(!_r(Cr,Dr)&&!xe(we))throw new Error("Can not render remotely to "+Cr.toString()+" - can only render to "+Dr);if(wr&&typeof wr!="string")throw new Error("Container passed to renderTo must be a string selector, got "+typeof wr+" }")}})($,ke,ae);var Ve=g.try((function(){if($!==window)return(function(we,Cr){for(var wr={},Dr=0,an=Object.keys(L);Dr<an.length;Dr++){var br=an[Dr],Ln=p[br];Ln&&Ln.allowDelegate&&(wr[br]=L[br])}var Nr=rn(Cr,"zoid_delegate_"+w,{uid:n,overrides:{props:wr,event:U,close:Qe,onError:Ze,getInternalState:Jr,setInternalState:Sr,resolveInitPromise:yr,rejectInitPromise:Xe}}).then((function(ge){var ye=ge.data.parent;return M.register((function(Z){if(!Fe(Cr))return ye.destroy(Z)})),ye.getDelegateOverrides()})).catch((function(ge){throw new Error(`Unable to delegate rendering. Possibly the component is not loaded in the target window. 61 62`+ct(ge))}));return Ir=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.getProxyContainer.apply(Ee,ye)}))},pn=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.renderContainer.apply(Ee,ye)}))},wn=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.show.apply(Ee,ye)}))},qr=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.hide.apply(Ee,ye)}))},_e=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.watchForUnload.apply(Ee,ye)}))},we===Rr.IFRAME?(Xr=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.getProxyWindow.apply(Ee,ye)}))},tn=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.openFrame.apply(Ee,ye)}))},rt=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.openPrerenderFrame.apply(Ee,ye)}))},Ne=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.prerender.apply(Ee,ye)}))},Hr=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.open.apply(Ee,ye)}))},Me=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.openPrerender.apply(Ee,ye)}))}):we===Rr.POPUP&&(nn=function(){for(var ge=arguments.length,ye=new Array(ge),Z=0;Z<ge;Z++)ye[Z]=arguments[Z];return Nr.then((function(Ee){return Ee.setProxyWin.apply(Ee,ye)}))}),Nr})(ee,$)})),X=L.window,ve=Zr(),be=S(p,L,"post"),Ie=U.trigger(r.RENDER),We=eo(ae),ze=on(),Le=We.then((function(){return tt()})),je=Le.then((function(){return S(p,L,"get").then((function(we){return(function(Cr,wr){var Dr=wr.query||{},an=wr.hash||{},br,Ln,Nr=Cr.split("#");Ln=Nr[1];var ge=(br=Nr[0]).split("?");br=ge[0];var ye=$t(ge[1],Dr),Z=$t(Ln,an);return ye&&(br=br+"?"+ye),Z&&(br=br+"#"+Z),br})(it(nt()),{query:we})}))})),k=ze.then((function(we){return(function(wr){var Dr=wr===void 0?{}:wr,an=Dr.proxyWin,br=Dr.initialChildDomain,Ln=Dr.childDomainMatch,Nr=Dr.target,ge=Nr===void 0?window:Nr,ye=Dr.context;return(function(Z){var Ee=Z===void 0?{}:Z,ui=Ee.proxyWin,Ei=Ee.childDomainMatch,Pi=Ee.context;return Or(Ee.initialChildDomain).then((function(bi){return{uid:n,context:Pi,tag:b,childDomainMatch:Ei,version:"9_0_86",props:bi,exports:(fi=ui,{init:function(xi){return Ye(this.origin,xi)},close:Qe,checkClose:function(){return vr(fi)},resize:ar,onError:Ze,show:Pn,hide:Mn,export:Pr})};var fi}))})({proxyWin:an,initialChildDomain:br,childDomainMatch:Ln,context:ye}).then((function(Z){var Ee=ei({data:Z,metaData:{windowRef:Ke(ge,br,ye,an)},sender:{domain:ue(window)},receiver:{win:an,domain:Ln},passByReference:br===ue()}),ui=Ee.serializedData;return M.register(Ee.cleanReference),ui}))})({proxyWin:(Cr={proxyWin:we,initialChildDomain:Re,childDomainMatch:ke,target:$,context:ee}).proxyWin,initialChildDomain:Cr.initialChildDomain,childDomainMatch:Cr.childDomainMatch,target:Cr.target,context:Cr.context}).then((function(wr){return i({name:w,serializedPayload:wr})}));var Cr})),q=k.then((function(we){return j(ee,{windowName:we})}
62)),A=te(ee),oe=g.hash({proxyContainer:We,proxyFrame:q,proxyPrerenderFrame:A}).then((function(we){return Qr(we.proxyContainer,{context:ee,proxyFrame:we.proxyFrame,proxyPrerenderFrame:we.proxyPrerenderFrame,rerender:Ce})})).then((function(we){return we})),ur=g.hash({windowName:k,proxyFrame:q,proxyWin:ze}).then((function(we){var Cr=we.proxyWin;return X?Cr:Er(ee,{windowName:we.windowName,proxyWin:Cr,proxyFrame:we.proxyFrame})})),ot=g.hash({proxyWin:ur,proxyPrerenderFrame:A}).then((function(we){return Q(ee,we.proxyWin,we.proxyPrerenderFrame)})),kr=ur.then((function(we){return De=we,$r(we)})),bn=g.hash({proxyPrerenderWin:ot,state:kr}).then((function(we){return Mr(we.proxyPrerenderWin,{context:ee})})),Ao=g.hash({proxyWin:ur,windowName:k}).then((function(we){if(X)return we.proxyWin.setName(we.windowName)})),ai=g.hash({body:be}).then((function(we){return t.method?t.method:Object.keys(we.body).length?"post":"get"})),di=g.hash({proxyWin:ur,windowUrl:je,body:be,method:ai,windowName:Ao,prerender:bn}).then((function(we){return we.proxyWin.setLocation(we.windowUrl,{method:we.method,body:we.body})})),wi=ur.then((function(we){(function Cr(wr,Dr){var an=!1;return M.register((function(){an=!0})),g.delay(2e3).then((function(){return wr.isClosed()})).then((function(br){if(!an)return br?Qe(new Error("Detected "+Dr+" close")):Cr(wr,Dr)}))})(we,ee)})),pi=g.hash({container:oe,prerender:bn}).then((function(){return U.trigger(r.DISPLAY)})),mi=ur.then((function(we){return(function(Cr,wr,Dr){return g.try((function(){return Cr.awaitWindow()})).then((function(an){if(En&&En.needsBridge({win:an,domain:wr})&&!En.hasBridge(wr,wr)){var br=typeof t.bridgeUrl=="function"?t.bridgeUrl({props:L}):t.bridgeUrl;if(!br)throw new Error("Bridge needed to render "+Dr);var Ln=Tr(br);return En.linkUrl(an,wr),En.openBridge(it(br),Ln)}}))})(we,Re,ee)})),gi=di.then((function(){return g.try((function(){var we=L.timeout;if(we)return ce.timeout(we,new Error("Loading component timed out after "+we+" milliseconds"))}))})),yi=ce.then((function(){return U.trigger(r.RENDERED)}));return g.hash({initPromise:ce,buildUrlPromise:je,onRenderPromise:Ie,getProxyContainerPromise:We,openFramePromise:q,openPrerenderFramePromise:A,renderContainerPromise:oe,openPromise:ur,openPrerenderPromise:ot,setStatePromise:kr,prerenderPromise:bn,loadUrlPromise:di,buildWindowNamePromise:k,setWindowNamePromise:Ao,watchForClosePromise:wi,onDisplayPromise:pi,openBridgePromise:mi,runTimeoutPromise:gi,onRenderedPromise:yi,delegatePromise:Ve,watchForUnloadPromise:ve,finalSetPropsPromise:Le})})).catch((function(Re){return g.all([Ze(Re),He(Re)]).then((function(){throw Re}),(function(){throw Re}))})).then(nr)},destroy:He,getProps:function(){return L},setProps:tt,export:Pr,getHelpers:zr,getDelegateOverrides:function(){return g.try((function(){return{getProxyContainer:eo,show:Pn,hide:Mn,renderContainer:Qr,getProxyWindow:on,watchForUnload:Zr,openFrame:j,openPrerenderFrame:te,prerender:Mr,open:Er,openPrerender:Q,setProxyWin:$r}}))},getExports:function(){return _({getExports:function(){return Kr}})}}}function J(e){var n=e.uid,t=e.frame,a=e.prerenderFrame,u=e.doc,d=e.props,f=e.event,p=e.dimensions,v=p.width,m=p.height;if(t&&a){var b=u.createElement("div");b.setAttribute("id",n);var w=u.createElement("style");return d.cspNonce&&w.setAttribute("nonce",d.cspNonce),w.appendChild(u.createTextNode(` 63 #`+n+` { 64 display: inline-block; 65 position: relative; 66 width: `+v+`; 67 height: `+m+`; 68 } 69 70 #`+n+` > iframe { 71 display: inline-block; 72 position: absolute; 73 width: 100%; 74 height: 100%; 75 top: 0; 76 left: 0; 77 transition: opacity .2s ease-in-out; 78 } 79 80 #`+n+` > iframe.zoid-invisible { 81 opacity: 0; 82 } 83 84 #`+n+` > iframe.zoid-visible { 85 opacity: 1; 86 } 87 `)),b.appendChild(t),b.appendChild(a),b.appendChild(w),a.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),f.on(r.RENDERED,(function(){a.classList.remove("zoid-visible"),a.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){Qn(a)}),1)})),f.on(r.RESIZE,(function(x){var W=x.width,T=x.height;typeof W=="number"&&(b.style.width=Tt(W)),typeof T=="number"&&(b.style.height=Tt(T))})),b}}function V(e){var n=e.doc,t=e.props,a=n.createElement("html"),u=n.createElement("body"),d=n.createElement("style"),f=n.createElement("div");return f.classList.add("spinner"),t.cspNonce&&d.setAttribute("nonce",t.cspNonce),a.appendChild(u),u.appendChild(f),u.appendChild(d),d.appendChild(n.createTextNode(` 88 html, body { 89 width: 100%; 90 height: 100%; 91 } 92 93 .spinner { 94 position: fixed; 95 max-height: 60vmin; 96 max-width: 60vmin; 97 height: 40px; 98 width: 40px; 99 top: 50%; 100 left: 50%; 101 box-sizing: border-box; 102 border: 3px solid rgba(0, 0, 0, .2); 103 border-top-color: rgba(33, 128, 192, 0.8); 104 border-radius: 100%; 105 animation: rotation .7s infinite linear; 106 } 107 108 @keyframes rotation { 109 from { 110 transform: translateX(-50%) translateY(-50%) rotate(0deg); 111 } 112 to { 113 transform: translateX(-50%) translateY(-50%) rotate(359deg); 114 } 115 } 116 `)),a}var re=Dt(),ne=Dt();function Pe(e){var n=(function(w){var x=w.tag,W=w.url,T=w.domain,I=w.bridgeUrl,B=w.props,_=B===void 0?{}:B,ce=w.dimensions,fe=ce===void 0?{}:ce,M=w.autoResize,z=M===void 0?{}:M,Y=w.allowedParentDomains,F=Y===void 0?"*":Y,U=w.attributes,le=U===void 0?{}:U,he=w.defaultContext,K=he===void 0?Rr.IFRAME:he,L=w.containerTemplate,De=L===void 0?J:L,pe=w.prerenderTemplate,er=pe===void 0?V:pe,rr=w.validate,hr=w.eligible,or=hr===void 0?function(){return{eligible:!0}}:hr,Ir=w.logger,wn=Ir===void 0?{info:nr}
116:Ir,qr=w.exports,mr=qr===void 0?nr:qr,pn=w.method,Xr=w.children,nn=Xr===void 0?function(){return{}}:Xr,tn=x.replace(/-/g,"_"),rt=Te({},{window:{type:Je.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(Ne){var Hr=Ne.value;if(!Yn(Hr)&&!en.isProxyWindow(Hr))throw new Error("Expected Window or ProxyWindow");if(Yn(Hr)){if(Fe(Hr))throw new Error("Window is closed");if(!xe(Hr))throw new Error("Window is not same domain")}},decorate:function(Ne){return vn(Ne.value)}},timeout:{type:Je.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:Je.STRING,required:!1},onDisplay:{type:Je.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:E,decorate:C},onRendered:{type:Je.FUNCTION,required:!1,sendToChild:!1,default:E,decorate:C},onRender:{type:Je.FUNCTION,required:!1,sendToChild:!1,default:E,decorate:C},onClose:{type:Je.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:E,decorate:C},onDestroy:{type:Je.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:E,decorate:C},onResize:{type:Je.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:E},onFocus:{type:Je.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:E},close:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.close}},focus:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.focus}},resize:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.resize}},uid:{type:Je.STRING,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.uid}},tag:{type:Je.STRING,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.tag}},getParent:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.getParent}},getParentDomain:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.getParentDomain}},show:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.show}},hide:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.hide}},export:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.export}},onError:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.onError}},onProps:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.onProps}},getSiblings:{type:Je.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(Ne){return Ne.getSiblings}}},_);if(!De)throw new Error("Container template required");return{name:tn,tag:x,url:W,domain:T,bridgeUrl:I,method:pn,propsDef:rt,dimensions:fe,autoResize:z,allowedParentDomains:F,attributes:le,defaultContext:K,containerTemplate:De,prerenderTemplate:er,validate:rr,logger:wn,eligible:or,children:nn,exports:typeof mr=="function"?mr:function(Ne){for(var Hr=Ne.getExports,Me={},_e=function(gr,yr){var Xe=yr[gr],Or=mr[Xe].type,Jr=Hr().then((function(Sr){return Sr[Xe]}));Me[Xe]=Or===Je.FUNCTION?function(){for(var Sr=arguments.length,on=new Array(Sr),$r=0;$r<Sr;$r++)on[$r]=arguments[$r];return Jr.then((function(Pn){return Pn.apply(void 0,on)}))}:Jr},$e=0,ir=Object.keys(mr);$e<ir.length;$e++)_e($e,ir);return Me}}})(e),t=n.name,a=n.tag,u=n.defaultContext,d=n.eligible,f=n.children,p=gt(window),v=[],m=function(){if((function(x){try{return o(window.name).name===x}catch{}return!1})(t)){var w=s().payload;if(w.tag===a&&_r(w.childDomainMatch,ue()))return!0}return!1},b=sn((function(){if(m()){if(window.xprops)throw delete p.components[a],new Error("Can not register "+t+" as child - child already registered");var w=(function(x){var W=x.tag,T=x.propsDef,I=x.autoResize,B=x.allowedParentDomains,_=[],ce=s(),fe=ce.parent,M=ce.payload,z=fe.win,Y=fe.domain,F,U=new g,le=M.version,he=M.uid,K=M.exports,L=M.context,De=M.props;if(le!=="9_0_86")throw new Error("Parent window has zoid version "+le+", child window has version 9_0_86");var pe=K.show,er=K.hide,rr=K.close,hr=K.onError,or=K.checkClose,Ir=K.export,wn=K.resize,qr=K.init,mr=function(){return z},pn=function(){return Y},Xr=function(Me){return _.push(Me),{cancel:function(){_.splice(_.indexOf(Me),1)}}},nn=function(Me){return wn.fireAndForget({width:Me.width,height:Me.height})},tn=function(Me){return U.resolve(Me),Ir(Me)},rt=function(Me){var _e=(Me===void 0?{}:Me).anyParent,$e=[],ir=F.parent;if(_e===void 0&&(_e=!ir),!_e&&!ir)throw new Error("No parent found for "+W+" child");for(var gr=0,yr=cn(window);gr<yr.length;gr++){var Xe=yr[gr];if(xe(Xe)){var Or=sr(Xe).xprops;if(Or&&mr()===Or.getParent()){var Jr=Or.parent;if(_e||!ir||Jr&&Jr.uid===ir.uid){var Sr=zo(Xe,(function(on){return on.exports}));$e.push({props:Or,exports:Sr})}}}}return $e},Ne=function(Me,_e,$e){$e===void 0&&($e=!1);var ir=(function(yr,Xe,Or,Jr,Sr,on){on===void 0&&(on=!1);for(var $r={},Pn=0,Mn=Object.keys(Or);Pn<Mn.length;Pn++){var nt=Mn[Pn],mn=Xe[nt];if(!mn||!mn.sameDomain||Jr===ue(window)&&xe(yr)){var N=h(Xe,0,nt,Or[nt],Sr);$r[nt]=N,mn&&mn.alias&&!$r[mn.alias]&&($r[mn.alias]=N)}}if(!on)for(var j=0,te=Object.keys(Xe);j<te.length;j++){var Q=te[j];Or.hasOwnProperty(Q)||($r[Q]=h(Xe,0,Q,void 0,Sr))}return $r}
116)(z,T,Me,_e,{tag:W,show:pe,hide:er,close:rr,focus:O,onError:hr,resize:nn,getSiblings:rt,onProps:Xr,getParent:mr,getParentDomain:pn,uid:he,export:tn},$e);F?st(F,ir):F=ir;for(var gr=0;gr<_.length;gr++)(0,_[gr])(F)},Hr=function(Me){return g.try((function(){return Ne(Me,Y,!0)}))};return{init:function(){return g.try((function(){return xe(z)&&(function(Me){var _e=Me.componentName,$e=Me.parentComponentWindow,ir=ri({data:o(window.name).serializedInitialPayload,sender:{win:$e},basic:!0}),gr=ir.sender;if(ir.reference.type==="uid"||ir.metaData.windowRef.type==="global"){var yr=ei({data:ir.data,metaData:{windowRef:l($e)},sender:{domain:gr.domain},receiver:{win:window,domain:ue()},basic:!0});window.name=i({name:_e,serializedPayload:yr.serializedData})}})({componentName:x.name,parentComponentWindow:z}),gt(window).exports=x.exports({getExports:function(){return U}}),(function(Me,_e){if(!_r(Me,_e))throw new Error("Can not be rendered by domain: "+_e)})(B,Y),Ur(z),(function(){window.addEventListener("beforeunload",(function(){or.fireAndForget()})),window.addEventListener("unload",(function(){or.fireAndForget()})),uo(z,(function(){P()}))})(),qr({updateProps:Hr,close:P})})).then((function(){return(Me=I.width,_e=Me!==void 0&&Me,$e=I.height,ir=$e!==void 0&&$e,gr=I.element,wo(gr===void 0?"body":gr).catch(nr).then((function(yr){return{width:_e,height:ir,element:yr}}))).then((function(yr){var Xe=yr.width,Or=yr.height,Jr=yr.element;Jr&&(Xe||Or)&&L!==Rr.POPUP&&Bo(Jr,(function(Sr){nn({width:Xe?Sr.width:void 0,height:Or?Sr.height:void 0})}),{width:Xe,height:Or})}));var Me,_e,$e,ir,gr})).catch((function(Me){hr(Me)}))},getProps:function(){return F||(Ne(De,Y),F)}}})(n);return w.init(),w}}));if(b(),(function(){var w=Fn("zoid_allow_delegate_"+t,(function(){return!0})),x=Fn("zoid_delegate_"+t,(function(W){var T=W.data;return{parent:D({uid:T.uid,options:n,overrides:T.overrides,parentWin:W.source})}}));ne.register(w.cancel),ne.register(x.cancel)})(),p.components=p.components||{},p.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return p.components[a]=!0,{init:function w(x){var W,T="zoid-"+a+"-"+Wr(),I=x||{},B=d({props:I}),_=B.eligible,ce=B.reason,fe=I.onDestroy;I.onDestroy=function(){if(W&&_&&v.splice(v.indexOf(W),1),fe)return fe.apply(void 0,arguments)};var M=D({uid:T,options:n});M.init(),_?M.setProps(I):I.onDestroy&&I.onDestroy(),re.register((function(F){return M.destroy(F||new Error("zoid destroyed all components"))}));var z=function(F){var U=(F===void 0?{}:F).decorate;return w((U===void 0?Tn:U)(I))},Y=function(F,U,le){return g.try((function(){if(!_){var he=new Error(ce||t+" component is not eligible");return M.destroy(he).then((function(){throw he}))}
116if(!Yn(F))throw new Error("Must pass window to renderTo");return(function(K,L){return g.try((function(){if(K.window)return vn(K.window).getType();if(L){if(L!==Rr.IFRAME&&L!==Rr.POPUP)throw new Error("Unrecognized context: "+L);return L}return u}))})(I,le)})).then((function(he){if(U=(function(K,L){if(L){if(typeof L!="string"&&!jo(L))throw new TypeError("Expected string or element selector to be passed");return L}if(K===Rr.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")})(he,U),F!==window&&typeof U!="string")throw new Error("Must pass string element when rendering to another window");return M.render({target:F,container:U,context:he,rerender:function(){var K=z();return st(W,K),K.renderTo(F,U,le)}})})).catch((function(he){return M.destroy(he).then((function(){throw he}))}))};return W=Te({},M.getExports(),M.getHelpers(),(function(){for(var F=f(),U={},le=function(L,De){var pe=De[L],er=F[pe];U[pe]=function(rr){var hr=M.getProps(),or=Te({},rr,{parent:{uid:T,props:hr,export:M.export}});return er(or)}},he=0,K=Object.keys(F);he<K.length;he++)le(he,K);return U})(),{isEligible:function(){return _},clone:z,render:function(F,U){return Y(window,F,U)},renderTo:function(F,U,le){return Y(F,U,le)}}),_&&v.push(W),W},instances:v,driver:function(w,x){throw new Error("Driver support not enabled")},isChild:m,canRenderTo:function(w){return rn(w,"zoid_allow_delegate_"+t).then((function(x){return x.data})).catch((function(){return!1}))},registerChild:b}}var Se=function(e){(function(){fn().initialized||(fn().initialized=!0,d=(u={on:Fn,send:rn}).on,f=u.send,(p=fn()).receiveMessage=p.receiveMessage||function(v){return Qt(v,{on:d,send:f})},(function(v){var m=v.on,b=v.send;Be().getOrSet("postMessageListener",(function(){return lt(window,"message",(function(w){(function(x,W){var T=W.on,I=W.send;g.try((function(){var B=x.source||x.sourceElement,_=x.origin||x.originalEvent&&x.originalEvent.origin,ce=x.data;if(_==="null"&&(_="file://"),B){if(!_)throw new Error("Post message did not have origin domain");Qt({source:B,origin:_,data:ce},{on:T,send:I})}}))})(w,{on:m,send:b})}))}))})({on:Fn,send:rn}),hn({on:Fn,send:rn,receiveMessage:Qt}),(function(v){var m=v.on,b=v.send;Be("builtinListeners").getOrSet("helloListener",(function(){var w=m("postrobot_hello",{domain:"*"},(function(W){return An(W.source,{domain:W.origin}),{instanceID:xo()}})),x=Gn();return x&&Fr(x,{send:b}).catch((function(W){})),w}))})({on:Fn,send:rn}));var u,d,f,p})();var n=Pe(e),t=function(u){return n.init(u)};t.driver=function(u,d){return n.driver(u,d)},t.isChild=function(){return n.isChild()},t.canRenderTo=function(u){return n.canRenderTo(u)},t.instances=n.instances;var a=n.registerChild();return a&&(window.xprops=t.xprops=a.getProps()),t};function G(e){En&&En.destroyBridges();var n=re.all(e);return re=Dt(),n}var se=G;function de(e){return se(),delete window.__zoid_9_0_86__,(function(){(function(){for(var t=Be("responseListeners"),a=0,u=t.keys();a<u.length;a++){var d=u[a],f=t.get(d);f&&(f.cancelled=!0),t.del(d)}})(),(n=Be().get("postMessageListener"))&&n.cancel();var n;delete window.__post_robot_10_0_44__})(),ne.all(e)}}])}))})(ti)),ti.exports}var vi;function Ni(){return vi||(vi=1,(function(gn){var Fo={};process&&Fo&&Fo.ZOID_FRAME_ONLY?(gn.exports=Wi(),gn.exports.default=gn.exports):(gn.exports=Di(),gn.exports.default=gn.exports)})(ci)),ci.exports}var Ri=Ni();const Ii=Oi(Ri),zi="https://preview.widgets.ninetailed.io/v2";let si;const Fi=({url:gn=zi})=>(si||(si=Ii.create({tag:"ninetailed-preview",url:gn,dimensions:{width:"432px",height:"100vh"}})),si());export{Fi as PreviewBridge}; 117//# sourceMappingURL=index.esm-DeSeV-bD.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.