/*! For license information please see RequestOtpGeneration.js.LICENSE.txt */
(()=>{"use strict";var e={};function t(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function n(e){"complete"===document.readyState?e():window.addEventListener("load",(()=>{setTimeout(e)}))}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();class i{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",(e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}}))}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const r=function(){let e;return{getInstance:function(){return e||(e=new i),e}}}();class o{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",(e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)}))}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}!function(){let e}();function s(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function a(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function c(e,t){return l(e,"trk",t)}function l(e,t,n,i){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const r=a(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),s="&";return i<0?s="?":i===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(r).concat(s).concat(t,"=").concat(n).concat(o||"")}}function u(e,t,n){var i=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let r;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=n&&!r;clearTimeout(r),r=setTimeout((()=>{r=null,n||e.apply(i,s)}),t),c&&e.apply(i,s)}}function d(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),i=e.getElementById("config"),r=i&&"true"===i.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(r||t.skipSuffix?"":"_jsbeacon"):""}function f(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function m(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function g(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function v(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const y={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},b={Down:y.ARROW_DOWN,Right:y.ARROW_RIGHT,Left:y.ARROW_LEFT,Up:y.ARROW_UP,Esc:y.ESCAPE,Spacebar:y.SPACEBAR,Tab:y.TAB};function E(e){return b[e]||e}const w="click",_="keydown",T="focusEl";class S{constructor(e,t,n){let{mainButton:i,closeButton:r}=n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An expandable element must be provided to Collapsible");if(!i)throw Error("A main button element must be provided to Collapsible");this.el=e,this.expandableEl=t,this._isList=["UL","OL","DL"].includes(this.expandableEl.tagName);const{isOpen:s=!1}=o;this.isOpen=s,this.mainButton=i,this.closeButton=r,this.buttons=[i],this._isList&&this.el.addEventListener("keyup",(e=>this._onKeyUp(e))),this.expandableEl.addEventListener(_,(e=>this._onKeyDown(e))),this.mainButton.addEventListener(w,(e=>this.closeButton?this._open(e):this._toggle(e))),this.mainButton.addEventListener(_,(e=>this._onButtonKeyDown(e))),this.closeButton&&(this.closeButton.addEventListener(w,(()=>this.close())),this.closeButton.addEventListener(_,(e=>this._onButtonKeyDown(e))),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(E(e.key)){case y.ENTER:case y.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case y.ARROW_UP:this.isOpen||this._open(e);break;case y.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){E(e.key)===y.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const n=E(e.key);if(n===y.ESCAPE&&this.isOpen)this.close();else if(this._isList){let i;switch(n){case y.SPACEBAR:h(e.target,w);break;case y.ARROW_LEFT:case y.ARROW_UP:i=t(e.target,"li");let n=i.previousElementSibling;n&&h(n,T);break;case y.ARROW_RIGHT:case y.ARROW_DOWN:i=t(e.target,"li");let r=i.nextElementSibling;r&&h(r,T)}}}_open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach((e=>e.setAttribute("aria-expanded",this.isOpen))),h(this.el,"open",{key:t})}}close(){let{shouldReturnFocusToTrigger:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isOpen&&(this.isOpen=!1,this.buttons.forEach((e=>e.setAttribute("aria-expanded",this.isOpen))),h(this.el,"close"),e&&this.mainButton.focus())}}let k,I;const C=1e4,A=['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^="-"])'],L=[...A,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");[...A,"[tabindex]:not([disabled])"].join(",");function O(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function R(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,i=arguments.length>2?arguments[2]:void 0;return e===n?!O(e):i&&i.get(e)?i.get(e):(O(e)?t=!1:e.parentNode&&(t=R(e.parentNode,n,i)),i&&i.set(e,t),t)}const N={POLITE:"polite",ASSERTIVE:"assertive"};function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N.POLITE;k&&(k.removeAttribute("aria-hidden"),k.setAttribute("aria-live",N.POLITE),k.textContent="",k.textContent=e,k.setAttribute("aria-live",t),clearTimeout(I),I=setTimeout((()=>{k.removeAttribute("aria-live"),k.setAttribute("aria-hidden","true")}),C))}class P{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter((t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0)))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach((e=>{e.removeAttribute("aria-hidden")})),this._hiddenElements=[]}}const M=["class","disabled","style","tabindex","type"];class D{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),this._backgroundNavigationDisabler=new P(this._container)}init(){this._observer.observe(this._container,{attributeFilter:M,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:n}=e,i=E(t),r=i===y.TAB&&e.shiftKey;!r&&i===y.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):r&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,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(L)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=R(r,e,n)&&r,o++}if(!r){const i=t[s];r=R(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const B=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function U(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&B.test(e)}const q="collapsible-dropdown",F=".".concat(q,"__list"),H=".".concat(q,"__button"),j=".".concat(q,"__close-button"),G="no-focus-ring";class z{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(L)),elementToFocus:n,dropdownTriggerEl:i,dropdownContentEl:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to CollapsibleDropdown");this.el=e,this.dropdownContentEl=r||this.el.querySelector(F),this._closeButton=this.el.querySelector(j),this._isMobile=U();const o=this.dropdownContentEl.closest(".".concat(q));if(this._isMobile&&o&&(this._focusTrap=new D(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(L),t="-1"===this.dropdownContentEl.getAttribute("tabIndex");e||t||console.warn('elementToFocus not provided and the dropdown container is not focusable. Consider adding tabindex="-1" to:',this.dropdownContentEl)}this.elementToFocus=n||this.dropdownContentEl,this.dropdownTriggerEl=i||this.el.querySelector(H),this.hideClass="hidden",this.collapsible=new S(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){var e;this.el.addEventListener("open",(e=>this._showDropdownList(e))),this.el.addEventListener("close",(()=>this._hideDropdownList())),this.collapsible.isList&&this.dropdownContentEl.addEventListener("focusEl",(e=>this._manageFocus(e))),null===(e=this._closeButton)||void 0===e||e.addEventListener("click",(e=>this._handleCloseButtonClick(e)))}_manageFocus(e){const{target:t}=e;if(t&&this._getFocusItemFromListItem){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_handleCloseButtonClick(e){var t;null===(t=e.stopPropagation)||void 0===t||t.call(e),this.collapsible.close({shouldReturnFocusToTrigger:!0})}_showDropdownList(e){window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;var n;(t?this.elementToFocus.classList.remove(G):this.elementToFocus.classList.add(G),document.addEventListener("mousedown",this._handleBodyClick),this._isMobile)?null===(n=this._focusTrap)||void 0===n||n.init():this.el.addEventListener("focusout",this._focusOutsideDropdown)}_hideDropdownList(){var e;this._isMobile?null===(e=this._focusTrap)||void 0===e||e.tearDown():this.el.removeEventListener("focusout",this._focusOutsideDropdown);document.removeEventListener("mousedown",this._handleBodyClick),window.removeEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}shouldReturnFocusToTrigger(e){this._shouldReturnFocusToTrigger=e}close(){this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}}function K(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l={method:t,headers:n,body:null};if(!r){const e=d("JSESSIONID");e&&(l.headers["Csrf-Token"]=v(e))}i&&(l.credentials="include"),"POST"!==l.method&&"PUT"!==l.method||(l.body=o);const u=fetch(e,l),h=u.then((n=>n.ok||304===n.status?n.text().then((e=>(n.responseText=e,n))):n.text().then((i=>{const r=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(n.status));return n.responseText=i,r.response=n,Promise.reject(r)}))));return s&&(a.length?function(e,t,n,i){try{window.tracking.then((r=>{window.pemTracking.then((o=>{o.trackFeatureDegradationsForFetch(t,n,i,e,r.state.currentPageInstance)}))}))}catch(e){}}(u,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),h}class W{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(".language-selector__link--selected"),this.collapsibleDropdown=new z(e,{dropdownTriggerEl:this.dropdownTriggerEl,elementToFocus:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){return function(e){const t=v(d("bcookie")||""),n=function(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}(g(document));return K("".concat(n,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}(e.target.getAttribute("data-locale")).then((()=>{location.reload()}))}}var V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{},X="object"==typeof V&&V&&V.Object===Object&&V,Q="object"==typeof self&&self&&self.Object===Object&&self;X||Q||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const ee={LIGHT:"light",DARK:"dark",SYSTEM:"system"},te="dark";function ne(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains(te)?ee.DARK:ee.LIGHT:void 0}var ie;function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,t)||de(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=de(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ce(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||de(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){if(e){if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var fe,me=new Uint8Array(16);function ge(){if(!fe&&!(fe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fe(me)}var ve=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ye(e){return"string"==typeof e&&ve.test(e)}for(var be=[],Ee=0;Ee<256;++Ee)be.push((Ee+256).toString(16).substr(1));function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(be[e[t+0]]+be[e[t+1]]+be[e[t+2]]+be[e[t+3]]+"-"+be[e[t+4]]+be[e[t+5]]+"-"+be[e[t+6]]+be[e[t+7]]+"-"+be[e[t+8]]+be[e[t+9]]+"-"+be[e[t+10]]+be[e[t+11]]+be[e[t+12]]+be[e[t+13]]+be[e[t+14]]+be[e[t+15]]).toLowerCase();if(!ye(n))throw TypeError("Stringified UUID is invalid");return n}function _e(e){if(!ye(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Te(e,t,n){function i(e,i,r,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=_e(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0;for(var a=0;a<16;++a)r[o+a]=s[a];return r}return we(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Se(e){return 14+(e+64>>>9<<4)+1}function ke(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ie(e,t,n,i,r,o){return ke((s=ke(ke(t,e),ke(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function Ce(e,t,n,i,r,o,s){return Ie(t&n|~t&i,e,t,r,o,s)}function Ae(e,t,n,i,r,o,s){return Ie(t&i|n&~i,e,t,r,o,s)}function Le(e,t,n,i,r,o,s){return Ie(t^n^i,e,t,r,o,s)}function Oe(e,t,n,i,r,o,s){return Ie(n^(t|~i),e,t,r,o,s)}function Re(e,t,n){var i=(e=e||{}).random||(e.rng||ge)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return we(i)}function Ne(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function xe(e,t){return e<<t|e>>>32-t}Te("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,s=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Se(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=i,l=r,u=o;n=Ce(n,i,r,o,e[s],7,-680876936),o=Ce(o,n,i,r,e[s+1],12,-389564586),r=Ce(r,o,n,i,e[s+2],17,606105819),i=Ce(i,r,o,n,e[s+3],22,-1044525330),n=Ce(n,i,r,o,e[s+4],7,-176418897),o=Ce(o,n,i,r,e[s+5],12,1200080426),r=Ce(r,o,n,i,e[s+6],17,-1473231341),i=Ce(i,r,o,n,e[s+7],22,-45705983),n=Ce(n,i,r,o,e[s+8],7,1770035416),o=Ce(o,n,i,r,e[s+9],12,-1958414417),r=Ce(r,o,n,i,e[s+10],17,-42063),i=Ce(i,r,o,n,e[s+11],22,-1990404162),n=Ce(n,i,r,o,e[s+12],7,1804603682),o=Ce(o,n,i,r,e[s+13],12,-40341101),r=Ce(r,o,n,i,e[s+14],17,-1502002290),n=Ae(n,i=Ce(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=Ae(o,n,i,r,e[s+6],9,-1069501632),r=Ae(r,o,n,i,e[s+11],14,643717713),i=Ae(i,r,o,n,e[s],20,-373897302),n=Ae(n,i,r,o,e[s+5],5,-701558691),o=Ae(o,n,i,r,e[s+10],9,38016083),r=Ae(r,o,n,i,e[s+15],14,-660478335),i=Ae(i,r,o,n,e[s+4],20,-405537848),n=Ae(n,i,r,o,e[s+9],5,568446438),o=Ae(o,n,i,r,e[s+14],9,-1019803690),r=Ae(r,o,n,i,e[s+3],14,-187363961),i=Ae(i,r,o,n,e[s+8],20,1163531501),n=Ae(n,i,r,o,e[s+13],5,-1444681467),o=Ae(o,n,i,r,e[s+2],9,-51403784),r=Ae(r,o,n,i,e[s+7],14,1735328473),n=Le(n,i=Ae(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=Le(o,n,i,r,e[s+8],11,-2022574463),r=Le(r,o,n,i,e[s+11],16,1839030562),i=Le(i,r,o,n,e[s+14],23,-35309556),n=Le(n,i,r,o,e[s+1],4,-1530992060),o=Le(o,n,i,r,e[s+4],11,1272893353),r=Le(r,o,n,i,e[s+7],16,-155497632),i=Le(i,r,o,n,e[s+10],23,-1094730640),n=Le(n,i,r,o,e[s+13],4,681279174),o=Le(o,n,i,r,e[s],11,-358537222),r=Le(r,o,n,i,e[s+3],16,-722521979),i=Le(i,r,o,n,e[s+6],23,76029189),n=Le(n,i,r,o,e[s+9],4,-640364487),o=Le(o,n,i,r,e[s+12],11,-421815835),r=Le(r,o,n,i,e[s+15],16,530742520),n=Oe(n,i=Le(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=Oe(o,n,i,r,e[s+7],10,1126891415),r=Oe(r,o,n,i,e[s+14],15,-1416354905),i=Oe(i,r,o,n,e[s+5],21,-57434055),n=Oe(n,i,r,o,e[s+12],6,1700485571),o=Oe(o,n,i,r,e[s+3],10,-1894986606),r=Oe(r,o,n,i,e[s+10],15,-1051523),i=Oe(i,r,o,n,e[s+1],21,-2054922799),n=Oe(n,i,r,o,e[s+8],6,1873313359),o=Oe(o,n,i,r,e[s+15],10,-30611744),r=Oe(r,o,n,i,e[s+6],15,-1560198380),i=Oe(i,r,o,n,e[s+13],21,1309151649),n=Oe(n,i,r,o,e[s+4],6,-145523070),o=Oe(o,n,i,r,e[s+11],10,-1120210379),r=Oe(r,o,n,i,e[s+2],15,718787259),i=Oe(i,r,o,n,e[s+9],21,-343485551),n=ke(n,a),i=ke(i,c),r=ke(r,l),o=ke(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Se(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),Te("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=xe(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),_=xe(m,5)+Ne(w,g,v,y)+b+t[w]+h[E]>>>0;b=y,y=v,v=xe(g,30)>>>0,g=m,m=_}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Pe=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Me=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Me){var De=new Uint8Array(256),Be=De.length;Pe={rng:function(){return Be>De.length-16&&(Me.randomFillSync(De),Be=0),De.slice(Be,Be+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":pe(crypto))&&crypto.randomUUID;function Ue(){return Re(Pe,new Array(16),0)}function qe(e){return ue(e).map((function(e){return String.fromCharCode(e)})).join("")}var Fe=/^[a-zA-Z0-9/+]+[=]+$/;function He(e,t){return{pageUrn:Ge(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,s=o%3,a=o-s;r<a;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3;switch(s){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=");break;case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(Ue())}}function je(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Ge(e){return"urn:li:page:".concat(e)}function ze(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Ke(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function We(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Ve(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",i=window.indexedDB.open(n);return new Promise((function(r,o){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var i,s=null!==(i=n.sequenceNumber)&&void 0!==i?i:0;if("read"===e)return r(s);if(!("update"===e&&void 0!==t&&t>s))return r(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return r(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return r(0)},u.onerror=function(){o(u.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},a.oncomplete=function(){return s.close()}},i.onerror=function(){return r(null)}}))}return Promise.resolve(null)}function Xe(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Qe(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Ye,Je,Ze=(Ye=new Map,Je=new Map,{on:function(e,t){Xe(Ye,e,t)},before:function(e,t){Xe(Je,e,t)},off:function(e,t){Qe(Ye,e,t)},offBefore:function(e,t){Qe(Je,e,t)},emit:function(e,t){(Je.get(e)||[]).concat(Ye.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Je.clear(),Ye.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var $e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Ze.emit("internal:hide",e)};document.addEventListener("visibilitychange",$e),window.addEventListener("pagehide",$e)}var et=Uint8Array,tt=Uint16Array,nt=Uint32Array,it=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),rt=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ot=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),st=function(e,t){for(var n=new tt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new nt(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},at=st(it,2),ct=at[0],lt=at[1];ct[28]=258,lt[258]=28;for(var ut=st(rt,0)[1],dt=new tt(32768),ht=0;ht<32768;++ht){var pt=(43690&ht)>>>1|(21845&ht)<<1;pt=(61680&(pt=(52428&pt)>>>2|(13107&pt)<<2))>>>4|(3855&pt)<<4,dt[ht]=((65280&pt)>>>8|(255&pt)<<8)>>>1}var ft=function(e,t,n){for(var i=e.length,r=0,o=new tt(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new tt(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new tt(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[dt[d]>>>c]=l}else for(s=new tt(i),r=0;r<i;++r)e[r]&&(s[r]=dt[a[e[r]-1]++]>>>15-e[r]);return s},mt=new et(288);for(ht=0;ht<144;++ht)mt[ht]=8;for(ht=144;ht<256;++ht)mt[ht]=9;for(ht=256;ht<280;++ht)mt[ht]=7;for(ht=280;ht<288;++ht)mt[ht]=8;var gt=new et(32);for(ht=0;ht<32;++ht)gt[ht]=5;var vt=ft(mt,9,0),yt=ft(gt,5,0),bt=function(e){return(e+7)/8|0},Et=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},wt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},_t=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[Lt,0];if(1==r){var s=new et(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new tt(h+1),f=Tt(n[u-1],p,0);if(f>t){i=0;var m=0,g=f-t,v=1<<g;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s;if(!(p[y]>t))break;m+=v-(1<<f-p[y]),p[y]=t}for(m>>>=g;m>0;){var b=o[i].s;p[b]<t?m-=1<<t-p[b]++-1:++i}for(;i>=0&&m;--i){var E=o[i].s;p[E]==t&&(--p[E],++m)}f=t}return[new et(p),f]},Tt=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},St=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new tt(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},kt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},It=function(e,t,n){var i=n.length,r=bt(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},Ct=function(e,t,n,i,r,o,s,a,c,l,u){Et(t,u++,n),++r[256];for(var d=_t(r,15),h=d[0],p=d[1],f=_t(o,15),m=f[0],g=f[1],v=St(h),y=v[0],b=v[1],E=St(m),w=E[0],_=E[1],T=new tt(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var k=_t(T,7),I=k[0],C=k[1],A=19;A>4&&!I[ot[A-1]];--A);var L,O,R,N,x=l+5<<3,P=kt(r,mt)+kt(o,gt)+s,M=kt(r,h)+kt(o,m)+s+14+3*A+kt(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(x<=P&&x<=M)return It(t,u,e.subarray(c,c+l));if(Et(t,u,1+(M<P)),u+=2,M<P){L=ft(h,p,0),O=h,R=ft(m,g,0),N=m;var D=ft(I,C,0);for(Et(t,u,b-257),Et(t,u+5,_-1),Et(t,u+10,A-4),u+=14,S=0;S<A;++S)Et(t,u+3*S,I[ot[S]]);u+=3*A;for(var B=[y,w],U=0;U<2;++U){var q=B[U];for(S=0;S<q.length;++S){var F=31&q[S];Et(t,u,D[F]),u+=I[F],F>15&&(Et(t,u,q[S]>>>5&127),u+=q[S]>>>12)}}}else L=vt,O=mt,R=yt,N=gt;for(S=0;S<a;++S)if(i[S]>255){F=i[S]>>>18&31,wt(t,u,L[F+257]),u+=O[F+257],F>7&&(Et(t,u,i[S]>>>23&31),u+=it[F]);var H=31&i[S];wt(t,u,R[H]),u+=N[H],H>3&&(wt(t,u,i[S]>>>5&8191),u+=rt[H])}else wt(t,u,L[i[S]]),u+=O[i[S]];return wt(t,u,L[256]),u+O[256]},At=new nt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Lt=new et(0),Ot=function(e,t,n,i,r,o){var s=e.length,a=new et(i+s+5*(1+Math.ceil(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=It(c,l+1,e.subarray(u,d))}else{for(var h=At[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new tt(32768),v=new tt(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},w=new nt(25e3),_=new tt(288),T=new tt(32),S=0,k=0,I=(u=0,0),C=0,A=0;u<s;++u){var L=E(u),O=32767&u,R=v[L];if(g[O]=R,v[L]=O,C<=u){var N=s-u;if((S>7e3||I>24576)&&N>423){l=Ct(e,c,0,w,_,T,k,I,A,u-A,l),I=S=k=0,A=u;for(var x=0;x<286;++x)_[x]=0;for(x=0;x<30;++x)T[x]=0}var P=2,M=0,D=f,B=O-R&32767;if(N>2&&L==E(u-B))for(var U=Math.min(p,N)-1,q=Math.min(32767,u),F=Math.min(258,N);B<=q&&--D&&O!=R;){if(e[u+P]==e[u+P-B]){for(var H=0;H<F&&e[u+H]==e[u+H-B];++H);if(H>P){if(P=H,M=B,H>U)break;var j=Math.min(B,H-2),G=0;for(x=0;x<j;++x){var z=u-B+x+32768&32767,K=z-g[z]+32768&32767;K>G&&(G=K,R=z)}}}B+=(O=R)-(R=g[O])+32768&32767}if(M){w[I++]=268435456|lt[P]<<18|ut[M];var W=31&lt[P],V=31&ut[M];k+=it[W]+rt[V],++_[257+W],++T[V],C=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=Ct(e,c,o,w,_,T,k,I,A,u-A,l),!o&&7&l&&(l=It(c,l+1,Lt))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(2==e.BYTES_PER_ELEMENT?tt:4==e.BYTES_PER_ELEMENT?nt:et)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+bt(l)+r)},Rt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Nt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};var xt="undefined"!=typeof TextDecoder&&new TextDecoder;try{xt.decode(Lt,{stream:!0})}catch(vi){}function Pt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Mt(){try{return Pt()&&"keepalive"in new Request("")}catch(e){return!1}}function Dt(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress;i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8");var o=t;if(r&&"undefined"!=typeof TextEncoder)try{o=function(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Rt[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r,o,s,a=(r=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),Ot(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,s,8,!0)),c=a.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Nt(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(a,t),Nt(a,c-8,n.d()),Nt(a,c-4,i),a}((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Bt(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Ut,qt="undefined"!=typeof navigator&&"sendBeacon"in navigator,Ft=Mt()?function(e,t,n,i){return new Promise((function(r){fetch(e,Dt({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Dt({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Bt(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(qt){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Dt({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Bt(e)})}))}))};function Ht(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e);r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}};var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result;t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}));return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function Gt(){return Ut||(Ut=jt("idb-queue","default")),Ut}function zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null;return e.openKeyCursor().onsuccess=function(){var r=this.result;r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},Ht(e.transaction)}var Kt=!1;function Wt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gt();return n("readwrite",(function(n){return n.put(e),Ht(n.count()).then((function(e){if(!(e<=t.maxNumber))return zt(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt())("readwrite",(function(t){return zt(t,e)}))}(t,n)}))}function Vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gt();return Kt?Promise.resolve():Wt(e,t,n)}function Xt(e,t,n){return t("readonly",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},Ht(t.transaction).then((function(){return i}))}))}function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function Yt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Jt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{!function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}}var $t=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];se(this,e),le(this,"config",void 0),le(this,"compress",void 0),le(this,"throttleControl",void 0),le(this,"withStore",void 0),le(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=jt(t.idbName,"beacons","timestamp",{onSuccess:function(){r&&performance.measure(r.createSuccessMeasure,r.createStartMark)},onError:function(){r&&performance.measure(r.createFailMeasure,r.createStartMark),n.disablePersistence=!0}}),this.throttleControl=function(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(Yt((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}(this.replayEntries.bind(this),t.throttleWait)}return ce(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Yt((function(){return"Persisting to DB "+e.url})),Vt(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Yt((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Jt((function(){return"push failed"}))}))};this.config.useIdle?Zt(n):n()}}},{key:"clear",value:function(){var e=this;return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gt();return Kt=!0,e("readwrite",(function(e){return e.clear(),Ht(e.transaction).finally((function(){return Kt=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Jt((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):function(){return Xt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Jt((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):function(){return Xt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Jt((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Yt((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),t.delete(),(e<0||i.length<e)&&t.continue())},Ht(t.transaction).then((function(){return i}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt(),"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,s=r.body,a=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return Yt((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),Ft(o,s,Qt(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i;null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,s),e.replayEntries()}else{var r,a,d,h,p,f;if(u+1>e.config.attemptLimit)return Yt((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(a=e.config).onResult)||void 0===r||r.call(a,t,s));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,s),Yt((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),Vt({url:o,body:s,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(p=(f=e.config).onResult)||void 0===p||p.call(f,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Jt((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Zt(t):t()}}}]),e}(),en=function(){function e(){se(this,e)}return ce(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),tn=function(){function e(t,n){se(this,e),le(this,"queue",void 0),le(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new $t(t,n.compress):new en}return ce(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}();le(tn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var nn=[502,504],rn=[429,503],on=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];se(this,e),le(this,"url",void 0),le(this,"body",void 0),le(this,"config",void 0),le(this,"persistenceConfig",void 0),le(this,"compress",void 0),le(this,"timestamp",void 0),le(this,"isClearQueuePending",!1),le(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return ce(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.persistenceConfig.db.onClear(this.onClearCallback);var n=this.retryLimit;return this.retry((function(t){return Ft(e.url,e.body,t,e.compress)}),n,t).finally((function(){Yt((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,i){var r=this,o=this.getAttemptCount(t)-1;return e(Qt(n,this.config.headerName,o,i)).then((function(i){var o,s,a,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),a=i;else if(Yt((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:i.statusCode};else{if(t>0&&r.isRetryableError(i)){var l,u;null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return Yt((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(a=i).drop=!0}return null===(o=(s=r.config).onIntermediateResult)||void 0===o||o.call(s,a,r.body),a}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function sn(e,t,n,i,r){"control"!==i&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&Mt()&&t&&n}()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}("beacons");var s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},l=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:nn,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:rn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new tn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return Pt()?new on(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||rn},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body);if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Ze.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Ze.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var an=function(){function e(t){se(this,e),le(this,"host",void 0),this.host=t}return ce(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment();this.host.retryConfig&&sn(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon;if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){Ze.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();Mt()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){Ze.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&("undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Pt()||"undefined"==typeof Promise?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var s=o[r];i.setRequestHeader(s,n.headers[s])}i.send(t)}}(e,JSON.stringify(t),{headers:n}):Ft(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var i=this.host.retryConfig.lixKey;return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),cn="undefined"!=typeof window&&"undefined"!=typeof document,ln=/JSESSIONID="?([^";]+)"?/,un="",dn=0;function hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?ln:i;if(!un||Date.now()-dn>n){var o=cn&&document.cookie.match(r);un=o&&o[1]||"",dn=Date.now()}return un}var pn=function(){function e(t){se(this,e),le(this,"networkTransporter",void 0),le(this,"inactive",void 0),le(this,"mpName",void 0),le(this,"endpoint",void 0),le(this,"debug",void 0),this.networkTransporter=new an(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=mn;break;case"https://www.linkedin-ei.com/li/track/validate":default:n=!0,t=fn;break;case"https://www.linkedin-ei.com/li/track":t=fn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return ce(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":hn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),fn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",mn="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function gn(e){return"string"==typeof e}function vn(e){return gn(e)?e:e.topicName||e.eventName}function yn(e){return gn(e)?e:e.eventName}var bn,En,wn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};se(this,e),le(this,"host",void 0),le(this,"cmoTransporter",void 0),le(this,"clientMonitoringInstanceId",qe(Ue())),le(this,"currentContext",{pageKey:"unknown",pageInstance:He("unknown")}),le(this,"appState",{}),le(this,"estimatedFragmentSize",0),le(this,"fragmentSizeLimit",void 0),le(this,"activeFragmentEvent",void 0),le(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new pn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Tn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return ce(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this;void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring();var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated;return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId();t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats;t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,i=oe(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:yn(t),eventTopic:vn(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0;var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent;i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=Tn(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=Sn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Sn(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:"0000000000000000"}}}}]),e}();function _n(e){return bn||(bn=new wn(e)),{getCurrentInstanceId:function(){return bn.getCurrentInstanceId()},logEventGenerated:function(e){return bn.logEventGenerated(e)},logEventReadyToSend:function(e){bn.logEventReadyToSend(e)},logEventSent:function(e){bn.logEventSent(e)},logPersistedEventSent:function(e,t){bn.logEventSent(t,e)},logNetworkResponseCode:function(e){bn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=bn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){bn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){bn.logFailedEvent(t,n,i,r,e)},flush:function(){bn.flush()},destroy:function(){bn=void 0},isDestroyed:function(){return void 0===bn},setCurrentContext:function(e){bn.setCurrentContext(e)},updateAppState:function(e){bn.updateAppState(e)}}}function Tn(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:r.requestHeader,header:r.header}}function Sn(e){return Array.isArray(e)?qe(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Fe)}(e)?atob(e):qe(function(e){return _e(e)}(e))}!function(e){e.NONE="NONE",e.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",e.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",e.RETRIES_EXCEEDED="RETRIES_EXCEEDED",e.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",e.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",e.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"}(En||(En={}));var kn="PageViewEvent",In=function(){function e(t){var n=this;se(this,e),le(this,"host",void 0),le(this,"queue",void 0),le(this,"preContextQueue",void 0),le(this,"debounceTimer",void 0),le(this,"unloadHandlers",void 0),le(this,"maxQueueSize",void 0),le(this,"flushDebounceTime",void 0),le(this,"trackingEventListeners",[]),le(this,"onHideHandler",(function(){n.forceFlush()})),le(this,"networkTransporter",void 0),le(this,"clientMonitoringConn",void 0),le(this,"clientSequenceNumberCounter",void 0),le(this,"isTimerRunning",void 0),le(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var i=t.batching;this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,Ze.on("internal:hide",this.onHideHandler),this.networkTransporter=new an(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=_n(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return ce(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i;if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent(En.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length;t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i;if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return;var r=i[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(r,En.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(vn(e.id)));var n,i=this.host,r=i.api.Promise,o=i.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))):(this.preContextQueue.push(t),r.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,Ze.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:He("unknown"),pageKey:"unknown"}).forEach((function(t){return e.queue.push(t)})),this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n;return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this;Ve("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){Ze.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){Ve("update",this.clientSequenceNumberCounter).catch((function(e){Ze.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-update"],reason:e})}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this;"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=ze(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===kn:e.eventName===kn}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof r&&null!==this.host.locale||(p=r);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:i};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var g={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&c(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),c(e.body,g)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,i,r=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),i=e.getBreadcrumbs(t),s=e.envelop(t.id,n,i);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?r.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(r.length+o.length),i=this.clientMonitoringConn,n={onResult:function(e,t){i&&!i.isDestroyed()&&(e.statusCode&&i.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==i||i.logFailedEvent(En.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,r,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var Cn,An=function(){function e(t,n){se(this,e),this.clientBreadcrumbType=t,this.id=n}return ce(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.toString()]=n,t}}});return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}();function Ln(e){if(!e)return{};var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu);e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var r=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=r&&{pageInstance:r,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function On(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Cn||(Cn={}));var Rn,Nn,xn;!function(){function e(t,n){var i,r;if(se(this,e),le(this,"transporter",void 0),le(this,"delegate",void 0),le(this,"currentContext",void 0),le(this,"appState",void 0),le(this,"previousAppContext",void 0),le(this,"customTransporters",void 0),le(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new In(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=_n(t.host))}ce(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){On(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=On(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return ze(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.navMetaFromSeed(e,Ln(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=ze(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(ze(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=je(n.pageKey,e),s={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,i){if(!t){var r=vn(e),o=void 0===t?"undefined":null===t?"null":pe(t),s='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(r);this.clientMonitoringConn.logFailedEvent(En.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return An.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=this.generateEnvelope(e,t,n);return i.length>0?this.addBreadcrumbsToEnvelope(r,i):r}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(gn(e.id)){var i=e.id;e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(r){var o=r.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=vn(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(En.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return s.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return He(e,t)}},{key:"firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),Ze.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return je((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from;return{previousPageInstance:i&&i.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var i=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t);o.meta.requestHeader.pageKey=n.pageKey;var s=i&&i.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&ze(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:i}}}])}();!function(){function e(t,n){var i,r=this;se(this,e),le(this,"core",void 0),le(this,"protocol",void 0),le(this,"throttleKeySet",new Set),le(this,"config",void 0),le(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),r.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100},Ze.on("internal:error",this.reportTransporterError)}ce(e,[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,s=void 0===o?"":o,a=r.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,g=void 0===m?0:m,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,w=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,I=b.api,C=I.Promise,A=I.location,L=A.host,O=A.pathname,R=A.search,N=A.hash,x=void 0===N?"":N;if(c){t={};var P=new Map;Object.keys(c).forEach((function(e){P.set(e.toLowerCase(),c[e])})),t.callTreeId=P.get("x-li-uuid"),t.microsoftEdgeReference=P.get("x-msedge-ref"),t.pointOfPresenceId=P.get("x-li-pop"),t.fabric=P.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:g,m:l,s:h,t:u,u:f},h:x,l:n.protocol,o:L,p:O,pageKey:e.pageKey,q:R,service:_,serviceInstance:T,serviceVersion:w,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=function(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?C.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),M())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Ze.off("internal:error",this.reportTransporterError)}}])}();var Pn=function(){function e(){se(this,e),le(this,"userTimingEntries",[]),le(this,"longTasks",[]),le(this,"resourceTimingEntries",[]),le(this,"cdnData",void 0)}return ce(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(Dn),cdnData:this.cdnData}}}]),e}(),Mn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Dn(e){return Mn.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Bn(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};Nn=Object.assign(Object.assign({},n),t),xn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Nn.root,n);var i=Un(e,Rn.All,(function(){return Un(e,Rn.Two,(function(){return Un(e,Rn.One)}))}));if(i){var r=Xn(Qn(i,e));return r.length>0&&(i=r[0]),Fn(i)}throw new Error("Selector was not found.")}function Un(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=Kn(function(e){var t=e.getAttribute("id");return t&&Nn.idName(t)?{name:"#"+ni(t,{isIdentifier:!0}),penalty:0}:null}(o))||Kn.apply(void 0,ue(function(e){return Array.from(e.attributes).filter((function(e){return Nn.attr(e.name,e.value)})).map((function(e){return{name:"["+ni(e.name,{isIdentifier:!0})+'="'+ni(e.value)+'"]',penalty:.5}}))}(o)))||Kn.apply(void 0,ue(function(e){return Array.from(e.classList).filter(Nn.className).map((function(e){return{name:"."+ni(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Kn(function(e){var t=e.tagName.toLowerCase();return Nn.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling;return i}(o);if(t===Rn.All)a&&(e=e.concat(e.filter(zn).map((function(e){return Gn(e,a)}))));else if(t===Rn.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(zn).map((function(e){return Gn(e,a)}))));else if(t===Rn.One){var c=re(e=e.slice(0,1),1)[0];a&&zn(c)&&(e=[Gn(c,a)])}var l,u=oe(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=Nn.seedMinLength&&(i=qn(r,n)))return"break";o=o.parentElement,s++};o&&o!==Nn.root.parentElement&&"break"!==a(););return i||(i=qn(r,n)),i}function qn(e,t){var n=Xn(Vn(e));if(n.length>Nn.threshold)return t?t():null;var i,r=oe(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(jn(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Fn(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0;n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function Hn(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function jn(e){switch(xn.querySelectorAll(Fn(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Fn(e)));case 1:return!0;default:return!1}}function Gn(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function zn(e){return"html"!==e.name&&!e.name.startsWith("#")}function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(Wn);return i.length>0?i:null}function Wn(e){return null!=e}function Vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length>0){var n,i=[],r=oe(e[0]);try{for(r.s();!(n=r.n()).done;){var o=n.value;i=i.concat(Vn(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function Xn(e){return Array.from(e).sort((function(e,t){return Hn(e)-Hn(t)}))}function Qn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(e.length>2&&e.length>Nn.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>Nn.maxNumberOfTries)return i;n.counter+=1;var o=ue(e);o.splice(r,1);var s=Fn(o);if(n.visited.has(s))return i;jn(o)&&Yn(o,t)&&(i.push(o),n.visited.set(s,!0),i=i.concat(Qn(o,t,n)))}return i}function Yn(e,t){return xn.querySelector(Fn(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Rn||(Rn={}));var Jn,Zn=/[ -,\.\/:-@\[-\^`\{-~]/,$n=/[ -,\.\/:-@\[\]\^`\{-~]/,ei=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ti={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},ti),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var l=e.charAt(a++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Zn.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&$n.test(l)?"\\"+l:l;s+=d}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(ei,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function ii(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function ri(e){var t=e||performance;return Math.round(t.now())}function oi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Bn(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=oi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function si(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){i.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){i.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),i}function ai(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var ci,li=function(){function e(t){se(this,e),le(this,"hostApis",void 0),le(this,"hostnameProperties",void 0),le(this,"usedHostnames",void 0),le(this,"abortController",void 0),le(this,"pendingPromises",void 0),this.hostApis=t;var n=t.AbortController;this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return ce(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return We(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,i=n.AbortController,r=n.Promise,o=Ke(We(this.pendingPromises),r),s=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(Jn=Jn||i.createElement("a")).href=n,Jn.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),ui=function(){function e(t,n,i,r){se(this,e),le(this,"hostApis",void 0),le(this,"statics",void 0),le(this,"options",void 0),le(this,"allowTimingOrigin",void 0),le(this,"collectResourceTimings",void 0),le(this,"collectCdnData",void 0),le(this,"perfObserver",void 0),le(this,"renderTimings",new Map),le(this,"urlToTreeId",new Map),le(this,"cdnDataProvider",void 0),le(this,"observables",new Pn),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new li(t))}return ce(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Jn=Jn||t.createElement("a")).href=e,Jn.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:ii(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||ii(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,i=e.immediate,r=this.collectSynchronousData(n);if(i)return r;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{key:"reset",value:function(){var e;this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,i=t.PerformanceObserver,r=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=si(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var i=e.timing,r=e.navigation;return i&&r?(t.navigationTimingApi=!0,di.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData();n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[];return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?Ke(r,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,i=e.name,r=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:r,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:r,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:i,startTime:r})}))})),this.observables.userTimingEntries=si(this.hostApis.performance,this.options,!1);var n=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance;"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){return e.processSingleResourceTiming(t)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e){this.collectResourceTimings&&this.observables.resourceTimingEntries.push(e),this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:ai(this.renderTimings),networkInformationMetrics:hi(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),di=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function hi(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix"}(ci||(ci={}));var pi=(le(ie={},"web-ui-framework","EMBER"),le(ie,"app-id","linkedin.rum.tracking"),le(ie,"app-version","unknown"),le(ie,"is-single-page-app",!0),le(ie,"user-timing-mark-enabled",!1),le(ie,"user-timing-measure-enabled",!0),le(ie,"beacon-source","apps"),le(ie,"enable-rs-timing",!0),le(ie,"enable-cdn-tracking",!1),le(ie,"async-plugins-timeout",5e3),le(ie,"beacon-timeout",3e4),le(ie,"enable-memory-measurement",!1),le(ie,"pageKeyPrefix",""),ie),fi=-1,mi=-2,gi=function(){function e(t,n,i){se(this,e),le(this,"featureName",void 0),le(this,"trackingCore",void 0),le(this,"rumConfig",void 0),le(this,"observing",!1),le(this,"basePageTreeId",void 0),le(this,"startPageInstance",void 0),le(this,"startMemory",void 0),le(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return ce(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory();i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||He("unknown"),this.startMemory=i,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:ri(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();le(gi,"checkpoints",[1,3,10,30,90,180,300]);var vi,yi,bi,Ei,wi,_i=ce((function e(t,n,i){se(this,e),le(this,"webUIFramework",void 0),le(this,"timeSource",void 0),le(this,"isSinglePageApp",void 0),le(this,"appRenderMode",void 0),le(this,"isAppRenderFailed",void 0),le(this,"pageLoadMode","INITIAL"),le(this,"isSSL",void 0),le(this,"treeId",void 0),le(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),Ti=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Si=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},ki=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Ii=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Ci=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},Ai=-1,Li=function(){return"hidden"===document.visibilityState?0:1/0},Oi=function(){ki((function(e){var t=e.timeStamp;Ai=t}),!0)},Ri=function(){return Ai<0&&(Ai=Li(),Oi(),Ii((function(){setTimeout((function(){Ai=Li(),Oi()}),0)}))),{get firstHiddenTime(){return Ai}}},Ni=!1,xi=-1,Pi=function(e,t){Ni||(function(e,t){var n,i=Ri(),r=Ti("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:Si("paint",o);(s||a)&&(n=Ci(e,r,t),s&&o(s),Ii((function(i){r=Ti("FCP"),n=Ci(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){xi=e.value})),Ni=!0);var n,i=function(t){xi>-1&&e(t)},r=Ti("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],i=s[s.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>r.value&&(r.value=o,r.entries=s,n())}},c=Si("layout-shift",a);c&&(n=Ci(i,r,t),ki((function(){c.takeRecords().map(a),n(!0)})),Ii((function(){o=0,xi=-1,r=Ti("CLS",0),n=Ci(i,r,t)})))},Mi={passive:!0,capture:!0},Di=new Date,Bi=function(e,t){vi||(vi=t,yi=e,bi=new Date,Fi(removeEventListener),Ui())},Ui=function(){if(yi>=0&&yi<bi-Di){var e={entryType:"first-input",name:vi.type,target:vi.target,cancelable:vi.cancelable,startTime:vi.timeStamp,processingStart:vi.timeStamp+yi};Ei.forEach((function(t){t(e)})),Ei=[]}},qi=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Bi(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,Mi),removeEventListener("pointercancel",i,Mi)};addEventListener("pointerup",n,Mi),addEventListener("pointercancel",i,Mi)}(t,e):Bi(t,e)}},Fi=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,qi,Mi)}))},Hi=function(e,t){var n,i=Ri(),r=Ti("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=Si("first-input",o);n=Ci(e,r,t),s&&ki((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Ii((function(){var i;r=Ti("FID"),n=Ci(e,r,t),Ei=[],yi=-1,vi=null,Fi(addEventListener),i=o,Ei.push(i),Ui()}))},ji={},Gi=function(e,t){var n,i=Ri(),r=Ti("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=Si("largest-contentful-paint",o);if(s){n=Ci(e,r,t);var a=function(){ji[r.id]||(s.takeRecords().map(o),s.disconnect(),ji[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),ki(a,!0),Ii((function(i){r=Ti("LCP"),n=Ci(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,ji[r.id]=!0,n(!0)}))}))}))}},zi=["LCP","FID","CLS"],Ki={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Wi={},Vi=function(){var e;if(!cn)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Xi=!1,Qi=[],Yi={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Ji(){var e=!0===window.__test__resetWebVitalsState;if(!Xi||e){e&&(Qi=[]),zi.forEach(Zi);var t=Symbol();wi=t,[Gi,Hi,Pi].forEach((function(e){return e($i.bind(null,t),!0)})),[Gi,Hi,Pi].forEach((function(e){return e(er.bind(null,t))})),Xi=!0}}function Zi(e){Wi[e]={name:e,value:fi,updateHistory:[]};var t=Yi[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Wi[e].value=mi)}function $i(e,t){if(e===wi){var n=Wi[t.name],i=ri();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Qi.forEach((function(e){return e(t,i,!1)}))}}function er(e,t){e===wi&&Qi.forEach((function(e){return e(t,ri(),!0)}))}var tr=function(){function e(t,n){se(this,e),le(this,"basePageTreeId",void 0),le(this,"basePageKey",void 0),le(this,"observing",!1),le(this,"appContextMap",new Map),le(this,"rumConfig",void 0),le(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return ce(e,[{key:"startObserving",value:function(){var e,t,n=this;Ji(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",zi.forEach((function(e){var t;(null===(t=Wi[e])||void 0===t?void 0:t.value)===mi&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),Qi.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var i;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=this.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))}},{key:"reportMetric",value:function(e){var t=Wi[e],n={name:Ki[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=Wi[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Vi},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],s={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:oi(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,i);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1];return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:oi(o.target)}}(n,i);break;case"CLS":s=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null;i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(r.time);return o&&a?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":oi(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(s){var a={};return r(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,i,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(r)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,i){var r,o;se(this,e),le(this,"core",void 0),le(this,"config",void 0),le(this,"collector",void 0),le(this,"boomerangStart",-1),le(this,"webVitalsObserver",void 0),le(this,"appMemoryObserver",void 0),le(this,"pageMemoryObserver",void 0),le(this,"liveTokens",new Set),le(this,"stateWM",new WeakMap),le(this,"activeToken",void 0),le(this,"isInitial",void 0),le(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(i.host.api.assign({},pi),n);var s="enabled"===(null===(r=(o=this.core.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new ui(i.host.api,new _i(t,this.config,i.host),this.config,s),this.collector.startObserving(),Ze.before("internal:hide",this.beforeHideHandlerBound)}ce(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,i;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var r,o=Object.create(null),s="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=o,this.liveTokens.add(o),this.stateWM.set(o,{isInitial:this.isInitial,startTime:ii(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(i=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pemberly.tracking.rum-memory-measurement")))&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new gi("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new gi("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new tr(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var s=this.stateWM.get(e),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=ii(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=i.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else Ze.emit("internal:error",{tags:["core-web-tracking:rum:end"],reason:new Error("RUM end: rum token passed is invalid")})}},{key:"destroy",value:function(){var e,t,n;Ze.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){var i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=s-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:s},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var nr="undefined"!=typeof window&&"undefined"!=typeof performance,ir="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function rr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",or(n,t))}function or(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=f(document),i=m(document),r=ne();let o={};return r&&(o.theme=r.toUpperCase()),i&&(o.interfaceLocale=i),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function sr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!function(e){return"string"==typeof e&&"=="===e.slice(-2)}(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}!function(){function e(t,n){se(this,e),le(this,"featureKey",void 0),le(this,"productName",void 0),le(this,"endPageInstance",void 0),le(this,"startPageInstance",void 0),le(this,"isCanceled",!1),le(this,"featureIdentifier",void 0),le(this,"name",void 0),le(this,"startTime",void 0),le(this,"duration",void 0),le(this,"marks",[]),le(this,"spanStarts",new Map),le(this,"spans",[]),le(this,"isSpanContainer",!1),le(this,"basePageTreeId",void 0),le(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}ce(e,[{key:"start",value:function(e){this.startPageInstance=e,nr&&(this.startTime=ri(),ir&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){nr&&(this.marks.push({name:e,startTime:ri()}),ir&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))))}},{key:"spanStart",value:function(e){nr&&(this.spanStarts.set(e,ri()),ir&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(nr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:ri()-n}),ir&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")))}}},{key:"deleteSpan",value:function(e){if(this.isClosed)throw new Error("[rum measurement] spans can only be deleted before the feature performance measurement ends.");for(var t=this.spans.length-1;t>=0;t--)if(this.spans[t].name===e)return void this.spans.splice(t,1)}},{key:"end",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isClosed){if(this.isSpanContainer=t,this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));this.endPageInstance=e,nr&&(this.duration=ri()-this.startTime,ir&&!this.isSpanContainer&&(performance.mark("LI:".concat(this.featureIdentifier,"-end")),performance.measure("LI:".concat(this.featureIdentifier),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-end"))),this.cleanUp())}}},{key:"cancel",value:function(){this.isCanceled||(this.isCanceled=!0)}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"toEventBody",value:function(){if(nr){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||He("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(nr){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'));if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'));if(this.isSpanContainer&&0===this.spans.length)throw new Error("The span container should have at least one span");for(var e=0,t=["startTime","duration","basePageTreeId"];e<t.length;e++){var n=t[e];if(void 0===this[n])throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is missing "').concat(n,'"'))}}}},{key:"cleanUp",value:function(){this.spanStarts.clear()}}])}();const{ENTER:ar,ESCAPE:cr}=y,lr="modal",ur="modal__overlay--visible",dr="overflow-hidden",hr="top-level-modal-container";class pr{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,r&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),o&&(this._events=o),i&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=a,this._shouldHideModal=n,this._shouldMoveToTopContainer=r;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=s,i&&this._outletEls.forEach((e=>{e.addEventListener("click",(()=>this.open()))})),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",(()=>this.close())),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new D(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(hr));if(!e){const e=document.createElement("div");return e.className=hr,document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=E(e.key),n=t===ar&&document.activeElement===this._exitButtonEl;(t===cr||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add(ur),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),h(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then((e=>{rr(e,"ajax",this._pageKey||"".concat(this._el.id))})):(h(this._wrapperEl,"afterOpen"),Promise.resolve());h(this._el,"didNotOpen")}async close(){var e,t;this._events.onBeforeClose&&await(null===(e=this._events)||void 0===e||null===(t=e.onBeforeClose)||void 0===t?void 0:t.call(e,this._wrapperEl));this._overlayEl.classList.remove(ur),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),h(this._el,"close"),setTimeout((()=>{var e;(null===(e=this._focusElement)||void 0===e?void 0:e.focus())||this._previouslyFocusedEl.focus()}),50),this._focusTrap.tearDown()}noScroll(){document.body.classList.add(dr)}removeNoScroll(){document.body.classList.remove(dr)}}class fr{constructor(e){if(!e)throw Error("An element must be provided to SidePanel");this.el=e,this.modalEl=this.el.querySelector(".modal"),this.modal=new pr(this.modalEl,{events:this._events()}),this._onAfterOpen()}_onAfterOpen(){this.modalEl.addEventListener("afterOpen",(e=>{e.target.classList.remove("translate-x-full")}))}_events(){return{onBeforeClose:e=>new Promise((t=>{e.classList.add("translate-x-full"),setTimeout((()=>{t()}),330)}))}}}const mr="member-nav-header__search--focused";class gr{constructor(){const e=document.querySelector(".member-nav-menu");if(!e)throw Error("The member header should have a dropdown element");const t=document.querySelector('[data-id="member-nav-header__link-item-me"]');this.collapsibleDropdown=new z(e,{dropdownTriggerEl:t}),this.searchEl=document.querySelector('[data-id="member-nav-header__search"]'),this.searchEl&&(this.searchEl.addEventListener("focusin",(()=>this.searchEl.classList.add(mr))),this.searchEl.addEventListener("focusout",(()=>this.searchEl.classList.remove(mr)))),this.sidePanelEl=document.querySelector(".sidepanel-menu"),this.sidePanelEl&&(this.sidePanel=new fr(this.sidePanelEl))}}function vr(e,t){t=t||"log";if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}const yr=/ /g,br=/[\s\u0000<>"]|%00/,Er=/\\/,wr=/([.]|%2e){2}/i;let _r=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function Tr(e){let t,n="invalid://";if("string"!=typeof e)return vr("jSecure Warning: url must be a string","error"),n;if(t=e.trim(),t.indexOf(" ")>-1&&(vr("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(yr,"+")),!_r.test(t))return vr("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(br.test(t))return vr("jSecure Error: not valid url character found in url: "+e,"error"),n;let i,r=t.split("?")[0],o=!1;try{i=decodeURI(r)}catch(e){o=!0}return o?(vr("jSecure Error: malformed url path detected: "+r),n):Er.test(r)||wr.test(r)||wr.test(i)?(vr("jSecure Error: malicious data found in url path: "+r,"error"),n):e}const Sr={redirect(e){window&&(window.location.href=e)}};function kr(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).innerWidth<=769}function Ir(e){return e.scrollHeight>e.offsetHeight}const Cr="hidden",Ar="aria-hidden";function Lr(e,t){const n=s(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Or(e){Nr([e])}function Rr(e){xr([e])}function Nr(e){Lr(e,(e=>{e.classList.add(Cr),e.setAttribute(Ar,"true")}))}function xr(e){Lr(e,(e=>{e.classList.remove(Cr),e.setAttribute(Ar,"false")}))}function Pr(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function Mr(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Dr(){return document.documentElement.classList.contains("safari")}function Br(){return document.documentElement.classList.contains("ios")}function Ur(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=null==n?void 0:n.querySelector(".".concat(e));if(i&&Ir(i)){const r=n.querySelector(t);null==r||r.classList.remove("invisible"),null==r||r.addEventListener("click",(()=>{i.classList.remove(e),r.classList.add("invisible")}))}}var qr=Object.hasOwnProperty,Fr=Object.setPrototypeOf,Hr=Object.isFrozen,jr=Object.getPrototypeOf,Gr=Object.getOwnPropertyDescriptor,zr=Object.freeze,Kr=Object.seal,Wr=Object.create,Vr="undefined"!=typeof Reflect&&Reflect,Xr=Vr.apply,Qr=Vr.construct;Xr||(Xr=function(e,t,n){return e.apply(t,n)}),zr||(zr=function(e){return e}),Kr||(Kr=function(e){return e}),Qr||(Qr=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var Yr,Jr=ao(Array.prototype.forEach),Zr=ao(Array.prototype.pop),$r=ao(Array.prototype.push),eo=ao(String.prototype.toLowerCase),to=ao(String.prototype.match),no=ao(String.prototype.replace),io=ao(String.prototype.indexOf),ro=ao(String.prototype.trim),oo=ao(RegExp.prototype.test),so=(Yr=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qr(Yr,t)});function ao(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Xr(e,t,i)}}function co(e,t){Fr&&Fr(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=eo(i);r!==i&&(Hr(t)||(t[n]=r),i=r)}e[i]=!0}return e}function lo(e){var t=Wr(null),n=void 0;for(n in e)Xr(qr,e,[n])&&(t[n]=e[n]);return t}function uo(e,t){for(;null!==e;){var n=Gr(e,t);if(n){if(n.get)return ao(n.get);if("function"==typeof n.value)return ao(n.value)}e=jr(e)}return function(e){return console.warn("fallback value for",e),null}}var ho=zr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),po=zr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fo=zr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mo=zr(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),go=zr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),vo=zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yo=zr(["#text"]),bo=zr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Eo=zr(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),wo=zr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_o=zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),To=Kr(/\{\{[\s\S]*|[\s\S]*\}\}/gm),So=Kr(/<%[\s\S]*|[\s\S]*%>/gm),ko=Kr(/^data-[\-\w.\u00B7-\uFFFF]/),Io=Kr(/^aria-[\-\w]+$/),Co=Kr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ao=Kr(/^(?:\w+script|data):/i),Lo=Kr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Ro(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var No=function(){return"undefined"==typeof window?null:window};var xo=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:No(),n=function(t){return e(t)};if(n.version="2.3.5",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,g=uo(m,"cloneNode"),v=uo(m,"nextSibling"),y=uo(m,"childNodes"),b=uo(m,"parentNode");if("function"==typeof s){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var w=function(e,t){if("object"!==(void 0===e?"undefined":Oo(e))||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(f,i),_=w?w.createHTML(""):"",T=r,S=T.implementation,k=T.createNodeIterator,I=T.createDocumentFragment,C=T.getElementsByTagName,A=i.importNode,L={};try{L=lo(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==L;var R=To,N=So,x=ko,P=Io,M=Ao,D=Lo,B=Co,U=null,q=co({},[].concat(Ro(ho),Ro(po),Ro(fo),Ro(go),Ro(yo))),F=null,H=co({},[].concat(Ro(bo),Ro(Eo),Ro(wo),Ro(_o))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,z=null,K=!0,W=!0,V=!1,X=!1,Q=!1,Y=!1,J=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=co({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=co({},["audio","video","img","source","image","track"]),le=null,ue=co({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ge=void 0,ve=["application/xhtml+xml","text/html"],ye=void 0,be=null,Ee=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},_e=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":Oo(e))||(e={}),e=lo(e),U="ALLOWED_TAGS"in e?co({},e.ALLOWED_TAGS):q,F="ALLOWED_ATTR"in e?co({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?co(lo(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?co(lo(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?co({},e.FORBID_CONTENTS):se,G="FORBID_TAGS"in e?co({},e.FORBID_TAGS):{},z="FORBID_ATTR"in e?co({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=e.SAFE_FOR_TEMPLATES||!1,Q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge=ge=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ge?function(e){return e}:eo,X&&(W=!1),$&&(Z=!0),re&&(U=co({},[].concat(Ro(yo))),F=[],!0===re.html&&(co(U,ho),co(F,bo)),!0===re.svg&&(co(U,po),co(F,Eo),co(F,_o)),!0===re.svgFilters&&(co(U,fo),co(F,Eo),co(F,_o)),!0===re.mathMl&&(co(U,go),co(F,wo),co(F,_o))),e.ADD_TAGS&&(U===q&&(U=lo(U)),co(U,e.ADD_TAGS)),e.ADD_ATTR&&(F===H&&(F=lo(F)),co(F,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&co(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=lo(oe)),co(oe,e.FORBID_CONTENTS)),ne&&(U["#text"]=!0),Q&&co(U,["html","head","body"]),U.table&&(co(U,["tbody"]),delete G.tbody),zr&&zr(e),be=e)},Te=co({},["mi","mo","mn","ms","mtext"]),Se=co({},["foreignobject","desc","title","annotation-xml"]),ke=co({},po);co(ke,fo),co(ke,mo);var Ie=co({},go);co(Ie,vo);var Ce=function(e){$r(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Ae=function(e,t){try{$r(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){$r(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!F[e])if(Z||$)try{Ce(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var i=to(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),fe===pe?C.call(t,Q?"html":"body")[0]:Q?t.documentElement:s},Oe=function(e){return k.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Re=function(e){return"object"===(void 0===a?"undefined":Oo(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Oo(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ne=function(e,t,i){O[e]&&Jr(O[e],(function(e){e.call(n,t,i,be)}))},xe=function(e){var t,i=void 0;if(Ne("beforeSanitizeElements",e,null),(t=e)instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore))return Ce(e),!0;if(to(e.nodeName,/[\u0080-\uFFFF]/))return Ce(e),!0;var r=ye(e.nodeName);if(Ne("uponSanitizeElement",e,{tagName:r,allowedTags:U}),!Re(e.firstElementChild)&&(!Re(e.content)||!Re(e.content.firstElementChild))&&oo(/<[/\w]/g,e.innerHTML)&&oo(/<[/\w]/g,e.textContent))return Ce(e),!0;if("select"===r&&oo(/<template/i,e.innerHTML))return Ce(e),!0;if(!U[r]||G[r]){if(ne&&!oe[r]){var o=b(e)||e.parentNode,s=y(e)||e.childNodes;if(s&&o)for(var a=s.length-1;a>=0;--a)o.insertBefore(g(s[a],!0),v(e))}if(!G[r]&&Me(r)){if(j.tagNameCheck instanceof RegExp&&oo(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}return Ce(e),!0}return e instanceof c&&!function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=eo(e.tagName),i=eo(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Te[i]):Boolean(ke[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Se[i]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Se[i])return!1;if(t.namespaceURI===de&&!Te[i])return!1;var r=co({},["title","style","font","a","script"]);return!Ie[n]&&(r[n]||!ke[n])}return!1}(e)?(Ce(e),!0):"noscript"!==r&&"noembed"!==r||!oo(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(i=e.textContent,i=no(i,R," "),i=no(i,N," "),e.textContent!==i&&($r(n.removed,{element:e.cloneNode()}),e.textContent=i)),Ne("afterSanitizeElements",e,null),!1):(Ce(e),!0)},Pe=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in Ee))return!1;if(W&&!z[t]&&oo(x,t));else if(K&&oo(P,t));else if(!F[t]||z[t]){if(!(Me(e)&&(j.tagNameCheck instanceof RegExp&&oo(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&oo(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&oo(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(oo(B,no(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==io(n,"data:")||!ae[e]){if(V&&!oo(M,no(n,D,"")));else if(n)return!1}else;return!0},Me=function(e){return e.indexOf("-")>0},De=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;Ne("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(i=ro(t.value),r=ye(l),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Ae(l,e),a.keepAttr))if(oo(/\/>/i,i))Ae(l,e);else{X&&(i=no(i,R," "),i=no(i,N," "));var d=ye(e.nodeName);if(Pe(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),Zr(n.removed)}catch(e){}}}Ne("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,i=Oe(t);for(Ne("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Ne("uponSanitizeShadowNode",n,null),xe(n)||(n.content instanceof o&&e(n.content),De(n));Ne("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw so("toString is not a function");if("string"!=typeof(e=e.toString()))throw so("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Oo(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Re(e))return t.toStaticHTML(e.outerHTML)}return e}if(Y||_e(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=ye(e.nodeName);if(!U[h]||G[h])throw so("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!X&&!Q&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Le(e)))return Z?null:ee?_:""}s&&J&&Ce(s.firstChild);for(var p=Oe(ie?e:s);l=p.nextNode();)3===l.nodeType&&l===u||xe(l)||(l.content instanceof o&&Be(l.content),De(l),u=l);if(u=null,ie)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return F.shadowroot&&(d=A.call(i,d,!0)),d}var f=Q?s.outerHTML:s.innerHTML;return X&&(f=no(f,R," "),f=no(f,N," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){_e(e),Y=!0},n.clearConfig=function(){be=null,Y=!1},n.isValidAttribute=function(e,t,n){be||_e({});var i=ye(e),r=ye(t);return Pe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],$r(O[e],t))},n.removeHook=function(e){O[e]&&Zr(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}(),Po=xo;const Mo={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Do(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=J({},Mo);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Po.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Bo="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Uo=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",qo=["b","del","em","i","s","strong","sub","sup"],Fo=qo.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"]),Ho=[Bo,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|"),jo="href|src",Go="data:image/(?:gif|jpg|jpeg|png);base64,",zo="https?|ftp|mailto|invalid";function Ko(){}var Wo,Vo,Xo=(Vo=/[&<>"'\u0000\\=]/g,Wo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Vo,(function(e){return Wo[e]}))}),Qo=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",c=e[Uo],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var Yo=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Jo(e){return/[<&]/.test(e)}var Zo,$o=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)},es="[ \t\r\n]*",ts="[ \t\r\n]+";function ns(e){e=Yo(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",$o(e,(function(e,s){t=e.tags||Fo,n=e.attrs||Ho,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=es,o+="|"+ts,o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(o+="|(?:"+jo+")=([\"'])(?:(?:"+zo+")(?::|&#(?:58|x3a);)|(?:"+Go+")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")"+es+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function is(e){return ns({tags:e=e||Fo,checkUrlAttrs:!0})}function rs(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!is(n).test(e):i?!rs.R_UNSAFE_CUSTOM_ELEMENT.test(e):!rs.R_UNSAFE_HTML.test(e)}function os(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function ss(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof Ko||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Xo(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return Jo(i)&&!rs(i,n)&&(i=os(i),vr("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function as(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}rs.R_UNSAFE_HTML=is(),rs.R_UNSAFE_CUSTOM_ELEMENT=ns([{tags:Fo,checkUrlAttrs:!0},{tags:[(Zo={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Bo,Zo.attrs].join("|"),checkUrlAttrs:!1}]);var cs={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,"",""]};cs.optgroup=cs.option,cs.tbody=cs.tfoot=cs.colgroup=cs.caption=cs.thead,cs.th=cs.td;var ls=/<([\w:]+)/;function us(e,t){var n,i,r,o,s,a,c,l=t.createDocumentFragment(),u=[];for(s=0,c=e.length;s<c;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(ls.exec(o)||["",""])[1].toLowerCase(),ps(r,(i=cs[n]||cs._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);as(u,r.childNodes),(r=l.firstChild).textContent=""}else as(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var ds=ss,hs=ss;function ps(e,t,n){var i=ss(t,n);return Jo(i)?e.innerHTML=i:e[Uo]=i,i}function fs(e,t){if(!(this instanceof fs))return new fs(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}fs.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Ko,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(rs(e,this._options)||(n=e,e=os(e),vr("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var ms={ALLOWED_TAGS:Fo,FORMATTING_TAGS:qo,htmlEncode:Xo,htmlUnencode:Qo,log:vr,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof fs?r:Xo(r))})),hs(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=us([e],t);else{if(!Yo(e))return e;n=us(e,t)}return as([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ds,reEncode:function(e){return Xo(Qo(e))},_redirector:Sr,redirect:function(e){const t=Tr(e);t===e&&Sr.redirect(t)},sanitizeHTML:hs,sanitizeUrl:Tr,setElementContent:ps,text:function(e){return vr("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Xo(e)},unsafe:function(e){return e},UnsafeString:fs};function gs(e){if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")){const t=10,n=10;e.blur();let i=0;const r=window.setInterval((function(){e.focus(),i>=n&&window.clearInterval(r),i++}),t)}else e.focus()}const vs="toast--hidden",ys=".toast",bs=".toast__message",Es=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class ws{constructor(){let{removeToastCallback:e=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.getElementById("toasts");if(!t)throw new Error("No toasts element");this._el=t,this._position=t.getAttribute("type"),this.removeToastCallback=e,this.bindEvents()}trigger(e,t,n,i){if(!e||!Object.values(Es).includes(e))throw new Error("Valid type not specified: type must be caution, error, gdpr, notify or success");if(!t)throw new Error("No message specified");const r=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),o=this._createToastEl(e,t,r,i);return this._addToast(o)}clearAllToasts(){let e=this._el.querySelectorAll(ys);Array.from(e).forEach((e=>{this._removeToast(e)}))}bindEvents(){this._el.addEventListener("click",(e=>{const n=t(e.target,".toast__dismiss-btn");if(n){const e=t(n,ys);e&&this._removeToast(e)}}))}_isValidCtaMetadata(e){return["url","trk","text"].every((t=>e.hasOwnProperty(t)))}_createToastEl(e,t,n,i){const r=document.querySelector("#toast-template").content.firstElementChild.cloneNode(!0),o=document.querySelector("#toast-icon-".concat(e)).content.firstElementChild.cloneNode(!0);if(!r||!o)throw new Error("Toast templates are missing");r.classList.add("toast--".concat(e)),r.setAttribute("type",e);const s=r.querySelector(bs);s.insertBefore(o,s.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name","".concat(n,"_dismiss"));const a=r.querySelector(".toast__message-content");let l="text-color-text-neutral";if(e===Es.CAUTION?l="text-color-text-caution":e===Es.ERROR?l="text-color-text-negative":e===Es.SUCCESS&&(l="text-color-text-positive"),a.classList.add(l),Do(a,t),i&&this._isValidCtaMetadata(i)){const e=r.querySelector(".toast__message-content-container"),t=document.querySelector("#toast-cta").content.firstElementChild.cloneNode(!0),n=i.target||"_blank";t.setAttribute("href",ms.sanitizeUrl(c(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(l),e.append(t)}return r}_addToast(e){this._el.appendChild(e);const t=this._el.querySelector(bs);return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove(vs),gs(t)}),500),e}_removeToast(e){let t=this._el;e.classList.add(vs),setTimeout((()=>{e.remove(),this._hasToast()||t.classList.add("invisible"),this.removeToastCallback()}),500)}_hasToast(){return[...this._el.children].some((e=>"template"!==e.tagName.toLowerCase()))}_refreshLazyLoader(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,(e=>{e.refreshLoader()}))}}Z(ws,"TOAST_TYPES",Es);const _s={};function Ts(e){const t=document.getElementById(e);if(!t&&void 0!==_s[e])return _s[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),_s[e]=null,_s[e];let n;for(const e of t.childNodes)try{if(e.nodeType===Node.COMMENT_NODE){n=JSON.parse(e.nodeValue);break}}catch(e){}return void 0===n?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(_s[e]=n,t.parentNode.removeChild(t),_s[e])}const Ss={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Ss).map((e=>Ss[e]));const ks=["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(ks,"i");class Is{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:i=!1,hideOnScrollDown:r=!1,isBottom:o=!0,exposeStickyState:s=!1,marginApplied:a=!1,debounceDelay:c=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i&&r)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=i,this.hideOnScrollDown=r,this.isBottom=o,this.exposeStickyState=s,this._scrollListener=u(this._onScroll.bind(this),c),this.marginApplied=a,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),n((()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()}))}reactivate(){this._setupResizeListener(),this._setSpacing()}deactivate(){this._removeResizeListener(),this._resetSpacing()}_setupResizeListener(){U()||window.addEventListener("resize",this._setSpacingBound)}_removeResizeListener(){window.removeEventListener("resize",this._setSpacingBound)}_doesPageHaveEnoughScroll(){return document.body.scrollHeight>window.innerHeight+this.scrollThreshold}_setSpacing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isBottom?this._setBottomSpacing():this.hideOnScrollBack||this.hideOnScrollDown||(this._setTopSpacing(),e&&this.show())}_resetSpacing(){this.marginApplied?(document.body.style.marginTop="0px",document.body.style.marginBottom="0px"):(document.body.style.marginTop="".concat(this.originalMarginTop,"px"),document.body.style.marginBottom="".concat(this.originalMarginBottom,"px"))}_setBottomSpacing(){let e=this.el.clientHeight;document.body.style.marginBottom&&!this.marginApplied&&(e+=this.originalMarginBottom),document.body.style.marginBottom="".concat(e,"px")}_setTopSpacing(){let e=this.el.clientHeight;document.body.style.marginTop&&!this.marginApplied&&(e+=this.originalMarginTop),document.body.style.marginTop="".concat(e,"px")}show(){this.el.classList.add("show"),h(this.el,"show")}hide(){this.el.classList.remove("show"),h(this.el,"hide")}_onScroll(){const e=window.pageYOffset;e>this.scrollThreshold?(this.hideOnScrollBack||this.hideOnScrollDown||this.exposeStickyState||window.removeEventListener("scroll",this._scrollListener),this.hideOnScrollDown?this.hide():this.show(),this.exposeStickyState&&this.el.classList.add("stuck")):(this.hideOnScrollBack&&this.hide(),this.exposeStickyState&&this.el.classList.remove("stuck")),this.previousScrollPosition>e&&this.hideOnScrollDown&&this.show(),this.previousScrollPosition=e}}new Uint8Array(16);const Cs=[];for(let e=0;e<256;++e)Cs.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const As="tooltip__popup";"".concat(As,"--show");const Ls=["endpoint","headers","queryId","variables"];function Os(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={}}=e,o=$(e,Ls);const s=p(document);if(!s)throw new Error("Missing pageKey for graphQL request from browser");return K(t,J({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:s})},o))}class Rs{constructor(e,t){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return Os({endpoint:this.endpoint,queryId:n,variables:t,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then((e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)})).catch(r)}}class Ns extends Rs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Ns.query,variables:{allowedCommentersScope:e.allowedCommentersScope,text:e.text,visibility:e.visibility||"PUBLIC",reshareUrn:e.reshareUrn,attributedShareUrn:e.attributedShareUrn,articleInput:e.articleInput,imagePostInput:e.imagePostInput,attributes:e.attributes,containerEntity:e.containerEntity},successCallback:t,failureCallback:n})}}Z(Ns,"query","2849bb08e3a3bbd23c96c0e758c018b7");class xs extends Rs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:xs.query,variables:{url:e},successCallback:t,failureCallback:n})}}Z(xs,"query","bece320b5f70fe4357082fe84eca6c56");const Ps="dismissable-input",Ms="dismissable-input--focus",Ds="dismissable-input__button",Bs="dismissable-input__button--show",Us="dismissable-input__input";class qs{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Us)),this._dismissButtonEl=this.el.querySelector(".".concat(Ds)),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(Ms),this._updateDismissButton(),h(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(Bs)}_showDismissButton(){this._dismissButtonEl.classList.add(Bs)}_onInputBlur(){this.el.classList.remove(Ms)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),h(this.el,"clear")}}const Fs={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"},Hs="i18n_aria_live_text_no-suggestions",js="i18n_aria_live_text_one-suggestion",Gs="i18n_aria_live_text_multiple-suggestions",zs=500;class Ks{constructor(e,t){let{createDismissableInput:n,elementClasses:i=Fs,generateApiUrl:r,liveTextEl:o,liveTextClearTime:s=zs,onSelect:a,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:d,dropdownListEl:h,isFullPageTypeahead:p,closeOnEscape:f=!1}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=i,this._closeOnEscape=f,this._input=l||this.el.querySelector(".".concat(Us)),this._dropdownContainerEl=d||this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=h||this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=r,this._onSelect=a,this._onInput=c,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=o||this.el.querySelector(".".concat(this._elementClasses.liveText)),n&&(this.dismissableInput=new qs(this.el)),this.isFullPageTypeahead=p,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=u(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.isFullPageTypeahead&&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.isFullPageTypeahead&&this._input.removeEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler)}_isListActive(){return this._input.getAttribute("aria-owns")===this._listId&&Boolean(this._input.getAttribute("aria-expanded"))}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(!this._isListActive())return;switch(E(e.key)){case y.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case y.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case y.ESCAPE:this._closeOnEscape&&this._hideList();break;case y.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let n=null===this._highlighted.index?t:this._highlighted.index+e;n<0&&(n=this._dropdownListItemEls.length-1),n>=this._dropdownListItemEls.length&&(n=0),this._setHighlightedEl(n)}_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 K(this._generateApiUrl(e),{sendCookies:!1}).then((e=>e&&JSON.parse(e.responseText)||[]))}_getItemEl(){return document.importNode(this._typeaheadItemTemplate.content,!0)}_appendResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._hideList(),e.forEach(((e,t)=>{const n=this._getItemEl(),i=n.querySelector(".".concat(this._elementClasses.listItem)),r=i.querySelector(".".concat(this._elementClasses.dropdownText));i.id="".concat(this._input.name,"-").concat(t+1),r.textContent=e.displayName,r.dataset.id=e.id,this._dropdownListEl.appendChild(n)})),this._dropdownListItemEls=s(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 n=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText))||t.closest(".".concat(this._elementClasses.dropdownText));n&&this.el.contains(n)&&this._updateInputTo(n,e)}_updateInputTo(e,t){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e,t),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=Ts(Hs),this._liveTextOneSuggestion=Ts(js),this._liveTextMultipleSuggestions=Ts(Gs)}_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._input.setAttribute("aria-expanded",e),e&&(this._input.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}const Ws="no-scroll",Vs="fixed",Xs="show-on-mobile",Qs="hide-on-mobile",Ys="isExpanded";class Js{constructor(e,t,n){let{onCloseExpandedSearch:i=(e=>e),isMobileDevice:r=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(this.el=e,this.expandedEl=t,this.placeholderEl=n,this.isMobileDevice=r,!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=i,r&&(this.focusTrap=new D(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove(Xs),this.placeholderEl.classList.add(Qs),this.expandedEl.classList.add(Ys),document.body.classList.add(Ws),this.isIOSDevice&&(document.body.classList.add(Vs),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove(Ys),this.placeholderEl.classList.remove(Qs),this.placeholderEl.classList.add(Xs),document.body.classList.remove(Ws),this.isIOSDevice&&(document.body.classList.remove(Vs),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:n}=e,i="Escape"===t,r="INPUT"===n.tagName;i&&!r?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:n}=e;t(n,".".concat(Fs.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains(Ys)&&kr()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Zs extends Ks{constructor(e,t){let{generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:s}=t;super(e,{createDismissableInput:!0,generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:s})}}const $s={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"},ea="i18n_aria_live_text_recent-searches-one-suggestion",ta="i18n_aria_live_text_recent-searches-multiple-suggestions",na="i18n_aria_live_text_recent-searches-cleared";class ia extends Ks{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:$s,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat($s.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=s(this.dropdownContainerEl.querySelectorAll(".".concat($s.listItem))),this._clearBtnItem=e.querySelector(".".concat($s.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(Ds))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat($s.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 n=t.querySelector(".".concat($s.listItemLink));n?this._redirect(n):t.classList.contains($s.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($s.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=Ts(ea),this._liveTextMultipleSuggestions=Ts(ta),this._liveTextClearedSuggestions=Ts(na)}_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(){K(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then((()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()})).catch((e=>{throw e}))}}const ra="tab-selected",oa="hidden",sa="switcher-tabs__button",aa="switcher-tabs__tab";class ca{constructor(e,t,n){this.el=e,this.mobileTriggerEl=n,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 z(this.switcherTriggerAndTabs,{dropdownContentEl: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(oa),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.add(oa)}_handleSwitcherClick(e){if(!e.target.classList.contains(sa)&&!e.target.classList.contains(aa))return;const n=t(e.target,".".concat(aa)),i=n.querySelector(".".concat(sa)).getAttribute("data-switcher-type");i&&n&&this.currentType!==i?(this.collapsibleSwitcher.collapsible.currentListItem=n,this._switchTo(i,n)):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 n=this.el.querySelector(".".concat(ra));if(t(n,".".concat(aa))&&(n.setAttribute("aria-selected","false"),n.classList.remove(ra)),e.classList.contains(aa)){const t=e.querySelector(".".concat(sa));t.classList.add(ra),t.setAttribute("aria-selected","true")}}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(ra));e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class la{constructor(e){let{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:n,shouldSearchOnSelect:i=!0,onCloseExpandedSearch:r,includeSwitcher:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const a=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=i,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const c=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=s(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce(((e,t)=>{const n=new Js(t,this.el,this.placeholderEl,{onCloseExpandedSearch:r,isMobileDevice:c});return e[n.type]=n,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 Zs(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:a,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat($s.dropdown))&&new ia(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:a}),new Zs(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:a,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat(Ps,".search-input"))).forEach((e=>{new qs(e);e.querySelector(".".concat($s.dropdown))&&new ia(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:a})})),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(Ps))).forEach((e=>new qs(e)));o&&(this.switcher=new ca(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(){const e=this.el.querySelector(".keywords-typeahead-input input");null!=e&&e.validity.valueMissing?e.reportValidity():this.baseSearchBarFormEl&&this.baseSearchBarFormEl.submit()}_addCustomErrorStateHandler(){const e=this.el.querySelector(".keywords-typeahead-input input"),t=this.el.querySelector(".keywords-typeahead-input-helper");null==e||e.addEventListener("invalid",(n=>{n.preventDefault(),this.baseSearchBarFormEl.classList.add("input-error"),null==t||t.classList.remove("hidden"),e.focus()}))}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(p(document),"-").concat(t)})}))}))}}const ua="overlay_";class da extends pr{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into mobile web modal");super(e,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:o,focusElement:s,pageKey:a}),this.pushState=r,this.hashChangeHandlerRef=this._hashChangeHandler.bind(this)}historyBackClickHandler(){this.close({enableHistoryBack:!1})}_hashChangeHandler(e){const t=e.oldURL&&e.oldURL.split("#")[1];t&&t==="".concat(ua).concat(this._el.id)&&this.historyBackClickHandler()}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.open(e),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat(ua).concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);p(document);String.fromCharCode(32);const ha="dismiss",pa="show";class fa{constructor(e,t){let{isShown:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw Error("An element must be provided to the dismissable element");if(!t)throw Error("A dismiss button must be provided to the dismissable element");this.el=e,this.dismissBtn=t,this._dismissEvent=e=>this.dismiss(e),n&&this.show()}show(){this.el.classList.add(pa),this.el.classList.remove(ha),this.dismissBtn.addEventListener("click",this._dismissEvent),h(this.el,"show")}dismiss(e){this.el.classList.remove(pa),this.el.classList.add(ha),h(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function ma(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function ga(e){const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").length<e};return t.errorMessageSuffix="error_too_short",t}function va(e){const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").length>e};return t.errorMessageSuffix="error_too_long",t}const ya={session_key:[ma(),ga(3),va(128)],session_password:[ma(),ga(6),va(400)]};function ba(e,t){const n=ya[e];if(!n)throw new Error("No validation rules for element named ".concat(e));for(let e=0;e<n.length;e++)if(n[e](t))return n[e].errorMessageSuffix}var Ea=window||e.g;const wa=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,_a="utag_data",Ta="platform.linkedin.com",Sa="platform.linkedin-ei.com",ka="platform.linkedin.cn",Ia="platform.linkedin-ei.cn",Ca="www.linkedin-ei.com",Aa="www.linkedin.com",La="www.linkedin-ei.cn",Oa="www.linkedin.cn",Ra="utag",Na="utag_cfg_ovrd",xa="tealium",Pa="/litms/api/metadata/user",Ma="trackingEventDebugData";function Da(){const e=Ea.location?Ea.location.hostname:"";return wa.test(e)}function Ba(){return Da()?Ua()?ka:Ta:Ua()?Ia:Sa}function Ua(){const e=Ea.location?Ea.location.hostname:"";return/\.cn$/.test(e)}const qa="GET";function Fa(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.");const r=new Ea.XMLHttpRequest;r.withCredentials=i,r.open(qa,e,!0),r.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},r.send()}function Ha(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ja,Ga,za,Ka,Wa={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Va="GUEST",Xa="MEMBER",Qa=0,Ya=1,Ja=2,Za=(Ha(ja={},Va,"li_gc"),Ha(ja,Xa,"li_mc"),ja),$a=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Wa)t[o]=t[o]||Qa,t[o]!==Qa&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Ya||t[o]===Qa&&r===Ya},ec=(Ga=[Wa.ADVERTISING,Wa.ANALYTICS_AND_RESEARCH,Wa.FUNCTIONAL],za=[Qa,Ya,Ja,Qa],Ka=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(Ka);if(!n)return{error:"Invalid consent body encoding",consent:new $a};for(var i=parseInt(n[1],10),r={},o=0;o<Ga.length;o++)r[Ga[o]]=za[i>>2*o&3];var s=new Date(1e3*parseInt(n[2],10)),a=parseInt(n[3],10),c=Qa;return a>=0&&a<=3&&(c=za[a]),{error:null,consent:new $a(r,s,t,c)}}}),tc=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),nc=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},ic=function(e){var t={};for(var n in Wa)t[n]=e;return{error:null,consent:new $a(t,null,null,e)}};var rc=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,i=null;try{i=(n=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("binary"):atob(n)).match(tc)}catch(e){}if(!i)return{error:"Invalid consent encoding",consent:new $a};var r=parseInt(i[1],10),o=i[2];return 1===r?ec.parseConsentBody(o,t):{error:"Invalid encoded consent version ".concat(r),consent:new $a}},oc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=nc("liap",t)?nc(Za[Xa],t)?Xa:Va:nc(Za[Va],t)?Va:Xa),function(e,t){var n=nc(Za[e],t);return n?rc(n,e):nc(Za[Va],t)||nc(Za[Xa],t)?ic(Ja):ic(Ya)}(e,t)};function sc(e){return function(){let e=oc();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function ac(e){return function(){let e=oc();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function cc(e){return function(){let e=oc();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function lc(e){for(let t=1;t<arguments.length;t++){const n=arguments[t];if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];e[r]=n[r]}}}return e}function uc(){return/utagdb=[^;]+/.test(Ea.document.cookie)}let dc;const hc={},pc={};function fc(){return"https://".concat(Da()?Ua()?Oa:Aa:Ua()?La:Ca).concat(Pa)}function mc(){return function(e){let t=lc({},e);return t["compliance.isAdvertisingOptIn"]=sc(t),t["compliance.isAnalyticsAndResearchOptIn"]=ac(),t["compliance.isFunctionalOptIn"]=cc(),t}(hc)}function gc(e){if(!pc[e]){const t=function(e){return"https://".concat(Ba(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise(((e,n)=>{Fa(t,(t=>{e(JSON.parse(t))}),(e=>{n(e)}),!1)}));pc[e]=n}return pc[e]}Ea[_a]||(Ea[_a]={});const vc="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,yc=5;let bc;function Ec(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return function(){if(void 0===bc&&vc){const e=Ea.document.cookie.match(/litms_utag_override=([^;]+)/);bc=e?e[1]:""}return bc}().length>0?bc:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yc,n=null;"string"==typeof e&&(n="https://".concat(Ba(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(function(e){const t=new Ea.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}(t)));return n}(e,t)}function wc(e,t,n,i){e.onLoadRulesRunOnce(n);let r=lc({},t,mc());e.view(r),uc()&&Ea[Ma].push({profileName:i,eventType:"PV",trackingData:r})}function _c(e,t,n,i){e.onLoadRulesRunOnce(n);let r=lc({},t,mc());e.link(r),uc()&&Ea[Ma].push({profileName:i,eventType:"CI",trackingData:r})}function Tc(e,t,n){if(function(e){Ea[Ra]=e}(e),t instanceof Array&&t.length>0){const i=t.length;for(let r=0;r<i;r++){const i=t.shift();i.isControlInteraction?_c(e,i.data,i.callback,n):wc(e,i.data,i.callback,n)}}}function Sc(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 kc(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat(xa,",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function Ic(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:kc(e,t)}}(e,t)));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Ea[Na]=Ea[Na]||{},Ea[Ma]=Ea[Ma]||[],Ea[Na].noview=!0,Ea[Na].nocookie=!0;const Cc=vc&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Ea.navigator.userAgent),Ac={};let Lc,Oc,Rc,Nc={};class xc{constructor(){let{profileName:e,tracking2Instance:t,enableAllowlisting:n=!1,cacheBusterInterval:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableAllowlisting=n,this.cacheBusterInterval=i}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.enableAllowlisting?(this.isAllowlistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._allowlistReadyPromise=gc(this.profileName).then((e=>this._processAllowlistResult(e))).catch((e=>console.error("Unable to retrieve allowlists for profile : ".concat(this.profileName),e)))):this._loadContainerTag(e,t)})),this.profileName&&(Ac[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach((t=>this.addValuesToAllowlist(t,e[t])))}_loadContainerTag(e,t){void 0!==Ea[Ra]&&(Ea[Ra]=void 0),void 0!==Ea[_a]&&(Ea[_a]=void 0);const n=function(){if(!dc){const e=fc();dc=new Promise(((t,n)=>{Fa(e,(e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}}),(e=>{n(e)}))}))}return dc}().then((e=>{Object.keys(e).forEach((t=>{!function(e,t){const n="string"!=typeof t?"":"".concat(t,".");"object"==typeof e&&Object.keys(e).forEach((t=>{hc[n+t]=e[t]}))}(e[t],t)}))})).catch((e=>{console.error("Unable to get user settings while calling loading container tag",e)})),i=(r=Ec(this.profileName,this.cacheBusterInterval),new Promise((e=>{const t=Ea.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,Ea.document.getElementsByTagName("head")[0].appendChild(t)})));var r;Promise.all([n,i]).then((()=>{this.isContainerTagLoaded=!0,this._uTag=Ea[Ra],function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){n.call(this,arguments),t.length>0&&t.shift()()}}(this._uTag),this._processQueuedEvents();const t={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&Sc(this.tracking2Instance,t),e(t)})).catch((e=>{console.error("Unable to complete loading container tag",e),t()}))}_shouldInitialize(){return!Cc}_shouldProcessEvent(e){return Cc?Promise.resolve(!1):this.isAllowlistingEnabled?new Promise((t=>{this._allowlistReadyPromise.then((()=>{t(this._isEventAllowlisted(e))}))})):Promise.resolve(!0)}_isEventAllowlisted(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}_isEventAllowlistedByPageKey(e){return void 0!==this.allowlist.pageKey[e.pageKey]}_isEventAllowlistedByControlUrn(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}addValuesToAllowlist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach((t=>{this.allowlist[e][t]=!0}))}_processQueuedEvents(){this.isContainerTagLoaded?Tc(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=Ic(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&Sc(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){oc().consent.consentAvailable&&!Oc?this._refireTracking():Lc=setTimeout((()=>{this._checkForCookieConsent()}),2e3)}_refireTracking(){Nc.payloads&&Nc.payloads.forEach((e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)}))}_savePayloadForRefire(e,t){if(vc){Oc=!1;const{payloads:n=[],url:i}=Nc,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),Nc={url:r,payloads:s},Lc||(Lc=setTimeout((()=>{this._checkForCookieConsent()}),2e3))}}trackPageView(e,t){return oc().consent.consentAvailable||this._savePayloadForRefire(e,t),this._shouldProcessEvent(e).then((n=>{n&&(this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())}))}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then((n=>{n&&(this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())}))}}function Pc(e){let{event:t,litmsInstance:n,pageKey:i}=e;const r=t.target.getAttribute("data-tracking-control-name"),o=t.target.hasAttribute("data-tracking-litms");r&&o&&n.trackControlInteraction({controlUrn:"urn:li:control:".concat(i,"-").concat(r)})}class Mc{constructor(e){if(this.trackingInstance=e,this.pageKey=p(document),this.litmsProfileName=function(e){const t=e.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(document),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new xc({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>Pc({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||Pc({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView(){let{pageKey:e="",customParameters:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");if(!("object"==typeof t||t instanceof Object))throw new Error("CustomParamteres is expected to be an object.");const n=e||this.pageKey;this.litmsInstance&&this.litmsInstance.trackPageView(J({pageKey:n},t))}}function Dc(){try{const e={};return void 0!==window.globalThis.apfcDf&&(e.df=window.globalThis.apfcDf),JSON.stringify(e)}catch(e){return JSON.stringify({error:e.message})}}const Bc="apfc",Uc='[data-js-module-id="guest-input"]',qc='[data-js-module-id="guest-input__message"]',Fc="input-error",Hc="hidden";class jc{constructor(e){let{customValidate:t,fireTrackingOnInit:n=!0,initSuccess:i,initFailure:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to sign in form");this.el=e,this._customValidate=t,this._fireTrackingOnInit=n,this.initSuccess=i,this.initFailure=r,this.showText=Ts("i18n_sign_in_form_show_text"),this.showLabelText=Ts("i18n_sign_in_form_show_label"),this.hideText=Ts("i18n_sign_in_form_hide_text"),this.hideLabelText=Ts("i18n_sign_in_form_hide_label"),this.usernameEl=this.el.querySelector("input[name=".concat("session_key","]")),this.passwordEl=this.el.querySelector("input[name=".concat("session_password","]")),this.usernameElId=this.usernameEl.id,this.passwordElId=this.passwordEl.id,this.usernameMsgEl=this.el.querySelector("".concat(qc,'[for="').concat(this.usernameElId,'"]')),this.passwordMsgEl=this.el.querySelector("".concat(qc,'[for="').concat(this.passwordElId,'"]')),this.sessionRedirectEl=this.el.querySelector("input[name=".concat("session_redirect","]")),this.passwordVisibilityToggle=this.el.querySelector("".concat('[data-id="sign-in-form__password-visibility-toggle"]')),this.anonymousLoginToggleInput=this.el.querySelector(".anonymous-login-toggle input"),this.passwordVisibilityToggle.addEventListener("click",this._togglePasswordVisibility.bind(this)),this.el.addEventListener("submit",(e=>{if(e.preventDefault(),!this._validate()){if(this._customValidate)return this._customValidate(this.el);if(this.el.appendChild(this._createHiddenInputElement(Bc,Dc())),this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const t=this.sessionRedirectEl.value,n=l("/public-profile/settings/anonymousLogin","csrfToken",v(d("JSESSIONID")));this.sessionRedirectEl.value=l(n,"originalSessionRedirect",t);try{localStorage.setItem("voyager-web:anonymous-login",Date.now())}catch(e){}}this.el.submit()}})),window.tracking&&window.tracking.then((e=>{const t=p(document,{skipSuffix:!0}),n=t+"_login-form",i=this.el.querySelector('[data-id="sign-in-form__submit-btn"]'),r="".concat(t,"-").concat(i.dataset.trackingControlName),o=sr(e),s=this._createHiddenInputElement("pageInstance",o),a=this._createHiddenInputElement("controlId",r);this.el.appendChild(a),this.el.appendChild(s),this._fireTrackingOnInit&&this.fireTracking(e,n)}))}fireTracking(e,t){rr(e,"ajax",t),function(e){if(!Rc){if(!e)throw new Error("No trackingInstance passed in!");Rc=new Mc(e)}return Rc}(e).trackPageView({pageKey:t})}setUsernameInputValue(e){this.usernameEl.value=e}resetFormState(){this.usernameEl.value="",this.passwordEl.value="","text"===this.passwordEl.getAttribute("type")&&this._togglePasswordVisibility()}_createHiddenInputElement(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}_togglePasswordVisibility(){"password"===this.passwordEl.getAttribute("type")?(this.passwordEl.setAttribute("type","text"),this.passwordVisibilityToggle.innerText=this.hideText,this.passwordVisibilityToggle.setAttribute("aria-label",this.hideLabelText)):(this.passwordEl.setAttribute("type","password"),this.passwordVisibilityToggle.innerText=this.showText,this.passwordVisibilityToggle.setAttribute("aria-label",this.showLabelText))}_validate(){const e=ba(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(Uc).classList.add(Fc),this.usernameMsgEl.classList.remove(Hc);const t="".concat("i18n_username","_").concat(e);return this.usernameMsgEl.innerText=Ts(t),this.usernameEl.focus(),!0}this.usernameEl.closest(Uc).classList.remove(Fc),this.usernameMsgEl.classList.add(Hc);const t=ba(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(Uc).classList.add(Fc),this.passwordMsgEl.classList.remove(Hc);const e="".concat("i18n_password","_").concat(t);return this.passwordMsgEl.innerText=Ts(e),this.passwordEl.focus(),!0}this.passwordEl.closest(Uc).classList.remove(Fc),this.passwordMsgEl.classList.add(Hc)}}const Gc=30,zc="cta-modal";class Kc{constructor(e){let{daysCoolOff:t=Gc,dismissOnOutsideClick:n=!0,dismissOnScroll:i=!1,dismissBtnEl:r,coolOffKey:o=zc}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to cta modal");this.el=e,this.coolOffPeriod=24*t*60*60*1e3,this.coolOffKey=o,this.dismissBtnEl=r||this.el.querySelector(".cta-modal__dismiss-btn"),this._dismissEvent=e=>this._dismiss(e),this._interactionEvent=e=>this._interactionListener(e),this.dismissOnOutsideClick=n,this.dismissOnScroll=i,this._hideModal()?h(this.el,"didNotOpen"):(this.dismissable=new fa(this.el,this.dismissBtnEl,{isShown:!1}),this.dismissable.show(),this._addEventListeners())}_addEventListeners(){this.el.addEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.addEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.addEventListener("scroll",this._interactionEvent)}_dismiss(e){this._hardDismissal(e)&&this._setCoolOff(e),this._removeEventListeners()}_removeEventListeners(){this.el.removeEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.removeEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.removeEventListener("scroll",this._interactionEvent)}_interactionListener(e){this.el.contains(e.target)||this.dismissable.dismiss()}_setCoolOff(){try{localStorage.setItem(this.coolOffKey,Date.now())}catch(e){return""}}_hideModal(){try{const e=localStorage.getItem(this.coolOffKey);if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem(this.coolOffKey),!1)}}catch(e){return!1}}_hardDismissal(e){return e.detail&&this.dismissBtnEl.contains(e.detail.target)}}const Wc="sign-in-card";class Vc{constructor(e){let{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:r,coolOffKey:o=Wc}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to sign in card");this.el=e,this.dismissBtnEl=r;const s=this.el.querySelector('[data-id="sign-in-form"]');s&&new jc(s),this.ctaModal=new Kc(this.el,{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:this.dismissBtnEl,coolOffKey:o})}}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const Xc={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Qc={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Yc,GOOGLE_USER_FETCHED:Jc,INITIALIZED:Zc}=Xc,{INITIALIZATION:$c,AUTHENTICATION:el}=Qc;var tl={exports:{}};function nl(e){this.message=e}nl.prototype=new Error,nl.prototype.name="InvalidCharacterError";var il="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new nl("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};var rl=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(il(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return il(t)}};function ol(e){this.message=e}ol.prototype=new Error,ol.prototype.name="InvalidTokenError",tl.exports=function(e,t){if("string"!=typeof e)throw new ol("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(rl(e.split(".")[n]))}catch(e){throw new ol("Invalid token specified: "+e.message)}},tl.exports.InvalidTokenError=ol;const sl=Xc,al=Qc,{GOOGLE_USER_FETCHED:cl,GOOGLE_ERROR:ll,INITIALIZED:ul}=sl,{INITIALIZATION:dl}=al;function hl(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function pl(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function fl(e,t){return Math.round(e-t)}var ml,gl=(ml=function(e,t){return ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ml(e,t)},function(e,t){function n(){this.constructor=e}ml(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),vl=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}(),yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gl(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(vl),bl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gl(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(vl),El=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gl(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(vl),wl=function(){return 0},_l=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Tl=_l&&!!window.requestAnimationFrame,Sl={hasDOM:_l,hasRAF:Tl,getScrollTop:wl,getScrollLeft:wl,getHeight:wl,getWidth:wl,rAF:Tl?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:wl,get isDirty(){return Sl.version!==Sl.lastVersion},document:window.document,IntersectionObserver:_l&&window.IntersectionObserver,performance:_l&&window.performance};function kl(){++Sl.version}function Il(){var e=null!=document.scrollingElement;Sl.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Sl.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}_l&&(Sl.getHeight=function(){return window.innerHeight},Sl.getWidth=function(){return window.innerWidth},Sl.updateMeta=function(){Sl.meta.height=Sl.getHeight(),Sl.meta.width=Sl.getWidth(),Sl.meta.scrollLeft=Sl.getScrollLeft(),Sl.meta.scrollTop=Sl.getScrollTop(),Sl.lastVersion=Sl.version},Sl.updateMeta(),"loading"!==document.readyState?Il():document.addEventListener("DOMContentLoaded",Il),window.addEventListener("resize",kl,!1),window.addEventListener("scroll",kl,!1));var Cl=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,Sl.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var i=e.work.length;t<i;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),Al=null;var Ll=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ol="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Rl=0,Nl=function(){function e(e,t,n,i,r,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=s,this.y=a,this.top=c,this.left=l}return e.generate=function(t){void 0===t&&(t=window);var n=this.revalidateRootMeta(t);return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document);var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0};return Sl.isDirty&&Sl.updateMeta(),e===window||e===document?(n.height=Sl.meta.height,n.width=Sl.meta.width,n.scrollLeft=Sl.meta.scrollLeft,n.scrollTop=Sl.meta.scrollTop,n):(t=pl(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function xl(){return Rl+++Ol}var Pl=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Al||(Al=new Cl)),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1;else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e]);this.toRemove=[]}this.applyQueue(Nl.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,i,r=this;this.engine.scheduleRead((function(){n=pl(e),i=Nl.generate(r.root)})),this.engine.scheduleWork((function(){t(n,i)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new yl,t}return Ll(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.id;(0,n.callback)(e,i)}},t.prototype.watch=function(e){this.startTicking();var t=xl();return this.queue.push({callback:e,id:t}),t},t}(Pl),Dl=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return Ll(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Ml),Bl=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=Sl.version,r.queue=new El,r.ALLOW_CACHED_SCHEDULER=i,r}return Ll(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Sl.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.callback,r=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=pl(r)),i(e,o,s)}this.lastVersion=Sl.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||xl();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(Pl),Ul=null;var ql=function(){function e(){this.queue=new bl}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),Fl=function(){function e(e){this.scheduler=new Dl(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=Nl.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Hl=null;function jl(e,t){var n=(Hl||(Hl={scroll:new Fl((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Fl((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new ql,beforeunload:new ql,hide:new ql,show:new ql}))[e];n&&n.listen(t)}function Gl(e,t){if(Hl){var n=Hl[e];n&&n.unlisten(t)}}function zl(e,t){if(Hl){var n=Hl[e];n&&n.trigger(t)}}function Kl(e){(Ul||(Ul=new Ml)).scheduleWork(e)}function Wl(e){var t=e.left,n=e.right,i=e.top,r=e.bottom;return{left:t,x:t,top:i,y:i,bottom:r,right:n,width:n-t,height:r-i}}Sl.hasDOM&&(window.addEventListener("beforeunload",(function(){zl("beforeunload"),zl("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?zl("show"):zl("hide")})));var Vl=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new Bl(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||xl();return this.scheduler.watch(e,(function(e,i,r){t.onTick(e,i,r,n)}),n.__spanielId),i},e.prototype.onTick=function(e,t,n,i){var r=this,o=this.generateEntryEvent(e,n,i),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){r.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var i=0,r=function(e,t,n,i){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:Xl(),intersectionRatio:0,intersectionRect:Xl(),isIntersecting:!1,rootBounds:Xl(),target:n};var r=t.bottom,o=t.right,s=e.left+i.left,a=e.top+i.top,c={left:s,top:a,bottom:i.bottom,right:i.right,width:e.width-(i.right+i.left),height:e.height-(i.bottom+i.top),y:a,x:s},l=Math.max(c.left,t.left),u=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-l,h=Math.min(c.top+c.height,t.bottom)-u,p=d>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:r};return function(e){var t=e.unixTime,n=e.highResTime,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=r.height*r.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:hl({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Wl(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];r.intersectionRatio>=s&&i++}return{numSatisfiedThresholds:i,entry:r}},e}();function Xl(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Ql={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var i=t||{threshold:[]},r=i.root,o=i.rootMargin,s=i.threshold,a=i.ALLOW_CACHED_SCHEDULER,c=i.BACKGROUND_TAB_FIX,l=i.USE_NATIVE_IO,u="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:r,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!Sl.IntersectionObserver;var h=this.usingNativeIo?Sl.IntersectionObserver:Vl;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),Sl.hasDOM&&(jl("beforeunload",this.onWindowClosed),jl("hide",this.onTabHidden),jl("show",this.onTabShown),c&&(this.paused="visible"!==Sl.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),i=0;i<e.length;i++){var r=this.recordStore[e[i]].lastSeenEntry;if(r){var o=r.intersectionRatio,s=r.boundingClientRect,a=r.rootBounds,c=r.intersectionRect,l=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:l,rootBounds:a,intersectionRect:c,target:u})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((Sl.performance.timeOrigin||Sl.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:d,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:c,duration:0,visibleTime:s?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),i=performance.now();e.thresholdStates.forEach((function(r){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:i,payload:e.payload,label:r.threshold.label,threshold:r.threshold,entering:!1,rootBounds:Ql,boundingClientRect:o||Ql,intersectionRect:Ql,visibleTime:r.lastVisible.unixTime,duration:fl(i,r.lastVisible.highResTime),target:e.target},r),r.lastSatisfied=!1,r.visible=!1,r.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,i=!!t.threshold.time;t.lastSatisfied&&(!i||i&&t.visible)&&(e.duration=fl(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,i=this.recordStore[n.__spanielId];i&&(i.lastSeenEntry=e,this.paused||(i.thresholdStates.forEach((function(n){var i=!!n.threshold.time,r=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof r.isIntersecting?r.isIntersecting:hl(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var c=Number(setTimeout((function(){n.visible=!0,r.duration=fl(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,r.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(r);else t.handleThresholdExiting(r,n);n.lastEntry=e,n.lastSatisfied=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),Sl.hasDOM&&(Gl("beforeunload",this.onWindowClosed),Gl("hide",this.onTabHidden),Gl("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId];n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),Kl((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||xl();return this.recordStore[i]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),i}}();Sl.IntersectionObserver&&Sl.IntersectionObserver;const Yl="show-more-less";".".concat(Yl,"__list"),".".concat(Yl,"__more-button"),".".concat(Yl,"__less-button"),"".concat(Yl,"__list--hide-after"),"".concat(Yl,"__button--hide");const Jl="accordion-item__trigger";".".concat(Jl);const Zl=350,$l="sticky-header--disabled",eu="body--sticky-header-disabled";class tu{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".".concat("sticky-header")),{marginApplied:t=!0,disableUnderMinimumViewportHeight:n=!1,minimumViewportHeight:i=Zl}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("A header element is required to instantiate a StickyHeader");if(!e.querySelector("nav"))throw Error("The header must contain a 'nav' element in order to instantiate a StickyHeader");let r=8;if(kr()){const t=e.querySelector(".search-bar");t&&(r=t.getBoundingClientRect().height)}return this.stickyHeader=e,this.stickyElementOptions={exposeStickyState:!0,isBottom:!1,marginApplied:t,scrollThreshold:r},n&&i>0?this.setupDisableUnderMinimumViewportHeight(i):this.instantiateStickyElement(),this.stickyElement}instantiateStickyElement(){!0===Ts("isClsFixActive")||document.body.classList.add("body--sticky-header"),this.stickyElement=new Is(this.stickyHeader,this.stickyElementOptions)}setupDisableUnderMinimumViewportHeight(e){const t="(min-height: ".concat(e,"px)"),n=window.matchMedia(t);n.addEventListener("change",this.handleMediaQueryChange.bind(this)),this.handleMediaQueryChange(n)}handleMediaQueryChange(e){var t;e.matches?(this.stickyHeader.classList.remove($l),document.body.classList.remove(eu),this.stickyElement?this.stickyElement.reactivate():this.instantiateStickyElement()):(this.stickyHeader.classList.add($l),document.body.classList.add(eu),null===(t=this.stickyElement)||void 0===t||t.deactivate())}}function nu(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}nu("action"),nu("openpage"),nu("openlink");const iu="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var ru;!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(ru||(ru={}));const ou=new Set(Object.values(ru));class su extends Error{constructor(e){super(e),Object.setPrototypeOf(this,su.prototype)}}function au(e){return 0===e.length||!e.trim()}function cu(e){if("string"!=typeof e)throw new su("Keys must be strings. ".concat(iu,"."));if(au(e))throw new su("Keys should not be blank. ".concat(iu,"."));if(/[^a-z0-9-]/.test(e))throw new su("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(iu,"."));return e}class lu{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=cu(e),this._defaultDegradationKey=cu(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new su("DegradationTrackingMetadata options should be an object. ".concat(iu,"."));const s=n.productName;s&&(this._productName=function(e){if("string"!=typeof e)throw new su("The product name must be a string. ".concat(iu,"."));if(au(e))throw new su("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(iu,"."));if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new su("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(iu,"."));return e}(s));const a=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes;!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new su("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(iu,"."));var n;if(429===e||999===e)throw new su("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(t," options."));if(t===ru.NonDegradedResponseCodes&&e>=400&&e<500)throw new su("For server responses that have a status code, PEM does not consider 4xx as degraded. ".concat(e," is not ")+"considered a degradation unless you explicitly add it to the ".concat(ru.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat(ru.NonDegradedResponseCodes," option. ")+"".concat(iu,"."))};if(void 0!==e&&!Array.isArray(e))throw new su("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(ru.NonDegradedResponseCodes," option. ")+"".concat(iu,"."));if(void 0!==t&&!Array.isArray(t))throw new su("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat(ru.AdditionalDegradedResponseCodes," option. ").concat(iu,"."));null==e||e.forEach((e=>n(e,ru.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,ru.AdditionalDegradedResponseCodes)));const i=new Set(t),r=new Set(e);if([...i].some((e=>r.has(e))))throw new su("Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes "+"don't have any overlapping response codes. ".concat(iu,"."))}(c,a),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=a||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach((e=>{if(!ou.has(e))throw new su("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(iu))}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(lu.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}const uu="linkedin://";function du(e){var t;null===(t=window.appDetection)||void 0===t||t.then((t=>{t.some((e=>"windows"===(null==e?void 0:e.platform)&&"7EE7776C.LinkedInforWindows_w1wdnht996qgy!App"===(null==e?void 0:e.id)))&&e()}))}const hu=10,pu="sign-in-modal-cool-off-hidden";class fu{constructor(e){let{minutesCoolOff:t=hu,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into to sign in modal");this.el=e,this.coolOffEnabled=this.el.hasAttribute("data-cool-off-enabled"),this.coolOffPeriod=60*t*1e3,this.modalEl=this.el.querySelector(".".concat(lr));const i=this.el.querySelector('[data-id="sign-in-form"]');i&&(this.signInForm=new jc(i,{fireTrackingOnInit:!1})),this.modal=new pr(this.modalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n}),this.modalEl.addEventListener("close",(()=>{this._setCoolOff()}))}_shouldHideModal(){if(!this.coolOffEnabled)return!1;try{const e=localStorage.getItem(pu);if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem(pu),!1)}}catch(e){return!1}}_setCoolOff(){if(this.coolOffEnabled&&!this._shouldHideModal())try{localStorage.setItem(pu,Date.now())}catch(e){return""}}}var mu={exports:{}};(function(e){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e,t,n){return d=u()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&l(r,n.prototype),r},d.apply(null,arguments)}function h(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||!h(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},p(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function g(e){return function(){var t,n=c(e);if(u()){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return m(this,t)}}function v(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function y(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function b(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}window.CustomEvent=e})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}var e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();var E="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",w={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},_="https://accounts.google.com",T={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},S={INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},k={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},I={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},C={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"}},A="com.linkedin.LinkedIn.service",L="https://www.linkedin.com/redirect",O="https://www.linkedin-ei.com/redirect",R={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},N={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},x=w.GOOGLE_ERROR,P=w.GOOGLE_USER_FETCHED,M=w.INITIALIZED,D=T.INITIALIZATION,B=T.AUTHENTICATION,U=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?E:a;if(t(this,r),i=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=s,i.clientId=c,window.gapi)i._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");v((function(){y(o,i._initializeGoogleAuth.bind(f(i)))}))}return i}return i(r,[{key:"_initializeGoogleAuth",value:function(){var e=this;return gapi.auth2.init({client_id:this.clientId}).then((function(t){e.auth2=t,e._attachSignIn();var n=new CustomEvent(M);e.dispatchEvent(n)})).catch((function(t){var n={type:D,message:t.error},i=new CustomEvent(x,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(P,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:B,message:t.error},i=new CustomEvent(x,{detail:n});e.dispatchEvent(i)}))}},{key:"_getGoogleUserInformation",value:function(e){var t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}]),r}(p(EventTarget)),q=w.GOOGLE_USER_FETCHED,F=w.PROMPT_MOMENT,H=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?E:u,h=e.cancelOnTapOutside,p=void 0===h||h;if(t(this,r),i=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(i.autoSelect=s,i.libSrcPath=a,i.containerId=c,i.cancelOnTapOutside=p,i.clientId=d,i.context=l,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(a,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return google.accounts.id.initialize({auto_select:this.autoSelect,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((function(){return e.promptOneTap()}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===k.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(q,{detail:n});this.dispatchEvent(i)}}},{key:"_getBasicProfile",value:function(e){try{var 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}}},{key:"_dispatchSkippedEvent",value:function(e){var t={message:e,reason:C.SKIPPED.ISSUING_FAILED,type:I.SKIPPED},n=new CustomEvent(F,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(F,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}},{key:"hideOneTap",value:function(){google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),j={exports:{}},G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function z(e){this.message=e}function K(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new z("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i=G.indexOf(i);return s}z.prototype=new Error,z.prototype.name="InvalidCharacterError";var W="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||K,V=W;function X(e){return decodeURIComponent(V(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}var Q=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return X(t)}catch(e){return V(t)}},Y=Q;function J(e){this.message=e}J.prototype=new Error,J.prototype.name="InvalidTokenError",j.exports=function(e,t){if("string"!=typeof e)throw new J("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Y(e.split(".")[n]))}catch(e){throw new J("Invalid token specified: "+e.message)}},j.exports.InvalidTokenError=J;var Z=j.exports,$=w.GOOGLE_USER_FETCHED,ee=w.PROMPT_MOMENT,te=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?E:u,h=e.context,p=void 0===h?"signin":h,m=e.gsiButtonConfig,g=void 0===m?{}:m,w=e.libSrcPath,_=e.hasContentAbove,T=void 0!==_&&_,S=e.promptParentId,k=e.showOneTap,I=void 0===k||k;if(t(this,r),(i=n.call(this)).autoSelect=s,i.buttonParentEl=a,i.cancelOnTapOutside=l,i.clientId=d,i.context=p,i.gsiButtonConfig=g,i.isLibraryLoaded=b(),i.libSrcPath=w,i.hasContentAbove=T,i.promptParentId=S,i.showOneTap=I,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!w)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(w,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),window.google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.promptParentId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:N[this.context].GOT}),Promise.resolve().then((function(){return e.showGsiUI()}))}},{key:"showGsiUI",value:function(){this.buttonParentEl&&this.renderGSIButton(this.buttonParentEl,this.gsiButtonConfig),this.showOneTap&&this.promptOneTap()}},{key:"renderGSIButton",value:function(e,t){var n=this,i=t.locale,r=void 0===i?"en_US":i,o=t.logo_alignment,s=void 0===o?"center":o,a=t.shape,c=void 0===a?"pill":a,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,m=void 0===f?"400px":f;return this.isLibraryLoaded.then((function(){var t=d||N[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:s,shape:c,size:u,text:t,theme:h,type:p,width:m})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(ee,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=Z(t),r=s({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(r){var o=new CustomEvent($,{detail:r});this.dispatchEvent(o)}}},{key:"_getBasicProfile",value:function(e){return{email:e.email,familyName:e.family_name,givenName:e.given_name,id:e.sub,imageUrl:e.picture}}},{key:"hideOneTap",value:function(){window.google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),ne=R.DISMISSED,ie=R.INITIALIZED,re=R.SNAPPLE_USER_FETCHED,oe=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?A:a,l=e.redirectURI;if(t(this,r),i=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(i.libSrcPath=o,i.clientId=c,i.redirectURI=i._getRedirectURL(l),i.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)i._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(o,i._onSnappleLibLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onSnappleLibLoad",value:function(){window.AppleID.auth.init({clientId:this.clientId,scope:"name email",redirectURI:this.redirectURI,usePopup:!0});var e=new CustomEvent(ie);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent(re,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(ne,{detail:{type:ne,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?L:O}}]),r}(p(EventTarget)),se={CLIENT_ID:E,EVENTS:w,GOOGLE_ACCOUNT_URL:_,GSI_ERROR_TYPES:T,GSI_ERROR_MESSAGES:S,GOT_CONTEXTS:k,GOT_PROMPT_MOMENT_REASONS:C,GOT_PROMPT_MOMENT_TYPES:I};e.GoogleGsi=te,e.GoogleOneTap=H,e.GoogleSignIn=U,e.GoogleSignInConstants=se,e.SnappleAuth=oe,e.SnappleEvents=R,Object.defineProperty(e,"__esModule",{value:!0})})(mu.exports);const{EVENTS:gu,GOT_CONTEXTS:vu,GOT_PROMPT_MOMENT_REASONS:yu,GOT_PROMPT_MOMENT_TYPES:bu}=mu.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:Eu,PROMPT_MOMENT:wu}=gu,{SIGN_IN:_u}=vu;yu.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,yu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,yu.NOT_DISPLAYED.SUPPRESSED_BY_USER,yu.SKIPPED.AUTO_CANCEL,yu.SKIPPED.TAP_OUTSIDE,yu.SKIPPED.USER_CANCEL;class Tu{constructor(e){if(!e)throw Error("An element must be provided to TopNavMenu");this.el=e,du(this.updateDeeplink.bind(this))}updateDeeplink(){const e=this.el.querySelector(".top-nav-link[data-tracking-control-name$=_windows]");e&&e.setAttribute("href",uu)}}class Su{constructor(e){let{searchBarOptions:t,signInCardOptions:n,signInModalOptions:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to Nav");this.el=e;const r=this.el.querySelector(".search-bar");r&&new la(r,t);const o=this.el.querySelector(".sign-in-card");o&&new Vc(o,n);const s=this.el.querySelector(".sign-in-modal");s&&new fu(s,i);const a=this.el.querySelector(".top-nav-menu");a&&new Tu(a)}}class ku{constructor(){let{typeaheadApiBaseUrl:e,stickyHeaderOptions:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=document.querySelector(".search-bar");n&&(this.searchBar=new la(n,{typeaheadApiBaseUrl:e}));const i=document.querySelector(".language-selector");i&&(this.languageSelector=new W(i));document.querySelector(".sticky-header")&&new tu(void 0,t),document.querySelector(".member-nav-menu")&&new gr;const r=document.querySelector(".nav");r&&new Su(r)}}const Iu="filter-values-container__filter-value";".".concat(Iu," input"),".".concat(Iu," input[type=radio]:checked");class Cu{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!0,focusElement:s,pageKey:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw new Error("No element passed into to dialog modal");this.el=e,this.modalEl=this.el.querySelector(".".concat(lr)),this.modal=new da(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:s,pageKey:a}),this._onPrimaryActionClick=t,this.primaryActionBtn=this.el.querySelector(".primary-action"),this.secondaryActionBtn=this.el.querySelector(".secondary-action"),n&&(this._onSecondaryActionClick=n),this.el.querySelector(".dialog-actions").addEventListener("click",this._actionHandler.bind(this))}_actionHandler(e){const t=e.target;if(this.primaryActionBtn&&this.primaryActionBtn.contains(t)){if(this.primaryActionBtn.disabled)return;this._onPrimaryActionClick&&this._onPrimaryActionClick(e)}else this.secondaryActionBtn&&this.secondaryActionBtn.contains(t)&&this._onSecondaryActionClick&&this._onSecondaryActionClick(e);this.modal.close()}}function Au(e){let{featureName:t,featureMappingToDegradationConfig:n,productName:i}=e;return n[t].map((e=>function(e,t,n){const{degradationKey:i,trackedResponseCodes:r,untrackedResponseCodes:o}=n,s=e;let a={productName:t};return r?a=J(J({},a),{},{trackedResponseCodes:r}):o&&(a=J(J({},a),{},{untrackedResponseCodes:o})),new lu(s,i,a)}(t,i,e)))}class Lu extends Rs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Lu.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Z(Lu,"query","20f8e9934e7df62932fd167d87c19b27");var Ou=function(){this.__data__=[],this.size=0};var Ru=function(e,t){return e===t||e!=e&&t!=t},Nu=Ru;var xu=function(e,t){for(var n=e.length;n--;)if(Nu(e[n][0],t))return n;return-1},Pu=xu,Mu=Array.prototype.splice;var Du=function(e){var t=this.__data__,n=Pu(t,e);return!(n<0)&&(n==t.length-1?t.pop():Mu.call(t,n,1),--this.size,!0)},Bu=xu;var Uu=function(e){var t=this.__data__,n=Bu(t,e);return n<0?void 0:t[n][1]},qu=xu;var Fu=xu;var Hu=function(e,t){var n=this.__data__,i=Fu(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},ju=Ou,Gu=Du,zu=Uu,Ku=function(e){return qu(this.__data__,e)>-1},Wu=Hu;function Vu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Vu.prototype.clear=ju,Vu.prototype.delete=Gu,Vu.prototype.get=zu,Vu.prototype.has=Ku,Vu.prototype.set=Wu;var Xu=Vu,Qu=Xu;var Yu=function(){this.__data__=new Qu,this.size=0};var Ju=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Zu=function(e){return this.__data__.get(e)};var $u=function(e){return this.__data__.has(e)},ed="object"==typeof V&&V&&V.Object===Object&&V,td=ed,nd="object"==typeof self&&self&&self.Object===Object&&self,id=td||nd||Function("return this")(),rd=id.Symbol,od=rd,sd=Object.prototype,ad=sd.hasOwnProperty,cd=sd.toString,ld=od?od.toStringTag:void 0;var ud=function(e){var t=ad.call(e,ld),n=e[ld];try{e[ld]=void 0;var i=!0}catch(e){}var r=cd.call(e);return i&&(t?e[ld]=n:delete e[ld]),r},dd=Object.prototype.toString;var hd=ud,pd=function(e){return dd.call(e)},fd=rd?rd.toStringTag:void 0;var md=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fd&&fd in Object(e)?hd(e):pd(e)};var gd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},vd=md,yd=gd;var bd,Ed=function(e){if(!yd(e))return!1;var t=vd(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},wd=id["__core-js_shared__"],_d=(bd=/[^.]+$/.exec(wd&&wd.keys&&wd.keys.IE_PROTO||""))?"Symbol(src)_1."+bd:"";var Td=function(e){return!!_d&&_d in e},Sd=Function.prototype.toString;var kd=function(e){if(null!=e){try{return Sd.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Id=Ed,Cd=Td,Ad=gd,Ld=kd,Od=/^\[object .+?Constructor\]$/,Rd=Function.prototype,Nd=Object.prototype,xd=Rd.toString,Pd=Nd.hasOwnProperty,Md=RegExp("^"+xd.call(Pd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Dd=function(e){return!(!Ad(e)||Cd(e))&&(Id(e)?Md:Od).test(Ld(e))},Bd=function(e,t){return null==e?void 0:e[t]};var Ud=function(e,t){var n=Bd(e,t);return Dd(n)?n:void 0},qd=Ud(id,"Map"),Fd=Ud(Object,"create"),Hd=Fd;var jd=function(){this.__data__=Hd?Hd(null):{},this.size=0};var Gd=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zd=Fd,Kd=Object.prototype.hasOwnProperty;var Wd=function(e){var t=this.__data__;if(zd){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Kd.call(t,e)?t[e]:void 0},Vd=Fd,Xd=Object.prototype.hasOwnProperty;var Qd=Fd;var Yd=jd,Jd=Gd,Zd=Wd,$d=function(e){var t=this.__data__;return Vd?void 0!==t[e]:Xd.call(t,e)},eh=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qd&&void 0===t?"__lodash_hash_undefined__":t,this};function th(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}th.prototype.clear=Yd,th.prototype.delete=Jd,th.prototype.get=Zd,th.prototype.has=$d,th.prototype.set=eh;var nh=th,ih=Xu,rh=qd;var oh=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var sh=function(e,t){var n=e.__data__;return oh(t)?n["string"==typeof t?"string":"hash"]:n.map},ah=sh;var ch=sh;var lh=sh;var uh=sh;var dh=function(){this.size=0,this.__data__={hash:new nh,map:new(rh||ih),string:new nh}},hh=function(e){var t=ah(this,e).delete(e);return this.size-=t?1:0,t},ph=function(e){return ch(this,e).get(e)},fh=function(e){return lh(this,e).has(e)},mh=function(e,t){var n=uh(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function gh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}gh.prototype.clear=dh,gh.prototype.delete=hh,gh.prototype.get=ph,gh.prototype.has=fh,gh.prototype.set=mh;var vh=Xu,yh=qd,bh=gh;var Eh=Xu,wh=Yu,_h=Ju,Th=Zu,Sh=$u,kh=function(e,t){var n=this.__data__;if(n instanceof vh){var i=n.__data__;if(!yh||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new bh(i)}return n.set(e,t),this.size=n.size,this};function Ih(e){var t=this.__data__=new Eh(e);this.size=t.size}Ih.prototype.clear=wh,Ih.prototype.delete=_h,Ih.prototype.get=Th,Ih.prototype.has=Sh,Ih.prototype.set=kh;var Ch=Ih,Ah=Ud,Lh=function(){try{var e=Ah(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Oh=Lh,Rh=Oh;var Nh=function(e,t,n){"__proto__"==t&&Rh?Rh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},xh=Nh,Ph=Ru;var Mh=function(e,t,n){(void 0!==n&&!Ph(e[t],n)||void 0===n&&!(t in e))&&xh(e,t,n)};var Dh=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}},Bh=Dh(),Uh={exports:{}};!function(e,t){var n=id,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}(Uh,Uh.exports);var qh=id.Uint8Array;var Fh=function(e){var t=new e.constructor(e.byteLength);return new qh(t).set(new qh(e)),t};var Hh=function(e,t){var n=t?Fh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var jh=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Gh=gd,zh=Object.create,Kh=function(){function e(){}return function(t){if(!Gh(t))return{};if(zh)return zh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Wh=function(e,t){return function(n){return e(t(n))}},Vh=Wh(Object.getPrototypeOf,Object),Xh=Object.prototype;var Qh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Xh)},Yh=Kh,Jh=Vh,Zh=Qh;var $h=function(e){return"function"!=typeof e.constructor||Zh(e)?{}:Yh(Jh(e))};var ep=function(e){return null!=e&&"object"==typeof e},tp=md,np=ep;var ip=function(e){return np(e)&&"[object Arguments]"==tp(e)},rp=ep,op=Object.prototype,sp=op.hasOwnProperty,ap=op.propertyIsEnumerable,cp=ip(function(){return arguments}())?ip:function(e){return rp(e)&&sp.call(e,"callee")&&!ap.call(e,"callee")},lp=Array.isArray;var up=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},dp=Ed,hp=up;var pp=function(e){return null!=e&&hp(e.length)&&!dp(e)},fp=pp,mp=ep;var gp=function(e){return mp(e)&&fp(e)},vp={exports:{}};var yp=function(){return!1};!function(e,t){var n=id,i=yp,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||i;e.exports=a}(vp,vp.exports);var bp=md,Ep=Vh,wp=ep,_p=Function.prototype,Tp=Object.prototype,Sp=_p.toString,kp=Tp.hasOwnProperty,Ip=Sp.call(Object);var Cp=function(e){if(!wp(e)||"[object Object]"!=bp(e))return!1;var t=Ep(e);if(null===t)return!0;var n=kp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Sp.call(n)==Ip},Ap=md,Lp=up,Op=ep,Rp={};Rp["[object Float32Array]"]=Rp["[object Float64Array]"]=Rp["[object Int8Array]"]=Rp["[object Int16Array]"]=Rp["[object Int32Array]"]=Rp["[object Uint8Array]"]=Rp["[object Uint8ClampedArray]"]=Rp["[object Uint16Array]"]=Rp["[object Uint32Array]"]=!0,Rp["[object Arguments]"]=Rp["[object Array]"]=Rp["[object ArrayBuffer]"]=Rp["[object Boolean]"]=Rp["[object DataView]"]=Rp["[object Date]"]=Rp["[object Error]"]=Rp["[object Function]"]=Rp["[object Map]"]=Rp["[object Number]"]=Rp["[object Object]"]=Rp["[object RegExp]"]=Rp["[object Set]"]=Rp["[object String]"]=Rp["[object WeakMap]"]=!1;var Np=function(e){return Op(e)&&Lp(e.length)&&!!Rp[Ap(e)]};var xp=function(e){return function(t){return e(t)}},Pp={exports:{}};!function(e,t){var n=ed,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(Pp,Pp.exports);var Mp=Np,Dp=xp,Bp=Pp.exports,Up=Bp&&Bp.isTypedArray,qp=Up?Dp(Up):Mp;var Fp=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Hp=Nh,jp=Ru,Gp=Object.prototype.hasOwnProperty;var zp=function(e,t,n){var i=e[t];Gp.call(e,t)&&jp(i,n)&&(void 0!==n||t in e)||Hp(e,t,n)},Kp=Nh;var Wp=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?Kp(n,a,c):zp(n,a,c)}return n};var Vp=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Xp=/^(?:0|[1-9]\d*)$/;var Qp=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Xp.test(e))&&e>-1&&e%1==0&&e<t},Yp=Vp,Jp=cp,Zp=lp,$p=vp.exports,ef=Qp,tf=qp,nf=Object.prototype.hasOwnProperty;var rf=function(e,t){var n=Zp(e),i=!n&&Jp(e),r=!n&&!i&&$p(e),o=!n&&!i&&!r&&tf(e),s=n||i||r||o,a=s?Yp(e.length,String):[],c=a.length;for(var l in e)!t&&!nf.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ef(l,c))||a.push(l);return a};var of=gd,sf=Qh,af=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},cf=Object.prototype.hasOwnProperty;var lf=rf,uf=function(e){if(!of(e))return af(e);var t=sf(e),n=[];for(var i in e)("constructor"!=i||!t&&cf.call(e,i))&&n.push(i);return n},df=pp;var hf=function(e){return df(e)?lf(e,!0):uf(e)},pf=Wp,ff=hf;var mf=Mh,gf=Uh.exports,vf=Hh,yf=jh,bf=$h,Ef=cp,wf=lp,_f=gp,Tf=vp.exports,Sf=Ed,kf=gd,If=Cp,Cf=qp,Af=Fp,Lf=function(e){return pf(e,ff(e))};var Of=Ch,Rf=Mh,Nf=Bh,xf=function(e,t,n,i,r,o,s){var a=Af(e,n),c=Af(t,n),l=s.get(c);if(l)mf(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=wf(c),p=!h&&Tf(c),f=!h&&!p&&Cf(c);u=c,h||p||f?wf(a)?u=a:_f(a)?u=yf(a):p?(d=!1,u=gf(c,!0)):f?(d=!1,u=vf(c,!0)):u=[]:If(c)||Ef(c)?(u=a,Ef(a)?u=Lf(a):kf(a)&&!Sf(a)||(u=bf(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),mf(e,n,u)}},Pf=gd,Mf=hf,Df=Fp;var Bf=function e(t,n,i,r,o){t!==n&&Nf(n,(function(s,a){if(o||(o=new Of),Pf(s))xf(t,n,a,i,e,r,o);else{var c=r?r(Df(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),Rf(t,a,c)}}),Mf)};var Uf=function(e){return e};var qf=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Ff=qf,Hf=Math.max;var jf=function(e,t,n){return t=Hf(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=Hf(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(s),Ff(e,this,a)}};var Gf=function(e){return function(){return e}},zf=Oh,Kf=zf?function(e,t){return zf(e,"toString",{configurable:!0,enumerable:!1,value:Gf(t),writable:!0})}:Uf,Wf=Kf,Vf=Date.now;var Xf=function(e){var t=0,n=0;return function(){var i=Vf(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Qf=Xf(Wf),Yf=Uf,Jf=jf,Zf=Qf;var $f=function(e,t){return Zf(Jf(e,t,Yf),e+"")},em=Ru,tm=pp,nm=Qp,im=gd;var rm=function(e,t,n){if(!im(n))return!1;var i=typeof t;return!!("number"==i?tm(n)&&nm(t,n.length):"string"==i&&t in n)&&em(n[t],e)},om=$f,sm=rm;var am=function(e){return om((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&sm(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++i<r;){var a=n[i];a&&e(t,a,i,o)}return t}))},cm=Bf;am((function(e,t,n){cm(e,t,n)}));function lm(e){const t=e.getBoundingClientRect();let{top:n,left:i}=t;const{right:r,bottom:o,width:s,height:a,x:c,y:l}=t;return n+=document.documentElement.scrollTop||document.body.scrollTop,i+=document.documentElement.scrollLeft||document.body.scrollLeft,{top:n,right:r,bottom:o,left:i,width:s,height:a,x:c,y:l}}function um(e,t,n){const i=lm(e),r=lm(t),o=lm(n),s=i.top-o.top-n.clientTop-r.height+i.height,a=i.left-o.left-n.clientLeft-r.width+i.width;return{boundingCoordinates:i,elementCoordinates:r,elemOffsetParentCoordinates:o,topMinLimit:s,leftMinLimit:a,elemTop:r.top-o.top,elemLeft:r.left-o.left,topMaxLimit:s-i.height+r.height,leftMaxLimit:a-i.width+r.width}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const dm="data-draggable-initialized",hm="touchstart",pm="touchmove",fm="touchend";class mm{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid draggable element");if(this.draggableElementEl=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParentEl=e.boundingParent}else this.boundingParentEl=document.body;mm.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(hm,t),this.draggableElementEl.setAttribute(dm,!0)}dragElement(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r={top:n>0?Math.min(e.topMaxLimit,e.elemTop+n):Math.max(e.topMinLimit,e.elemTop+n),left:t>0?Math.min(e.leftMaxLimit,e.elemLeft+t):Math.max(e.leftMinLimit,e.elemLeft+t)};this.draggableElementEl.style.left="".concat(r.left,"px"),this.draggableElementEl.style.top="".concat(r.top,"px"),this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-r.left-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-r.top-e.elemOffsetParentCoordinates.top,i)}onTouchMove(e){const t=!!e.touches;if(e.preventDefault(),this.isMoving||(this.isMoving=!0),t&&1===e.touches.length){const t=e.touches[0].clientX-this._startClientX,n=e.touches[0].clientY-this._startClientY;this.dragElement.call(this,this.limits,t,n)}}onTouchStart(e){this.limits=um(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),this.isMoving=!1;const t=this.onTouchMove.bind(this),n=!!e.touches;this._startClientX=n?e.touches[0].clientX:e.clientX,this._startClientY=n?e.touches[0].clientY:e.clientY,e.preventDefault(),document.addEventListener(pm,t),document.addEventListener(fm,(function e(){document.removeEventListener(pm,t),document.removeEventListener(fm,e)}))}moveTo(e,t){const n=um(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),i=e+n.boundingCoordinates.left-n.elementCoordinates.left,r=t+n.boundingCoordinates.top-n.elementCoordinates.top;this.dragElement.call(this,n,i,r,!1)}}mm.isDraggable=function(e){return!!e.getAttribute(dm)};const gm="data-zoomable-initialized",vm="touchstart",ym="touchmove",bm="touchend";class Em{constructor(e){const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid zoomable element");if(!(e.scaleElement&&e.scaleElement instanceof Function))throw new Error("pass valid function to scale element");if(!(e.getMinDimensions&&e.getMinDimensions instanceof Function))throw new Error("pass valid function to get minimum dimensions");if(this.zoomableElement=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParent=e.boundingParent}else this.boundingParent=document.body;Em.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(vm,t),this.zoomableElement.setAttribute(gm,!0))}scaleElement(e,t){if(1===e)return;this.limits=um(this.boundingParent,this.zoomableElement,this.zoomableElement.offsetParent);let n=this.limits.elementCoordinates.width*e,i=this.limits.elementCoordinates.height*e;if(n<this.limits.boundingCoordinates.width||i<this.limits.boundingCoordinates.height){const t=this.options.getMinDimensions();i=t.height,n=t.width,e=i/this.limits.elementCoordinates.height}let r=this.limits.elemLeft-(t.clientX-this.limits.elementCoordinates.left)*(e-1),o=this.limits.elemTop-(t.clientY-this.limits.elementCoordinates.top)*(e-1);const s=this.limits.leftMinLimit-this.zoomableElement.offsetWidth*(e-1),a=this.limits.leftMaxLimit,c=this.limits.topMinLimit-this.zoomableElement.offsetHeight*(e-1),l=this.limits.topMaxLimit;r<s?r=s:r>a&&(r=a),o<c?o=c:o>l&&(o=l),this.options.scaleElement(n,i,this.limits.boundingCoordinates.left-r-this.limits.elemOffsetParentCoordinates.left,this.limits.boundingCoordinates.top-o-this.limits.elemOffsetParentCoordinates.top),this.zoomableElement.style.left="".concat(r,"px"),this.zoomableElement.style.top="".concat(o,"px")}onTouchMove(e){if(e.preventDefault(),2===e.touches.length){const t=Math.sqrt((e.touches[0].clientX-e.touches[1].clientX)*(e.touches[0].clientX-e.touches[1].clientX)+(e.touches[0].clientY-e.touches[1].clientY)*(e.touches[0].clientY-e.touches[1].clientY));if(this._startDistance>0){const n=t/this._startDistance,i=e.touches[0];this.scaleElement.call(this,n,i)}this._startDistance=t}}onTouchStart(e){e.preventDefault();const t=this.onTouchMove.bind(this);2===e.touches.length?this._startDistance=Math.sqrt((e.touches[0].x-e.touches[1].x)*(e.touches[0].x-e.touches[1].x)+(e.touches[0].y-e.touches[1].y)*(e.touches[0].y-e.touches[1].y)):this._startDistance=0,document.addEventListener(ym,t),document.addEventListener(bm,(function e(){document.removeEventListener(ym,t),document.removeEventListener(bm,e)}))}}let wm;Em.isZoomable=function(e){return!!e.getAttribute(gm)};r.getInstance().addUnloadCallback((()=>{wm&&wm.close(),Or(document.querySelector("#discard-post-modal")),Or(document.querySelector("#visibility-settings-modal")),Or(document.querySelector("#max-images-prompt-modal")),Or(document.querySelector("#retry-upload-modal"))}));const _m="_lastUpdatedAt";class Tm{constructor(e){this.storage=void 0===e?localStorage:e}read(e){try{const t=this.storage.getItem(e);if(t)return JSON.parse(t)}catch(e){}return null}write(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}remove(e){try{this.storage.removeItem(e)}catch(e){console.error(e)}}readWithExpiry(e,t){const n=this.read(e+_m);return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+_m,(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+_m)}}(function(){try{return Tm.instance||(Tm.instance=new Tm(localStorage)),Tm.instance}catch(e){}})(),function(){try{return Tm.sessionInstance||(Tm.sessionInstance=new Tm(sessionStorage)),Tm.sessionInstance}catch(e){}}();let Sm;const km="_self";function Im(){return Sm||(Sm=new ws),Sm}class Cm extends Rs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Cm.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Z(Cm,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class Am extends Rs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return this.executeAction({queryId:Am.query,successCallback:e,failureCallback:t})}}Z(Am,"query","da4a9ce2de842c1abe01ca37ea9271ee");const Lm=".dropdown-container",Om="select",Rm="change",Nm="selected";function xm(e){const t=e.target.value;e.target.classList.toggle(Nm,t),e.target.focus()}function Pm(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector(Om);i&&(i.addEventListener(Rm,xm),i.value&&i.classList.add(Nm))}else{document.querySelectorAll(Lm).forEach(Pm)}}const Mm=".input-container",Dm=".right",Bm="input",Um="click",qm="change",Fm="focus",Hm="input:cleared",jm="selected",Gm="placeholder";function zm(e){const t=e.currentTarget.parentElement.querySelector(Bm);t.value="",t.classList.remove(jm),t.focus(),h(t,Hm),h(t,qm)}function Km(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector(Bm);n&&i.setAttribute(Gm,n),i.removeEventListener(Fm,Km)}function Wm(e){const t=e.target.value;e.target.classList.toggle(jm,t)}function Vm(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector(Bm),r=e.querySelector(Dm);i.addEventListener(qm,Wm),i.addEventListener(Fm,Km),r&&r.addEventListener(Um,zm)}else{document.querySelectorAll(Mm).forEach(Vm)}}const Xm={MIN_LENGTH:"MinLength",MAX_LENGTH:"MaxLength",REGEX:"Regex",REQUIRED:"Required",REGEX_ALLOW:"RegexAllow",REGEX_ALLOW_EMAIL:"RegexAllowEmail"},Qm={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{pattern:new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),errorCode:"Email"},PHONE_NUMBER:{pattern:/(?:^((\+(?=[0-9]{1,4}))?))[0-9]{5,14}$/,errorCode:"PhoneNumber"}},Ym={EMAIL_ADDRESS:"EMAIL_ADDRESS",PHONE_NUMBER:"PHONE_NUMBER",OTHER:"OTHER"},Jm="consentUnchecked",Zm={INPUT:"INPUT",SELECT:"SELECT"},$m="text",eg="checkbox";function tg(e){return Object.keys(Zm).includes(e.tagName)}function ng(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Ym.OTHER:n&&t.push({type:Xm.MIN_LENGTH,MinLength:n}),i&&t.push({type:Xm.MAX_LENGTH,MaxLength:i});break;case Ym.EMAIL_ADDRESS:t.push({type:Xm.REGEX_ALLOW,RegexAllow:[Qm.EMAIL]});break;case Ym.PHONE_NUMBER:o=e.value.replace(/ /g,""),t.push({type:Xm.REGEX_ALLOW,RegexAllow:[Qm.PHONE_NUMBER]})}return{value:o||e.value,ruleSet:t}}(e),n=t.value;return t.ruleSet.map((e=>((e,t)=>{const n=t.trim();if(e)switch(e.type){case Xm.REQUIRED:if(0===n.length)return Xm.REQUIRED;break;case Xm.MIN_LENGTH:if(n.length<e[Xm.MIN_LENGTH])return Xm.MIN_LENGTH;break;case Xm.MAX_LENGTH:if(n.length>e[Xm.MAX_LENGTH])return Xm.MAX_LENGTH;break;case Xm.REGEX:for(let t=0;t<e[Xm.REGEX].length;t++)if(e[Xm.REGEX][t].pattern.test(n))return Xm.REGEX+e[Xm.REGEX][t].errorCode;break;case Xm.REGEX_ALLOW:for(let t=0;t<e[Xm.REGEX_ALLOW].length;t++)if(!e[Xm.REGEX_ALLOW][t].pattern.test(n))return Xm.REGEX_ALLOW+e[Xm.REGEX_ALLOW][t].errorCode}})(e,n))).filter((e=>!!e))}function ig(e,t){return t&&!e?Jm:null}const rg=(e,t)=>parseInt(t.split(e)[1]),og=(e,t)=>t.split(e)[1];function sg(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const ag=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),cg=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),lg=(e,t)=>({question:e,answerDetails:{options:[t]}});function ug(e){const t=e.id+"_",n=t+"q",i=t+"c",r=Ts("hasDecoratedLeadGenFormData");return new Promise(((t,o)=>{const s=[];let a,c;const{urn:l,legalInfoUrn:u,leadType:d,associatedEntityUrn:h}=e.dataset;c=e.dataset.leadTrackingParams,c||(a=e.closest("[data-lead-tracking-params]"),c=a.dataset.leadTrackingParams);const p={formResponse:{adFormUrn:l,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:c,trackingAction:"LEAD_FORM_CLICK"},f={associatedEntity:h,form:l,legalInfoUrn:u,leadType:d,formResponse:{answers:[],consentResponses:[]},leadTrackingParams:c,submittedAt:Date.now(),submitter:Ts("memberUrn")};return Array.from(e).filter(tg).forEach((e=>{let t;if(e.tagName===Zm.SELECT)t=((e,t,n)=>{const i=n?og(e,t.id):rg(e,t.id),r=t.selectedIndex;return{response:n?lg(i,r):cg(i,r)}})(n,e,r),r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else if(e.type===$m)if(t=((e,t,n)=>{const i=n?og(e,t.id):rg(e,t.id),r=ng(t);return 0!==r.length?{errors:r}:{response:n?(o=i,s=t.value,{question:o,answerDetails:{answer:s}}):ag(i,t.value)};var o,s})(n,e,r),t.response)r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===eg&&(t=((e,t,n,i,r)=>{const o=rg(e,t),s=ig(n,i);return s?{errors:s}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(i,e.id,e.checked,e.required,r),t.response?r?f.formResponse.consentResponses.push(t.response):p.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))})),0===s.length?t(r?f:p):o(s)}))}const dg=".lead-gen-input-container",hg='input[data-input-type="EMAIL_ADDRESS"]',pg=".error-text",fg="input-error",mg="aria-invalid",gg="role",vg="click";function yg(e){const t=this.formEl.querySelector(hg);let n=(null==t?void 0:t.value)||"";return function(i){this._isError(i.currentTarget)||n===i.currentTarget.value||(n=i.currentTarget.value,K("".concat(e,"?email=").concat(n)).then((e=>{let n;try{var i;n=null===(i=JSON.parse(e.responseText))||void 0===i?void 0:i.isEmailValid}catch(e){}n?this._hideError(t):this._setAndShowError(t,Xm.REGEX_ALLOW_EMAIL)})))}.bind(this)}class bg{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0,customEmailValidationFn:i,customEmailValidationPath:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Vm(),Pm(),Ur("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const o=e.querySelector(".lead-gen-modal");if(this.modal=new da(o,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),!i&&!r)throw new Error("customEmailValidationFn or customEmailValidationPath is not present");this.customEmailValidationFn=i||yg.bind(this)(r),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(tg).map((e=>this._hideError(e)))}_submitForm(){this._clearFormErrors(),ug(this.formEl).then((e=>{h(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.hideForm()})).catch((e=>{e.forEach((e=>this._setAndShowError(e.element,e.errorType)));const t=e[0];if(t){t.element.focus();x(sg(t.element,t.errorType),N.ASSERTIVE)}}))}_hideError(e){if(e){const t=e.closest(dg),n=t.querySelector(pg);Or(n),t.classList.remove(fg),e.removeAttribute(mg),n.removeAttribute(gg)}}_isError(e){var t;return null==e||null===(t=e.closest(dg))||void 0===t?void 0:t.classList.contains(fg)}_setAndShowError(e,t){if(e){const n=sg(e,t),i=e.closest(dg),r=i.querySelector(pg);r.innerText=n,Rr(r),i.classList.add(fg),r.setAttribute(gg,"alert"),e.setAttribute(mg,"true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===eg)t=ig(e.checked,e.required);else if(e.type===$m){const n=ng(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){const e=this.formEl.querySelector(".submit-btn"),t=this.formEl.querySelector(hg);this.formEl.addEventListener(vg,(e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)})),this.formEl.addEventListener(Hm,(e=>{this._handleInputError(e.target)})),this.formEl.addEventListener("keyup",(e=>{e.target.classList.contains("inputbox-input")&&this._handleInputError(e.target)})),this.customEmailValidationFn&&null!=t&&t.dataset.freemiumValidationRequired&&t.addEventListener("focusout",this.customEmailValidationFn),e.addEventListener(vg,(e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()}))}}Z(bg,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class Eg{constructor(e,t){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return Os({endpoint:this.endpoint,queryId:Eg.query,variables:{followState:e,to:t},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then((e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)})).catch(i)}}Z(Eg,"query","cbed571fffd8cea15209aed8d44e6759");const wg=Object.freeze({APPRECIATION:"APPRECIATION",ASSENT:"ASSENT",CELEBRATION:"CELEBRATION",EMPATHY:"EMPATHY",ENTERTAINMENT:"ENTERTAINMENT",INSPIRATION:"INSPIRATION",INTEREST:"INTEREST",LIKE:"LIKE",MAYBE:"MAYBE",PRAISE:"PRAISE",UNKNOWN:"UNKNOWN",USEFULNESS:"USEFULNESS"});Object.values(wg);const _g="CREATE",Tg="UPDATE";class Sg{constructor(e,t){if(!e)throw Error("Missing ReactionMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}execute(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:Sg.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==_g&&n!==Tg||(o.variables.reactionType=e),Os(o).then((e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)})).catch(r)}}Z(Sg,"query","070ee23fd6fb77f92ac08f964ae1df29");const kg="light";kg.toUpperCase();class Ig extends Rs{constructor(){super(...arguments)}execute(e){let{eventType:t,trackingToken:n,widgetActionCategory:i}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Ig.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Z(Ig,"query","48f4c814e38d5689b7c83a29c9676972");const Cg="#share-modal .modal-content .reshare-section",Ag="data-post-visibility",Lg='input[name="share-with"]:checked',Og="share-modal",Rg="#share-modal",Ng="close",xg="click",Pg="data-control-action",Mg="keydown",Dg=document.querySelector("#share-modal .textarea"),Bg=document.querySelector(".image-preview-wrapper"),Ug=document.querySelector(Cg),qg=document.querySelector(".post-button"),Fg=document.querySelector("#comments-enabled"),Hg=document.querySelector("#share-with-public"),jg=document.querySelector(".post-settings-wrapper"),Gg=document.querySelector(Lg),zg=document.querySelector("#share-modal .close-button"),Kg=document.querySelector("#visibility-settings-modal"),Wg=document.querySelector("#visibility-header-back .close-button"),Vg=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),Xg=document.querySelector("#discard-post-modal-wrapper"),Qg=document.querySelector(Rg),Yg=document.querySelector(".modal-spinner"),Jg=document.querySelector("#share-modal .textarea"),Zg=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const $g=document.querySelector("#share-with-network");class ev extends da{updatePostButtonStatus(){var e;const t=null===(e=Dg.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===Bg.getAttribute("data-image-load-state"),i=Ug.children.length;t||n||i?Mr(qg):Pr(qg)}clearModalContentBase(){Ug&&(Ug.textContent=""),Dg&&(Dg.textContent=""),Fg&&(Fg.checked=!0),Hg&&(Hg.checked=!0,jg.setAttribute(Ag,Gg.value))}historyBackClickHandler(){window.history.state!==Og&&"typeahead"!==window.history.state&&(window.history.pushState(Og,"show-share-modal",Rg),zg.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[".concat(Pg,"]"))||t.querySelector("[".concat(Pg,"]"));n&&window.tracking.then((e=>{e.fireControlInteractionEvent(n.getAttribute(Pg))}))}Kg.addEventListener(Ng,(()=>{jg.setAttribute(Ag,document.querySelector(Lg).value)})),Wg.addEventListener(xg,(()=>window.history.back())),Vg.addEventListener(xg,(t=>e(t))),Vg.addEventListener(Mg,(t=>{if(13===t.keyCode){const n=t.target.querySelector("input[type=radio]");n&&(n.checked=!0,e(t))}}))}discardPostConfirmationModalPrimaryActionCallback(e){let{enableHistoryBack:t}=e;this.close({enableHistoryBack:t}),Dr()&&"discard-post-modal"===window.history.state&&setTimeout((()=>{window.history.back()}),100)}postSettingsClickHandler(){window.tracking.then((e=>{e.fireControlInteractionEvent("post-settings")})),this.visibilitySettingsModal.open()}}class tv extends ev{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:s=!1,historyUpdateUrl:a}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:s}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=a,this.postUrn=Ts("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new da(Kg,{triggerByOutletEl:!1}),this.handleOpenByUrl()}bindPublishingShareEvents(){this.shareTextEvents(),this.bindShareModalEvents(),this.bindVisibilityModalEvents()}_checkIfOpenShareModalByLink(){const e=new URL(location.href);return!0===Boolean(e.searchParams.get("openShareModal"))}handleOpenByUrl(){this.openShareModalByLink&&this.open()}shareTextEvents(){const e=u(this.updatePostButtonStatus,300);Jg.addEventListener("input",e)}bindShareModalEvents(){const e=new Cu(Xg,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),(()=>{}),{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});Qg.addEventListener("open",(()=>{Dg.focus()})),Qg.addEventListener(Ng,(()=>{this.clearModalContentBase(),Or(Yg)})),qg.addEventListener(xg,(()=>{this.processPostData()})),zg.addEventListener(xg,(()=>{qg.disabled?this.close():e.modal.open()})),jg.addEventListener(xg,this.postSettingsClickHandler.bind(this)),jg.addEventListener(Mg,(e=>{13===e.keyCode&&this.postSettingsClickHandler.apply(this)}))}open(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultText:n}=t;this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),super.open(),this._checkIfOpenShareModalByLink()&&this._removeShareParams(),this.renderShareArticleShareSection(),Br()&&window.scrollTo(0,0),n&&(Jg.textContent=n),this.shareData={},this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),this.isNewPost=!1,this.postUrn&&(this.shareData.reshareUrn=this.postUrn,this.shareData.attributedShareUrn=this.postUrn),null===(e=window.lazyloader)||void 0===e||e.then((e=>{e.refreshLoader()})),this.updatePostButtonStatus()}renderShareArticleShareSection(){const e=this.el.querySelector(Cg);e.children.length?this.shareArticleNodeChild=e.children[0].cloneNode(!0):e.appendChild(this.shareArticleNodeChild)}composePostData(){this.shareData.text=Jg.textContent,this.shareData.visibility="PUBLIC",Zg&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=Zg.value),$g.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){Rr(Yg),this.composePostData(),Os({endpoint:this.endpoint,queryId:tv.query,variables:this.shareData}).then((e=>{var t,n;200!==e.status&&Promise.reject();const i=(null===(t=JSON.parse(null==e?void 0:e.responseText).graphQL)||void 0===t||null===(n=t.createPost)||void 0===n?void 0:n.activityUrn)||Promise.reject();window.tracking.then((e=>{rr(e,"ajax","post_success_page_key")})),Im().trigger("success",Ts("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:Ts("postSuccessViewPost"),target:km}),this.close()})).catch((()=>{window.tracking.then((e=>{rr(e,"ajax","post_failure_page_key")})),Im().trigger("error",Ts("postFailureMessage"),"post-error-toast-dismiss"),this.close()}))}close(){super.close({enableHistoryBack:!this.openShareModalByLink})}_removeShareParams(){var e;const t=new URL(window.location.href);null===(e=t.searchParams)||void 0===e||e.delete("openShareModal"),window.history.pushState({},document.title,t.toString())}}Z(tv,"query","971e319c05beaf333e94125db8c4f942");const nv="send-connection-invite",iv="follow",rv="unfollow",ov="Lite-feed",sv={[nv]:[{degradationKey:"failed-to-invite"}],[iv]:[{degradationKey:"failed-to-follow"}],[rv]:[{degradationKey:"failed-to-unfollow"}]};Au({featureName:nv,productName:ov,featureMappingToDegradationConfig:sv}),Au({featureName:iv,productName:ov,featureMappingToDegradationConfig:sv}),Au({featureName:rv,productName:ov,featureMappingToDegradationConfig:sv});class av extends Rs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:av.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Z(av,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class cv extends Rs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:cv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Z(cv,"query","a628cd3be2c138c07fc69c2413b23fb6");class lv extends Rs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:lv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Z(lv,"query","a0ff03a6b1cbe44862cb2054f0612078");class uv extends Rs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:uv.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Z(uv,"query","ad184ece0303620a9753eca249efd99f");class dv extends Rs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:dv.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Z(dv,"query","7edd5b8a4513caf8180a64ecde871630");class hv extends Rs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:hv.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Z(hv,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class pv extends Rs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:pv.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Z(pv,"query","85c85c121bf7eaabd2388b9143f94546");function fv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function gv(e,t,n){return t&&mv(e.prototype,t),n&&mv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vv(e)}function yv(e,t){return yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yv(e,t)}function bv(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ev(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=vv(e);if(t){var r=vv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return bv(this,n)}}function wv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||Tv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _v(e){return function(e){if(Array.isArray(e))return Sv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tv(e,t){if(e){if("string"==typeof e)return Sv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sv(e,t):void 0}}function Sv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var kv="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Iv=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Cv=["b","del","em","i","s","strong","sub","sup"],Av=Cv.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"]),Lv=[kv,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding|attributionsrc"].join("|"),Ov="href|src",Rv="data:image/(?:gif|jpg|jpeg|png);base64,",Nv="https?|ftp|mailto|invalid",xv=gv((function e(){fv(this,e)}));function Pv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Mv=function(){var e=/[&<>"'\u0000\\=]/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"};return function(n){return null==n?null:n.toString().replace(e,(function(e){return function(e){return e in t}(e)?t[e]:e}))}}(),Dv=function(){var e,t="undefined"!=typeof document?document.createElement("div"):null,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};function r(e){if(function(e){return Pv(i,e)}(e))return i[e];if(!t)return e;t.innerHTML="&".concat(e,";");var n=t[Iv];return i[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,i,o){return n?r(n):i||o?e(parseInt(i||o,i?16:10)||65533):"�"}))}}();function Bv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}function Uv(e){return/[<&]/.test(e)}var qv="[ \t\r\n]*",Fv="[ \t\r\n]+";function Hv(e){e=Array.isArray(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",e.forEach((function(e,s){t=e.tags||Av,n=e.attrs||Lv,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=qv,o+="|"+Fv,o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++r,")?"),i&&(o+="|(?:".concat(Ov,")=([\"'])(?:(?:").concat(Nv,")(?::|&#(?:58|x3a);)|(?:").concat(Rv,")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++r)),o+=")"+qv+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function jv(e){return Hv({tags:e=e||Av,checkUrlAttrs:!0})}function Gv(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n&&n.length>0?!jv(n).test(e):i?!Gv.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Gv.R_UNSAFE_HTML.test(e)}function zv(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}Gv.R_UNSAFE_HTML=jv(),Gv.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return Hv([{tags:Av,checkUrlAttrs:!0},{tags:[e.tag],attrs:[kv,e.attrs].join("|"),checkUrlAttrs:!1}])}();var Kv={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,"",""]},Wv=/<([\w:]+)/;function Vv(e,t){var n,i,r,o,s,a=t.createDocumentFragment(),c=[];for(r=0,s=e.length;r<s;r++)if(i=e[r])if("string"==typeof i){n=n||a.appendChild(t.createElement("div"));var l=wv(Wv.exec(i)||["",""],2)[1];if(void 0!==l){var u=l.toLowerCase(),d=u in Kv&&Kv[u]||Kv._default;for(Jv(n,d[1]+i+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);c.push.apply(c,_v(Array.from(n.childNodes))),(n=a.firstChild)&&(n.textContent="")}}else i instanceof Node&&c.push(i);for(a.textContent="",i=c[r=0];i;)a.appendChild(i),i=c[++r];return a}function Xv(e,t,n){e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){if(Pv(n,i))return n[i];if(Pv(t,i)){var r=t[i],o="string"==typeof r;if(!o&&!(r instanceof xv)&&!("number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");return r?(r=o?"".concat(Mv(r)):r.toString(),n[i]=r,r):e}return e}))}(e,t):e,r=e;return Uv(i)&&!Gv(i,n)&&(i=zv(i),Bv("Content contains tags or attributes that are not allowed:\nContent: "+r,"error")),i}var Qv=Xv,Yv=Xv;function Jv(e,t,n){var i=Xv(t,n);return i&&Uv(i)?e.innerHTML=i:i&&(e[Iv]=i),i}var Zv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yv(e,t)}(n,e);var t=Ev(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fv(this,n),(i=t.call(this)).options=r,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return gv(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e;return void 0!==t?t:(Gv(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=zv(e),Bv("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(xv);var $v=/ /g,ey=/[\s\u0000<>"]|%00/,ty=/\\/,ny=/([.]|%2e){2}/i,iy=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function ry(e){var t,n="invalid://";if("string"!=typeof e)return Bv("jSecure Warning: url must be a string","error"),n;if((t=e.trim()).indexOf(" ")>-1&&(Bv("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace($v,"+")),!iy.test(t))return Bv("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(ey.test(t))return Bv("jSecure Error: not valid url character found in url: "+e,"error"),n;var i,r=t.split("?")[0],o=!1;if(r){try{if(i=decodeURI(r),ny.test(i))return Bv("jSecure Error: malicious data found in url path: "+r,"error"),n}catch(e){o=!0}if(o)return Bv("jSecure Error: malformed url path detected: "+r),n;if(ty.test(r)||ny.test(r))return Bv("jSecure Error: malicious data found in url path: "+r,"error"),n}return e}var oy={redirect:function(e){window&&(window.location.href=e)}};var sy={ALLOWED_TAGS:Av,FORMATTING_TAGS:Cv,htmlEncode:Mv,htmlUnencode:Dv,log:Bv,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof Zv?r:Mv(r))})),"".concat(Yv(o))},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Vv([e],t);else{if(!Array.isArray(e))return e;n=Vv(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:Qv,reEncode:function(e){return Mv(Dv(e))},_redirector:oy,redirect:function(e){var t=ry(e);t===e&&oy.redirect(t)},sanitizeHTML:Yv,sanitizeUrl:ry,setElementContent:Jv,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new Zv(t,n)}};const ay='[data-js-module-id="guest-input"]',cy="input-error",ly="hidden",uy="notify",dy="error",hy="requestOtpGenerationLoginBackToEntry",py="requestOtpGenerationLoginErrorToast",fy="requestOtpGenerationLoginImproperEmail",my="requestOtpGenerationLoginNotifyToast",gy="requestOtpGenerationLoginProperEmail",vy="requestOtpGenerationLoginResubmit",yy="requestOtpGenerationLoginSubmit",by="requestOtpGenerationLoginView";new class{constructor(){if(new ku,this.otpGenerationUrl=Ts("otp-generation-url-path"),this.otpLinkResult=Ts("otp-link-result"),this.sessionKey=Ts("session-key"),this.emailInputEl=document.getElementById("otp_email_entry"),this.emailInputValue="",this.emailSentSubheader=document.getElementById("i18n-otp-sent-subhead").innerHTML,this.usernameMsgEl=document.querySelector("".concat('[data-js-module-id="guest-input__message"]','[for="otp_email_entry"]')),this.usernameMsgEl&&this.usernameMsgEl.classList.add(ly),this.emailSubmitButton=document.querySelector(".otp-email-entry__submit-btn"),this.emailReSubmitButton=document.querySelector(".otp-email-sent__submit-btn"),this.emailSentBackButton=document.querySelector(".otp-email-sent__back-btn"),this.checkElementsExist(),this.otpLinkResult)if(this.emailInputEl.value=this.sessionKey,this.emailInputValue=this.sessionKey,"PASS"===this.otpLinkResult){document.getElementById("i18n-otp-sent-subhead").innerHTML=this.emailSentSubheader.replace("{:email}",this.emailInputValue),this.showOtpModal(!0),this.triggerToast(uy)}else this.triggerToast(dy);this.attachEventListeners(),this.fireRequestOtpGenerationTrackingEvent(by)}attachEventListeners(){this.emailSubmitButton&&this.emailSubmitButton.addEventListener("click",(()=>{this.emailInputValue=this.emailInputEl.value,this.fireRequestOtpGenerationTrackingEvent(yy),this.emailValidate(this.emailInputValue)?(this.fireRequestOtpGenerationTrackingEvent(gy),this.emailInputEl.closest(ay).classList.remove(cy),this.usernameMsgEl.classList.add(ly),this.sendOrResendOtp()):(this.fireRequestOtpGenerationTrackingEvent(fy),this.emailInputEl.closest(ay).classList.add(cy),this.usernameMsgEl.classList.remove(ly),this.usernameMsgEl.innerText=Ts("i18n-email-empty"),this.emailInputEl.focus())})),this.emailReSubmitButton&&this.emailReSubmitButton.addEventListener("click",(()=>{this.sendOrResendOtp(),this.fireRequestOtpGenerationTrackingEvent(vy)})),this.emailSentBackButton&&this.emailSentBackButton.addEventListener("click",(()=>{this.showOtpModal(!1),this.fireRequestOtpGenerationTrackingEvent(hy)}))}triggerToast(e){var t;let n;e===dy?(n=Ts("i18n-otp-failure-message"),this.fireRequestOtpGenerationTrackingEvent(py)):e===uy&&(n=Ts("i18n-otp-info-message"),this.fireRequestOtpGenerationTrackingEvent(my));let i=null===(t=n)||void 0===t?void 0:t.str;if(i){i=i.replace("{:email}",this.emailInputValue);(new ws).trigger(e,i)}}showOtpModal(e){const t=document.querySelector(".otp-email-form"),n=document.querySelector(".otp-email-sent");e?(t.classList.add("hidden"),n.classList.remove("hidden")):(t.classList.remove("hidden"),n.classList.add("hidden"))}async sendOrResendOtp(){try{const e=await fetch(this.otpGenerationUrl,{method:"POST",credentials:"same-origin",body:this.prepareBody(),headers:{accept:"application/json","X-Requested-With":"XMLHttpRequest"}});if(e.ok){if("PASS"===(await e.json()).otpLinkResult){document.getElementById("i18n-otp-sent-subhead").innerHTML=this.emailSentSubheader.replace("{:email}",this.emailInputValue),this.showOtpModal(!0),this.triggerToast(uy)}else this.triggerToast(dy)}else if(401===e.status){const t=await e.json();"CHALLENGE"===t.otpLinkResult?window.location.replace(sy.sanitizeUrl(t.challengeURL)):this.triggerToast(dy)}else this.triggerToast(dy)}catch(e){console.log(e),this.triggerToast(dy)}}emailValidate(e){if(e){return new RegExp(/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i).test(e)}return!1}prepareBody(){const e=new FormData;return e.append("csrfToken",document.getElementsByName("csrfToken")[0].value),e.append("resendUrl",this.otpGenerationUrl),e.append("parentPageKey",Ts("page-key")),e.append("trk","guest_ssr-login_request-otp-generation"),e.append("session_key",this.emailInputValue),e}async fireRequestOtpGenerationTrackingEvent(e){const t=await window.ingraphTracking;null==t||t.fireCounterIngraphMetric({metricsType:e})}checkElementsExist(){if(!this.otpGenerationUrl)throw new Error("Missing otpGenerationUrlPath parameter");if(!this.emailInputEl)throw new Error("Missing email input element");if(!this.usernameMsgEl)throw new Error("Missing username error message element");if(!this.emailSubmitButton)throw new Error("Missing email submit button");if(!this.emailReSubmitButton)throw new Error("Missing email resubmit button");if(!this.emailSentBackButton)throw new Error("Missing back button for email sent form")}}})();