!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=5)}([function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Unknown=0]="Unknown",t[t.Janrain=1]="Janrain",t[t.Beasley=2]="Beasley",t[t.Graham=3]="Graham",t[t.ClientSide=4]="ClientSide"}(r||(r={})),e.default=r},function(t,e,n){(function(e,n){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.4+314e4831
 */var r;r=function(){"use strict";function t(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,i=void 0,s=void 0,a=function(t,e){p[o]=t,p[o+1]=e,2===(o+=2)&&(s?s(y):w())},u="undefined"!=typeof window?window:void 0,c=u||{},l=c.MutationObserver||c.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(y,1)}}var p=new Array(1e3);function y(){for(var t=0;t<o;t+=2)(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0;o=0}var m,g,v,b,w=void 0;function _(t,e){var n=this,r=new this.constructor(O);void 0===r[T]&&R(r);var o=n._state;if(o){var i=arguments[o-1];a((function(){return C(o,r,i,n._result)}))}else M(n,r,t,e);return r}function P(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(O);return E(e,t),e}f?w=function(){return e.nextTick(y)}:l?(g=0,v=new l(y),b=document.createTextNode(""),v.observe(b,{characterData:!0}),w=function(){b.data=g=++g%2}):h?((m=new MessageChannel).port1.onmessage=y,w=function(){return m.port2.postMessage(0)}):w=void 0===u?function(){try{var t=Function("return this")().require("vertx");return void 0!==(i=t.runOnLoop||t.runOnContext)?function(){i(y)}:d()}catch(t){return d()}}():d();var T=Math.random().toString(36).substring(2);function O(){}var S={error:null};function j(t){try{return t.then}catch(t){return S.error=t,S}}function A(e,n,r){n.constructor===e.constructor&&r===_&&n.constructor.resolve===P?function(t,e){1===e._state?x(t,e._result):2===e._state?k(t,e._result):M(e,void 0,(function(e){return E(t,e)}),(function(e){return k(t,e)}))}(e,n):r===S?(k(e,S.error),S.error=null):void 0===r?x(e,n):t(r)?function(t,e,n){a((function(t){var r=!1,o=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(n,e,(function(n){r||(r=!0,e!==n?E(t,n):x(t,n))}),(function(e){r||(r=!0,k(t,e))}),t._label);!r&&o&&(r=!0,k(t,o))}),t)}(e,n,r):x(e,n)}function E(t,e){var n,r;t===e?k(t,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=e),null===n||"object"!==r&&"function"!==r?x(t,e):A(t,e,j(e)))}function I(t){t._onerror&&t._onerror(t._result),L(t)}function x(t,e){void 0===t._state&&(t._result=e,t._state=1,0!==t._subscribers.length&&a(L,t))}function k(t,e){void 0===t._state&&(t._state=2,t._result=e,a(I,t))}function M(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+1]=n,o[i+2]=r,0===i&&t._state&&a(L,t)}function L(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?C(n,r,o,i):o(i);t._subscribers.length=0}}function C(e,n,r,o){var i=t(r),s=void 0,a=void 0,u=void 0,c=void 0;if(i){if((s=function(t,e){try{return t(e)}catch(t){return S.error=t,S}}(r,o))===S?(c=!0,a=s.error,s.error=null):u=!0,n===s)return void k(n,new TypeError("A promises callback cannot return that same promise."))}else s=o,u=!0;void 0!==n._state||(i&&u?E(n,s):c?k(n,a):1===e?x(n,s):2===e&&k(n,s))}var U=0;function R(t){t[T]=U++,t._state=void 0,t._result=void 0,t._subscribers=[]}var F=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(O),this.promise[T]||R(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&x(this.promise,this._result))):k(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===P){var o=j(t);if(o===_&&void 0!==t._state)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===H){var i=new n(O);A(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===t?k(r,n):this._result[e]=n),0===this._remaining&&x(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;M(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},t}(),H=function(){function t(e){this[T]=U++,this._result=this._state=void 0,this._subscribers=[],O!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e((function(e){E(t,e)}),(function(e){k(t,e)}))}catch(e){k(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},t}();return H.prototype.then=_,H.all=function(t){return new F(this,t).promise},H.race=function(t){var e=this;return r(t)?new e((function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},H.resolve=P,H.reject=function(t){var e=new this(O);return k(e,t),e},H._setScheduler=function(t){s=t},H._setAsap=function(t){a=t},H._asap=a,H.polyfill=function(){var t=void 0;if(void 0!==n)t=n;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=H},H.Promise=H,H},t.exports=r()}).call(this,n(19),n(3))},function(t,e,n){"use strict";var r=n(8);function o(){}var i=null,s={};function a(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,t!==o&&d(t,this)}function u(t,e){for(;3===t._83;)t=t._18;if(a._47&&a._47(t),0===t._83)return 0===t._75?(t._75=1,void(t._38=e)):1===t._75?(t._75=2,void(t._38=[t._38,e])):void t._38.push(e);!function(t,e){r((function(){var n=1===t._83?e.onFulfilled:e.onRejected;if(null!==n){var r=function(t,e){try{return t(e)}catch(t){return i=t,s}}(n,t._18);r===s?l(e.promise,i):c(e.promise,r)}else 1===t._83?c(e.promise,t._18):l(e.promise,t._18)}))}(t,e)}function c(t,e){if(e===t)return l(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeof e||"function"==typeof e)){var n=function(t){try{return t.then}catch(t){return i=t,s}}(e);if(n===s)return l(t,i);if(n===t.then&&e instanceof a)return t._83=3,t._18=e,void f(t);if("function"==typeof n)return void d(n.bind(e),t)}t._83=1,t._18=e,f(t)}function l(t,e){t._83=2,t._18=e,a._71&&a._71(t,e),f(t)}function f(t){if(1===t._75&&(u(t,t._38),t._38=null),2===t._75){for(var e=0;e<t._38.length;e++)u(t,t._38[e]);t._38=null}}function h(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function d(t,e){var n=!1,r=function(t,e,n){try{t(e,n)}catch(t){return i=t,s}}(t,(function(t){n||(n=!0,c(e,t))}),(function(t){n||(n=!0,l(e,t))}));n||r!==s||(n=!0,l(e,i))}t.exports=a,a._47=null,a._71=null,a._44=o,a.prototype.then=function(t,e){if(this.constructor!==a)return function(t,e,n){return new t.constructor((function(r,i){var s=new a(o);s.then(r,i),u(t,new h(e,n,s))}))}(this,t,e);var n=new a(o);return u(this,new h(t,e,n)),n}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(){function t(){this.id=r.default.Unknown,this.onLogin=function(){},this.onLoginCanceled=function(){},this.onLogout=function(){}}return t.isPresent=function(t){throw new Error("You must implement ThirdPartyAdapter#isPresent on each subclass.")},t}();e.ThirdPartyAdapter=o,e.default=o},function(t,e,n){n(6),t.exports=n(12)},function(t,e,n){"use strict";"undefined"==typeof Promise&&(n(7).enable(),window.Promise=n(9)),n(10),Object.assign=n(11)},function(t,e,n){"use strict";var r=n(2),o=[ReferenceError,TypeError,RangeError],i=!1;function s(){i=!1,r._47=null,r._71=null}function a(t,e){return e.some((function(e){return t instanceof e}))}e.disable=s,e.enable=function(t){t=t||{},i&&s();i=!0;var e=0,n=0,u={};function c(e){(t.allRejections||a(u[e].error,t.whitelist||o))&&(u[e].displayId=n++,t.onUnhandled?(u[e].logged=!0,t.onUnhandled(u[e].displayId,u[e].error)):(u[e].logged=!0,function(t,e){console.warn("Possible Unhandled Promise Rejection (id: "+t+"):"),((e&&(e.stack||e))+"").split("\n").forEach((function(t){console.warn("  "+t)}))}(u[e].displayId,u[e].error)))}r._47=function(e){2===e._83&&u[e._56]&&(u[e._56].logged?function(e){u[e].logged&&(t.onHandled?t.onHandled(u[e].displayId,u[e].error):u[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+u[e].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+u[e].displayId+".")))}(e._56):clearTimeout(u[e._56].timeout),delete u[e._56])},r._71=function(t,n){0===t._75&&(t._56=e++,u[t._56]={displayId:null,error:n,timeout:setTimeout(c.bind(null,t._56),a(n,o)?100:2e3),logged:!1})}}},function(t,e,n){"use strict";(function(e){function n(t){o.length||(r(),!0),o[o.length]=t}t.exports=n;var r,o=[],i=0;function s(){for(;i<o.length;){var t=i;if(i+=1,o[t].call(),i>1024){for(var e=0,n=o.length-i;e<n;e++)o[e]=o[e+i];o.length-=i,i=0}}o.length=0,i=0,!1}var a,u,c,l=void 0!==e?e:self,f=l.MutationObserver||l.WebKitMutationObserver;function h(t){return function(){var e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}"function"==typeof f?(a=1,u=new f(s),c=document.createTextNode(""),u.observe(c,{characterData:!0}),r=function(){a=-a,c.data=a}):r=h(s),n.requestFlush=r,n.makeRequestCallFromTimer=h}).call(this,n(3))},function(t,e,n){"use strict";var r=n(2);t.exports=r;var o=l(!0),i=l(!1),s=l(null),a=l(void 0),u=l(0),c=l("");function l(t){var e=new r(r._44);return e._83=1,e._18=t,e}r.resolve=function(t){if(t instanceof r)return t;if(null===t)return s;if(void 0===t)return a;if(!0===t)return o;if(!1===t)return i;if(0===t)return u;if(""===t)return c;if("object"==typeof t||"function"==typeof t)try{var e=t.then;if("function"==typeof e)return new r(e.bind(t))}catch(t){return new r((function(e,n){n(t)}))}return l(t)},r.all=function(t){var e=Array.prototype.slice.call(t);return new r((function(t,n){if(0===e.length)return t([]);var o=e.length;function i(s,a){if(a&&("object"==typeof a||"function"==typeof a)){if(a instanceof r&&a.then===r.prototype.then){for(;3===a._83;)a=a._18;return 1===a._83?i(s,a._18):(2===a._83&&n(a._18),void a.then((function(t){i(s,t)}),n))}var u=a.then;if("function"==typeof u)return void new r(u.bind(a)).then((function(t){i(s,t)}),n)}e[s]=a,0==--o&&t(e)}for(var s=0;s<e.length;s++)i(s,e[s])}))},r.reject=function(t){return new r((function(e,n){n(t)}))},r.race=function(t){return new r((function(e,n){t.forEach((function(t){r.resolve(t).then(e,n)}))}))},r.prototype.catch=function(t){return this.then(null,t)}},function(t,e){!function(t){"use strict";if(!t.fetch){var e="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,i="ArrayBuffer"in t;if(i)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=function(t){return t&&DataView.prototype.isPrototypeOf(t)},u=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};p.prototype.append=function(t,e){t=f(t),e=h(e);var n=this.map[t];this.map[t]=n?n+","+e:e},p.prototype.delete=function(t){delete this.map[f(t)]},p.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},p.prototype.set=function(t,e){this.map[f(t)]=h(e)},p.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},p.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),d(t)},p.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),d(t)},p.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),d(t)},n&&(p.prototype[Symbol.iterator]=p.prototype.entries);var c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},P.error=function(){var t=new P(null,{status:0,statusText:""});return t.type="error",t};var l=[301,302,303,307,308];P.redirect=function(t,e){if(-1===l.indexOf(e))throw new RangeError("Invalid status code");return new P(null,{status:e,headers:{location:t}})},t.Headers=p,t.Request=w,t.Response=P,t.fetch=function(t,e){return new Promise((function(n,o){var i=new w(t,e),s=new XMLHttpRequest;s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new p,t.split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;n(new P(o,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.open(i.method,i.url,!0),"include"===i.credentials&&(s.withCredentials=!0),"responseType"in s&&r&&(s.responseType="blob"),i.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),s.send(void 0===i._bodyInit?null:i._bodyInit)}))},t.fetch.polyfill=!0}function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function y(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function g(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(r&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(o&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(i&&r&&a(t))this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(t)&&!u(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var t=y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var t,e,n,r=y(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=m(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}function w(t,e){var n,r,o=(e=e||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),c.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function _(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function P(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},function(t,e,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,u=s(t),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(u[l]=n[l]);if(r){a=r(n);for(var f=0;f<a.length;f++)i.call(n,a[f])&&(u[a[f]]=n[a[f]])}}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),o=n(32),i=n(33);!function(){var t=i.default("["+o.default.attrs.embed+"]",o.default.attrs.init,document);if(!t)throw new Error(o.default.errors.noEmbed);new r.default(t,o.default,window)}()},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),s=n(15),a=n(24),u=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.config=n,o.title="Promotion Embed",o.previousFrameWin=null,o}return o(e,t),e.prototype.fromBooleanAttr=function(t){var e=this.elements.target.getAttribute(this.config.attrs[t]||"");return!!e||""===e},e.prototype.createFrame=function(){var e=this;if(t.prototype.createFrame.call(this),this.setupContentSecurityPolicyViolationMessage(),this.el.onload=function(){e.el.contentWindow!==e.previousFrameWin&&new a.default(e),e.previousFrameWin=e.el.contentWindow},this.isAdgagement){var n=this.adgagementDimensions,r=n[0],o=n[1];this.el.style.minWidth="unset",this.el.style.width=r+"px",this.el.style.height=o+"px",this.adgagementContainer.style.height=o+"px",this.adgagementContainer.style.width=r+"px",this.adgagementContainer.style.overflowY="scroll",this.adgagementContainer.style.overflowX="hidden",this.adgagementContainer.style.paddingRight="11px",this.adgagementContainer.style.WebkitOverflowScrolling="touch",this.adgagementContainer.setAttribute("id","adgagement");var i=this.win.document.createElement("style");i.type="text/css";var s=this.win.document.createTextNode("\n  #adgagement::-webkit-scrollbar {\n    -webkit-appearance: none;\n  }\n\n  #adgagement::-webkit-scrollbar:vertical {\n    width: 11px;\n  }\n\n  #adgagement::-webkit-scrollbar:horizontal {\n    height: 11px;\n  }\n\n  #adgagement::-webkit-scrollbar-thumb {\n    border-radius: 8px;\n    border: 2px solid white;\n    background-color: rgba(0, 0, 0, 0.5);\n  }\n");i.appendChild(s),this.adgagementContainer.appendChild(i)}},e.prototype.fillFrame=function(){if(this.win.location.href.substring(0,this.rootUrl.length)===this.rootUrl&&"none"!==this.routing){var t="/"===this.src.slice(-1)?this.src:this.src+"/",e=this.win.location.href.split("#"),n=e[0],r=e[1],o="history"===this.routing&&(!r||"/"!==r[0])?n:this.win.location.href,s=""+t+i.removeLeadingHashesAndSlashes(o.substring(this.rootUrl.length));this.hashParams&&(s=i.updateQueryStringParameter(s,"hashParams",this.hashParams)),this.el.src=this.allowFullViewport?i.updateQueryStringParameter(s,"allow-full-viewport","true"):s}else this.el.src=this.src},Object.defineProperty(e.prototype,"routing",{get:function(){return this.fromAttr("routing")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adRefresh",{get:function(){return this.fromAttr("adRefresh")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootUrl",{get:function(){var t=this.fromAttr("rootUrl");return t||this.win.location.href.split("#")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"guid",{get:function(){return this.fromAttr("guid")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"src",{get:function(){var t=this.guid?"/"+this.config.src.getPath(this.guid):"";return""+this.origin+t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowFullViewport",{get:function(){return this.fromBooleanAttr("allowFullViewport")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hashParams",{get:function(){return this.fromAttr("hashParams")},enumerable:!0,configurable:!0}),e.prototype.setupContentSecurityPolicyViolationMessage=function(){document.addEventListener("securitypolicyviolation",(function(t){console.error("%cUpland Second Street has blocked embedding on this page!","font-weight: bold; background: red; color: white; font-size: 3em;"),console.error("%cUpland Second Street did not load the embedded page because this page is not on a domain allowed by the organization that owns the content.\nTo fix this, you may change this promotion's Embed URL to \""+t.referrer+'" in the Publish step, or you may add "'+window.location.hostname+"\" to your organization's Trusted Domains in Organization Settings.","color: red; font-size: 1.5em;")}))},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingHashesAndSlashes=function(t){return"#"===t[0]||"/"===t[0]?e.removeLeadingHashesAndSlashes(t.substring(1)):t},e.updateQueryStringParameter=function(t,e,n){var r=t,o="";t.indexOf("#")>-1&&(r=t.substring(0,t.indexOf("#")),o="#"+t.split("#")[1]);var i=new RegExp("([?|&])"+e+"=.*?(&|$)","i"),s=-1!==r.indexOf("?")?"&":"?";return r.match(i)?""+r.replace(i,"$1"+e+"="+n+"$2")+o:""+r+s+e+"="+n+o}},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(16),u=n(17),c=n(18),l=n(21),f=n(23),h=function(t){function e(e,n,r){var o=t.call(this)||this;return o.elements=e,o.config=n,o.win=r,o.el=o.win.document.createElement("iframe"),o.adgagementContainer=o.win.document.createElement("div"),o.browserWarningEl=o.win.document.createElement("div"),o.title="Promotion Embed",o.apiKey="65032887",o.dynamicOffset={top:0,bottom:0},o.origin=o.fromAttr("origin")||a.default(o.elements.script.getAttribute("src")||"",r.document),o.api=new c.default(o.apiKey,o.apiUrl),o.initialize(),o}return o(e,t),Object.defineProperty(e.prototype,"offset",{get:function(){return{top:this.fromAttr("topOffset")?Number(this.fromAttr("topOffset")):this.dynamicOffset.top,bottom:this.fromAttr("bottomOffset")?Number(this.fromAttr("bottomOffset")):this.dynamicOffset.bottom}},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){return i(this,void 0,Promise,(function(){return s(this,(function(t){switch(t.label){case 0:return this.elements.target.setAttribute(this.config.attrs.init,"true"),this.readySDK(),[4,this.loadData()];case 1:return t.sent(),this.setupCustomStyles(),this.createFrame(),this.injectFrame(),this.fillFrame(),[2]}}))}))},e.prototype.fromAttr=function(t){return this.elements.target.getAttribute(this.config.attrs[t]||"")||""},e.prototype.setAttr=function(t,e){var n=this.config.attrs[t];n&&this.elements.target.setAttribute(n,String(e))},e.prototype.setMaxHeight=function(t){var e=(void 0===t?{}:t).auto;this.el.style.maxHeight=e?"auto":"calc(var(--ss-100vh, 100vh) - "+(this.offset.top+this.offset.bottom)+"px)"},e.prototype.loadData=function(){return i(this,void 0,Promise,(function(){return s(this,(function(t){return[2]}))}))},e.prototype.createFrame=function(){this.el.title=this.title,this.el.allowFullscreen=!0,this.el.setAttribute(this.config.attrs.embed,"iframe"),this.el.style.cssText=["background-color: transparent;","border: 0px none transparent;","padding: 0px;","min-width: 100%;","width: 100px;","height: 1px;"].join("")},e.prototype.createBrowserWarning=function(){this.browserWarningEl.style.background="rgb(255,240,240)",this.browserWarningEl.style.color="red",this.browserWarningEl.style.border="2px solid red",this.browserWarningEl.style.padding="16px",this.browserWarningEl.style.marginBottom="10px",this.browserWarningEl.style.fontSize="16px",this.browserWarningEl.style.fontFamily='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;',this.browserWarningEl.style.fontWeight="700",this.browserWarningEl.innerHTML='\n      Your browser is unsupported. Please <a href="https://www.unsupportedbrowser.site/?by=this%20promotion" target="_blank" style="color:blue;text-decoration:underline;">install a new browser</a> to view this promotion.\n    '},e.prototype.injectFrame=function(){this.elements.target.parentNode&&(u.isUnsupportedBrowser(this.win)&&(this.createBrowserWarning(),this.elements.target.parentNode.insertBefore(this.browserWarningEl,this.elements.target)),this.isAdgagement?(this.adgagementContainer.appendChild(this.el),this.elements.target.parentNode.insertBefore(this.adgagementContainer,this.elements.target)):this.elements.target.parentNode.insertBefore(this.el,this.elements.target),this.removeElements())},Object.defineProperty(e.prototype,"adgagementDimensions",{get:function(){return this.fromAttr("adgagement").split("x")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAdgagement",{get:function(){var t=this.adgagementDimensions;if(this.fromAttr("adgagement")){if(2===t.length&&parseInt(t[0],10)&&parseInt(t[1],10))return!0;console.error("Invalid adgagement dimensions: "+this.fromAttr("adgagement"))}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"apiUrl",{get:function(){return this.fromAttr("apiUrl")||"https://api.secondstreetapp.com"},enumerable:!0,configurable:!0}),e.prototype.setupCustomStyles=function(){var t=function(){document.documentElement.style.setProperty("--ss-100vh",window.innerHeight+"px")};window.addEventListener("resize",f.debounce(t,100)),t()},e.prototype.removeElements=function(){[this.elements.script,this.elements.target].forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},e}(l.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.createElement("a");return n.href=t,n.href=n.href,n.protocol+"//"+n.hostname+(n.port&&"80"!==n.port&&"443"!==n.port&&"0"!==n.port?":"+n.port:"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUnsupportedBrowser=function(t){return/MSIE [2-9]|MSIE 10|Trident.*rv[ :]*(\d+\.\d+)/.test(t.navigator.userAgent)||!!t.MSInputMethodContext&&!!t.document.documentMode}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(1),i=n(20);!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(r||(r={}));var s=function(t,e){return t&&Object.keys(t).forEach((function(n){return e.setRequestHeader(n,""+t[n])}))},a=function(){function t(t,e){this.apiKey=t,this.apiUrl=e,this.headers={"X-Api-Key":this.apiKey,"Content-Type":"application/json"}}return t.prototype.getById=function(t,e,n,o){return void 0===n&&(n={}),void 0===o&&(o={}),this.makeRequest(r.GET,t+"/"+e+"?"+i.stringify(n),o)},t.prototype.getAll=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),this.makeRequest(r.GET,t+"?"+i.stringify(e),n)},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.makeRequest(r.POST,""+t,n,e)},t.prototype.put=function(t,e,n,o){return void 0===n&&(n={}),void 0===o&&(o={}),this.makeRequest(r.PUT,t+"/"+e,o,n)},t.prototype.makeRequest=function(t,e,n,r){var i=this;return void 0===n&&(n={}),void 0===r&&(r={}),new o.Promise((function(o,a){var u=new XMLHttpRequest;u.open(t,i.apiUrl+"/"+e,!0),s(i.headers,u),s(n,u),u.onload=function(){this.status>=200&&this.status<400?o(JSON.parse(this.response)):a(new Error(this.responseText))},u.onerror=function(){a(new Error("Connection error to SecondStreet API"))},u.send("POST"!==t&&"PUT"!==t||!r?void 0:JSON.stringify(r))}))},t}();e.default=a},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||l||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),
/*!
 * Via https://github.com/nodejs/node/blob/b69926486569529a5fe140df4b769d1ce4f6bca0/lib/querystring.js#L209-L247
 * `stringify` is open source under the following license:
 * https://github.com/nodejs/node/blob/b69926486569529a5fe140df4b769d1ce4f6bca0/LICENSE
 */
e.stringify=function(t,e,n,r){void 0===e&&(e="&"),void 0===n&&(n="=");for(var o=Object.keys(t),i=o.length,s=i-1,a="",u=r&&"function"==typeof r.encodeURIComponent?r.encodeURIComponent:encodeURIComponent,c=0;c<i;++c){var l=o[c],f=t[l],h=u(""+l)+n;if(Array.isArray(f)){for(var d=f.length,p=d-1,y=0;y<d;++y)a+=h+u(""+f[y]),y<p&&(a+=e);d&&c<s&&(a+=e)}else a+=h+u(""+f),c<s&&(a+=e)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(22),o=function(){function t(){this._sdk=void 0,this._sdkImplementation=void 0}return Object.defineProperty(t.prototype,"sdkImplementation",{get:function(){return this._sdkImplementation?this._sdkImplementation:null!==this._sdkImplementation&&window.SecondStreetSDK?r.SDKV0.validateInterface(window.SecondStreetSDK)||r.SDKV1.validateInterface(window.SecondStreetSDK)?(this._sdkImplementation=window.SecondStreetSDK,this._sdkImplementation):void 0:void(this._sdkImplementation=null)},set:function(t){throw new Error("This is a read-only property.")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sdk",{get:function(){return this._sdk||(this._sdk=new(r.default(this.sdkImplementation))),this._sdk},set:function(t){throw new Error("This is a read-only property.")},enumerable:!0,configurable:!0}),t.prototype.readySDK=function(){if(this.sdkImplementation)try{this.sdk instanceof r.SDKV0&&this.sdkImplementation.ready(),this.sdk instanceof r.SDKV1&&this.sdkImplementation.ready(this.sdk)}catch(t){console.error("An error occurred while attempting to run your Second Street SDK Implementation:",t)}},t}();e.default=o},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),s=function(){this._methodHandler=null};e.SDKInternal=s;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.VERSION="0.0.1",e._methodHandler=null,e}return o(e,t),e.prototype._dispatchEvent=function(t){throw new Error("Not Implemented. Called with "+t)},e.prototype._sendMethod=function(t,e){throw new Error("Not implemented. Called with "+t+", "+e)},e.validateInterface=function(t){return t&&"0"===c(t.version)},e}(s);e.SDKV0=a;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.VERSION="1.0.0",e._methodHandler=null,e.delegate=document.createDocumentFragment(),e}return o(e,t),e.validateInterface=function(t){return t&&"1"===c(t.version)&&"function"==typeof t.ready},e.prototype.addEventListener=function(t,e){this.delegate.addEventListener(t,e)},e.prototype.removeEventListener=function(t,e){this.delegate.removeEventListener(t,e)},e.prototype.logout=function(){return this._sendMethod("logout",{}).then((function(t){return t.logout}))},e.prototype.visit=function(t){return this._sendMethod("visit",{url:t}).then((function(t){return t.visit}))},e.prototype.timer=function(t){return new i.Promise((function(e){window.setTimeout((function(){return e(t)}),t)}))},e.prototype._sendMethod=function(t,e){if(!this._methodHandler)throw new Error("No SDK method handler has been registered.");return this._methodHandler(t,e)},e.prototype._dispatchEvent=function(t){return this.delegate.dispatchEvent(t)},e}(s);function c(t){var e=t.match(/(\d)+\..*/);if(!e)throw new Error("Unable to parse major version.");return e[1]}e.SDKV1=u,e.majorVersion=c,e.default=function(t){if(!t)return u;var e="";try{e=c(t.version)}catch(t){throw"Unable to parse major version."===t.message?new Error("Unable to parse SDK Version at `window.SecondStreetSDK.version`."):t}var n="0"===e?a:"1"===e?u:void 0;if(!n)throw new Error("SDK Version "+e+" is not available.");return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"isObject",(function(){return o})),n.d(e,"toNumber",(function(){return i})),n.d(e,"debounce",(function(){return s}));
/**
 * @license
 * Lodash <https://lodash.com/> debounce
 * Copyright JS Foundation and other contributors <https://js.foundation/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */
var r=function(){return window.Date.now()};function o(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function i(t){if("number"==typeof t)return t;if(isSymbol(t))return NAN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(reTrim,"");var n=reIsBinary.test(t);return n||reIsOctal.test(t)?freeParseInt(t.slice(2),n?2:8):reIsBadHex.test(t)?NAN:+t}function s(t,e,n){var s,a,u,c,l,f,h=0,d=!1,p=!1,y=!0;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT);function m(e){var n=s,r=a;return s=a=void 0,h=e,c=t.apply(r,n)}function g(t){return h=t,l=setTimeout(b,e),d?m(t):c}function v(t){var n=t-f;return void 0===f||n>=e||n<0||p&&t-h>=u}function b(){var t=r();if(v(t))return w(t);l=setTimeout(b,function(t){var n=e-(t-f);return p?nativeMin(n,u-(t-h)):n}(t))}function w(t){return l=void 0,y&&s?m(t):(s=a=void 0,c)}function _(){var t=r(),n=v(t);if(s=arguments,a=this,f=t,n){if(void 0===l)return g(f);if(p)return l=setTimeout(b,e),m(f)}return void 0===l&&(l=setTimeout(b,e)),c}return e=i(e)||0,o(n)&&(d=!!n.leading,u=(p="maxWait"in n)?nativeMax(i(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==l&&clearTimeout(l),h=0,s=f=a=l=void 0},_.flush=function(){return void 0===l?c:w(r())},_}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(25),o=n(1),i=n(26),s=n(27),a=n(0),u=n(28),c=function(){function t(t){var e=this;if(this.frame=t,this.hasSkippedFirstAdRefresh=!1,this.hasFullViewport=!1,!this.frame.el.contentWindow)throw new Error("PromotionDelegate cannot be instantiated before the frame is ready");this.talker=new r.default(this.frame.el.contentWindow,this.frame.origin),this.talker.onMessage=function(t){return e.onTalkerMessage(t)},this.frame.sdk._methodHandler=this.sdkMethod.bind(this),this.setupRouting(),this.setupScrolling(),this.setupThirdPartyAuth(),this.frame.isAdgagement&&this.setupAdgagement()}return t.prototype.setupRouting=function(){var t=this,e=function(e){return t.talker?t.talker.send("route",{url:e}):o.Promise.resolve()};switch(this.frame.routing){case"hash":this.router=new i.HashRouter(this.frame.rootUrl,this.frame.win),this.router.onRouteChange=e;break;case"history":this.router=new i.HistoryRouter(this.frame.rootUrl,this.frame.win),this.router.onRouteChange=e;break;case"none":default:this.router=new i.NoneRouter(this.frame.rootUrl,this.frame.win),this.router.onRouteChange=function(){}}},t.prototype.setupScrolling=function(){var t=this;this.frame.win.addEventListener("scroll",(function(){var e=t.frame.el.getBoundingClientRect(),n=t.frame;if(t.talker){for(var r=0,o=0;o<500;o++){var i=document.elementFromPoint(e.left+e.width/2,o);i&&i.isEqualNode(n.el)&&(r=o,o=500)}t.talker.send("scroll",{scrollX:t.frame.win.scrollX-(t.frame.win.document.body.scrollLeft+e.left),scrollY:t.frame.win.scrollY-(t.frame.win.document.body.scrollTop+e.top),innerScrollY:-e.top,innerWidth:t.frame.win.innerWidth,innerHeight:t.frame.win.innerHeight,iframeOffset:r})}}))},t.prototype.setupThirdPartyAuth=function(){var t=this,e=u.default.existingProvider(),n=function(e){t.thirdParty=u.default.createAdapter(e),t.thirdParty&&t.talker&&(t.talker.send("thirdParty",{event:"present",info:{thirdPartyId:t.thirdParty.id,thirdPartyLoginStrategy:window.SecondStreetThirdPartyAuth.loginStrategy},sendLater:!0}),t.thirdParty.onLogin=function(e){t.talker&&t.talker.send("thirdParty",{event:"auth",info:e,sendLater:!0})},t.thirdParty.onLoginCanceled=function(){t.talker&&t.talker.send("thirdParty",{event:"loginCanceled"})},t.thirdParty.onLogout=function(){t.talker&&t.talker.send("thirdParty",{event:"logout"})},t.thirdParty.init(t.frame.win))};if(null!==e)return n(u.default.existingProvider()),this.thirdParty;var r=this.frame.win.janrainCaptureWidgetOnLoad;this.frame.win.janrainCaptureWidgetOnLoad=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n(a.default.Janrain),"function"==typeof r&&r.apply(void 0,t)}},t.prototype.sdkMethod=function(t,e){return this.talker.send("sdk",{method:t,data:e}).then((function(t){return t instanceof Error?{}:t.data}))},t.prototype.setupAdgagement=function(){this.talker.send("adgagement",{event:"declare",info:{},sendLater:!0})},t.prototype.onTalkerMessage=function(t){switch(t.namespace){case"event":return this.onEventMessage(t);case"route":return this.onRouteMessage(t);case"localStorage":return this.onLocalStorageMessage(t);case"resize":return this.onResizeMessage(t);case"fullUrl":return this.onFullUrlMessage(t);case"scrollTo":return this.onScrollToMessage(t);case"scrollToTop":return this.onScrollToTopMessage(t);case"thirdParty":return this.onThirdPartyMessage(t);case"getPageTitle":return this.onGetPageTitle(t);case"getDocumentReferrer":return this.onGetDocumentReferrer(t);case"changeTitle":return this.onChangeTitle(t);case"fillViewport":return this.fillViewport();case"heightMode":return this.onHeightModeMessage(t);default:return}},t.prototype.onEventMessage=function(t){var e="secondstreet:"+t.data.type,n=t.data.detail||void 0;"route:enter"===t.data.type&&this.router&&"string"==typeof n&&(n=this.router.routeToFullUrl(n)),this.frame.sdk._dispatchEvent(new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n}))},t.prototype.onLocalStorageMessage=function(t){var e=""+t.data.key;switch(t.data.action){case"getItem":return void t.respond({value:s.default.getItem(e,this.frame.win)});case"setItem":return void s.default.setItem(e,""+t.data.value,this.frame.win);case"removeItem":return void s.default.removeItem(e,this.frame.win);default:return}},t.prototype.onFullUrlMessage=function(t){var e="";if(t.data&&t.data.route){var n=t.data.route;"string"==typeof n&&(e=n)}t.respond({url:this.router?this.router.routeToFullUrl(e):void 0})},t.prototype.onResizeMessage=function(t){if(!this.hasFullViewport){var e=t.data.height;"number"!=typeof e&&"string"!=typeof e||(this.frame.el.style.height=t.data.height+"px")}},t.prototype.onRouteMessage=function(t){if(this.frame.isAdgagement)this.setupAdgagement();else{var e=t.data.url;this.router&&"string"==typeof e&&this.router.changeRoute(e),this.refreshAds()}},t.prototype.scrollToNewValue=function(t,e){var n=this.frame.el.getBoundingClientRect().top>this.frame.win.document.body.getBoundingClientRect().top?-1*this.frame.win.document.body.getBoundingClientRect().top+this.frame.el.getBoundingClientRect().top:-1*this.frame.el.getBoundingClientRect().top+this.frame.win.document.body.getBoundingClientRect().top;this.scrollInFrame(0,n+t,e)},t.prototype.onScrollToTopMessage=function(t){var e,n=t.data&&t.data.behavior?t.data.behavior:"smooth";if(t.data&&this.frame.isAdgagement)"number"==typeof(e=t.data.offset)&&(this.frame.adgagementContainer.scrollTop=e);else if(t.data&&t.data.offset)"number"==typeof(e=t.data.offset)&&Math.abs(this.frame.el.getBoundingClientRect().top)>e&&this.scrollToNewValue(e,n);else if(!this.frame.isAdgagement){var r=this.frame.el.getBoundingClientRect();this.scrollInFrame(0,r.top+this.frame.win.scrollY-this.frame.offset.top,n)}},t.prototype.onScrollToMessage=function(t){var e=t.data&&t.data.behavior?t.data.behavior:"smooth";if(t.data&&t.data.offset){var n=t.data.offset;"number"==typeof n&&this.scrollToNewValue(n,e)}else{var r=this.frame.el.getBoundingClientRect();this.scrollInFrame(0,r.top+this.frame.win.pageYOffset,e)}},t.prototype.scrollInFrame=function(t,e,n){this.frame.win.scrollTo({left:t,top:e,behavior:n})},t.prototype.onThirdPartyMessage=function(t){"requestThirdPartyLogin"===t.data.event&&this.thirdParty&&this.thirdParty.requestLogin&&this.thirdParty.requestLogin(this.frame.win)},t.prototype.onChangeTitle=function(t){this.frame.isAdgagement||t.data.title&&(this.frame.win.document.title=t.data.title)},t.prototype.fillViewport=function(){!this.frame.allowFullViewport||this.hasFullViewport||this.frame.isAdgagement||(this.hasFullViewport=!0,this.frame.el.style.height="100vh",this.frame.el.style.width="100vw")},t.prototype.onGetPageTitle=function(t){t.respond({title:this.frame.win.document.title})},t.prototype.onGetDocumentReferrer=function(t){t.respond({referrer:this.frame.win.document.referrer})},t.prototype.refreshAds=function(){"none"!==this.frame.adRefresh&&(this.hasSkippedFirstAdRefresh?this.frame.win.googletag&&"function"==typeof this.frame.win.googletag.pubads&&this.frame.win.googletag.pubads().refresh():this.hasSkippedFirstAdRefresh=!0)},t.prototype.onHeightModeMessage=function(t){if(t.data&&t.data.mode){var e=t.data,n=Number(e.topOffset||"0"),r=Number(e.bottomOffset||"0");isNaN(n)&&(n=0),isNaN(r)&&(r=0),"static"===e.mode?(this.frame.dynamicOffset={top:n,bottom:r},this.frame.setMaxHeight()):(this.frame.dynamicOffset={top:0,bottom:0},this.frame.setMaxHeight({auto:!0}))}},t}();e.default=c},function(t,e,n){window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){(function(e,n){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.4+314e4831
 */
var r;r=function(){"use strict";function t(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,i=void 0,s=void 0,a=function(t,e){p[o]=t,p[o+1]=e,2===(o+=2)&&(s?s(y):w())},u="undefined"!=typeof window?window:void 0,c=u||{},l=c.MutationObserver||c.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(y,1)}}var p=new Array(1e3);function y(){for(var t=0;t<o;t+=2)(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0;o=0}var m,g,v,b,w=void 0;function _(t,e){var n=this,r=new this.constructor(O);void 0===r[T]&&F(r);var o=n._state;if(o){var i=arguments[o-1];a((function(){return U(o,r,i,n._result)}))}else L(n,r,t,e);return r}function P(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(O);return I(e,t),e}f?w=function(){return e.nextTick(y)}:l?(g=0,v=new l(y),b=document.createTextNode(""),v.observe(b,{characterData:!0}),w=function(){b.data=g=++g%2}):h?((m=new MessageChannel).port1.onmessage=y,w=function(){return m.port2.postMessage(0)}):w=void 0===u?function(){try{var t=Function("return this")().require("vertx");return void 0!==(i=t.runOnLoop||t.runOnContext)?function(){i(y)}:d()}catch(t){return d()}}():d();var T=Math.random().toString(36).substring(2);function O(){}var S=void 0,j={error:null};function A(t){try{return t.then}catch(t){return j.error=t,j}}function E(e,n,r){n.constructor===e.constructor&&r===_&&n.constructor.resolve===P?function(t,e){1===e._state?k(t,e._result):2===e._state?M(t,e._result):L(e,void 0,(function(e){return I(t,e)}),(function(e){return M(t,e)}))}(e,n):r===j?(M(e,j.error),j.error=null):void 0===r?k(e,n):t(r)?function(t,e,n){a((function(t){var r=!1,o=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(n,e,(function(n){r||(r=!0,e!==n?I(t,n):k(t,n))}),(function(e){r||(r=!0,M(t,e))}),t._label);!r&&o&&(r=!0,M(t,o))}),t)}(e,n,r):k(e,n)}function I(t,e){var n,r;t===e?M(t,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=e),null===n||"object"!==r&&"function"!==r?k(t,e):E(t,e,A(e)))}function x(t){t._onerror&&t._onerror(t._result),C(t)}function k(t,e){t._state===S&&(t._result=e,t._state=1,0!==t._subscribers.length&&a(C,t))}function M(t,e){t._state===S&&(t._state=2,t._result=e,a(x,t))}function L(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+1]=n,o[i+2]=r,0===i&&t._state&&a(C,t)}function C(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?U(n,r,o,i):o(i);t._subscribers.length=0}}function U(e,n,r,o){var i=t(r),s=void 0,a=void 0,u=void 0,c=void 0;if(i){if((s=function(t,e){try{return t(e)}catch(t){return j.error=t,j}}(r,o))===j?(c=!0,a=s.error,s.error=null):u=!0,n===s)return void M(n,new TypeError("A promises callback cannot return that same promise."))}else s=o,u=!0;n._state!==S||(i&&u?I(n,s):c?M(n,a):1===e?k(n,s):2===e&&M(n,s))}var R=0;function F(t){t[T]=R++,t._state=void 0,t._result=void 0,t._subscribers=[]}var H=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(O),this.promise[T]||F(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&k(this.promise,this._result))):M(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===S&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===P){var o=A(t);if(o===_&&t._state!==S)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===B){var i=new n(O);E(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===S&&(this._remaining--,2===t?M(r,n):this._result[e]=n),0===this._remaining&&k(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;L(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},t}(),B=function(){function t(e){this[T]=R++,this._result=this._state=void 0,this._subscribers=[],O!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e((function(e){I(t,e)}),(function(e){M(t,e)}))}catch(e){M(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},t}();return B.prototype.then=_,B.all=function(t){return new H(this,t).promise},B.race=function(t){var e=this;return r(t)?new e((function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},B.resolve=P,B.reject=function(t){var e=new this(O);return M(e,t),e},B._setScheduler=function(t){s=t},B._setAsap=function(t){a=t},B._asap=a,B.polyfill=function(){var t=void 0;if(void 0!==n)t=n;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=B},B.Promise=B,B},t.exports=r()}).call(this,n(1),n(2))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||l||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var r,o=n(0),i=function(t,e,n){return delete t.__resolve__,delete t.__reject__,e(n),t},s=function(){var t,e,n=new o.Promise((function(n,r){t=n,e=r}));return n.__resolve__=function(e){return i(n,t,e)},n.__reject__=function(t){return i(n,e,t)},n},a="application/x-talkerjs-v1+json",u=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e,n,r){void 0===r&&(r=null),this.talker=t,this.namespace=e,this.data=n,this.responseToId=r,this.type=a},l=function(t){function e(e,n,r,o){void 0===o&&(o=null);var i=t.call(this,e,n,r,o)||this;return i.talker=e,i.namespace=n,i.data=r,i.responseToId=o,i.id=i.talker.nextId(),i}return u(e,t),e.prototype.toJSON=function(){var t=this;return{id:t.id,responseToId:t.responseToId||void 0,namespace:t.namespace,data:t.data,type:t.type}},e}(c),f=function(t){function e(e,n,r,o){void 0===n&&(n=""),void 0===r&&(r={}),void 0===o&&(o=0);var i=t.call(this,e,n,r)||this;return i.talker=e,i.namespace=n,i.data=r,i.id=o,i}return u(e,t),e.prototype.respond=function(t){return this.talker.send(this.namespace,t,this.id)},e}(c);n.d(e,"IncomingMessage",(function(){return f})),n.d(e,"OutgoingMessage",(function(){return l}));var h=function(){function t(t,e,n){void 0===n&&(n=window);var r=this;return this.remoteWindow=t,this.remoteOrigin=e,this.localWindow=n,this.timeout=3e3,this.latestId=0,this.queue=[],this.sent={},this.handshaken=!1,this.handshake=s(),this.localWindow.addEventListener("message",(function(t){return r.receiveMessage(t)}),!1),this.sendHandshake(),this}return t.prototype.send=function(t,e,n){void 0===n&&(n=null);var r=new l(this,t,e,n),o=s();return this.sent[r.id]=o,this.queue.push(r),this.flushQueue(),setTimeout((function(){return o.__reject__&&o.__reject__(new Error("Talker.js message timed out waiting for a response."))}),this.timeout),o},t.prototype.nextId=function(){return this.latestId+=1},t.prototype.receiveMessage=function(t){var e;try{e=JSON.parse(t.data)}catch(t){e={namespace:"",data:{},id:this.nextId(),type:a}}if(this.isSafeMessage(t.source,t.origin,e.type))return e.handshake||e.handshakeConfirmation?this.handleHandshake(e):this.handleMessage(e)},t.prototype.isSafeMessage=function(t,e,n){var r=t===this.remoteWindow,o="*"===this.remoteOrigin||e===this.remoteOrigin;return r&&o&&n===a},t.prototype.handleHandshake=function(t){t.handshake&&this.sendHandshake(this.handshaken),this.handshaken||(this.handshaken=!0,this.handshake.__resolve__&&this.handshake.__resolve__(this.handshaken),this.flushQueue())},t.prototype.handleMessage=function(t){var e=new f(this,t.namespace,t.data,t.id),n=t.responseToId;return n?this.respondToMessage(n,e):this.broadcastMessage(e)},t.prototype.respondToMessage=function(t,e){var n=this.sent[t];n&&n.__resolve__&&(n.__resolve__(e),delete this.sent[t])},t.prototype.broadcastMessage=function(t){this.onMessage&&this.onMessage.call(this,t)},t.prototype.sendHandshake=function(t){var e;return void 0===t&&(t=!1),this.postMessage(((e={type:a})[t?"handshakeConfirmation":"handshake"]=!0,e))},t.prototype.postMessage=function(t){var e=JSON.stringify(t);if(this.remoteWindow&&this.remoteOrigin)try{this.remoteWindow.postMessage(e,this.remoteOrigin)}catch(t){}},t.prototype.flushQueue=function(){if(this.handshaken)for(;this.queue.length>0;){var t=this.queue.shift();t&&this.postMessage(t)}},t}();e.default=h}])},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.rootUrl=t,this.win=e}return t.prototype.changeRoute=function(t){t&&(t="/"===t[0]?t.substr(1):t,this._routeChanged(t))},t.prototype._urlChanged=function(t){this.onRouteChange&&this.onRouteChange.call(this,this._urlToRoute(t))},t}();e.Router=i;var s=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.win.addEventListener("hashchange",(function(t){return t.newURL&&r._urlChanged(t.newURL)})),r}return o(e,t),e.prototype.routeToFullUrl=function(t){return this.rootUrl+(t?"#/"+t:"")},e.prototype._routeChanged=function(t){this.win.location.replace(this.routeToFullUrl(t||"/"))},e.prototype._urlToRoute=function(t){var e=t.indexOf("#")+1;return e>-1?t.substring(e):"/"},e}(i);e.HashRouter=s;var a=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e.prototype.routeToFullUrl=function(t){var e=this.rootUrl.replace(/[^/]*/,this.win.location.protocol);return t?""+e+t:e},e.prototype._routeChanged=function(t){this.win.history.replaceState(t,"",this.routeToFullUrl(t))},e.prototype._urlToRoute=function(t){return""+("/"===this.rootUrl[this.rootUrl.length-1]?"":"/")+t.substring(this.rootUrl.length)},e}(i);e.HistoryRouter=a;var u=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e.prototype.routeToFullUrl=function(){return this.rootUrl},e.prototype._routeChanged=function(){},e.prototype._urlToRoute=function(){return"/"},e}(i);e.NoneRouter=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.getItem=function(t,e){var n;try{n=e.localStorage.getItem(t)}catch(t){n=null}return n},t.setItem=function(t,e,n){try{n.localStorage.setItem(t,e)}catch(t){}},t.removeItem=function(t,e){try{e.localStorage.removeItem(t)}catch(t){}},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(29),i=n(30),s=function(){function t(){}return t.createAdapter=function(t,e){return void 0===e&&(e=window),i.default.isPresent(e)?new i.default:t===r.default.Janrain?new o.default:void 0},t.existingProvider=function(t){return void 0===t&&(t=window),i.default.isPresent(t)?i.default.id(t):o.default.isPresent(t)?r.default.Janrain:null},t}();e.default=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id=i.default.Janrain,e.onLogin=function(){},e.onLoginCanceled=function(){},e.onLogout=function(){},e}return o(e,t),e.isPresent=function(t){return!!(t.janrain&&t.janrain.capture&&t.janrain.capture.ui&&t.janrain.events)},e.prototype.init=function(t){return t.janrain&&(this.addLoginHandlers(t.janrain),this.addModalHandlers(t.janrain),this.addLogoutHandlers(t.janrain)),this},e.prototype.requestLogin=function(t){t.janrain&&t.janrain.capture.ui.modal.open()},e.prototype.addModalHandlers=function(t){var e=this;t.events.onModalClose.addHandler((function(){return e.onLoginCanceled.call(void 0,{thirdPartyId:i.default.Janrain})}))},e.prototype.addLogoutHandlers=function(t){var e=this;t.events.onCaptureSessionEnded.addHandler((function(){return e.onLogout.call(void 0,{thirdPartyId:i.default.Janrain})})),t.events.onCaptureExpiredToken.addHandler((function(){return e.onLogout.call(void 0,{thirdPartyId:i.default.Janrain})})),t.capture.ui.hasActiveSession()||this.onLogout.call(void 0,{thirdPartyId:i.default.Janrain})},e.prototype.addLoginHandlers=function(t){var e=this,n=function(){return t.capture.ui.hasActiveSession()?e.onLogin.call(void 0,{thirdPartyId:i.default.Janrain,uuid:t.capture.ui.getReturnExperienceData("uuid")}):t.events.onCaptureRegistrationSuccess.addHandler(n)};t.events.onCaptureSessionFound.addHandler(n),t.events.onCaptureLoginSuccess.addHandler(n),n()},e}(n(4).ThirdPartyAdapter);e.default=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),u=n(4),c=n(31),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.auth=e.validateInterface(window.SecondStreetThirdPartyAuth)?window.SecondStreetThirdPartyAuth:void 0,n.id=n.auth?n.auth.id:a.default.Unknown,n.onLogin=function(){},n.onLoginCanceled=function(){},n.onLogout=function(){},n}return o(e,t),e.isPresent=function(t){return e.validateInterface(t.SecondStreetThirdPartyAuth)},e.id=function(t){return e.validateInterface(t.SecondStreetThirdPartyAuth)&&t.SecondStreetThirdPartyAuth.id||a.default.Unknown},e.prototype.init=function(){var t=this;if(!e.validateInterface(this.auth))return window.console.error("The object at window.SecondStreetThirdPartyAuth exists but appears not to implement the appropriate interface."),this;if(!this.auth)return window.console.error("Second Street Third Party Auth is not defined."),this;this.auth.addLoginHandler((function(e){var n=e.thirdPartyId,r=e.uuid,o=s(e,["thirdPartyId","uuid"]);return t.onLogin.call(void 0,i({thirdPartyId:n,uuid:r},o))})),this.auth.addLogoutHandler((function(e){var n=e.thirdPartyId;return t.onLogout.call(void 0,{thirdPartyId:n})})),void 0!==this.auth.loginStrategy&&this.auth.loginStrategy!==c.LoginStrategy.MyLoginUI||this.auth.addLoginCanceledHandler((function(e){var n=e.thirdPartyId;return t.onLoginCanceled.call(void 0,{thirdPartyId:n})}));var n=this.auth.isLoggedIn();return n?this.onLogin.call(void 0,n):this.onLogout.call(void 0,{thirdPartyId:this.auth.id}),this},e.prototype.requestLogin=function(){this.auth&&this.auth.requestLogin()},e.validateNoLoginUIInterface=function(t){return t&&t.loginStrategy===c.LoginStrategy.NoLoginUI&&"number"==typeof t.id&&"function"==typeof t.isLoggedIn&&"function"==typeof t.addLoginHandler&&"function"==typeof t.addLogoutHandler},e.validateMyLoginUIInterface=function(t){return t&&(void 0===t.loginStrategy||t.loginStrategy===c.LoginStrategy.MyLoginUI)&&"number"==typeof t.id&&"function"==typeof t.isLoggedIn&&"function"==typeof t.addLoginHandler&&"function"==typeof t.addLogoutHandler&&"function"==typeof t.addLoginCanceledHandler&&"function"==typeof t.requestLogin},e.validateInterface=function(t){return this.validateMyLoginUIInterface(t)||this.validateNoLoginUIInterface(t)},e}(u.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.NoLoginUI=0]="NoLoginUI",t[t.MyLoginUI=1]="MyLoginUI"}(e.LoginStrategy||(e.LoginStrategy={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={attrs:{guid:"data-opguid",init:"data-ss-init",embed:"data-ss-embed",routing:"data-routing",adRefresh:"data-ad-refresh",origin:"data-origin",rootUrl:"data-root-url",allowFullViewport:"data-allow-full-viewport",adgagement:"data-adgagement",topOffset:"data-top-offset",bottomOffset:"data-bottom-offset",hashParams:"data-hash-params"},src:{path:"embed/{{opGuid}}/",getPath:function(t){return this.path.replace("{{opGuid}}",t)}},errors:{noEmbed:'It appears your script tag is missing a data-ss-embed="promotion" attribute.'}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){for(var r=n.querySelectorAll(t),o=r.length-1;o>=0;o-=1){var i=r[o];if(!i.getAttribute(e)){if(i instanceof HTMLScriptElement)return{script:i,target:i};var s=i.getAttribute("data-script"),a=document.querySelector('script[data-ss-script="'+i.getAttribute("data-script")+'"]');if(s&&a)return{script:a,target:i}}}return null}}]);