!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=6)}([function(e,t,i){"use strict";(function(e){function n(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function s(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 r(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function a(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}i.d(t,"a",(function(){return Ot})),i.d(t,"b",(function(){return A})),i.d(t,"c",(function(){return ne})),i.d(t,"d",(function(){return Z})),i.d(t,"e",(function(){return J})),i.d(t,"f",(function(){return Ee})),i.d(t,"g",(function(){return Ct})),i.d(t,"h",(function(){return K})),i.d(t,"i",(function(){return j})),i.d(t,"j",(function(){return z})),i.d(t,"k",(function(){return ct})),i.d(t,"l",(function(){return V})),i.d(t,"m",(function(){return v})),i.d(t,"n",(function(){return l})),i.d(t,"o",(function(){return L})),i.d(t,"p",(function(){return Pt})),window.encodeURIComponent;var l=Object.freeze({__proto__:null,getPageKey:n,getPageTag:s,getLocale:o,getDomain:r,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 h(e){return d[e]||e}function u(e,t){if(!e)return null;let i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!i.call(e,t);)e=e.parentElement;return e}function p(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function g(e,t,i){const n=new RegExp("([\\?&])".concat(i?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return n&&(i?n[2]:decodeURIComponent(n[2]))}function m(e,t,i,n){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),i=encodeURIComponent(i);const s=g(e,t,!0);if(s)return n?e.replace(s,i):e;{const n=e.indexOf("?");let[s,o]=e.split("#"),r="&";return n<0?r="?":n===e.length-1&&(r=""),o&&(o="#".concat(o)),"".concat(s).concat(r).concat(t,"=").concat(i).concat(o||"")}}function _(e,t,i){if("function"!=typeof e)throw new TypeError("Expected a function.");let n;return(...s)=>{const o=i&&!n;clearTimeout(n),n=setTimeout(()=>{n=null,i||e.apply(this,s)},t),o&&e.apply(this,s)}}function f(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function E(e,t,i={}){const n=document.createEvent("CustomEvent");n.initCustomEvent(t,!0,!0,i),e.dispatchEvent(n)}var v=Object.freeze({__proto__:null,closest:u,onload:function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})},makeArray:p,outerWidth:function(e){let t=e.offsetWidth,i=getComputedStyle(e);return t+=(parseInt(i.marginLeft,10)||0)+(parseInt(i.marginRight,10)||0),t},elementInViewport:function(e){const t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,s=t.top<=i&&t.top+t.height>=0,o=t.left<=n&&t.left+t.width>=0;return s&&o},hasElementScrolledToThreshold:function({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:i=document.body.scrollHeight}={},n=0){return e>=i-(t+t*n)},getQueryParam:g,addTrackingCode:function(e,t){return m(e,"trk",t)},addQueryParam:m,debounce:_,getCookie:f,dispatchCustomEvent:E,getDeferredPromise:function(){let e,t;const i=new Promise((i,n)=>{e=i,t=n});return i.resolve=e,i.reject=t,i}});class w{constructor(e,t,{mainButton:i,closeButton:n},s={}){if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An list element must be provided to Collapsible");if(!i)throw Error("A main button element must be provided to Collapsible");this.el=e,this.listEl=t;let{currentListItem:o=t.children[0],isOpen:r=!1}=s;this.currentListItem=o,this.isOpen=r,this.mainButton=i,this.closeButton=n,this.buttons=[i],this.el.addEventListener("keyup",e=>this._onKeyUp(e)),this.mainButton.addEventListener("click",()=>this.closeButton?this._open():this._toggle()),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton)),this.currentListItem&&this.currentListItem.setAttribute("aria-selected",!0),this.listEl.addEventListener("keydown",e=>this._onListKeyDown(e))}_toggle(){this.isOpen?this.close():this._open()}_onButtonKeyDown(e){const t=h(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()}}_onKeyUp(e){h(e.key)===c.SPACEBAR&&e.preventDefault()}_onListKeyDown(e){let t;switch(h(e.key)){case c.SPACEBAR:E(e.target,"click");break;case c.ESCAPE:this.isOpen&&this.close();break;case c.ARROW_LEFT:case c.ARROW_UP:t=u(e.target,"li");let i=t.previousElementSibling;i&&E(i,"focus");break;case c.ARROW_RIGHT:case c.ARROW_DOWN:t=u(e.target,"li");let n=t.nextElementSibling;n&&E(n,"focus")}}_open(){this.isOpen||(this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),E(this.el,"open"),E(this.currentListItem,"focus"))}close({shouldReturnFocusToTrigger:e=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),E(this.el,"close"),e&&this.mainButton.focus())}}const b=['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(",");function y(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function T(e,t=document.documentElement,i){if(e===t)return!y(e);if(i&&i.get(e))return i.get(e);let n;return y(e)?n=!1:e.parentNode&&(n=T(e.parentNode,t,i)),i&&i.set(e,n),n}const I=".".concat("collapsible-dropdown","__list"),S=".".concat("collapsible-dropdown","__button");class k{constructor(e,t=(e=>e.querySelector(b)),{currentListItem:i,dropdownTriggerEl:n,listEl:s}={}){if(!e)throw Error("An element must be provided to CollapsibleDropdown");this.el=e,this.listEl=s||this.el.querySelector(I),this.dropdownTriggerEl=n||this.el.querySelector(S),this._getFocusItemFromListItem=t,this.hideClass="hidden",this.collapsible=new w(e,this.listEl,{mainButton:this.dropdownTriggerEl},{currentListItem:i}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.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),window.addEventListener("blur",this._leaveWindow),this.listEl.classList.remove(this.hideClass)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),window.removeEventListener("blur",this._leaveWindow),this.listEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close()}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close()}}function L(e,{method:t="GET",headers:i={},sendCookies:n=!0,skipCsrfToken:s=!1,postData:o}={}){return new Promise((r,l)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)r({status:c.status,responseText:c.responseText});else{const i=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));i.response={status:c.status,responseText:c.responseText},l(i)}})),c.addEventListener("error",(function(e){l(e)})),c.open(t,e,!0),c.withCredentials=n,Object.keys(i).forEach(e=>{c.setRequestHeader(e,i[e])}),!s){const e=f("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",a(e))}c.send(o)})}const C=".".concat("language-selector__link"),O="".concat(C,"--selected");class A{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(O),this.getFocusItemFromListItem=e=>e.classList.contains("language-selector__link")?e:e.querySelector(C),this.collapsibleDropdown=new k(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");return this._makeLangCookieRequest(t).then(()=>{location.reload()})}_makeLangCookieRequest(e){const t=a(f("bcookie")||""),i=r(document),n=this._getRequestDomain(i);return L("".concat(n,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}_getRequestDomain(e){let t="";return e.indexOf("linkedin.cn")>-1?t="https://www.linkedin.cn":e.indexOf("linkedin-ei.cn")>-1?t="https://www.linkedin-ei.cn":e.indexOf("linkedin-ei.com")>-1?t="https://www.linkedin-ei.com":e.indexOf("linkedin.com")>-1&&(t="https://www.linkedin.com"),t}}var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};parseInt;var x="object"==typeof P&&P&&P.Object===Object&&P,R="object"==typeof self&&self&&self.Object===Object&&self;x||R||Function("return this")(),Object.prototype.toString,Math.max,Math.min,"".concat(".member-nav-menu","__item-link"),"".concat(".member-nav-menu","__button");var N=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){!function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==P||"undefined"!=typeof self&&self;var t,i,n,s,o=function(e,t){return function(e,t){!function(e,t){var i="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,n=i&&!!window.requestIdleCallback,s={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 i=e[t];" "===i.charAt(0);)i=i.substring(1);if(-1!==i.indexOf("JSESSIONID=")){var n=i.substring("JSESSIONID=".length,i.length);return'"'===n[0]&&'"'===n[n.length-1]&&(n=n.substring(1,n.length-1)),n}}return""},createXmlHttpObject:function(){return i&&window.XMLHttpRequest?new XMLHttpRequest:null},beacon:function(e,t,n,s){this._beacon(e,t,n,s||this.globalTrackingUrl,this.disableSendBeacon?null:i&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,i,n,s){if(s){var o=void 0;try{o=s(n,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+n+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(o)return void(t&&t(o))}this.ajax(e,t,i,n)},ajax:function(e,t,i,n){var s;n?(s=this.createXmlHttpObject())&&(s.open(this.AJAX_METHOD,n,!0),s.withCredentials=!0,s.setRequestHeader("Content-type","application/json"),this.csrfToken?s.setRequestHeader("Csrf-Token",this.csrfToken):s.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&s.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&s.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),s.onreadystatechange=function(){4===s.readyState&&(200===s.status||304===s.status?"function"==typeof t&&t(s):i&&i('Response is not "OK" or "Not Modified" for tracking request'))},4!==s.readyState&&s.send(e)):i&&i("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=[]),n?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,i=Date.now();return requestIdleCallback((function(n){n.timeRemaining()>8||n.didTimeout?t.flush():t.timeoutId=t.idleFlush(e-(Date.now()-i))}),{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;n&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout((function(){t.flush()}),this.queueTimeout)}},validateEvent:function(e,t,i){this.beacon(JSON.stringify([{eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)}]),(function(e){return i(null,e)}),(function(e){return i(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),i&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){this.flush(),i&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};t.exports=s}(0,e)}(t={exports:{}}),t.exports}();function r(){if("undefined"!=typeof window&&void 0!==window.sessionStorage)try{return JSON.parse(window.sessionStorage.getItem("li_trk_navigation"))}catch(e){}}function a(e){if("undefined"!=typeof window&&void 0!==window.sessionStorage)try{window.sessionStorage.setItem("li_trk_navigation",JSON.stringify(e))}catch(e){}}(s=e.ControlInteractionType||(e.ControlInteractionType={}))[s.FOCUS=0]="FOCUS",s[s.UNFOCUS=1]="UNFOCUS",s[s.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",s[s.DRAG=3]="DRAG",s[s.PINCH_OPEN=4]="PINCH_OPEN",s[s.PINCH_CLOSE=5]="PINCH_CLOSE",s[s.DOUBLE_PRESS=6]="DOUBLE_PRESS",s[s.LONG_PRESS=7]="LONG_PRESS",s[s.SHORT_PRESS=8]="SHORT_PRESS",s[s.SWIPE_UP=9]="SWIPE_UP",s[s.SWIPE_DOWN=10]="SWIPE_DOWN",s[s.SWIPE_LEFT=11]="SWIPE_LEFT",s[s.SWIPE_RIGHT=12]="SWIPE_RIGHT",s[s.FLICK_UP=13]="FLICK_UP",s[s.FLICK_DOWN=14]="FLICK_DOWN",s[s.FLICK_LEFT=15]="FLICK_LEFT",s[s.FLICK_RIGHT=16]="FLICK_RIGHT",s[s.SHAKE=17]="SHAKE",s[s.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",s[s.HOVER=19]="HOVER",(n=e.PageViewPageType||(e.PageViewPageType={}))[n.FULL=1]="FULL",n[n.AJAX=2]="AJAX",n[n.IFRAME=3]="IFRAME",n[n.REDIRECT=4]="REDIRECT",n[n.API=5]="API",n[n.FORM=6]="FORM",n[n.ROUTER=7]="ROUTER",n[n.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 l="undefined"!=typeof window?window:null;l?function(){var e=l.crypto||l.msCrypto;if(!t&&e&&e.getRandomValues){var i=new Uint8Array(16);(t=function(){return e.getRandomValues(i),i})()}if(!t){var n=new Uint8Array(16);t=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=(t||0)>>>((3&e)<<3)&255;return n}}}():t=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var c=[],d=0;d<256;d++)c[d]=(d+256).toString(16).substr(1);function h(){var e=new Uint8Array(16),i=t();i[6]=15&i[6]|64,i[8]=63&i[8]|128;for(var n=0;n<16;n++)e[0+n]=i[n];return e}function u(){return function(e){for(var t=[],i=0;i<e.length;i+=32768)t.push(String.fromCharCode.apply(null,e.subarray(i,i+32768)));return btoa(t.join(""))}(h())}function p(e){return e?"urn:li:page:"+e:null}function g(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function m(e){return e?e.split(":").pop():null}function _(e,t){return e?{trackingId:t||u(),pageUrn:p(e)}:null}function f(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function E(e){return e&&e.referrer}function v(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var w=Object.assign||function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),s=0;s<t.length;s++){var o=t[s];if(null!==o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},b=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 i=document.querySelector('meta[name="trk-pageinstance"]');if(i&&(this.config.initialPageInstance=f(i.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 n=function(){var e=window.location.pathname,t=e+window.location.search,i=window.location.href,n=r();if(!n)return null;for(var s=0;s<n.length;s++){var o=n[s].href;if(o===e||o===t||o===i){var l=n.splice(s,1)[0];return a(n),l}}return null}();n&&(e.previousPageInstance=n.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),o.init(),o.setProperty("disableSendBeacon",!1),o.setTrackingUrl(this.config.trackingUrl),o.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||10),o.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||10)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var s=this.config.prevControlName||(n?n.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,s),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 l="visibilitychange";document&&(void 0!==document.msHidden&&(l="msvisibilitychange"),document.addEventListener(l,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 i=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(i)}},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 i=t.getAttribute("data-tracking-control-name"),n=t.hasAttribute("data-tracking-will-navigate"),s=t.getAttribute("data-tracking-href")||t.getAttribute("href");n&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:i,href:s})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,i=t,n=null,s=!1;if(t){for(;i!==e.currentTarget&&("function"!=typeof i.hasAttribute||!i.hasAttribute("data-tracking-control-name"))&&i.parentElement;)i=i.parentElement;i!==e.currentTarget&&("getAttribute"in i&&(n=i.getAttribute("data-tracking-control-name")),"hasAttribute"in i&&(s=i.hasAttribute("data-tracking-will-navigate")))}s||this.fireExternalNavigationEvent(n)},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,i;e&&(t={controlName:e.controlName,href:e.href,prevInstance:this.state.currentPageInstance},(i=r()||[]).push(t),a(i))},t.prototype.fireControlInteractionEvent=function(t,i,n){if(void 0===i&&(i=e.ControlInteractionType.SHORT_PRESS),void 0===n&&(n={}),!t)throw new Error("controlName is required.");var s=m(this.state.currentPageInstance.pageUrn),o=n.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:g(t,o),interactionType:e.ControlInteractionType[i]},n)},t.prototype.fireNavigationEvent=function(t,i,n){void 0===n&&(n={});var s=t?m(t.pageUrn):null,o=n.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:g(i,o)},n)},t.prototype.fireExternalNavigationEvent=function(t,i){void 0===i&&(i={});var n=i.uiControlPageKey||m(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:g(t,n)},i,!0)},t.prototype.firePageViewEvent=function(t,i){void 0===i&&(i={});var n=(i=w({},i)).pageViewPageType||e.PageViewPageType.AJAX,s=m(this.state.currentPageInstance.pageUrn),o=t||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:o},header:{},pageType:e.PageViewPageType[n].toLowerCase(),trackingInfo:{clientTimestamp:Date.now().toString()}},i)},t.prototype.fireAnchorPageViewEvent=function(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("newPageKey is required.");var n=w({},this.state.currentPageInstance),s=_(e);this.state.previousPageInstance=n,this.state.currentPageInstance=s,this.fireNavigationEvent(n,t,i),this.firePageViewEvent(e,i)},t.prototype.firePageVisibilityChangeEvent=function(t,i){void 0===i&&(i={}),this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageVisibilityChangeEvent],{requestHeader:{},header:{},isVisible:!t},i)},t.prototype.fireTrackingEvent=function(e,t,i,n){if(void 0===i&&(i={}),void 0===n&&(n=!1),!e||!t)throw new Error("eventName and body are required.");t=w({},t),(i=w({},i)).topicName||(i.topicName=e),i.pageInstance||(i.pageInstance=this.state.currentPageInstance);var s=w({pageKey:m(i.pageInstance.pageUrn),path:window.location.href,referer:E(document),trackingCode:v(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var r=w({pageInstance:i.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var a={requestHeader:s,header:r};this.config.mapHeaders&&(a=this.config.mapHeaders(a));var l=w(a,t),c={eventName:e,topicName:i.topicName,appId:this.config.appId};this.config.validationMode?o.validateEvent(c,l,(function(t){t&&console.error("Event "+e+" failed validation!")})):(o.sendEvent(c,l),n&&o.flush())},t.prototype.destroy=function(){o.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,i){return e.initialPageInstance=_(i),new t(e)},t}();e.AppTrackingInstance=b,e.clearNavStorage=function(){window.sessionStorage.removeItem("li_trk_navigation")},e.derivePageInstanceFromString=f,e.derivePageKeyFromUrn=m,e.generateControlUrn=g,e.generatePageInstance=_,e.generatePageUrn=p,e.generateTrackingId=u,e.getReferrer=E,e.getTrackingCode=v,e.stringifyPageInstance=function(e){return e?e.pageUrn+";"+e.trackingId:null},e.uuid=h,e.webTrackingTransport=o}(t)}));let D=null;function U(e,t="ajax",i){e.fireTrackingEvent("PageViewEvent",function(e,t="ajax"){const i=s(document),n=o(document);let r={};return n&&(r.interfaceLocale=n),e&&(r.pageKey=e),{header:{},requestHeader:r,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:i}}}(i,t))}function B(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function q(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function H(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?q(Object(i),!0).forEach((function(t){B(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):q(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}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 F={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},M=Object.keys(F).map(e=>F[e]),j={EMBED_SHARE_OVERLAY_HIDE_EVENT:"embedOverlayHidden",EMBED_SHARE_OVERLAY_SHOW_EVENT:"embedOverlayShown"};class K{constructor(e,{globalNavigator:t=navigator,globalWindow:i=window,globalDocument:n=document}={}){if(!e)throw new Error("No element passed in");this.navigator=t,this.window=i,this.document=n,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"",this._encodedShareUrl=this.window.encodeURIComponent(this.window.location.href),this.stateCheckboxEl=this.el.querySelector(".social-share__state"),this.isEmbed=this.el.classList.contains("social-share--embed"),this.embedOverlay=this.el.querySelector(".".concat("social-share__embed-overlay")),this.closeButton=this.el.querySelector(".".concat("social-share__embed-overlay-dismiss")),this.dropdown=this.el.querySelector("#".concat("social-share__dropdown")),this.showString=this.stateCheckboxEl.getAttribute("data-show-dialog-string"),this.hideString=this.stateCheckboxEl.getAttribute("data-hide-dialog-string"),this.onBodyClick=this._handleBodyClick.bind(this),this.onFocusOut=this._handleFocusOutDropdown.bind(this),this.onEmbedOverlayCloseClick=()=>{this.stateCheckboxEl.checked=!1,this.onClose()},this.init()}init(){if(this.stateCheckboxEl.addEventListener("click",this.handleStateChange.bind(this)),this.el.querySelector(".social-share__options").addEventListener("click",({target:e})=>{const t=e.classList.contains("social-share__item")?e:u(e,".".concat("social-share__item"));t&&this.share(t.dataset.shareService)}),this.isEmbed&&!this.navigator.hasOwnProperty("clipboard")){const e=this.el.querySelector(".embed-overlay__copy-btn");e.parentNode.removeChild(e)}this.el.hasAttribute("data-share-url")&&this.el.getAttribute("data-share-url")&&(this._encodedShareUrl=this.window.encodeURIComponent(this.el.getAttribute("data-share-url")))}_handleBodyClick(e){e.target===this.el||this.el.contains(e.target)||(this.stateCheckboxEl.checked=!1,this.onClose())}handleStateChange({target:e}){e.checked?this.onOpen():this.onClose()}onOpen(){this.isEmbed?(this.closeButton.addEventListener("click",this.onEmbedOverlayCloseClick),E(this.el,"embedOverlayShown"),this.embedOverlay&&this.embedOverlay.focus()):(this.document.addEventListener("click",this.onBodyClick),this.document.addEventListener("focusin",this.onFocusOut)),this.stateCheckboxEl.setAttribute("aria-label",this.hideString),this.stateCheckboxEl.setAttribute("aria-expanded","true")}onClose(){this.isEmbed?(this.closeButton.removeEventListener("click",this.onEmbedOverlayCloseClick),E(this.el,"embedOverlayHidden")):(this.document.removeEventListener("click",this.onBodyClick),this.document.removeEventListener("focusin",this.onFocusOut)),this.stateCheckboxEl.setAttribute("aria-label",this.showString),this.stateCheckboxEl.setAttribute("aria-expanded","false"),this.stateCheckboxEl.focus()}_handleFocusOutDropdown(e){this.dropdown.contains(e.target)||(this.stateCheckboxEl.checked=!1,this.onClose(),this.el.focus())}_copyText(){let e=this.el.querySelector(".".concat("embed-overlay__copy-text-input")).value;e&&this.navigator.clipboard.writeText(e)}_getServiceUrl(e){return{linkedin:"https://www.".concat(r(this.document),"/shareArticle?mini=true&url=").concat(this._encodedShareUrl,"&title=").concat(this._encodedShareMessage),twitter:"https://twitter.com/intent/tweet?url=".concat(this._encodedShareUrl,"&text=").concat(this._encodedShareMessage),facebook:"https://www.facebook.com/sharer/sharer.php&u=".concat(this._encodedShareUrl)}[e]||""}share(e){if(e===F.COPY)this._copyText();else if(M.includes(e)){const t=this.window.location.href,i=this._getServiceUrl(e,t);this.window.open(i,e,"height=600,width=1000")}}}const W={};function z(e){const t=document.getElementById(e);if(!t&&void 0!==W[e])return W[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),W[e]=null,W[e];try{const i=t.firstChild;i.nodeType===Node.COMMENT_NODE?W[e]=JSON.parse(i.nodeValue):(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),W[e]=null)}catch(t){console.warn("Error fetching embedded content with id: ".concat(e)),W[e]=null}return t.parentNode.removeChild(t),W[e]}const G=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|");new RegExp(G,"i");var V=Object.freeze({__proto__:null,init:function(e){e.forEach(e=>{e.addEventListener("load",()=>{const t=JSON.parse(e.getAttribute("data-player-document-config")),i=JSON.parse(e.getAttribute("data-a11y")),n=JSON.parse(e.getAttribute("data-i18n"));t.title=e.getAttribute("data-player-title"),t.subtitle=e.getAttribute("data-player-subtitle"),t.isScanAvailable="playerScanAvailable"in e.dataset,t.scanUnavailableOnDownloadTitle=e.getAttribute("data-player-scan-unavailable-on-download-title"),t.scanUnavailableOnAccessibilityModeTitle=e.getAttribute("data-player-scan-unavailable-on-accessibility-mode-title"),t.scanUnavailableRedirectUrl=e.getAttribute("data-player-scan-unavailable-redirect-url"),"playerCompactLayout"in e.dataset&&(t.isNativeDocumentEmbedsAuthorInfosTopbarLixEnabled?t.enableTopbarAuthor=!0:t.enableBottombar=!0),t.authorTitle=e.getAttribute("data-player-author-title"),t.authorSubtitle=e.getAttribute("data-player-author-subtitle"),t.authorTitleUrl=e.getAttribute("data-player-author-title-url"),t.inbugUrl=e.getAttribute("data-player-inbug-url");const s={context:"native-document",action:"init",doc:t,a11y:i,i18n:n};e.contentWindow.postMessage(JSON.stringify(s),"*")})})}});class J{constructor(e,t={},i=window.tracking,n=window.lazyloader){const{sources:s,posterUrl:o,mediaUrn:r,trackingId:a,captionsUrl:l}=e.dataset,c=JSON.parse(s);if(!c.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,r,t,n).then(e=>(o&&e.poster(o),e.src(c),l&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:l}),this._bindTracking(e,i),e))}_createPlayer(e,t,i,n,s){return s.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(s=>{const{createPlayer:o}=s,r=n.plugins&&n.plugins.rum&&n.plugins.rum.mediaHeader&&n.plugins.rum.mediaHeader.mediaSource||"ugc",a=H({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{}},n);return a.plugins.tracking={mediaUrn:i,trackingId:t},a.plugins.rum={mediaUrn:i,trackingId:t,mediaHeader:{mediaSource:r}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const i=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",i),e.rum().on("track",i)})}_getMediaPlayerTrackingEventHandler(e){return function(t,{eventName:i,eventData:s}){let o=H({header:{},requestHeader:{}},s);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=n(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}const Y=["class","disabled","style","tabindex","type"];class ${constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver(()=>this._setFirstAndLastFocusableEls(this._container)),this._handleKeyDown=this._focusTrap.bind(this)}init(){this._observer.observe(this._container,{attributeFilter:Y,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown)}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown)}_focusTrap(e){const{key:t,target:i}=e,n=h(t),s=n===c.TAB&&e.shiftKey;s||n!==c.TAB||i!==this.lastFocusableEl?s&&i===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault()):(this.firstFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,i]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=i,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(b)],i=new Map;let n,s,o=0,r=t.length-1;for(;(!n||!s)&&o<=r;){if(!n){const s=t[o];n=T(s,e,i)&&s,o++}if(!s){const n=t[r];s=T(n,e,i)&&n,r--}}return s=s||n,[n,s]}}const{ENTER:Q,ESCAPE:X}=c;class Z{constructor(e,{enablePageViewTracking:t=!1}={}){if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,this._topLevelContainer=this._getTopLevelContainer(),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),this._outletEls=this._getOutletEls(),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new $(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=h(e.key),i=t===Q&&document.activeElement===this._exitButtonEl;(t===X||i)&&(this.close(),e.preventDefault())}open(){return this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),E(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=n(document).replace("_jsbeacon","");U(e,"ajax","".concat(t,"_").concat(this._el.id))}):Promise.resolve()}close(){this._overlayEl.classList.remove("modal__overlay--visible"),this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),E(this._el,"close"),this._previouslyFocusedEl&&this._previouslyFocusedEl.focus(),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}!function(e){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")}({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"});const ee="loader--show",te="no-scroll",ie="loader-wrapper";class ne{constructor(e,{wrapperEl:t}={}){if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains("loader--absolute"),window.addEventListener("pagehide",({persisted:e})=>{e&&this.hide()})}show(){this.el.classList.add(ee),this.el.classList.contains("loader--full-screen")&&document.body.classList.add(te),this.isAbsoluteVariant&&this.wrapperEl.classList.add(ie)}hide(){this.el.classList.remove(ee),document.body.classList.remove(te),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(ie)}}const se="dismissable-input",oe="dismissable-input--focus",re="dismissable-input__button",ae="dismissable-input__button--show",le="dismissable-input__input";class ce{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(le)),this._dismissButtonEl=this.el.querySelector(".".concat(re)),this._isDismissable=!!this._dismissButtonEl,this._attachEventListeners()}_attachEventListeners(){this._input.addEventListener("focus",this._onInputFocus.bind(this)),this._input.addEventListener("input",this._updateDismissButton.bind(this)),this._input.addEventListener("blur",this._onInputBlur.bind(this)),this._isDismissable&&(this._dismissButtonEl.addEventListener("click",this.clear.bind(this)),this._updateDismissButton())}_onInputFocus(){this.el.classList.add(oe),this._updateDismissButton(),E(this._input,"dismissableInputFocused")}_updateDismissButton(){this._isDismissable&&(this._input.value.length?(this._showDismissButton(),this._dismissButtonEl.disabled=!1):(this._hideDismissButton(),this._dismissButtonEl.disabled=!0))}_hideDismissButton(){this._dismissButtonEl.classList.remove(ae)}_showDismissButton(){this._dismissButtonEl.classList.add(ae)}_onInputBlur(){this.el.classList.remove(oe)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),E(this.el,"clear")}}const de={block:"typeahead-input",showList:"typeahead-input__dropdown--show",dropdown:"typeahead-input__dropdown",dropdownList:"typeahead-input__dropdown-list",dropdownText:"typeahead-input__dropdown-text",listItemFocus:"typeahead-input__dropdown-item--highlighted",listItem:"typeahead-input__dropdown-item",liveText:"typeahead-live-text",template:"typeahead-item-template"};class he{constructor(e,{createDismissableInput:t,elementClasses:i=de,generateApiUrl:n,liveTextEl:s,liveTextClearTime:o=500,onSelect:r,onInput:a=(()=>{})}){this.el=e,this._liveTextClearTime=o,this._elementClasses=i,this._input=this.el.querySelector(".".concat(le)),this._dropdownContainerEl=this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=n,this._onSelect=r,this._onInput=a,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=s||this.el.querySelector(".".concat(this._elementClasses.liveText)),t&&(this.dismissableInput=new ce(this.el)),this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=_(this._getAndApplyResults.bind(this),500)}_resetState(){this._dropdownListItemEls=[],this._setHighlightedEl(null),this._setExpandedState(!1)}_attachEventListeners(){this.checkForListItemSelectHandler=this._checkForListItemSelect.bind(this),this.hideListHandler=this._hideList.bind(this),this.onKeyDownHandler=this._onKeyDown.bind(this),this.onUserInputHandler=this._onUserInput.bind(this),this.onClearHandler=this._onClear.bind(this),this._input.addEventListener("keydown",this.onKeyDownHandler),this._input.addEventListener("input",this.onUserInputHandler),this._input.addEventListener("focus",this.onUserInputHandler),this._input.addEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler),this._isDismissable&&this.el.addEventListener("clear",this.onClearHandler)}_removeEventListeners(){this._input.removeEventListener("keydown",this.onKeyDownHandler),this._input.removeEventListener("input",this.onUserInputHandler),this._input.removeEventListener("focus",this.onUserInputHandler),this._input.removeEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler)}_isListActive(){return this.el.getAttribute("aria-owns")===this._listId&&"true"===this.el.getAttribute("aria-expanded")}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(this._isListActive())switch(h(e.key)){case c.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case c.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case c.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let i=null===this._highlighted.index?t:this._highlighted.index+e;i<0&&(i=this._dropdownListItemEls.length-1),i>=this._dropdownListItemEls.length&&(i=0),this._setHighlightedEl(i)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return L(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_appendResults(e=[]){this._hideList(),e.forEach((e,t)=>{const i=document.importNode(this._typeaheadItemTemplate.content,!0),n=i.querySelector(".".concat(this._elementClasses.listItem)),s=n.querySelector(".".concat(this._elementClasses.dropdownText));n.id="".concat(this._input.name,"-").concat(t+1),s.textContent=e.displayName,s.dataset.id=e.id,this._dropdownListEl.appendChild(i)}),this._dropdownListItemEls=p(this._dropdownListEl.children)}_shouldShowList(){return this._dropdownListItemEls.length>0&&this._isInputValid()}_showList(){this._shouldShowList()?(this._dropdownContainerEl.classList.add(this._elementClasses.showList),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):(this._hideList(),this._setExpandedState(!1)),this._setLiveText()}_hideList(){if(this._isListActive()){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(this._elementClasses.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}}_onClear(){this.hideListHandler()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText));i&&this.el.contains(i)&&this._updateInputTo(i)}_updateInputTo(e){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=z("i18n_aria_live_text_no-suggestions"),this._liveTextOneSuggestion=z("i18n_aria_live_text_one-suggestion"),this._liveTextMultipleSuggestions=z("i18n_aria_live_text_multiple-suggestions")}_getLiveText(){let e;switch((this._dropdownListItemEls||[]).length){case 0:e=this._liveTextNoSuggestions;break;case 1:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_setLiveText(){const e=this._getLiveText(),t=document.createElement("p");t.textContent=e,this._liveTextEl.children.length&&(this._liveTextEl.removeChild(this._liveTextEl.firstChild),clearTimeout(this._liveTextTimeout)),this._liveTextEl.appendChild(t),this._liveTextTimeout=setTimeout(()=>{this._liveTextEl.firstChild&&this._liveTextEl.removeChild(this._liveTextEl.firstChild)},this._liveTextClearTime)}_setExpandedState(e){this.el.setAttribute("aria-expanded",e),e&&(this.el.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}class ue{constructor(e,t,i,{onCloseExpandedSearch:n=(e=>e)}={}){if(this.el=e,this.expandedEl=t,this.placeholderEl=i,!this.el)throw new Error("No element passed in to BaseSearchBar");this.isExpanded=!1,this.type=this.el.getAttribute("data-searchbar-type"),this.firstInput=this.el.querySelector("input:first-of-type"),this.isIOSDevice="iPhone"===navigator.platform||"iPad"===navigator.platform||"iPod"===navigator.platform,this.onCloseExpandedSearch=n}showExpandedSearch(){this.isExpanded=!0,this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:i}=e,n="Escape"===t,s="BODY"===i.tagName;n&&s?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;u(t,".".concat(de.block))||document.activeElement.blur()}_userIsTabbedOut(){return!(!this.expandedEl.classList.contains("isExpanded")||!function(e=window){return e.innerWidth<769}())&&!this.expandedEl.contains(document.activeElement)}}class pe extends he{constructor(e,{generateApiUrl:t,liveTextEl:i,onSelect:n,onInput:s}){super(e,{createDismissableInput:!0,generateApiUrl:t,liveTextEl:i,onSelect:n,onInput:s})}}const ge={clearButton:"recent-searches__clear-btn",dropdown:"recent-searches",dropdownList:"recent-searches__list",listItem:"recent-searches__item",listItemClearButton:"recent-searches__item--clear",listItemLink:"recent-searches__item-link",listItemFocus:"recent-searches__item--highlighted",showList:"recent-searches--show"};class me extends he{constructor(e,{liveTextEl:t,clearRecentSearchApiBaseUrl:i}){if(super(e,{liveTextEl:t,elementClasses:ge,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(ge.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=p(this.dropdownContainerEl.querySelectorAll(".".concat(ge.listItem))),this._clearBtnItem=e.querySelector(".".concat(ge.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(re))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(ge.clearButton)),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this._clearBtn.addEventListener("mousedown",this._clearRecentSearchesHandler),super._attachEventListeners()}_removeEventListeners(){this._clearBtn.removeEventListener("mousedown",this._clearRecentSearchesHandler),super._removeEventListeners()}_onUserInput(){this._shouldShowList()?this._showList():this._hideList()}_redirect(e){e.click()}_clickOutsideToCloseHandler(e){e.target===this._input||this._dismissButtonEl.contains(e.target)||this._hideList()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.querySelector(".".concat(ge.listItemLink));i?this._redirect(i):t.classList.contains(ge.listItemLink)?this._redirect(t):t===this._clearBtnItem&&this._clearRecentSearches()}_shouldShowList(){return this._dropdownListItemEls.length>1&&0===this._input.value.length}_onClear(){this.onUserInputHandler()}_hideList(){this._isListActive()&&(this.dropdownContainerEl.classList.remove(ge.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=z("i18n_aria_live_text_recent-searches-one-suggestion"),this._liveTextMultipleSuggestions=z("i18n_aria_live_text_recent-searches-multiple-suggestions"),this._liveTextClearedSuggestions=z("i18n_aria_live_text_recent-searches-cleared")}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){L(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}const _e="switcher-tabs__tab--active";class fe{constructor(e,t,i){this.el=e,this.mobileTriggerEl=i,this.baseSearchBarsMap=t,this.currentType=this.el.getAttribute("data-current-search-type"),this.switcherTriggerAndTabs=this.el.querySelector(".".concat("switcher-tabs__trigger-and-tabs")),this.switcherTabs=this.el.querySelector(".".concat("switcher-tabs")),this.dropdownList=this.el.querySelector(".".concat("switcher-tabs__list")),this.dropdownTrigger=this.el.querySelector(".".concat("switcher-tabs__placeholder")),this.dropdownPlaceholderText=this.el.querySelector(".".concat("switcher-tabs__placeholder-text")),this._handleSwitcherClick=this._handleSwitcherClick.bind(this),this._initMobileExpandedSwitcher(),this._initCollapsibleSwitcher()}_initMobileExpandedSwitcher(){this.el.addEventListener("click",this._handleSwitcherClick),this.mobileTriggerEl.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].showExpandedSearch()}),this.cancelBtn=this.el.querySelector(".".concat("switcher-tabs__cancel-btn")),this.cancelBtn.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new k(this.switcherTriggerAndTabs,e=>e.querySelector("button"),{listEl:this.dropdownList,dropdownTriggerEl:this.dropdownTrigger}),this.switcherTriggerAndTabs.addEventListener("open",()=>this._openSwitcher()),this.switcherTriggerAndTabs.addEventListener("close",()=>this._closeSwitcher()),this._updatePlaceholderText()}_openSwitcher(){this.dropdownList.addEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("hide-on-desktop"),this.switcherTabs.classList.add("show-on-desktop")}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("show-on-desktop"),this.switcherTabs.classList.add("hide-on-desktop")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button"))return;const t=e.target.getAttribute("data-switcher-type"),i=e.target.parentNode;t&&i&&this.currentType!==t?(this.collapsibleSwitcher.collapsible.currentListItem=u(e.target,"li"),this._switchTo(t,i)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const t=this.el.querySelector(".".concat(_e));t&&t.classList.remove(_e),e.classList.contains("switcher-tabs__tab")&&e.classList.add(_e)}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(_e));if(e){let t=e.querySelector(".".concat("switcher-tabs__button"));this.dropdownPlaceholderText.textContent=t.textContent}}}class Ee{constructor(e,{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:i,shouldSearchOnSelect:n=!0,onCloseExpandedSearch:s}={}){if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const o=this.el.querySelector(".".concat("search-bar__live-text"));if(this.shouldSearchOnSelect=n,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder")),this.baseSearchBarsMap=p(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const i=new ue(t,this.el,this.placeholderEl,{onCloseExpandedSearch:s});return e[i.type]=i,e},{}),t){this.baseSearchBarFormEl=this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form"),this.geoIdInputEl=this.el.querySelector('input[name="geoId"]');const e=this.el.querySelector(".keywords-typeahead-input");new pe(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onKeywordsTypeaheadSelect.bind(this)}),e.querySelector(".".concat(ge.dropdown))&&new me(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o}),new pe(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat(se,".search-input"))).forEach(e=>{new ce(e),e.querySelector(".".concat(ge.dropdown))&&new me(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o})})}else Array.from(this.el.querySelectorAll(".".concat(se))).forEach(e=>new ce(e));this.switcher=new fe(e,this.baseSearchBarsMap,this.placeholderEl),this.setupSearchInputFocusTracking()}_generateKeywordsTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e))}_generateLocationTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e),"&typeaheadType=GEO&geoTypes=POPULATED_PLACE,ADMIN_DIVISION_2,MARKET_AREA,COUNTRY_REGION")}_onKeywordsTypeaheadSelect(){this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadSelect(e){this.geoIdInputEl&&(this.geoIdInputEl.value=e.dataset.id),this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadInput(){this.geoIdInputEl&&(this.geoIdInputEl.value="")}_submitForm(){this.baseSearchBarFormEl&&this.baseSearchBarFormEl.submit()}setupSearchInputFocusTracking(){this.el.addEventListener("dismissableInputFocused",e=>{const t=e.target.getAttribute("data-tracking-control-name");t&&window.tracking&&window.tracking.then(e=>{e.fireTrackingEvent("SearchInputFocusEvent",{header:{},controlUrn:"urn:li:control:".concat(n(document),"-").concat(t)})})})}}function ve(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function we(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function be(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}ve(),we(3),be(128),ve(),we(6),be(400);var ye=window||e;const Te=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function Ie(){const e=ye.location?ye.location.hostname:"";return Te.test(e)}function Se(){return Ie()?"platform.linkedin.com":"platform.linkedin-ei.com"}function ke(){const e=ye.location?ye.location.hostname:"";return/\.cn$/.test(e)}function Le(e,t,i,n=!0){if("function"!=typeof t||"function"!=typeof i)throw new TypeError("One of the specified callbacks is not a function.");const s=new ye.XMLHttpRequest;s.withCredentials=n,s.open("GET",e,!0),s.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):i(this))},s.send()}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Ae,Pe,xe,Re,Ne={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},De="GUEST",Ue="MEMBER",Be=(Oe(Ae={},De,"li_gc"),Oe(Ae,Ue,"li_mc"),Ae),qe=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in Ce(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=i,this.userMode=n,this.optedInConsentMap={},Ne)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===s},He=(Pe=[Ne.ADVERTISING,Ne.ANALYTICS_AND_RESEARCH,Ne.FUNCTIONAL],xe=[0,1,2,0],Re=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var i=e.match(Re);if(!i)return{error:"Invalid consent body encoding",consent:new qe};for(var n=parseInt(i[1],10),s={},o=0;o<Pe.length;o++)s[Pe[o]]=xe[n>>2*o&3];var r=new Date(1e3*parseInt(i[2],10)),a=parseInt(i[3],10),l=0;return a>=0&&a<=3&&(l=xe[a]),{error:null,consent:new qe(s,r,t,l)}}}),Fe=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Me=function(e,t){var i=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));if(i&&i.length>1)return i[1]},je=function(e,t){var i=Me(Be[e],t);return i?We(i,e):Me(Be[De],t)||Me(Be[Ue],t)?Ke(2):Ke(1)},Ke=function(e){var t={};for(var i in Ne)t[i]=e;return{error:null,consent:new qe(t,null,null,e)}},We=function(e,t){var i=atob(e).match(Fe);if(!i)return{error:"Invalid consent encoding",consent:new qe};var n=parseInt(i[1],10),s=i[2];switch(n){case 1:return He.parseConsentBody(s,t);default:return{error:"Invalid encoded consent version ".concat(n),consent:new qe}}},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e="true"===Me("liap",t)?Me(Be[Ue],t)?Ue:De:Me(Be[De],t)?De:Ue),je(e,t)};function Ge(e){for(let t=1;t<arguments.length;t++){const i=arguments[t];if(i){const t=Object.keys(i);for(let n=0;n<t.length;n++){const s=t[n];e[s]=i[s]}}}return e}let Ve;const Je={},Ye={};function $e(){return function(e){let t=Ge({},e);return t["compliance.isAdvertisingOptIn"]=function(e){return function(){let e=ze();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}(t),t["compliance.isAnalyticsAndResearchOptIn"]=function(){let e=ze();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}(),t["compliance.isFunctionalOptIn"]=function(){let e=ze();return!e||e.consent.optedInConsentMap.FUNCTIONAL}(),t}(Je)}ye.utag_data||(ye.utag_data={});const Qe="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Xe;function Ze(e,t,i){e.onLoadRulesRunOnce(i),e.view(Ge({},t,$e()))}function et(e,t,i){e.onLoadRulesRunOnce(i),e.link(Ge({},t,$e()))}function tt(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 it(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],i=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(i,")")}(e),",").concat(parseInt(t),")")}ye.utag_cfg_ovrd=ye.utag_cfg_ovrd||{},ye.utag_cfg_ovrd.noview=!0,ye.utag_cfg_ovrd.nocookie=!0;const nt=Qe&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(ye.navigator.userAgent),st={};class ot{constructor({profileName:e,tracking2Instance:t,enableWhitelisting:i=!1,cacheBusterInterval:n}={}){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=i,this.cacheBusterInterval=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(!Ye[e]){const t=function(e){return"https://".concat(Se(),"/litms/whitelist/").concat(encodeURIComponent(e))}(e),i=new Promise((e,i)=>{Le(t,t=>{e(JSON.parse(t))},e=>{i(e)},!1)});Ye[e]=i}return Ye[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&&(st[this.profileName]=this),this.initializePromise):Promise.resolve()}_processWhitelistResult(e){Object.keys(e).forEach(t=>this.addValuesToWhitelist(t,e[t]))}_loadContainerTag(e,t){void 0!==ye.utag&&(ye.utag=void 0),void 0!==ye.utag_data&&(ye.utag_data=void 0);const i=function(){if(!Ve){const e="https://".concat(Ie()?ke()?"www.linkedin.cn":"www.linkedin.com":ke()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user");Ve=new Promise((t,i)=>{Le(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),i(e)}},e=>{i(e)})})}return Ve}().then(e=>{Object.keys(e).forEach(t=>{!function(e,t){const i="string"!=typeof t?"":"".concat(t,".");"object"==typeof e&&Object.keys(e).forEach(t=>{Je[i+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),n=(s=function(e="main",t){return function(){if(void 0===Xe&&Qe){const e=ye.document.cookie.match(/litms_utag_override=([^;]+)/);Xe=e?e[1]:""}return Xe}().length>0?Xe:function(e,t=5){let i=null;return"string"==typeof e&&(i="https://".concat(Se(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(function(e){const t=new ye.Date;t.setSeconds(0),t.setMilliseconds(0);const i=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(i),t.getTime()}(t))),i}(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=ye.document.createElement("script");t.type="text/javascript",t.src=s,t.async=!0,t.onload=e,ye.document.getElementsByTagName("head")[0].appendChild(t)}));var s;Promise.all([i,n]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=ye.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const i=e.loader.initcfg;e.loader.initcfg=function(){i.call(this,arguments),t.length>0&&t.shift()()}}(this._uTag),this._processQueuedEvents();const t={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&tt(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!nt}_shouldProcessEvent(e){return nt?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){ye.utag=e}(e),t instanceof Array&&t.length>0){const i=t.length;for(let n=0;n<i;n++){const i=t.shift();i.isControlInteraction?et(e,i.data,i.callback):Ze(e,i.data,i.callback)}}}(this._uTag,this._queue):this.isInitialized&&this.isWhitelistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=function(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:it(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&tt(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const i=t._fireAuditEvent();"function"==typeof e&&e(i)}}trackPageView(e,t){return this._shouldProcessEvent(e).then(i=>{i&&(this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then(i=>{i&&(this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}}function rt({event:e,litmsInstance:t,pageKey:i}){const n=e.target.getAttribute("data-tracking-control-name"),s=e.target.hasAttribute("data-tracking-litms");n&&s&&t.trackControlInteraction({controlUrn:"urn:li:control:".concat(i,"-").concat(n)})}class at{constructor(e){if(this.trackingInstance=e,this.pageKey=n(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 ot({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>rt({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||rt({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 lt;function ct(e){if(!lt){if(!e)throw new Error("No trackingInstance passed in!");lt=new at(e)}return lt}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}}(),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 i=this.listeners[e],n=0,s=i.length;n<s;n++)if(i[n]===t)return void i.splice(n,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),i=0,n=t.length;i<n;i++)t[i].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const dt={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},ht={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:ut,GOOGLE_USER_FETCHED:pt,INITIALIZED:gt}=dt,{INITIALIZATION:mt,AUTHENTICATION:_t}=ht;EventTarget;const ft=dt,Et=ht,{GOOGLE_USER_FETCHED:vt,GOOGLE_ERROR:wt,INITIALIZED:bt}=ft,{INITIALIZATION:yt}=Et,Tt=".".concat("show-more-less","__list"),It=".".concat("show-more-less","__more-button"),St=".".concat("show-more-less","__less-button"),kt="".concat("show-more-less","__list--hide-after"),Lt="".concat("show-more-less","__button--hide");class Ct{constructor(e,t=(e=>e.querySelector(b))){if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Tt),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(kt,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(It),this.showLessButton=this.el.querySelector(St),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new w(e,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{currentListItem:this.firstHiddenListItem,isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",()=>this._showElements()),this.el.addEventListener("close",()=>this._hideElements()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){let t=e.target;if(t){let e=this._getFocusItemFromListItem(t);e&&e.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1)}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(e){e?(this.showLessButton.classList.add(Lt),this.showMoreButton.classList.remove(Lt)):(this.showLessButton.classList.remove(Lt),this.showMoreButton.classList.add(Lt))}}class Ot{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e;const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.getFocusItemFromListItem=e=>e.querySelector("[href], button"),this.collapsibleDropdown=new k(t,this.getFocusItemFromListItem)}}var At;Error,function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(At||(At={})),new Set(Object.values(At)),"".concat("filter-dropdown","--open");const Pt={getTrackingInstance:function({appId:e="seo",trackingCode:t}={}){const i=n(document),s=g(window.location.href,"originalReferer"),o={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{}};return t&&(o.userRequestHeaderProperties.trackingCode=t),s&&(o.userRequestHeaderProperties.referer=s),D||(D=N.AppTrackingInstance.createFromPageKey(o,i)),D.generateTrackingId=N.generateTrackingId,D},firePageViewEvent:U,fireViewModuleImpressionEvent:function(e,t){const i=o(document),n={};i&&(n.interfaceLocale=i);const s={header:{},requestHeader:n,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",s)}}}).call(this,i(1))},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";i.d(t,"a",(function(){return I}));var n=i(0);!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}}(),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 i=this.listeners[e],n=0,s=i.length;n<s;n++)if(i[n]===t)return void i.splice(n,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),i=0,n=t.length;i<n;i++)t[i].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const s={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},o={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},r={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},a={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"}};EventTarget;const l=s.GOOGLE_USER_FETCHED,c=s.PROMPT_MOMENT;class d extends EventTarget{constructor(e){let t=e.libSrcPath,i=e.containerId,n=e.context;var s=e.clientId;let o=void 0===s?"990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com":s;var r=e.cancelOnTapOutside;let a=void 0===r||r;if(super(),!n)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.libSrcPath=t,this.containerId=i,this.cancelOnTapOutside=a,this.clientId=o,this.context=n,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");!function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}(()=>{!function(e,t){const i=document.createElement("script");i.src=e,t&&(i.onload=t),document.head.appendChild(i)}(t,this._onGoogleApiLoad.bind(this))})}}_onGoogleApiLoad(){return 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 i=this.context===o.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(i){const e=new CustomEvent(l,{detail:i});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:a.SKIPPED.ISSUING_FAILED,type:r.SKIPPED},i=new CustomEvent(c,{detail:t});this.dispatchEvent(i)}promptOneTap(){google.accounts.id.prompt(e=>{const t={type:e.getMomentType(),reason:e.getNotDisplayedReason()||e.getSkippedReason()||e.getDismissedReason()},i=new CustomEvent(c,{detail:t});this.dispatchEvent(i)})}hideOneTap(){google.accounts.id.cancel()}}const h=s,u=o,p=a,g=r;function m(e,t){const i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",e),i.setAttribute("value",t),i}const _=n.n.getPageKey(document).replace("_jsbeacon","");const f=p,E=g,v=h.GOOGLE_USER_FETCHED,w=h.PROMPT_MOMENT,b=u.SIGN_IN,y=[f.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,f.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,f.NOT_DISPLAYED.SUPPRESSED_BY_USER],T=[f.SKIPPED.AUTO_CANCEL,f.SKIPPED.TAP_OUTSIDE,f.SKIPPED.USER_CANCEL];class I{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};let i=t.onNotDisplayed,s=t.onSkipped;if(!e)throw Error("Google one tap form element must be provided");this.el=e,this.onNotDisplayed="function"==typeof i&&i,this.onSkipped="function"==typeof s&&s,this.containerEl=this.el.querySelector(".google-one-tap__container"),this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new n.c(this.loaderEl),function(e,t,i){window.tracking&&window.tracking.then(s=>{if(t&&e.appendChild(function(e){return m("controlId",`${_}-${e.dataset.trackingControlName}`)}(t)),e.appendChild(function(e){const t=e.state&&e.state.currentPageInstance||{};return m("pageInstance",`${t.pageUrn};${t.trackingId}`)}(s)),i){const e=`${_}_${i}`;n.p.firePageViewEvent(s,"ajax",e),Object(n.k)(s).trackPageView({pageKey:e})}})}(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new d({cancelOnTapOutside:!1,context:b}),this.googleOneTapInstance.addEventListener(v,e=>{let t=e.detail;this._submitWithGoogle(t.idToken)}),this.googleOneTapInstance.addEventListener(w,e=>{let t=e.detail;const i=t.reason,n=t.type;let s="google-one-tap-moment--"+n;if(s=i?`${s}-${i}`:s,function(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}(s),i)if(n===E.SKIPPED){if(this.onSkipped)this.onSkipped(t);else if(-1===T.indexOf(i))throw Error(`GoogleOneTapError ${n}: ${i}`)}else if(n===E.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===y.indexOf(i))throw Error(`GoogleOneTapError ${n}: ${i}`)}),this.googleOneTapInstance))}_submitWithGoogle(e){this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=m("googleIdToken",e),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}var S="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",k=("undefined"==typeof document||document.createElement("div"),["b","del","em","i","s","strong","sub","sup"].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"])),L=[S,"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(){if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};document.createElement("div");String.fromCodePoint})();var C,O=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},A=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var i=0,n=e.length;i<n;i++)t(e[i],i)};function P(e){e=O(e)?e:[e];var t,i,n,s=0,o="<(?!/?";return o+="(?:",A(e,(function(e,r){t=e.tags||k,i=e.attrs||L,n=e.checkUrlAttrs||!1,0!==r&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",n&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function x(e){return P({tags:e=e||k,checkUrlAttrs:!0})}function R(e,t){var i=(t=t||{}).allowTags,n=!1!==t.hasCustomElementMarkup;return i?!x(i).test(e):n?!R.R_UNSAFE_CUSTOM_ELEMENT.test(e):!R.R_UNSAFE_HTML.test(e)}R.R_UNSAFE_HTML=x(),R.R_UNSAFE_CUSTOM_ELEMENT=P([{tags:k,checkUrlAttrs:!0},{tags:[(C={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[S,C.attrs].join("|"),checkUrlAttrs:!1}]);var N={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,"",""]};N.optgroup=N.option,N.tbody=N.tfoot=N.colgroup=N.caption=N.thead,N.th=N.td,function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(new function(){},{toString:function(){var e=this._string,t=this._stringVal,i=e;return void 0!==t?t:(R(e,this._options)||(i=e,e=function(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}(e),function(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)}("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i,"error")),this._stringVal=e,e)}}),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)))[;,]|[/.#?])");const D=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,U=/(.)\1{3}/,B=/linkedin/i,q=/\d\d/,H=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]+)?(/.*)?"),F=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,M=/^[ぁ-ゔゞ゛゜ー]*$/,j=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},K=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},W=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!q.test(e)};W.errorMessagePrefix="i18n_noConsecutiveDigits_";const z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!D.test(e)};z.errorMessagePrefix="i18n_noForbiddenCharacters_";const G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!U.test(e)};G.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!B.test(e)};V.errorMessagePrefix="i18n_noLinkedIn_";const J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!H.test(e)};J.errorMessagePrefix="i18n_noUrl_";const Y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return M.test(e)};Y.errorMessagePrefix="i18n_onlyPhonetic_";const $=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};$.errorMessagePrefix="i18n_required_";const Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return F.test(e)};Q.errorMessagePrefix="i18n_invalidFormat_";const X=[j(50),z,W,G,V,J];[$].concat(X),j(50);j(4),K(2),j(128),j(128),j(128),(e=>{e.errorMessagePrefix})(Q),K(6),j(200);new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]),Object.assign},function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i(0);const s="data-url",o="click",r="report-option",a={REPORT_BODY:".semaphore-modal__body",REPORT_BUTTON:".semaphore-modal__submit",REPORT_OPTIONS:".".concat(r)};class l extends n.d{constructor(e){if(!e)throw new Error("Semaphore modal container cannot be null");super(e),this._el.addEventListener("open",this._bindEvents.bind(this)),this.reportOptionsEl=n.m.makeArray(this._el.querySelectorAll(a.REPORT_OPTIONS)),this.submitButton=this._el.querySelector(a.REPORT_BUTTON)}_bindEvents(){this._el.querySelector(a.REPORT_BODY).addEventListener(o,this._handleOptionClick.bind(this)),this.submitButton.addEventListener(o,this._handleReportClick.bind(this)),this._el.addEventListener("close",this._tearDown.bind(this))}_handleOptionClick(e){e.target&&e.target.classList.contains(r)&&this.submitButton&&this.submitButton.disabled&&(this.submitButton.disabled=!1,this._lastTabableEl=this.submitButton)}_handleReportClick(e){let t;if(this._mapOnOptions(e=>{e&&e.checked&&(t=e)}),t){let e;if(t.hasAttribute(s)&&(e=t.getAttribute(s)),e)return window.location=e,void this._tearDown()}}_tearDown(){this._mapOnOptions(e=>{e&&e.checked&&(e.checked=!1)}),this.submitButton&&(this.submitButton.disabled=!0,this._lastTabableEl=this._tabableElements[this._tabableElements.length-1])}_mapOnOptions(e){this.reportOptionsEl.forEach(t=>e(t))}}},,,function(e,t,i){"use strict";i.r(t);var n=i(0),s=i(3),o={index:1};function r(e,t){var i,s,r=Date.now()-t;if(r>=300){var a=document.querySelector(e).getBoundingClientRect(),l=a.width,c=a.height;!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.activityUrn,i=e.duration,n=e.locale,s=e.size;window.tracking.then(e=>{var r={entities:[{duration:i,listPosition:o,size:s,trackingId:e.generateTrackingId(),urn:t,visibleTime:Date.now()}],header:{},requestHeader:{interfaceLocale:n||null}};e.fireTrackingEvent("FeedImpressionEvent",r)})}({activityUrn:(s=Object(n.j)("activityUrn"),s||""),locale:(i=document.querySelector('meta[name="locale"]'),i&&i.content||""),size:{height:c,width:l},duration:r})}}var a,l=i(2);a=".public-post",n.m.onload(()=>{var e=Date.now(),t="visibilitychange";void 0!==document.msHidden&&(t="msvisibilitychange"),document.addEventListener(t,()=>{document.hidden||document.msHidden?r(a,e):e=Date.now()}),window.addEventListener("beforeunload",()=>{r(a,e)})}),new n.b(document.querySelector(".language-selector")),new n.f(document.querySelector(".search-bar"),{typeaheadApiBaseUrl:"/feedcontent-guest/api/typeaheadHits"}),Array.from(document.querySelectorAll(".semaphore-modal")).forEach(e=>new s.a(e));var c=document.querySelector(".share-native-video__node");c&&new n.e(c),n.l.init(n.m.makeArray(document.querySelectorAll(".share-native-document__iframe"))),n.m.makeArray(document.querySelectorAll(".ellipsis-menu")).forEach(e=>new n.a(e));var d=document.querySelector(".google-one-tap");d&&new l.a(d)}]);