!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=7)}([function(e,t,n){"use strict";(function(e){function i(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function r(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function o(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function s(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function a(e){return'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return V})),n.d(t,"c",(function(){return W})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return Te})),n.d(t,"f",(function(){return E})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return D})),n.d(t,"i",(function(){return ye})),window.encodeURIComponent;var l=Object.freeze({__proto__:null,getPageKey:i,getPageTag:r,getLocale:o,getDomain:s,trimDoubleQuotes:a});const c={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},d={Down:c.ARROW_DOWN,Right:c.ARROW_RIGHT,Left:c.ARROW_LEFT,Up:c.ARROW_UP,Esc:c.ESCAPE,Spacebar:c.SPACEBAR,Tab:c.TAB};function u(e){return d[e]||e}function h(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function p(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function g(e,t,n,i){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const r=p(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),s="&";return i<0?s="?":i===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(r).concat(s).concat(t,"=").concat(n).concat(o||"")}}function m(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function f(e,t,n={}){const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}var E=Object.freeze({__proto__:null,closest:h,onload:function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})},makeArray:function(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)},outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+((parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0))},elementInViewport:function(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o},hasElementScrolledToThreshold:function({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}={},i=0){return e>=n-(t+t*i)},getQueryParam:p,addTrackingCode:function(e,t){return g(e,"trk",t)},addQueryParam:g,debounce:function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return(...r)=>{const o=n&&!i;clearTimeout(i),i=setTimeout(()=>{i=null,n||e.apply(this,r)},t),o&&e.apply(this,r)}},getCookie:m,dispatchCustomEvent:f,getDeferredPromise:function(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}});const _="click",v="keydown",b="focus";class T{constructor(e,t,{mainButton:n,closeButton:i},r={}){if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An list element must be provided to Collapsible");if(!n)throw Error("A main button element must be provided to Collapsible");this.el=e,this.listEl=t;let{currentListItem:o=t.children[0],isOpen:s=!1}=r;this.currentListItem=o,this.isOpen=s,this.mainButton=n,this.closeButton=i,this.buttons=[n],this.mainButton.addEventListener(_,()=>this.closeButton?this._open():this._toggle()),this.mainButton.addEventListener(v,e=>this._onButtonKeyDown(e)),this.mainButton.addEventListener("keyup",e=>this._onButtonKeyUp(e)),this.closeButton&&(this.closeButton.addEventListener(_,()=>this.close()),this.closeButton.addEventListener(v,e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton)),this.listEl.addEventListener(v,e=>this._onListKeyDown(e))}_toggle(){this.isOpen?this.close():this._open()}_onButtonKeyDown(e){const t=u(e.key);switch(t){case c.ENTER:case c.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(t);break;case c.ARROW_UP:this.isOpen||this._open();break;case c.ARROW_DOWN:this.isOpen&&this.close()}}_onButtonKeyUp(e){const t=u(e.key);this.isOpen&&t===c.SPACEBAR&&(e.preventDefault(),f(this.currentListItem,b))}_onListKeyDown(e){let t;switch(u(e.key)){case c.ESCAPE:this.isOpen&&this.close();break;case c.ARROW_LEFT:let n=(t=h(e.target,"li")).previousElementSibling;n&&f(n,b);break;case c.ARROW_RIGHT:let i=(t=h(e.target,"li")).nextElementSibling;i&&f(i,b)}}_open(e){this.isOpen||(this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),f(this.el,"open"),e!==c.SPACEBAR&&f(this.currentListItem,b))}close({shouldReturnFocusToTrigger:e=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),f(this.el,"close"),e&&this.mainButton.focus())}}const y=".".concat("collapsible-dropdown","__list"),S=".".concat("collapsible-dropdown","__button");class w{constructor(e,t=(e=>e),{currentListItem:n,dropdownTriggerEl:i,listEl:r}={}){if(!e)throw Error("An element must be provided to CollapsibleDropdown");this.el=e,this.listEl=r||this.el.querySelector(y),this.dropdownTriggerEl=i||this.el.querySelector(S),this._getFocusItemFromListItem=t,this.hideClass="hidden",this.collapsible=new T(e,this.listEl,{mainButton:this.dropdownTriggerEl},{currentListItem:n}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._attachEventListeners()}_attachEventListeners(){this.el.addEventListener("open",()=>this._showDropdownList()),this.el.addEventListener("close",()=>this._hideDropdownList()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){const t=e.target;if(t){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_showDropdownList(){document.addEventListener("mousedown",this._handleBodyClick),this.el.addEventListener("focusout",this._focusOutsideDropdown),this.listEl.classList.remove(this.hideClass)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),this.listEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close()}}const I="language-selector__link",O=".".concat(I),L="".concat(O,"--selected");class N{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(L),this.getFocusItemFromListItem=e=>e.classList.contains(I)?e:e.querySelector(O),this.collapsibleDropdown=new w(e,this.getFocusItemFromListItem,{dropdownTriggerEl:this.dropdownTriggerEl,currentListItem:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){const t=e.target.getAttribute("data-locale");if(t){const e=this.getLangCookieString(t);null!==e&&(document.cookie=e),location.reload()}}getLangCookieString(e){let t=null;if(null!==e){const n=e.toLocaleLowerCase().replace("_","-"),i=s(document);let r=new Date;r.setTime(r.getTime()+31536e6),t='lang="v=2&lang='.concat(n,'";path=/;domain=').concat(i,";expires=").concat(r.toUTCString())}return t}}var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};parseInt;var A="object"==typeof P&&P&&P.Object===Object&&P,C="object"==typeof self&&self&&self.Object===Object&&self;A||C||Function("return this")(),Object.prototype.toString,Math.max,Math.min;const R=".member-nav-menu";"".concat(R,"__list"),"".concat(R,"__item-link"),"".concat(R,"__button");var F=function(e,t){return function(e,t){!function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==P||"undefined"!=typeof self&&self;var t,n,i,r,o,s=(function(e,t){!function(e,t){var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,i=n&&!!window.requestIdleCallback,r={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],paused:!1,maxQueueSize:1,queueTimeout:1e3,timeoutId:null,disableSendBeacon:!0,csrfToken:"",testId:"",testSegId:"",setProperty:function(e,t){void 0!==t&&(this[e]=t)},setTrackingUrl:function(e){this.setProperty("globalTrackingUrl",e)},setAppId:function(e){this.setProperty("globalTrackingAppId",e)},setCsrfToken:function(e){this.setProperty("csrfToken",e)},setTestId:function(e){this.setProperty("testId",e)},setTestSegId:function(e){this.setProperty("testSegId",e)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var e=this.getCookieString().split(";"),t=0;t<e.length;t++){for(var n=e[t];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf("JSESSIONID=")){var i=n.substring("JSESSIONID=".length,n.length);return'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),i}}return""},createXmlHttpObject:function(){return n&&window.XMLHttpRequest?new XMLHttpRequest:null},beacon:function(e,t,i,r){this._beacon(e,t,i,r||this.globalTrackingUrl,this.disableSendBeacon?null:n&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,n,i,r){if(r){var o=void 0;try{o=r(i,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+i+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(o)return void(t&&t(o))}this.ajax(e,t,n,i)},ajax:function(e,t,n,i){var r;i?(r=this.createXmlHttpObject())&&(r.open(this.AJAX_METHOD,i,!0),r.withCredentials=!0,r.setRequestHeader("Content-type","application/json"),this.csrfToken?r.setRequestHeader("Csrf-Token",this.csrfToken):r.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&r.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&r.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||304===r.status?"function"==typeof t&&t(r):n&&n('Response is not "OK" or "Not Modified" for tracking request'))},4!==r.readyState&&r.send(e)):n&&n("Tracking url is not defined")},pause:function(){this.paused=!0},unpause:function(){this.paused=!1,this.queue.length>=this.maxQueueSize&&this.flush()},flush:function(){this.queue.length>0&&(this.beacon(JSON.stringify(this.queue),null,this.logError),this.queue=[]),i?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,n=Date.now();return requestIdleCallback((function(i){i.timeRemaining()>8||i.didTimeout?t.flush():t.timeoutId=t.idleFlush(e-(Date.now()-n))}),{timeout:e})},addToQueue:function(e){if(this.queue.push(e),this.queue.length>=this.maxQueueSize&&!this.paused)return this.flush();if(!this.timeoutId){var t=this;i&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout((function(){t.flush()}),this.queueTimeout)}},validateEvent:function(e,t,n){this.beacon(JSON.stringify([{eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)}]),(function(e){return n(null,e)}),(function(e){return n(e)}),this.globalTrackingUrl+"/validate")},sendEvent:function(e,t){this.addToQueue({eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(e){return"string"==typeof e&&(e={eventName:e}),e&&"object"==typeof e?(e.appId||(e.appId=this.globalTrackingAppId),e):(this.logError("Event info must be object"),{})},populateEventHeaders:function(e){return e&&"object"==typeof e?e:(this.logError("Event body must be object"),{})},logError:function(e){var t=window.console;t&&t.error&&t.error(e)},init:function(){this.setTrackingUrl(),this.setAppId(),this.onBeforeUnload=this.onBeforeUnload.bind(this),n&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){this.flush(),n&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};t.exports=r}(0,e)}(t={exports:{}}),t.exports),a="li_trk_navigation",l="undefined";function c(){if(typeof window!==l&&typeof window.sessionStorage!==l)try{return JSON.parse(window.sessionStorage.getItem(a))}catch(e){}}function d(e){if(typeof window!==l&&typeof window.sessionStorage!==l)try{window.sessionStorage.setItem(a,JSON.stringify(e))}catch(e){}}(o=e.ControlInteractionType||(e.ControlInteractionType={}))[o.FOCUS=0]="FOCUS",o[o.UNFOCUS=1]="UNFOCUS",o[o.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",o[o.DRAG=3]="DRAG",o[o.PINCH_OPEN=4]="PINCH_OPEN",o[o.PINCH_CLOSE=5]="PINCH_CLOSE",o[o.DOUBLE_PRESS=6]="DOUBLE_PRESS",o[o.LONG_PRESS=7]="LONG_PRESS",o[o.SHORT_PRESS=8]="SHORT_PRESS",o[o.SWIPE_UP=9]="SWIPE_UP",o[o.SWIPE_DOWN=10]="SWIPE_DOWN",o[o.SWIPE_LEFT=11]="SWIPE_LEFT",o[o.SWIPE_RIGHT=12]="SWIPE_RIGHT",o[o.FLICK_UP=13]="FLICK_UP",o[o.FLICK_DOWN=14]="FLICK_DOWN",o[o.FLICK_LEFT=15]="FLICK_LEFT",o[o.FLICK_RIGHT=16]="FLICK_RIGHT",o[o.SHAKE=17]="SHAKE",o[o.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",o[o.HOVER=19]="HOVER",(r=e.PageViewPageType||(e.PageViewPageType={}))[r.FULL=1]="FULL",r[r.AJAX=2]="AJAX",r[r.IFRAME=3]="IFRAME",r[r.REDIRECT=4]="REDIRECT",r[r.API=5]="API",r[r.FORM=6]="FORM",r[r.ROUTER=7]="ROUTER",r[r.ERROR=8]="ERROR",(i=e.EventTypes||(e.EventTypes={}))[i.PageViewEvent=0]="PageViewEvent",i[i.NavigationEvent=1]="NavigationEvent",i[i.ExternalNavigationEvent=2]="ExternalNavigationEvent",i[i.ControlInteractionEvent=3]="ControlInteractionEvent",i[i.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent";var u="undefined"!=typeof window?window:null;u?function(){var e=u.crypto||u.msCrypto;if(!n&&e&&e.getRandomValues){var t=new Uint8Array(16);(n=function(){return e.getRandomValues(t),t})()}if(!n){var i=new Uint8Array(16);n=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=(t||0)>>>((3&e)<<3)&255;return i}}}():n=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var h=[],p=0;p<256;p++)h[p]=(p+256).toString(16).substr(1);function g(){var e=new Uint8Array(16),t=n();t[6]=15&t[6]|64,t[8]=63&t[8]|128;for(var i=0;i<16;i++)e[0+i]=t[i];return e}function m(){return function(e){for(var t=[],n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(""))}(g())}function f(e){return e?"urn:li:page:"+e:null}function E(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function _(e){return e?e.split(":").pop():null}function v(e,t){return e?{trackingId:t||m(),pageUrn:f(e)}:null}function b(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function T(e){return e&&e.referrer}function y(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var S=Object.assign||function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),r=0;r<t.length;r++){var o=t[r];if(null!==o)for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])}return i},w=function(){function t(e){void 0===e&&(e={appId:null,initialPageInstance:null}),this.config=e;var t=this.config.disableInitialAnchorPageViewEvent||!1;if(!this.config.appId)throw new Error("TrackingTwo requires an appId.");if(!this.config.initialPageInstance){var n=document.querySelector('meta[name="trk-pageinstance"]');if(n&&(this.config.initialPageInstance=b(n.getAttribute("content"))),!this.config.initialPageInstance)throw new Error("TrackingTwo requires an initialPageInstance");t=!0}this.config.eventHeaderProperties?this.config.eventHeaderProperties.pageInstance&&delete this.config.eventHeaderProperties.pageInstance:this.config.eventHeaderProperties={},this.config.userRequestHeaderProperties?this.config.userRequestHeaderProperties.pageKey&&delete this.config.userRequestHeaderProperties.pageKey:this.config.userRequestHeaderProperties={},this.config.validationMode=!!this.config.validationMode||!1,this.config.trackingUrl=this.config.trackingUrl||"/li/track";var i=function(){var e=window.location.pathname,t=e+window.location.search,n=window.location.href,i=c();if(!i)return null;for(var r=0;r<i.length;r++){var o=i[r].href;if(o===e||o===t||o===n){var s=i.splice(r,1)[0];return d(i),s}}return null}();i&&(e.previousPageInstance=i.prevInstance),this.config.eventHeaderProperties,this.config.userRequestHeaderProperties,this.config,s.init(),s.setProperty("disableSendBeacon",!1),s.setTrackingUrl(this.config.trackingUrl),s.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||10),s.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||10)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var r=this.config.prevControlName||(i?i.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,r),t||this.firePageViewEvent(),this._boundDocumentClickHandler=this._handleDocumentClicks.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickHandler,!0),this._boundDocumentClickBubbleHandler=this._handleDocumentClicksBubble.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickBubbleHandler,!1),this._boundWindowBeforeUnloadHandler=this._handleWindowBeforeUnload.bind(this),window&&window.addEventListener("beforeunload",this._boundWindowBeforeUnloadHandler,!0),this._boundDocumentVisibilityChangeHandler=this._handleDocumentVisibilityChange.bind(this);var o="visibilitychange";document&&(void 0!==document.msHidden&&(o="msvisibilitychange"),document.addEventListener(o,this._boundDocumentVisibilityChangeHandler,!0))}return t.prototype._handleDocumentClicks=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(n)}},t.prototype._handleDocumentClicksBubble=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name"),i=t.hasAttribute("data-tracking-will-navigate"),r=t.getAttribute("data-tracking-href")||t.getAttribute("href");i&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:r})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,n=t,i=null,r=!1;if(t){for(;n!==e.currentTarget&&("function"!=typeof n.hasAttribute||!n.hasAttribute("data-tracking-control-name"))&&n.parentElement;)n=n.parentElement;n!==e.currentTarget&&("getAttribute"in n&&(i=n.getAttribute("data-tracking-control-name")),"hasAttribute"in n&&(r=n.hasAttribute("data-tracking-will-navigate")))}r||this.fireExternalNavigationEvent(i)},t.prototype._handleDocumentVisibilityChange=function(){var e=!1;if(void 0!==document.msHidden)e=document.msHidden;else{if(void 0===document.hidden)return;e=document.hidden}this.firePageVisibilityChangeEvent(e)},t.prototype.saveStateForPageDeparture=function(e){var t,n;e&&(t={controlName:e.controlName,href:e.href,prevInstance:this.state.currentPageInstance},(n=c()||[]).push(t),d(n))},t.prototype.fireControlInteractionEvent=function(t,n,i){if(void 0===n&&(n=e.ControlInteractionType.SHORT_PRESS),void 0===i&&(i={}),!t)throw new Error("controlName is required.");var r=_(this.state.currentPageInstance.pageUrn),o=i.uiControlPageKey||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:E(t,o),interactionType:e.ControlInteractionType[n]},i)},t.prototype.fireNavigationEvent=function(t,n,i){void 0===i&&(i={});var r=t?_(t.pageUrn):null,o=i.uiControlPageKey||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:E(n,o)},i)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var i=n.uiControlPageKey||_(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:E(t,i)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var i=(n=S({},n)).pageViewPageType||e.PageViewPageType.AJAX,r=_(this.state.currentPageInstance.pageUrn),o=t||r;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:o},header:{},pageType:e.PageViewPageType[i].toLowerCase(),trackingInfo:{clientTimestamp:Date.now().toString()}},n)},t.prototype.fireAnchorPageViewEvent=function(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("newPageKey is required.");var i=S({},this.state.currentPageInstance),r=v(e);this.state.previousPageInstance=i,this.state.currentPageInstance=r,this.fireNavigationEvent(i,t,n),this.firePageViewEvent(e,n)},t.prototype.firePageVisibilityChangeEvent=function(t,n){void 0===n&&(n={}),this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageVisibilityChangeEvent],{requestHeader:{},header:{},isVisible:!t},n)},t.prototype.fireTrackingEvent=function(e,t,n,i){if(void 0===n&&(n={}),void 0===i&&(i=!1),!e||!t)throw new Error("eventName and body are required.");t=S({},t),(n=S({},n)).topicName||(n.topicName=e),n.pageInstance||(n.pageInstance=this.state.currentPageInstance);var r=S({pageKey:_(n.pageInstance.pageUrn),path:window.location.href,referer:T(document),trackingCode:y(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var o=S({pageInstance:n.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var a={requestHeader:r,header:o};this.config.mapHeaders&&(a=this.config.mapHeaders(a));var l=S(a,t),c={eventName:e,topicName:n.topicName,appId:this.config.appId};this.config.validationMode?s.validateEvent(c,l,(function(t){t&&console.error("Event "+e+" failed validation!")})):(s.sendEvent(c,l),i&&s.flush())},t.prototype.destroy=function(){s.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=v(n),new t(e)},t}();e.AppTrackingInstance=w,e.clearNavStorage=function(){window.sessionStorage.removeItem(a)},e.derivePageInstanceFromString=b,e.derivePageKeyFromUrn=_,e.generateControlUrn=E,e.generatePageInstance=v,e.generatePageUrn=f,e.generateTrackingId=m,e.getReferrer=T,e.getTrackingCode=y,e.stringifyPageInstance=function(e){return e?e.pageUrn+";"+e.trackingId:null},e.uuid=g,e.webTrackingTransport=s}(t)}(t={exports:{}},t.exports),t.exports}();let k=null;function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function D(e,{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o}={}){return new Promise((s,l)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},l(n)}})),c.addEventListener("error",(function(e){l(e)})),c.open(t,e,!0),c.withCredentials=i,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!r){const e=m("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",a(e))}c.send(o)})}new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");"".concat("tab-toggle","--active");const H={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(H).map(e=>H[e]);const M={};function x(e){const t=document.getElementById(e);if(!t&&void 0!==M[e])return M[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),M[e]=null,M[e];try{M[e]=JSON.parse(t.firstChild.nodeValue)}catch(t){console.warn("Error fetching embedded content with id: ".concat(e)),M[e]=null}return t.parentNode.removeChild(t),M[e]}['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");const{ENTER:B,ESCAPE:J}=c,q=function(e){const t=new RegExp("<(?!/?(?:"+e.allowedTags+")(?:[ \t\r\n]*/?>|[ \t\r\n]+(?:(?:(?:"+e.allowedAttributes+")(?:=([\"'])[^'\"<>]*\\1)?|(?:"+e.allowedURLAttributes+")=([\"'])(?:(?:"+e.allowedURLSchemes+")(?::|&#(?:58|x3a);)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\2)[ \t\r\n]*)+/?>))","i");return function(e){return!t.test(e)}}({allowedTags:"a|abbr|address|area|article|aside|audio|b|bdi|bdo|big|blockquote|br|button|center|cite|code|datalist|dd|del|details|dfn|div|dl|dt|em|fieldset|figcaption|figure|font|footer|h[1-6]|header|hgroup|hr|i|img|ins|kbd|label|legend|li|map|mark|marquee|nav|nobr|ol|p|pre|q|rp|rt|ruby|s|samp|section|small|source|span|strike|strong|sub|sup|table|tbody|td|tfoot|th|thead|time|tr|u|ul|var|video|wbr",allowedAttributes:"alt|aria-[a-z0-9_\\-]+|border|caption|checked|class|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth|maxlength|method|multiple|name|preload|readonly|rel|required|reversed|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step",allowedURLAttributes:"href|src",allowedURLSchemes:"https?|ftp|mailto"}),G="toast--hidden";class W{constructor(){let e=document.getElementById("toasts");if(!e)throw new Error("No toasts element");this._el=e,this._position=e.getAttribute("type"),this.closeToastString=e.getAttribute("data-close-toast-string")}trigger(e,t,n){if(!e||"notify"!==e&&"success"!==e&&"error"!==e)throw new Error("Valid type not specified: type must be success, error, or notify");if(!t)throw new Error("No message specified");const i=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),r=this._createToastEl(e,t,i);return this._addToast(r)}clearAllToasts(){let e=this._el.childNodes;Array.from(e).forEach(e=>{this._removeToast(e)})}_createToastEl(e,t,n){let i,r,o,s,a,l=this;return i=this._createElement({type:"div",classes:"toast toast--"+e+" toast--"+this._position+" "+G,attrs:[["role","alert"],["type",e]]}),r=this._createElement({type:"div",classes:"toast__inner"}),o=this._createElement({type:"icon",classes:"toast__icon",attrs:[["aria-hidden","true"],["type",e+"-pebble-icon"]],svg:e}),s=this._createElement({type:"p",classes:"toast__message",innerHTML:t}),(a=this._createElement({type:"button",classes:"toast__dismiss",svg:"dismiss",attrs:[["aria-label",this.closeToastString],["data-tracking-control-name","".concat(n,"_dismiss")]]})).addEventListener("click",(function(){l._removeToast(i)})),r.appendChild(o),r.appendChild(s),i.appendChild(r),i.appendChild(a),i}_createSvg(e){return"dismiss"===e?this._createDismissSvg():this._createTypeSvg(e)}_createTypeSvg(e){let t,n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttributeNS(null,"x","0px"),n.setAttributeNS(null,"y","0px"),n.setAttributeNS(null,"viewBox","0 0 24 24"),n.setAttributeNS(null,"style","enable-background:new 0 0 24 24;"),(t=document.createElementNS("http://www.w3.org/2000/svg","g")).setAttributeNS(null,"style","fill: currentColor"),this._addGChildren(t,e),n.appendChild(t),n}_addGChildren(e,t){if("success"===t){let t,n=document.createElementNS("http://www.w3.org/2000/svg","circle");n.setAttributeNS(null,"r","9.1"),n.setAttributeNS(null,"stroke","currentColor"),n.setAttributeNS(null,"stroke-width","1.8"),n.setAttributeNS(null,"cx","12"),n.setAttributeNS(null,"cy","12"),n.setAttributeNS(null,"fill","none"),n.setAttributeNS(null,"transform","rotate(-90 12 12)"),(t=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"d","M15.667,8L17,9.042l-5.316,7.36c-0.297,0.395-0.739,0.594-1.184,0.599c-0.455,0.005-0.911-0.195-1.215-0.599l-2.441-3.456l1.416-1.028l2.227,3.167L15.667,8z"),t.setAttributeNS(null,"fill","currentColor"),e.appendChild(n),e.appendChild(t)}if("error"===t){let t,n,i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttributeNS(null,"r","9.1"),i.setAttributeNS(null,"stroke","currentColor"),i.setAttributeNS(null,"stroke-width","1.8"),i.setAttributeNS(null,"cx","12"),i.setAttributeNS(null,"cy","12"),i.setAttributeNS(null,"fill","none"),i.setAttributeNS(null,"transform","rotate(-90 12 12)"),(t=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"d","M13.238,12l3.463,3.463L15.463,16.7L12,13.237L8.538,16.7L7.3,15.463L10.763,12L7.3,8.537L8.538,7.3L12,10.763 l3.452-3.452l1.238,1.237L13.238,12z"),(n=document.createElementNS("http://www.w3.org/2000/svg","rect")).setAttributeNS(null,"style","fill:none"),n.setAttributeNS(null,"width","24"),n.setAttributeNS(null,"height","24"),e.appendChild(i),e.appendChild(t),e.appendChild(n)}if("notify"===t){let t,n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z M12,20.23 c-4.538,0-8.23-3.692-8.23-8.23S7.462,3.77,12,3.77s8.23,3.692,8.23,8.23S16.538,20.23,12,20.23z M11,10h2v8h-2V10z M11,6h2v2h-2 V6z"),(t=document.createElementNS("http://www.w3.org/2000/svg","rect")).setAttributeNS(null,"style","fill:none;"),t.setAttributeNS(null,"width","24"),t.setAttributeNS(null,"height","24"),e.appendChild(n),e.appendChild(t)}}_createDismissSvg(){let e,t,n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttributeNS(null,"x","0"),n.setAttributeNS(null,"y","0"),n.setAttributeNS(null,"viewBox","0 0 24 24"),n.setAttributeNS(null,"width","24px"),n.setAttributeNS(null,"height","24px"),n.setAttributeNS(null,"class","toast__dismiss-icon"),(e=document.createElementNS("http://www.w3.org/2000/svg","g")).setAttributeNS(null,"style","fill-opacity: 1"),(t=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"d","M13,4.32L9.31,8,13,11.69,11.69,13,8,9.31,4.31,13,3,11.69,6.69,8,3,4.31,4.31,3,8,6.69,11.68,3Z"),n.appendChild(e),n.appendChild(t),n}_addToast(e){return this._el.appendChild(e),setTimeout((function(){e.classList.remove(G)}),500),e}_removeToast(e){let t=this._el;e.classList.add(G),setTimeout((function(){t.removeChild(e)}),500)}_createElement(e){let t,{type:n,classes:i,attrs:r,innerHTML:o,svg:s}=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);if(t=document.createElement(n),i&&(t.className=i),s){let e=this._createSvg(s);t.appendChild(e)}var a;if(o&&(t.innerHTML=q(a=o)?a:a.replace(/<[^>]*>|[<>'"&\\]/g,"")),r)for(let e of r)t.setAttribute(e[0],e[1]);return t}}const K="loader--show";class V{constructor(e){if(!e)throw new Error("Loader el required");this.el=e}show(){this.el.classList.add(K)}hide(){this.el.classList.remove(K)}}function z(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function $(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function Y(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}z(),$(3),Y(128),z(),$(6),Y(400);var Q=window||e;const X=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,Z="utag_data",ee="utag";function te(){const e=Q.location?Q.location.hostname:"";return X.test(e)}function ne(){return te()?"platform.linkedin.com":"platform.linkedin-ei.com"}function ie(){const e=Q.location?Q.location.hostname:"";return/\.cn$/.test(e)}function re(e,t,n,i=!0){if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.");const r=new Q.XMLHttpRequest;r.withCredentials=i,r.open("GET",e,!0),r.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},r.send()}let oe;const se={},ae={};function le(e){for(let t=1;t<arguments.length;t++){const n=arguments[t];if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];e[r]=n[r]}}}return e}Q[Z]||(Q[Z]={});const ce="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let de;function ue(e,t,n){e.onLoadRulesRunOnce(n),e.view(le({},t,se))}function he(e,t,n){e.onLoadRulesRunOnce(n),e.link(le({},t,se))}function pe(e,t){!function(e){return"object"==typeof e&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)}function ge(e){const t=function(e){return Object.keys(e.loader.cfg).filter(t=>1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load)}(e).map(t=>function(e,t){return{tagUrn:function(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Q.utag_cfg_ovrd=Q.utag_cfg_ovrd||{},Q.utag_cfg_ovrd.noview=!0,Q.utag_cfg_ovrd.nocookie=!0;const me=ce&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Q.navigator.userAgent),fe={};class Ee{constructor({profileName:e,tracking2Instance:t,enableWhitelisting:n=!1}={}){this.isInitialized=!1,this.isWhitelistingEnabled=!1,this._whitelistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.whitelist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableWhitelisting=n}initialize(){return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(this.isInitialized=!0,this.initializePromise=new Promise((e,t)=>{this.enableWhitelisting?(this.isWhitelistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._whitelistReadyPromise=function(e){if(!ae[e]){const t=function(e){return"https://".concat(ne(),"/litms/whitelist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{re(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});ae[e]=n}return ae[e]}(this.profileName).then(e=>this._processWhitelistResult(e)).catch(e=>console.error("Unable to retrieve whitelists for profile : ".concat(this.profileName),e))):this._loadContainerTag(e,t)}),this.profileName&&(fe[this.profileName]=this),this.initializePromise):Promise.resolve()}_processWhitelistResult(e){Object.keys(e).forEach(t=>this.addValuesToWhitelist(t,e[t]))}_loadContainerTag(e,t){void 0!==Q[ee]&&(Q[ee]=void 0),void 0!==Q[Z]&&(Q[Z]=void 0);const n=function(){if(!oe){const e="https://".concat(te()?ie()?"www.linkedin.cn":"www.linkedin.com":ie()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user");oe=new Promise((t,n)=>{re(e,e=>{t(JSON.parse(e))},e=>{n(e)})})}return oe}().then(e=>{Object.keys(e).forEach(t=>{!function(e,t){const n="string"!=typeof t?"":"".concat(t,".");"object"==typeof e&&Object.keys(e).forEach(t=>{se[n+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings",e)}),i=(r=function(e="main"){return function(){if(void 0===de&&ce){const e=Q.document.cookie.match(/litms_utag_override=([^;]+)/);de=e?e[1]:""}return de}().length>0?de:function(e){let t=null;return"string"==typeof e&&(t="https://".concat(ne(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(function(e){const t=new Q.Date;t.setSeconds(0),t.setMilliseconds(0);const n=5*Math.floor(t.getMinutes()/5);return t.setMinutes(n),t.getTime()}())),t}(e)}(this.profileName),new Promise(e=>{const t=Q.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,Q.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Q[ee],function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){n.call(this,arguments),t.length>0&&t.shift()()}}(this._uTag),this._processQueuedEvents();const t={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&pe(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!me}_shouldProcessEvent(e){return me?Promise.resolve(!1):this.isWhitelistingEnabled?new Promise(t=>{this._whitelistReadyPromise.then(()=>{t(this._isEventWhitelisted(e))})}):Promise.resolve(!0)}_isEventWhitelisted(e){return void 0!==e.controlUrn?this._isEventWhitelistedByControlUrn(e):this._isEventWhitelistedByPageKey(e)}_isEventWhitelistedByPageKey(e){return void 0!==this.whitelist.pageKey[e.pageKey]}_isEventWhitelistedByControlUrn(e){return void 0!==this.whitelist.controlUrn[e.controlUrn]}addValuesToWhitelist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.whitelist[e]&&t.forEach(t=>{this.whitelist[e][t]=!0})}_processQueuedEvents(){this.isContainerTagLoaded?function(e,t){if(function(e){Q[ee]=e}(e),t instanceof Array&&t.length>0){const n=t.length;for(let i=0;i<n;i++){const n=t.shift();n.isControlInteraction?he(e,n.data,n.callback):ue(e,n.data,n.callback)}}}(this._uTag,this._queue):this.isInitialized&&this.isWhitelistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=ge(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&pe(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}trackPageView(e,t){return this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}}function _e({event:e,litmsInstance:t,pageKey:n}){const i=e.target.getAttribute("data-tracking-control-name"),r=e.target.hasAttribute("data-tracking-litms");i&&r&&t.trackControlInteraction({controlUrn:"urn:li:control:".concat(n,"-").concat(i)})}class ve{constructor(e){if(this.trackingInstance=e,this.pageKey=i(document),this.litmsProfileName=function(e){const t=document.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new Ee({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>_e({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||_e({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView({pageKey:e=""}={}){if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");this.litmsInstance&&this.litmsInstance.trackPageView({pageKey:e||this.pageKey})}}let be;function Te(e){if(!be){if(!e)throw new Error("No trackingInstance passed in!");be=new ve(e)}return be}".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");const ye={getTrackingInstance:function({appId:e="seo",trackingCode:t}={}){const n=i(document),r=p(window.location.href,"originalReferer"),o={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{}};return t&&(o.userRequestHeaderProperties.trackingCode=t),r&&(o.userRequestHeaderProperties.referer=r),k||(k=F.AppTrackingInstance.createFromPageKey(o,n)),k.generateTrackingId=F.generateTrackingId,k},firePageViewEvent:function(e,t="ajax",n){const i=r(document),s=o(document);let a={clientTimestamp:Date.now(),pageTag:i},l={};s&&(l.interfaceLocale=s),n&&(l.pageKey=n);const c={header:{},requestHeader:l,pageType:t,trackingInfo:a};e.fireTrackingEvent("PageViewEvent",c)},fireViewModuleImpressionEvent:function(e,t){const n=o(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}}}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return rn})),n.d(t,"c",(function(){return Gt})),n.d(t,"d",(function(){return Le})),n.d(t,"e",(function(){return Ne})),n.d(t,"f",(function(){return Pe})),n.d(t,"g",(function(){return yt}));var i=n(0);const r=/^http[s]?:\/\/(qprod\.)?www\.linkedin(?:-ei)?\.(com|cn)$/,o={FIRST_NAME_INPUT:"#first-name",FIRST_NAME_LABEL:'[for="first-name"]',LAST_NAME_INPUT:"#last-name",LAST_NAME_LABEL:'[for="last-name"]',PHONETIC_FIRST_NAME_INPUT:"#phonetic-first-name",PHONETIC_LAST_NAME_INPUT:"#phonetic-last-name",EMAIL_INPUT:"#email-or-phone",EMAIL_LABEL:'[for="email-or-phone"]',PROFILE_CARD:".profile-card"},s={PHOTO:".profile-card__photo",NAME:".profile-card__info-name",NOT_YOU:".profile-card__not-you",EMAIL:".profile-card__info-email",EDIT_ICON:".profile-card__edit-icon",EDIT_PHOTO:{CANCEL_ICON:".profile-card__edit-photo-cancel-icon",MODAL:".profile-card__edit-photo-modal",TEXT:".profile-card__edit-photo-text"}},a={THIRD_PARTY_CONTAINER:".third-party-join__container",THIRD_PARTY_BUTTON:".third-party-join__btn"},l="hidden",c="src",d="required",u="FACEBOOK",h="GOOGLE",p="WECHAT";function g(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}function m(e,t){const n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const f="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",E={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},_={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},v={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},b={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},T={NOT_DISPLAYED:{BROWSER_NOT_SUPPORTED:"browser_not_supported",INVALID_CLIENT:"invalid_client",MISSING_CLIENT_ID:"missing_client_id",OPT_OUT_OR_NO_SESSION:"opt_out_or_no_session",SECURE_HTTP_REQUIRED:"secure_http_required",SUPPRESSED_BY_USER:"suppressed_by_user",UNREGISTERED_ORIGIN:"unregistered_origin",UNKNOWN_REASON:"unknown_reason"},SKIPPED:{AUTO_CANCEL:"auto_cancel",USER_CANCEL:"user_cancel",TAP_OUTSIDE:"tap_outside",ISSUING_FAILED:"issuing_failed"},DISMISSED:{CREDENTIAL_RETURNED:"credential_returned",CANCEL_CALLED:"cancel_called",FLOW_RESTARTED:"flow_restarted"}},y=E.GOOGLE_ERROR,S=E.GOOGLE_USER_FETCHED,w=E.INITIALIZED,I=_.INITIALIZATION,O=_.AUTHENTICATION;class L extends EventTarget{constructor(e){let t=e.libSrcPath,n=e.el;var i=e.clientId;let r=void 0===i?f:i;if(super(),!n)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=t,this.el=n,this.clientId=r,window.gapi)this._initializeGoogleAuth();else{if(!t)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");g(()=>{m(t,this._initializeGoogleAuth.bind(this))})}}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then(e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(w);this.dispatchEvent(t)}).catch(e=>{const t={type:I,message:e.error},n=new CustomEvent(y,{detail:t});this.dispatchEvent(n)})}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},e=>{const t=new CustomEvent(S,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)},e=>{const t={type:O,message:e.error},n=new CustomEvent(y,{detail:t});this.dispatchEvent(n)})}_getGoogleUserInformation(e){const t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}const N=E.GOOGLE_USER_FETCHED,P=E.PROMPT_MOMENT;class A extends EventTarget{constructor(e){let t=e.libSrcPath,n=e.containerId,i=e.context;var r=e.clientId;let o=void 0===r?f:r;var s=e.cancelOnTapOutside;let a=void 0===s||s;if(super(),!i)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.libSrcPath=t,this.containerId=n,this.cancelOnTapOutside=a,this.clientId=o,this.context=i,window.google&&window.google.accounts&&window.google.accounts.id)this._onGoogleApiLoad();else{if(!t)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");g(()=>{m(t,this._onGoogleApiLoad.bind(this))})}}_onGoogleApiLoad(){google.accounts.id.initialize({client_id:this.clientId,prompt_parent_id:this.containerId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context}),Promise.resolve().then(()=>this.promptOneTap())}_handleCredentialResponse(e){const t=e.credential;let n=this.context===v.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){const e=new CustomEvent(N,{detail:n});this.dispatchEvent(e)}}_getBasicProfile(e){try{const t=new gapi.auth2.BasicProfile({id_token:e});return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:e,imageUrl:t.getImageUrl()}}catch(e){return this._dispatchSkippedEvent(e.message),null}}_dispatchSkippedEvent(e){const t={message:e,reason:T.SKIPPED.ISSUING_FAILED,type:b.SKIPPED},n=new CustomEvent(P,{detail:t});this.dispatchEvent(n)}promptOneTap(){google.accounts.id.prompt(e=>{const t={type:e.getMomentType(),reason:e.getNotDisplayedReason()||e.getSkippedReason()||e.getDismissedReason()},n=new CustomEvent(P,{detail:t});this.dispatchEvent(n)})}hideOneTap(){google.accounts.id.cancel()}}const C=E,R=_,F=v,k=T,j=b;function U(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body).querySelectorAll(e);t.length&&Array.from(t).forEach(e=>e.classList.remove(l))}function D(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body).querySelectorAll(e);t.length&&Array.from(t).forEach(e=>e.classList.add(l))}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=M(e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body);i&&i.setAttribute(t,n)}function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if(e)return t.querySelector(e);console.warn(`you attempted to get an element with a falsey selector: ${e}, this is probably a bug.`)}i.g.getPageKey(document).replace("_jsbeacon","");const x=C,B=F,J=k;x.GOOGLE_USER_FETCHED,x.PROMPT_MOMENT,B.SIGN_IN,J.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,J.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,J.NOT_DISPLAYED.SUPPRESSED_BY_USER,J.SKIPPED.AUTO_CANCEL,J.SKIPPED.TAP_OUTSIDE,J.SKIPPED.USER_CANCEL;var q=C;q.GOOGLE_USER_FETCHED,q.GOOGLE_ERROR,q.INITIALIZED,R.INITIALIZATION;var G="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",W="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",K=["b","del","em","i","s","strong","sub","sup"],V=K.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),z=[G,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function $(){}function Y(e,t){if(t=t||"log",window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}var Q,X,Z=(X=/[&<>"'\u0000\\=]/g,Q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(X,(function(e){return Q[e]}))}),ee=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",l=e[W],i[a]=l,l)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,l}))}}(),te=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function ne(e){return/[<&]/.test(e)}var ie,re=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)},oe="[ \t\r\n]*";function se(e){e=te(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",re(e,(function(e,s){t=e.tags||V,n=e.attrs||z,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=oe,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")"+oe+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function ae(e){return se({tags:e=e||V,checkUrlAttrs:!0})}function le(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!ae(n).test(e):i?!le.R_UNSAFE_CUSTOM_ELEMENT.test(e):!le.R_UNSAFE_HTML.test(e)}function ce(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function de(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof $||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Z(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return ne(i)&&!le(i,n)&&(i=ce(i),Y("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ue(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}le.R_UNSAFE_HTML=ae(),le.R_UNSAFE_CUSTOM_ELEMENT=se([{tags:V,checkUrlAttrs:!0},{tags:[(ie={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[G,ie.attrs].join("|"),checkUrlAttrs:!1}]);var he={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};he.optgroup=he.option,he.tbody=he.tfoot=he.colgroup=he.caption=he.thead,he.th=he.td;var pe=/<([\w:]+)/;function ge(e,t){var n,i,r,o,s,a,l,c=t.createDocumentFragment(),d=[];for(s=0,l=e.length;s<l;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||c.appendChild(t.createElement("div")),n=(pe.exec(o)||["",""])[1].toLowerCase(),Ee(r,(i=he[n]||he._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ue(d,r.childNodes),(r=c.firstChild).textContent=""}else ue(d,o.nodeType?[o]:o);for(c.textContent="",o=d[s=0];o;)c.appendChild(o),o=d[++s];return c}var me=de,fe=de;function Ee(e,t,n){var i=de(t,n);return ne(i)?e.innerHTML=i:e[W]=i,i}function _e(e,t){if(!(this instanceof _e))return new _e(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}_e.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new $,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(le(e,this._options)||(n=e,e=ce(e),Y("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});const ve=/ /g,be=/[\s\u0000<>"]|%00/,Te=/\\/,ye=/([.]|%2e){2}/i;let Se=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function we(e){let t;if("string"!=typeof e)return Y("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(Y("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(ve,"+")),!Se.test(t))return Y("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(be.test(t))return Y("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n=t.split("?")[0];return Te.test(n)||ye.test(n)||ye.test(decodeURI(n))?(Y("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}const Ie={redirect(e){window&&(window.location.href=e)}};var Oe={ALLOWED_TAGS:V,FORMATTING_TAGS:K,htmlEncode:Z,htmlUnencode:ee,log:Y,mk:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof _e?r:Z(r))})),fe(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=ge([e],t);else{if(!te(e))return e;n=ge(e,t)}return ue([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:me,reEncode:function(e){return Z(ee(e))},_redirector:Ie,redirect:function(e){const t=we(e);t===e&&Ie.redirect(t)},sanitizeHTML:fe,sanitizeUrl:we,setElementContent:Ee,text:function(e){return Y("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Z(e)},unsafe:function(e){return e},UnsafeString:_e};function Le(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function(e){const t=e.nextElementSibling;t&&t.classList.contains("artdeco-inline-feedback")&&t.parentNode.removeChild(t)}(e):function(e){const t=e.querySelector(".alert");t&&t.classList.add("hidden")}(e)}function Ne(e){e.querySelectorAll(".inline-alert").forEach(e=>e.parentNode.removeChild(e))}function Pe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.classList.remove("error"),t&&e.classList.remove("error--is-inline")}const Ae=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,Ce=/(.)\1{3}/,Re=/linkedin/i,Fe=/\d\d/,ke=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?"),je=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,Ue=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,De=/^[ぁ-ゔゞ゛゜ー]*$/,He=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,Me=e=>{const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},xe=e=>{const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},Be=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Fe.test(e)};Be.errorMessagePrefix="i18n_noConsecutiveDigits_";const Je=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Ae.test(e)};Je.errorMessagePrefix="i18n_noForbiddenCharacters_";const qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Ce.test(e)};qe.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const Ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Re.test(e)};Ge.errorMessagePrefix="i18n_noLinkedIn_";const We=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!ke.test(e)};We.errorMessagePrefix="i18n_noUrl_";const Ke=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Ue.test(e)};Ke.errorMessagePrefix="i18n_onlyChinese_";const Ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return De.test(e)};Ve.errorMessagePrefix="i18n_onlyPhonetic_";const ze=function(){return""!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim()};ze.errorMessagePrefix="i18n_required_";const $e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return je.test(e)};$e.errorMessagePrefix="i18n_invalidFormat_";const Ye=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return He.test(e)};Ye.errorMessagePrefix="i18n_invalidFormat_";const Qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return je.test(e)||He.test(e)};Qe.errorMessagePrefix="i18n_invalidFormat_";const Xe=[Me(50),Je,Be,qe,Ge,We],Ze=[ze].concat(Xe),et=[Ve,Me(50),qe],tt={"first-name":Ze,"last-name":Ze,"phonetic-first-name":et,"phonetic-last-name":et,"real-name":[ze,Ke,Me(4),xe(2)],"email-or-phone":[ze,Me(128),Qe],"email-address":[ze,Me(128),$e],"optional-email-address":[Me(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};return t.errorMessagePrefix=e.errorMessagePrefix,t})($e)],"phone-number":[ze,Ye],password:[ze,xe(6),Me(200)]},nt={button:!0,reset:!0,submit:!0,checkbox:!0},it=e=>e.type&&!nt[e.type],rt={"email-or-phone":"emailOrPhoneNumber","optional-email-address":"emailAddress","phone-number":"phoneNumber","email-address":"emailAddress",password:"password","first-name":"firstName","last-name":"lastName","phonetic-first-name":"phoneticFirstName","phonetic-last-name":"phoneticLastName"},ot={session_key:"email-or-phone",session_password:"password"};function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};let t=e.name,n=e.value;t=ot[t]||t;const i=tt[t];if(!i)throw new Error("No validation rules for element named "+t);return i.reduce((e,i)=>(i(n)||e.push(i.errorMessagePrefix+t),e),[])}const at=k,lt=j,ct="PageViewEvent",dt="EntityActivityEvent",ut="ControlInteractionEvent",ht="FOCUS",pt="SHORT_PRESS",gt="click",mt="view",ft={ERROR_ALERT:"error-alert",ERROR_ALERT_DISMISS_BUTTON:"error-alert-dismiss-button",GOOGLE_ONE_TAP_SIGNUP_BUTTON:"google-one-tap-signup-button",GOOGLE_ONE_TAP_CLOSE_BUTTON:"google-one-tap-close-button",JOIN_WITH_GOOGLE_BUTTON:"join-with-google-button",JOIN_WITH_FACEBOOK_BUTTON:"join-with-facebook-button",AGREE_AND_JOIN_BUTTON:"agree-and-join-button",CONTINUE_BUTTON:"continue-button",CHALLENGE_DIALOG:"challenge-dialog",CHALLENGE_SOLVED:"challenge-solved",CHALLENGE_FAILED:"challenge-failed",PROFILE_CARD_NOT_YOU_BUTTON:"profile-card-not-you-button",DELETE_PHOTO_BUTTON:"delete-photo-button"},Et={GOOLE_ONE_TAP:{GOOGLE_ONE_TAP_SIGNUP_IGNORED:"google-one-tap-signup-ignored",GOOGLE_ONE_TAP_IMPRESSION:"google-one-tap-impression-success",GOOGLE_ONE_TAP_NO_ACCOUNT:"google-one-tap-no-account",GOOGLE_ONE_TAP_ERROR:"google-one-tap-error",GOOGLE_ONE_TAP_REQUEST_FAIL_ERROR:"google-one-tap-request-fail-error",GOOGLE_ONE_TAP_ILLEGAL_REQUEST_ERROR:"google-one-tap-illegal-request-error",GOOGLE_ONE_TAP_INITIALIZATION_ERROR:"google-one-tap-initialization-error",GOOGLE_ONE_TAP_CONFIGURATION_ERROR:"google-one-tap-configuration-error"},THIRD_PARTY_JOIN_BUTTON:{FACEBOOK_IMPRESSION:"facebook-impression",FACEBOOK_ERROR:"facebook-error",GOOGLE_IMPRESSION:"google-impression",GOOGLE_ERROR:"google-error",GAAP_ERROR:"gaap-error"},JOIN_REQUEST:{JOIN_REQUEST_SUCCESS:"request-success",JOIN_REQUEST_FAILURE:"request-failure",JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP:"request-failure-with-google-one-tap",JOIN_REQUEST_FAILURE_WITH_FACEBOOK:"request-failure-with-facebook",JOIN_REQUEST_FAILURE_WITH_GOOGLE:"request-failure-with-google"},ALERT:{VALIDATION_FAILURE_ALERT:"validation-failure-alert"}};function _t(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;10===n||(window.tracking?window.tracking.then(n=>{n.fireTrackingEvent(e,t)}):window.setTimeout(()=>{_t(e,t,n+1)},500))}function vt(e,t){e.forEach(e=>{const n=t?e.target:e,r={header:{},pageType:"form",requestHeader:{interfaceLocale:i.g.getLocale(document)||null},trackingInfo:{clientTimestamp:Date.now(),pageTag:i.g.getPageTag(document)||null,source:"registration-ui-lib",formId:n.id}};_t(ct,r),t&&t.unobserve(n)})}function bt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i.g.getPageKey(document)||!e.controlName)return;const t={header:{},requestHeader:{},controlUrn:function(e){if(i.g.getPageKey(document)&&i.g.getPageKey)return`urn:li:control:${i.g.getPageKey(document)}-${e}`}(e.controlName),interactionType:e.interactionType||ht};_t(ut,t)}function Tt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i.g.getPageKey(document)||!e.trackingCode)return;const t={header:{},pageType:"form",requestHeader:{interfaceLocale:i.g.getLocale(document)||null},trackingCode:`${i.g.getPageKey(document)}-${e.trackingCode}`,activityType:e.activityType||gt,pageKey:i.g.getPageKey(document),attributes:e.customData||{}};_t(dt,t)}function yt(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]?function(e,t){if(!it(e))throw new Error("you cannot show an alert for this type of element "+e.type);e.nextElementSibling&&e.nextElementSibling.classList.contains("artdeco-inline-feedback")?function(e,t){const n=e.querySelector(".artdeco-inline-feedback__message");Oe.setElementContent(n,t||Object(i.d)("i18n_server_generic_error"))}(e.nextElementSibling,t):function(e,t){e.insertAdjacentHTML("afterend",function(e){return`<div class="inline-alert artdeco-inline-feedback artdeco-inline-feedback--error" role="alert" tabindex="-1" aria-live="assertive">\n      <p class="artdeco-inline-feedback__message">\n        ${e}\n      </p>\n    </div>\n  `}(t))}(e,t)}(e,t):function(e,t){const n=e.querySelector(".alert");if(!n)throw new Error('showAlert has been called but no element exists that matches the selector ".alert"');const r=n.querySelector('p[class="alert-content"]');Oe.setElementContent(r,t||Object(i.d)("i18n_server_generic_error")),n.classList.remove("hidden"),bt({controlName:ft.ERROR_ALERT,interactionType:pt})}(e,t)}function St(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.classList.add("error"),t&&e.classList.add("error--is-inline")}const wt=790,It=580,Ot="auth_popup";class Lt{constructor(e,t){if(!e)throw new Error("No element passed in.");let n;switch(this.element=e,this.provider=t,this.show(),this._setupGaapCallback(),this._attachEventListeners(),this.provider){case u:n=Et.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_IMPRESSION;break;case h:n=Et.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION;break;case p:n=Et.THIRD_PARTY_JOIN_BUTTON.WECHAT_IMPRESSION}Tt({trackingCode:n,activityType:mt})}onUserInfoFetch(){}onError(){}hide(){this.element.classList.add(l)}show(){this.element.classList.remove(l)}_setupGaapCallback(){window.thirdPartyCallback=(e,t)=>{if(this.gaapAuthWindow.close(),""!==t||0!==st({name:"email-or-phone",value:e}).length)return this.onError(this.provider),Tt({trackingCode:Et.THIRD_PARTY_JOIN_BUTTON.GAAP_ERROR,activityType:gt,customData:{provider:this.provider,errorContent:t}}),Promise.reject(t);const n=function(e,t){return Object(i.h)(Oe.sanitizeUrl(`${Object(i.d)("dust-var-callbackUrl")}${e}?handle=${t}`)).then(e=>e.responseText)}(this.provider,e).then(t=>(this.element.classList.add(l),function(e,t){const n={id:t,phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",firstName:"",lastName:"",profilePictureUrl:""};return e?(n.phoneticFirstName=e.phoneticFirstName,n.phoneticLastName=e.phoneticLastName,n.displayDigitalMediaAssetUrn=e.displayDigitalMediaAssetUrn,n.firstName=e.firstName,n.lastName=e.lastName,n.profilePictureUrl=e.profilePictureUrl,n):n}(t?JSON.parse(t):t,e))).catch(e=>{let t;switch(this.onError(this.provider),this.provider){case u:t=Et.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_ERROR;break;case h:t=Et.THIRD_PARTY_JOIN_BUTTON.GOOGLE_ERROR;break;case p:t=Et.THIRD_PARTY_JOIN_BUTTON.WECHAT_ERROR}throw Tt({trackingCode:t,activityType:gt,customData:{errorContent:e}}),e});return this.onUserInfoFetch(n),n}}_attachEventListeners(){this.element.querySelector(a.THIRD_PARTY_BUTTON).addEventListener("click",()=>{let e;switch(this.gaapAuthWindow=function(){return e=Object(i.d)("dust-var-authUrl"),window.open(Oe.sanitizeUrl(e),Ot,`width=${wt},height=${It}`);var e}(),this.provider){case u:e=ft.JOIN_WITH_FACEBOOK_BUTTON;break;case h:e=ft.JOIN_WITH_GOOGLE_BUTTON;break;case p:e=ft.JOIN_WITH_WECHAT_BUTTON}bt({controlName:e,interactionType:pt})})}}var Nt=C;const Pt=Nt.GOOGLE_ERROR,At=Nt.GOOGLE_USER_FETCHED,Ct=Nt.INITIALIZED;class Rt{constructor(e){if(!e)throw new Error("No element passed in.");this.element=e,this._setupGaapCallback(),this._attachEventListeners(),Tt({trackingCode:Et.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION,activityType:mt})}onUserInfoFetch(){}onError(){}hide(){this.element.classList.add(l)}show(){this.element.classList.remove(l)}_setupGaapCallback(){window.lazyloader?window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib")).then(this._initGoogleSignin.bind(this)):this._initGoogleSignin()}_initGoogleSignin(){const e=new L({el:this.element.querySelector(a.THIRD_PARTY_BUTTON)});e.addEventListener(At,e=>{const t=function(e){if(!e)return parsedUserInfo;const t=e.email,n=e.givenName,i=e.familyName;return{displayDigitalMediaAssetUrn:"",firstName:n,id:t,idToken:e.idToken,lastName:i,phoneticFirstName:"",phoneticLastName:"",profilePictureUrl:e.imageUrl,userId:e.id}}(e.detail);this.onUserInfoFetch(Promise.resolve(t))}),e.addEventListener(Ct,()=>{this.show()}),e.addEventListener(Pt,e=>{let t=e.detail;const n=t.type,i=`join-with-google-error--${n}-${t.message}`;n===R.INITIALIZATION?this.hide():this.onError(h),bt({controlName:i,interactionType:pt})}),this.googleSignIn=e}_attachEventListeners(){this.element.querySelector(a.THIRD_PARTY_BUTTON).addEventListener("click",()=>{bt({controlName:ft.JOIN_WITH_GOOGLE_BUTTON,interactionType:pt})})}}const Ft=new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);class kt{sendFingerprint(e,t,n){const i=this.getFingerprintData(),r=new XMLHttpRequest;i["x-f-uc"]=n,i.csrf_token=t,r.open("POST",e),r.setRequestHeader("Content-type","application/json"),r.send(JSON.stringify(i))}collectInitialFingerprint(e,t,n,i){setTimeout(()=>{this.sendFingerprint(e,t,n)},i)}collectFinalFingerprint(e,t,n){return()=>{if(navigator.sendBeacon&&"undefined"!=typeof FormData){let i=this.getFingerprintData();i.csrf_token=t;let r=new FormData;r.append("x-f-uc",n);for(let e in i)i.hasOwnProperty(e)&&r.append(e,i[e]);navigator.sendBeacon(e,r)}else this.sendFingerprint(e,t,n)}}getFingerprintData(){var e={};const t=Date.now();return"undefined"!=typeof Ubba_fetch&&(e=Ubba_fetch()),e.liExecutionTime=Date.now()-t,e}}var jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};var Ut="delete me",Dt="v=2&",Ht={FIRST_AND_LAST_QUOTES:/^\"(.+)\"$/};class Mt{constructor(){if(this.registrationUrl=Object(i.d)("registrationUrl"),!this.registrationUrl)throw new Error('Document missing embed with element ID === "registrationUrl"')}sendCreateAccountRequest(e){const t=e.emailOrPhoneNumber,n=e.emailAddress,r=e.phoneNumber;n||r||(t.includes("@")?e.emailAddress=t:e.phoneNumber=t),e.emailAddress&&(e.botDetectionInput=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now().toString();if(!e)throw new Error("emailAddress is a required field in botDetectionInput");const n=()=>Math.floor(9e8*Math.random())+1e8,i=`${n()}:${n()}:${n()}`;return{nonce:i,clientTimestampParamValue:t,clientOutput:"",jsVersion:"",email:e,requestId:`${e}:${i}`}}(e.emailAddress));const o={method:"POST",headers:{"Csrf-Token":this._getCsrfTokenFromBcookie(),Accept:"*/*","Content-Type":"application/json","X-NuxSupportsCp":"on"},sendCookies:!0,skipCsrfToken:!0,postData:JSON.stringify(e)};return Object(i.h)(this.registrationUrl,o).catch(e=>this._handleError(e)).then(e=>this._handleResponse(e))}_getCsrfTokenFromBcookie(){const e=(i.f.getCookie("bcookie")||"").trim();if(e!==Ut)return e.replace(Ht.FIRST_AND_LAST_QUOTES,"$1").replace(Dt,"")}_handleError(e){if(e.response&&e.response.responseText)try{e.response.responseObj=JSON.parse(e.response.responseText)}catch(e){}throw e}_handleResponse(e){if(e.responseObj=JSON.parse(e.responseText),e.responseObj.challengeUrl){const t=new Error("Challenge Issued with Challenge URL: "+e.responseObj.challengeUrl);throw t.response=e,t}return e}}const xt=".challenge-dialog",Bt=".challenge-dialog__close",Jt=".challenge-dialog__iframe";class qt{constructor(e){if(!e)throw Error("Challenge URL is required");this.complete=!1,this.challengeDialogElem=document.querySelector(xt),this.challengeIframeElem=this.challengeDialogElem.querySelector(Jt),this.challengeIframeElem.src=Oe.sanitizeUrl(e)}showChallenge(){return new Promise((e,t)=>{const n=this._handleDialogClose.bind(this,t);this._setupEventListeners(n=>{r.test(n.origin)&&n.data||t();const i=JSON.parse(n.data);if("CHALLENGE_SOLVED"===i.eventId)bt({controlName:ft.CHALLENGE_SOLVED,interactionType:pt}),e(i.payload);else if("CHALLENGE_FAILED"===i.eventId)bt({controlName:ft.CHALLENGE_FAILED,interactionType:pt}),t(i.payload);else if("FRAME_RESIZE"===i.eventId&&document.querySelector(".challenge-dialog__modal-container")){const e=this.challengeIframeElem.contentDocument.body;this.challengeIframeElem.style.height=e.scrollHeight+"px"}},n),this.challengeIframeElem.onload=()=>{this.challengeDialogElem.style.display="",this.challengeDialogElem.focus(),document.documentElement.style.overflow="hidden",bt({controlName:ft.CHALLENGE_DIALOG,interactionType:ht})}}).then(e=>(this._tearDownEventListeners(),this._cleanup(),e)).catch(e=>{throw this._tearDownEventListeners(),this._cleanup(),e})}_setupEventListeners(e,t){const n=this.challengeDialogElem.querySelector(Bt);n.addEventListener("click",t),window.addEventListener("message",e,!1),this._tearDownEventListeners=()=>{n.removeEventListener("click",t),window.removeEventListener("message",e,!1)}}_tearDownEventListeners(){}_cleanup(){this.complete=!0,this.challengeIframeElem.onload=null,this.challengeDialogElem.style.display="none",this.challengeIframeElem.src="about:blank",document.documentElement.style.overflow=""}_handleDialogClose(e){this.complete||e("softFail")}_getCsrfTokenFromBcookie(){return(i.f.getCookie("bcookie")||"").trim().replace("v=2&","")}}var Gt={validationFailed:"validation-failed",validationSucceeded:"validation-succeeded",accountCreationChallenged:"account-creation-challenged",accountCreationFailed:"account-creation-failed",accountCreationSucceeded:"account-creation-succeeded",challengeClosed:"challenge-closed",challengeFailed:"challenge-failed",challengeSucceeded:"challenge-succeeded",splitJoinFormStepChange:"split-join-form-step-change",thirdPartyProfileCardToggled:"third-party-profile-card-toggled",globalError:"global-error"};function Wt(e,t){i.f.dispatchCustomEvent(e,Gt.splitJoinFormStepChange,{splitJoinStepNum:t})}function Kt(e,t){i.f.dispatchCustomEvent(e,Gt.globalError,{globalErrorMessage:t})}const Vt="join-form__form-input-container",zt="join-form__form-input-container--is-hidden",$t="join-form__form-input-container--is-last-section";class Yt{constructor(e,t){if(!e)throw new Error("No element passed in.");this.elem=e,this.isNested=e.parentNode.classList.contains(Vt),this.requiredInputs=Array.from(e.querySelectorAll("input[required]")),this.elem.classList.add(`${Vt}--is-section-${t}`)}get isVisible(){return!this.elem.classList.contains(zt)}show(){this.elem.classList.remove(zt),this.requiredInputs.forEach(e=>e.setAttribute("required","required")),this.elem.querySelector("input").focus()}hide(){this.requiredInputs.forEach(e=>e.removeAttribute("required")),this.elem.classList.add(zt)}}class Qt{constructor(e){this.currentSplitJoinSectionNum=0,this._joinFormElem=e,this.totalSplitJoinSections=this._joinFormElem.querySelectorAll("."+Vt).length;const t=this.totalSplitJoinSections>2,n=this._joinFormElem.querySelector(`.${Vt}:not(.${zt})`),i=t?this._joinFormElem.querySelector(`.${zt}:not(.${$t})`):this._joinFormElem.querySelector("."+$t),r=this._joinFormElem.querySelector("."+$t);if(!n)throw new Error("Split join form must have a default visible section");if(!i)throw new Error("Split join form must have at least two sections");this._orderedSplitJoinSections=[new Yt(n,1),new Yt(i,2)],t&&this._orderedSplitJoinSections.push(new Yt(r,3)),this._orderedSplitJoinSections.forEach(e=>{e.elem.classList.contains(zt)&&e.requiredInputs.forEach(e=>{e.removeAttribute("required")})})}get sectionForCurrentStep(){return this._orderedSplitJoinSections[this.currentSplitJoinSectionNum]}get isLastStep(){return this.currentSplitJoinSectionNum+1===this.totalSplitJoinSections}get isFirstStep(){return 0===this.currentSplitJoinSectionNum}nextStep(){if(this.isLastStep)return;const e=this.sectionForCurrentStep;this.currentSplitJoinSectionNum+=1,this.sectionForCurrentStep.isNested&&this.sectionForCurrentStep.isVisible&&!this.isLastStep&&(this.currentSplitJoinSectionNum+=1);const t=this.sectionForCurrentStep;t.isNested||e.isNested?e.isNested&&this._hideNestedSectionParent(e):e.hide(),t.show(),Wt(this._joinFormElem,this.currentSplitJoinSectionNum)}prevStep(){if(this.isFirstStep)return;const e=this.sectionForCurrentStep;this.currentSplitJoinSectionNum-=1;const t=this.sectionForCurrentStep;e.isNested||t.isNested?t.isNested&&(e.hide(),this._showNestedSectionParent(t)):(e.hide(),t.show()),Wt(this._joinFormElem,this.currentSplitJoinSectionNum)}firstStep(){this.isFirstStep||(this.sectionForCurrentStep.isNested?this._hideNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.hide(),this.currentSplitJoinSectionNum=0,this.sectionForCurrentStep.isNested?this._showNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.show(),Wt(this._joinFormElem,this.currentSplitJoinSectionNum))}lastStep(){this.isLastStep||(this.sectionForCurrentStep.isNested?this._hideNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.hide(),this.currentSplitJoinSectionNum=this.totalSplitJoinSections-1,this.sectionForCurrentStep.show(),Wt(this._joinFormElem,this.currentSplitJoinSectionNum))}getSectionAtIndex(e){return this._orderedSplitJoinSections[e]}_hideNestedSectionParent(e){let t=e.elem;this._orderedSplitJoinSections.forEach(e=>{e.elem!==t&&e.elem.contains(t)&&e.hide()})}_showNestedSectionParent(e){let t=e.elem;this._orderedSplitJoinSections.forEach(e=>{e.elem!==t&&e.elem.contains(t)&&e.show()})}}const Xt=C,Zt=F,en=j,tn=Xt.GOOGLE_USER_FETCHED,nn=Xt.PROMPT_MOMENT;class rn{constructor(e){if(!e)throw new Error("No element passed in.");var t;this.joinForm=e,this.inputs=Array.from(this.joinForm.querySelectorAll("input")),this.inputNameToErrors={},this.registrationServerClient=new Mt,this.isSplitJoinForm=Object(i.d)("dust-var-isSplitJoinForm"),this.isGoogleOneTapEnabled="true"===Object(i.d)("dust-var-isSmartLockEnabled"),this.isMobile=Object(i.d)("dust-var-isMobile"),this.joinBtnProvider=Object(i.d)("dust-var-joinBtnProvider"),this.isInlineError=Object(i.d)("dust-var-isInlineError"),this.isSplitJoinForm&&(this.splitJoin=this._initSplitJoinForm()),this._attachEventListeners(),this._initThirdPartySignup(),t=[this.joinForm],i.f.onload(()=>{if(window.IntersectionObserver){const e=new IntersectionObserver(vt,{threshold:1});t.forEach(t=>e.observe(t))}else vt(t)})}get inputNameToElement(){return Object.defineProperty(this,"inputNameToElement",{value:this.inputs.reduce((e,t)=>(e[t.name]=t,e),{})}),this.inputNameToElement}get isThirdPartyJoinEnabled(){return this.isGoogleOneTapEnabled||this.joinBtnProvider}get isThirdPartyProfileCardVisible(){const e=M(o.PROFILE_CARD,this.joinForm);return e&&!e.classList.contains(l)}get thirdPartyAccountFields(){return{id:"",profilePictureUrl:"",firstName:"",lastName:"",phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",thirdPartyCredentials:{googleUserIdToken:"",thirdPartyProvider:""}}}get emailHandle(){const e=this.inputNameToElement["email-or-phone"],t=this.inputNameToElement["email-address"],n=e||t;let i=null;return n&&(i={input:"#"+n.id,label:`[for="${n.id}"]`}),Object.defineProperty(this,"emailHandle",{value:i}),this.emailHandle}get location(){return this._location||window.location}get inputsWithErrors(){const e=[];return this.inputs.filter(e=>this._isValidInput(e)).forEach(t=>{this.inputNameToErrors[t.name]||(this.inputNameToErrors[t.name]=st(t)),this.inputNameToErrors[t.name].length&&e.push({inputName:t.name,errorMessageKeys:this.inputNameToErrors[t.name]})}),e}set location(e){this._location=e}_attachEventListeners(){let e;var t;this.joinForm.addEventListener("change",e=>this._handleChange(e)),this.joinForm.addEventListener("input",e=>this._handleInput(e)),this.joinForm.addEventListener("focusout",e=>this._handleFocusOut(e)),this.joinForm.addEventListener("submit",e=>this._handleSubmit(e)),this.joinForm.addEventListener("invalid",t=>{t.preventDefault(),e||(e=window.setTimeout(()=>{e=null,this._handleInvalidSubmit(t)},0))},!0),this.joinForm.querySelector("[type=submit]").addEventListener("click",e=>{bt({controlName:this.isSplitJoinForm&&this.splitJoin.isLastStep?ft.CONTINUE_BUTTON:ft.AGREE_AND_JOIN_BUTTON,interactionType:pt})}),this.joinForm.querySelector(o.PROFILE_CARD)?(this.joinForm.querySelector(s.EDIT_ICON).addEventListener("click",()=>this._showPhotoModal()),this.joinForm.querySelector(s.EDIT_PHOTO.CANCEL_ICON).addEventListener("click",()=>this._hidePhotoModal()),this.joinForm.querySelector(s.NOT_YOU).addEventListener("click",()=>{this.location.reload(),bt({controlName:ft.PROFILE_CARD_NOT_YOU_BUTTON,interactionType:pt})}),this.joinForm.querySelector(s.EDIT_PHOTO.TEXT).addEventListener("click",()=>this._removePhoto())):console.warn("Profile card element not found"),this.isInlineError||((t=this.joinForm).querySelector(".alert").querySelector(".wrapper").addEventListener("click",()=>{Le(t),bt({controlName:ft.ERROR_ALERT_DISMISS_BUTTON,interactionType:pt})}),this.joinForm.addEventListener(Gt.globalError,e=>{yt(this.joinForm,e.detail.globalErrorMessage)})),this.joinForm.addEventListener(Gt.splitJoinFormStepChange,e=>{let t=e.detail.splitJoinStepNum;this._handleSplitJoinStepChange(t)})}_thirdPartyJoinErrorAlert(e){switch(e){case u:Kt(this.joinForm,Object(i.d)("i18n_third_party_join_error-message-facebook"));break;case h:Kt(this.joinForm,Object(i.d)("i18n_third_party_join_error-message-google"));break;case p:Kt(this.joinForm,Object(i.d)("i18n_third_party_join_error-message-wechat"))}}_handleInvalidSubmit(){const e=this.inputsWithErrors;return!!e.length&&(e.forEach(e=>{const t=this.inputNameToElement[e.inputName];St(t,this.isInlineError),this.isInlineError&&yt(t,Object(i.d)(e.errorMessageKeys[0]),this.isInlineError)}),this.isInlineError||yt(this.joinForm,Object(i.d)(e[0].errorMessageKeys[0])),this.inputNameToElement[e[0].inputName].focus(),Tt({trackingCode:Et.ALERT.VALIDATION_FAILURE_ALERT,activityType:gt,inputsWithErrors:e}),t=this.joinForm,n=e,i.f.dispatchCustomEvent(t,Gt.validationFailed,n),!0);var t,n}_handleChange(e){const t=e.target;it(t)&&(t.value?t.classList.add("input__input--has-text"):t.classList.remove("input__input--has-text"),this.inputNameToErrors[t.name]=st(t),0===this.inputNameToErrors[t.name].length&&(Pe(t,this.isInlineError),this.isInlineError&&Le(t,this.isInlineError)))}_handleFocusOut(e){if(!this.isInlineError)return;const t=e.target;it(t)&&(this.inputNameToErrors[t.name]=st(t),this.inputNameToErrors[t.name].length&&(St(t,this.isInlineError),yt(this.isInlineError?t:this.joinForm,Object(i.d)(this.inputNameToErrors[t.name][0]),this.isInlineError)))}_handleInput(e){if(!this.isInlineError)return;const t=e.target;it(t)&&(Pe(t,this.isInlineError),Le(t,this.isInlineError))}_handleSubmit(e){if(e.preventDefault(),this.isInlineError?Ne(this.joinForm):Le(this.joinForm),this._handleInvalidSubmit())return;if(this.isSplitJoinForm&&!this.splitJoin.isLastStep&&!this.isThirdPartyProfileCardVisible)return void this._handleSplitJoinSubmit();var t;t=this.joinForm,i.f.dispatchCustomEvent(t,Gt.validationSucceeded);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Array.from(e.elements).forEach(e=>{if(it(e)){const t=e.name,i=e.value;i&&("real-name"===t?n=jt({},n,function(e){let n,i;switch(e.length){case 2:i=e.substring(0,1),n=e.substring(1);break;case 3:const r=e.substring(0,2);Ft.has(r)?(i=r,n=e.substring(2)):(i=e.substring(0,1),n=e.substring(1));break;case 4:i=e.substring(0,2),n=e.substring(2);break;default:throw new Error("Expected Real Name to be between 2-4 characters.",t)}return{firstName:n,lastName:i}}(i)):n[rt[t]]=i)}}),n.source=Object(i.d)("dust-var-source")||null,n.redirectInfo=function(){const e=Object(i.d)("dust-var-postOnboardingRedirectUrl");return e?{postOnboardingRedirectUrl:e}:null}(),n.invitationInfo=function(){const e=Object(i.d)("dust-var-invitationId"),t=Object(i.d)("dust-var-sharedKey");return e||t?{invitationId:e,sharedKey:t}:null}(),n.sendConfirmationEmail=Object(i.d)("dust-var-sendConfirmationEmail"),"enabled"===Object(i.d)("dust-var-fpLixTreatment")&&(n.fpData=function(){let e="default";const t=new kt;try{e=JSON.stringify(t.getFingerprintData())}catch(t){e="error while fetching the fingerprinting data : "+t}return e}()),n=function(e,t){return jt({},e,t)}(t,n)}(this.joinForm,this.thirdPartyUserInfo);this._sendCreateAccountRequest(this.joinForm,n)}_handleSplitJoinSubmit(){this._hideGoogleOneTap(),this._hideThirdPartyJoinContainer(),this.splitJoin.nextStep()}_resetSplitJoinForm(){this._resetThirdPartyJoin(),this.splitJoin.firstStep()}_resetThirdPartyJoin(){this.isGoogleOneTapEnabled?this._showGoogleOneTap():this.joinBtnProvider&&this._showThirdPartyJoinContainer(),this.isThirdPartyProfileCardVisible&&this._toggleProfilecard()}_handleSplitJoinStepChange(e){const t=M('.join-form__form-body-agreement[data-is-not-yielded="true"]',this.joinForm);if(!t)return;const n=M(".join-form__form-body-submit-button",this.joinForm);if(t.classList[this.splitJoin.isLastStep?"add":"remove"]("join-form__form-body-agreement--is-hidden"),this.splitJoin.isLastStep||this.splitJoin.isFirstStep){const e=this.splitJoin.isLastStep?Object(i.d)("i18n_continue"):this._lastSubmitBtnText;this._lastSubmitBtnText=n.value,n.classList[this.splitJoin.isLastStep?"add":"remove"]("join-form__form-body-submit-button--no-agreement-text"),n.value=e,Oe.setElementContent(n,e)}}_isValidInput(e){const t=it(e);if(!this.isSplitJoinForm)return t;let n=e.parentNode;for(;!n.classList.contains(Vt);)n=n.parentNode;return t&&!n.classList.contains(zt)}_getRequiredElemNames(){const e=["first-name","last-name"];let t=[];return this.inputs.forEach(n=>{n.hasAttribute("required")&&("real-name"===n.name?t=t.concat(e):t.push(n.name))}),t}_sendCreateAccountRequest(e,t){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.length&&e.forEach(e=>{const n=rt[e];if(!n||!t[n])throw new Error(n?`Missing required field ${n}.`:"No mapping exists for inputs named "+e)})}(this._getRequiredElemNames(),t);const n=M(".join-form__form-body-submit-button",this.joinForm);return n.disabled=!0,this.registrationServerClient.sendCreateAccountRequest(t).then(t=>{!function(e,t){i.f.dispatchCustomEvent(e,Gt.accountCreationSucceeded,t)}(e,t.responseObj),Object(i.d)("dust-var-cancelOnboardingRedirect")||Oe.redirect(t.responseObj&&t.responseObj.redirectUrl||"/"),Tt({trackingCode:Et.JOIN_REQUEST.JOIN_REQUEST_SUCCESS,activityType:gt})}).catch(r=>{n.disabled=!1;const o=(r.response||{}).responseObj||{};o.challengeUrl?(function(e,t){i.f.dispatchCustomEvent(e,Gt.accountCreationChallenged,t)}(e,o),new qt(o.challengeUrl).showChallenge().then(n=>{!function(e){i.f.dispatchCustomEvent(e,Gt.challengeSucceeded)}(e),t.submissionId=o.submissionId,t.resolvedChallengeUrl=n,t.requestSignature=o.requestSignature,this._sendCreateAccountRequest(e,t)}).catch(t=>{"softFail"===t?function(e){i.f.dispatchCustomEvent(e,Gt.challengeClosed)}(e):function(e,t){i.f.dispatchCustomEvent(e,Gt.challengeFailed,t)}(e,t),Kt(this.joinForm,Object(i.d)("i18n_server_generic_error"))})):(function(e,t){i.f.dispatchCustomEvent(e,Gt.accountCreationFailed,t)}(e,o),Kt(e,o.translatedMessage),this.isSplitJoinForm&&!this.isThirdPartyProfileCardVisible?this._resetSplitJoinForm():this._resetThirdPartyJoin()),function(e,t){if(Tt({trackingCode:Et.JOIN_REQUEST.JOIN_REQUEST_FAILURE,activityType:gt,customData:e}),!t)return;const n=t.thirdPartyProvider;var i,r=gt;switch(n){case u:i=Et.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_FACEBOOK;break;case h:i=Et.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE;break;default:i=Et.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP}Tt({activityType:r,trackingCode:i})}(o,t.thirdPartyCredentials)})}_initThirdPartySignup(){this.isGoogleOneTapEnabled?this.googleOneTapPromise=this._initOneTap():this.joinBtnProvider&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton())}_initOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new A({cancelOnTapOutside:!1,context:Zt.SIGN_UP}),this.googleOneTapInstance.addEventListener(tn,e=>{let t=e.detail;t&&(this._parseThirdPartyUserInfo(t),this.renderUserDetails(),bt({controlName:ft.GOOGLE_ONE_TAP_SIGNUP_BUTTON,interactionType:pt}))}),this.googleOneTapInstance.addEventListener(nn,e=>{let t=e.detail;const n=t.reason,i=t.type;this.joinBtnProvider&&i===en.DISPLAY&&n&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton()),function(e){let t=e.reason,n=e.type;if(t){const e=`google-one-tap-moment--${n}-${t}`;n===lt.SKIPPED&&t===at.SKIPPED.USER_CANCEL?bt({controlName:ft.GOOGLE_ONE_TAP_CLOSE_BUTTON,interactionType:pt}):n===lt.SKIPPED?Tt({activityType:gt,trackingCode:e}):n===lt.DISPLAY&&Tt({activityType:mt,trackingCode:e})}}(t)}),this.googleOneTapInstance))}_initSplitJoinForm(){return new Qt(this.joinForm)}_initThirdPartyJoinButton(){if(this.isSplitJoinForm&&!this.splitJoin.isFirstStep)return;const e=Object(i.d)("dust-var-provider"),t=Object(i.d)("dust-var-useStandaloneLibrary");let n;return(n=e===h&&"true"===t?new Rt(document.querySelector(a.THIRD_PARTY_CONTAINER),e):new Lt(document.querySelector(a.THIRD_PARTY_CONTAINER),e)).onError=e=>this._thirdPartyJoinErrorAlert(e),n.onUserInfoFetch=e=>{e.then(e=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails())})},n}_parseThirdPartyUserInfo(e){this.thirdPartyUserInfo=this.thirdPartyAccountFields,e.givenName?(e.id=e.email,e.firstName=e.givenName,e.lastName=e.familyName,e.profilePictureUrl=e.imageUrl,e.thirdPartyCredentials={googleUserIdToken:e.idToken}):e.thirdPartyCredentials={thirdPartyProvider:this.joinBtnProvider,googleUserIdToken:e.idToken},Object.keys(this.thirdPartyAccountFields).forEach(t=>{e[t]&&(this.thirdPartyUserInfo[t]=e[t])})}setInputValues(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.firstName;let n=void 0===t?"":t;var i=e.lastName;let r=void 0===i?"":i;var s=e.email;let a=void 0===s?"":s;if(this._setPropertyValue(o.FIRST_NAME_INPUT,n),this._setPropertyValue(o.LAST_NAME_INPUT,r),this.emailHandle){this._setPropertyValue(this.emailHandle.input,a);const e=M(this.emailHandle.input,this.joinForm);this.inputNameToErrors[e.name]=st(e)}this.inputNameToElement.password.focus()}renderUserDetails(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this.thirdPartyUserInfo;const n=t.phoneticFirstName,i=t.phoneticLastName,r=t.firstName,s=t.lastName,a=t.id,l=t.profilePictureUrl;let c;this._setPropertyValue(o.FIRST_NAME_INPUT,r),this._setPropertyValue(o.LAST_NAME_INPUT,s),this._setPropertyValue(o.PHONETIC_FIRST_NAME_INPUT,n),this._setPropertyValue(o.PHONETIC_LAST_NAME_INPUT,i),this.emailHandle&&(this._setPropertyValue(this.emailHandle.input,a),c=M(this.emailHandle.input,this.joinForm),this.inputNameToErrors[c.name]=st(c)),(r&&s&&a&&c&&!this.inputNameToErrors[c.name].length||e&&l)&&(this._toggleProfilecard(),this._hideThirdPartyJoinContainer(),this.inputNameToElement.password.focus())}_renderProfilecard(){var e=this.thirdPartyUserInfo;const t=e.profilePictureUrl,n=e.firstName,i=e.lastName,r=e.id;H(s.PHOTO,c,t,this.joinForm),t||(D(s.PHOTO,this.joinForm),D(s.EDIT_ICON,this.joinForm)),n&&i&&(M(s.NAME,this.joinForm).innerText=`${n} ${i}`),r&&(M(s.EMAIL,this.joinForm).innerText=r)}_toggleProfilecard(){var e,t;this.isThirdPartyProfileCardVisible?(D(o.PROFILE_CARD,this.joinForm),this._showFieldsForThirdPartyProfileCard()):(this.isInlineError?Ne(this.joinForm):Le(this.joinForm),U(o.PROFILE_CARD,this.joinForm),this._hideFieldsForThirdPartyProfileCard(),this._renderProfilecard()),e=this.joinForm,t=this.isThirdPartyProfileCardVisible,i.f.dispatchCustomEvent(e,Gt.thirdPartyProfileCardToggled,{isProfileCardVisible:t})}_hideFieldsForThirdPartyProfileCard(){var e=this.thirdPartyUserInfo;const t=e.firstName,n=e.lastName,i=e.id;this.emailHandle&&i&&(D(this.emailHandle.input,this.joinForm),D(this.emailHandle.label,this.joinForm),function(e,t){const n=M(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body);n&&n.removeAttribute(t)}(this.emailHandle.input,d,this.joinForm)),!this.isSplitJoinForm&t&&n&&(D(o.FIRST_NAME_INPUT,this.joinForm),D(o.FIRST_NAME_LABEL,this.joinForm),D(o.LAST_NAME_INPUT,this.joinForm),D(o.LAST_NAME_LABEL,this.joinForm))}_showFieldsForThirdPartyProfileCard(){this.emailHandle&&(U(this.emailHandle.input,this.joinForm),U(this.emailHandle.label,this.joinForm),H(this.emailHandle.input,d,"required",this.joinForm)),this.isSplitJoinForm||(U(o.FIRST_NAME_INPUT,this.joinForm),U(o.FIRST_NAME_LABEL,this.joinForm),U(o.LAST_NAME_INPUT,this.joinForm),U(o.LAST_NAME_LABEL,this.joinForm))}_showGoogleOneTap(){this.isGoogleOneTapEnabled&&this.googleOneTapInstance.promptOneTap()}_hideGoogleOneTap(){this.isGoogleOneTapEnabled&&this.googleOneTapInstance.hideOneTap()}_showThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.show()}_hideThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.hide()}_setPropertyValue(e,t){const n=M(e,this.joinForm);n&&t&&(n.value=t)}_showPhotoModal(){U(s.EDIT_PHOTO.MODAL,this.joinForm)}_hidePhotoModal(){D(s.EDIT_PHOTO.MODAL,this.joinForm)}_removePhoto(){this._hidePhotoModal(),H(s.PHOTO,c,"",this.joinForm),D(s.PHOTO,this.joinForm),D(s.EDIT_ICON,this.joinForm),this.thirdPartyUserInfo.profilePictureUrl="",bt({controlName:ft.DELETE_PHOTO_BUTTON,interactionType:pt})}}},function(e,t,n){e.exports=function(){"use strict";var e="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",t="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",n=["b","del","em","i","s","strong","sub","sup"],i=n.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),r=[e,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function o(){}function s(e,t){if(t=t||"log","undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}new RegExp("&#?[a-zA-Z0-9]{1,10};");var a,l,c=(l=/[&<>"'\u0000\\=]/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(l,(function(e){return a[e]}))}),d=function(){var e,n,i=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return n="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(o){return null==o?null:(o+"").replace(i,(function(i,o,s,a){return o?(l=o,r.hasOwnProperty(l)?r[l]:(e.innerHTML="&"+l+";",c=e[t],r[l]=c,c)):s||a?n(parseInt(s||a,s?16:10)||65533):"�";var l,c}))}}(),u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function h(e){return/[<&]/.test(e)}var p,g=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)},m="[ \t\r\n]*";function f(e){e=u(e)?e:[e];var t,n,o,s=0,a="<(?!/?";return a+="(?:",g(e,(function(e,l){t=e.tags||i,n=e.attrs||r,o=e.checkUrlAttrs||!1,0!==l&&(a+="|"),a+="(?:"+t.join("|")+")",a+="(?:",a+=m,a+="|[ \t\r\n]+",a+="(?:(?:",a+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",o&&(a+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),a+=")"+m+")+",a+=")"})),a+=")",a+="/?>)",new RegExp(a,"i")}function E(e){return f({tags:e=e||i,checkUrlAttrs:!0})}function _(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!E(n).test(e):i?!_.R_UNSAFE_CUSTOM_ELEMENT.test(e):!_.R_UNSAFE_HTML.test(e)}function v(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function b(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,s=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(s=t[i]))||s instanceof o||"number"==typeof s))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");s=r?c(s):s.toString()}return n[i]=s,s}))}(e,t):e,r=e;return h(i)&&!_(i,n)&&(i=v(i),s("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function T(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}_.R_UNSAFE_HTML=E(),_.R_UNSAFE_CUSTOM_ELEMENT=f([{tags:i,checkUrlAttrs:!0},{tags:[(p={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[e,p.attrs].join("|"),checkUrlAttrs:!1}]);var y={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};y.optgroup=y.option,y.tbody=y.tfoot=y.colgroup=y.caption=y.thead,y.th=y.td;var S=/<([\w:]+)/;function w(e,t){var n,i,r,o,s,a,l,c=t.createDocumentFragment(),d=[];for(s=0,l=e.length;s<l;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||c.appendChild(t.createElement("div")),n=(S.exec(o)||["",""])[1].toLowerCase(),L(r,(i=y[n]||y._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);T(d,r.childNodes),(r=c.firstChild).textContent=""}else T(d,o.nodeType?[o]:o);for(c.textContent="",o=d[s=0];o;)c.appendChild(o),o=d[++s];return c}var I=b,O=b;function L(e,n,i){var r=b(n,i);return h(r)?e.innerHTML=r:e[t]=r,r}function N(e,t){if(!(this instanceof N))return new N(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}N.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new o,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(_(e,this._options)||(n=e,e=v(e),s("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var P=/ /g,A=/[\s\u0000<>"]|%00/,C=/\\/,R=/([.]|%2e){2}/i,F=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function k(e){var t=void 0;if("string"!=typeof e)return s("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(s("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(P,"+")),!F.test(t))return s("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(A.test(t))return s("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n=t.split("?")[0],i=void 0,r=!1;try{i=decodeURI(n)}catch(e){r=!0}return r?(s("jSecure Error: malformed url path detected: "+n),"invalid://"):C.test(n)||R.test(n)||R.test(i)?(s("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}var j={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:i,FORMATTING_TAGS:n,htmlEncode:c,htmlUnencode:d,log:s,mk:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="",o=void 0,s=n.length;return e&&e.forEach((function(e,t){r+=e,t<s&&(o=n[t],r+=o instanceof N?o:c(o))})),O(r)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=w([e],t);else{if(!u(e))return e;n=w(e,t)}return T([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:I,reEncode:function(e){return c(d(e))},_redirector:j,redirect:function(e){var t=k(e);t===e&&j.redirect(t)},sanitizeHTML:O,sanitizeUrl:k,setElementContent:L,text:function(e){return s("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),c(e)},unsafe:function(e){return e},UnsafeString:N}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0);const r="mobile-footer__more-lang-select";class o{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this.el=e,this.el.addEventListener("click",this._handleLocaleButtonClick.bind(this)),this.el.querySelector("."+r).addEventListener("change",e=>{e.target.classList.add(r+"--hidden"),this._updateLocale(e.target.value)})}get location(){return this._location||window.location}set location(e){this._location=e}_handleLocaleButtonClick(e){this._updateLocale(e.target.getAttribute("data-locale"))}_updateLocale(e){if(!e)return;const t=this.getLangCookieString(e);null!==t&&(document.cookie=t),this.location.reload()}getLangCookieString(e){let t=null;if(null!==e){const n=e.toLocaleLowerCase().replace("_","-"),r=i.g.getDomain(document);let o=new Date;o.setTime(o.getTime()+31536e6),t=`lang="v=2&lang=${n}";path=/;domain=${r};expires=${o.toUTCString()}`}return t}}},function(e,t,n){"use strict";var i=n(1),r=n(0),o=n(3),s=n(2),a=n.n(s);const l=i.c.splitJoinFormStepChange,c=i.c.accountCreationChallenged,d=i.c.accountCreationFailed,u=i.c.challengeClosed,h=i.c.challengeFailed,p=i.c.thirdPartyProfileCardToggled,g=i.c.globalError,m=e=>document.querySelector(e),f=Object.freeze({mobileFooter:".mobile-footer",mobileFooterLangList:".mobile-footer__lang-list",langSelector:".language-selector",joinForm:".join-form",joinFormBody:".join-form__form-body",signInContainer:".main__sign-in-container",profileSection:".main__profile-section",mainSubtitle:".main__subtitle",pageOverlay:".page__overlay",legalAgreement:".join-form__form-body-agreement",submitBtn:"#join-form-submit",inbugLogo:".main__logo--is-mobile",backBtn:".main__back-button",main:".main",mainLogo:".main__logo",mainMobileLogo:".main__logo--is-mobile"}),E=Object.freeze({hidden:"hidden",hiddenLegalAgreement:"join-form__form-body-agreement--is-hidden",joinFormBodyWithProfileCard:"join-form__form-body--with-profile-card",legalAgreementIsAnimatingOutRight:"join-form__form-body-agreement--is-animating-out-right",legalAgreementIsAnimatingInRight:"join-form__form-body-agreement--is-animating-in-right",legalAgreementIsAnimatingOutLeft:"join-form__form-body-agreement--is-animating-out-left",mainIsAnimating:"main--is-animating",splitJoinSectionIsAnimatedOut:"join-form__form-input-container--is-animated-out",splitJoinSectionIsAnimatingIn:"join-form__form-input-container--is-animating-in",splitJoinSectionIsAnimatingOut:"join-form__form-input-container--is-animating-out",submitBtnIsAnimating:"join-form__form-body-submit-button--is-animating"});t.a=class{constructor(e){let t=e.globalWindow;this.window=t,this.isMobile=Object(r.d)("dust-var-isMobile"),this.isLegalAgreementOnStep2=Object(r.d)("dust-var-isLegalAgreementOnStep2"),this.languageSelector=this._initLangSelector(),this.joinForm=this._initJoinForm(),this.hasInlineErrors=Object(r.d)("dust-var-hasInlineErrors"),this.isOpendoorV2Part1=Object(r.d)("dust-var-isOpendoorV2Part1"),this.hasSplitJoinAnimations=Object(r.d)("dust-var-hasSplitJoinAnimations"),this.hasOpendoorv2CopyChanges=Object(r.d)("dust-var-hasOpendoorv2CopyChanges"),this.hasSplitPasswordAndEmail=Object(r.d)("dust-var-hasSplitPasswordAndEmail"),this.isWWE=Object(r.d)("dust-var-isWWE"),this.hasInlineErrors&&(this.toasts=new r.c),this._setupCustomEventListeners()}_initLangSelector(){return this.isMobile?new o.a(m(f.mobileFooterLangList)):new r.a(m(f.langSelector))}_initJoinForm(){const e=document.querySelector(".page");return e&&e.classList.remove("page--isLoading"),new i.a(m(f.joinForm))}_setupCustomEventListeners(){const e=this.hideChallenge.bind(this),t=this.showChallenge.bind(this),n=this.toggleProfileSection.bind(this),o=this.joinForm.joinForm;o.addEventListener(l,e=>{let t=e.detail.splitJoinStepNum;this._handleSplitJoinStepChange(t)}),o.addEventListener(c,t),o.addEventListener(u,e),o.addEventListener(h,e),o.addEventListener(d,e),o.addEventListener(p,n),this.isOpendoorV2Part1&&m(f.backBtn).addEventListener("click",()=>{let e;this.joinForm.splitJoin.firstStep(),(e=3===this.joinForm.splitJoin.totalSplitJoinSections?this.joinForm.splitJoin.getSectionAtIndex(2):this.joinForm.splitJoin.getSectionAtIndex(1)).requiredInputs.forEach(e=>Object(i.f)(e,this.hasInlineErrors)),this.hasInlineErrors?Object(i.e)(o):Object(i.d)(o)}),this.hasInlineErrors&&o.addEventListener(g,e=>{let t=e.detail.globalErrorMessage;this.toasts.clearAllToasts(),this.toasts.trigger("error",t||Object(r.d)("i18n_server_generic_error"))})}_handleSplitJoinStepChange(e){const t=m(f.main),n=e=>{if(t.classList.remove(E.mainIsAnimating),e instanceof Error)throw e};if(this.isOpendoorV2Part1&&this._toggleBackButton(),t.classList.add(E.mainIsAnimating),0===e&&this._animateSectionIn(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),this.hasOpendoorv2CopyChanges||2!==this.joinForm.splitJoin.totalSplitJoinSections||m(f.signInContainer).classList.remove(E.hidden),n()}).catch(n),1===e){if(this.hasOpendoorv2CopyChanges||m(f.signInContainer).classList.add(E.hidden),this.isMobile&&this.toggleMobileFooter(!0),2===this.joinForm.splitJoin.totalSplitJoinSections)return void this._animateSectionIn(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),n()}).catch(n);this._animateInPasswordSection(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),n()}).catch(n)}2===e&&this._animateSectionIn(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),n()}).catch(n)}_animateInPasswordSection(e){let t;const n=e.elem,r=n.scrollHeight,o=`translateY(${r}px)`,s=m(f.legalAgreement),a=m(i.b.THIRD_PARTY_CONTAINER),l=m(f.joinFormBody),c=m(f.submitBtn),d=this.window,u=e=>(e.elem.style.transition="none",e.elem.style.transform="translateY(0)",e.elem.style.marginTop="",s.style.transition="none",s.style.transform="",a&&(a.style.transition="none",a.style.transform=""),c.style.transition="none",c.style.transform="translateY(0)",l.style.marginBottom="",this.window.setTimeout(()=>{c.style.transition="",s.style.transition=""},50),e);return n.style.marginTop=`-${r}px`,n.style.transform=o,s.style.transform=o,a&&(a.style.transform=o),c.style.transform=o,l.style.marginBottom=r+"px",new Promise((i,r)=>{if(!this.hasSplitJoinAnimations)return i(e);const o=d.setTimeout(()=>(n.removeEventListener("transitionend",t),r(e)),600);t=function(r){if(r.target===n&&"opacity"===r.propertyName)return d.clearTimeout(o),n.removeEventListener("transitionend",t),i(e)},n.addEventListener("transitionend",t)}).then(u).catch(u)}_animateSectionIn(e){const t=this.joinForm.splitJoin.isFirstStep,n=this.joinForm.splitJoin.totalSplitJoinSections;let i=this.joinForm.splitJoin.getSectionAtIndex(t?n-1:0).elem.scrollHeight;const r=e.elem.scrollHeight,o=r-i,s=this.window;let a;return this.toggleLegalAgreement(this.joinForm.splitJoin.isLastStep,o),this._animateSubmitButton(r,i),e.elem.classList.remove(E.splitJoinSectionIsAnimatedOut),e.elem.classList.add(E.splitJoinSectionIsAnimatingIn),this._animateSectionOut(this.joinForm.splitJoin.getSectionAtIndex(t?n-1:0)),new Promise((t,n)=>{if(!this.hasSplitJoinAnimations)return t(e);const i=s.setTimeout(()=>(e.elem.removeEventListener("transitionend",a),n(e)),600);a=function(n){if(n.target===e.elem&&"transform"===n.propertyName)return s.clearTimeout(i),e.elem.removeEventListener("transitionend",a),t(e)},e.elem.addEventListener("transitionend",a)})}_animateSectionOut(e){const t=this.window,n=()=>{e.elem.classList.remove(E.splitJoinSectionIsAnimatingOut),e.elem.classList.add(E.splitJoinSectionIsAnimatedOut)};let i;return e.elem.classList.remove(E.splitJoinSectionIsAnimatingIn),e.elem.classList.add(E.splitJoinSectionIsAnimatingOut),new Promise((n,r)=>{if(!this.hasSplitJoinAnimations)return n(e);const o=t.setTimeout(()=>(e.elem.removeEventListener("transitionend",i),r(e)),600);i=function(r){if(r.target===e.elem&&"transform"===r.propertyName)return t.clearTimeout(o),e.elem.removeEventListener("transitionend",i),n(e)},e.elem.addEventListener("transitionend",i)}).then(n).catch(n)}_animateSubmitButton(e,t){const n=e-t,i=m(f.submitBtn),r=m(f.legalAgreement).scrollHeight,o=m(f.joinFormBody);let s=n;const a=this.window;let l;const c=()=>{i.style.transition="none",i.style.transform="",i.style.marginTop="",i.classList.remove(E.submitBtnIsAnimating),o.style.marginBottom="",this.window.setTimeout(()=>{i.style.transition=""},50)};return i.classList.add(E.submitBtnIsAnimating),this.joinForm.splitJoin.isLastStep?s=this.isLegalAgreementOnStep2?r+n:n-r:this.joinForm.splitJoin.isFirstStep&&(s=this.isLegalAgreementOnStep2?n-r:n+r),s>0&&(i.style.marginTop=`-${s}px`,o.style.marginBottom=s+"px"),i.style.transform=`translateY(${s}px)`,new Promise((e,t)=>{if(!this.hasSplitJoinAnimations)return e();const n=a.setTimeout(()=>(i.removeEventListener("transitionend",l),t()),600);l=function(t){if(t.target===i&&"transform"===t.propertyName)return a.clearTimeout(n),i.removeEventListener("transitionend",l),e()},i.addEventListener("transitionend",l)}).then(c).catch(c)}_toggleBackButton(){this.joinForm.splitJoin.isLastStep?(m(f.backBtn).classList.remove(E.hidden),this.isMobile&&m(f.inbugLogo).classList.add(E.hidden)):(m(f.backBtn).classList.add(E.hidden),this.isMobile&&m(f.inbugLogo).classList.remove(E.hidden))}showChallenge(){this.isChallengeShown||(this.isMobile?this.hideJoinFormElems():this.showPageOverlay(),this.isChallengeShown=!0)}hideChallenge(){this.isChallengeShown&&(this.isMobile?this.showJoinFormElems():this.hidePageOverlay(),this.isChallengeShown=!1)}toggleProfileSection(e){let t=e.detail.isProfileCardVisible;if(void 0===t)throw new Error("an Object with isProfileCardVisible must be passed to toggleProfileSection");const n=m(f.profileSection),i=m(f.joinFormBody);t?n?n.classList.add(E.hidden):i.classList.add(E.joinFormBodyWithProfileCard):n?n.classList.remove(E.hidden):i.classList.remove(E.joinFormBodyWithProfileCard)}toggleMobileFooter(e){const t=m(f.mobileFooter);t&&(e?t.classList.add(E.hidden):t.classList.remove(E.hidden))}toggleLegalAgreement(){let e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=m(f.submitBtn),o=m(f.legalAgreement),s=this.window,l=t?this.isLegalAgreementOnStep2?Object(r.d)("dust-var-i18nAgree"):Object(r.d)("dust-var-i18nContinue"):this.isLegalAgreementOnStep2?Object(r.d)("dust-var-i18nContinue"):Object(r.d)("dust-var-i18nAgree"),c=()=>{t?this.isLegalAgreementOnStep2||o.classList.add(E.hiddenLegalAgreement):this.isLegalAgreementOnStep2&&(o.classList.add(E.hiddenLegalAgreement),o.classList.remove(E.legalAgreementIsAnimatingOutRight)),o.style.marginTop=""};return t?this.isLegalAgreementOnStep2?(o.classList.remove(E.hiddenLegalAgreement),o.classList.add(E.legalAgreementIsAnimatingInRight)):(n&&(o.style.marginTop=n>0?`-${n}px`:Math.abs(n)+"px"),o.classList.remove(E.hiddenLegalAgreement),o.classList.add(E.legalAgreementIsAnimatingOutLeft)):this.isLegalAgreementOnStep2?(o.classList.remove(E.hiddenLegalAgreement),o.classList.remove(E.legalAgreementIsAnimatingInRight),o.classList.add(E.legalAgreementIsAnimatingOutRight),n&&(o.style.marginTop=n>0?`-${n}px`:Math.abs(n)+"px")):(o.classList.remove(E.hiddenLegalAgreement),o.classList.remove(E.legalAgreementIsAnimatingOutLeft)),l&&(i.value=l,a.a.setElementContent(i,l)),new Promise((t,n)=>{if(!this.hasSplitJoinAnimations)return t();const i=s.setTimeout(()=>(o.removeEventListener("transitionend",e),n()),600);e=function(n){if(n.target===o&&"transform"===n.propertyName)return s.clearTimeout(i),o.removeEventListener("transitionend",e),t()},o.addEventListener("transitionend",e)}).then(c).catch(c)}hideJoinFormElems(){const e=m(f.signInContainer);this.joinForm.joinForm.querySelector(f.joinFormBody).classList.add(E.hidden),this.joinForm.joinForm.querySelector(f.mainSubtitle).classList.add(E.hidden),m(f.mobileFooter).classList.add(E.hidden),e.classList.add(E.hidden)}showJoinFormElems(){const e=m(f.signInContainer);this.joinForm.joinForm.querySelector(f.joinFormBody).classList.remove(E.hidden),this.joinForm.joinForm.querySelector(f.mainSubtitle).classList.remove(E.hidden),m(f.mobileFooter).classList.remove(E.hidden),e.classList.remove(E.hidden)}showPageOverlay(){m(f.pageOverlay).classList.remove(E.hidden)}hidePageOverlay(){m(f.pageOverlay).classList.add(E.hidden)}}},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,n){"use strict";n.r(t);var i=n(4);window.addEventListener("load",()=>{new i.a({globalWindow:window})})}]);