// ### server injected code ### var gigya = window.gigya; if (typeof gigya == 'undefined' || !gigya.isGigya) { gigya = {isGigya: true}; } gigya.apiKey = '3_fA1lYde7bHFw4kAQ_VLT37l-OacxV6xOkYAn0KOPFjrXyrlrovPpV1toELQLABDp'; gigya.defaultApiDomain = 'gigya.com'; gigya.dataCenter = 'au1'; gigya.build = { "number": 13414, "version": "latest" }; gigya.gmidVersion = 'ver4'; if (typeof gigya.partnerSettings == 'undefined') { gigya.partnerSettings = { "authMode": "cookie", "captchaProvider": "Google", "siteGroupGlobalConf": "{\n // A comma-delimited list of provider names to enable.\n enabledProviders: '*',\n storageDomainOverride: 'login.abc.net.au',\n\n // Define the language of Gigya's user interface and error message.\n lang: 'en',\n \n // Bind globally to events.\n // See: http://developers.gigya.com/display/GD/Events#Events-OverridingtheDefaultEventMap\n customEventMap: {\n eventMap: [{\n events: '*',\n args: [function(e) {\n return e;\n }],\n method: function(e) {\n if (e.fullEventName === 'login') {\n // Handle login event here.\n } else if (e.fullEventName === 'logout') {\n // Handle logout event here.\n }\n }\n }]\n }\n}", "plugins": { "connectWithoutLoginBehavior": "loginExistingUser", "defaultRegScreenSet": "", "defaultMobileRegScreenSet": "", "sessionExpiration": 0, "rememberSessionExpiration": -2, "apiDomain": "au1.gigya.com", "workflow": { "path": "workflow/resources/js/entryPoint.js" } }, "ssoKey": "3_DHeg1ce5-HbfRNLEbQs6kLcA5kfRcyCq-3o7EJJgM8qCyMJzLQeqGmgeiuQJzD8b", "baseDomains": "abc-prod.net.au,abc-stage.net.au,abc-test.net.au,abc.net.au,secure-abc.net.au", "customAPIDomainPrefix": "login" }; } gigya.providersConfig = {}; gigya.samlConfig = { "errorPageURL": null, "proxyPageURL": null }; gigya.canary = gigya.canary || { isActive: false, config: { "version": "13406-3-27748185", "isEnabled": true, "probability": 3, "cookiesNames": { "isCanary": "gig_canary", "version": "gig_canary_ver" } } }; gigya.errorReport = { "enabled": true, "probability": 1 }; gigya.gmidVersion = 'ver4'; gigya.bypassCaptchaV1 = true; /*! For license information please see gigya.canary.loader.min.js.LICENSE.txt */ !function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=192)}({0:function(t,n,r){"use strict";r.r(n),function(t){r.d(n,"__extends",(function(){return o})),r.d(n,"__assign",(function(){return i})),r.d(n,"__rest",(function(){return a})),r.d(n,"__decorate",(function(){return c})),r.d(n,"__param",(function(){return u})),r.d(n,"__metadata",(function(){return f})),r.d(n,"__awaiter",(function(){return s})),r.d(n,"__generator",(function(){return l})),r.d(n,"__exportStar",(function(){return y})),r.d(n,"__values",(function(){return d})),r.d(n,"__read",(function(){return p})),r.d(n,"__spread",(function(){return h})),r.d(n,"__spreadArrays",(function(){return _})),r.d(n,"__await",(function(){return v})),r.d(n,"__asyncGenerator",(function(){return g})),r.d(n,"__asyncDelegator",(function(){return b})),r.d(n,"__asyncValues",(function(){return w})),r.d(n,"__makeTemplateObject",(function(){return m})),r.d(n,"__importStar",(function(){return P})),r.d(n,"__importDefault",(function(){return O})),r.d(n,"__classPrivateFieldGet",(function(){return x})),r.d(n,"__classPrivateFieldSet",(function(){return S}));var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,n)};function o(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var i=function(){return(i=t||function(t){for(var n,r=1,e=arguments.length;r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(n,r,a):o(n,r))||a);return i>3&&a&&Object.defineProperty(n,r,a),a}function u(t,n){return function(r,e){n(r,e,t)}}function f(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}function s(t,n,r,e){return new(r||(r=gigya.Promise))((function(o,i){function a(t){try{u(e.next(t))}catch(t){i(t)}}function c(t){try{u(e.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof r?n:new r((function(t){t(n)}))).then(a,c)}u((e=e.apply(t,n||[])).next())}))}function l(t,n){var r,e,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,e&&(o=2&i[0]?e.return:i[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,i[1])).done)return o;switch(e=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,e=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,o,i=r.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var t=[],n=0;n1||c(t,n)}))})}function c(t,n){try{(r=o[t](n)).value instanceof v?gigya.Promise.resolve(r.value.v).then(u,f):s(i[0][2],r)}catch(t){s(i[0][3],t)}var r}function u(t){c("next",t)}function f(t){c("throw",t)}function s(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}}function b(t){var n,r;return n={},e("next"),e("throw",(function(t){throw t})),e("return"),n[Symbol.iterator]=function(){return this},n;function e(e,o){n[e]=t[e]?function(n){return(r=!r)?{value:v(t[e](n)),done:"return"===e}:o?o(n):n}:o}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=t[Symbol.asyncIterator];return r?r.call(t):(t=d(t),n={},e("next"),e("throw"),e("return"),n[Symbol.asyncIterator]=function(){return this},n);function e(r){n[r]=t[r]&&function(n){return new gigya.Promise((function(e,o){(function(t,n,r,e){gigya.Promise.resolve(e).then((function(n){t({value:n,done:r})}),n)})(e,o,(n=t[r](n)).done,n.value)}))}}}function m(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}function P(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n.default=t,n}function O(t){return t&&t.__esModule?t:{default:t}}function x(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)}function S(t,n,r){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,r),r}}.call(this,r(0).__assign)},122:function(module,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:!0});var CookieProvider_1=__webpack_require__(193),Canary=function(){function Canary(t,n,r,e,o,i){void 0===r&&(r=new CookieProvider_1.CookieProvider),void 0===e&&(e=t.cookiesNames),void 0===o&&(o=function(){return new XMLHttpRequest}),void 0===i&&(i=function(){return 100*Math.random()}),this._config=t,this._scriptUrl=n,this._cookieProvider=r,this._cookiesNames=e,this._xhrFactory=o,this._random=i}return Canary.prototype.shouldCanary=function(){return-1===this._scriptUrl.indexOf("version=")&&(this.wasCanarySet()?"true"==this._cookieProvider.get(this._cookiesNames.isCanary):this.rollCanary())},Canary.prototype.wasCanarySet=function(){return this._cookieProvider.get(this._cookiesNames.isCanary)&&this._cookieProvider.get(this._cookiesNames.version)==this._config.version},Canary.prototype.rollCanary=function(){var t=this._random()<=this._config.probability;return this._cookieProvider.put(this._cookiesNames.isCanary,t.toString()),this._cookieProvider.put(this._cookiesNames.version,this._config.version),t},Canary.prototype.onCanaryLoadFail=function(){window.gigya.canary.isActive=!1},Canary.prototype.loadCanaryVersion=function(){var _this=this,xhr=this._xhrFactory();xhr.open("GET",this._scriptUrl+"&version=canary",!1),xhr.onload=function(res){var request=res.currentTarget;if(4!==request.readyState||200!==request.status)_this.onCanaryLoadFail();else try{window.gigya.canary.isLoaded=!0,eval(request.responseText),window.gigya.canary.isActive=!0}catch(t){_this.onCanaryLoadFail()}};try{xhr.send(null)}catch(t){this.onCanaryLoadFail()}},Canary.prototype.bootstrap=function(t){void 0===t&&(t=!window.gigya.canary.isActive),!this._config.probability||window.gigya.canary.isLoaded&&!window.gigya.canary.isActive?(this._cookieProvider.remove(this._cookiesNames.isCanary),this._cookieProvider.remove(this._cookiesNames.version)):t&&this.shouldCanary()&&this.loadCanaryVersion()},Canary}();exports.Canary=Canary},192:function(t,n,r){(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e,o,i=r(122),a=r(122);r(194),window.gigya.canary||(window.gigya.canary={}),t(window.gigya.canary,i),o=document.currentScript,new a.Canary(window.gigya.canary.config,null!==(e=null==o?void 0:o.src)&&void 0!==e?e:"").bootstrap()}).call(this,r(0).__assign)},193:function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(){}return t.prototype.get=function(t){try{var n=document.cookie.match(new RegExp(t+"=([^$;]*)"));return n?n[1]:null}catch(t){return null}},t.prototype.put=function(t,n){try{document.cookie=t+"="+n+";path=/;domain=."+location.hostname}catch(t){}},t.prototype.remove=function(t){try{document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;domain=."+location.hostname}catch(t){}},t}();n.CookieProvider=r},194:function(t,n){!function(t){var n=t.getElementsByTagName("script");"currentScript"in t||Object.defineProperty(t,"currentScript",{get:function(){try{throw new Error}catch(e){var t,r=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(e.stack)||[!1])[1];for(t in n)if(n[t].src==r||"interactive"==n[t].readyState)return n[t];return null}}})}(document)}}); if (gigya.canary && gigya.canary.isActive) {} else if (gigya.__initialized) { console.warn('**** gigya.js loaded twice ****'); } else { gigya.__initialized = true; // ### end server injected code ### // API adapters /*! For license information please see gigya.adapters.web.min.js.LICENSE.txt */ !function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=280)}({0:function(e,t,i){"use strict";i.r(t),function(e){i.d(t,"__extends",(function(){return o})),i.d(t,"__assign",(function(){return r})),i.d(t,"__rest",(function(){return a})),i.d(t,"__decorate",(function(){return s})),i.d(t,"__param",(function(){return u})),i.d(t,"__metadata",(function(){return c})),i.d(t,"__awaiter",(function(){return g})),i.d(t,"__generator",(function(){return d})),i.d(t,"__exportStar",(function(){return l})),i.d(t,"__values",(function(){return f})),i.d(t,"__read",(function(){return p})),i.d(t,"__spread",(function(){return h})),i.d(t,"__spreadArrays",(function(){return y})),i.d(t,"__await",(function(){return v})),i.d(t,"__asyncGenerator",(function(){return w})),i.d(t,"__asyncDelegator",(function(){return m})),i.d(t,"__asyncValues",(function(){return _})),i.d(t,"__makeTemplateObject",(function(){return b})),i.d(t,"__importStar",(function(){return S})),i.d(t,"__importDefault",(function(){return k})),i.d(t,"__classPrivateFieldGet",(function(){return I})),i.d(t,"__classPrivateFieldSet",(function(){return x}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function o(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var r=function(){return(r=e||function(e){for(var t,i=1,n=arguments.length;i=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function u(e,t){return function(i,n){t(i,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t,i,n){return new(i||(i=gigya.Promise))((function(o,r){function a(e){try{u(n.next(e))}catch(e){r(e)}}function s(e){try{u(n.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function d(e,t){var i,n,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function h(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(i=o[e](t)).value instanceof v?gigya.Promise.resolve(i.value.v).then(u,c):g(r[0][2],i)}catch(e){g(r[0][3],e)}var i}function u(e){s("next",e)}function c(e){s("throw",e)}function g(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function m(e){var t,i;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(i=!i)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new gigya.Promise((function(n,o){(function(e,t,i,n){gigya.Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)})(n,o,(t=e[i](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function I(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i}}.call(this,i(0).__assign)},10:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(32),r=i(7);t._popupContainers=[],t._pseudoContainers=[];var a=999999999,s=null;function u(){return++a}function c(e,t,i){e&&i&&(e.addEventListener?e.addEventListener(t,i,!0):e.attachEvent("on"+t,i))}function g(e,t,i){e&&i&&(e.removeEventListener?e.removeEventListener(t,i,!0):e.detachEvent("on"+t,i))}function d(){s&&(g(window,"hashchange",s),s=null,window.location.hash=window.location.hash.replace("|gigyaMobileDialog",""))}function l(e,t){void 0===t&&(t=window.document),t.body&&t.body.appendChild(e)}function f(e){var t=[];return"string"==typeof e.className&&(t=e.className.split(" ")),t}function p(e,t){if(!e)return!1;if(!t)return!0;if(!e.className)return!1;for(var i=!1,n=f(e),o=0;o=0;o--){var r=i[o],a=r.src.toLowerCase();if(""!==a)if(n.test(a)||a.indexOf("?apikey=")>-1)if(0===e.length||e.some((function(e){return a.indexOf(e)>-1}))){t=r;break}}return t},t.dispatch=function(e,t){var i;try{i=new Event(t)}catch(e){(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{})}e.dispatchEvent(i)},t.addButtonSubmitListener=function(e,t,i,n){void 0===i&&(i="click"),e&&(e.setAttribute("role","button"),"-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex","0"),c(e,i,(function(e){return t(e)})),c(e,"keydown",(function(e){13==(e.which||e.keyCode)&&(e.preventDefault(),t(e))})))},t.addEventListener=c,t.addActivationHandler=function(e,t){e&&t&&(this.addEventListener(e,"keydown",(function(e){"Space"!==e.code&&"Enter"!==e.code||t()})),this.addEventListener(e,"click",t))},t.removeEventListener=g,t.disableDefaultEventHandling=function(e){e.preventDefault?e.preventDefault():window.event&&(window.event.returnValue=!1)},t.addDialogBackListener=function(e){d(),s=function(t){t&&t.newURL&&-1==t.newURL.indexOf("|gigyaMobileDialog")&&(e(t),d())},window.setTimeout((function(){-1==window.location.hash.indexOf("|gigyaMobileDialog")&&(window.location.hash=window.location.hash+"|gigyaMobileDialog"),c(window,"hashchange",s)}),50)},t._removeDialogBackListener=d,t.prependToBody=function(e,t){void 0===t&&(t=window.document),t.body&&(t.body.insertBefore&&t.body.firstChild?t.body.insertBefore(e,t.body.firstChild):t.body.appendChild(e))},t.appendToBody=l,t.removeElement=function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},t.isChildOf=function(e,t){for(var i=e.parentNode;i;){if(t==i)return!0;i=i.parentNode}return!1},t.isVisible=function(e){for(;e;){var t=getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)return!1;e=e.parentElement}return!0},t.getCenteredDivID=function(e){return"gig_"+n.localInfo.initTime.getTime().toString()+"_"+e},t.createElementWithAttributes=function(e,t){var i=document.createElement(e);if(t)for(var n in t)i[n]=t[n];return i},t.createTopLevelDiv=function(e){var t=document.createElement("div");return null!=t.style.zIndex&&(t.style.zIndex=""+u()),t.innerHTML="",e&&(t.id=e),document.body&&(document.body.insertBefore&&document.body.firstChild?document.body.insertBefore(t,document.body.firstChild):document.body.appendChild&&document.body.appendChild(t)),t},t.hideByID=function(e){var t=document.getElementById(e);t&&(t.style.display="none")},t.showByID=function(e){var t=document.getElementById(e);t&&(t.style.display=n.localInfo.isIE6?"TD"==t.tagName?"table-cell":"TR"==t.tagName||"TABLE"==t.tagName?"":"block":"")},t.clearByID=function(e){try{var t=document.getElementById(e);null!=t&&(t.innerHTML="")}catch(e){}},t.getHTMLSize=function(e,t){var i=document.createElement("div");i.style.position="absolute",i.style.left="-1000px",i.innerHTML=e,t.appendChild(i);var n=i.offsetWidth,o=i.offsetHeight;return i.parentNode.removeChild(i),{w:n,h:o}},t.getElementsByClass=function(e,t,i){if(!e)return[];var n=[];i&&p(e,t)&&n.push(e);for(var o=e.getElementsByTagName("*"),r=0;r=0;o--)(n[o]===t||i&&-1!==n[o].indexOf(t))&&n.splice(o,1);e.className=n.join(" ")}},t.getClassNames=f,t.isElementClass=p,t.cancelEvent=function(e){e&&("cancelable"in e?e.preventDefault():e.returnValue=!1)},t.createElement=function(e,t){var i=document.createElement("div");return t=t||"",i.innerHTML="<"+e+' name="'+t+'" id="'+t+'">",i.firstChild},t.setSize=function(e,t,i,n){if(null!=e&&null!=e.style){if(t){var r=(t=""+t).indexOf("%")>0;if(!isNaN(t)||r){var a=""+(r?t:t+"px");e.style.width!=a&&(e.style.width=a)}}if(i){var s=(i=""+i).indexOf("%")>0;if(!isNaN(t)||s){var c=""+(s?i:i+"px");e.style.height!==c&&(e.style.height=c)}}if(n&&t&&i){(null==e.style.zIndex||n)&&(e.style.zIndex=""+u());var g=o.getInnerSize(),d=o.getScroll(),l=d.top,f=d.left;e.style.top=Math.max(0,l+Math.floor((g.h-i)/2))+"px",e.style.left=Math.max(0,f+Math.floor((g.w-t)/2))+"px",e.style.visibility=""}}},t.createHiddenIframe=function(e){var t=document.createElement("iframe");return t.src=e,t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",document.body?l(t):r.invokeOnPageLoad((function(){l(t)})),t},t.attributeEncode=function(e){return e.replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'")},t.manipulateAttributes=function(e,t,i,n){void 0===n&&(n=function(){return!0}),e.forEach((function(e){e.attributes&&Array.prototype.slice.call(e.attributes).forEach((function(e){n(e)&&(e.value=e.value.replace(t,i))}))}))},t.textNodesUnder=function(e){for(var t,i=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);t=n.nextNode();)i.push(t);return i},t.isHTMLBooleanAttribute=function(e){return["autocomplete","autofocus","checked","disabled","hidden","readonly","required","selected"].indexOf(e)>-1},t.isBelongToGigyaFieldset=function e(t){return!(!t||t instanceof HTMLFormElement)&&(!!p(t.parentElement,"gigya-fieldset")||e(t.parentElement))},t.getClosestElement=function(e,t,i){for(void 0===i&&(i=document),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);e&&e!==i;e=e.parentNode)if(null==e?void 0:e.matches(t))return e;return null},t.createElementFromTemplate=function(e){var t;void 0===e&&(e="");var i=document.createElement("div");return i.innerHTML=e,null!==(t=i.firstChild)&&void 0!==t?t:i}},109:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(80),r=i(61),a=i(5),s=function(e){function t(t,i,n,o,r){void 0===o&&(o={}),void 0===r&&(r={});var a=e.call(this,t,i,n,o)||this;return a.headers={},a.xhttp=new XMLHttpRequest,a.setRequestHeaders(r),a}return n.__extends(t,e),t.prototype.performSend=function(e,t){var i=this;return new gigya.Promise((function(t,n){var o,a=i.getFullUrl();i.xhttp.onload=function(){return i.onRequestLoad(t,n)},i.xhttp.onerror=function(){return n(i.createErrorFromResponse("XHR_FAILURE - http request onerror event"))},i.xhttp.withCredentials=!0,e===r.RequestType.POST&&(a=i.getUrl().href,o=window.gigya.utils.keyValue.serialize(i.params),i.headers["Content-Type"]="application/x-www-form-urlencoded"),i.xhttp.open(e,a,!0),Object.keys(i.headers).forEach((function(e){i.xhttp.setRequestHeader(e,i.headers[e])})),i.xhttp.send(o)}))},t.prototype.onRequestLoad=function(e,t){var i;try{i=JSON.parse(this.xhttp.responseText)}catch(e){window.gigya.logger.report("XHR_FAILURE - failed to parse the response object",{responseText:this.xhttp.responseText})}4===this.xhttp.readyState&&(null==i?void 0:i.statusCode)?e(this.handleResponse(i)):t(this.createErrorFromResponse("XHR_FAILURE - http request failed"))},t.prototype.createErrorFromResponse=function(e){return{errorMessage:e,status:this.xhttp.status,readyState:this.xhttp.readyState,responseText:this.xhttp.responseText}},t.prototype.addDefaultParams=function(){e.prototype.addDefaultParams.call(this),this.params.format="json",a.FlagService.useHttpStatusCode&&this.settings.useHttpStatusCodes&&(this.params.httpStatusCodes=!0)},t.prototype.networkErrorResponse=function(){return this.handleResponse({errorCode:500026,errorMessage:"Network_error"})},t.prototype.dispose=function(){},t.prototype.setRequestHeaders=function(e){var t=this,i=["Authorization"];Object.keys(e).filter((function(e){return-1!==i.indexOf(e)})).forEach((function(i){var n=e[i];Boolean(n)&&"string"==typeof n&&(t.headers[i]=n)}))},t}(o.Request);t.XhrRequest=s},11:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(2),a=i(13),s=function(){function e(){}return e.getName=function(){return"AbstractAdapter"},e.prototype.setObject=function(e,t){this.setItem(e,o.serialize(t))},e.prototype.getObject=function(e,t){return o.deserialize(this.getItem(e),t)},e.prototype.isPersistent=function(){return!0},e}();t.AbstractLocalStorageAdapter=s;var u=function(e){function t(){var t=e.call(this)||this;return t.isLoaded=!1,t}return n.__extends(t,e),t.prototype.isReady=function(){return this.isLoaded},t.prototype.waitForService=function(e){var t=this;this.isReady()?e():setTimeout((function(){return t.waitForService(e)}),50)},t}(s);t.AbstractAsyncLocalStorageAdapter=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t,i){try{this.storage[e]=t}catch(e){}},t.prototype.removeItem=function(e){this.storage.removeItem(e)},t}(s),g=function(e){function t(){var t=e.call(this)||this;return t.storage=window.localStorage,t}return n.__extends(t,e),t.getName=function(){return"LocalStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsLocalStorage},t}(c),d=function(e){function t(){var t=e.call(this)||this;return t.storage=window.sessionStorage,t}return n.__extends(t,e),t.getName=function(){return"SessionStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsSessionStorage},t}(c),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.isAvailable=function(){return r.localInfo.isFF&&window.globalStorage},t.getName=function(){return"FirefoxStorageAdapter"},t.prototype.getItem=function(e){return window.globalStorage[location.hostname][e]},t.prototype.setItem=function(e,t,i){try{window.globalStorage[location.hostname][e]=t}catch(e){}},t.prototype.removeItem=function(e){delete window.globalStorage[location.hostname][e]},t}(s),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.isAvailable=function(){return a.default.canSaveCookie()},t.getName=function(){return"CookieStorageAdapter"},t.prototype.getItem=function(e){return a.default.get(e)},t.prototype.setItem=function(e,t,i,n,o){void 0===o&&(o={}),a.default.set(e,t,i,n,o.dontUseRootPath,o.sameSite)},t.prototype.removeItem=function(e){a.default.remove(e)},t}(s);t.CookieStorageAdapter=f;var p=function(e){function t(){var t=e.call(this)||this;return t.memory={},t}return n.__extends(t,e),t.isAvailable=function(){return!0},t.getName=function(){return"MemoryStorageAdapter"},t.prototype.getItem=function(e){return this.memory[e]},t.prototype.setItem=function(e,t,i){this.memory[e]=t},t.prototype.removeItem=function(e){delete this.memory[e]},t.prototype.isPersistent=function(){return!1},t}(s);function h(e){var i=e.getName()||e.name;return t.instances[i]||(t.instances[i]=new e),t.instances[i]}function y(e){for(var i,n=0,o=t.adapters;n0;if(d===g)return!0;var l=n.localInfo.pageDomain;return(g=this._setCookieInternal(e,t,s,c,l,a))===d},e.prototype.get=function(e){return this._cookieStore.getCookie(e)},e.prototype.remove=function(e,t){void 0===t&&(t=n.localInfo.pageDomain),this._removeFromBaseDomains(e,t),this.set(e,"",-1,"",!1),this.set(e,"",-1,"",!0)},e.prototype.getInfiniteExpirationTimeInSeconds=function(){return 31536e3},e.prototype.canSaveCookie=function(t){void 0===t&&(t=null);try{return this.set(e.testCookieName,"true",1,t,null)}catch(e){return!1}},e.prototype.getDefaultDomain=function(e,t){return void 0===e&&(e=n.localInfo.pageDomain),void 0===t&&(t=n.localInfo.baseDomain||""),t.length>0&&e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length?t:e},e.prototype._getExpirationInMs=function(e){return null==e||""===e||isNaN(e)?1e3*this.getInfiniteExpirationTimeInSeconds():0==e?null:1e3*e},e.prototype._setCookieInternal=function(t,i,o,r,a,s){var u;void 0===s&&(s=e._getSameSiteMode());var c=0===(null!==(u=null===n.localInfo||void 0===n.localInfo?void 0:n.localInfo.protocol)&&void 0!==u?u:document.location.protocol).indexOf("https");return this._cookieStore.setCookie(t,i,{path:o,expires:r,domain:a,sameSite:s,secure:c}),!!this.get(t)||!!s&&(this._cookieStore.setCookie(t,i,{path:o,expires:r,domain:a,secure:c}),!!this.get(t)&&(window.gigya.logger.report("Cookie established only without sameSite mode",{name:t,value:i,sameSiteMode:s},!1),!0))},e.prototype._removeFromBaseDomains=function(e,t){for(var i=t.split("."),n=0;n-1||o.indexOf("iPad; CPU OS 12")>-1||o.indexOf("Macintosh; Intel Mac OS X 10_14")>-1&&o.indexOf("Version/")>-1&&o.indexOf("Safari")>-1||o.indexOf("Chrome/5")>-1&&o.indexOf("Chrome/6")>-1},e.testCookieName="gig3pctest",e}();t.CookieUtils=r,t.default=new r},14:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(9),o=i(4);t.serialize=function(e,t){var i=[];for(var r in t||(t="&"),e)switch(typeof e[r]){case"function":break;case"object":null!=e[r]&&i.push(r+"="+n.URLEncode(o.serialize(e[r])));break;case"undefined":break;default:i.push(r+"="+n.URLEncode(e[r]))}return i.join(t)},t.deserialize=function(e,t,i,o){var r={};if(!e)return r;t||(t="&");for(var a=e.split(t),s=0;s0;){var r=o.splice(0,1)[0];try{r.func.apply(this,r.args)}catch(i){"object"==typeof console&&console.log&&console.log("Gigya: Exception while invoking queued method ("+t+": "+e+")")}if(n(t)){i[t].q=o;break}}}},t.hold=function(e,t){window.gigya.logger.debug("locking queue "+t+" by "+e),i[t]||(i[t]={q:[],ids:{}}),i[t].ids[e]=!0},t.waitFor=o,t.queueForExecution=function(e,t,i){i=i||[],n(e)?o(e,t,i):t.apply(this,i)}},2:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=navigator.userAgent.toLowerCase();t.localInfo={baseDomain:"",isBrowserSupportsFilesAPI:"function"==typeof FileReader||"object"==typeof FileReader,initTime:new Date,version:0,pageDomain:document.location.hostname,protocol:"http:"==document.location.protocol?"http":"https",userAgent:o,isWin:-1!=o.indexOf("win"),isIE:-1!=o.indexOf("msie")||-1!=o.indexOf("mozilla")&&-1!=o.indexOf("trident"),isIE6:-1!=o.indexOf("msie 6."),isIE7:-1!=o.indexOf("msie 7."),isIE8:-1!=o.indexOf("msie 8."),isIE9:-1!=o.indexOf("msie 9."),isIE10:-1!=o.indexOf("msie 10."),isIE11:-1!=o.indexOf("mozilla")&&-1!=o.indexOf("trident/7.0"),isEdgeLegacy:-1!=o.indexOf("edge"),isEdge:RegExp(/edg(?!e)/).test(o),isIOS:-1!=o.indexOf("iphone")||-1!=o.indexOf("ipad")||-1!=o.indexOf("ipod"),isSafari534:-1!=o.indexOf("safari/534"),isWeChat:-1!=o.indexOf("micromessenger"),iosVersion:-1!=o.indexOf("applewebkit")&&-1!=o.indexOf("version/")?parseInt(o.split("version/")[1].split(" ")[0]):0,isAndroid:-1!=o.indexOf("android"),isAndroidBrowser:function(e){if(-1===e.indexOf("mozilla/5.0"))return!1;if(-1===e.indexOf("android 4"))return!1;if(-1===e.indexOf("applewebkit"))return!1;if(-1!==e.indexOf("windows phone"))return!1;var t=/chrome\/(\d+)/.exec(e);return!t||parseInt(t[1])<20}(o),currentBrowser:"",androidVersion:-1!=o.indexOf("android")?parseFloat(o.slice(o.indexOf("android")+8)):0,isChrome:-1!=o.indexOf("chrome")&&-1==o.indexOf("edg"),isGoogleBot:-1!=o.indexOf("googlebot"),isFF:-1!=o.indexOf("firefox"),isOpera:-1!=o.indexOf("opera"),isSafari:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("safari")&&-1==navigator.appVersion.toLowerCase().indexOf("chrome")&&-1==o.indexOf("android"),isIOSWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isIOSChrome:-1!=o.indexOf("crios"),isMAC:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("mac"),isWindowsPhone:-1!=o.indexOf("windows phone"),isFacebookBrowser:-1!=o.indexOf("fban")||-1!=o.indexOf("fbav"),supportsPostMessage:null!=window.postMessage&&(-1==o.indexOf("msie")||-1!=o.indexOf("iemobile")),supportsLocalStorage:!1,supportsSessionStorage:!1,supportsFlash:function(){var e=!1;try{if(navigator.mimeTypes&&null!=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)e=!0;else new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=!0)}catch(e){}return e}(),quirksMode:"BackCompat"==document.compatMode&&-1!=o.indexOf("msie"),backCompat:"BackCompat"==document.compatMode,isMobile:function(){var e=["iphone","ipod","android","midp","240x320","blackberry","netfront","nokia","panasonic","portalmmm","sharp","sie-","sonyericsson","symbian","windows ce","benq","mda","mot-","opera mini","philips","pocket pc","sagem","samsung","htc"];for(var t in e)if(-1!=o.indexOf(e[t]))return!0;return!1}(),isMobileApp:function(){if(!document.getElementsByTagName)return!1;for(var e=document.getElementsByTagName("meta"),t=0;t1?window.gigya.utils.keyValue.deserialize(n[1])[t]:null}},t.setBearerToken=function(e){window.gigya.logger.info("setting a new Bearer token"),u="Bearer "+e},t.getBearerToken=function(){return u},t.removeBearerToken=function(){window.gigya.logger.info("Bearer token removed"),u=null}},26:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return Object.defineProperty(e.prototype,"_toggles",{get:function(){var e,t;return(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.toggles)||{}},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return void 0!==this._toggles[e]},e.prototype.get=function(e){return this._toggles[e]},e.prototype.isOn=function(e){return this.has(e)&&this.get(e)},e}();t.default=new i},27:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isExplicitTrue=function(e){var t=(""+e).toLowerCase();return"true"==t||"1"==t},t.isExplicitFalse=function(e){var t=(""+e).toLowerCase();return"false"==t||"0"==t},t.isLaterThanNow=function(e){return e>(new Date).getTime()},t.allDefinedOrAllUndefined=function(){for(var e=[],t=0;t0?[4,this.init(t,i-1)]:[3,14];case 13:return[2,n.sent()];case 14:return window.gigya.logger.error("error bootstrapping sdk",{type:"bootstrap failed",scope:"WebAdapter.init",error:_}),window.gigya.logger.debug("removing bootstrap indication"),this.getStorage().removeItem(e.bootstrapIndicationCookieName(window.gigya.thisScript.APIKey)),b={status:"FAIL_TO_BOOTSTRAP",statusMessage:"Web SDK failed to bootstrap",errorCode:500026,errorMessage:"Web SDK failed to bootstrap: "+(_.message||_)},window.gigya.events.dispatchErrorFromResponse({eventName:"init"},b),window.gigya.events.global.dispatchWhenHandlersAdded(["accounts.error","socialize.error"],b),t(),[3,15];case 15:return[2]}}))}))},e.prototype.bootstrapApiService=function(e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this._apiService.bootstrap(e)];case 1:return t=n.sent(),[3,3];case 2:return i=n.sent(),window.gigya.logger.error("error bootstrapping sdk",{type:"webSdkBootstrap failed",scope:"ApiService.bootstrap",ex:i}),window.gigya.events.global.dispatchWhenHandlersAdded(["accounts.error","socialize.error"],{status:"FAIL_TO_BOOTSTRAP",statusMessage:"Web SDK bootstrap failure - APIService bootstrap",errorCode:500026,errorMessage:"Web SDK bootstrap failure: "+(i.message||i)}),[3,3];case 3:return(null==t?void 0:t.ticketInfo)?this.setGmidTicket(t.ticketInfo):(null==t?void 0:t.hasGmid)&&(this.bootstrapIndication=t.hasGmid,p.siteData.didForcedBootstrap=l.FlagService.forceWebSdkBootstrap?t.hasGmid:null),[2]}}))}))},e.prototype.syncCanaryWithSSO=function(){var e;return n.__awaiter(this,void 0,void 0,(function(){var t,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:return t=this.getStorage().getItem(window.gigya.canary.config.cookiesNames.isCanary),i=this.getStorage().getItem(window.gigya.canary.config.cookiesNames.version),[4,null===(e=this._ssoService)||void 0===e?void 0:e.syncCanaryIndication(t,i)];case 1:return 0===(null==(o=n.sent())?void 0:o.errorCode)&&((null==o?void 0:o.isCanary)!==t&&this.getStorage().setItem(window.gigya.canary.config.cookiesNames.isCanary,o.isCanary),(null==o?void 0:o.canaryVersion)!==i&&this.getStorage().setItem(window.gigya.canary.config.cookiesNames.version,o.canaryVersion)),[2]}}))}))},e.prototype.createApiService=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i,o,r,a,c,g,f;return n.__generator(this,(function(n){switch(n.label){case 0:return t=window.gigya.thisScript.globalConf.storageProtocolOverride||"https",i=window.gigya.logger.configKey+"="+encodeURIComponent(JSON.stringify(window.gigya.logger.getConfig())),o=t+"://"+d.getStorageDomain()+"/gs/webSdk/Api.aspx?apiKey="+encodeURIComponent(window.gigya.thisScript.APIKey)+"&version="+window.gigya.build.version+"&build="+window.gigya.build.number+"#origin="+document.location.href+"&"+i,window.gigya.logger.info("opening api frame"),r=new s.ServiceProxy(o),window.gigya.logger.info("creating api service"),[4,r.init("Api Service")];case 1:if(a=n.sent(),window.gigya.partnerSettings.plugins.apiDomain=a.apiDomain,window.gigya._.getApiDomain=window.gigya._.apiDomainFactory(a.apiDomain,window.gigya.defaultApiDomain),c=window.gigya._.Uri.parse(a.apiDomain),window.gigya.logger.info("api domain is: "+c),window.gigya.logger.info("api domain is "+(a.isGroupApiDomain?"":"not ")+"group domain"),g="false"===window.gigya.thisScript.URLParams.bootstrap,!c.isBaseOf(o)||g||window.gigya.thisScript.globalConf.storageDomainOverride){if(window.gigya.logger.info("closing api frame"),r.stop(!0).then((function(){return window.gigya.logger.info("api frame closed")})),g?e=!0:a.hasGroupApiDomainChanged&&(e=!1),f=!0,l.FlagService.alwaysCheckCookieSave)try{f=window.gigya._.Uri.parse(window.gigya.localInfo.baseDomain||"").isBaseOf(c.domain)}catch(e){window.gigya.logger.report("Error evaluating first party domain",{baseDomain:window.gigya.localInfo.baseDomain,apiDomain:c.domain})}return window.gigya.logger.info("create and work with api service from top frame"),[2,new u.ApiService(window.gigya.thisScript.APIKey,e,{originDomain:location.href,isGroupApiDomain:a.isGroupApiDomain,getApiDomain:window.gigya._.getApiDomain,isApiDomainFirstParty:f,hasGroupApiDomainChanged:!1,canSaveGmidAsCookie:a.canSaveGmidAsCookie})]}return window.gigya.logger.info("api domain is gigya's so keep working with frame"),[2,r.wrapWith(u.ApiService)]}}))}))},e.prototype.isSessionValid=function(e,t){var i=this;void 0===e&&(e={}),o.setFromGAC(e,(function(){t&&t(i.hasSessionToken(e))}))},e.prototype.hasSessionToken=function(e){return void 0===e&&(e={}),null!=o.get(e.APIKey)||null!=e.oauth_token},e.prototype.registerForNamespaceEvents=function(e){},e.prototype.onPluginEvent=function(e){},e.prototype.onJSLog=function(e,t){},e.prototype.sendRequest=function(e,t,i,o){return void 0===o&&(o={}),n.__awaiter(this,void 0,void 0,(function(){var a,s,u,c=this;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.beforeRequest(e,t,o)];case 1:return n.sent(),a=function(e,t){c.afterResponse(u,e,(function(){"function"==typeof t&&t(window.gigya.utils.object.clone(e,!0))}))},s=function(e){a(e,i)},(u=new r.ApiRequest(e,t,s,o)).send(),window.gigya._.logoutMethods[e]&&window.gigya._.logoutBehaviour.logoutBeforeServerResponse&&this.clearSession(t),[2]}}))}))},e.prototype.clearSession=function(e,t){o.remove(e.APIKey),t&&t()},e.prototype.setGltexpFromSSO=function(e){var t;return void 0===e&&(e=window.gigya.thisScript.APIKey),n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(i){switch(i.label){case 0:return!window.gigya.partnerSettings.ssoKey||o.isValidGltExp()?[3,2]:[4,null===(t=this._ssoService)||void 0===t?void 0:t.getTokenExpiration()];case 1:if(0===(null==(e=i.sent())?void 0:e.errorCode)&&e.gltexp&&o.isValidGltExp(e.gltexp))return o.setGltexp(e.gltexp),[2,!0];i.label=2;case 2:return[2,!1]}}))}))},e.prototype.sendOauthRequest=function(e,t,i,n){var o=this;this.beforeRequest(e,t,n);var r="https://"+window.gigya._.getApiDomain("socialize"),s=new a.OauthRequest("",r,e,t,(function(e){o.afterResponse(s,e,(function(e){"0"!=e.errorCode?i(e):o.bootstrapApiService().then((function(){return i(e)}))}))}),n);s.send()},e.prototype.beforeRequest=function(e,t,i){var r,a;return void 0===i&&(i={}),n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){return(i.clearSession||i.clearSessionCondition&&i.clearSessionCondition(t))&&(window.gigya.logger.info("clearing session before request for "+e),o.remove(t.APIKey)),-2===Number(t.sessionExpiration)&&(null===(a=null===(r=window.gigya.thisScript)||void 0===r?void 0:r.globalConf)||void 0===a?void 0:a.storageDomainOverride)&&(window.gigya.logger.info("session expiration -2 was converted to 1 year fixed expiration"),t.sessionExpiration=window.gigya.utils.cookie.getInfiniteExpirationTimeInSeconds()),[2]}))}))},e.prototype.afterResponse=function(e,t,i){return n.__awaiter(this,void 0,void 0,(function(){var o=this;return n.__generator(this,(function(n){switch(n.label){case 0:return"Missing cookie"!=t.errorDetails&&"Session is invalid (Missing DeviceId)"!=t.errorDetails&&"Missing required parameter: gcid or ucid cookie"!=t.errorDetails?[3,2]:(window.gigya.logger.info("missing cookie error - forcing bootstrap"),[4,this.bootstrapApiService(!0)]);case 1:return n.sent(),window.gigya.logger.info("resending request"),e.send(),[2];case 2:this.handleTokenResponse(e,t,(function(){o.logoutSsoIfNeeded(e,t,(function(){i(t)}))})),n.label=3;case 3:return[2]}}))}))},e.prototype.onSDKEvent=function(e){},e.prototype.getTokenParam=function(e,t){return o.getTokenParam(e,t)},e.prototype.establishSession=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,t=this;return n.__generator(this,(function(i){switch(i.label){case 0:return"sso.login"!==(e=window.gigya.utils.URL.getParamsFromURL(document.location.href)).gig_actions||this.hasSessionToken()||!e.authCode?[3,2]:[4,o.setFromAuthCode(e.authCode)];case 1:return i.sent(),[2,this.hasSessionToken()];case 2:return[4,new gigya.Promise((function(e){return t.isSessionValid(void 0,(function(t){return e(t)}))}))];case 3:return[2,i.sent()]}}))}))},e.prototype.checkReturnFromURL=function(){var e;return n.__awaiter(this,void 0,void 0,(function(){var t,i,r,a,s,u=this;return n.__generator(this,(function(n){switch(n.label){case 0:return t=window.gigya.utils.URL.getParamsFromURL(document.location.href),i=new RegExp(v.GIGYA_INTERNAL_PARAM_PREFIX+"|"+v.GIGYA_PARAM_PREFIX),r=window.gigya.utils.object.removePropertiesPrefix(t,i),"sso.login"!==(a=t.gig_actions)||t.authCode||this.syncSsoLogin(r),"magicLink"!==a?[3,2]:[4,this.handleMagicLink(r)];case 1:n.sent(),n.label=2;case 2:return"confirmInvite"===a&&y.checkGroupInvitation(r),t.gig_events?(200009==t.errorCode&&window.gigya.accounts.finalizeRegistration({regToken:t.regToken,callback:function(){var e;return null===(e=u._ssoService)||void 0===e?void 0:e.setToken(o.get(),t.expires_in)}}),0!=t.errorCode||null==o.get()?[3,4]:(window.gigya.logger.info("returned from redirection with error code"),[4,null===(e=this._ssoService)||void 0===e?void 0:e.setToken(o.get(),t.expires_in)])):[2];case 3:n.sent(),s=t.gig_events.split(","),-1!==window.gigya.utils.array.indexOf(s,"accounts.login")?window.gigya.accounts.getAccountInfo({extraProfileFields:"samlData",include:window.gigya.utils.stringUtils.mergeCommaSeparatedValues("profile,data,userinfo",window.gigya.thisScript.globalConf.include),callback:function(e){var t={errorCode:0,eventName:"accounts.login"};if(window.gigya.utils.object.extractProperties(e,t,"signature|UIDSig|timestamp|UIDSignature|signatureTimestamp|UID|profile|data|id_token"),window.gigya.events.global.dispatchWhenHandlerAdded(t),-1!==window.gigya.utils.array.indexOf(s,"socialize.login")){var i=window.gigya._.addUserInfoToEvent(e,{errorCode:0,eventName:"socialize.login"},!0);window.gigya.events.global.dispatchWhenHandlerAdded(i)}}}):window.gigya.socialize.getUserInfo({signIDs:!0,extraFields:"samlData",callback:function(e){for(var t=0;tr.length&&t()},s=0;sn)return null;if(void 0===e||null==e)return o.default.isOn("removeUndefinedProperties")?e:null;if("function"==typeof e&&i)return null;if(e.constructor==Array){for(var u=[],c=0;c>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(u=0,i){case 3:u^=(255&e.charCodeAt(c+2))<<16;case 2:u^=(255&e.charCodeAt(c+1))<<8;case 1:o^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return o^=e.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0},t.clone=a,t.merge=function e(t,i){for(var n={},o=0;o=t.left&&e.right<=t.left+o.w},t.isRectFullyVisible=function(e){var t=i(),o=n();return e.top>=t.top&&e.bottom<=t.top+o.h&&e.left>=t.left&&e.right<=t.left+o.w},t.scrollIntoView=function(e){e&&e.scrollIntoView&&e.scrollIntoView()}},35:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(47),r=i(22),a=i(23),s=i(5),u=i(49),c=0;t._requestTimeout=3e3;var g=function(){function e(){}return e.getInstance=function(t){return void 0===t&&(t=window.gigya.partnerSettings.ssoKey),n.__awaiter(this,void 0,void 0,(function(){var i,a,c,g;return n.__generator(this,(function(n){switch(n.label){case 0:return this._instance?[3,7]:t?[3,1]:[2,null];case 1:if(!s.FlagService.loadSsoFrameOnlyOnce)return[3,6];i=window.gigya.utils.keyValue.serialize({APIKey:t,version:window.gigya.build.version,build:window.gigya.build.number||-1,sourceKey:window.gigya.thisScript.APIKey}),a="https://"+r.getStorageDomain()+"/gs/sso.htm?"+i,n.label=2;case 2:return n.trys.push([2,4,,5]),[4,(c=new u.ServiceProxy(a)).init("SSO")];case 3:return n.sent(),this._instance=c.wrapWith(o.Sso),[3,5];case 4:return g=n.sent(),window.gigya.logger.error("error initialize sso frame",{scope:"SsoService.init",error:g}),this._instance=new e,[3,5];case 5:return[3,7];case 6:this._instance=new e,n.label=7;case 7:return[2,this._instance]}}))}))},e.prototype.checkTokenRenew=function(e){return new gigya.Promise((function(t){w({loginToken:e,callback:t})}))},e.prototype.getToken=function(){return new gigya.Promise((function(e){l({callback:e})}))},e.prototype.getTokenExpiration=function(){return new gigya.Promise((function(e){v({callback:e})}))},e.prototype.logout=function(){return new gigya.Promise((function(e){p({callback:e})}))},e.prototype.removeToken=function(){return new gigya.Promise((function(e){h({callback:e})}))},e.prototype.setGroupContext=function(e){return new gigya.Promise((function(t){_({groupContext:e,callback:t})}))},e.prototype.setToken=function(e,t,i){return new gigya.Promise((function(n){f({lt:e,expiration:t,gltexp:i,callback:n})}))},e.prototype.setTokenExpiration=function(e,t){return void 0===t&&(t=!0),new gigya.Promise((function(i){y({loginTokenExp:e,callback:i},t)}))},e.prototype.syncCanaryIndication=function(e,t){return new gigya.Promise((function(i){m({isCanary:e,canaryVersion:t,callback:i})}))},e.prototype.getGroupApiDomain=function(){return new gigya.Promise((function(e){S({callback:e})}))},e.prototype.setGroupApiDomain=function(e){return new gigya.Promise((function(t){b({callback:t,domain:e})}))},e}();function d(e,i){if(window.gigya.partnerSettings.ssoKey){var n,o,u;n=i?window.gigya.utils.object.clone(i):{};var g=function(e){window.gigya.logger.debug("cleaning sso iframe"),o.parentNode.removeChild(o),clearTimeout(u),e&&(e.errorCode&&"string"==typeof e.errorCode&&(e.errorCode=Number(e.errorCode)),e.expires_in&&"string"==typeof e.expires_in&&(e.expires_in=Number(e.expires_in))),i&&i.callback&&i.callback(e)};n.m=e,n.d=window.gigya.localInfo.protocol+"://"+document.location.hostname,document.location.port&&(n.d+=":"+document.location.port),n.callbackID="gig_sso_cb"+(new Date).getTime()+"_"+c++,n.sAPIKey=window.gigya.thisScript.APIKey,n[window.gigya.logger.configKey]=JSON.stringify(window.gigya.logger.getConfig());var d=window.gigya.utils.keyValue.serialize(n),l=function(i){void 0===i&&(i=0),window.gigya.utils.xd.addMessageListener(n.callbackID,{},!1,g,window.gigya._.MessagingMethod.PostMessage),o=function(e){var t;s.FlagService.hideSSOFrame?t=a.createIframe("SSO Frame"):(t=document.createElement("iframe"),window.gigya.localInfo.isIOS||window.gigya.localInfo.isIOSChrome||window.gigya.localInfo.isAndroid?(t.style.width="0px",t.style.height="0px",t.style.display="none"):(t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px"));return t.id="gig_sso_"+e,window.gigya.utils.functions.addSrcToIFrameIfNeeded(t),t}(n.callbackID);var c=function(){u=setTimeout((function(){i<=0?window.gigya.logger.error("SSO Communication Timeout",{IE11PrivateMode:window.gigya.localInfo.isIE11&&!window.indexedDB,mode:e}):(window.gigya.utils.xd.removeMessageListener(n.callbackID),window.gigya.utils.DOM.removeElement(o),l(i-1))}),t._requestTimeout);var a=window.gigya.utils.keyValue.serialize({APIKey:window.gigya.partnerSettings.ssoKey,ssoSegment:window.gigya.partnerSettings.ssoSegment||"",version:window.gigya.build.version,build:window.gigya.build.number||-1});o.src="https://"+r.getStorageDomain()+"/gs/sso.htm?"+a+"#"+d,window.gigya.utils.DOM.removeEventListener(o,"load",c)};window.gigya.utils.DOM.addEventListener(o,"load",c),window.gigya.logger.debug("opening sso iframe",n),document.body?window.gigya.utils.DOM.appendToBody(o):window.gigya.utils.functions.invokeOnPageLoad((function(){return window.gigya.utils.DOM.appendToBody(o)}))};l(3)}else i&&i.callback&&i.callback({})}function l(e){window.gigya.logger.info("trying to get sso group login token"),d("getToken",{callback:function(i){t._storedLoginTokenExp=i.gltexp,e&&e.callback&&e.callback(i)}})}function f(e){e.gltexp||(e.gltexp=window.gigya.utils.cookie.get("gltexp_"+window.gigya.thisScript.APIKey)),d("setToken",e)}function p(e){d("logout",e)}function h(e){d("removeToken",e)}function y(e,i){void 0===i&&(i=!0),i&&t._storedLoginTokenExp&&e.loginTokenExp===t._storedLoginTokenExp?e.callback&&e.callback({gltexp:t._storedLoginTokenExp}):(t._storedLoginTokenExp=e.loginTokenExp,d("setLoginTokenExp",e))}function v(e){d("getLoginTokenExp",e)}function w(e){window.gigya.logger.info("verifying login token with sso group"),d("checkTokenRenew",e)}function m(e){d("syncCanaryIndication",e)}function _(e){d("setGroupContext",e)}function b(e){d("setGroupApiDomain",e)}function S(e){d("getGroupApiDomain",e)}t.SsoService=g,t._request=d,t.getGroupToken=l,t.setGroupToken=f,t.logout=p,t.removeGroupToken=h,t.setLoginTokenExp=y,t.getLoginTokenExp=v,t.checkTokenRenew=w,t.syncCanaryIndication=m,t.setGroupContextCookie=_,t.setGroupApiDomain=b,t.getGroupApiDomain=S},36:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(11),r=i(3),a=i(51),s=function(){function e(){}return Object.defineProperty(e,"SITE_PREFERENCES_KEY",{get:function(){return window.gigya.apiKey+"_preferences"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"SITE_GIG_KEY",{get:function(){return window.gigya.apiKey+"_gig"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"didForcedBootstrap",{get:function(){return this.getDataByKey(e.SITE_GIG_KEY).didForcedBootstrap||null},set:function(t){this.setDataByKey(e.SITE_GIG_KEY,{didForcedBootstrap:t})},enumerable:!0,configurable:!0}),e.prototype.getPreferredLoginMethod=function(t){var i,n,o,r;if(!t)return"";var a=this.getDataByKey(e.SITE_PREFERENCES_KEY);return null!==(r=null===(o=(null!==(n=null===(i=null==a?void 0:a.authentication)||void 0===i?void 0:i.usersPreferredLoginMethods)&&void 0!==n?n:[]).find((function(e){return e.identifier===t})))||void 0===o?void 0:o.preferredLoginMethod)&&void 0!==r?r:""},e.prototype.setPreferredLoginMethod=function(t,i){var o,r;if(i){var a=this.getDataByKey(e.SITE_PREFERENCES_KEY),s=n.__spreadArrays(null!==(r=null===(o=null==a?void 0:a.authentication)||void 0===o?void 0:o.usersPreferredLoginMethods)&&void 0!==r?r:[]),u=s.some((function(e){return e.identifier===i}));this.isMaxLimitUsersPreferredLoginMethodsReached(s)&&!u&&(s=this.removeOldestUserPreferredLoginMethod(s)),u||(s=this.addUserPreferredLoginMethod(s,{identifier:i,preferredLoginMethod:t})),u&&(s=this.refreshExistingUserPreferredLoginMethod({authMethod:t,identifier:i,usersPreferredLoginMethods:s})),this.setDataByKey(e.SITE_PREFERENCES_KEY,{authentication:{usersPreferredLoginMethods:s}})}},e.prototype.setScreenVariant=function(t,i,n,o){var r,a,s;this.setDataByKey(e.SITE_PREFERENCES_KEY,((r={})[t]={screens:(a={},a[i]=(s={},s[n]={variant:o},s),a)},r))},e.prototype.getScreenVariant=function(t,i,n){var o,r,a,s,u=this.getDataByKey(e.SITE_PREFERENCES_KEY);return null===(s=null===(a=null===(r=null===(o=null==u?void 0:u[t])||void 0===o?void 0:o.screens)||void 0===r?void 0:r[i])||void 0===a?void 0:a[n])||void 0===s?void 0:s.variant},e.prototype.getDataByKey=function(e){return o.getObject(e,{})},e.prototype.setDataByKey=function(e,t){var i=this.getDataByKey(e);try{o.setObject(e,r.removeUndefined(a(i,t)))}catch(t){window.gigya.logger.report("Failed to save local site data",{error:t,key:e})}},e.prototype.refreshExistingUserPreferredLoginMethod=function(e){var t=e.usersPreferredLoginMethods,i=e.identifier,n=e.authMethod,o=this.removeUserPreferredLoginMethod(t,i);return this.addUserPreferredLoginMethod(o,{identifier:i,preferredLoginMethod:n})},e.prototype.removeUserPreferredLoginMethod=function(e,t){return e.filter((function(e){return e.identifier!==t}))},e.prototype.isMaxLimitUsersPreferredLoginMethodsReached=function(e){return 10===e.length},e.prototype.removeOldestUserPreferredLoginMethod=function(e){var t=e[0];return this.removeUserPreferredLoginMethod(e,null==t?void 0:t.identifier)},e.prototype.addUserPreferredLoginMethod=function(e,t){return n.__spreadArrays(e,[t])},e}();t.SiteDataService=s,t.siteData=new s},37:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},39:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),o=i(27),r=i(48),a=i(11),s=i(14),u=i(40),c=i(9),g=["gigya-api.com","gigya-api.cn","gigya.com","my.gigya-ext.com","localhost"],d=function(){function e(e,t){void 0===e&&(e=r.default),void 0===t&&(t=g),this._global=e,this._defaultValidDomains=t}return e.prototype.getPageUrl=function(){return this._global.documentLocation().toString()},e.prototype.isValidDomain=function(e,t){for(var i=n.Uri.parse(t).domain,o=e.concat(this._defaultValidDomains),r=0;r=0&&s===i.length-a.length&&(0===s||"."===i.charAt(s-1)||"/"===i.charAt(s-1)))return!0}return!1},e.prototype.sendMessage=function(e,t,i){var n="";for(var o in e)null!=e[o]&&(n+=escape(o+"="+encodeURIComponent(e[o])+"&"));this._global.postMessageToParent(t+"="+n,i)},e.prototype.isValidGltExp=function(e){return u.isValid(e)},e.prototype.getMaxGltExp=function(e,t){return u.getMax(e,t)},e.prototype.decodeUrl=function(e){return c.URLDecodeRecursive(e)},e.prototype.deserialize=function(e){return s.deserialize(e)},e.prototype.getCookiesStorage=function(){return a.initializeAdapter(a.CookieStorageAdapter)},e.prototype.validations=function(){return o},e.prototype.UriFactory=function(e,t){return void 0===t&&(t=!0),new n.Uri(e,t)},e.prototype.getFragment=function(){var e=this.getPageUrl();return-1!==e.indexOf("#")?e.split("#")[1]:null},e}();t.SsoUtils=d},4:function(module,exports){function serialize(e,t,i,n,o){if(void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===n&&(n=0),void 0===o&&(o=20),window.gigya.localInfo.isIE8){if(n||(n=0),n>o)return"[Too deep]";var r="",a="",s="";if(i){s="\t",a="\n";for(var u=0;uDate.now()},t.getMax=function(){for(var e=[],t=0;t(new Date).getTime()?c.response:(s(t),null);if(!c)return r.hold("cache","cache_"+t),null}catch(e){}return null},t.remove=s},43:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(10),r=i(6);t.redirect=function(e,t,i,a,s){if(void 0===s&&(s=window.document),i&&"post"==i.toLowerCase()){var u=s.createElement("form"),c=[];u.setAttribute("accept-charset","UTF-8"),u.setAttribute("method","POST"),u.setAttribute("action",e),a&&u.setAttribute("target",a);var g=n.merge(t);for(var d in g)"number"!=typeof g[d]&&"boolean"!=typeof g[d]&&"string"!=typeof g[d]||"eventName"==d||c.push('");u.innerHTML=c.join(""),u.style.display="none",o.appendToBody(u,s),u.submit()}else{for(var l=new r.Uri(e),f={},p=0;pr&&(o=Date.now()-1e3)),a=this._storage.getItem(this._storageKey+"_gltexp"),s=this._storage.getItem(this._storageKey+"_context"),u=a||"1"===this._storage.getItem(this._storageKey+"_session"),isNaN(o)||!(0===o&&!u||o>0&&(new Date).getTime()>o)?[3,2]:[4,this.removeToken()];case 1:n.sent(),t=void 0,n.label=2;case 2:return t?(this._markSiteVisited(),c={errorCode:e,login_token:t,expires_in:0===o?0:Math.round((o-(new Date).getTime())/1e3)},s&&(c.groupContext=s),0===o&&a&&(c.gltexp=a),[2,c]):[2,{errorCode:403005}]}}))}))},e.prototype.setToken=function(e,t,i){var o;return n.__awaiter(this,void 0,void 0,(function(){var r,a,s;return n.__generator(this,(function(n){switch(n.label){case 0:return e=e.split("|")[0],r=null===(o=this._storage.getItem(this._storageKey))||void 0===o?void 0:o.split("|")[0],e!==r&&this._markRevokedLoginToken(r),e&&this._storage.setItem(this._storageKey,e),t&&(0===(a="string"==typeof t&&t?Number(t):t)?t=0:(s=void 0,s=a?1e3*Number(a):31536e6,a=Date.now()+s),this._storage.setItem(this._storageKey+"_exp",""+a),0===t&&this._storage.setItem(this._storageKey+"_session","1",0)),void 0===i?[3,2]:[4,this.setTokenExpiration(i)];case 1:n.sent(),n.label=2;case 2:return e?[4,this._markSiteVisited()]:[3,4];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},e.prototype.setGroupContext=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return this._storage.setItem(this._storageKey+"_context",JSON.stringify(e)),[2]}))}))},e.prototype.setTokenExpiration=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i,o;return n.__generator(this,(function(n){switch(n.label){case 0:return this._utils.isValidGltExp(e)?[3,1]:(this._storage.removeItem(this._storageKey+"_gltexp"),e=null,[3,3]);case 1:return i=(t=this._utils).getMaxGltExp,o=[e],[4,this.getTokenExpiration()];case 2:e=i.apply(t,o.concat([n.sent().gltexp])),this._storage.setItem(this._storageKey+"_gltexp",e),this._storage.removeItem(this._storageKey+"_exp"),n.label=3;case 3:return[2,{errorCode:0,gltexp:e}]}}))}))},e.prototype.getTokenExpiration=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return this._storage.getItem(this._storageKey)?[2,{errorCode:0,gltexp:this._storage.getItem(this._storageKey+"_gltexp")}]:[2,{errorCode:403005}]}))}))},e.prototype.checkTokenRenew=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getToken()];case 1:return t=n.sent(),i=this._storage.getItem(this._storageKey+"_revoked_tokens")||"",i.indexOf(e)>=0?[3,3]:[4,this.setToken(e)];case 2:return n.sent(),[2,{errorCode:0}];case 3:return 0===t.errorCode&&i.indexOf(t.login_token)<0?(t.errorCode=403032,[2,t]):[2,{errorCode:403025}];case 4:return[2]}}))}))},e.prototype.syncCanaryIndication=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){var i,o,r,a,s;return n.__generator(this,(function(n){return this._canaryKey&&this._canaryVerKey?(i=this._storage.getItem(this._canaryKey),o=this._storage.getItem(this._canaryVerKey),r={errorCode:0,isCanary:e,canaryVersion:t},this._utils.validations().allDefinedOrAllUndefined(i,o)?this._utils.validations().allDefinedOrAllUndefined(e,t)?(a=this._parseCanaryVersionSignature(t),s=this._parseCanaryVersionSignature(o),a.timestamp>s.timestamp?(this._storage.setItem(this._canaryKey,e),this._storage.setItem(this._canaryVerKey,t)):(r.isCanary=i,r.canaryVersion=o),[2,r]):[2,{errorCode:400006,isCanary:i,canaryVersion:o}]:(r.errorCode=400006,[2,r])):[2,{errorCode:500033}]}))}))},e.prototype._markSiteVisited=function(){var e=this._storageKey+"_visited",t=this._storage.getItem(e)||"";-1===t.indexOf(this._siteApiKey)&&(t+=","+this._siteApiKey),this._storage.setItem(e,t)},e.prototype._markRevokedLoginToken=function(e){if(e){var t=this._storageKey+"_revoked_tokens",i=this._storage.getItem(t)||"",n=i.split(",");n.length>3&&n.splice(1,1),(i=n.join(",")).indexOf(e)<0&&(i+=","+e),this._storage.setItem(t,i)}},e.prototype._getLogoutURLs=function(){var e=this._storage.getItem(this._storageKey+"_visited");if(!e)return"";var t=[];for(var i in this._ssoConfig.logoutURLs)-1!==e.indexOf(","+i)&&t.push(this._ssoConfig.logoutURLs[i]);return t.join(",")},e.prototype._createKey=function(e){return e+"_"+this._apiKey+(this._ssoSegment?"_"+this._ssoSegment:"")},e.prototype._parseCanaryVersionSignature=function(e){var t={build:0,probability:0,timestamp:-1};if(!e)return t;var i=e.split("-");return i.length<3?t:{build:Number(i[0]),probability:Number(i[1]),timestamp:Number(i[2])}},e}();t.Sso=r},48:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.documentLocation=function(){return document.location},e.prototype.postMessageToParent=function(e,t,i){window.parent.postMessage(e,t,i)},e}();t.GlobalProvider=i,t.default=new i},49:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(23),r=function(){function e(e,t,i,n,r,a){var s=this;void 0===t&&(t=6e4),void 0===i&&(i=o.generateId),void 0===n&&(n=o.createIframe),void 0===r&&(r=function(){return new gigya.Promise((function(e){document.body?e(document.body):document.addEventListener("DOMContentLoaded",(function(){return e(document.body)}))}))}),void 0===a&&(a=window),this.url=e,this.timeout=t,this._idCreator=i,this._iframeCreator=n,this.getIframeHost=r,this._win=a,this._pendingReqs=[],this._mutationObservers=[],this.onResponse=function(e){var t=window.gigya.utils.JSON.parse(e.data);t&&s._pendingReqs[t.id]&&s.validateOrigin(e.origin)&&(s._pendingReqs[t.id](t),delete s._pendingReqs[t.id])}}return Object.defineProperty(e.prototype,"isInit",{get:function(){return Boolean(this._iframe)},enumerable:!0,configurable:!0}),e.prototype.init=function(e){var t=this;return this.isInit?gigya.Promise.reject("proxy already initialized"):new gigya.Promise((function(i,n){t._iframe=t._iframeCreator(e),t._iframe.src=t.url,t.getIframeHost().then((function(e){t._iframeHost=e,t._iframeHost.appendChild(t._iframe),window.gigya.logger.isEnabled&&t.startObservingIFrameRemoval();var o=t._win.setTimeout((function(){return n("proxy init timeout")}),t.timeout),r=function(e){if(t.validateOrigin(e.origin)){var a=t._tryParseResponse(e.data);if(null==a?void 0:a.signal)switch(t._win.clearTimeout(o),t._win.removeEventListener("message",r,!0),a.signal){case"listening":t._win.addEventListener("message",t.onResponse,!0),i(a.res);break;case"error":case"stop":n(a.res);break;default:n("unsupported response")}}};t._win.addEventListener("message",r,!0)}))}))},e.prototype.validateOrigin=function(e){return o.validateOrigin(this._iframe.src,e)},e.prototype.postToIFrame=function(e){var t=this.registerMessage(e),i="object"==typeof e?JSON.stringify(e):e;return this._iframe.contentWindow.postMessage(i,this._iframe.src),t},e.prototype.registerMessage=function(e,t){var i=this;return void 0===t&&(t=this.timeout),new gigya.Promise((function(n,o){var r=i._win.setTimeout((function(){o("proxy request timeout")}),t);i._pendingReqs[e.id]=function(e){i._win.clearTimeout(r),"error"===e.signal?o(e.res):n(e.res)}}))},e.prototype.sendRequest=function(e,t){return this.postToIFrame({id:this._idCreator(),methodName:e,params:t})},e.prototype.stop=function(e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var t,i;return n.__generator(this,(function(n){switch(n.label){case 0:if(this.isInit)return[3,1];throw"proxy is not active";case 1:t=void 0,n.label=2;case 2:return n.trys.push([2,4,5,6]),[4,this.postToIFrame({id:this._idCreator(),signal:"stop"})];case 3:return[2,n.sent()];case 4:throw i=n.sent(),t=i,i;case 5:return t&&!e||(this._mutationObservers&&this._mutationObservers.length&&this.stopObservingIFrameRemoval(),this._win.removeEventListener("message",this.onResponse,!0),this._iframeHost.removeChild(this._iframe),delete this._iframe),[7];case 6:return[2]}}))}))},e.prototype.wrapWith=function(e){var t;if("function"==typeof e)t=o.getAllClassMethodsNames(e);else if(e instanceof Array)t=e;else{if("object"!=typeof e)throw"unsupported type for wrapper";t=Object.keys(e)}return this.proxyFromKeys(t)},e.prototype.proxyFromKeys=function(e){var t=this,i={};return e.forEach((function(e){return i[e]=function(){for(var i=[],n=0;n-1},H.prototype.set=function(e,t){var i=this.__data__,n=Q(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},W.prototype.clear=function(){this.size=0,this.__data__={hash:new V,map:new(q||H),string:new V}},W.prototype.delete=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t},W.prototype.get=function(e){return ue(this,e).get(e)},W.prototype.has=function(e){return ue(this,e).has(e)},W.prototype.set=function(e,t){var i=ue(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},X.prototype.clear=function(){this.__data__=new H,this.size=0},X.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},X.prototype.get=function(e){return this.__data__.get(e)},X.prototype.has=function(e){return this.__data__.has(e)},X.prototype.set=function(e,t){var i=this.__data__;if(i instanceof H){var n=i.__data__;if(!q||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new W(n)}return i.set(e,t),this.size=i.size,this};var ee,te=function(e,t,i){for(var n=-1,o=Object(e),r=i(e),a=r.length;a--;){var s=r[ee?a:++n];if(!1===t(o[s],s,o))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=I.call(e,F),i=e[F];try{e[F]=void 0;var n=!0}catch(e){}var o=P.call(e);n&&(t?e[F]=i:delete e[F]);return o}(e):function(e){return P.call(e)}(e)}function ne(e){return Se(e)&&"[object Arguments]"==ie(e)}function oe(e){return!(!be(e)||function(e){return!!x&&x in e}(e))&&(me(e)?O:n).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function re(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}(e);var t=de(e),i=[];for(var n in e)("constructor"!=n||!t&&I.call(e,n))&&i.push(n);return i}function ae(e,t,i,n,o){e!==t&&te(t,(function(r,a){if(o||(o=new X),be(r))!function(e,t,i,n,o,r,a){var s=le(e,i),u=le(t,i),c=a.get(u);if(c)return void $(e,i,c);var g=r?r(s,u,i+"",e,t,a):void 0,d=void 0===g;if(d){var l=ye(u),f=!l&&we(u),p=!l&&!f&&ke(u);g=u,l||f||p?ye(s)?g=s:Se(m=s)&&ve(m)?g=function(e,t){var i=-1,n=e.length;t||(t=Array(n));for(;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:Te);function pe(e,t){return e===t||e!=e&&t!=t}var he=ne(function(){return arguments}())?ne:function(e){return Se(e)&&I.call(e,"callee")&&!M.call(e,"callee")},ye=Array.isArray;function ve(e){return null!=e&&_e(e.length)&&!me(e)}var we=G||function(){return!1};function me(e){if(!be(e))return!1;var t=ie(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var ke=p?function(e){return function(t){return e(t)}}(p):function(e){return Se(e)&&_e(e.length)&&!!r[ie(e)]};function Ie(e){return ve(e)?J(e,!0):re(e)}var xe,Pe=(xe=function(e,t,i){ae(e,t,i)},se((function(e,t){var i=-1,n=t.length,o=n>1?t[n-1]:void 0,r=n>2?t[2]:void 0;for(o=xe.length>3&&"function"==typeof o?(n--,o):void 0,r&&function(e,t,i){if(!be(i))return!1;var n=typeof t;return!!("number"==n?ve(i)&&ge(t,i.length):"string"==n&&t in i)&&pe(i[t],e)}(t[0],t[1],r)&&(o=n<3?void 0:o,n=1),e=Object(e);++i0&&window.setTimeout((function(){t.send()}),i)},e.prototype.getCacheKey=function(){return this.method+"_"+window.gigya.utils.keyValue.serialize(this.params)},e.prototype.getFullUrl=function(){return this.getUrl().addToSearch(this.getFlattenParams()).href},e.prototype.addDefaultParams=function(){var e,t;this.params.sdk="js_"+((null===(e=window.gigya.build)||void 0===e?void 0:e.version)||""),this.params.sdkBuild=(null===(t=window.gigya.build)||void 0===t?void 0:t.number)||0},e.prototype.isRequestPathManipulated=function(){return this.getUrl().href.toLowerCase()!==(this.baseDomain+"/"+this.method).toLowerCase()||this.getUrl().search.length>0},e.prototype.getDataPendingTimeout=function(e){return e<=4?500:e<=8?1e3:e<=21?2e3:e<=39?5e3:-1},e.prototype.getRequestType=function(){return this.isForcePost||this.haveSensitiveParams()||this.requestOversize()?o.RequestType.POST:o.RequestType.GET},Object.defineProperty(e.prototype,"isForcePost",{get:function(){return this.settings.forcePost},enumerable:!0,configurable:!0}),e.prototype.requestOversize=function(){var e=this.getRequestUrlLength(),t=this.getUrlLengthFields();return e+t.extraLength>t.maxLength},e.prototype.getRequestUrlLength=function(){return(this.getUrl().href+window.gigya.utils.keyValue.serialize(this.getFlattenParams())).length},e.prototype.getUrlLengthFields=function(){var e=0;return(window.gigya.localInfo.isIE||window.gigya.localInfo.isEdgeLegacy)&&(e=2048),{extraLength:e,maxLength:4096}},e.prototype.getFlattenParams=function(){return window.gigya.utils.keyValue.deserialize(window.gigya.utils.keyValue.serialize(this.params))},e.prototype.haveSensitiveParams=function(){var e;if(!s.FlagService.forcePostForSensitiveParams)return!1;for(var t=0,i=null===a.sensitiveParamsOverride||void 0===a.sensitiveParamsOverride?void 0:a.sensitiveParamsOverride.split("|");t1&&(a+="#"+n[1]),a};t.getContextParamsFromUrl=function(e){var t=e||{},i=t.url,n=t.paramPrefix,o=t.unacceptableParams;return i?function(e,t){if(!t)return e;var i={};return Object.entries(e||{}).filter((function(e){var i=e[0];return!t.test(i)})).forEach((function(e){var t=e[0],n=e[1];return i[t]=n})),i}(window.gigya.utils.URL.getGigParamsFromURL({url:i,paramPrefix:n}),o):{}}}}); /*! For license information please see gigya.adapters.mobile.min.js.LICENSE.txt */ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=277)}({0:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return f})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return h})),n.d(t,"__await",(function(){return m})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return b})),n.d(t,"__makeTemplateObject",(function(){return _})),n.d(t,"__importStar",(function(){return S})),n.d(t,"__importDefault",(function(){return O})),n.d(t,"__classPrivateFieldGet",(function(){return x})),n.d(t,"__classPrivateFieldSet",(function(){return I}));var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=e||function(e){for(var t,n=1,o=arguments.length;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,o){t(n,o,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,o){return new(n||(n=gigya.Promise))((function(i,r){function a(e){try{u(o.next(e))}catch(e){r(e)}}function s(e){try{u(o.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((o=o.apply(e,t||[])).next())}))}function f(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof m?gigya.Promise.resolve(n.value.v).then(u,c):l(r[0][2],n)}catch(e){l(r[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function w(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:m(e[o](t)),done:"return"===o}:i?i(t):t}:i}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new gigya.Promise((function(o,i){(function(e,t,n,o){gigya.Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}.call(this,n(0).__assign)},11:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4),r=n(2),a=n(13),s=function(){function e(){}return e.getName=function(){return"AbstractAdapter"},e.prototype.setObject=function(e,t){this.setItem(e,i.serialize(t))},e.prototype.getObject=function(e,t){return i.deserialize(this.getItem(e),t)},e.prototype.isPersistent=function(){return!0},e}();t.AbstractLocalStorageAdapter=s;var u=function(e){function t(){var t=e.call(this)||this;return t.isLoaded=!1,t}return o.__extends(t,e),t.prototype.isReady=function(){return this.isLoaded},t.prototype.waitForService=function(e){var t=this;this.isReady()?e():setTimeout((function(){return t.waitForService(e)}),50)},t}(s);t.AbstractAsyncLocalStorageAdapter=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t,n){try{this.storage[e]=t}catch(e){}},t.prototype.removeItem=function(e){this.storage.removeItem(e)},t}(s),l=function(e){function t(){var t=e.call(this)||this;return t.storage=window.localStorage,t}return o.__extends(t,e),t.getName=function(){return"LocalStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsLocalStorage},t}(c),f=function(e){function t(){var t=e.call(this)||this;return t.storage=window.sessionStorage,t}return o.__extends(t,e),t.getName=function(){return"SessionStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsSessionStorage},t}(c),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.isAvailable=function(){return r.localInfo.isFF&&window.globalStorage},t.getName=function(){return"FirefoxStorageAdapter"},t.prototype.getItem=function(e){return window.globalStorage[location.hostname][e]},t.prototype.setItem=function(e,t,n){try{window.globalStorage[location.hostname][e]=t}catch(e){}},t.prototype.removeItem=function(e){delete window.globalStorage[location.hostname][e]},t}(s),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.isAvailable=function(){return a.default.canSaveCookie()},t.getName=function(){return"CookieStorageAdapter"},t.prototype.getItem=function(e){return a.default.get(e)},t.prototype.setItem=function(e,t,n,o,i){void 0===i&&(i={}),a.default.set(e,t,n,o,i.dontUseRootPath,i.sameSite)},t.prototype.removeItem=function(e){a.default.remove(e)},t}(s);t.CookieStorageAdapter=p;var g=function(e){function t(){var t=e.call(this)||this;return t.memory={},t}return o.__extends(t,e),t.isAvailable=function(){return!0},t.getName=function(){return"MemoryStorageAdapter"},t.prototype.getItem=function(e){return this.memory[e]},t.prototype.setItem=function(e,t,n){this.memory[e]=t},t.prototype.removeItem=function(e){delete this.memory[e]},t.prototype.isPersistent=function(){return!1},t}(s);function v(e){var n=e.getName()||e.name;return t.instances[n]||(t.instances[n]=new e),t.instances[n]}function h(e){for(var n,o=0,i=t.adapters;o0;if(f===l)return!0;var d=o.localInfo.pageDomain;return(l=this._setCookieInternal(e,t,s,c,d,a))===f},e.prototype.get=function(e){return this._cookieStore.getCookie(e)},e.prototype.remove=function(e,t){void 0===t&&(t=o.localInfo.pageDomain),this._removeFromBaseDomains(e,t),this.set(e,"",-1,"",!1),this.set(e,"",-1,"",!0)},e.prototype.getInfiniteExpirationTimeInSeconds=function(){return 31536e3},e.prototype.canSaveCookie=function(t){void 0===t&&(t=null);try{return this.set(e.testCookieName,"true",1,t,null)}catch(e){return!1}},e.prototype.getDefaultDomain=function(e,t){return void 0===e&&(e=o.localInfo.pageDomain),void 0===t&&(t=o.localInfo.baseDomain||""),t.length>0&&e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length?t:e},e.prototype._getExpirationInMs=function(e){return null==e||""===e||isNaN(e)?1e3*this.getInfiniteExpirationTimeInSeconds():0==e?null:1e3*e},e.prototype._setCookieInternal=function(t,n,i,r,a,s){var u;void 0===s&&(s=e._getSameSiteMode());var c=0===(null!==(u=null===o.localInfo||void 0===o.localInfo?void 0:o.localInfo.protocol)&&void 0!==u?u:document.location.protocol).indexOf("https");return this._cookieStore.setCookie(t,n,{path:i,expires:r,domain:a,sameSite:s,secure:c}),!!this.get(t)||!!s&&(this._cookieStore.setCookie(t,n,{path:i,expires:r,domain:a,secure:c}),!!this.get(t)&&(window.gigya.logger.report("Cookie established only without sameSite mode",{name:t,value:n,sameSiteMode:s},!1),!0))},e.prototype._removeFromBaseDomains=function(e,t){for(var n=t.split("."),o=0;o-1||i.indexOf("iPad; CPU OS 12")>-1||i.indexOf("Macintosh; Intel Mac OS X 10_14")>-1&&i.indexOf("Version/")>-1&&i.indexOf("Safari")>-1||i.indexOf("Chrome/5")>-1&&i.indexOf("Chrome/6")>-1},e.testCookieName="gig3pctest",e}();t.CookieUtils=r,t.default=new r},2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=navigator.userAgent.toLowerCase();t.localInfo={baseDomain:"",isBrowserSupportsFilesAPI:"function"==typeof FileReader||"object"==typeof FileReader,initTime:new Date,version:0,pageDomain:document.location.hostname,protocol:"http:"==document.location.protocol?"http":"https",userAgent:i,isWin:-1!=i.indexOf("win"),isIE:-1!=i.indexOf("msie")||-1!=i.indexOf("mozilla")&&-1!=i.indexOf("trident"),isIE6:-1!=i.indexOf("msie 6."),isIE7:-1!=i.indexOf("msie 7."),isIE8:-1!=i.indexOf("msie 8."),isIE9:-1!=i.indexOf("msie 9."),isIE10:-1!=i.indexOf("msie 10."),isIE11:-1!=i.indexOf("mozilla")&&-1!=i.indexOf("trident/7.0"),isEdgeLegacy:-1!=i.indexOf("edge"),isEdge:RegExp(/edg(?!e)/).test(i),isIOS:-1!=i.indexOf("iphone")||-1!=i.indexOf("ipad")||-1!=i.indexOf("ipod"),isSafari534:-1!=i.indexOf("safari/534"),isWeChat:-1!=i.indexOf("micromessenger"),iosVersion:-1!=i.indexOf("applewebkit")&&-1!=i.indexOf("version/")?parseInt(i.split("version/")[1].split(" ")[0]):0,isAndroid:-1!=i.indexOf("android"),isAndroidBrowser:function(e){if(-1===e.indexOf("mozilla/5.0"))return!1;if(-1===e.indexOf("android 4"))return!1;if(-1===e.indexOf("applewebkit"))return!1;if(-1!==e.indexOf("windows phone"))return!1;var t=/chrome\/(\d+)/.exec(e);return!t||parseInt(t[1])<20}(i),currentBrowser:"",androidVersion:-1!=i.indexOf("android")?parseFloat(i.slice(i.indexOf("android")+8)):0,isChrome:-1!=i.indexOf("chrome")&&-1==i.indexOf("edg"),isGoogleBot:-1!=i.indexOf("googlebot"),isFF:-1!=i.indexOf("firefox"),isOpera:-1!=i.indexOf("opera"),isSafari:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("safari")&&-1==navigator.appVersion.toLowerCase().indexOf("chrome")&&-1==i.indexOf("android"),isIOSWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isIOSChrome:-1!=i.indexOf("crios"),isMAC:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("mac"),isWindowsPhone:-1!=i.indexOf("windows phone"),isFacebookBrowser:-1!=i.indexOf("fban")||-1!=i.indexOf("fbav"),supportsPostMessage:null!=window.postMessage&&(-1==i.indexOf("msie")||-1!=i.indexOf("iemobile")),supportsLocalStorage:!1,supportsSessionStorage:!1,supportsFlash:function(){var e=!1;try{if(navigator.mimeTypes&&null!=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)e=!0;else new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=!0)}catch(e){}return e}(),quirksMode:"BackCompat"==document.compatMode&&-1!=i.indexOf("msie"),backCompat:"BackCompat"==document.compatMode,isMobile:function(){var e=["iphone","ipod","android","midp","240x320","blackberry","netfront","nokia","panasonic","portalmmm","sharp","sie-","sonyericsson","symbian","windows ce","benq","mda","mot-","opera mini","philips","pocket pc","sagem","samsung","htc"];for(var t in e)if(-1!=i.indexOf(e[t]))return!0;return!1}(),isMobileApp:function(){if(!document.getElementsByTagName)return!1;for(var e=document.getElementsByTagName("meta"),t=0;t-1},e.prototype.isLogLevelSupported=function(e){return-1!=window.gigya.utils.array.indexOf(this.settings.logLevel,"*")||-1!=window.gigya.utils.array.indexOf(this.settings.logLevel,e)},e.prototype.setGltexpFromSSO=function(e){return gigya.Promise.resolve(!1)},e.prototype.obfuscate=function(e){return"base64"===this.obfuscationStrategy?btoa(e):e},e.prototype.unobfuscate=function(e,t){if("base64"===this.obfuscationStrategy){var n=atob(e);return t?JSON.parse(n):n}return e},e}();t.MobileAdapter=s},279:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.showPlugin=function(e,t){var n=e.split("."),o=n.splice(n.length-1,1)[0];n.length||(n=["socialize"]),"commentsUI"==e&&(n=["comments"]);var i="show"+window.gigya.utils.stringUtils.capitalize(o);n.push(i);for(var r=window.gigya;r&&n.length;)r=r[n.shift()];if("function"!=typeof r)return window.gigya.events.dispatchInvalidParamError(window.gigya.utils.object.merge([{plugin:e},t]),"plugin");r(t)}},4:function(module,exports){function serialize(e,t,n,o,i){if(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===o&&(o=0),void 0===i&&(i=20),window.gigya.localInfo.isIE8){if(o||(o=0),o>i)return"[Too deep]";var r="",a="",s="";if(n){s="\t",a="\n";for(var u=0;u=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,i){return new(n||(n=gigya.Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function g(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function h(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof y?gigya.Promise.resolve(n.value.v).then(c,u):l(r[0][2],n)}catch(e){l(r[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function m(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new gigya.Promise((function(i,o){(function(e,t,n,i){gigya.Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function I(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}.call(this,n(0).__assign)},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=navigator.userAgent.toLowerCase();t.localInfo={baseDomain:"",isBrowserSupportsFilesAPI:"function"==typeof FileReader||"object"==typeof FileReader,initTime:new Date,version:0,pageDomain:document.location.hostname,protocol:"http:"==document.location.protocol?"http":"https",userAgent:o,isWin:-1!=o.indexOf("win"),isIE:-1!=o.indexOf("msie")||-1!=o.indexOf("mozilla")&&-1!=o.indexOf("trident"),isIE6:-1!=o.indexOf("msie 6."),isIE7:-1!=o.indexOf("msie 7."),isIE8:-1!=o.indexOf("msie 8."),isIE9:-1!=o.indexOf("msie 9."),isIE10:-1!=o.indexOf("msie 10."),isIE11:-1!=o.indexOf("mozilla")&&-1!=o.indexOf("trident/7.0"),isEdgeLegacy:-1!=o.indexOf("edge"),isEdge:RegExp(/edg(?!e)/).test(o),isIOS:-1!=o.indexOf("iphone")||-1!=o.indexOf("ipad")||-1!=o.indexOf("ipod"),isSafari534:-1!=o.indexOf("safari/534"),isWeChat:-1!=o.indexOf("micromessenger"),iosVersion:-1!=o.indexOf("applewebkit")&&-1!=o.indexOf("version/")?parseInt(o.split("version/")[1].split(" ")[0]):0,isAndroid:-1!=o.indexOf("android"),isAndroidBrowser:function(e){if(-1===e.indexOf("mozilla/5.0"))return!1;if(-1===e.indexOf("android 4"))return!1;if(-1===e.indexOf("applewebkit"))return!1;if(-1!==e.indexOf("windows phone"))return!1;var t=/chrome\/(\d+)/.exec(e);return!t||parseInt(t[1])<20}(o),currentBrowser:"",androidVersion:-1!=o.indexOf("android")?parseFloat(o.slice(o.indexOf("android")+8)):0,isChrome:-1!=o.indexOf("chrome")&&-1==o.indexOf("edg"),isGoogleBot:-1!=o.indexOf("googlebot"),isFF:-1!=o.indexOf("firefox"),isOpera:-1!=o.indexOf("opera"),isSafari:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("safari")&&-1==navigator.appVersion.toLowerCase().indexOf("chrome")&&-1==o.indexOf("android"),isIOSWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isIOSChrome:-1!=o.indexOf("crios"),isMAC:navigator.appVersion&&-1!=navigator.appVersion.toLowerCase().indexOf("mac"),isWindowsPhone:-1!=o.indexOf("windows phone"),isFacebookBrowser:-1!=o.indexOf("fban")||-1!=o.indexOf("fbav"),supportsPostMessage:null!=window.postMessage&&(-1==o.indexOf("msie")||-1!=o.indexOf("iemobile")),supportsLocalStorage:!1,supportsSessionStorage:!1,supportsFlash:function(){var e=!1;try{if(navigator.mimeTypes&&null!=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)e=!0;else new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=!0)}catch(e){}return e}(),quirksMode:"BackCompat"==document.compatMode&&-1!=o.indexOf("msie"),backCompat:"BackCompat"==document.compatMode,isMobile:function(){var e=["iphone","ipod","android","midp","240x320","blackberry","netfront","nokia","panasonic","portalmmm","sharp","sie-","sonyericsson","symbian","windows ce","benq","mda","mot-","opera mini","philips","pocket pc","sagem","samsung","htc"];for(var t in e)if(-1!=o.indexOf(e[t]))return!0;return!1}(),isMobileApp:function(){if(!document.getElementsByTagName)return!1;for(var e=document.getElementsByTagName("meta"),t=0;ti)return null;if(void 0===e||null==e)return o.default.isOn("removeUndefinedProperties")?e:null;if("function"==typeof e&&n)return null;if(e.constructor==Array){for(var c=[],u=0;u>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(c=0,n){case 3:c^=(255&e.charCodeAt(u+2))<<16;case 2:c^=(255&e.charCodeAt(u+1))<<8;case 1:o^=c=(65535&(c=(c=(65535&(c^=255&e.charCodeAt(u)))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295}return o^=e.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0},t.clone=a,t.merge=function e(t,n){for(var i={},o=0;oo)return"[Too deep]";var r="",a="",s="";if(n){s="\t",a="\n";for(var c=0;c1&&(a+="#"+i[1]),a};t.getContextParamsFromUrl=function(e){var t=e||{},n=t.url,i=t.paramPrefix,o=t.unacceptableParams;return n?function(e,t){if(!t)return e;var n={};return Object.entries(e||{}).filter((function(e){var n=e[0];return!t.test(n)})).forEach((function(e){var t=e[0],i=e[1];return n[t]=i})),n}(window.gigya.utils.URL.getGigParamsFromURL({url:n,paramPrefix:i}),o):{}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(32),r=n(7);t._popupContainers=[],t._pseudoContainers=[];var a=999999999,s=null;function c(){return++a}function u(e,t,n){e&&n&&(e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent("on"+t,n))}function l(e,t,n){e&&n&&(e.removeEventListener?e.removeEventListener(t,n,!0):e.detachEvent("on"+t,n))}function g(){s&&(l(window,"hashchange",s),s=null,window.location.hash=window.location.hash.replace("|gigyaMobileDialog",""))}function d(e,t){void 0===t&&(t=window.document),t.body&&t.body.appendChild(e)}function f(e){var t=[];return"string"==typeof e.className&&(t=e.className.split(" ")),t}function p(e,t){if(!e)return!1;if(!t)return!0;if(!e.className)return!1;for(var n=!1,i=f(e),o=0;o=0;o--){var r=n[o],a=r.src.toLowerCase();if(""!==a)if(i.test(a)||a.indexOf("?apikey=")>-1)if(0===e.length||e.some((function(e){return a.indexOf(e)>-1}))){t=r;break}}return t},t.dispatch=function(e,t){var n;try{n=new Event(t)}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{})}e.dispatchEvent(n)},t.addButtonSubmitListener=function(e,t,n,i){void 0===n&&(n="click"),e&&(e.setAttribute("role","button"),"-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex","0"),u(e,n,(function(e){return t(e)})),u(e,"keydown",(function(e){13==(e.which||e.keyCode)&&(e.preventDefault(),t(e))})))},t.addEventListener=u,t.addActivationHandler=function(e,t){e&&t&&(this.addEventListener(e,"keydown",(function(e){"Space"!==e.code&&"Enter"!==e.code||t()})),this.addEventListener(e,"click",t))},t.removeEventListener=l,t.disableDefaultEventHandling=function(e){e.preventDefault?e.preventDefault():window.event&&(window.event.returnValue=!1)},t.addDialogBackListener=function(e){g(),s=function(t){t&&t.newURL&&-1==t.newURL.indexOf("|gigyaMobileDialog")&&(e(t),g())},window.setTimeout((function(){-1==window.location.hash.indexOf("|gigyaMobileDialog")&&(window.location.hash=window.location.hash+"|gigyaMobileDialog"),u(window,"hashchange",s)}),50)},t._removeDialogBackListener=g,t.prependToBody=function(e,t){void 0===t&&(t=window.document),t.body&&(t.body.insertBefore&&t.body.firstChild?t.body.insertBefore(e,t.body.firstChild):t.body.appendChild(e))},t.appendToBody=d,t.removeElement=function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},t.isChildOf=function(e,t){for(var n=e.parentNode;n;){if(t==n)return!0;n=n.parentNode}return!1},t.isVisible=function(e){for(;e;){var t=getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)return!1;e=e.parentElement}return!0},t.getCenteredDivID=function(e){return"gig_"+i.localInfo.initTime.getTime().toString()+"_"+e},t.createElementWithAttributes=function(e,t){var n=document.createElement(e);if(t)for(var i in t)n[i]=t[i];return n},t.createTopLevelDiv=function(e){var t=document.createElement("div");return null!=t.style.zIndex&&(t.style.zIndex=""+c()),t.innerHTML="",e&&(t.id=e),document.body&&(document.body.insertBefore&&document.body.firstChild?document.body.insertBefore(t,document.body.firstChild):document.body.appendChild&&document.body.appendChild(t)),t},t.hideByID=function(e){var t=document.getElementById(e);t&&(t.style.display="none")},t.showByID=function(e){var t=document.getElementById(e);t&&(t.style.display=i.localInfo.isIE6?"TD"==t.tagName?"table-cell":"TR"==t.tagName||"TABLE"==t.tagName?"":"block":"")},t.clearByID=function(e){try{var t=document.getElementById(e);null!=t&&(t.innerHTML="")}catch(e){}},t.getHTMLSize=function(e,t){var n=document.createElement("div");n.style.position="absolute",n.style.left="-1000px",n.innerHTML=e,t.appendChild(n);var i=n.offsetWidth,o=n.offsetHeight;return n.parentNode.removeChild(n),{w:i,h:o}},t.getElementsByClass=function(e,t,n){if(!e)return[];var i=[];n&&p(e,t)&&i.push(e);for(var o=e.getElementsByTagName("*"),r=0;r=0;o--)(i[o]===t||n&&-1!==i[o].indexOf(t))&&i.splice(o,1);e.className=i.join(" ")}},t.getClassNames=f,t.isElementClass=p,t.cancelEvent=function(e){e&&("cancelable"in e?e.preventDefault():e.returnValue=!1)},t.createElement=function(e,t){var n=document.createElement("div");return t=t||"",n.innerHTML="<"+e+' name="'+t+'" id="'+t+'">",n.firstChild},t.setSize=function(e,t,n,i){if(null!=e&&null!=e.style){if(t){var r=(t=""+t).indexOf("%")>0;if(!isNaN(t)||r){var a=""+(r?t:t+"px");e.style.width!=a&&(e.style.width=a)}}if(n){var s=(n=""+n).indexOf("%")>0;if(!isNaN(t)||s){var u=""+(s?n:n+"px");e.style.height!==u&&(e.style.height=u)}}if(i&&t&&n){(null==e.style.zIndex||i)&&(e.style.zIndex=""+c());var l=o.getInnerSize(),g=o.getScroll(),d=g.top,f=g.left;e.style.top=Math.max(0,d+Math.floor((l.h-n)/2))+"px",e.style.left=Math.max(0,f+Math.floor((l.w-t)/2))+"px",e.style.visibility=""}}},t.createHiddenIframe=function(e){var t=document.createElement("iframe");return t.src=e,t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",document.body?d(t):r.invokeOnPageLoad((function(){d(t)})),t},t.attributeEncode=function(e){return e.replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'")},t.manipulateAttributes=function(e,t,n,i){void 0===i&&(i=function(){return!0}),e.forEach((function(e){e.attributes&&Array.prototype.slice.call(e.attributes).forEach((function(e){i(e)&&(e.value=e.value.replace(t,n))}))}))},t.textNodesUnder=function(e){for(var t,n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);t=i.nextNode();)n.push(t);return n},t.isHTMLBooleanAttribute=function(e){return["autocomplete","autofocus","checked","disabled","hidden","readonly","required","selected"].indexOf(e)>-1},t.isBelongToGigyaFieldset=function e(t){return!(!t||t instanceof HTMLFormElement)&&(!!p(t.parentElement,"gigya-fieldset")||e(t.parentElement))},t.getClosestElement=function(e,t,n){for(void 0===n&&(n=document),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);e&&e!==n;e=e.parentNode)if(null==e?void 0:e.matches(t))return e;return null},t.createElementFromTemplate=function(e){var t;void 0===e&&(e="");var n=document.createElement("div");return n.innerHTML=e,null!==(t=n.firstChild)&&void 0!==t?t:n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(2),a=n(13),s=function(){function e(){}return e.getName=function(){return"AbstractAdapter"},e.prototype.setObject=function(e,t){this.setItem(e,o.serialize(t))},e.prototype.getObject=function(e,t){return o.deserialize(this.getItem(e),t)},e.prototype.isPersistent=function(){return!0},e}();t.AbstractLocalStorageAdapter=s;var c=function(e){function t(){var t=e.call(this)||this;return t.isLoaded=!1,t}return i.__extends(t,e),t.prototype.isReady=function(){return this.isLoaded},t.prototype.waitForService=function(e){var t=this;this.isReady()?e():setTimeout((function(){return t.waitForService(e)}),50)},t}(s);t.AbstractAsyncLocalStorageAdapter=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t,n){try{this.storage[e]=t}catch(e){}},t.prototype.removeItem=function(e){this.storage.removeItem(e)},t}(s),l=function(e){function t(){var t=e.call(this)||this;return t.storage=window.localStorage,t}return i.__extends(t,e),t.getName=function(){return"LocalStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsLocalStorage},t}(u),g=function(e){function t(){var t=e.call(this)||this;return t.storage=window.sessionStorage,t}return i.__extends(t,e),t.getName=function(){return"SessionStorageAdapter"},t.isAvailable=function(){return r.localInfo.supportsSessionStorage},t}(u),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.isAvailable=function(){return r.localInfo.isFF&&window.globalStorage},t.getName=function(){return"FirefoxStorageAdapter"},t.prototype.getItem=function(e){return window.globalStorage[location.hostname][e]},t.prototype.setItem=function(e,t,n){try{window.globalStorage[location.hostname][e]=t}catch(e){}},t.prototype.removeItem=function(e){delete window.globalStorage[location.hostname][e]},t}(s),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.isAvailable=function(){return a.default.canSaveCookie()},t.getName=function(){return"CookieStorageAdapter"},t.prototype.getItem=function(e){return a.default.get(e)},t.prototype.setItem=function(e,t,n,i,o){void 0===o&&(o={}),a.default.set(e,t,n,i,o.dontUseRootPath,o.sameSite)},t.prototype.removeItem=function(e){a.default.remove(e)},t}(s);t.CookieStorageAdapter=f;var p=function(e){function t(){var t=e.call(this)||this;return t.memory={},t}return i.__extends(t,e),t.isAvailable=function(){return!0},t.getName=function(){return"MemoryStorageAdapter"},t.prototype.getItem=function(e){return this.memory[e]},t.prototype.setItem=function(e,t,n){this.memory[e]=t},t.prototype.removeItem=function(e){delete this.memory[e]},t.prototype.isPersistent=function(){return!1},t}(s);function h(e){var n=e.getName()||e.name;return t.instances[n]||(t.instances[n]=new e),t.instances[n]}function v(e){for(var n,i=0,o=t.adapters;i0;if(g===l)return!0;var d=i.localInfo.pageDomain;return(l=this._setCookieInternal(e,t,s,u,d,a))===g},e.prototype.get=function(e){return this._cookieStore.getCookie(e)},e.prototype.remove=function(e,t){void 0===t&&(t=i.localInfo.pageDomain),this._removeFromBaseDomains(e,t),this.set(e,"",-1,"",!1),this.set(e,"",-1,"",!0)},e.prototype.getInfiniteExpirationTimeInSeconds=function(){return 31536e3},e.prototype.canSaveCookie=function(t){void 0===t&&(t=null);try{return this.set(e.testCookieName,"true",1,t,null)}catch(e){return!1}},e.prototype.getDefaultDomain=function(e,t){return void 0===e&&(e=i.localInfo.pageDomain),void 0===t&&(t=i.localInfo.baseDomain||""),t.length>0&&e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length?t:e},e.prototype._getExpirationInMs=function(e){return null==e||""===e||isNaN(e)?1e3*this.getInfiniteExpirationTimeInSeconds():0==e?null:1e3*e},e.prototype._setCookieInternal=function(t,n,o,r,a,s){var c;void 0===s&&(s=e._getSameSiteMode());var u=0===(null!==(c=null===i.localInfo||void 0===i.localInfo?void 0:i.localInfo.protocol)&&void 0!==c?c:document.location.protocol).indexOf("https");return this._cookieStore.setCookie(t,n,{path:o,expires:r,domain:a,sameSite:s,secure:u}),!!this.get(t)||!!s&&(this._cookieStore.setCookie(t,n,{path:o,expires:r,domain:a,secure:u}),!!this.get(t)&&(window.gigya.logger.report("Cookie established only without sameSite mode",{name:t,value:n,sameSiteMode:s},!1),!0))},e.prototype._removeFromBaseDomains=function(e,t){for(var n=t.split("."),i=0;i-1||o.indexOf("iPad; CPU OS 12")>-1||o.indexOf("Macintosh; Intel Mac OS X 10_14")>-1&&o.indexOf("Version/")>-1&&o.indexOf("Safari")>-1||o.indexOf("Chrome/5")>-1&&o.indexOf("Chrome/6")>-1},e.testCookieName="gig3pctest",e}();t.CookieUtils=r,t.default=new r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=n(4);t.serialize=function(e,t){var n=[];for(var r in t||(t="&"),e)switch(typeof e[r]){case"function":break;case"object":null!=e[r]&&n.push(r+"="+i.URLEncode(o.serialize(e[r])));break;case"undefined":break;default:n.push(r+"="+i.URLEncode(e[r]))}return n.join(t)},t.deserialize=function(e,t,n,o){var r={};if(!e)return r;t||(t="&");for(var a=e.split(t),s=0;s0;){var r=o.splice(0,1)[0];try{r.func.apply(this,r.args)}catch(n){"object"==typeof console&&console.log&&console.log("Gigya: Exception while invoking queued method ("+t+": "+e+")")}if(i(t)){n[t].q=o;break}}}},t.hold=function(e,t){window.gigya.logger.debug("locking queue "+t+" by "+e),n[t]||(n[t]={q:[],ids:{}}),n[t].ids[e]=!0},t.waitFor=o,t.queueForExecution=function(e,t,n){n=n||[],i(e)?o(e,t,n):t.apply(this,n)}},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){function n(e,t){for(var n=0;n=0}Object.defineProperty(t,"__esModule",{value:!0}),t.indexOf=function(e,t){for(var n=0;n=0;n--)e[n]==t&&e.splice(n,1)},t.removeByProperty=function(e,t,n){if(e)for(var i=e.length-1;i>=0;i--)e[i][t]==n&&e.splice(i,1)},t.getArrayFromString=function(e,t,n){return e&&"string"==typeof e?(n&&(e=e.toLowerCase()),(e=e.replace(/[ ]/g,"").replace(/,,/g,","))?e.split(t):[]):[]},t.intersect=function(e){for(var t=[],n=1;n=n;)if(e[i]===t)return i;return-1},t.forEach=n,t.forEachProp=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)},t.some=i,t.every=function(e,t){for(var n=0;n1?window.gigya.utils.keyValue.deserialize(i[1])[t]:null}},t.setBearerToken=function(e){window.gigya.logger.info("setting a new Bearer token"),c="Bearer "+e},t.getBearerToken=function(){return c},t.removeBearerToken=function(){window.gigya.logger.info("Bearer token removed"),c=null}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return Object.defineProperty(e.prototype,"_toggles",{get:function(){var e,t;return(null===(t=null===(e=window.gigya.thisScript)||void 0===e?void 0:e.globalConf)||void 0===t?void 0:t.toggles)||{}},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return void 0!==this._toggles[e]},e.prototype.get=function(e){return this._toggles[e]},e.prototype.isOn=function(e){return this.has(e)&&this.get(e)},e}();t.default=new n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isExplicitTrue=function(e){var t=(""+e).toLowerCase();return"true"==t||"1"==t},t.isExplicitFalse=function(e){var t=(""+e).toLowerCase();return"false"==t||"0"==t},t.isLaterThanNow=function(e){return e>(new Date).getTime()},t.allDefinedOrAllUndefined=function(){for(var e=[],t=0;t=t.left&&e.right<=t.left+o.w},t.isRectFullyVisible=function(e){var t=n(),o=i();return e.top>=t.top&&e.bottom<=t.top+o.h&&e.left>=t.left&&e.right<=t.left+o.w},t.scrollIntoView=function(e){e&&e.scrollIntoView&&e.scrollIntoView()}},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(6),r=n(2),a=n(21),s=n(7),c=n(10),u=n(15),l={};function g(e){return e.replace(/^http(s?):\/\/cdn(s?)[0-9]*.gigya.com\//,"http$1://cdn$2.gigya.com/")}function d(e,t,n,i,c,u){var d;if(void 0===c&&(c=5e3),0===e.indexOf("//")&&(e=r.localInfo.protocol+":"+e),i){var f=g(e);if(l[f])return void(l[f].loaded?(window.gigya.logger.debug("script was already loaded:",{src:e}),n&&n()):(l[f].onLoad.push(n),l[f].onError.push(t)));d=l[f]={loaded:!1,onLoad:[n],onError:[t]},u&&u.length>0&&a.forEach(u,(function(e){l[e]=d}))}else d={loaded:!1,onLoad:[n],onError:[t]};var p=function(){var t=document.createElement("script");t.async=!0,t.type="text/javascript",t.charset="UTF-8";var n=!1,i=function(){if(!n){if(d.onLoad&&d.onLoad.length)for(var e=0;e0&&a[0].appendChild(t);var s=function(){var n,i,r=new RegExp("^https?://cdns?.*"+window.gigya.defaultApiDomain+"/.*gigya.js").test(e)?(n=e,(i=o.Uri.parse(n)).addToSearch({version:window.gigya.build.version}),i.toString()):e;t.src=r};r.localInfo.iosVersion>=6?s():setTimeout(s,1)};r.localInfo.isIE?s.invokeOnPageLoad(p):p()}t.isLoaded=function(e){var t=g(e);return Boolean(l[t]&&l[t].loaded)},t.load=d,function(e){e[e.script=0]="script",e[e.image=1]="image",e[e.iframe=2]="iframe"}(i=t.ResourceTypes||(t.ResourceTypes={})),t.triggerResource=function(e,t,n,o){switch(void 0===n&&(n=i.image),void 0===o&&(o=5e3),n){case i.script:d(e,t,t,!1,o);break;case i.image:!function(e,t){var n=new Image,i=!1;n.onload=n.onerror=function(){i||(i=!0,t())},n.src=e}(e,t);break;case i.iframe:!function(e,t,n){void 0===n&&(n=5e3);var i=document.createElement("iframe");i.style.width="30px",i.style.height="10px",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",!0===n&&(n=0);var o=function(e){var i;!(i=e&&e.srcElement?e.srcElement:e&&e.target?e.target:this).loaded&&i.parentNode&&(i.loaded=!0,t(),!1!==n&&window.setTimeout((function(){try{document.body.removeChild(i)}catch(e){}}),n))};c.addEventListener(i,"load",o),c.addEventListener(i,"error",o),i.onload=function(e){o(e)},i.onerror=o,i.src=e,c.appendToBody(i)}(e,t,o);break;default:throw new Error("Unsupported resource type")}},t.loadService=function(e,t,n){var i=u.getCdnResource()+"/js/gigya.services."+e+".js";d(i,(function(){"object"==typeof console&&console.error&&(console.error("error loading gigya service "+e+" from url: "+i),t&&t())}),n,!0)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(47),r=n(22),a=n(23),s=n(5),c=n(49),u=0;t._requestTimeout=3e3;var l=function(){function e(){}return e.getInstance=function(t){return void 0===t&&(t=window.gigya.partnerSettings.ssoKey),i.__awaiter(this,void 0,void 0,(function(){var n,a,u,l;return i.__generator(this,(function(i){switch(i.label){case 0:return this._instance?[3,7]:t?[3,1]:[2,null];case 1:if(!s.FlagService.loadSsoFrameOnlyOnce)return[3,6];n=window.gigya.utils.keyValue.serialize({APIKey:t,version:window.gigya.build.version,build:window.gigya.build.number||-1,sourceKey:window.gigya.thisScript.APIKey}),a="https://"+r.getStorageDomain()+"/gs/sso.htm?"+n,i.label=2;case 2:return i.trys.push([2,4,,5]),[4,(u=new c.ServiceProxy(a)).init("SSO")];case 3:return i.sent(),this._instance=u.wrapWith(o.Sso),[3,5];case 4:return l=i.sent(),window.gigya.logger.error("error initialize sso frame",{scope:"SsoService.init",error:l}),this._instance=new e,[3,5];case 5:return[3,7];case 6:this._instance=new e,i.label=7;case 7:return[2,this._instance]}}))}))},e.prototype.checkTokenRenew=function(e){return new gigya.Promise((function(t){w({loginToken:e,callback:t})}))},e.prototype.getToken=function(){return new gigya.Promise((function(e){d({callback:e})}))},e.prototype.getTokenExpiration=function(){return new gigya.Promise((function(e){y({callback:e})}))},e.prototype.logout=function(){return new gigya.Promise((function(e){p({callback:e})}))},e.prototype.removeToken=function(){return new gigya.Promise((function(e){h({callback:e})}))},e.prototype.setGroupContext=function(e){return new gigya.Promise((function(t){_({groupContext:e,callback:t})}))},e.prototype.setToken=function(e,t,n){return new gigya.Promise((function(i){f({lt:e,expiration:t,gltexp:n,callback:i})}))},e.prototype.setTokenExpiration=function(e,t){return void 0===t&&(t=!0),new gigya.Promise((function(n){v({loginTokenExp:e,callback:n},t)}))},e.prototype.syncCanaryIndication=function(e,t){return new gigya.Promise((function(n){m({isCanary:e,canaryVersion:t,callback:n})}))},e.prototype.getGroupApiDomain=function(){return new gigya.Promise((function(e){S({callback:e})}))},e.prototype.setGroupApiDomain=function(e){return new gigya.Promise((function(t){b({callback:t,domain:e})}))},e}();function g(e,n){if(window.gigya.partnerSettings.ssoKey){var i,o,c;i=n?window.gigya.utils.object.clone(n):{};var l=function(e){window.gigya.logger.debug("cleaning sso iframe"),o.parentNode.removeChild(o),clearTimeout(c),e&&(e.errorCode&&"string"==typeof e.errorCode&&(e.errorCode=Number(e.errorCode)),e.expires_in&&"string"==typeof e.expires_in&&(e.expires_in=Number(e.expires_in))),n&&n.callback&&n.callback(e)};i.m=e,i.d=window.gigya.localInfo.protocol+"://"+document.location.hostname,document.location.port&&(i.d+=":"+document.location.port),i.callbackID="gig_sso_cb"+(new Date).getTime()+"_"+u++,i.sAPIKey=window.gigya.thisScript.APIKey,i[window.gigya.logger.configKey]=JSON.stringify(window.gigya.logger.getConfig());var g=window.gigya.utils.keyValue.serialize(i),d=function(n){void 0===n&&(n=0),window.gigya.utils.xd.addMessageListener(i.callbackID,{},!1,l,window.gigya._.MessagingMethod.PostMessage),o=function(e){var t;s.FlagService.hideSSOFrame?t=a.createIframe("SSO Frame"):(t=document.createElement("iframe"),window.gigya.localInfo.isIOS||window.gigya.localInfo.isIOSChrome||window.gigya.localInfo.isAndroid?(t.style.width="0px",t.style.height="0px",t.style.display="none"):(t.style.width="30px",t.style.height="10px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px"));return t.id="gig_sso_"+e,window.gigya.utils.functions.addSrcToIFrameIfNeeded(t),t}(i.callbackID);var u=function(){c=setTimeout((function(){n<=0?window.gigya.logger.error("SSO Communication Timeout",{IE11PrivateMode:window.gigya.localInfo.isIE11&&!window.indexedDB,mode:e}):(window.gigya.utils.xd.removeMessageListener(i.callbackID),window.gigya.utils.DOM.removeElement(o),d(n-1))}),t._requestTimeout);var a=window.gigya.utils.keyValue.serialize({APIKey:window.gigya.partnerSettings.ssoKey,ssoSegment:window.gigya.partnerSettings.ssoSegment||"",version:window.gigya.build.version,build:window.gigya.build.number||-1});o.src="https://"+r.getStorageDomain()+"/gs/sso.htm?"+a+"#"+g,window.gigya.utils.DOM.removeEventListener(o,"load",u)};window.gigya.utils.DOM.addEventListener(o,"load",u),window.gigya.logger.debug("opening sso iframe",i),document.body?window.gigya.utils.DOM.appendToBody(o):window.gigya.utils.functions.invokeOnPageLoad((function(){return window.gigya.utils.DOM.appendToBody(o)}))};d(3)}else n&&n.callback&&n.callback({})}function d(e){window.gigya.logger.info("trying to get sso group login token"),g("getToken",{callback:function(n){t._storedLoginTokenExp=n.gltexp,e&&e.callback&&e.callback(n)}})}function f(e){e.gltexp||(e.gltexp=window.gigya.utils.cookie.get("gltexp_"+window.gigya.thisScript.APIKey)),g("setToken",e)}function p(e){g("logout",e)}function h(e){g("removeToken",e)}function v(e,n){void 0===n&&(n=!0),n&&t._storedLoginTokenExp&&e.loginTokenExp===t._storedLoginTokenExp?e.callback&&e.callback({gltexp:t._storedLoginTokenExp}):(t._storedLoginTokenExp=e.loginTokenExp,g("setLoginTokenExp",e))}function y(e){g("getLoginTokenExp",e)}function w(e){window.gigya.logger.info("verifying login token with sso group"),g("checkTokenRenew",e)}function m(e){g("syncCanaryIndication",e)}function _(e){g("setGroupContext",e)}function b(e){g("setGroupApiDomain",e)}function S(e){g("getGroupApiDomain",e)}t.SsoService=l,t._request=g,t.getGroupToken=d,t.setGroupToken=f,t.logout=p,t.removeGroupToken=h,t.setLoginTokenExp=v,t.getLoginTokenExp=y,t.checkTokenRenew=w,t.syncCanaryIndication=m,t.setGroupContextCookie=_,t.setGroupApiDomain=b,t.getGroupApiDomain=S},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(3),a=n(51),s=function(){function e(){}return Object.defineProperty(e,"SITE_PREFERENCES_KEY",{get:function(){return window.gigya.apiKey+"_preferences"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"SITE_GIG_KEY",{get:function(){return window.gigya.apiKey+"_gig"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"didForcedBootstrap",{get:function(){return this.getDataByKey(e.SITE_GIG_KEY).didForcedBootstrap||null},set:function(t){this.setDataByKey(e.SITE_GIG_KEY,{didForcedBootstrap:t})},enumerable:!0,configurable:!0}),e.prototype.getPreferredLoginMethod=function(t){var n,i,o,r;if(!t)return"";var a=this.getDataByKey(e.SITE_PREFERENCES_KEY);return null!==(r=null===(o=(null!==(i=null===(n=null==a?void 0:a.authentication)||void 0===n?void 0:n.usersPreferredLoginMethods)&&void 0!==i?i:[]).find((function(e){return e.identifier===t})))||void 0===o?void 0:o.preferredLoginMethod)&&void 0!==r?r:""},e.prototype.setPreferredLoginMethod=function(t,n){var o,r;if(n){var a=this.getDataByKey(e.SITE_PREFERENCES_KEY),s=i.__spreadArrays(null!==(r=null===(o=null==a?void 0:a.authentication)||void 0===o?void 0:o.usersPreferredLoginMethods)&&void 0!==r?r:[]),c=s.some((function(e){return e.identifier===n}));this.isMaxLimitUsersPreferredLoginMethodsReached(s)&&!c&&(s=this.removeOldestUserPreferredLoginMethod(s)),c||(s=this.addUserPreferredLoginMethod(s,{identifier:n,preferredLoginMethod:t})),c&&(s=this.refreshExistingUserPreferredLoginMethod({authMethod:t,identifier:n,usersPreferredLoginMethods:s})),this.setDataByKey(e.SITE_PREFERENCES_KEY,{authentication:{usersPreferredLoginMethods:s}})}},e.prototype.setScreenVariant=function(t,n,i,o){var r,a,s;this.setDataByKey(e.SITE_PREFERENCES_KEY,((r={})[t]={screens:(a={},a[n]=(s={},s[i]={variant:o},s),a)},r))},e.prototype.getScreenVariant=function(t,n,i){var o,r,a,s,c=this.getDataByKey(e.SITE_PREFERENCES_KEY);return null===(s=null===(a=null===(r=null===(o=null==c?void 0:c[t])||void 0===o?void 0:o.screens)||void 0===r?void 0:r[n])||void 0===a?void 0:a[i])||void 0===s?void 0:s.variant},e.prototype.getDataByKey=function(e){return o.getObject(e,{})},e.prototype.setDataByKey=function(e,t){var n=this.getDataByKey(e);try{o.setObject(e,r.removeUndefined(a(n,t)))}catch(t){window.gigya.logger.report("Failed to save local site data",{error:t,key:e})}},e.prototype.refreshExistingUserPreferredLoginMethod=function(e){var t=e.usersPreferredLoginMethods,n=e.identifier,i=e.authMethod,o=this.removeUserPreferredLoginMethod(t,n);return this.addUserPreferredLoginMethod(o,{identifier:n,preferredLoginMethod:i})},e.prototype.removeUserPreferredLoginMethod=function(e,t){return e.filter((function(e){return e.identifier!==t}))},e.prototype.isMaxLimitUsersPreferredLoginMethodsReached=function(e){return 10===e.length},e.prototype.removeOldestUserPreferredLoginMethod=function(e){var t=e[0];return this.removeUserPreferredLoginMethod(e,null==t?void 0:t.identifier)},e.prototype.addUserPreferredLoginMethod=function(e,t){return i.__spreadArrays(e,[t])},e}();t.SiteDataService=s,t.siteData=new s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=n(27),r=n(48),a=n(11),s=n(14),c=n(40),u=n(9),l=["gigya-api.com","gigya-api.cn","gigya.com","my.gigya-ext.com","localhost"],g=function(){function e(e,t){void 0===e&&(e=r.default),void 0===t&&(t=l),this._global=e,this._defaultValidDomains=t}return e.prototype.getPageUrl=function(){return this._global.documentLocation().toString()},e.prototype.isValidDomain=function(e,t){for(var n=i.Uri.parse(t).domain,o=e.concat(this._defaultValidDomains),r=0;r=0&&s===n.length-a.length&&(0===s||"."===n.charAt(s-1)||"/"===n.charAt(s-1)))return!0}return!1},e.prototype.sendMessage=function(e,t,n){var i="";for(var o in e)null!=e[o]&&(i+=escape(o+"="+encodeURIComponent(e[o])+"&"));this._global.postMessageToParent(t+"="+i,n)},e.prototype.isValidGltExp=function(e){return c.isValid(e)},e.prototype.getMaxGltExp=function(e,t){return c.getMax(e,t)},e.prototype.decodeUrl=function(e){return u.URLDecodeRecursive(e)},e.prototype.deserialize=function(e){return s.deserialize(e)},e.prototype.getCookiesStorage=function(){return a.initializeAdapter(a.CookieStorageAdapter)},e.prototype.validations=function(){return o},e.prototype.UriFactory=function(e,t){return void 0===t&&(t=!0),new i.Uri(e,t)},e.prototype.getFragment=function(){var e=this.getPageUrl();return-1!==e.indexOf("#")?e.split("#")[1]:null},e}();t.SsoUtils=g},function(e,t){function n(e){return e?1e3*Number(e.substr(0,e.indexOf("_"))):0}Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=function(e){return n(e)>Date.now()},t.getMax=function(){for(var e=[],t=0;t(new Date).getTime()?u.response:(s(t),null);if(!u)return r.hold("cache","cache_"+t),null}catch(e){}return null},t.remove=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(21),r=n(57),a=n(3),s=n(28),c=n(68);function u(e){return"on"===e.substring(0,2)?e:"on"+e.substring(0,1).toUpperCase()+e.substring(1)}var l={},g={};function d(e,t){var n=0,i=e.isInternal,o=e.eventName.split(",");r.addLog('Dispatching global event "'+e.eventName+'" with this event object',e);for(var g=0;g1?d.shift():"socialize",p=d[0],h=f+"_"+u(p),v=a.clone(l[h])||[],y=a.clone(e);y.isGlobal=!0,y.eventName=p,y.fullEventName=o[g],t&&(t.source&&(y.source=t.source),t.sourceData&&(y.sourceData=t.sourceData),t.context&&(y.context=t.context));var w=["component"];i||w.push("other");for(var m=0;m1?i.shift():"socialize",r=i[0];p(e,t,n,(function(i){if(0==i){var a="on"+r.substring(0,1).toUpperCase()+r.substring(1),s=o+"_"+a;g[s]||(g[s]=[]),g[s].push({eventObj:e,params:t,preProcess:n})}}))}function p(e,t,n,i){var o=function(e){var n=0;e.cancel||(n=d(e,t)),i&&i(n)};n?n(e,o):o(e)}t._activeNamespaces={},t.add=function(e,t,n,i,o,r){void 0===n&&(n="other"),void 0===o&&(o="socialize");var a=o+"_"+u(e);l[a]||(l[a]=[]);var s={handler:t,type:n,context:i,params:r,fullEventName:a};l[a].push(s),!this._activeNamespaces[o]&&window.gigya._.apiAdapter&&window.gigya._.apiAdapter.registerForNamespaceEvents(o),this._activeNamespaces[o]=1;var c=g[a];if(c&&"other"==n){g[a]=[];for(var d=0;d'+l[g].toString().replace(/\&/g,"&")+"");c.innerHTML=u.join(""),c.style.display="none",o.appendToBody(c,s),c.submit()}else{for(var d=new r.Uri(e),f={},p=0;pr.LogLevel.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logLevel",{get:function(){return this.getConfig().logLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return c[this.getConfig().logTheme]},enumerable:!0,configurable:!0}),e.prototype.getNextColor=function(){return 0===this.getConfig().logTheme?"":(this._currColorIdx>=this.palette.length&&(this._currColorIdx=0),"#"+this.palette[this._currColorIdx++])},Object.defineProperty(e.prototype,"currentGroup",{get:function(){return this._groupsStack[this._groupsStack.length-1]},enumerable:!0,configurable:!0}),e.prototype.readLoggerConfigFromHash=function(){var e=null,t=a.getReqParamValue(location.hash,this.configKey);if(t)try{e=JSON.parse(decodeURIComponent(t))}catch(e){console.error("[Gigya]: exception while trying to parse logger config from hash",e)}return e},e.prototype.readLoggerConfigFromCookie=function(){try{var e=null,t=a.getParamValue(document.cookie,this.configKey,";");if(t)try{e=JSON.parse(t)}catch(e){console.error("[Gigya]: exception while trying to parse logger config from cookie",e)}return e}catch(e){return}},e.prototype.setLoggerConfigCookie=function(e){document.cookie=this.configKey+"="+JSON.stringify(e)},e.prototype.overrideClientLogs=function(){var e=this,t=this._global.Proxy;if(t)switch(this.getConfig().clientMuteLevel){case 0:break;case 2:this._global.console=new t(this._global.console,{get:function(){return l}});break;case 1:default:this._global.console=new t(this._global.console,{get:function(t,n){return-1!==["group","groupCollapsed","groupEnd"].indexOf(n)?function(){for(var t,i=[],r=0;r=this.logLevel||e>=u&&this.logLevelr&&(o=Date.now()-1e3)),a=this._storage.getItem(this._storageKey+"_gltexp"),s=this._storage.getItem(this._storageKey+"_context"),c=a||"1"===this._storage.getItem(this._storageKey+"_session"),isNaN(o)||!(0===o&&!c||o>0&&(new Date).getTime()>o)?[3,2]:[4,this.removeToken()];case 1:i.sent(),t=void 0,i.label=2;case 2:return t?(this._markSiteVisited(),u={errorCode:e,login_token:t,expires_in:0===o?0:Math.round((o-(new Date).getTime())/1e3)},s&&(u.groupContext=s),0===o&&a&&(u.gltexp=a),[2,u]):[2,{errorCode:403005}]}}))}))},e.prototype.setToken=function(e,t,n){var o;return i.__awaiter(this,void 0,void 0,(function(){var r,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:return e=e.split("|")[0],r=null===(o=this._storage.getItem(this._storageKey))||void 0===o?void 0:o.split("|")[0],e!==r&&this._markRevokedLoginToken(r),e&&this._storage.setItem(this._storageKey,e),t&&(0===(a="string"==typeof t&&t?Number(t):t)?t=0:(s=void 0,s=a?1e3*Number(a):31536e6,a=Date.now()+s),this._storage.setItem(this._storageKey+"_exp",""+a),0===t&&this._storage.setItem(this._storageKey+"_session","1",0)),void 0===n?[3,2]:[4,this.setTokenExpiration(n)];case 1:i.sent(),i.label=2;case 2:return e?[4,this._markSiteVisited()]:[3,4];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},e.prototype.setGroupContext=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this._storage.setItem(this._storageKey+"_context",JSON.stringify(e)),[2]}))}))},e.prototype.setTokenExpiration=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this._utils.isValidGltExp(e)?[3,1]:(this._storage.removeItem(this._storageKey+"_gltexp"),e=null,[3,3]);case 1:return n=(t=this._utils).getMaxGltExp,o=[e],[4,this.getTokenExpiration()];case 2:e=n.apply(t,o.concat([i.sent().gltexp])),this._storage.setItem(this._storageKey+"_gltexp",e),this._storage.removeItem(this._storageKey+"_exp"),i.label=3;case 3:return[2,{errorCode:0,gltexp:e}]}}))}))},e.prototype.getTokenExpiration=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this._storage.getItem(this._storageKey)?[2,{errorCode:0,gltexp:this._storage.getItem(this._storageKey+"_gltexp")}]:[2,{errorCode:403005}]}))}))},e.prototype.checkTokenRenew=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.getToken()];case 1:return t=i.sent(),n=this._storage.getItem(this._storageKey+"_revoked_tokens")||"",n.indexOf(e)>=0?[3,3]:[4,this.setToken(e)];case 2:return i.sent(),[2,{errorCode:0}];case 3:return 0===t.errorCode&&n.indexOf(t.login_token)<0?(t.errorCode=403032,[2,t]):[2,{errorCode:403025}];case 4:return[2]}}))}))},e.prototype.syncCanaryIndication=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,o,r,a,s;return i.__generator(this,(function(i){return this._canaryKey&&this._canaryVerKey?(n=this._storage.getItem(this._canaryKey),o=this._storage.getItem(this._canaryVerKey),r={errorCode:0,isCanary:e,canaryVersion:t},this._utils.validations().allDefinedOrAllUndefined(n,o)?this._utils.validations().allDefinedOrAllUndefined(e,t)?(a=this._parseCanaryVersionSignature(t),s=this._parseCanaryVersionSignature(o),a.timestamp>s.timestamp?(this._storage.setItem(this._canaryKey,e),this._storage.setItem(this._canaryVerKey,t)):(r.isCanary=n,r.canaryVersion=o),[2,r]):[2,{errorCode:400006,isCanary:n,canaryVersion:o}]:(r.errorCode=400006,[2,r])):[2,{errorCode:500033}]}))}))},e.prototype._markSiteVisited=function(){var e=this._storageKey+"_visited",t=this._storage.getItem(e)||"";-1===t.indexOf(this._siteApiKey)&&(t+=","+this._siteApiKey),this._storage.setItem(e,t)},e.prototype._markRevokedLoginToken=function(e){if(e){var t=this._storageKey+"_revoked_tokens",n=this._storage.getItem(t)||"",i=n.split(",");i.length>3&&i.splice(1,1),(n=i.join(",")).indexOf(e)<0&&(n+=","+e),this._storage.setItem(t,n)}},e.prototype._getLogoutURLs=function(){var e=this._storage.getItem(this._storageKey+"_visited");if(!e)return"";var t=[];for(var n in this._ssoConfig.logoutURLs)-1!==e.indexOf(","+n)&&t.push(this._ssoConfig.logoutURLs[n]);return t.join(",")},e.prototype._createKey=function(e){return e+"_"+this._apiKey+(this._ssoSegment?"_"+this._ssoSegment:"")},e.prototype._parseCanaryVersionSignature=function(e){var t={build:0,probability:0,timestamp:-1};if(!e)return t;var n=e.split("-");return n.length<3?t:{build:Number(n[0]),probability:Number(n[1]),timestamp:Number(n[2])}},e}();t.Sso=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.documentLocation=function(){return document.location},e.prototype.postMessageToParent=function(e,t,n){window.parent.postMessage(e,t,n)},e}();t.GlobalProvider=n,t.default=new n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(23),r=function(){function e(e,t,n,i,r,a){var s=this;void 0===t&&(t=6e4),void 0===n&&(n=o.generateId),void 0===i&&(i=o.createIframe),void 0===r&&(r=function(){return new gigya.Promise((function(e){document.body?e(document.body):document.addEventListener("DOMContentLoaded",(function(){return e(document.body)}))}))}),void 0===a&&(a=window),this.url=e,this.timeout=t,this._idCreator=n,this._iframeCreator=i,this.getIframeHost=r,this._win=a,this._pendingReqs=[],this._mutationObservers=[],this.onResponse=function(e){var t=window.gigya.utils.JSON.parse(e.data);t&&s._pendingReqs[t.id]&&s.validateOrigin(e.origin)&&(s._pendingReqs[t.id](t),delete s._pendingReqs[t.id])}}return Object.defineProperty(e.prototype,"isInit",{get:function(){return Boolean(this._iframe)},enumerable:!0,configurable:!0}),e.prototype.init=function(e){var t=this;return this.isInit?gigya.Promise.reject("proxy already initialized"):new gigya.Promise((function(n,i){t._iframe=t._iframeCreator(e),t._iframe.src=t.url,t.getIframeHost().then((function(e){t._iframeHost=e,t._iframeHost.appendChild(t._iframe),window.gigya.logger.isEnabled&&t.startObservingIFrameRemoval();var o=t._win.setTimeout((function(){return i("proxy init timeout")}),t.timeout),r=function(e){if(t.validateOrigin(e.origin)){var a=t._tryParseResponse(e.data);if(null==a?void 0:a.signal)switch(t._win.clearTimeout(o),t._win.removeEventListener("message",r,!0),a.signal){case"listening":t._win.addEventListener("message",t.onResponse,!0),n(a.res);break;case"error":case"stop":i(a.res);break;default:i("unsupported response")}}};t._win.addEventListener("message",r,!0)}))}))},e.prototype.validateOrigin=function(e){return o.validateOrigin(this._iframe.src,e)},e.prototype.postToIFrame=function(e){var t=this.registerMessage(e),n="object"==typeof e?JSON.stringify(e):e;return this._iframe.contentWindow.postMessage(n,this._iframe.src),t},e.prototype.registerMessage=function(e,t){var n=this;return void 0===t&&(t=this.timeout),new gigya.Promise((function(i,o){var r=n._win.setTimeout((function(){o("proxy request timeout")}),t);n._pendingReqs[e.id]=function(e){n._win.clearTimeout(r),"error"===e.signal?o(e.res):i(e.res)}}))},e.prototype.sendRequest=function(e,t){return this.postToIFrame({id:this._idCreator(),methodName:e,params:t})},e.prototype.stop=function(e){return void 0===e&&(e=!1),i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:if(this.isInit)return[3,1];throw"proxy is not active";case 1:t=void 0,i.label=2;case 2:return i.trys.push([2,4,5,6]),[4,this.postToIFrame({id:this._idCreator(),signal:"stop"})];case 3:return[2,i.sent()];case 4:throw n=i.sent(),t=n,n;case 5:return t&&!e||(this._mutationObservers&&this._mutationObservers.length&&this.stopObservingIFrameRemoval(),this._win.removeEventListener("message",this.onResponse,!0),this._iframeHost.removeChild(this._iframe),delete this._iframe),[7];case 6:return[2]}}))}))},e.prototype.wrapWith=function(e){var t;if("function"==typeof e)t=o.getAllClassMethodsNames(e);else if(e instanceof Array)t=e;else{if("object"!=typeof e)throw"unsupported type for wrapper";t=Object.keys(e)}return this.proxyFromKeys(t)},e.prototype.proxyFromKeys=function(e){var t=this,n={};return e.forEach((function(e){return n[e]=function(){for(var n=[],i=0;i-1},H.prototype.set=function(e,t){var n=this.__data__,i=X(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},W.prototype.clear=function(){this.size=0,this.__data__={hash:new V,map:new(B||H),string:new V}},W.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},W.prototype.get=function(e){return ce(this,e).get(e)},W.prototype.has=function(e){return ce(this,e).has(e)},W.prototype.set=function(e,t){var n=ce(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},J.prototype.clear=function(){this.__data__=new H,this.size=0},J.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,t){var n=this.__data__;if(n instanceof H){var i=n.__data__;if(!B||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new W(i)}return n.set(e,t),this.size=n.size,this};var ee,te=function(e,t,n){for(var i=-1,o=Object(e),r=n(e),a=r.length;a--;){var s=r[ee?a:++i];if(!1===t(o[s],s,o))break}return e};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":U&&U in Object(e)?function(e){var t=I.call(e,U),n=e[U];try{e[U]=void 0;var i=!0}catch(e){}var o=k.call(e);i&&(t?e[U]=n:delete e[U]);return o}(e):function(e){return k.call(e)}(e)}function ie(e){return Se(e)&&"[object Arguments]"==ne(e)}function oe(e){return!(!be(e)||function(e){return!!P&&P in e}(e))&&(me(e)?x:i).test(function(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function re(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ge(e),n=[];for(var i in e)("constructor"!=i||!t&&I.call(e,i))&&n.push(i);return n}function ae(e,t,n,i,o){e!==t&&te(t,(function(r,a){if(o||(o=new J),be(r))!function(e,t,n,i,o,r,a){var s=de(e,n),c=de(t,n),u=a.get(c);if(u)return void Y(e,n,u);var l=r?r(s,c,n+"",e,t,a):void 0,g=void 0===l;if(g){var d=ve(c),f=!d&&we(c),p=!d&&!f&&Ae(c);l=c,d||f||p?ve(s)?l=s:Se(m=s)&&ye(m)?l=function(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(N?function(e,t){return N(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ce);function pe(e,t){return e===t||e!=e&&t!=t}var he=ie(function(){return arguments}())?ie:function(e){return Se(e)&&I.call(e,"callee")&&!j.call(e,"callee")},ve=Array.isArray;function ye(e){return null!=e&&_e(e.length)&&!me(e)}var we=z||function(){return!1};function me(e){if(!be(e))return!1;var t=ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var Ae=p?function(e){return function(t){return e(t)}}(p):function(e){return Se(e)&&_e(e.length)&&!!r[ne(e)]};function Ie(e){return ye(e)?$(e,!0):re(e)}var Pe,ke=(Pe=function(e,t,n){ae(e,t,n)},se((function(e,t){var n=-1,i=t.length,o=i>1?t[i-1]:void 0,r=i>2?t[2]:void 0;for(o=Pe.length>3&&"function"==typeof o?(i--,o):void 0,r&&function(e,t,n){if(!be(n))return!1;var i=typeof t;return!!("number"==i?ye(n)&&le(t,n.length):"string"==i&&t in n)&&pe(n[t],e)}(t[0],t[1],r)&&(o=i<3?void 0:o,i=1),e=Object(e);++n-1&&(e=e.substring(e.indexOf("?")+1));for(var t=e.split(/&/),n={},i=0;i-1)&&(0===r.length||r.some((function(e){return a.indexOf(e)>-1})))))return e=i,"break"},i=t.length-1;i>=0;i--){if("break"===n(i))break}return e},t.updateConfiguration=a,i.createAlias("gigya.updateConfiguration",a)}).call(this,n(0).__assign)},,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(4),r=n(21),a=n(34),s=n(15),c=n(7),u=n(13);function l(){var e=!window.gigya.localInfo.isNativeMobileApp&&u.default.get("_gig_dbgConsole_log");return void 0!==e&&null!=e?"1"===e:t.selectedConsoleLogLevels.length>0}function g(e,n,a){if(void 0===a&&(a=!1),l()||a){var s,c=e;if(null!=(n=i.clone(n,!0,!1,4,null,!0))&&(c+=":"+("object"==typeof n?"\n":"")+o.serialize(n,!0,!0)),a&&"object"==typeof console&&console.log&&console.log(c),l())t._log.push(c),document.getElementById("gigya_log"),s=-1!=r.indexOf(t.CONSOLE_LOG_LEVELS,e)?e:"log",window.gigya._.apiAdapter.onJSLog(s,c)}}function d(){a.load(s.getCdnResource("/js/gigya.services.socialize.plugins.log.min.js"),null,(function(){}),!0)}function f(){}function p(){}t.CONSOLE_LOG_LEVELS=["debug","info","log","warn","error"],t.selectedConsoleLogLevels=[],t._log=[],t.enable=function(){u.default.set("_gig_dbgConsole_log","1",null)},t.disable=function(){u.default.set("_gig_dbgConsole_log","0",null)},t._isEnabled=l,t.addLog=g,t.logCall=function(e,t,n){n||(n=t.lastSource),g("Calling "+e+(n&&n!=e?" for "+n:"")+(t.source&&n!=t.source?" initiated from "+t.source:"")+" with these params",t)},t.debug=d,t.showLog=function(){a.load(s.getCdnResource("/js/gigya.services.socialize.plugins.log.min.js"),null,(function(){}),!0)},t.show=f,t.showConfig=p,c.createAlias("gigya.debug",d)},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(72),o=n(75);window.gigya.logger||e(window.gigya,{logger:window===window.top?new i.ParentLogger:new o.IFrameLogger})}).call(this,n(0).__assign)},,,,,,,function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(66);e(window.gigya,{Promise:i})}).call(this,n(0).__assign)},function(e,t,n){(function(t,n){var i;i=function(){"use strict";function e(e){return"function"==typeof e}var i=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,r=void 0,a=void 0,s=function(e,t){p[o]=e,p[o+1]=t,2===(o+=2)&&(a?a(h):_())},c="undefined"!=typeof window?window:void 0,u=c||{},l=u.MutationObserver||u.WebKitMutationObserver,g="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(h,1)}}var p=new Array(1e3);function h(){for(var e=0;e1)for(var n=1;n=this._random()},t.prototype.setupMessageListener=function(){var e=this;this._global.addEventListener("message",(function(t){var n=window.gigya.dataCenter,i=window.gigya.defaultApiDomain.replace(/\./g,"."),r=new RegExp("cdns?."+n+"."+i+"$");if(t.origin.match(r))try{var a=JSON.parse(t.data);a.type===o.gigErrorReport&&e.report(a.message,a.details,a.includeStack)}catch(e){}}),!1)},t.prototype.getApiKey=function(){var e=window.gigya.thisScript&&window.gigya.thisScript.APIKey;if(!e){var t=a.getGigyaScriptElement();e=(s.getParamsFromURL(t&&t.src,!0)||{}).apikey}return e},t.prototype.createReportParams=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i={message:e,apiKey:this.getApiKey(),stack:n?(new Error).stack:"",page:c.localInfo&&c.localInfo.pageDomain,browser:c.localInfo&&c.localInfo.currentBrowser,buildVersion:window.gigya.build.version,buildNumber:window.gigya.build.number,format:"json",sdk:"web"};return"string"==typeof t&&(t={message:t}),t.guid=this._guid,i.details=JSON.stringify(t),i},t.prototype.report=function(e,t,n){if(void 0===n&&(n=!1),this._isErrorReporter)try{var i=this.createReportParams(e,t,n),o=location.protocol+"//"+this.apiDomain+"/sdk.errorReport";u.Uri.parse(o).addToSearch(i).fetch(0)}catch(e){}},t.prototype.generateGUID=function(){try{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}catch(e){return""}},Object.defineProperty(t.prototype,"apiDomain",{get:function(){var e,t;return(null===(e=window.gigya.partnerSettings)||void 0===e?void 0:e.customAPIDomainPrefix)&&(null===c.localInfo||void 0===c.localInfo?void 0:c.localInfo.baseDomain.endsWith(window.gigya._.config.hostedPagesDomain))?c.localInfo.baseDomain:(null===(t=window.gigya.partnerSettings)||void 0===t?void 0:t.customAPIDomainPrefix)&&c.localInfo.baseDomain&&c.localInfo.baseDomain!==window.gigya.defaultApiDomain?window.gigya.partnerSettings.customAPIDomainPrefix+"."+c.localInfo.baseDomain:"accounts."+window.gigya.dataCenter+"."+window.gigya.defaultApiDomain},enumerable:!0,configurable:!0}),t}(o.BaseLogger);t.ParentLogger=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.disabled=0]="disabled",e[e.debug=1]="debug",e[e.info=2]="info",e[e.warn=3]="warn",e[e.error=4]="error"}(t.LogLevel||(t.LogLevel={}))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.loggerJsonp=function(e,t){var n=document.createElement("script");n.src=e+"?"+t,n.type="text/javascript",n.onload=function(){document.getElementsByTagName("head")[0].removeChild(n)},document.getElementsByTagName("head")[0].appendChild(n)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(44),r=n(29),a=function(e){function t(t){void 0===t&&(t=window);var n=e.call(this,t)||this;return n._global=t,n}return i.__extends(t,e),t.prototype.report=function(e,t,n){void 0===n&&(n=!0);try{var i=document.createElement("a"),a=r.getReqParamValue(location.hash,"origin")||r.getReqParamValue(location.hash,"d");if(!a)return;i.href=a;var s=i.protocol+"//"+i.hostname+(i.port?":"+i.port:"");this._global.top.postMessage(JSON.stringify({type:o.gigErrorReport,message:e,details:t,includeStack:n}),s)}catch(e){console.error(e)}},t}(o.BaseLogger);t.IFrameLogger=a},,,,,,,,,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Social=0]="Social",e[e.Sso=1]="Sso"}(t.OAuthMode||(t.OAuthMode={}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=n(3),r=n(17);window.gigya.socialize||(window.gigya.socialize={}),window.gigya.gcs||(window.gigya.gcs={}),window.gigya.gm||(window.gigya.gm={}),window.gigya.comments||(window.gigya.comments={}),window.gigya.accounts||(window.gigya.accounts={}),window.gigya.gscounters||(window.gigya.gscounters={});var a={};t.getApi=function(e){return a[e]};var s=function(){function e(e,t){this.methodName=e,this.settings=t,this.addAlias(),a[e]=this}return e.prototype.preprocessRequest=function(e,t){this.settings.preprocessor?this.settings.preprocessor(e,t):t()},e.prototype.addAlias=function(){var e=this;i.createAlias("gigya."+this.methodName,(function(){for(var t=[],n=0;n0;){var e=i.clone(t.queue.splice(0,5),!0,!0);window.gigya.gscounters.sendReport({reports:e,noAuth:!a(e)})}}function a(e){for(var t=0;t-1&&this._handlers.splice(t,1)},e}();t.EventWrapper=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMetaTag=function(e){for(var t=document.getElementsByTagName("meta"),n=0;n=6?n():window.setTimeout(n,10)}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.now=function(){return Date.now()}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.run=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.next("/runtime/v1/workflowDefinitions/"+this.flow.workflowDefinitionId+"/dispatch")];case 1:return e.sent(),[2]}}))}))},t}(n(102).BaseActivity);t.InitActivity=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Event="Event",e.ScreenSet="ScreenSet"}(t.ActivityType||(t.ActivityType={}))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=window,i=function(){function e(){}return e.prototype.forceReset=function(){e.greCaptchaLoad=void 0},e.prototype.getInstance=function(e){return(null==e?void 0:e.isEnterprise)?grecaptcha.enterprise:grecaptcha},e.prototype.load=function(t){var i,o=this;return"undefined"!=typeof grecaptcha||e.greCaptchaLoad||(e.greCaptchaLoad=new gigya.Promise((function(r,a){var s=function(){var e,n=null===(e=o.getInstance(t))||void 0===e?void 0:e.ready;"undefined"!=typeof grecaptcha&&n?n(r):r()},c=function(){return clearTimeout(i),window.gigya.logger.debug("Loading google captcha from "+e.RECAPTCHA_DOMAIN),"undefined"!=typeof grecaptcha?(window.gigya.logger.debug("Aborting. Google captcha already loaded"),s()):t.googleCaptchaDomain===e.RECAPTCHA_DOMAIN?(window.gigya.logger.debug("Aborting. Already tried to load from "+e.RECAPTCHA_DOMAIN+" and failed'"),a("Failed to load google's captcha from "+e.RECAPTCHA_DOMAIN)):(t.googleCaptchaDomain=e.RECAPTCHA_DOMAIN,void window.gigya.utils.script.load(o.providerURL(t),a,s))};return i=setTimeout(c,e.RETRY_FROM_RECAPTCHA_TIMEOUT),t.callbackID&&(n[t.callbackID]=function(){delete n[t.callbackID],"undefined"!=typeof grecaptcha?s():a("Error while trying to load grecaptcha")}),window.gigya.logger.debug("Loading grecaptcha from "+o._domain(t)),window.gigya.utils.script.load(o.providerURL(t),c,s)}))),e.greCaptchaLoad},e.prototype.providerURL=function(e){var t="api";return(null==e?void 0:e.isEnterprise)&&(t="enterprise"),"//"+this._domain(e)+"/recaptcha/"+t+".js?"+this.loadQueryParams(e)},e.prototype.loadQueryParams=function(t){var n="";return n=t.type==e.V3_CAPTCHA_TYPE||t.type==e.ENTERPRISE_CAPTCHA_TYPE?"render="+t.siteKey:"render=explicit",t.callbackID&&(n+="&onload="+t.callbackID),t.lang&&(n+="&hl="+t.lang),n},e.prototype._domain=function(t){var n=0===window.gigya.dataCenter.toLowerCase().indexOf("cn1");return t.googleCaptchaDomain||(n?e.RECAPTCHA_DOMAIN:e.GOOGLE_DOMAIN)},e.V3_CAPTCHA_TYPE="reCaptchaV3",e.ENTERPRISE_CAPTCHA_TYPE="reCaptchaEnterpriseScore",e.RECAPTCHA_DOMAIN="www.recaptcha.net",e.GOOGLE_DOMAIN="www.google.com",e.RETRY_FROM_RECAPTCHA_TIMEOUT=3e3,e}();t.GoogleReCaptchaLoader=i,t.default=new i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(17),r=n(68),a=n(7),s=n(34),c=n(15),u=n(53),l=n(9),g=n(4),d=n(3),f=n(86),p=n(101),h=n(28),v=n(2),y=n(71);function w(){}function m(){if(window.gigya.abTesting)for(var e in window.gigya.abTesting)if("optimizely"===e){var t=window.gigya.abTesting[e];if(t.serviceParams&&t.serviceParams.hasOwnProperty("apiKey")){var n=window.location.pathname,i=!1;if(t.disabledPaths)for(var o=0;o-1){i=!0;break}if(!i)for(o=0;o-1&&s.load("//cdn.optimizely.com/js/"+t.serviceParams.apiKey+".js")}}}function _(e){v.localInfo.isNativeMobileApp||"1"!=window.gigya._.apiAdapter.getStorage().getItem("gig_debug")?e():window.gigya.socialize.showDebugUI({ignoreApiQueue:!0,waitForDebug:!1,onLoad:e})}function b(){a.invokeOnPageLoad((function(){void 0!==window.gigya_omniture_conf&&s.load(c.getCdnResource("/js/GenesisExchange_Gigya.min.js"))}))}t.parseScriptRetries=0,t.init=function(){var e=this;window.gigya.logger.group("websdk root"),window.gigya.logger.info("partner settings:",window.gigya.partnerSettings),window.gigya.logger.info("local info:",v.localInfo);var t=window.gigya.logger.group("bootstrap websdk");o.hold("bootstrap","API"),(v.localInfo.isIE6||v.localInfo.isIE7||v.localInfo.isIE8||v.localInfo.isIE9||v.localInfo.isIE10)&&"undefined"!=typeof console&&void 0!==console.log&&console.log("Gigya: It looks like you're using an old version of Internet Explorer. This browser is not supported. Please upgrade to a newer version of IE."),A((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n,s,c;return i.__generator(this,(function(i){switch(i.label){case 0:return function(){var e=window.gigya.thisScript.globalConf.toggles;if(e){window.gigya.logger.info("adding toggles cookie");try{window.gigya.utils.cookie.set("gig_toggles",btoa(JSON.stringify(e)))}catch(e){window.gigya.logger.warn("failed to set gig_toggles cookie",{message:e.message})}}else try{window.gigya.utils.cookie.remove("gig_toggles")}catch(e){window.gigya.logger.warn("failed to remove gig_toggles cookie",{message:e.message})}}(),(e=window.gigya.thisScript.globalConf.customEventMap)&&(window.gigya.logger.info("adding custom event map"),r.addMap(e)),[4,y.getSdkConfig()];case 1:return n=i.sent(),window.gigya._.config={flags:n.flags,plugins:n.plugins,api:n.api,hostedPagesDomain:n.hostedPagesDomain},window.gigya.logger.group("init api adapter"),I((function(){if(window.gigya.logger.groupEnd("init api adapter"),window.gigya.isReady=!0,"function"==typeof onGigyaServiceReady){window.gigya.logger.info("invoke local onGigyaServiceReady event");try{onGigyaServiceReady("socialize")}catch(e){window.gigya.logger.warn("gigya: error while invoking onGigyaServiceReady",e)}}if("function"==typeof window.gigya.thisScript.globalConf.onGigyaServiceReady){window.gigya.logger.info("invoke globalconf's onGigyaServiceReady event");try{window.gigya.thisScript.globalConf.onGigyaServiceReady("socialize")}catch(e){window.gigya.logger.warn("gigya: error while invoking onGigyaServiceReady injected from server",e)}}k((function(){o.release("bootstrap","API"),v.localInfo.isNativeMobileApp||(C(),P(),a.invokeOnPageLoad((function(){return window.setTimeout(window.gigya.socialize.trackReferrals,1e3)}))),t.end()}))})),b(),m(),s={sref:null===(c=document.referrer)||void 0===c?void 0:c.substr(0,1e3)},window.gigya.thisScript.globalConf.actionCounterPath&&(s.actionCounterPath=window.gigya.thisScript.globalConf.actionCounterPath),[2]}}))}))}))},t.warnOnUnsupportedBrowser=w,t.loadABTesting=m,t.startDebugIfNeeded=_,t.loadOmniture=b;function S(e){void 0===e&&(e="en-US");var t,n,i=e.replace("en-US","en"),o=(e=e.replace("_","-").toLowerCase()).split("-"),r=o[0];switch(t=(t=o.length>1?o[1]:r).toUpperCase(),e){case"es-mx":n=e,t="ES";break;case"pt-br":case"zh-cn":case"zh-hk":case"zh-tw":case"te-st":case"fr-inf":case"de-inf":case"es-inf":case"nl-inf":case"lt-lt":case"lv-lv":case"et-ee":n=e;break;default:n=r}return{full:r+"-"+t,langCode:n,countryCode:t,originalLang:i}}function A(e){return i.__awaiter(this,void 0,void 0,(function(){var n,o,r,a,s,c,f,p;return i.__generator(this,(function(i){switch(i.label){case 0:return!(n=u.getGigyaScriptElement())||window.__gig_hidescript?[3,3]:(window.gigya.logger.info("parsing gigya script"),o=l.getParamsFromURL(n.src,!0)||{},r=g.deserialize(window.gigya.partnerSettings.siteGroupGlobalConf)||{},a=g.deserialize(window.gigya.partnerSettings.globalConf,{},{siteGroupGlobalConf:r})||{},s=g.deserialize(n.innerHTML)||{},c=window.__gigyaConf||{},f=o.apikey,(h=window.gigya.utils.URL.getParamsFromURL(document.location.href)).gig_ssoToken&&"device_sso"===h.scope?[4,x()]:[3,2]);case 1:(null==(p=i.sent())?void 0:p.apiKey)&&(window.gigya.logger.warn("APIKey changed. using RP APIKey: "+p.apiKey),f=p.apiKey||o.apikey,window.gigya.apiKey=f),i.label=2;case 2:return window.gigya.thisScript={scriptElement:n,protocol:0===n.src.indexOf("https:")?"https":"http",baseDomain:n.src.split("/")[2],APIKey:f,lang:S(o.lang||c.lang||s.lang||a.lang||r.lang),globalConf:d.merge([window.gigya.partnerSettings.plugins||{},r,a,s,c],!1),URLParams:o},window.gigya.thisScript.globalConf.lang=window.gigya.thisScript.lang.langCode,!window.gigya.thisScript.APIKey&&"object"==typeof console&&console.warn?console.warn("**** WARNING - Loading socialize.js without an APIKey parameter is unsupported and may result in an unexpected behavior. ****"):window.gigya.thisScript.globalConf.APIKey=window.gigya.thisScript.APIKey,e(),[3,4];case 3:t.parseScriptRetries<10?(t.parseScriptRetries++,window.setTimeout((function(){A(e)}),200)):(window.gigya.thisScript={scriptElement:null,protocol:v.localInfo.protocol,baseDomain:"https://cdns.gigya.com",APIKey:"",lang:S(""),globalConf:{},URLParams:{}},e()),i.label=4;case 4:return[2]}var h}))}))}function I(e){var t=window.__gigAPIAdapterSettings,n=function(e){void 0===e&&(e=window.__gigAPIAdapterSettings);var t;e&&e.getAPIKey()===window.gigya.thisScript.APIKey&&(t=e.getAdapterName());return t||"web"}(t);v.localInfo.isNativeMobileApp="mobile"===n,window.gigya.logger.info("selecting api adapter: "+n),window.gigya._.apiAdapter=window.gigya._.apiAdapters[n].newApiAdapter(t),a.createAlias("gigya.auth.loginToken.getTokenParam",window.gigya._.apiAdapter.getTokenParam),_((function(){window.gigya._.apiAdapter.init(e,3)}))}function P(){window.gigya.thisScript.globalConf.autoLogin&&(window.gigya.logger.info("triggering auto-login"),f.autoLogin(),p.autoLogin())}function k(e){var t=l.getParamsFromURL(document.location.href);t.mode&&"error"===t.mode?(window.gigya.events.global.dispatchWhenHandlersAdded(["accounts.error","socialize.error"],t),e()):t.errorCode&&t.regToken?(window.gigya.logger.info("returned from redirect with regToken (errorCode: "+t.errorCode+")"),h.checkCompleteRegistration(t,window.gigya.thisScript.globalConf,"",(function(){return e()}))):e()}function C(){o.queueForExecution("API",(function(){a.invokeOnPageLoad((function(){window.gigya.providersConfig.facebook&&(window.gigya.logger.info("loading facebook sdk"),f.load(!1)),window.gigya.providersConfig.googlePlus&&(window.gigya.logger.info("loading google plus sdk"),p.load())}))}))}function x(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){return e=window.gigya.utils.URL.getParamsFromURL(document.location.href),[2,window.gigya.fidm.oidc.op.getContext({opKey:window.gigya.partnerSettings.ssoKey,sso_token:e.gig_ssoToken})]}))}))}t.parseLang=S,t.parseScriptElement=A,t.initApiAdapter=I,t.autoLogin=P,t.checkReturnFromRedirect=k,t.injectExternalSdks=C},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(226),r=n(6),a=n(5),s=n(227);t.queue=[];var c;function u(){t.reports.forEach((function(e){var t;null===(t=window.gigya.defaultEventMaps)||void 0===t||t.push(e.config)}))}function l(){t.reports.forEach((function(e){s(window.gigya.defaultEventMaps,(function(t){return(null==t?void 0:t.id)===(null==e?void 0:e.id)}))}))}t.reports=[{id:o.defaultScreenSetReportID,config:o.defaultScreenSetReportConfig}],t.registerReports=u,t.removeReports=l,u(),c=setInterval((function(){if(a.FlagService.stopSendingReports)return l(),clearInterval(c);for(;t.queue&&t.queue.length>0;){var e=i.clone(null===t.queue||void 0===t.queue?void 0:t.queue.splice(0,5),!0,!0);try{var n="https://"+window.gigya._.apiDomainFactory()("reports")+"/reports.reportGenericEvents";r.Uri.parse(n).addToSearch({apiKey:window.gigya.thisScript.APIKey}).addToSearch({events:JSON.stringify(e)}).fetch(0)}catch(e){}}}),5e3)},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i,o,r=n(0),a=n(3),s=n(42),c=n(57),u=n(86),l=n(85),g=n(4),d=n(28),f=n(27),p=n(9),h=n(34),v=n(43),y=n(229),w=n(5),m=n(87);function _(e){return{status:"OK",statusMessage:"",errorCode:0,statusCode:0,errorMessage:"",errorDetails:"",statusReason:"",originalResponse:e}}s.add("onFBCRefreshed",(function(){i=!1}),"component"),function(e){e[e._unknown=0]="_unknown",e[e.facebook=1]="facebook",e[e.linkedin=2]="linkedin",e[e.samlProvider=3]="samlProvider",e[e.samlSession=4]="samlSession"}(o||(o={}));var b=function(){function t(e,t,n){void 0===n&&(n=null),this.api=e,this.params=a.merge([a.clone(t),e.settings.defaultParams]),this.originalParams=a.clone(t),this.callback=t.callback,this.riskAssessmentHandler=new y.RiskAssessmentHandlerTimeoutDecorator(n||new y.RiskAssessmentHandler)}return t.prototype.start=function(){var e=this;window.gigya._.apiAdapter.isSessionValid(this.params,(function(t){return r.__awaiter(e,void 0,void 0,(function(){var e,n,i;return r.__generator(this,(function(o){switch(o.label){case 0:return!this.api.adapterSettings.requiresSession()||t||this.doesHaveAltSessionParam()?[3,1]:(window.gigya.logger.debug(this.api.methodName+": missing required session"),this.afterServerApiResponse(a.clone({status:"FAIL",errorMessage:"Unauthorized user",statusMessage:"Unauthorized user",errorCode:403005}),!1),[3,6]);case 1:return window.gigya.logger.debug("server request: "+this.api.methodName,this.params),this.api.adapterSettings.requiresSession()?[4,window.gigya._.apiAdapter.setGltexpFromSSO(this.params.APIKey)]:[3,3];case 2:return n=o.sent(),[3,4];case 3:n=!1,o.label=4;case 4:return e=n,[4,this.sendRequest(t)];case 5:i=o.sent(),e&&403005!==i.errorCode&&this.dispatchAccountsLoginEvent(i),o.label=6;case 6:return[2]}}))}))}))},t.prototype.sendRequest=function(e){var t=this,n=a.merge([this.api.adapterSettings,{cacheTimeout:this.params.cacheTimeout,forceGigyaDomain:!e&&this.api.adapterSettings.forceGigyaDomain}]);return new gigya.Promise((function(i){t.beforeRequest(e,(function(o){if(o)t.afterServerApiResponse(o,e,i);else{s.dispatch({eventName:"beforeRequest",methodName:t.api.methodName,rawParams:t.originalParams,params:t.params},t.originalParams);var r=t.getMethodUrl();t.api.settings.oauth?window.gigya._.apiAdapter.sendOauthRequest(r,t.params,(function(n){t.afterServerApiResponse(n,e,i)}),n):window.gigya._.apiAdapter.sendRequest(r,t.params,(function(n){t.afterServerApiResponse(n,e,i)}),n)}}))}))},t.prototype.getMethodUrl=function(){return this.api.settings.restUrl?this.constructRestUrl():this.api.methodName},t.prototype.constructRestUrl=function(){for(var e,t=/({(.*?)})/g,n=t.exec(this.api.settings.restUrl),i=this.api.settings.restUrl;null!==n;)i=i.replace(n[1],null!==(e=this.params[n[2]])&&void 0!==e?e:""),n=t.exec(this.api.settings.restUrl);return i},t.prototype.beforeRequest=function(e,t){var n=this;m.logoutMethods[this.api.methodName]&&(!e&&!this.params.regToken||window.gigya.partnerSettings.ssoLogoutUrl&&document.location.href==window.gigya.partnerSettings.ssoLogoutUrl)&&t(_(null)),this.handleDeprecatedParams(),this.handleCollections(),this.handleConnectWithoutLoginBehavior(e);var i=this.params[this.params.provider+"ExtraPermissions"];this.params.extraPermissions=i||this.params.permissions,this.handleRiskAssessment().then((function(){n.api.preprocessRequest(n.params,(function(){n.setOverridableParams((function(){n.setNonOverridableParams(e,(function(){n.filterParams(n.params),c.logCall(n.api.methodName,n.originalParams,n.originalParams.lastSource),t()}))}))}))}))},t.prototype.setOverridableParams=function(e){a.merge([{},this.params]),e()},t.prototype.doesHaveAltSessionParam=function(){if(this.api.altSessionParams){for(var e=this.api.altSessionParams.split("|"),t=0;t0&&(this.params.UIDs+=","),this.params.UIDs+=e}},t.prototype.extractListOfGIGUIDs=function(e){var t=this;switch(typeof e){case"string":return e;case"object":if(void 0!==e.UID)return e.UID;if(e instanceof window.gigya.socialize.Collection){var n=[];return e.each((function(e,i){var o=t.extractListOfGIGUIDs(e);null!=o&&""!=o&&n.push(o)})),n.join(",")}}},t.prototype.handleConnectWithoutLoginBehavior=function(e){if("socialize.addConnection"===this.api.methodName){var t=this.params.connectWithoutLoginBehavior;"string"==typeof t&&(t=t.toLowerCase()),"loginexistinguser"===t&&(this.params.loginIfExists=!0),e||(this.api=l.getApi("socialize.login"),"alwayslogin"!==t&&(this.params.temporary_account=!0))}},t.prototype.filterParams=function(e){this.params=a.extractProperties(e,{},this.getFullSchema())},t.prototype.getFullSchema=function(){if(null==this.api.schema)return"";var e=(this.api.schema+"|"+m.defaultApiSchema).split("|");-1===e.indexOf("context")&&"string"==typeof this.params.context&&e.push("context");for(var t=0;t-1,friends:i.indexOf("friends")>-1,login:i.indexOf("login")>-1,status:i.indexOf("status")>-1,notifications:i.indexOf("notifications")>-1,contacts:i.indexOf("contacts")>-1,photos:i.indexOf("photos")>-1}}if(d.convertIdentitiesArrayToObject(n),"string"==typeof n.providers&&(n.providers=n.providers.split(",")),this.params.group&&!e.settings){var o=d.getGigyaSettings(this.params.group);e.settings=o}}break;case"socialize.getAvailableProviders":for(var r={},s=0;s0)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];this.params[i]||t.push(i)}return!(t.length>0)||(this.dispatchInvalidParamError(t[0]),!1)},e.prototype.dispatchEvent=function(e,t){return void 0===t&&(t={}),t.eventName=e,this._eventDispatcher(t,this.params)},e.prototype.dispatchErrorFromResponse=function(e){return i.dispatchErrorFromResponse(this.params,e)},e.prototype.dispatchInvalidParamError=function(e){i.dispatchInvalidParamError(this.params,e)},e.prototype.getEvent=function(e){return this._eventWrappers[e]||(this.params[e]?this.params[e]instanceof Array||(this.params[e]=[this.params[e]]):this.params[e]=[],this._eventWrappers[e]=new r.EventWrapper(this.params[e])),this._eventWrappers[e]},e.prototype.addGlobalEventHandlers=function(e){for(var t in e)e.hasOwnProperty(t)&&this.addGlobalEventHandler(t,e[t])},e.prototype.addGlobalEventHandler=function(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i="socialize"),this._globalEventHandlers[e]||(this._globalEventHandlers[e]=[]);var o=a.add(e,t,"component",n,i,this.params);this._globalEventHandlers[e].push(o)},e.prototype.removeGlobalEventHandlers=function(e){for(var t in e)e.hasOwnProperty(t)&&this.removeGlobalEventHandler(t,e[t])},e.prototype.removeGlobalEventHandler=function(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i="socialize");var r=this._globalEventHandlers[e];if(r){var s=o.firstIndex(r,(function(e){return e.handler==t}));if(s>-1){var c=r[s];a.remove(c.fullEventName,c),r.splice(s,1)}}},e.prototype.prepareCallback=function(e){var t=this;return function(){for(var n=[],i=0;i1){var w=y[1].split("#")[0].split("&")[0];w!=window.gigya._.apiAdapter.getTokenParam(a.APIKey,"UUID")&&(d.sn="AddressBarShares",d.uuid=w,"_"==w&&delete d.uuid,document.location.replace("#"),p.trackAddressBarShares(),d.url=document.location.href.split("#")[0])}}d.uuid&&j(a.APIKey,d.uuid),d.sn&&!l&&p.report("linkback",a.APIKey,a.cid,g,null,d),(d.sn||l)&&r.dispatch(o.removeUndefined(s)),n=!0}"function"==typeof a.callback&&a.callback({status:"OK",statusMessage:"",operation:"trackReferrals",context:a.context,errorMessage:"",errorCode:0})}function M(e,t,n){e||(e=window.gigya.thisScript.globalConf.APIKey),t||(t={},-1!=document.location.href.indexOf("#")&&(t=f.deserialize(document.location.href.split("#")[1]))),n||(n={},-1!=document.location.href.indexOf("?")&&(n=f.deserialize(document.location.href.split("?")[1].split("#")[0]))),t.guid&&"_"!=t.guid&&j(e,t.guid);var i=t._giguuid||n._giguuid;i&&j(e,i)}function j(e,t){P.FlagService.setCookieSameSiteLaxLowPriority?b.default.set(this.getGigRefUidCookieKey(e),t,null,null,null,"Lax"):b.default.set(this.getGigRefUidCookieKey(e),t)}function R(){for(var e=[],t=0;t0&&(i.form=a[0])}for(var s=0;s=9||i.localInfo.isEdgeLegacy||i.localInfo.isSafari&&a()>=4||i.localInfo.isGoogleBot},t.getVersion=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.create=function(e,t){return function(){for(var n=[],i=0;i/g,">").replace(/\"/g,""").replace(/'/g,"'").replace(/&#173;/g,"­")},t.sanitizeAttribute=function(e){return null==e||void 0===e?e:e.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/\=/g,"=")}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),o=function(){function e(){this.bindings=[]}return e.getInstance=function(){return e.self||(e.self=new e),e.self},e.prototype.bindTabLooping=function(e,t){if(!this.getListenerByContainer(e)){var n=this.createListener(e,t);window.addEventListener("keydown",n,!0)}},e.prototype.unbindTabLooping=function(e){var t=this.getListenerByContainer(e);t&&window.removeEventListener("keydown",t,!0)},e.prototype.getSortedTabbableElements=function(t,n){for(var i=this,o=0,r=t.querySelectorAll(e.selector),a=[],s=0;s0||e.offsetHeight>0)&&(!t||n.call(e,t))},e.prototype.getNextTabbableElement=function(e,t,n){var i=this.getSortedTabbableElements(e,n),o=i.indexOf(t);return-1===o?void 0:o!==i.length-1?i[o+1]:i[0]},e.prototype.getPreviousTabbableElement=function(e,t,n){var i=this.getSortedTabbableElements(e,n),o=i.indexOf(t);return-1===o?void 0:0!==o?i[o-1]:i[i.length-1]},e.prototype.sort=function(t,n){var i=this.getTabIndex(t)-this.getTabIndex(n);return 0!==i?i:Number(t.getAttribute(e.naturalTabOrder))-Number(n.getAttribute(e.naturalTabOrder))},e.prototype.getTabIndex=function(e){return 0===e.tabIndex?99999999:e.tabIndex},e.prototype.getListenerByContainer=function(e){for(var t=0,n=this.bindings;t=6?r():window.setTimeout(r,100)))}var n,r};window.addEventListener?window.addEventListener("message",d,!1):window.attachEvent&&window.attachEvent("onmessage",d),c=!0}},t.removeMessageListener=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(3),r={},a={User:"personwithuid+isLoggedIn|false,isConnected|false,isSiteUser|false,identities|{},providers|[],timestamp,UIDSig,UIDSignature,signatureTimestamp,loginProvider,loginProviderUID,capabilities|{}",Friend:"personwithuid+timestamp,friendshipSig,friendshipSignature,signatureTimestamp,timestamp,isSiteUser|false,identities|{}",Identity:"person+isExpiredSession|false,allowsLogin|false,providerUID,provider,isLoginIdentity|false,missingPermissions",Contact:"provider,firstName,lastName,nickname,email,photoURL",person:"nickname,photoURL,thumbnailURL,birthDay|0,birthMonth|0,birthYear|0,gender,email,proxiedEmail,country,state,city,zip,firstName,lastName,profileURL,age|0",personwithuid:"person+UID,isSiteUID|false",UserAction:"actorUID,actorNickname,actionName,date|new Date(),targets|[],images|[],actionData1,actionData2,iconURL,title,linkBack,userMessage,description,actionLinks|[],mediaItems|[],subtitle"},s=function(e){var t={},n=a[e];-1!=n.indexOf("+")&&(t=s(n.split("+")[0]),n=n.split("+")[1]);for(var o=n.split(","),r=0;r1)try{c=i.deserialize(u[1],"")}catch(e){}t[u[0]]=c||""}return t},c=function(e){return function(t){var n=r[e];for(var i in n)this[i]=o.clone(n[i]);if("object"==typeof t)for(var i in t)"function"!=typeof t[i]&&(this[i]=o.clone(t[i]))}};for(var u in a)r[u]=s(u),window.gigya.socialize[u]=c(u);window.gigya.socialize.Collection=function(e,t){this.arr=e,this._key=t||""},window.gigya.socialize.Collection.prototype={asArray:function(){return this.arr},each:function(e){for(var t=0,n=this.arr[t];n;)e(n,t),t++,n=this.arr[t]},getById:function(e){return void 0===this._hash&&this._buildHash(),(this._hash?this._hash:this.arr)[e]},getSize:function(){return this.arr.length},_buildHash:function(){var e=this._hash={},t=this._key;this.each((function(n,i){e["function"==typeof n[t]?n[t]():n[t]]=n}))}},window.gigya.socialize.UserAction.prototype={clone:function(){return new window.gigya.socialize.UserAction(window.gigya.utils.object.clone(this,!0,!0))},getTemplate:function(){return this.titleTemplate},setTemplate:function(e){this.titleTemplate=e},getActor:function(e){return{UID:this.actorUID,nickname:this.actorNickname}},setActionName:function(e){return this.actionName=e,this},getActionName:function(e){return this.actionName},getTemplateFields:function(){var e=[];for(var t in this.templateFields)e.push(this.templateFields[t]);return new window.gigya.socialize.Collection(e,"fieldName")},setTemplateField:function(e,t,n){return this.templateFields[e]={fieldName:e,text:t,href:n},this},getTemplateField:function(e){return this.templateFields[e]?this.templateFields[e]:null},addTarget:function(e){return"object"==typeof e?(this.targets.push({UID:e.UID,nickname:e.nickname?e.nickname:""}),this):"string"==typeof e?(this.targets.push({UID:e,nickname:""}),this):void 0},addActionLink:function(e,t){return this.actionLinks.push({text:e,href:t||""}),this},addMediaItem:function(e){return this.mediaItems.push(e),this},setTitle:function(e){return e&&(this.title=e),this},setLinkBack:function(e){return e&&e.toString&&(e=e.toString()),e&&(this.linkBack=e),this},setUserMessage:function(e){return this.userMessage=e||"",this},setDescription:function(e){return this.description=e||"",this},addImage:function(e,t){this.addMediaItem({type:"image",src:e,href:t})},getImages:function(){return new window.gigya.socialize.Collection(this.images,"")},getTargets:function(){return new window.gigya.socialize.Collection(this.targets,"UID")},setIconURL:function(e){return this.iconURL=e,this},getIconURL:function(){return this.iconURL},getDate:function(){return this.date},setActionData1:function(e){return this.actionData1=e,this},getActionData1:function(e){return this.actionData1},setActionData2:function(e){return this.actionData2=e,this},getActionData2:function(e){return this.actionData2},setSubtitle:function(e){return this.subtitle=e,this},getSubtitle:function(){return this.subtitle}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(136);t.REPORT_EVENT_CATEGORIES={screenSets:"screenSets"},t.ScreenSetEvents=["afterScreenLoad","submit"],t.defaultScreenSetReportID="screen-set-report-events-map",t.defaultScreenSetReportConfig={id:t.defaultScreenSetReportID,defaultMethod:function(e){var n=e.abTesting,o=e.screenSetID,r=e.eventName;if(!n||!o||!r)return;var a=n.requestedScreenId,s=n.variantId,c=n.testId;if(!s||!c||!a)return;var u={eventCategory:t.REPORT_EVENT_CATEGORIES.screenSets,eventTime:Date.now(),eventType:r,eventData:s,eventId:o+"/"+a+"/"+c};i.queue.push(u)},eventMap:[{events:t.ScreenSetEvents.join(","),args:[function(e){return e}]}]}},function(e,t,n){(function(e,n){var i="[object Arguments]",o="[object Map]",r="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[i]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[o]=p["[object Number]"]=p[r]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1;var h="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,y=h||v||Function("return this")(),w=t&&!t.nodeType&&t,m=w&&"object"==typeof n&&n&&!n.nodeType&&n,_=m&&m.exports===w&&h.process,b=function(){try{return _&&_.binding("util")}catch(e){}}(),S=b&&b.isTypedArray;function A(e,t){for(var n=-1,i=e?e.length:0;++ns))return!1;var u=r.get(e);if(u&&r.get(t))return u==t;var l=-1,g=!0,d=1&o?new se:void 0;for(r.set(e,t),r.set(t,e);++l-1},re.prototype.set=function(e,t){var n=this.__data__,i=le(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},ae.prototype.clear=function(){this.__data__={hash:new oe,map:new(V||re),string:new oe}},ae.prototype.delete=function(e){return me(this,e).delete(e)},ae.prototype.get=function(e){return me(this,e).get(e)},ae.prototype.has=function(e){return me(this,e).has(e)},ae.prototype.set=function(e,t){return me(this,e).set(e,t),this},se.prototype.add=se.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},se.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.clear=function(){this.__data__=new re},ce.prototype.delete=function(e){return this.__data__.delete(e)},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var i=n.__data__;if(!V||i.length<199)return i.push([e,t]),this;n=this.__data__=new ae(i)}return n.set(e,t),this};var be=function(e){return U.call(e)};function Se(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&eo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(o);++i-1&&e%1==0&&e<=9007199254740991}function Ne(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ze(e){return!!e&&"object"==typeof e}function Fe(e){return"symbol"==typeof e||ze(e)&&"[object Symbol]"==U.call(e)}var Ke=S?function(e){return function(t){return e(t)}}(S):function(e){return ze(e)&&Ue(e.length)&&!!p[U.call(e)]};function Be(e){return je(e)?ue(e):ve(e)}function Ge(e){return e}n.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,o=[],r=e.length;for(t=he(t);++i