/*
 @overview es6-promise - a tiny implementation of Promises/A+.
 @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 @license   Licensed under MIT license
            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 @version   4.1.0+f046478d
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(h){var l=0;return function(){return l<h.length?{done:!1,value:h[l++]}:{done:!0}}};$jscomp.arrayIterator=function(h){return{next:$jscomp.arrayIteratorImpl(h)}};$jscomp.makeIterator=function(h){var l=typeof Symbol!="undefined"&&Symbol.iterator&&h[Symbol.iterator];if(l)return l.call(h);if(typeof h.length=="number")return $jscomp.arrayIterator(h);throw Error(String(h)+" is not an iterable or ArrayLike");};
$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_ES6=$jscomp.ASSUME_ES2020;$jscomp.ASSUME_ES5=$jscomp.ASSUME_ES6;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;
$jscomp.getGlobal=function(h){h=["object"==typeof globalThis&&globalThis,h,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var l=0;l<h.length;++l){var r=h[l];if(r&&r.Math==Math)return r}throw Error("Cannot find global object");};$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);
$jscomp.checkEs6ConformanceViaProxy=function(){try{var h={},l=Object.create(new $jscomp.global.Proxy(h,{get:function(r,v,n){return r==h&&v=="q"&&n==l}}));return l.q===!0}catch(r){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();
$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(h,l,r){if(h==Array.prototype||h==Object.prototype)return h;h[l]=r.value;return h};$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";
var $jscomp$lookupPolyfilledValue=function(h,l,r){if(!r||h!=null){r=$jscomp.propertyToPolyfillSymbol[l];if(r==null)return h[l];r=h[r];return r!==void 0?r:h[l]}};$jscomp.TYPED_ARRAY_CLASSES=function(){var h="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(h.push("BigInt64"),h.push("BigUint64"));return h}();
$jscomp.polyfillTypedArrayMethod=function(h,l,r,v){if(l)for(var n=0;n<$jscomp.TYPED_ARRAY_CLASSES.length;n++){var x=$jscomp.TYPED_ARRAY_CLASSES[n]+"Array.prototype."+h;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(x,l,r,v):$jscomp.polyfillUnisolated(x,l,r,v)}};$jscomp.polyfill=function(h,l,r,v){l&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(h,l,r,v):$jscomp.polyfillUnisolated(h,l,r,v))};
$jscomp.polyfillUnisolated=function(h,l,r,v){r=$jscomp.global;h=h.split(".");for(v=0;v<h.length-1;v++){var n=h[v];if(!(n in r))return;r=r[n]}h=h[h.length-1];v=r[h];l=l(v);l!=v&&l!=null&&$jscomp.defineProperty(r,h,{configurable:!0,writable:!0,value:l})};
$jscomp.polyfillIsolated=function(h,l,r,v){var n=h.split(".");h=n.length===1;v=n[0];v=!h&&v in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var x=0;x<n.length-1;x++){var f=n[x];if(!(f in v))return;v=v[f]}n=n[n.length-1];r=$jscomp.IS_SYMBOL_NATIVE&&r==="es6"?v[n]:null;l=l(r);l!=null&&(h?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:l}):l!==r&&($jscomp.propertyToPolyfillSymbol[n]===void 0&&(r=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(n):$jscomp.POLYFILL_PREFIX+r+"$"+n),$jscomp.defineProperty(v,$jscomp.propertyToPolyfillSymbol[n],{configurable:!0,writable:!0,value:l})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(h){if(h)return h;var l=function(x,f){this.$jscomp$symbol$id_=x;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:f})};l.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",v=0,n=function(x){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return new l(r+(x||"")+"_"+v++,x)};return n},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(h){if(h)return h;h=Symbol("Symbol.iterator");$jscomp.defineProperty(Array.prototype,h,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});return h},"es6","es3");$jscomp.iteratorPrototype=function(h){h={next:h};h[Symbol.iterator]=function(){return this};return h};$jscomp.owns=function(h,l){return Object.prototype.hasOwnProperty.call(h,l)};
$jscomp.polyfill("WeakMap",function(h){function l(){if(!h||!Object.seal)return!1;try{var p=Object.seal({}),t=Object.seal({}),y=new h([[p,2],[t,3]]);if(y.get(p)!=2||y.get(t)!=3)return!1;y.delete(p);y.set(t,4);return!y.has(p)&&y.get(t)==4}catch(K){return!1}}function r(){}function v(p){var t=typeof p;return t==="object"&&p!==null||t==="function"}function n(p){if(!$jscomp.owns(p,f)){var t=new r;$jscomp.defineProperty(p,f,{value:t})}}function x(p){if(!$jscomp.ISOLATE_POLYFILLS){var t=Object[p];t&&(Object[p]=
function(y){if(y instanceof r)return y;Object.isExtensible(y)&&n(y);return t(y)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(h&&$jscomp.ES6_CONFORMANCE)return h}else if(l())return h;var f="$jscomp_hidden_"+Math.random();x("freeze");x("preventExtensions");x("seal");var b=0,k=function(p){this.id_=(b+=Math.random()+1).toString();if(p){p=$jscomp.makeIterator(p);for(var t;!(t=p.next()).done;)t=t.value,this.set(t[0],t[1])}};k.prototype.set=function(p,t){if(!v(p))throw Error("Invalid WeakMap key");
n(p);if(!$jscomp.owns(p,f))throw Error("WeakMap key fail: "+p);p[f][this.id_]=t;return this};k.prototype.get=function(p){return v(p)&&$jscomp.owns(p,f)?p[f][this.id_]:void 0};k.prototype.has=function(p){return v(p)&&$jscomp.owns(p,f)&&$jscomp.owns(p[f],this.id_)};k.prototype.delete=function(p){return v(p)&&$jscomp.owns(p,f)&&$jscomp.owns(p[f],this.id_)?delete p[f][this.id_]:!1};return k},"es6","es3");$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(h){function l(){if($jscomp.ASSUME_NO_NATIVE_MAP||!h||typeof h!="function"||!h.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),p=new h($jscomp.makeIterator([[k,"s"]]));if(p.get(k)!="s"||p.size!=1||p.get({x:4})||p.set({x:4},"t")!=p||p.size!=2)return!1;var t=p.entries(),y=t.next();if(y.done||y.value[0]!=k||y.value[1]!="s")return!1;y=t.next();return y.done||y.value[0].x!=4||y.value[1]!="t"||!t.next().done?!1:!0}catch(K){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(h&&$jscomp.ES6_CONFORMANCE)return h}else if(l())return h;var r=new WeakMap,v=function(k){this[0]={};this[1]=f();this.size=0;if(k){k=$jscomp.makeIterator(k);for(var p;!(p=k.next()).done;)p=p.value,this.set(p[0],p[1])}};v.prototype.set=function(k,p){k=k===0?0:k;var t=n(this,k);t.list||(t.list=this[0][t.id]=[]);t.entry?t.entry.value=p:(t.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:p},t.list.push(t.entry),this[1].previous.next=
t.entry,this[1].previous=t.entry,this.size++);return this};v.prototype.delete=function(k){k=n(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};v.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};v.prototype.has=function(k){return!!n(this,k).entry};v.prototype.get=function(k){return(k=n(this,k).entry)&&k.value};v.prototype.entries=
function(){return x(this,function(k){return[k.key,k.value]})};v.prototype.keys=function(){return x(this,function(k){return k.key})};v.prototype.values=function(){return x(this,function(k){return k.value})};v.prototype.forEach=function(k,p){for(var t=this.entries(),y;!(y=t.next()).done;)y=y.value,k.call(p,y[1],y[0],this)};v.prototype[Symbol.iterator]=v.prototype.entries;var n=function(k,p){var t=p&&typeof p;t=="object"||t=="function"?r.has(p)?t=r.get(p):(t=""+ ++b,r.set(p,t)):t="p_"+p;var y=k[0][t];
if(y&&$jscomp.owns(k[0],t))for(k=0;k<y.length;k++){var K=y[k];if(p!==p&&K.key!==K.key||p===K.key)return{id:t,list:y,index:k,entry:K}}return{id:t,list:y,index:-1,entry:void 0}},x=function(k,p){var t=k[1];return $jscomp.iteratorPrototype(function(){if(t){for(;t.head!=k[1];)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:p(t)};t=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},b=0;return v},"es6","es3");
$jscomp.polyfill("Promise",function(h){function l(){this.batch_=null}function r(f){return f instanceof n?f:new n(function(b,k){b(f)})}if(h&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof $jscomp.global.PromiseRejectionEvent==="undefined")||!$jscomp.global.Promise||$jscomp.global.Promise.toString().indexOf("[native code]")===-1))return h;l.prototype.asyncExecute=function(f){if(this.batch_==null){this.batch_=[];var b=this;this.asyncExecuteFunction(function(){b.executeBatch_()})}this.batch_.push(f)};
var v=$jscomp.global.setTimeout;l.prototype.asyncExecuteFunction=function(f){v(f,0)};l.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var f=this.batch_;this.batch_=[];for(var b=0;b<f.length;++b){var k=f[b];f[b]=null;try{k()}catch(p){this.asyncThrow_(p)}}}this.batch_=null};l.prototype.asyncThrow_=function(f){this.asyncExecuteFunction(function(){throw f;})};var n=function(f){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var b=this.createResolveAndReject_();
try{f(b.resolve,b.reject)}catch(k){b.reject(k)}};n.prototype.createResolveAndReject_=function(){function f(p){return function(t){k||(k=!0,p.call(b,t))}}var b=this,k=!1;return{resolve:f(this.resolveTo_),reject:f(this.reject_)}};n.prototype.resolveTo_=function(f){if(f===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof n)this.settleSameAsPromise_(f);else{a:switch(typeof f){case "object":var b=f!=null;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(f):
this.fulfill_(f)}};n.prototype.resolveToNonPromiseObj_=function(f){var b=void 0;try{b=f.then}catch(k){this.reject_(k);return}typeof b=="function"?this.settleSameAsThenable_(b,f):this.fulfill_(f)};n.prototype.reject_=function(f){this.settle_(2,f)};n.prototype.fulfill_=function(f){this.settle_(1,f)};n.prototype.settle_=function(f,b){if(this.state_!=0)throw Error("Cannot settle("+f+", "+b+"): Promise already settled in state"+this.state_);this.state_=f;this.result_=b;this.state_===2&&this.scheduleUnhandledRejectionCheck_();
this.executeOnSettledCallbacks_()};n.prototype.scheduleUnhandledRejectionCheck_=function(){var f=this;v(function(){if(f.notifyUnhandledRejection_()){var b=$jscomp.global.console;typeof b!=="undefined"&&b.error(f.result_)}},1)};n.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var f=$jscomp.global.CustomEvent,b=$jscomp.global.Event,k=$jscomp.global.dispatchEvent;if(typeof k==="undefined")return!0;typeof f==="function"?f=new f("unhandledrejection",{cancelable:!0}):
typeof b==="function"?f=new b("unhandledrejection",{cancelable:!0}):(f=$jscomp.global.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.result_;return k(f)};n.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var f=0;f<this.onSettledCallbacks_.length;++f)x.asyncExecute(this.onSettledCallbacks_[f]);this.onSettledCallbacks_=null}};var x=new l;n.prototype.settleSameAsPromise_=function(f){var b=this.createResolveAndReject_();
f.callWhenSettled_(b.resolve,b.reject)};n.prototype.settleSameAsThenable_=function(f,b){var k=this.createResolveAndReject_();try{f.call(b,k.resolve,k.reject)}catch(p){k.reject(p)}};n.prototype.then=function(f,b){function k(K,L){return typeof K=="function"?function(z){try{p(K(z))}catch(C){t(C)}}:L}var p,t,y=new n(function(K,L){p=K;t=L});this.callWhenSettled_(k(f,p),k(b,t));return y};n.prototype.catch=function(f){return this.then(void 0,f)};n.prototype.callWhenSettled_=function(f,b){function k(){switch(p.state_){case 1:f(p.result_);
break;case 2:b(p.result_);break;default:throw Error("Unexpected state: "+p.state_);}}var p=this;this.onSettledCallbacks_==null?x.asyncExecute(k):this.onSettledCallbacks_.push(k);this.isRejectionHandled_=!0};n.resolve=r;n.reject=function(f){return new n(function(b,k){k(f)})};n.race=function(f){return new n(function(b,k){for(var p=$jscomp.makeIterator(f),t=p.next();!t.done;t=p.next())r(t.value).callWhenSettled_(b,k)})};n.all=function(f){var b=$jscomp.makeIterator(f),k=b.next();return k.done?r([]):new n(function(p,
t){function y(z){return function(C){K[z]=C;L--;L==0&&p(K)}}var K=[],L=0;do K.push(void 0),L++,r(k.value).callWhenSettled_(y(K.length-1),t),k=b.next();while(!k.done)})};return n},"es6","es3");$jscomp.polyfill("Object.is",function(h){return h?h:function(l,r){return l===r?l!==0||1/l===1/r:l!==l&&r!==r}},"es6","es3");
$jscomp.polyfill("Array.prototype.includes",function(h){return h?h:function(l,r){var v=this;v instanceof String&&(v=String(v));var n=v.length;r=r||0;for(r<0&&(r=Math.max(r+n,0));r<n;r++){var x=v[r];if(x===l||Object.is(x,l))return!0}return!1}},"es7","es3");
$jscomp.checkStringArgs=function(h,l,r){if(h==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(l instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return h+""};$jscomp.polyfill("String.prototype.includes",function(h){return h?h:function(l,r){return $jscomp.checkStringArgs(this,l,"includes").indexOf(l,r||0)!==-1}},"es6","es3");
$jscomp.polyfill("String.prototype.startsWith",function(h){return h?h:function(l,r){var v=$jscomp.checkStringArgs(this,l,"startsWith");l+="";var n=v.length,x=l.length;r=Math.max(0,Math.min(r|0,v.length));for(var f=0;f<x&&r<n;)if(v[r++]!=l[f++])return!1;return f>=x}},"es6","es3");
(function(h,l){typeof exports==="object"&&typeof module!=="undefined"?module.exports=l():typeof define==="function"&&define.amd?define(l):h.ES6Promise=l()})(this,function(){function h(){return function(){return process.nextTick(x)}}function l(){return typeof Z!=="undefined"?function(){Z(x)}:n()}function r(){var e=0,q=new ca(x),w=document.createTextNode("");q.observe(w,{characterData:!0});return function(){w.data=e=++e%2}}function v(){var e=new MessageChannel;e.port1.onmessage=x;return function(){return e.port2.postMessage(0)}}
function n(){var e=setTimeout;return function(){return e(x,1)}}function x(){for(var e=0;e<S;e+=2)(0,T[e])(T[e+1]),T[e]=void 0,T[e+1]=void 0;S=0}function f(){try{var e=require("vertx");Z=e.runOnLoop||e.runOnContext;return l()}catch(q){return n()}}function b(e,q){var w=arguments,A=this,E=new this.constructor(p);E[a]===void 0&&U(E);var H=A._state;H?function(){var R=w[H-1];V(function(){return P(H,E,R,A._result)})}():I(A,E,e,q);return E}function k(e){if(e&&typeof e==="object"&&e.constructor===this)return e;
var q=new this(p);C(q,e);return q}function p(){}function t(e){try{return e.then}catch(q){return m.error=q,m}}function y(e,q,w,A){try{e.call(q,w,A)}catch(E){return E}}function K(e,q,w){V(function(A){var E=!1,H=y(w,q,function(R){E||(E=!0,q!==R?C(A,R):G(A,R))},function(R){E||(E=!0,B(A,R))},"Settle: "+(A._label||" unknown promise"));!E&&H&&(E=!0,B(A,H))},e)}function L(e,q){q._state===g?G(e,q._result):q._state===d?B(e,q._result):I(q,void 0,function(w){return C(e,w)},function(w){return B(e,w)})}function z(e,
q,w){q.constructor===e.constructor&&w===b&&q.constructor.resolve===k?L(e,q):w===m?(B(e,m.error),m.error=null):w===void 0?G(e,q):typeof w==="function"?K(e,q,w):G(e,q)}function C(e,q){if(e===q)B(e,new TypeError("You cannot resolve a promise with itself"));else{var w=typeof q;q===null||w!=="object"&&w!=="function"?G(e,q):z(e,q,t(q))}}function D(e){e._onerror&&e._onerror(e._result);Q(e)}function G(e,q){e._state===c&&(e._result=q,e._state=g,e._subscribers.length!==0&&V(Q,e))}function B(e,q){e._state===
c&&(e._state=d,e._result=q,V(D,e))}function I(e,q,w,A){var E=e._subscribers,H=E.length;e._onerror=null;E[H]=q;E[H+g]=w;E[H+d]=A;H===0&&e._state&&V(Q,e)}function Q(e){var q=e._subscribers,w=e._state;if(q.length!==0){for(var A,E,H=e._result,R=0;R<q.length;R+=3)A=q[R],E=q[R+w],A?P(w,A,E,H):E(H);e._subscribers.length=0}}function J(){this.error=null}function P(e,q,w,A){var E=typeof w==="function",H=void 0,R=void 0,ea=void 0,fa=void 0;if(E){try{H=w(A)}catch(ha){u.error=ha,H=u}H===u?(fa=!0,R=H.error,H.error=
null):ea=!0;if(q===H){B(q,new TypeError("A promises callback cannot return that same promise."));return}}else H=A,ea=!0;q._state===c&&(E&&ea?C(q,H):fa?B(q,R):e===g?G(q,H):e===d&&B(q,H))}function N(e,q){try{q(function(w){C(e,w)},function(w){B(e,w)})}catch(w){B(e,w)}}function U(e){e[a]=F++;e._state=void 0;e._result=void 0;e._subscribers=[]}function W(e,q){this._instanceConstructor=e;this.promise=new e(p);this.promise[a]||U(this.promise);ba(q)?(this._remaining=this.length=q.length,this._result=Array(this.length),
this.length===0?G(this.promise,this._result):(this.length=this.length||0,this._enumerate(q),this._remaining===0&&G(this.promise,this._result))):B(this.promise,Error("Array Methods must be provided an Array"))}function M(e){this[a]=F++;this._result=this._state=void 0;this._subscribers=[];if(p!==e){if(typeof e!=="function")throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(this instanceof M)N(this,e);else throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
}}var X=void 0,ba=X=Array.isArray?Array.isArray:function(e){return Object.prototype.toString.call(e)==="[object Array]"},S=0,Z=void 0,aa=void 0,V=function(e,q){T[S]=e;T[S+1]=q;S+=2;S===2&&(aa?aa(x):da())},O=(X=typeof window!=="undefined"?window:void 0)||{},ca=O.MutationObserver||O.WebKitMutationObserver;O=typeof self==="undefined"&&typeof process!=="undefined"&&{}.toString.call(process)==="[object process]";var Y=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!==
"undefined",T=Array(1E3),da=void 0;da=O?h():ca?r():Y?v():X===void 0&&typeof require==="function"?f():n();var a=Math.random().toString(36).substring(16),c=void 0,g=1,d=2,m=new J,u=new J,F=0;W.prototype._enumerate=function(e){for(var q=0;this._state===c&&q<e.length;q++)this._eachEntry(e[q],q)};W.prototype._eachEntry=function(e,q){var w=this._instanceConstructor,A=w.resolve;A===k?(A=t(e),A===b&&e._state!==c?this._settledAt(e._state,q,e._result):typeof A!=="function"?(this._remaining--,this._result[q]=
e):w===M?(w=new w(p),z(w,e,A),this._willSettleAt(w,q)):this._willSettleAt(new w(function(E){return E(e)}),q)):this._willSettleAt(A(e),q)};W.prototype._settledAt=function(e,q,w){var A=this.promise;A._state===c&&(this._remaining--,e===d?B(A,w):this._result[q]=w);this._remaining===0&&G(A,this._result)};W.prototype._willSettleAt=function(e,q){var w=this;I(e,void 0,function(A){return w._settledAt(g,q,A)},function(A){return w._settledAt(d,q,A)})};M.all=function(e){return(new W(this,e)).promise};M.race=
function(e){var q=this;return ba(e)?new q(function(w,A){for(var E=e.length,H=0;H<E;H++)q.resolve(e[H]).then(w,A)}):new q(function(w,A){return A(new TypeError("You must pass an array to race."))})};M.resolve=k;M.reject=function(e){var q=new this(p);B(q,e);return q};M._setScheduler=function(e){aa=e};M._setAsap=function(e){V=e};M._asap=V;M.prototype={constructor:M,then:b,"catch":function(e){return this.then(null,e)}};M.polyfill=function(){var e=void 0;if(typeof global!=="undefined")e=global;else if(typeof self!==
"undefined")e=self;else try{e=Function("return this")()}catch(A){throw Error("polyfill failed because global object is unavailable in this environment");}var q=e.Promise;if(q){var w=null;try{w=Object.prototype.toString.call(q.resolve())}catch(A){}if(w==="[object Promise]"&&!q.cast)return}e.Promise=M};M.Promise=M;M.polyfill();return M});
var fcdsc=function(){function h(){return new Promise(function(a,c){b("trackVisit");if(Y)b("DST not tracking because visitor has opted out of tracking, exiting.");else if(T)b("This page visit has already been tracked, exiting.");else{var g=new v;g.load(window.location.href);var d=z("_fcdscv");if(!g.hasUtmData()){if(d){b("No UTM data in URL and cookie exists, exiting.");return}g.UtmSource="internal"}var m=new x;T=!0;d?(m.load(d),m.addVisit(g),m.save().then(function(u){b("Success! "+u.Message);m.resetAndSaveToCookie();
a(u.Message)},function(u){b("Failed!",u);T=!1;c(u)})):(b("getVisitorId"),L("https://st.fullcircleinsights.com/v1/visitors/create",JSON.stringify({CustomerId:"1309a468-744d-4141-b0b1-3846b20241ff"})).then(function(u){u=JSON.parse(u.Message);b("VisitorId:"+u.VisitorId);m.Visitor=new n(null,u.VisitorId);m.saveToCookie();m.addVisit(g);m.save().then(function(F){b("Success! "+F.Message);m.resetAndSaveToCookie();a(F.Message)},function(F){b("Failed!",F);T=!1;c(F)})},function(u){console.error("Failed!",u);u="Error creating new visitor. "+
u+" Response: "+aa+" Page: "+window.location.pathname;m.DiagnosticMessage=u;b(u);T=!1;p(m)}))}})}function l(a){return new Promise(function(c,g){b("m_trackFormFill");if(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))if(Y)b("DST not tracking because visitor has opted out of tracking, exiting.");else{var d=new x;if(B()){var m="trackFormFill cannot save because DoNotTrack is enabled";d.DiagnosticMessage=m;b(m);k(d,c,g)}else(m=z("_fcdscv"))?(d.load(m),d.Visitor.ExternalVisitorId?(d.Visitor=new n(a,d.Visitor.ExternalVisitorId),
d.Activities.push(new f("Form",a)),b("m_trackFormFill::vi: "+d.toString()),d.convert().then(function(u){b("m_trackFormFill::vi.convert response::"+u.Message);d.resetAndSaveToCookie();O="";D("_fcdsctmp","","");c(u.Message)},function(u){b("m_trackFormFill::vi.convert error::",u);g(u)})):(m="trackFormFill cannot save because there is no visitor id",d.DiagnosticMessage=m,b(m),k(d,c,g))):(m="trackFormFill cannot save because cookie does not exist or value is blank. Page: "+window.location.pathname,d.DiagnosticMessage=
m,b(m),k(d,c,g))}else b("Invalid email")})}function r(a){if(!a)return!1;for(var c="cloudera.com".toString().split(","),g=0;g<c.length;g++)if(a.includes(c[g]))return!0;return!1}function v(){this.SessionStartTime=this.ReferrerPageRaw=this.ReferrerPage=this.UtmContent=this.UtmTerm=this.UtmCampaign=this.UtmMedium=this.UtmSource=this.UrlRaw=this.UrlPath=this.Email=this.Origin=this.VisitDateTime=null;this.load=function(a){this.VisitDateTime=y(new Date);this.SessionStartTime=t();this.UrlPath=
encodeURIComponent(window.location.pathname);this.Origin=encodeURIComponent(window.location.hostname);this.UrlRaw=encodeURIComponent(window.location);a=a.split("?");if(a.length>1){a=a[1].split("&");for(var c=0;c<a.length;c++){var g=a[c].split("=");g[0]=="utm_source"?this.UtmSource=g[1]:g[0]=="utm_medium"?this.UtmMedium=g[1]:g[0]=="utm_campaign"?this.UtmCampaign=g[1]:g[0]=="utm_term"?this.UtmTerm=g[1]:g[0]=="utm_content"&&(this.UtmContent=g[1])}}if(document.referrer){if(c=document.referrer,a=encodeURIComponent(c),
a.length>255&&(a=a.substring(0,255),a=a.replace(/%[0-9A-Fa-f]?$/,"")),this.ReferrerPageRaw=a,a=document.createElement("a"),a.href=c,a=a.hostname,g=encodeURIComponent(a),g.length>255&&(g=g.substring(0,255),g=g.replace(/%[0-9A-Fa-f]?$/,"")),this.ReferrerPage=g,!this.hasUtmData()){c=c.split("?");if(c.length>1)for(g=c[1].split("&"),c=0;c<g.length;c++){var d=g[c].split("=");if(d[0]=="q"&&a.startsWith("www.bing.")){this.UtmTerm=d[1];break}}c=(0,$jscomp.makeIterator)(da);for(g=c.next();!g.done;g=c.next())if(d=
(0,$jscomp.makeIterator)(g.value),g=d.next().value,d=d.next().value,a.includes(g)){this.UtmSource=d;this.UtmMedium="organic";break}a.startsWith("www.facebook.")?(this.UtmSource="facebook",this.UtmMedium="social"):a.startsWith("www.linkedin.")||a.startsWith("www.lnkd.")?(this.UtmSource="linkedin",this.UtmMedium="social"):a.startsWith("x.com")||a.startsWith("www.x.com")||a.startsWith("www.twitter.")||a.startsWith("t.co")?(this.UtmSource="twitter",this.UtmMedium="social"):r(a)||this.UtmMedium=="organic"||
(this.UtmMedium="referral")}}else this.hasUtmData()||(this.UtmSource="direct")};this.loadFromJSON=function(a){this.VisitDateTime=a.VisitDateTime;this.UrlPath=a.UrlPath;this.Origin=a.Origin;this.UrlRaw=a.UrlRaw;this.Email=a.Email;this.UtmSource=a.UtmSource;this.UtmMedium=a.UtmMedium;this.UtmCampaign=a.UtmCampaign;this.UtmTerm=a.UtmTerm;this.UtmContent=a.UtmContent;this.ReferrerPage=a.ReferrerPage;this.ReferrerPageRaw=a.ReferrerPageRaw};this.equals=function(a){return this.UtmSource==a.UtmSource&&this.UtmMedium==
a.UtmMedium&&this.UtmCampaign==a.UtmCampaign&&this.UtmTerm==a.UtmTerm&&this.UtmContent==a.UtmContent};this.hasUtmData=function(){return this.UtmSource!==null||this.UtmMedium!==null||this.UtmCampaign!==null||this.UtmTerm!==null||this.UtmContent!==null}}function n(a,c){this.Email=a;this.ExternalVisitorId=c}function x(){this.CustomerId="1309a468-744d-4141-b0b1-3846b20241ff";this.Visitor=null;this.Visits=[];this.Activities=[];this.DiagnosticMessage=null;this.load=function(a){a=JSON.parse(a);this.CustomerId=a.CustomerId;
this.Visitor=a.Visitor;this.Activities=a.Activities;this.DiagnosticMessage=a.DiagnosticMessage;for(var c=0;c<a.Visits.length;c++){var g=new v;g.loadFromJSON(a.Visits[c]);this.Visits.push(g)}};this.addActivity=function(a){this.Activities.push(a)};this.addVisit=function(a){if(this.Visits.length!==0)for(var c=0;c<this.Visits.length;c++)if(this.Visits[c].equals(a))return;this.Visits.push(a)};this.save=function(){return L("https://st.fullcircleinsights.com/v1/visits/queue",JSON.stringify(this))};this.convert=function(){return L("https://st.fullcircleinsights.com/v1/visits/convert",
JSON.stringify(this))};this.toString=function(){return JSON.stringify(this)};this.encode=function(){return window.btoa(this.toString())};this.saveToCookie=function(){b("VisitInfo::saveToCookie");var a=this.toString();D("_fcdscv",a,730);b("VisitInfo::saveToCookie::vi: "+a)};this.reset=function(){b("VisitInfo::reset");this.Visits=[];this.Activities=[]};this.resetAndSaveToCookie=function(){b("VisitInfo::resetAndSaveToCookie");this.Visits=[];this.Activities=[];this.saveToCookie()};this.updateVisitsAfterForm=
function(a){b("VisitInfo::updateVisitsAfterForm");this.Visits.length!==0&&(this.Visits[this.Visits.length-1].Email=a)}}function f(a,c){this.ActivityDateTime=y(new Date);this.Type=a;this.UrlPath=encodeURIComponent(window.location.pathname);this.Email=c}function b(a){X&&console.log("FCDSC v1.0.62("+window.location.hostname+"): "+a)}function k(a,c,g){a.save().then(function(d){b("sendDiagnostic::vi.save response::"+d.Message);c(d.Message)},function(d){b("sendDiagnostic::vi.save error::",d);g(d)})}function p(a){a.save().then(function(c){b("sendDiagnostic::vi.save response::"+
c.Message)},function(c){b("sendDiagnostic::vi.save error::",c)})}function t(){b("getSessionStartTime");var a=C("_fcdscst");if(!a)return b("Visit::getSessionStartTime: session cookie not found, using current date/time for SessionStartTime"),y(new Date);a=new Date(parseInt(a));return isNaN(a.getUTCFullYear())?(b("Visit::getSessionStartTime: invalid value found in session cookie, using current date/time for SessionStartTime"),y(new Date)):y(a)}function y(a){var c=a.getUTCFullYear().toString()+"-",g=
(a.getUTCMonth()+1).toString();g.length==1&&(g="0"+g);var d=a.getUTCDate().toString();d.length==1&&(d="0"+d);var m=a.getUTCHours().toString();m.length==1&&(m="0"+m);var u=a.getUTCMinutes().toString();u.length==1&&(u="0"+u);a=a.getUTCSeconds().toString();a.length==1&&(a="0"+a);return c+(g+"-"+d+" "+m+":"+u+":"+a)}function K(a,c){return new Promise(function(g,d){function m(){var F=new XMLHttpRequest;F.open("POST",a);F.setRequestHeader("x-api-key","XsNwZ2XBXi7e5ZRrPHHap494L5ClnseQ89q4E0VO");F.setRequestHeader("origin-fci",
window.location.origin);F.setRequestHeader("js-version","1.0.62");F.onload=function(){b("post::Status: "+F.status);F.status==200?F.response==""||typeof F.response==="undefined"?d(Error("Empty response. User agent: "+navigator.userAgent)):g(F.response):d(Error(F.statusText))};F.onerror=function(){u<5?(u++,m()):(aa=F.response,d(Error("Network errors. Origin: "+self.origin+" User agent: "+navigator.userAgent)))};F.send(c)}b("post");var u=0;m()})}function L(a,c){return K(a,c).then(function(g){aa=g;return JSON.parse(g)})}
function z(a){a+="=";for(var c=decodeURIComponent(document.cookie).split(";"),g=0;g<c.length;g++){for(var d=c[g];d.charAt(0)==" ";)d=d.substring(1);if(d.indexOf(a)===0)return window.atob(d.substring(a.length,d.length))}return""}function C(a){a+="=";for(var c=decodeURIComponent(document.cookie).split(";"),g=0;g<c.length;g++){for(var d=c[g];d.charAt(0)==" ";)d=d.substring(1);if(d.indexOf(a)===0){a=d.substring(a.length,d.length);try{return a=window.atob(a)}catch(m){return a}}}return""}function D(a,c,
g){var d=new Date;d.setTime(d.getTime()+g*24*60*60*1E3);g="expires="+d.toUTCString();document.cookie=a+"="+window.btoa(c)+";"+g+";domain=plooto.com;path=/;SameSite=Lax"}function G(a,c){document.cookie=a+"="+window.btoa(c)+";domain=plooto.com;path=/;SameSite=Lax"}function B(){if(!V||V=="false")return!1;var a=window.doNotTrack||window.navigator.doNotTrack||window.navigator.msDoNotTrack;return a?a.charAt(0)==="1"||a==="yes"?(b("DoNotTrack is enabled, exiting"),!0):!1:!1}function I(){b("getForms");
for(var a=document.getElementsByTagName("form"),c=0;c<a.length;c++){b("form: "+a[c].id);var g=!ca||ca=="false";if(a[c].classList&&a[c].classList.contains("fcidstform"))if(document.getElementById(S)&&a[c].contains(document.getElementById(S)))document.getElementById(S).addEventListener("change",fcdsc.handleEmailFieldChange);else if(a[c].getElementsByTagName("input").length>0&&a[c].getElementsByTagName("input")[S])a[c].getElementsByTagName("input")[S].addEventListener("change",fcdsc.handleEmailFieldChange);
else for(var d=a[c].getElementsByTagName("input"),m=0;m<d.length;m++)if(d[m].type==S){d[m].value&&(O=d[m].value);d[m].addEventListener("change",fcdsc.handleEmailFieldChange);break}(a[c].className==="elq-form"||a[c].action&&typeof a[c].action==="string"&&a[c].action.includes("eloqua")||a[c].className.includes("eloqua-form")||a[c].className.includes("elq-form"))&&g&&(Z=!1,a[c].addEventListener("submit",fcdsc.handleSubmit,!1));if(a[c].id==="pardot-form")for(m=0;m<a[c].childNodes.length;m++)if(a[c].childNodes[m].classList&&
(a[c].childNodes[m].classList.contains("form-field")||a[c].childNodes[m].classList.contains("form-group"))&&a[c].childNodes[m].classList.contains("email"))for(var u=0;u<a[c].childNodes[m].childNodes.length;u++)if(a[c].childNodes[m].childNodes[u].nodeName.toLowerCase()=="input"){a[c].childNodes[m].childNodes[u].value&&g&&(O=a[c].childNodes[m].childNodes[u].value,a[c].addEventListener("submit",fcdsc.handleSubmit,!1));b("adding change event listener to email field id: "+a[c].childNodes[m].childNodes[u].id);
a[c].childNodes[m].childNodes[u].addEventListener("change",fcdsc.handleEmailFieldChange);break}if(a[c].className==="elq-form"||a[c].action&&typeof a[c].action==="string"&&a[c].action.includes("eloqua")||a[c].className.includes("eloqua-form")||a[c].className.includes("elq-form"))for(d=a[c].getElementsByTagName("input"),m=0;m<d.length;m++)if(d[m].name=="emailAddress"||d[m].name=="cEmail"){d[m].value&&(O=d[m].value);b("adding change event listener to email field id: "+d[m].id);d[m].addEventListener("change",
fcdsc.handleEmailFieldChange);break}if(a.item(c).classList&&(a.item(c).classList.contains("mktoForm")||a.item(c).classList.contains("marketo-form")||a.item(c).classList.contains("marketo")))for(b("reached mktoForm block"),d=a[c].getElementsByTagName("input"),m=0;m<d.length;m++)if(d[m].id.startsWith("Email")||d[m].name.startsWith("Email")||d[m].classList&&d[m].classList.contains("mktoEmailField")){d[m].value&&(b("prefilledEmail: "+d[m].value),O=d[m].value);b("adding change event listener to Marketo email field");
d[m].addEventListener("change",fcdsc.handleEmailFieldChange);break}if(a[c].id&&typeof a[c].id==="string"&&a[c].id.indexOf("gform")===0)for(d=a[c].getElementsByTagName("input"),m=0;m<d.length;m++)d[m].parentElement.classList.contains("ginput_container_email")&&(d[m].value&&(O=d[m].value),b("adding change event listener to email field id: "+d[m].id),d[m].addEventListener("change",fcdsc.handleEmailFieldChange))}a=document.getElementsByClassName("pardot-form");for(c=0;c<a.length;c++){var F=a[c].getElementsByTagName("form");
for(m=0;m<F.length;m++)for(d=F[m].getElementsByTagName("input"),u=0;u<d.length;u++)d[u].name.includes("email")&&(d[u].value&&g&&(O=d[u].value,F[m].addEventListener("submit",fcdsc.handleSubmit,!1)),b("adding change event listener to Pardot email field"),d[u].addEventListener("change",fcdsc.handleEmailFieldChange))}g=document.getElementsByClassName("cta-form");for(c=0;c<g.length;c++)for(d=g[c].getElementsByTagName("form"),m=0;m<d.length;m++)if(u=d[m].querySelector("[data-mapping='email']"))u.value&&
(O=u.value),b("adding change event listener to Uberflip email field"),u.addEventListener("change",fcdsc.handleEmailFieldChange)}function Q(a){b("m_handleSubmit");var c=null,g=a.currentTarget;try{a.preventDefault();b("form id: "+g.id);if(O)c=O;else{if(g.id==="pardot-form")for(var d=0;d<g.childNodes.length;d++)if(g.childNodes[d].classList&&g.childNodes[d].classList.contains("form-field")&&g.childNodes[d].classList.contains("email"))for(a=0;a<g.childNodes[d].childNodes.length;a++)if(g.childNodes[d].childNodes[a].nodeName.toLowerCase()==
"input"){var m=g.childNodes[d].childNodes[a].id;b("email field id: "+m);c=g.elements.namedItem(m).value;break}if(g.className==="elq-form"||g.action&&typeof g.action==="string"&&g.action.includes("eloqua")||g.className.includes("eloqua-form")||g.className.includes("elq-form")){var u=g.getElementsByTagName("input");for(d=0;d<u.length;d++)if(u[d].name=="emailAddress"||u[d].name=="cEmail"){b("email field id: "+u[d].id);c=u[d].value;break}}if(g.id&&typeof g.id==="string"&&g.id.indexOf("gform")===0){u=
g.getElementsByTagName("input");for(d=0;d<u.length;d++)if(u[d].parentElement.classList.contains("ginput_container_email")){b("email field id: "+u[d].id);b("email field value: "+u[d].value);c=u[d].value;break}if(c){setTimeout(function(){l(c)},500);g.submit();return}}g.classList.contains("fcidstform")&&document.getElementById("email")&&g.contains(document.getElementById("email"))&&(c=document.getElementById("email").value)}c?Z?setTimeout(function(){l(c)},500):window==window.top?N(c):parent.postMessage('{ "sender" : "fcdsc", "type": "setuppendingsave", "email" : "'+
c+'"}',"*"):b("could not find email field/value");g.submit()}catch(F){g.submit()}}function J(a){b("m_handleSubmitHS");var c=null,g=null;if(a=a.target.tagName.toLowerCase()==="form"?a.target:a.target.form){for(var d=0;d<a.elements.length;d++)a.elements[d].name&&a.elements[d].name.toLowerCase()==="email"&&(c=a.elements[d].value),a.elements[d].name&&a.elements[d].name.toLowerCase()==="hs_context"&&(g=JSON.parse(a.elements[d].value));c?g?g.redirectUrl||g.originalEmbedContext&&g.originalEmbedContext.redirectUrl||
!Z?N(c):setTimeout(function(){l(c)},500):b("could not find hs_context"):b("could not find email field/value")}else b("could not find form element for this event")}function P(){b("m_checkForPendingSave");if(window==window.top){var a=z("_fcdsctmp");b("email: "+a);a?(D("_fcdsctmp","",""),l(a)):b("email cookie _fcdsctmp not present, exiting")}else parent.postMessage('{ "sender" : "fcdsc", "type": "checkforpendingsave" }',"*")}function N(a){b("m_setupPendingSave");Y?b("DST not tracking because visitor has opted out of tracking, exiting."):
D("_fcdsctmp",a,1)}function U(a){b("m_setupPendingMultiSave");Y?b("DST not tracking because visitor has opted out of tracking, exiting."):D("_fcdscms",a,1)}function W(a,c){try{b("m_handleSubmitMkto");if(!O)return b("prefilledEmail variable is blank, so trackFormFill must have already been called. Exiting"),!0;b("values: "+JSON.stringify(a));b("followUpUrl: "+c);c=O;a&&a.Email&&(c=a.Email);b("email: "+c);l(c).then(function(g){b("m_handleSubmitMkto success");return!0},function(g){b("m_handleSubmitMkto error");
return!0})}catch(g){}return!0}function M(a){b("m_addMutationObservers");a&&typeof a==="string"&&(ba=a);if(ba!=="NO_DYNAMIC_NODES"){var c=ba.toString().split(",");a=new MutationObserver(function(m){m=(0,$jscomp.makeIterator)(m);for(var u=m.next();!u.done;u=m.next())u.value.type==="childList"&&fcdsc.getForms()});var g={attributes:!1,childList:!0,subtree:!0};if(c.length>0){var d=null;c=(0,$jscomp.makeIterator)(c);for(d=c.next();!d.done;d=c.next()){d=d.value;if(d==="FCI-ALL"){document.body?(b("adding mutation observer to body"),
a.observe(document.body,g)):b("cannot add mutation observer to body because it has not rendered yet");break}d=document.getElementById(d);d!=null&&a.observe(d,g)}}}}var X=false,ba="NO_DYNAMIC_NODES",S="email",Z=!0,aa="placeholder",V=true,O="",ca=false,Y=!1,T=!1,da=new Map([["bing.","bing"],["yahoo.","yahoo"],["duckduckgo.","duckduckgo"],["ecosia.","ecosia"],["startpage.","startpage"],["qwant.","qwant"],["search.brave.",
"brave"],["yandex.","yandex"],["baidu.","baidu"],["search.naver.","naver"],["seznam.cz","seznam"],["swisscows.","swisscows"],["mojeek.","mojeek"],["metager.de","metager"],["search.aol.","aol"],["chat.openai.","chatgpt"],["chatgpt.","chatgpt"],["perplexity.ai","perplexityai"],["gemini.google.","gemini"],["google.","google"],["copilot.microsoft.","copilot"],["you.","you"]]);return{init:function(){var a=void 0;a=window.location.href;var c="l".replace(/[\[\]]/g,"\\$&");c=(new RegExp("[?&]"+c+"(=([^&#]*)|&|#|$)")).exec(a);
(c?c[2]?decodeURIComponent(c[2].replace(/\+/g," ")):"":null)==="fcidevqa"&&(X=!0);Y||C("_fcdscblock")?(b("DST not tracking because visitor has opted out of tracking."),Y=!0):(a=C("_fcdscst"),c=new Date,a?(a=new Date(parseInt(a)),a.setMinutes(a.getMinutes()+parseInt("60"))<c&&G("_fcdscst",c.getTime().toString())):G("_fcdscst",c.getTime().toString()))},isValidOrigin:function(a){return r(a)},trackVisit:function(){return h()},getForms:function(){I()},handleSubmit:function(a){Q(a)},
handleSubmitHS:function(a){J(a)},handleEmailFieldChange:function(a){b("m_handleEmailFieldChange");a=a.target.value;b("email: "+a);/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a)?(window==window.top?N(a):parent.postMessage('{ "sender" : "fcdsc", "type": "setuppendingsave", "email" : "'+a+'"}',"*"),l(a)):b("Invalid email")},setEmailFieldId:function(a){b("m_setEmailFieldId");a&&(S=a)},setNoRedirect:function(a){b("m_setNoRedirect");typeof a=="boolean"&&(Z=a)},handleSubmitMkto:function(a,c){return W(a,c)},receiveMessage:function(a){b("m_receiveMessage");
b("event.data: "+a.data);b("event.origin: "+a.origin);if(typeof a.data=="string")try{var c=JSON.parse(a.data);if(a.data.includes("pageId")){var g=a.data;b("m_handleSubmitUnbounce");var d=g.split("&");g=null;for(var m=0;m<d.length;m++){var u=d[m].split("=");u[0].replace(/['"]+/g,"")=="pageId"&&(g=u[1])}if(g){var F=document.getElementsByName("pageId");if(F[0].value==g){var e=F[0].parentElement,q=document.getElementById("email");if(e.contains(q)===!1)b("email element is not part of correct form");else if(q.nodeName.toLowerCase()!=
"input")b("email element is not input, exiting");else{var w=q.value;w?N(w):b("could not find email field/value")}}}}a.data.includes("mktoReady")&&c.mktoReady&&I();if(c.sender&&c.sender==="fcdsc"){var A=c.type.toLowerCase();A==="trackformfill"&&l(c.email);A==="setuppendingsave"&&N(c.email);A==="setuppendingmultisave"&&U(c.email);A==="checkforpendingsave"&&P()}}catch(E){b("error in m_receiveMessage: "+E)}},checkForPendingSave:function(){P()},setupPendingSave:function(a){N(a)},setupPendingMultiSave:function(a){U(a)},
trackFormFill:function(a){return l(a)},log:function(a){b(a)},addMutationObservers:function(a){M(a)},isDoNotTrackEnabled:function(){return B()},hasPrefilledEmail:function(){var a=O?!0:!1;return a},trackingOptIn:function(){b("m_trackingOptIn");Y=!1;C("_fcdscblock")&&D("_fcdscblock","",-1);fcdscLoad()},trackingOptOut:function(a){b("m_trackingOptOut");Y=!0;z("_fcdscv")&&D("_fcdscv","",-1);z("_fcdsctmp")&&D("_fcdsctmp","",-1);z("_fcdscms")&&D("_fcdscms","",-1);C("_fcdscst")&&D("_fcdscst","",-1);T=!1;a&&
G("_fcdscblock","1")}}}();
function fcdscLoad(){fcdsc.init();if(fcdsc.isValidOrigin(window.location.hostname)){fcdsc.getForms();fcdsc.checkForPendingSave();fcdsc.addMutationObservers();window==window.top&&(typeof MktoForms2!=="undefined"&&fcdsc.hasPrefilledEmail()&&MktoForms2.whenReady(function(l){l.onSuccess(fcdsc.handleSubmitMkto)}),window.addEventListener("message",fcdsc.receiveMessage,!1),window.addEventListener("hsvalidatedsubmit",fcdsc.handleSubmitHS,!1),fcdsc.isDoNotTrackEnabled()||fcdsc.trackVisit());var h=new CustomEvent("fcdscOnLoad");
window.dispatchEvent(h)}else console.log("FCDSC: not a valid origin, exiting")}window.addEventListener?window.addEventListener("load",fcdscLoad,!1):window.attachEvent&&window.attachEvent("onload",fcdscLoad);typeof MktoForms2!=="undefined"&&window==window.top&&MktoForms2.whenReady(fcdscLoad);String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(h,l){pos=l>0?l|0:0;return this.substring(pos,pos+h.length)===h}});
String.prototype.includes||(String.prototype.includes=function(h,l){typeof l!=="number"&&(l=0);return l+h.length>this.length?!1:this.indexOf(h,l)!==-1});"".trim||(String.prototype.trim=function(){return this.replace(/^[\s\ufeff]+|[\s\ufeff]+$/g,"")});
(function(h){h.DOMException||((DOMException=function(n){this.message=n}).prototype=Error());var l=/[\11\12\14\15\40]/,r=0,v=function(n,x){if(x==="")throw new DOMException("Failed to execute '"+n+"' on 'DOMTokenList': The token provided must not be empty.");if((r=x.search(l))!==-1)throw new DOMException("Failed to execute '"+n+"' on 'DOMTokenList': The token provided ('"+x[r]+"') contains HTML space characters, which are not valid in tokens.");};typeof DOMTokenList!=="function"&&function(n){function x(){if(!K)throw TypeError("Illegal constructor");
}function f(){var z=n.event,C=z.propertyName;if(!L&&(C==="className"||C==="classList"&&!y)){z=z.srcElement;var D=z[" uCLp"],G=""+z[C],B=G.trim().split(l),I=z[C==="classList"?" uCL":"classList"],Q=D.length,J=0,P=D.length=B.length;D=0;a:for(;J!==P;++J){for(var N=0;N!==J;++N)if(B[N]===B[J]){D++;continue a}I[J-D]=B[J]}for(J=P-D;J<Q;++J)delete I[J];C==="classList"&&(L=1,z.classList=I,z.className=G,L=0,I.length=B.length-D)}}function b(z){if(!(z&&"innerHTML"in z))throw TypeError("Illegal invocation");z.detachEvent("onpropertychange",
f);K=1;try{(function(){}).prototype=new x}finally{K=0}var C=protoObj.prototype,D=new protoObj,G=z.className.trim().split(l),B=0,I=G.length,Q=0;a:for(;B!==I;++B){for(var J=0;J!==B;++J)if(G[J]===G[B]){Q++;continue a}this[B-Q]=G[B]}C.length=I-Q;C.value=z.className;C[" uCL"]=z;y?(y(z,"classList",{enumerable:1,get:function(){return D},configurable:0,set:function(P){L=1;z.className=C.value=P+="";L=0;var N=P.trim().split(l);P=C.length;var U=0,W=C.length=N.length,M=0;a:for(;U!==W;++U){for(var X=0;X!==U;++X)if(N[X]===
N[U]){M++;continue a}D[U-M]=N[U]}for(N=W-M;N<P;++N)delete D[N]}}),y(z," uCLp",{enumerable:0,configurable:0,writeable:0,value:protoObj.prototype}),y(C," uCL",{enumerable:0,configurable:0,writeable:0,value:z})):(z.classList=D,z[" uCL"]=D,z[" uCLp"]=protoObj.prototype);z.attachEvent("onpropertychange",f)}var k=n.document,p=n.Object,t=p.prototype.hasOwnProperty,y=p.defineProperty,K=0,L=0;x.prototype.toString=x.prototype.toLocaleString=function(){return this.value};x.prototype.add=function(){var z=0,C=
arguments.length,D=this[" uCL"],G=D[" uCLp"];a:for(;z!==C;++z){var B=arguments[z]+"";v("add",B);for(var I=0,Q=G.length,J=B;I!==Q;++I)if(this[I]===B)continue a;else J+=" "+this[I];this[Q]=B;G.length+=1;G.value=J}L=1;D.className=G.value;L=0};x.prototype.remove=function(){for(var z=0,C=arguments.length,D,G=this[" uCL"],B=G[" uCLp"];z!==C;++z){D=arguments[z]+"";v("remove",D);for(var I=0,Q=B.length,J="",P=0;I!==Q;++I)P?this[I-1]=this[I]:this[I]!==D?J+=this[I]+" ":P=1;P&&(delete this[Q],--B.length,B.value=
J)}L=1;G.className=B.value;L=0};n.DOMTokenList=x;try{n.Object.defineProperty(n.Element.prototype,"classList",{enumerable:1,get:function(z){t.call(this,"classList")||b(this);return this.classList},configurable:0,set:function(z){this.className=z}})}catch(z){n[" uCL"]=b,k.documentElement.firstChild.appendChild(k.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(h);
(function(n,x){n.item||(n.item=function(f){f=this[f];return f===void 0?null:f});n.toggle&&x.toggle("a",0)===!1||(n.toggle=function(f){if(arguments.length>1)return this[arguments[1]?"add":"remove"](f),!!arguments[1];var b=this.value;return this.remove(b),b===this.value&&(this.add(f),!0)});n.replace&&typeof x.replace("a","b")==="boolean"||(n.replace=function(f,b){v("replace",f);v("replace",b);var k=this.value;return this.remove(f),this.value!==k&&(this.add(b),!0)});n.contains||(n.contains=function(f){for(var b=
0,k=this.length;b!==k;++b)if(this[b]===f)return!0;return!1});n.forEach||(n.forEach=function(f){if(arguments.length===1)for(var b=0,k=this.length;b!==k;++b)f(this[b],b,this);else{b=0;k=this.length;for(var p=arguments[1];b!==k;++b)f.call(p,this[b],b,this)}});n.entries||(n.entries=function(){var f=0,b=this;return{next:function(){return f<b.length?{value:[f,b[f++]],done:!1}:{done:!0}}}});n.values||(n.values=function(){var f=0,b=this;return{next:function(){return f<b.length?{value:b[f++],done:!1}:{done:!0}}}});
n.keys||(n.keys=function(){var f=0,b=this;return{next:function(){return f<b.length?{value:f++,done:!1}:{done:!0}}}})})(h.DOMTokenList.prototype,h.document.createElement("div").classList)})(window);(function(){if(typeof window.CustomEvent==="function")return!1;window.CustomEvent=function(h,l){l=l||{bubbles:!1,cancelable:!1,detail:null};var r=document.createEvent("CustomEvent");r.initCustomEvent(h,l.bubbles,l.cancelable,l.detail);return r}})();fcdscLoad();
