/*! For license information please see graphQLOverview.js.LICENSE.txt */
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t,n){"use strict";(function(e,i){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s;n.d(t,"a",(function(){return Ba})),n.d(t,"b",(function(){return lu})),n.d(t,"c",(function(){return Qc})),n.d(t,"d",(function(){return yd})),n.d(t,"e",(function(){return Ve})),n.d(t,"f",(function(){return za})),n.d(t,"g",(function(){return Ua})),n.d(t,"h",(function(){return bd})),n.d(t,"i",(function(){return yo})),n.d(t,"j",(function(){return Aa})),n.d(t,"k",(function(){return pe})),n.d(t,"l",(function(){return Oa})),n.d(t,"m",(function(){return Dl})),n.d(t,"n",(function(){return $d})),n.d(t,"o",(function(){return ee})),n.d(t,"p",(function(){return Zs})),n.d(t,"q",(function(){return mu})),n.d(t,"r",(function(){return $c})),n.d(t,"s",(function(){return Qo})),n.d(t,"t",(function(){return G})),n.d(t,"u",(function(){return Q})),n.d(t,"v",(function(){return Te})),n.d(t,"w",(function(){return wu})),n.d(t,"x",(function(){return eh}));var a,l,c,u={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},d="GUEST",h="MEMBER",p=0,f=1,m=2,g=(o(s={},d,"li_gc"),o(s,h,"li_mc"),s),v=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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in r(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},u)t[s]=t[s]||p,t[s]!==p&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===f||t[s]===p&&o===f},y=(a=[u.ADVERTISING,u.ANALYTICS_AND_RESEARCH,u.FUNCTIONAL],l=[p,f,m,p],c=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(c);if(!n)return{error:"Invalid consent body encoding",consent:new v};for(var i=parseInt(n[1],10),r={},o=0;o<a.length;o++)r[a[o]]=l[i>>2*o&3];var s=new Date(1e3*parseInt(n[2],10)),u=parseInt(n[3],10),d=p;return u>=0&&u<=3&&(d=l[u]),{error:null,consent:new v(r,s,t,d)}}}),E=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),b=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},_=function(e,t){var n=b(g[e],t);return n?T(n,e):b(g[d],t)||b(g[h],t)?w(m):w(f)},w=function(e){var t={};for(var n in u)t[n]=e;return{error:null,consent:new v(t,null,null,e)}};var T=function(t,n){t&&t.length>1&&'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1));var i,r=null;try{r=(i=t,"undefined"==typeof atob&&void 0!==e?e.from(i,"base64").toString("binary"):atob(i)).match(E)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new v};var o=parseInt(r[1],10),s=r[2];switch(o){case 1:return y.parseConsentBody(s,n);default:return{error:"Invalid encoded consent version ".concat(o),consent:new v}}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=b("liap",t)?b(g[h],t)?h:d:b(g[d],t)?d:h),_(e,t)};window.encodeURIComponent;function C(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 k(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}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 A=function(){let e;return{getInstance:function(){return e||(e=new I),e}}}();class L{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)}}const O=function(){let e;return{getInstance:function(){return e||(e=new L),e}}}();function R(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function N(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function P(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return r?e<=t*i:e>=n-(t+t*i)}function x(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function M(e,t){return D(e,"trk",t)}function D(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=x(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 B(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 l=()=>{r=null,n||e.apply(i,s)},c=n&&!r;clearTimeout(r),r=setTimeout(l,t),c&&e.apply(i,s)}}function U(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function F(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 q(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function H(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function j(e){return"string"!=typeof e?null:e.split("?")[0]}var G=Object.freeze({__proto__:null,closest:C,onload:k,UnloadHandler:A,PagehideHandler:O,makeArray:R,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:N,hasElementScrolledToThreshold:P,getQueryParam:x,addTrackingCode:M,addQueryParam:D,debounce:B,getCookie:U,dispatchCustomEvent:F,getDeferredPromise:q,isDocumentHidden:H,stripQueryParams:j});function z(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 W(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function K(){var e,t;const n=null===(e=window.atob(U("li_gp")))||void 0===e||null===(t=e.split(";")[2])||void 0===t?void 0:t[0];return!!n&&!parseInt(n)}function V(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function Y(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function J(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var Q=Object.freeze({__proto__:null,getPageKey:z,getPageTag:W,getLiSugrCookie:function(){return U("li_sugr")},getGuestRetargetingOptOut:K,getLocale:V,getDomain:Y,trimDoubleQuotes:J});const X={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},Z={Down:X.ARROW_DOWN,Right:X.ARROW_RIGHT,Left:X.ARROW_LEFT,Up:X.ARROW_UP,Esc:X.ESCAPE,Spacebar:X.SPACEBAR,Tab:X.TAB};function $(e){return Z[e]||e}var ee=Object.freeze({__proto__:null,KEYS:X,normalizeKeyBoardEventKey:$});class te{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("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch($(e.key)){case X.ENTER:case X.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case X.ARROW_UP:this.isOpen||this._open(e);break;case X.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){$(e.key)===X.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=$(e.key);if(t===X.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case X.SPACEBAR:F(e.target,"click");break;case X.ARROW_LEFT:case X.ARROW_UP:n=C(e.target,"li");let t=n.previousElementSibling;t&&F(t,"focusEl");break;case X.ARROW_RIGHT:case X.ARROW_DOWN:n=C(e.target,"li");let i=n.nextElementSibling;i&&F(i,"focusEl")}}}_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)),F(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)),F(this.el,"close"),e&&this.mainButton.focus())}}let ne,ie;const re=['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^="-"])'],oe=[...re,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),se=[...re,"[tabindex]:not([disabled])"].join(",");function ae(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function le(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?!ae(e):i&&i.get(e)?i.get(e):(ae(e)?t=!1:e.parentNode&&(t=le(e.parentNode,n,i)),i&&i.set(e,t),t)}const ce=["CODE","TEMPLATE","SCRIPT"],ue={POLITE:"polite",ASSERTIVE:"assertive"};function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.POLITE;ne&&(ne.removeAttribute("aria-hidden"),ne.setAttribute("aria-live",ue.POLITE),ne.textContent="",ne.textContent=e,ne.setAttribute("aria-live",t),clearTimeout(ie),ie=setTimeout(()=>{ne.removeAttribute("aria-live"),ne.setAttribute("aria-hidden","true")},1e4))}function he(){ne=function(){let e=document.querySelector("#a11y-alert-container");return e||(e=document.createElement("div"),e.setAttribute("role","region"),e.setAttribute("aria-live","polite"),e.setAttribute("id","a11y-alert-container"),e.classList.add("visually-hidden"),document.body.appendChild(e)),e}()}var pe=Object.freeze({__proto__:null,FOCUSABLE_ELEMS:oe,FOCUSABLE_ELEMS_INCLUDING_NEGATIVE_TABINDEX:se,isElVisible:le,ARIA_NON_ACCESSIBLE_NODE_NAMES:ce,ARIA_POLITENESS_SETTING:ue,resetLiveContent:de,getLiveRegionEl:he});class fe{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 me=["class","disabled","style","tabindex","type"];class ge{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 fe(this._container)}init(){this._observer.observe(this._container,{attributeFilter:me,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=$(t),r=i===X.TAB&&e.shiftKey;!r&&i===X.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(oe)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=le(r,e,n)&&r,o++}if(!r){const i=t[s];r=le(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const ve=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function ye(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&ve.test(e)}const Ee=".".concat("collapsible-dropdown","__list"),be=".".concat("collapsible-dropdown","__button"),_e=".".concat("collapsible-dropdown","__close-button");class we{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(oe)),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(Ee),this._closeButton=this.el.querySelector(_e),this._isMobile=ye();const o=this.dropdownContentEl.closest(".".concat("collapsible-dropdown"));if(this._isMobile&&o&&(this._focusTrap=new ge(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(oe),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(be),this.hideClass="hidden",this.collapsible=new te(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("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),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 Te(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:l=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=new Promise((s,a)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)s({status:l.status,responseText:l.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));n.response={status:l.status,responseText:l.responseText},l.response&&(n.response.rawHeaders=l.getAllResponseHeaders()),a(n)}})),l.addEventListener("error",(function(e){a(e)})),l.open(t,e,!0),l.withCredentials=i,Object.keys(n).forEach(e=>{l.setRequestHeader(e,n[e])}),!r){const e=U("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",J(e))}l.send(o)});return s&&(a.length?Se(c,e,l,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),c}function Se(e,t,n,i){try{const r=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?Ce(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,r,e.state.currentPageInstance)})})}catch(e){}}function Ce(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.trim().split(": "),i=n.shift();if(i){const e=n.join(": ");t.set(i.toLocaleLowerCase(),e)}}),t}var ke="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},Ie=/^\s+|\s+$/g,Ae=/^[-+]0x[0-9a-f]+$/i,Le=/^0b[01]+$/i,Oe=/^0o[0-7]+$/i,Re=parseInt,Ne="object"==typeof ke&&ke&&ke.Object===Object&&ke,Pe="object"==typeof self&&self&&self.Object===Object&&self,xe=Ne||Pe||Function("return this")(),Me=Object.prototype.toString,De=Math.max,Be=Math.min,Ue=function(){return xe.Date.now()};function Fe(e,t,n){var i,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?p(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=Ue();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-l);return d?Be(n,o-(e-c)):n}(e))}function v(e){return a=void 0,h&&i?p(e):(i=r=void 0,s)}function y(){var e=Ue(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(d)return a=setTimeout(g,t),p(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=He(t)||0,qe(n)&&(u=!!n.leading,o=(d="maxWait"in n)?De(He(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Ue())},y}function qe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function He(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Me.call(e)}(e))return NaN;if(qe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ie,"");var n=Le.test(e);return n||Oe.test(e)?Re(e.slice(2),n?2:8):Ae.test(e)?NaN:+e}var je=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return qe(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Fe(e,t,{leading:i,maxWait:t,trailing:r})};const Ge=".loader",ze=".infinite-scroller__show-more-button",We=0,Ke=10;class Ve{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,{threshold:t=We,scrollLoadLimit:n=Ke,useDebounce:i=!1,wait:r=1e3,loadResults:o,onLoading:s=this._defaultOnLoading,onDoneLoading:a=this._defaultOnDoneLoading,loaderEl:l=document.querySelector(Ge),showMoreButtonEl:c=document.querySelector(ze),isReverse:u=!1,listEl:d,getFocusItemFromListItem:h=(e=>e.querySelector(se))}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)throw new Error("loadResults should be passed to the component");if(n<=0)throw new Error("scrollLoadLimit should be greater than 0, if you only need the button and not the scroller do not use this module");c&&!d&&console.error("A list element is required for accessibility focus if a showMoreButtonEl is present"),this.el=e,this.threshold=t,this.scrollLoadLimit=n,this.useDebounce=i,this.wait=r,this.loaderEl=l,this.onLoading=s,this.onDoneLoading=a,this.loadResults=o,this.showMoreButtonEl=c,this.isReverse=u,this.listEl=d,this._getFocusItemFromListItem=h,this.isLoading=!1,this.loadNumber=0,this._onScroll=this._onScroll.bind(this),this._onClick=this._onClick.bind(this),this._scrollListener=this.useDebounce?B(this._onScroll,this.wait):je(this._onScroll,this.wait),this._attachScrollEventListener(),this._onScroll()}_defaultOnLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!0:this.loaderEl&&this.loaderEl.classList.add("loader--show")}_defaultOnDoneLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!1:this.loaderEl&&this.loaderEl.classList.remove("loader--show")}_onScroll(){!this.isLoading&&P(this.el,this.threshold,this.isReverse)&&(this.isLoading=!0,this.onLoading(),this.loadResults().finally(()=>{this.onDoneLoading(),this.isLoading=!1,++this.loadNumber>=this.scrollLoadLimit&&(this.removeInfiniteScroller(),this.showMoreButtonEl&&this._switchToShowMoreButton())}))}_onClick(){var e,t;const n=(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)||0;this.onLoading(),this.loadResults().finally(()=>{var e,t;if(this.onDoneLoading(),(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)>n){var i,r;const e=null===(i=this.listEl)||void 0===i||null===(r=i.children)||void 0===r?void 0:r[n];let t=this._getFocusItemFromListItem(e);t&&t.focus()}})}_switchToShowMoreButton(){this.isShowMoreButtonTheTrigger=!0,this.showMoreButtonEl.classList.add("infinite-scroller__show-more-button--visible"),this.showMoreButtonEl.addEventListener("click",this._onClick)}removeInfiniteScroller(){this.isShowMoreButtonTheTrigger?(this.showMoreButtonEl.removeEventListener("click",this._onClick),this.showMoreButtonEl.classList.remove("infinite-scroller__show-more-button--visible")):this.el.removeEventListener("scroll",this._scrollListener)}_attachScrollEventListener(){this.el.addEventListener("scroll",this._scrollListener)}}function Ye(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(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 Ze="light",$e="dark";function et(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?$e:Ze:void 0}var tt;function nt(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)||ct(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 it(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ct(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 rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(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 st(e,t,n){return t&&ot(e.prototype,t),n&&ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lt(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ct(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 ct(e,t){if(e){if("string"==typeof e)return ut(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)?ut(e,t):void 0}}function ut(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 dt(e){return(dt="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 ht,pt=new Uint8Array(16);function ft(){if(!ht&&!(ht="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 ht(pt)}var mt=/^(?:[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 gt(e){return"string"==typeof e&&mt.test(e)}for(var vt=[],yt=0;yt<256;++yt)vt.push((yt+256).toString(16).substr(1));function Et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(vt[e[t+0]]+vt[e[t+1]]+vt[e[t+2]]+vt[e[t+3]]+"-"+vt[e[t+4]]+vt[e[t+5]]+"-"+vt[e[t+6]]+vt[e[t+7]]+"-"+vt[e[t+8]]+vt[e[t+9]]+"-"+vt[e[t+10]]+vt[e[t+11]]+vt[e[t+12]]+vt[e[t+13]]+vt[e[t+14]]+vt[e[t+15]]).toLowerCase();if(!gt(n))throw TypeError("Stringified UUID is invalid");return n}function bt(e){if(!gt(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 _t(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=bt(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 Et(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function wt(e){return 14+(e+64>>>9<<4)+1}function Tt(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function St(e,t,n,i,r,o){return Tt((s=Tt(Tt(t,e),Tt(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function Ct(e,t,n,i,r,o,s){return St(t&n|~t&i,e,t,r,o,s)}function kt(e,t,n,i,r,o,s){return St(t&i|n&~i,e,t,r,o,s)}function It(e,t,n,i,r,o,s){return St(t^n^i,e,t,r,o,s)}function At(e,t,n,i,r,o,s){return St(n^(t|~i),e,t,r,o,s)}function Lt(e,t,n){var i=(e=e||{}).random||(e.rng||ft)();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 Et(i)}function Ot(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function Rt(e,t){return e<<t|e>>>32-t}_t("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[wt(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,l=i,c=r,u=o;n=Ct(n,i,r,o,e[s],7,-680876936),o=Ct(o,n,i,r,e[s+1],12,-389564586),r=Ct(r,o,n,i,e[s+2],17,606105819),i=Ct(i,r,o,n,e[s+3],22,-1044525330),n=Ct(n,i,r,o,e[s+4],7,-176418897),o=Ct(o,n,i,r,e[s+5],12,1200080426),r=Ct(r,o,n,i,e[s+6],17,-1473231341),i=Ct(i,r,o,n,e[s+7],22,-45705983),n=Ct(n,i,r,o,e[s+8],7,1770035416),o=Ct(o,n,i,r,e[s+9],12,-1958414417),r=Ct(r,o,n,i,e[s+10],17,-42063),i=Ct(i,r,o,n,e[s+11],22,-1990404162),n=Ct(n,i,r,o,e[s+12],7,1804603682),o=Ct(o,n,i,r,e[s+13],12,-40341101),r=Ct(r,o,n,i,e[s+14],17,-1502002290),n=kt(n,i=Ct(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=kt(o,n,i,r,e[s+6],9,-1069501632),r=kt(r,o,n,i,e[s+11],14,643717713),i=kt(i,r,o,n,e[s],20,-373897302),n=kt(n,i,r,o,e[s+5],5,-701558691),o=kt(o,n,i,r,e[s+10],9,38016083),r=kt(r,o,n,i,e[s+15],14,-660478335),i=kt(i,r,o,n,e[s+4],20,-405537848),n=kt(n,i,r,o,e[s+9],5,568446438),o=kt(o,n,i,r,e[s+14],9,-1019803690),r=kt(r,o,n,i,e[s+3],14,-187363961),i=kt(i,r,o,n,e[s+8],20,1163531501),n=kt(n,i,r,o,e[s+13],5,-1444681467),o=kt(o,n,i,r,e[s+2],9,-51403784),r=kt(r,o,n,i,e[s+7],14,1735328473),n=It(n,i=kt(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=It(o,n,i,r,e[s+8],11,-2022574463),r=It(r,o,n,i,e[s+11],16,1839030562),i=It(i,r,o,n,e[s+14],23,-35309556),n=It(n,i,r,o,e[s+1],4,-1530992060),o=It(o,n,i,r,e[s+4],11,1272893353),r=It(r,o,n,i,e[s+7],16,-155497632),i=It(i,r,o,n,e[s+10],23,-1094730640),n=It(n,i,r,o,e[s+13],4,681279174),o=It(o,n,i,r,e[s],11,-358537222),r=It(r,o,n,i,e[s+3],16,-722521979),i=It(i,r,o,n,e[s+6],23,76029189),n=It(n,i,r,o,e[s+9],4,-640364487),o=It(o,n,i,r,e[s+12],11,-421815835),r=It(r,o,n,i,e[s+15],16,530742520),n=At(n,i=It(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=At(o,n,i,r,e[s+7],10,1126891415),r=At(r,o,n,i,e[s+14],15,-1416354905),i=At(i,r,o,n,e[s+5],21,-57434055),n=At(n,i,r,o,e[s+12],6,1700485571),o=At(o,n,i,r,e[s+3],10,-1894986606),r=At(r,o,n,i,e[s+10],15,-1051523),i=At(i,r,o,n,e[s+1],21,-2054922799),n=At(n,i,r,o,e[s+8],6,1873313359),o=At(o,n,i,r,e[s+15],10,-30611744),r=At(r,o,n,i,e[s+6],15,-1560198380),i=At(i,r,o,n,e[s+13],21,1309151649),n=At(n,i,r,o,e[s+4],6,-145523070),o=At(o,n,i,r,e[s+11],10,-1120210379),r=At(r,o,n,i,e[s+2],15,718787259),i=At(i,r,o,n,e[s+9],21,-343485551),n=Tt(n,a),i=Tt(i,l),r=Tt(r,c),o=Tt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(wt(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),_t("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),l=0;l<s;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];a[l]=c}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]=Rt(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],E=n[4],b=0;b<80;++b){var _=Math.floor(b/20),w=Rt(m,5)+Ot(_,g,v,y)+E+t[_]+h[b]>>>0;E=y,y=v,v=Rt(g,30)>>>0,g=m,m=w}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]+E>>>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 Nt=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Pt=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Pt){var xt=new Uint8Array(256),Mt=xt.length;Nt={rng:function(){return Mt>xt.length-16&&(Pt.randomFillSync(xt),Mt=0),xt.slice(Mt,Mt+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":dt(crypto))&&crypto.randomUUID;function Dt(){return Lt(Nt,new Array(16),0)}function Bt(e){return lt(e).map((function(e){return String.fromCharCode(e)})).join("")}function Ut(){return Bt(Dt())}var Ft=/^[a-zA-Z0-9/+]+[=]+$/;function qt(e,t){return{pageUrn:jt(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("")}(Dt())}}function Ht(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function jt(e){return"urn:li:page:".concat(e)}function Gt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function zt(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 Wt(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Kt(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"),l=a.objectStore(n),c=l.get(1);c.onsuccess=function(){var n=c.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=l.put({sequenceNumber:t},1);a.onsuccess=function(){return r(null)},a.onerror=function(){o(a.error)}}else{var u=l.add({sequenceNumber:0});u.onsuccess=function(){return r(0)},u.onerror=function(){o(u.error)}}},c.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(c.error))))},a.oncomplete=function(){return s.close()}},i.onerror=function(){return r(null)}}))}return Promise.resolve(null)}function Vt(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Yt(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Jt,Qt,Xt=(Jt=new Map,Qt=new Map,{on:function(e,t){Vt(Jt,e,t)},before:function(e,t){Vt(Qt,e,t)},off:function(e,t){Yt(Jt,e,t)},offBefore:function(e,t){Yt(Qt,e,t)},emit:function(e,t){(Qt.get(e)||[]).concat(Jt.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Qt.clear(),Jt.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Zt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Xt.emit("internal:hide",e)};document.addEventListener("visibilitychange",Zt),window.addEventListener("pagehide",Zt)}var $t=Uint8Array,en=Uint16Array,tn=Uint32Array,nn=new $t([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]),rn=new $t([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]),on=new $t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),sn=function(e,t){for(var n=new en(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new tn(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]},an=sn(nn,2),ln=an[0],cn=an[1];ln[28]=258,cn[258]=28;for(var un=sn(rn,0)[1],dn=new en(32768),hn=0;hn<32768;++hn){var pn=(43690&hn)>>>1|(21845&hn)<<1;pn=(61680&(pn=(52428&pn)>>>2|(13107&pn)<<2))>>>4|(3855&pn)<<4,dn[hn]=((65280&pn)>>>8|(255&pn)<<8)>>>1}var fn=function(e,t,n){for(var i=e.length,r=0,o=new en(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new en(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new en(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[dn[d]>>>l]=c}else for(s=new en(i),r=0;r<i;++r)e[r]&&(s[r]=dn[a[e[r]-1]++]>>>15-e[r]);return s},mn=new $t(288);for(hn=0;hn<144;++hn)mn[hn]=8;for(hn=144;hn<256;++hn)mn[hn]=9;for(hn=256;hn<280;++hn)mn[hn]=7;for(hn=280;hn<288;++hn)mn[hn]=8;var gn=new $t(32);for(hn=0;hn<32;++hn)gn[hn]=5;var vn=fn(mn,9,0),yn=fn(gn,5,0),En=function(e){return(e+7)/8|0},bn=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},_n=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},wn=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[Ln,0];if(1==r){var s=new $t(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],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=r-1;)a=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:a.f+l.f,l:a,r:l};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new en(h+1),f=Tn(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 E=o[i].s;p[E]<t?m-=1<<t-p[E]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new $t(p),f]},Tn=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},Sn=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new en(++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]},Cn=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},kn=function(e,t,n){var i=n.length,r=En(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)},In=function(e,t,n,i,r,o,s,a,l,c,u){bn(t,u++,n),++r[256];for(var d=wn(r,15),h=d[0],p=d[1],f=wn(o,15),m=f[0],g=f[1],v=Sn(h),y=v[0],E=v[1],b=Sn(m),_=b[0],w=b[1],T=new en(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var C=wn(T,7),k=C[0],I=C[1],A=19;A>4&&!k[on[A-1]];--A);var L,O,R,N,P=c+5<<3,x=Cn(r,mn)+Cn(o,gn)+s,M=Cn(r,h)+Cn(o,m)+s+14+3*A+Cn(T,k)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return kn(t,u,e.subarray(l,l+c));if(bn(t,u,1+(M<x)),u+=2,M<x){L=fn(h,p,0),O=h,R=fn(m,g,0),N=m;var D=fn(k,I,0);for(bn(t,u,E-257),bn(t,u+5,w-1),bn(t,u+10,A-4),u+=14,S=0;S<A;++S)bn(t,u+3*S,k[on[S]]);u+=3*A;for(var B=[y,_],U=0;U<2;++U){var F=B[U];for(S=0;S<F.length;++S){var q=31&F[S];bn(t,u,D[q]),u+=k[q],q>15&&(bn(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else L=vn,O=mn,R=yn,N=gn;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,_n(t,u,L[q+257]),u+=O[q+257],q>7&&(bn(t,u,i[S]>>>23&31),u+=nn[q]);var H=31&i[S];_n(t,u,R[H]),u+=N[H],H>3&&(_n(t,u,i[S]>>>5&8191),u+=rn[H])}else _n(t,u,L[i[S]]),u+=O[i[S]];return _n(t,u,L[256]),u+O[256]},An=new tn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ln=new $t(0),On=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}(),Rn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Nn(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=On[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),8,function(e,t,n,i,r,o){var s=e.length,a=new $t(i+s+5*(1+Math.ceil(s/7e3))+r),l=a.subarray(i,a.length-r),c=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(l[c>>3]=o),c=kn(l,c+1,e.subarray(u,d))}else{for(var h=An[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new en(32768),v=new en(m+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&m},_=new tn(25e3),w=new en(288),T=new en(32),S=0,C=0,k=(u=0,0),I=0,A=0;u<s;++u){var L=b(u),O=32767&u,R=v[L];if(g[O]=R,v[L]=O,I<=u){var N=s-u;if((S>7e3||k>24576)&&N>423){c=In(e,l,0,_,w,T,C,k,A,u-A,c),k=S=C=0,A=u;for(var P=0;P<286;++P)w[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,B=O-R&32767;if(N>2&&L==b(u-B))for(var U=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);B<=F&&--D&&O!=R;){if(e[u+x]==e[u+x-B]){for(var H=0;H<q&&e[u+H]==e[u+H-B];++H);if(H>x){if(x=H,M=B,H>U)break;var j=Math.min(B,H-2),G=0;for(P=0;P<j;++P){var z=u-B+P+32768&32767,W=z-g[z]+32768&32767;W>G&&(G=W,R=z)}}}B+=(O=R)-(R=g[O])+32768&32767}if(M){_[k++]=268435456|cn[x]<<18|un[M];var K=31&cn[x],V=31&un[M];C+=nn[K]+rn[V],++w[257+K],++T[V],I=u+x,++S}else _[k++]=e[u],++w[e[u]]}}c=In(e,l,o,_,w,T,C,k,A,u-A,c),!o&&7&c&&(c=kn(l,c+1,Ln))}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?en:4==e.BYTES_PER_ELEMENT?tn:$t)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+En(c)+r)}(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)),l=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&&Rn(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),Rn(a,l-8,n.d()),Rn(a,l-4,i),a}var Pn="undefined"!=typeof TextDecoder&&new TextDecoder;try{Pn.decode(Ln,{stream:!0})}catch(_r){}function xn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Mn(){try{return xn()&&"keepalive"in new Request("")}catch(e){return!1}}function Dn(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)}}function Bn(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=Nn((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Un(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Fn,qn="undefined"!=typeof navigator&&"sendBeacon"in navigator,Hn=Mn()?function(e,t,n,i){return new Promise((function(r){fetch(e,Bn({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Bn({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:Un(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(qn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Bn({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:Un(e)})}))}))};function jn(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 Gn(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 zn(){return Fn||(Fn=Gn("idb-queue","default")),Fn}function Wn(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))},jn(e.transaction)}function Kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn();return t("readwrite",(function(t){return Wn(t,e)}))}var Vn=!1;function Yn(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]:zn();return n("readwrite",(function(n){return n.put(e),jn(n.count()).then((function(e){if(!(e<=t.maxNumber))return Wn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return Kn(t,n)}))}function Jn(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]:zn();return Vn?Promise.resolve():Yn(e,t,n)}function Qn(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())},jn(t.transaction).then((function(){return i}))}))}function Xn(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())},jn(t.transaction).then((function(){return i}))}))}function Zn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn();return Xn(e,t,"next")}function $n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn();return Xn(e,t,"prev")}function ei(){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 ti(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function ni(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function ii(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{var n=function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function ri(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(ti((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var oi=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];rt(this,e),at(this,"config",void 0),at(this,"compress",void 0),at(this,"throttleControl",void 0),at(this,"withStore",void 0),at(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=Gn(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=ri(this.replayEntries.bind(this),t.throttleWait)}return st(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){ti((function(){return"Persisting to DB "+e.url})),Jn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),ti((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,ni((function(){return"push failed"}))}))};this.config.useIdle?ii(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]:zn();return Vn=!0,e("readwrite",(function(e){return e.clear(),jn(e.transaction).finally((function(){return Vn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,ni((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([]):Zn(t,this.withStore).catch((function(){return e.disablePersistence=!0,ni((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([]):$n(t,this.withStore).catch((function(){return e.disablePersistence=!0,ni((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){ti((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn();return Qn(e,t,"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,l=r.timestamp,c=r.statusCode,u=r.attemptCount;return ti((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),Hn(o,s,ei(a,e.config.headerName,u,c),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 ti((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:l,statusCode:c},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),ti((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:l,statusCode:c},null,2)})),Jn({url:o,body:s,timestamp:l,statusCode:c,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&&ni((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?ii(t):t()}}}]),e}(),si=function(){function e(){rt(this,e)}return st(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}(),ai=function(){function e(t,n){rt(this,e),at(this,"queue",void 0),at(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new oi(t,n.compress):new si}return st(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}();at(ai,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var li=[502,504],ci=[429,503],ui=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];rt(this,e),at(this,"url",void 0),at(this,"body",void 0),at(this,"config",void 0),at(this,"persistenceConfig",void 0),at(this,"compress",void 0),at(this,"timestamp",void 0),at(this,"isClearQueuePending",!1),at(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 st(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 Hn(e.url,e.body,t,e.compress)}),n,t).finally((function(){ti((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(ei(n,this.config.headerName,o,i)).then((function(i){var o,s,a,l;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),a=i;else if(ti((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 c,u;null===(c=(u=r.config).onIntermediateResult)||void 0===c||c.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return ti((function(){return"in memory retry in ".concat(d,"ms")})),(l=d,new Promise((function(e){return setTimeout(e,l)}))).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 di(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&&Mn()&&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,l=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},c=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:l.attemptLimit,statusCodes:l.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:c.attemptLimit,statusCodes:c.statusCodes,maxNumber:c.maxNumber,batchEvictionNumber:c.batchEvictionNumber,throttleWait:c.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:li,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:ci,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new ai(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return xn()?new ui(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||ci},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){Xt.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Xt.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var hi=function(){function e(t){rt(this,e),at(this,"host",void 0),this.host=t}return st(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&&di(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){Xt.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();Mn()&&"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){Xt.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;if(!Array.isArray(t)||t.length>0){var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;r||!xn()||"undefined"==typeof Promise?Dn(e,JSON.stringify(t),{headers:n}):Hn(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}(),pi="undefined"!=typeof window&&"undefined"!=typeof document,fi=/JSESSIONID="?([^";]+)"?/,mi="",gi=0;function vi(){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?fi:i;if(!mi||Date.now()-gi>n){var o=pi&&document.cookie.match(r);mi=o&&o[1]||"",gi=Date.now()}return mi}var yi=function(){function e(t){rt(this,e),at(this,"networkTransporter",void 0),at(this,"inactive",void 0),at(this,"mpName",void 0),at(this,"endpoint",void 0),at(this,"debug",void 0),this.networkTransporter=new hi(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=bi;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Ei;break;case"https://www.linkedin-ei.com/li/track":t=Ei;break;default:n=!0,t=Ei}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return st(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":vi(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Ei="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",bi="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function _i(e){return"string"==typeof e}function wi(e){return _i(e)?e:e.topicName||e.eventName}function Ti(e){return _i(e)?e:e.eventName}var Si,Ci,ki=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rt(this,e),at(this,"host",void 0),at(this,"cmoTransporter",void 0),at(this,"clientMonitoringInstanceId",Ut()),at(this,"currentContext",Li()),at(this,"appState",{}),at(this,"estimatedFragmentSize",0),at(this,"fragmentSizeLimit",void 0),at(this,"activeFragmentEvent",void 0),at(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new yi(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Ai(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return st(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=it(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,l={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(l),this.activeFragmentEvent.stats.previousInstanceEventStats.push(l)}},{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,l={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:Ti(t),eventTopic:wi(t)};this.estimatedFragmentSize+=JSON.stringify(l).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(l):this.findPreviousInstanceStat(r,(function(e){e.failures.push(l)})),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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,i=t.requestHeader,r=this.activeFragmentEvent;r.header=n,r.requestHeader=i,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=Ai(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.stats.eventsGenerated,!1,t)}}},{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=Oi(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Oi(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 Ii(e){return Si||(Si=new ki(e)),{getCurrentInstanceId:function(){return Si.getCurrentInstanceId()},logEventGenerated:function(e){return Si.logEventGenerated(e)},logEventReadyToSend:function(e){Si.logEventReadyToSend(e)},logEventSent:function(e){Si.logEventSent(e)},logPersistedEventSent:function(e,t){Si.logEventSent(t,e)},logNetworkResponseCode:function(e){Si.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Si)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Si.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Si.logFailedEvent(t,n,i,r,e)},flush:function(){Si.flush()},destroy:function(){Si=void 0},isDestroyed:function(){return void 0===Si},setCurrentContext:function(e){Si.setCurrentContext(e)},updateAppState:function(e){Si.updateAppState(e)}}}function Ai(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 Li(){return{pageKey:"unknown",pageInstance:qt("unknown")}}function Oi(e){return Array.isArray(e)?Bt(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Ft)}(e)?atob(e):Bt(function(e){return bt(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"}(Ci||(Ci={}));var Ri="PageViewEvent",Ni=function(){function e(t){var n=this;rt(this,e),at(this,"host",void 0),at(this,"queue",void 0),at(this,"preContextQueue",void 0),at(this,"debounceTimer",void 0),at(this,"unloadHandlers",void 0),at(this,"maxQueueSize",void 0),at(this,"flushDebounceTime",void 0),at(this,"trackingEventListeners",[]),at(this,"onHideHandler",(function(){n.forceFlush()})),at(this,"networkTransporter",void 0),at(this,"clientMonitoringConn",void 0),at(this,"clientSequenceNumberCounter",void 0),at(this,"isTimerRunning",void 0),at(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,Xt.on("internal:hide",this.onHideHandler),this.networkTransporter=new hi(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Ii(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return st(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(Ci.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,Ci.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(wi(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,Xt.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:qt("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;Kt("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){Xt.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){Kt("update",this.clientSequenceNumberCounter).catch((function(e){Xt.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=Gt(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,l=o.assign,c=e.meta.context,u=c.pageKey,d=c.pageInstance,h=function(e){return"string"==typeof e?e===Ri:e.eventName===Ri}(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&&l(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var g={header:l(m,e.meta.header||{}),requestHeader:l(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&l(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),l(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(Ci.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 Pi,xi=function(){function e(t,n){rt(this,e),this.clientBreadcrumbType=t,this.id=n}return st(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 Mi(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 Di(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Pi||(Pi={}));var Bi,Ui,Fi,qi=function(){function e(t,n){var i,r;if(rt(this,e),at(this,"transporter",void 0),at(this,"delegate",void 0),at(this,"currentContext",void 0),at(this,"appState",void 0),at(this,"previousAppContext",void 0),at(this,"customTransporters",void 0),at(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 Ni(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=Ii(t.host))}return st(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){Di(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Di(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Gt(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,Mi(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Gt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Gt(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=Ht(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=wi(e),o=void 0===t?"undefined":null===t?"null":dt(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(Ci.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var l=i||[];if(l.length>0){var c=l.map((function(e){return xi.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:c})}var u=l.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,l):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),o=i.length>0?this.addBreadcrumbsToEnvelope(r,i):r;return o}},{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(_i(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=wi(r.id),l="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var c=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Ci.UNKNOWN_EXECUTION_ERROR,r.id,l,c)}throw new Error(l)}return s.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return qt(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),Xt.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 Ht((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&&Gt(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}}}]),e}();function Hi(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(){function e(t,n){var i,r=this;rt(this,e),at(this,"core",void 0),at(this,"protocol",void 0),at(this,"throttleKeySet",new Set),at(this,"config",void 0),at(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},Xt.on("internal:error",this.reportTransporterError)}st(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,l=void 0===a?{}:a,c=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,E=this.core.host,b=E.appId,_=E.appVersion,w=E.service,T=E.serviceInstance,S=E.treeID,C=void 0===S?"":S,k=E.api,I=k.Promise,A=k.location,L=A.host,O=A.pathname,R=A.search,N=A.hash,P=void 0===N?"":N;if(l){t={};var x=new Map;Object.keys(l).forEach((function(e){x.set(e.toLowerCase(),l[e])})),t.callTreeId=x.get("x-li-uuid"),t.microsoftEdgeReference=x.get("x-msedge-ref"),t.pointOfPresenceId=x.get("x-li-pop"),t.fabric=x.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:b,e:{c:y,l:g,m:c,s:h,t:u,u:f},h:P,l:n.protocol,o:L,p:O,pageKey:e.pageKey,q:R,service:w,serviceInstance:T,serviceVersion:_,t:i,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=Hi(u+c+h+i.join("")+s);return this.throttleKeySet.has(D)?I.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(),Xt.off("internal:error",this.reportTransporterError)}}])}();var ji=function(){function e(){rt(this,e),at(this,"userTimingEntries",[]),at(this,"longTasks",[]),at(this,"resourceTimingEntries",[]),at(this,"cdnData",void 0)}return st(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(zi),cdnData:this.cdnData}}}]),e}(),Gi=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function zi(e){return Gi.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Wi(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};Ui=Object.assign(Object.assign({},n),t),Fi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Ui.root,n);var i=Ki(e,Bi.All,(function(){return Ki(e,Bi.Two,(function(){return Ki(e,Bi.One)}))}));if(i){var r=tr(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[];if(t.length>2&&t.length>Ui.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>Ui.maxNumberOfTries)return r;i.counter+=1;var s=lt(t);s.splice(o,1);var a=Yi(s);if(i.visited.has(a))return r;Qi(s)&&nr(s,n)&&(r.push(s),i.visited.set(a,!0),r=r.concat(e(s,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),Yi(i)}throw new Error("Selector was not found.")}function Ki(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=$i(function(e){var t=e.getAttribute("id");return t&&Ui.idName(t)?{name:"#"+lr(t,{isIdentifier:!0}),penalty:0}:null}(o))||$i.apply(void 0,lt(function(e){return Array.from(e.attributes).filter((function(e){return Ui.attr(e.name,e.value)})).map((function(e){return{name:"["+lr(e.name,{isIdentifier:!0})+'="'+lr(e.value)+'"]',penalty:.5}}))}(o)))||$i.apply(void 0,lt(function(e){return Array.from(e.classList).filter(Ui.className).map((function(e){return{name:"."+lr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||$i(function(e){var t=e.tagName.toLowerCase();return Ui.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===Bi.All)a&&(e=e.concat(e.filter(Zi).map((function(e){return Xi(e,a)}))));else if(t===Bi.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Zi).map((function(e){return Xi(e,a)}))));else if(t===Bi.One){var l=nt(e=e.slice(0,1),1)[0];a&&Zi(l)&&(e=[Xi(l,a)])}var c,u=it(e);try{for(u.s();!(c=u.n()).done;)c.value.level=s}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=Ui.seedMinLength&&(i=Vi(r,n)))return"break";o=o.parentElement,s++};o&&o!==Ui.root.parentElement&&"break"!==a(););return i||(i=Vi(r,n)),i}function Vi(e,t){var n=tr(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=it(t[0]);try{for(o.s();!(i=o.n()).done;){var s=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>Ui.threshold)return t?t():null;var i,r=it(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Qi(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Yi(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 Ji(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Qi(e){switch(Fi.querySelectorAll(Yi(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Yi(e)));case 1:return!0;default:return!1}}function Xi(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Zi(e){return"html"!==e.name&&!e.name.startsWith("#")}function $i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(er);return i.length>0?i:null}function er(e){return null!=e}function tr(e){return Array.from(e).sort((function(e,t){return Ji(e)-Ji(t)}))}function nr(e,t){return Fi.querySelector(Yi(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Bi||(Bi={}));var ir,rr=/[ -,\.\/:-@\[-\^`\{-~]/,or=/[ -,\.\/:-@\[\]\^`\{-~]/,sr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ar={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function lr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},ar),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,l=e.length;a<l;){var c=e.charAt(a++),u=c.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<l){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?rr.test(c)?"\\"+c:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==c||!r&&('"'==c&&i==c||"'"==c&&i==c)||r&&or.test(c)?"\\"+c:c;s+=d}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(sr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function cr(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 ur(e){var t=e||performance;return Math.round(t.now())}function dr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Wi(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=dr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function hr(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 pr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var fr,mr=function(){function e(t){rt(this,e),at(this,"hostApis",void 0),at(this,"hostnameProperties",void 0),at(this,"usedHostnames",void 0),at(this,"abortController",void 0),at(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 st(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Wt(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=zt(Wt(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,(ir=ir||i.createElement("a")).href=n,ir.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}(),gr=function(){function e(t,n,i,r){rt(this,e),at(this,"hostApis",void 0),at(this,"statics",void 0),at(this,"options",void 0),at(this,"allowTimingOrigin",void 0),at(this,"collectResourceTimings",void 0),at(this,"collectCdnData",void 0),at(this,"perfObserver",void 0),at(this,"renderTimings",new Map),at(this,"urlToTreeId",new Map),at(this,"cdnDataProvider",void 0),at(this,"observables",new ji),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 mr(t))}return st(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(ir=ir||t.createElement("a")).href=e,ir.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:cr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||cr(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=hr(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,vr.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?zt(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=hr(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:pr(this.renderTimings),networkInformationMetrics:yr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),vr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function yr(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"}(fr||(fr={}));var Er=(at(tt={},"web-ui-framework","EMBER"),at(tt,"app-id","linkedin.rum.tracking"),at(tt,"app-version","unknown"),at(tt,"is-single-page-app",!0),at(tt,"user-timing-mark-enabled",!1),at(tt,"user-timing-measure-enabled",!0),at(tt,"beacon-source","apps"),at(tt,"enable-rs-timing",!0),at(tt,"enable-cdn-tracking",!1),at(tt,"async-plugins-timeout",5e3),at(tt,"beacon-timeout",3e4),at(tt,"enable-memory-measurement",!1),at(tt,"pageKeyPrefix",""),tt),br=function(){function e(t,n,i){rt(this,e),at(this,"featureName",void 0),at(this,"trackingCore",void 0),at(this,"rumConfig",void 0),at(this,"observing",!1),at(this,"basePageTreeId",void 0),at(this,"startPageInstance",void 0),at(this,"startMemory",void 0),at(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return st(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)||qt("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:ur(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}();at(br,"checkpoints",[1,3,10,30,90,180,300]);var _r,wr,Tr,Sr,Cr,kr=st((function e(t,n,i){rt(this,e),at(this,"webUIFramework",void 0),at(this,"timeSource",void 0),at(this,"isSinglePageApp",void 0),at(this,"appRenderMode",void 0),at(this,"isAppRenderFailed",void 0),at(this,"pageLoadMode","INITIAL"),at(this,"isSSL",void 0),at(this,"treeId",void 0),at(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})),Ir=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)}},Ar=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){}},Lr=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)},Or=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Rr=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)))}},Nr=-1,Pr=function(){return"hidden"===document.visibilityState?0:1/0},xr=function(){Lr((function(e){var t=e.timeStamp;Nr=t}),!0)},Mr=function(){return Nr<0&&(Nr=Pr(),xr(),Or((function(){setTimeout((function(){Nr=Pr(),xr()}),0)}))),{get firstHiddenTime(){return Nr}}},Dr=!1,Br=-1,Ur=function(e,t){Dr||(function(e,t){var n,i=Mr(),r=Ir("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:Ar("paint",o);(s||a)&&(n=Rr(e,r,t),s&&o(s),Or((function(i){r=Ir("FCP"),n=Rr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){Br=e.value})),Dr=!0);var n,i=function(t){Br>-1&&e(t)},r=Ir("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())}},l=Ar("layout-shift",a);l&&(n=Rr(i,r,t),Lr((function(){l.takeRecords().map(a),n(!0)})),Or((function(){o=0,Br=-1,r=Ir("CLS",0),n=Rr(i,r,t)})))},Fr={passive:!0,capture:!0},qr=new Date,Hr=function(e,t){_r||(_r=t,wr=e,Tr=new Date,zr(removeEventListener),jr())},jr=function(){if(wr>=0&&wr<Tr-qr){var e={entryType:"first-input",name:_r.type,target:_r.target,cancelable:_r.cancelable,startTime:_r.timeStamp,processingStart:_r.timeStamp+wr};Sr.forEach((function(t){t(e)})),Sr=[]}},Gr=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(){Hr(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,Fr),removeEventListener("pointercancel",i,Fr)};addEventListener("pointerup",n,Fr),addEventListener("pointercancel",i,Fr)}(t,e):Hr(t,e)}},zr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Gr,Fr)}))},Wr=function(e,t){var n,i=Mr(),r=Ir("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=Ar("first-input",o);n=Rr(e,r,t),s&&Lr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Or((function(){var i;r=Ir("FID"),n=Rr(e,r,t),Sr=[],wr=-1,_r=null,zr(addEventListener),i=o,Sr.push(i),jr()}))},Kr={},Vr=function(e,t){var n,i=Mr(),r=Ir("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=Ar("largest-contentful-paint",o);if(s){n=Rr(e,r,t);var a=function(){Kr[r.id]||(s.takeRecords().map(o),s.disconnect(),Kr[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Lr(a,!0),Or((function(i){r=Ir("LCP"),n=Rr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Kr[r.id]=!0,n(!0)}))}))}))}},Yr=["LCP","FID","CLS"],Jr={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Qr={},Xr=function(){var e;if(!pi)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}(),Zr=!1,$r=[],eo={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function to(){var e=!0===window.__test__resetWebVitalsState;if(!Zr||e){e&&($r=[]),Yr.forEach(no);var t=Symbol();Cr=t,[Vr,Wr,Ur].forEach((function(e){return e(io.bind(null,t),!0)})),[Vr,Wr,Ur].forEach((function(e){return e(ro.bind(null,t))})),Zr=!0}}function no(e){Qr[e]={name:e,value:-1,updateHistory:[]};var t=eo[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Qr[e].value=-2)}function io(e,t){if(e===Cr){var n=Qr[t.name],i=ur();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),$r.forEach((function(e){return e(t,i,!1)}))}}function ro(e,t){e===Cr&&$r.forEach((function(e){return e(t,ur(),!0)}))}var oo=function(){function e(t,n){rt(this,e),at(this,"basePageTreeId",void 0),at(this,"basePageKey",void 0),at(this,"observing",!1),at(this,"appContextMap",new Map),at(this,"rumConfig",void 0),at(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return st(e,[{key:"startObserving",value:function(){var e,t,n=this;to(),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",Yr.forEach((function(e){var t;-2===(null===(t=Qr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),$r.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=Qr[e],n={name:Jr[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=Qr[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Xr},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:dr(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:dr(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":dr(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;rt(this,e),at(this,"core",void 0),at(this,"config",void 0),at(this,"collector",void 0),at(this,"boomerangStart",-1),at(this,"webVitalsObserver",void 0),at(this,"appMemoryObserver",void 0),at(this,"pageMemoryObserver",void 0),at(this,"liveTokens",new Set),at(this,"stateWM",new WeakMap),at(this,"activeToken",void 0),at(this,"isInitial",void 0),at(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({},Er),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 gr(i.host.api,new kr(t,this.config,i.host),this.config,s),this.collector.startObserving(),Xt.before("internal:hide",this.beforeHideHandlerBound)}st(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:cr(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 br("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new br("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new oo(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")),l=cr(this.core.host.api.performance,a);s.endProps={renderCompleteTime:l,isImpactedByHiddenWindow:r,rumKey:o};var c=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=i.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){i.fireRumEvent(e,c)})):i.fireRumEvent(e,c)}),this.config["beacon-timeout"]),this.activeToken=void 0}else Xt.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;Xt.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,l=o.rumKey,c=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:l||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:c,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 so="undefined"!=typeof window&&"undefined"!=typeof performance,ao="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function lo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",co(n,t))}function co(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=W(document),i=V(document),r=et();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 uo(e,t){const n=V(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function ho(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!po(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function po(e){return"string"==typeof e&&"=="===e.slice(-2)}function fo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Je({},e),n=x(window.location.href,"originalReferer")||x(window.location.href,"original_referer");return n&&(t.requestHeader=Je(Je({},t.requestHeader),{},{referer:n})),mo(t)}function mo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Je({},e),n=et();return n&&(t.requestHeader=Je(Je({},t.requestHeader),{},{theme:n.toUpperCase()})),t}!function(){function e(t,n){rt(this,e),at(this,"featureKey",void 0),at(this,"productName",void 0),at(this,"endPageInstance",void 0),at(this,"startPageInstance",void 0),at(this,"isCanceled",!1),at(this,"featureIdentifier",void 0),at(this,"name",void 0),at(this,"startTime",void 0),at(this,"duration",void 0),at(this,"marks",[]),at(this,"spanStarts",new Map),at(this,"spans",[]),at(this,"isSpanContainer",!1),at(this,"basePageTreeId",void 0),at(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}st(e,[{key:"start",value:function(e){this.startPageInstance=e,so&&(this.startTime=ur(),ao&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){so&&(this.marks.push({name:e,startTime:ur()}),ao&&(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){so&&(this.spanStarts.set(e,ur()),ao&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(so&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:ur()-n}),ao&&(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,so&&(this.duration=ur()-this.startTime,ao&&!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(so){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||qt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(so){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:go,ESCAPE:vo}=X;class yo{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 ge(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=$(e.key),n=t===go&&document.activeElement===this._exitButtonEl;(t===vo||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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),F(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{lo(e,"ajax",this._pageKey||"".concat(this._el.id))}):(F(this._wrapperEl,"afterOpen"),Promise.resolve());F(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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),F(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("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}function Eo(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 bo=/ /g,_o=/[\s\u0000<>"]|%00/,wo=/\\/,To=/([.]|%2e){2}/i;let So=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 Co(e){let t;if("string"!=typeof e)return Eo("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(Eo("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(bo,"+")),!So.test(t))return Eo("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(_o.test(t))return Eo("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n,i=t.split("?")[0],r=!1;try{n=decodeURI(i)}catch(e){r=!0}return r?(Eo("jSecure Error: malformed url path detected: "+i),"invalid://"):wo.test(i)||To.test(i)||To.test(n)?(Eo("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const ko={redirect(e){window&&(window.location.href=e)}};function Io(e){return e.scrollHeight>e.offsetHeight}function Ao(e,t){const n=R(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Lo(e){return e.classList.contains("hidden")}function Oo(e){No([e])}function Ro(e){Po([e])}function No(e){Ao(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Po(e){Ao(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function xo(e){if(!e)return"";return e.split("").map(e=>String.fromCharCode(e.charCodeAt(0)+17)).join("")}function Mo(){return document.documentElement.classList.contains("ios")}function Do(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}const Bo={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Uo(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function Fo(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=z(document),r=Uo();return window.tracking.then(o=>(t=o.generateTrackingId(),Te(e,Je(Je({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[Bo.EFFECTIVE_CONNECTION_TYPE]:r,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":i,"X-li-page-instance":"urn:li:page:".concat(i,";").concat(t)}}))))}function qo(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&&Io(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")})}}function Ho(e,t){return e.replace(new RegExp("".concat(t,"=[^&]*&?")),"").replace(new RegExp("[&?]$"),"")}function jo(){if(!x(window.location.href,"pwa"))return;const e=Ho(window.location.href,"pwa");window.history.replaceState({},document.title,e)}function Go(){let e=!1;if(window.matchMedia("(display-mode: standalone)").matches){null===sessionStorage.getItem("launchedFromHomeScreen")&&(e=!0,sessionStorage.setItem("launchedFromHomeScreen",""))}return e}function zo(e){const t=window.location.hash;if(t&&0===t.indexOf(e)){const e=window.location.href.split("#")[0];window.history.replaceState({},document.title,e)}}function Wo(e){e&&(document.cookie="".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT;"))}function Ko(e,t,n,i){let r="";if(n){const e=new Date;e.setTime(e.getTime()+n),r="expires=".concat(e.toUTCString())}U(e)&&Wo(e);const o=i?"domain=.".concat(i):"",s="".concat(e,"=").concat(t,";").concat(r,";path=/;").concat(o),a="".concat(s,";").concat("secure;samesite=none");document.cookie=a,U(e)||(document.cookie=s)}function Vo(){const e=D(window.location.href,"pwa","noCache",!0);window.location.replace(e)}function Yo(){let e=!1;return(null===sessionStorage.getItem("previousPage")||1===window.history.length)&&(e=!0),e}function Jo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=n.querySelector('meta[name="'.concat(e,'"]'));i&&i.setAttribute("content",t)}var Qo=Object.freeze({__proto__:null,PREVIOUS_PAGE_KEY:"previousPage",NO_CACHE_PARAM_KEY:"pwa",NO_CACHE_PARAM_VALUE:"noCache",LAUNCHED_FROM_HOME_SCREEN:"launchedFromHomeScreen",isElementHidden:Lo,hideElement:Oo,showElement:Ro,hideElements:No,showElements:Po,conceal:xo,getCsrfToken:function(){let e=U("JSESSIONID");return e&&(e=e.replace(/(^"|"$)/g,"")),e||""},cloneWithRemovedElements:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i="string"==typeof e?document.querySelector(e):e,r=i.cloneNode(n.deep),o=Array.prototype.concat(t).reduce((e,t)=>{if("string"==typeof t){const n=r.querySelectorAll(t);for(const t of n)e.push(t)}return e},[]);for(const e of o)e.parentElement.removeChild(e);return r},disableButton:function(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")},enableButton:function(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")},isSafari:function(){return document.documentElement.classList.contains("safari")},isIOS:Mo,isMobile:function(){return document.documentElement.classList.contains("android")||Mo()},getCurrentPage:Do,HEADERS:Bo,getEffectiveConnectionType:Uo,requestJSONWithDefaultHeaders:Fo,initExpandButton:qo,removeQueryParameter:Ho,removeNoCacheParam:jo,isLaunchedFromHomeScreen:Go,removeHashFromUrl:zo,deleteCookie:Wo,setCookie:Ko,hardReloadPage:Vo,isFirstPageOfSession:Yo,setMetaTagContent:Jo,convertIdToUrn:function(e,t){return Boolean(e)&&Boolean(t)&&"urn:li:".concat(t,":").concat(e)}});const Xo="prev",Zo="next";class $o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)throw new Error("No element passed in");this._el=e,this._previousButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=e.querySelector(".slide-list__list"),this._slideNavDisabled="true"===this._el.dataset.disabled,this._dragLimit=this._listEl.offsetWidth,this._items=[...this._listEl.children],this._lock={},this._currentPage=t,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=e.querySelector(".".concat("slide-list__header-nav--minimal")),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),this._indicatorElement=e.querySelector(".".concat("slide-list__indicator-button-container")),this._indicatorClickHandler=this._handleIndicatorClick.bind(this),this._noMorePreviousContentAlert=this._el.dataset.noMorePreviousContentAlert,this._noMoreNextContentAlert=this._el.dataset.noMoreNextContentAlert,!("ontouchstart"in window)&&this._slideNavDisabled||(this._initCalc(),window.addEventListener("resize",this._handleWindowResize.bind(this)),"ontouchstart"in window&&(this._el.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._el.addEventListener("touchmove",this._handleTouchMove.bind(this)),this._el.addEventListener("touchend",this._handleTouchEnd.bind(this))),e.querySelector(".slide-list__header-nav")&&this._el.addEventListener("click",this._handleScrollAction.bind(this)))}next(e){return e=e||1,this._currentPage+e<=this._pageTranslates.length-1&&(this._currentPage+=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}prev(e){return e=e||1,this._currentPage-e>=0&&(this._currentPage-=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}goToItem(e){const t=Number(e)-this._currentPage;if(0===t)return this._currentPage;t<0?this.prev(Math.abs(t)):this.next(t)}_handleIndicatorClick(e){const t=e.target.closest("[data-position]");t&&this.goToItem(t.dataset.position)}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_updateIndicator(){this._indicatorElement&&(this._pageItems.length===this._items.length?(Ro(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(Oo(this._indicatorElement),this._indicatorElement.isActive=!1,this._indicatorElement.removeEventListener("click",this._indicatorClickHandler)))}_initCalc(){this._pageTranslates=this._getPageTranslates(),this._pageTranslates[this._currentPage]||(this._currentPage=0),this._updateIndicator(),this._updateSlideButtons(!0),this._updateListPosition(),this._isResizing=!1,this._updateFocusableElements()}_getPageTranslates(){const e=this._listEl.offsetWidth,t=this._listEl.scrollWidth,n=this._isRtl?e-this._items[0].offsetLeft-this._items[0].offsetWidth:this._items[0].offsetLeft,i=t-e;let r=[0];const o=[new Set],s=[];let a=0;for(let t=0;t<this._items.length;t+=1){const l=r[r.length-1],c=o[r.length-1],u=this._items[t].offsetLeft,d=this._items[t].offsetWidth;let h=Math.abs(this._isRtl?u+d:u),p=Math.abs(this._isRtl?u:u+d);if(s.push(h),this._isRtl&&u>=0)c.add(this._items[t]);else if(0===h&&0===n||0===a)a=p,c.add(this._items[t]);else{if(p>l+e){if(h>=i){o.push(new Set(this._items.slice(t)));break}r.push((this._isRtl?a:h)-n),o.push(new Set([this._items[t]]))}else c.add(this._items[t]);a=p}}return r.push(i),s.forEach((e,t)=>{e>=i&&o[o.length-1].add(this._items[t])}),this._pageItems=o,r}_updateFocusableElements(){const e=this._pageItems[this._currentPage],t=this._items.filter(t=>!e.has(t));for(const e of this._items)e.removeAttribute("aria-hidden");for(const[e,t]of this._prevTabIndexMap)null===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t);for(const e of t){e.setAttribute("aria-hidden","true");e.querySelectorAll(oe).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=C(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Xo?this.prev():n===Zo&&this.next())}_fireScrollEvent(){F(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],0)}_updateIndicatorButtons(){if(this._indicatorElement&&this._indicatorElement.isActive){const e=this._el.querySelector(".slide-list__indicator-button-container > .slide-list__indicator--selected");e&&(e.classList.remove("slide-list__indicator--selected"),e.setAttribute("aria-current",!1));const t=this._el.querySelector(".".concat("slide-list__indicator-button-container"," > :nth-child(").concat(this._currentPage+1,")"));t.classList.add("slide-list__indicator--selected"),t.setAttribute("aria-current",!0)}}_updateSlideButtons(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._previousButton&&this._nextButton){if(this._previousButton.disabled=!1,this._nextButton.disabled=!1,!this._pageTranslates[1]||this._pageTranslates[1]<0)return this._previousButton.disabled=!0,void(this._nextButton.disabled=!0);0===this._currentPage&&(this._previousButton.disabled=!0,this._setTextInLiveRegion(this._noMorePreviousContentAlert,e)),this._currentPage!==this._pageTranslates.length-1&&0!==this._pageTranslates.length||(this._nextButton.disabled=!0,this._setTextInLiveRegion(this._noMoreNextContentAlert,e))}this._updateIndicatorButtons()}_setTextInLiveRegion(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this._el.querySelector(".slide-list__a11y-notification");if(!t&&n){const t=document.createTextNode(e);n.appendChild(t),setTimeout(()=>{n.removeChild(t)},1e3)}}_resetTouchEvents(){this._dragging=!1,this._dragCanceled=!1,this._listEl.classList.remove("slide-list__list--dragging"),this._lock.left=this._isRtl?this._currentPage===this._pageTranslates.length-1:0===this._currentPage,this._lock.right=this._isRtl?0===this._currentPage:this._currentPage===this._pageTranslates.length-1,this._dragThresholdMet=!1,this._t={current:{x:0,y:0}}}_handleTouchStart(e){this._resetTouchEvents(),this._t.start=this._getEventPosition(e),this._dragging=!0,this._listEl.classList.add("slide-list__list--dragging")}_handleTouchMove(e){if(!this._dragging||this._dragCanceled)return;let t=this._getEventPosition(e);this._t.current={x:this._t.start.x-t.x,y:this._t.start.y-t.y},this._canDrag()?(this._dragThresholdMet=!0,e.preventDefault(),this._lock.left&&this._t.current.x<0?this._t.current.x=this._t.current.x*-this._dragLimit/(this._t.current.x-this._dragLimit):this._lock.right&&this._t.current.x>0&&(this._t.current.x=this._t.current.x*this._dragLimit/(this._t.current.x+this._dragLimit)),this._updateTranslateXY((this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage])-this._t.current.x)):this._isVerticalScrolling()&&(this._dragCanceled=!0)}_handleTouchEnd(){this._dragging&&(!this._dragCanceled&&Math.abs(this._t.current.x)>20&&(this._t.current.x>0&&!this._lock.right?this._isRtl?this._currentPage--:this._currentPage++:this._t.current.x<0&&!this._lock.left&&(this._isRtl?this._currentPage++:this._currentPage--),this._dispatchPageChangeEvent()),this._resetTouchEvents(),this._updateSlideButtons(),this._updateListPosition())}_getEventPosition(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}_isVerticalScrolling(){return Math.abs(this._t.current.x)<Math.abs(this._t.current.y)&&Math.abs(this._t.current.y)>10}_canDrag(){return this._dragThresholdMet||Math.abs(this._t.current.x)>Math.abs(this._t.current.y)&&Math.abs(this._t.current.x)>10}_updateTranslateXY(e,t){this._listEl.style.transform="translate3d(".concat(e||0,"px, ").concat(t||0,"px, 0px)")}_dispatchPageChangeEvent(){F(this._el,"pagechange",{pageNumber:this._currentPage})}}var es=Object.hasOwnProperty,ts=Object.setPrototypeOf,ns=Object.isFrozen,is=Object.getPrototypeOf,rs=Object.getOwnPropertyDescriptor,os=Object.freeze,ss=Object.seal,as=Object.create,ls="undefined"!=typeof Reflect&&Reflect,cs=ls.apply,us=ls.construct;cs||(cs=function(e,t,n){return e.apply(t,n)}),os||(os=function(e){return e}),ss||(ss=function(e){return e}),us||(us=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 ds,hs=ws(Array.prototype.forEach),ps=ws(Array.prototype.pop),fs=ws(Array.prototype.push),ms=ws(String.prototype.toLowerCase),gs=ws(String.prototype.match),vs=ws(String.prototype.replace),ys=ws(String.prototype.indexOf),Es=ws(String.prototype.trim),bs=ws(RegExp.prototype.test),_s=(ds=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return us(ds,t)});function ws(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 cs(e,t,i)}}function Ts(e,t){ts&&ts(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=ms(i);r!==i&&(ns(t)||(t[n]=r),i=r)}e[i]=!0}return e}function Ss(e){var t=as(null),n=void 0;for(n in e)cs(es,e,[n])&&(t[n]=e[n]);return t}function Cs(e,t){for(;null!==e;){var n=rs(e,t);if(n){if(n.get)return ws(n.get);if("function"==typeof n.value)return ws(n.value)}e=is(e)}return function(e){return console.warn("fallback value for",e),null}}var ks=os(["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"]),Is=os(["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"]),As=os(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ls=os(["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"]),Os=os(["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"]),Rs=os(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ns=os(["#text"]),Ps=os(["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"]),xs=os(["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"]),Ms=os(["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"]),Ds=os(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bs=ss(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Us=ss(/<%[\s\S]*|[\s\S]*%>/gm),Fs=ss(/^data-[\-\w.\u00B7-\uFFFF]/),qs=ss(/^aria-[\-\w]+$/),Hs=ss(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),js=ss(/^(?:\w+script|data):/i),Gs=ss(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zs="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 Ws(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 Ks=function(){return"undefined"==typeof window?null:window},Vs=function(e,t){if("object"!==(void 0===e?"undefined":zs(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var Ys=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ks(),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,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=Cs(m,"cloneNode"),v=Cs(m,"nextSibling"),y=Cs(m,"childNodes"),E=Cs(m,"parentNode");if("function"==typeof s){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var _=Vs(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,C=T.createNodeIterator,k=T.createDocumentFragment,I=T.getElementsByTagName,A=i.importNode,L={};try{L=Ss(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==L;var R=Bs,N=Us,P=Fs,x=qs,M=js,D=Gs,B=Hs,U=null,F=Ts({},[].concat(Ws(ks),Ws(Is),Ws(As),Ws(Os),Ws(Ns))),q=null,H=Ts({},[].concat(Ws(Ps),Ws(xs),Ws(Ms),Ws(Ds))),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,W=!0,K=!0,V=!1,Y=!1,J=!1,Q=!1,X=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=Ts({},["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,le=Ts({},["audio","video","img","source","image","track"]),ce=null,ue=Ts({},["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="text/html",Ee=void 0,be=null,_e=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":zs(e))||(e={}),e=Ss(e),U="ALLOWED_TAGS"in e?Ts({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?Ts({},e.ALLOWED_ATTR):H,ce="ADD_URI_SAFE_ATTR"in e?Ts(Ss(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?Ts(Ss(le),e.ADD_DATA_URI_TAGS):le,oe="FORBID_CONTENTS"in e?Ts({},e.FORBID_CONTENTS):se,G="FORBID_TAGS"in e?Ts({},e.FORBID_TAGS):{},z="FORBID_ATTR"in e?Ts({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,X=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)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ge?function(e){return e}:ms,Y&&(K=!1),$&&(Z=!0),re&&(U=Ts({},[].concat(Ws(Ns))),q=[],!0===re.html&&(Ts(U,ks),Ts(q,Ps)),!0===re.svg&&(Ts(U,Is),Ts(q,xs),Ts(q,Ds)),!0===re.svgFilters&&(Ts(U,As),Ts(q,xs),Ts(q,Ds)),!0===re.mathMl&&(Ts(U,Os),Ts(q,Ms),Ts(q,Ds))),e.ADD_TAGS&&(U===F&&(U=Ss(U)),Ts(U,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=Ss(q)),Ts(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&Ts(ce,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=Ss(oe)),Ts(oe,e.FORBID_CONTENTS)),ne&&(U["#text"]=!0),J&&Ts(U,["html","head","body"]),U.table&&(Ts(U,["tbody"]),delete G.tbody),os&&os(e),be=e)},Se=Ts({},["mi","mo","mn","ms","mtext"]),Ce=Ts({},["foreignobject","desc","title","annotation-xml"]),ke=Ts({},Is);Ts(ke,As),Ts(ke,Ls);var Ie=Ts({},Os);Ts(Ie,Rs);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=ms(e.tagName),i=ms(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(ke[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[i]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=Ts({},["title","style","font","a","script"]);return!Ie[n]&&(r[n]||!ke[n])}return!1},Le=function(e){fs(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Oe=function(e,t){try{fs(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){fs(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(X)e="<remove></remove>"+e;else{var i=gs(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=_?_.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?I.call(t,J?"html":"body")[0]:J?t.documentElement:s},Ne=function(e){return C.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},xe=function(e){return"object"===(void 0===a?"undefined":zs(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":zs(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){O[e]&&hs(O[e],(function(e){e.call(n,t,i,be)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Le(e),!0;if(gs(e.nodeName,/[\u0080-\uFFFF]/))return Le(e),!0;var i=Ee(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:U}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&bs(/<[/\w]/g,e.innerHTML)&&bs(/<[/\w]/g,e.textContent))return Le(e),!0;if("select"===i&&bs(/<template/i,e.innerHTML))return Le(e),!0;if(!U[i]||G[i]){if(ne&&!oe[i]){var r=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),v(e))}if(!G[i]&&Ue(i)){if(j.tagNameCheck instanceof RegExp&&bs(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Le(e),!0}return e instanceof l&&!Ae(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i||!bs(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=vs(t,R," "),t=vs(t,N," "),e.textContent!==t&&(fs(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},Be=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(K&&!z[t]&&bs(P,t));else if(W&&bs(x,t));else if(!q[t]||z[t]){if(!(Ue(e)&&(j.tagNameCheck instanceof RegExp&&bs(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&bs(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&bs(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(ce[t]);else if(bs(B,vs(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ys(n,"data:")||!ae[e]){if(V&&!bs(M,vs(n,D,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},Fe=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;Me("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(i=Es(t.value),r=Ee(c),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Oe(c,e),a.keepAttr))if(bs(/\/>/i,i))Oe(c,e);else{Y&&(i=vs(i,R," "),i=vs(i,N," "));var d=Ee(e.nodeName);if(Be(d,r,i))try{u?e.setAttributeNS(u,c,i):e.setAttribute(c,i),ps(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,i=Ne(t);for(Me("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Me("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),Fe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var s=void 0,l=void 0,c=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw _s("toString is not a function");if("string"!=typeof(e=e.toString()))throw _s("dirty is not a string, aborting")}if(!n.isSupported){if("object"===zs(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(xe(e))return t.toStaticHTML(e.outerHTML)}return e}if(Q||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=Ee(e.nodeName);if(!U[h]||G[h])throw _s("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(l=(s=Re("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?s=l:s.appendChild(l);else{if(!Z&&!Y&&!J&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?w:""}s&&X&&Le(s.firstChild);for(var p=Ne(ie?e:s);c=p.nextNode();)3===c.nodeType&&c===u||De(c)||(c.content instanceof o&&qe(c.content),Fe(c),u=c);if(u=null,ie)return e;if(Z){if($)for(d=k.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=J?s.outerHTML:s.innerHTML;return Y&&(f=vs(f,R," "),f=vs(f,N," ")),_&&ee?_.createHTML(f):f},n.setConfig=function(e){Te(e),Q=!0},n.clearConfig=function(){be=null,Q=!1},n.isValidAttribute=function(e,t,n){be||Te({});var i=Ee(e),r=Ee(t);return Be(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],fs(O[e],t))},n.removeHook=function(e){O[e]&&ps(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Js={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Xs(null,e,t);return n.innerHTML}function Xs(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Je({},Js);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Ys.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Zs=Object.freeze({__proto__:null,sanitizedMarkupOptions:Js,getSanitizedMarkup:Qs,setSanitizedMarkup:Xs}),$s="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",ea=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",ta=["b","del","em","i","s","strong","sub","sup"],na=ta.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"]),ia=[$s,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function ra(){}var oa,sa,aa=(sa=/[&<>"'\u0000\\=]/g,oa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(sa,(function(e){return oa[e]}))}),la=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",l=e[ea],i[a]=l,l)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,l}))}}();var ca=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function ua(e){return/[<&]/.test(e)}var da,ha=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)};function pa(e){e=ca(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",ha(e,(function(e,s){t=e.tags||na,n=e.attrs||ia,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function fa(e){return pa({tags:e=e||na,checkUrlAttrs:!0})}function ma(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!fa(n).test(e):i?!ma.R_UNSAFE_CUSTOM_ELEMENT.test(e):!ma.R_UNSAFE_HTML.test(e)}function ga(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function va(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 ra||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?aa(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return ua(i)&&!ma(i,n)&&(i=ga(i),Eo("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ya(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}ma.R_UNSAFE_HTML=fa(),ma.R_UNSAFE_CUSTOM_ELEMENT=pa([{tags:na,checkUrlAttrs:!0},{tags:[(da={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[$s,da.attrs].join("|"),checkUrlAttrs:!1}]);var Ea={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,"",""]};Ea.optgroup=Ea.option,Ea.tbody=Ea.tfoot=Ea.colgroup=Ea.caption=Ea.thead,Ea.th=Ea.td;var ba=/<([\w:]+)/;function _a(e,t){var n,i,r,o,s,a,l,c=t.createDocumentFragment(),u=[];for(s=0,l=e.length;s<l;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||c.appendChild(t.createElement("div")),n=(ba.exec(o)||["",""])[1].toLowerCase(),Sa(r,(i=Ea[n]||Ea._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ya(u,r.childNodes),(r=c.firstChild).textContent=""}else ya(u,o.nodeType?[o]:o);for(c.textContent="",o=u[s=0];o;)c.appendChild(o),o=u[++s];return c}var wa=va,Ta=va;function Sa(e,t,n){var i=va(t,n);return ua(i)?e.innerHTML=i:e[ea]=i,i}function Ca(e,t){if(!(this instanceof Ca))return new Ca(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}Ca.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new ra,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(ma(e,this._options)||(n=e,e=ga(e),Eo("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var ka={ALLOWED_TAGS:na,FORMATTING_TAGS:ta,htmlEncode:aa,htmlUnencode:la,log:Eo,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 Ca?r:aa(r))})),Ta(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=_a([e],t);else{if(!ca(e))return e;n=_a(e,t)}return ya([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:wa,reEncode:function(e){return aa(la(e))},_redirector:ko,redirect:function(e){const t=Co(e);t===e&&ko.redirect(t)},sanitizeHTML:Ta,sanitizeUrl:Co,setElementContent:Sa,text:function(e){return Eo("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),aa(e)},unsafe:function(e){return e},UnsafeString:Ca};const Ia=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Aa{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(Ia).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(".toast");Array.from(e).forEach(e=>{this._removeToast(e)})}bindEvents(){this._el.addEventListener("click",e=>{const t=C(e.target,".toast__dismiss-btn");if(t){const e=C(t,".toast");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(".toast__message");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===Ia.CAUTION?l="text-color-text-caution":e===Ia.ERROR?l="text-color-text-negative":e===Ia.SUCCESS&&(l="text-color-text-positive"),a.classList.add(l),Xs(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",ka.sanitizeUrl(M(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(".toast__message");return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),t.focus()}),500),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),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()})}}Qe(Aa,"TOAST_TYPES",Ia);const La={};function Oa(e){const t=document.getElementById(e);if(!t&&void 0!==La[e])return La[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),La[e]=null,La[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):(La[e]=n,t.parentNode.removeChild(t),La[e])}const Ra={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},Na=Object.keys(Ra).map(e=>Ra[e]);class Pa{constructor(e){let{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document,shareTriggerElement:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");this.navigator=t,this.window=n,this.document=i,this.shareTriggerElement=r,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"",this._nonEncodedShareUrl=this.el.getAttribute("data-share-url")||this.window.location.href,this._encodedShareUrl=this._nonEncodedShareUrl&&this.window.encodeURIComponent(this._nonEncodedShareUrl)}init(e,t){e.addEventListener("click",e=>{let{target:n}=e;const i=n.classList.contains(t)?n:C(n,".".concat(t));i&&this.share(i.dataset.shareService)})}_getServiceUrl(e){this.checkAndUpdateUtm(e);return{linkedin:"https://www.".concat(Y(this.document),"/shareArticle?mini=true&url=").concat(this._encodedShareUrl,"&title=").concat(this._encodedShareMessage),twitter:"https://twitter.com/intent/tweet?url=".concat(this._encodedShareUrl,"&text=").concat(this._encodedShareMessage),facebook:"https://www.facebook.com/sharer/sharer.php?u=".concat(this._encodedShareUrl)}[e]||""}share(e){if(Na.includes(e)){const r=this._nonEncodedShareUrl||this.window.location.href;if("copy"===e)try{this.navigator.clipboard?(this.checkAndUpdateUtm(e),this.navigator.clipboard.writeText(this._nonEncodedShareUrl),this.displayToast({url:r})):this.displayToast({showError:!0})}catch(e){this.displayToast({showError:!0})}finally{var t,n,i;null===(t=this.collapsibleDropdown)||void 0===t||null===(n=t.dropdownContentEl)||void 0===n||null===(i=n.classList)||void 0===i||i.add("hidden")}else{const t=this._getServiceUrl(e,r);this.window.open(t,e,"height=600,width=1000")}}}displayToast(e){let{showError:t,url:n}=e;if(this.document.getElementById("toasts")){this.collapsibleDropdown.shouldReturnFocusToTrigger(!1),this.collapsibleDropdown.close();const e="social-share",i=new Aa({removeToastCallback:this.removeToastCallback.bind(this)});i.clearAllToasts();const r=t?"error":"success";i.trigger(r,Oa("i18n_copy_cta_message_".concat(r)),e,{text:"View",url:n||this.window.location.href,trk:e})}}checkAndUpdateUtm(e){if(this._nonEncodedShareUrl.includes("utm_campaign")||"linkedin"===e)return;["utm_source","utm_content","utm_medium"].some(e=>this._nonEncodedShareUrl.includes(e))&&(this._nonEncodedShareUrl="".concat(this._nonEncodedShareUrl,"&utm_campaign=").concat(e),this._encodedShareUrl=this.window.encodeURIComponent(this._nonEncodedShareUrl))}removeToastCallback(){var e;this.collapsibleDropdown.shouldReturnFocusToTrigger(),null===(e=this.shareTriggerElement)||void 0===e||e.focus()}}class xa extends Pa{constructor(e){let{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");const r=e.querySelector(".social-share__button");super(e,{globalNavigator:t,globalWindow:n,globalDocument:i,shareTriggerElement:r}),this.socialShareButton=r,this.dropdown=this.el.querySelector(".collapsible-dropdown__list"),this.itemClassName="".concat("social-share","__item"),this.collapsibleDropdown=new we(e,{dropdownTriggerEl:this.socialShareButton}),super.init(this.dropdown,this.itemClassName)}}const Ma=["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(Ma,"i");class Da{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.tracking,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.lazyloader;const{sources:r,posterUrl:o,digitalmediaAssetUrn:s,trackingId:a,captionsUrl:l}=e.dataset,c=JSON.parse(r);if(!c.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,s,t,i).then(e=>(o&&e.poster(o),e.src(c),l&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:l}),this._bindTracking(e,n),e))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,s=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",a=Je({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{}},i);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:s}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o=Je({header:{},requestHeader:{}},r);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=z(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}"".concat("tooltip__popup","--show");class Ba{constructor(e){if(!e)throw new Error("No element passed in");this._el=e,this._imgEl=this._el.querySelector(".cover-img__image"),this._imgEl&&(this.cropInfo=Oa(this._imgEl.dataset.embedId),this.ratio=0,this._imgEl.classList.contains(".lazy-loaded")&&this._initCalc(),this._bindEvents())}_bindEvents(){window.addEventListener("resize",this._handleWindowResize.bind(this)),this._imgEl.addEventListener("load",this._initCalc.bind(this))}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_initCalc(){const e=this._el.clientWidth,t=this._el.clientHeight,n=this._imgEl.naturalWidth,i=this._imgEl.naturalHeight,r=this.cropInfo?this.cropInfo.y:0,o=this.cropInfo?this.cropInfo.x:0,s=n-o,a=i-r,l=e/s,c=t/a,u=s*c>=e,d=a*l>=t;let h=0;d&&u?h=Math.min(l,c):d?h=l:u&&(h=c);let p=Math.max(h*n,e),f=Math.max(h*i,t);h!==this.ratio&&(this.ratio=h,this._imgEl.style.width="".concat(p,"px"),this._imgEl.style.height="".concat(f,"px"),this._imgEl.style.top="-".concat(r*this.ratio,"px"),this._imgEl.style.left="-".concat(o*this.ratio,"px")),this._isResizing=!1}}var Ua={SKILL:"SKILL",CITY:"CITY",REGION:"REGION",INDUSTRY:"INDUSTRY",LANGUAGE:"LANGUAGE",DEGREE:"DEGREE",SCHOOL:"SCHOOL",FIELD_OF_STUDY:"FIELD_OF_STUDY",COMPANY:"COMPANY",TITLE:"TITLE",GEO:"GEO",PEOPLE:"PEOPLE",JOB:"JOB",JOB_TITLE:"JOB_TITLE",HASHTAG:"HASHTAG",MENTIONS:"MENTIONS",MENTIONS_IN_CONTAINER:"MENTIONS_IN_CONTAINER",BLENDED:"BLENDED"};const Fa="loader--absolute",qa="loader--show",Ha="loader--full-screen",ja="no-scroll",Ga="loader-wrapper";class za{constructor(e){let{wrapperEl:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains(Fa),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(qa),this.el.classList.contains(Ha)&&document.body.classList.add(ja),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Ga)}hide(){this.el.classList.remove(qa),document.body.classList.remove(ja),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Ga)}}class Wa extends yo{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("overlay_").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("overlay_").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);function Ka(e){if(!e)throw new Error("Could not initialize focus-trapping - Config Missing");const t=e.el,n=e.escCallback,i=e.focusElement,r=e.ariaHiddenElements||function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!(t instanceof HTMLElement&&t.parentElement instanceof HTMLElement))return n;const i=Array.prototype.slice.call(t.parentElement.children).filter(e=>e!==t&&Ja(e)),r=n.concat(i);return t.parentElement===document.body?r:e(t.parentElement,r)}(t);if(!t)throw new Error("Could not initialize focus-trapping - Element Missing");if(n&&!(n instanceof Function))throw new Error("Could not initialize focus-trapping - `config.escCallback` is not a function");de(function(e){let t="";const n=e.getAttribute("role"),i=e.getAttribute("aria-labelledby"),r=e.getAttribute("aria-describedby"),o=e.dataset.primaryActionLabel,s=e.dataset.secondaryActionLabel;if("dialog"===n&&(i||r)){const n=i&&e.querySelector("#".concat(i)),a=r&&e.querySelector("#".concat(r)),l=n&&n.textContent,c=a&&a.textContent;l&&(t+=l),c&&(t+=c),s&&(t="".concat(t," ").concat(s)),o&&(t="".concat(t," ").concat(o))}return t.trim()}(t),ue.ASSERTIVE),Va(r,!0);const o=t.querySelectorAll('a[href], area[href], input:not([disabled]):not([hidden]), select:not([disabled]), textarea:not([disabled]), img:not([alt=""]), button, iframe, object, [tabindex="0"], [contenteditable]');let s;if(o.length>0){const e=o[0],r=o[o.length-1];Ya(i||e),s=function(t){t.key===X.TAB?t.shiftKey&&document.activeElement===e?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),e.focus()):t.key===X.ESCAPE&&n&&n(t)},t.addEventListener("keydown",s)}return function(){s&&t.removeEventListener("keydown",s),de(),Va(r)}}function Va(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="aria-hidden";if(!Array.isArray(e))throw new Error("Incorrect argument: elements should be an array of HTMLElement");e.forEach(e=>t?e.setAttribute(n,t):e.removeAttribute(n))}function Ya(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()}function Ja(e){return ce.indexOf(e.nodeName.toUpperCase())<0&&!e.getAttribute("aria-live")&&"true"!==e.getAttribute("aria-hidden")}String.fromCharCode(32);z(document);String.fromCharCode(32);function Qa(){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 Xa(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function Za(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}Qa(),Xa(3),Za(128),Qa(),Xa(6),Za(400);var $a=window||i;const el=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function tl(){const e=$a.location?$a.location.hostname:"";return el.test(e)}function nl(){return tl()?il()?"platform.linkedin.cn":"platform.linkedin.com":il()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function il(){const e=$a.location?$a.location.hostname:"";return/\.cn$/.test(e)}function rl(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 $a.XMLHttpRequest;r.withCredentials=i,r.open("GET",e,!0),r.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},r.send()}function ol(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function sl(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function al(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function ll(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 cl(e){const t=new $a.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function ul(){return/utagdb=[^;]+/.test($a.document.cookie)}let dl;const hl={},pl={};function fl(){return"https://".concat(tl()?il()?"www.linkedin.cn":"www.linkedin.com":il()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function ml(){return function(e){let t=ll({},e);return t["compliance.isAdvertisingOptIn"]=ol(t),t["compliance.isAnalyticsAndResearchOptIn"]=sl(),t["compliance.isFunctionalOptIn"]=al(),t}(hl)}function gl(e){if(!pl[e]){const t=function(e){return"https://".concat(nl(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{rl(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});pl[e]=n}return pl[e]}$a.utag_data||($a.utag_data={});const vl="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let yl;function El(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(nl(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(cl(t))),n}function bl(){return function(){if(void 0===yl&&vl){const e=$a.document.cookie.match(/litms_utag_override=([^;]+)/);yl=e?e[1]:""}return yl}().length>0}function _l(e,t,n,i){e.onLoadRulesRunOnce(n);let r=ll({},t,ml());e.view(r),ul()&&$a.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function wl(e,t,n,i){e.onLoadRulesRunOnce(n);let r=ll({},t,ml());e.link(r),ul()&&$a.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function Tl(e,t,n){if(function(e){$a.utag=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?wl(e,i.data,i.callback,n):_l(e,i.data,i.callback,n)}}}function Sl(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 Cl(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function kl(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:Cl(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}$a.utag_cfg_ovrd=$a.utag_cfg_ovrd||{},$a.trackingEventDebugData=$a.trackingEventDebugData||[],$a.utag_cfg_ovrd.noview=!0,$a.utag_cfg_ovrd.nocookie=!0;const Il=vl&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test($a.navigator.userAgent),Al={};let Ll,Ol,Rl,Nl={};class Pl{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=gl(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&&(Al[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==$a.utag&&($a.utag=void 0),void 0!==$a.utag_data&&($a.utag_data=void 0);const n=function(){if(!dl){const e=fl();dl=new Promise((t,n)=>{rl(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return dl}().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=>{hl[n+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),i=(r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return bl()?yl:El(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=$a.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,$a.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=$a.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){if(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&&Sl(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!Il}_shouldProcessEvent(e){return Il?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?Tl(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=kl(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&Sl(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){S().consent.consentAvailable&&!Ol?this._refireTracking():Ll=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){Nl.payloads&&Nl.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(vl){Ol=!1;const{payloads:n=[],url:i}=Nl,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),Nl={url:r,payloads:s},Ll||(Ll=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return S().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 xl(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 Ml{constructor(e){if(this.trackingInstance=e,this.pageKey=z(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 Pl({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>xl({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||xl({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(Je({pageKey:n},t))}}function Dl(e){if(!Rl){if(!e)throw new Error("No trackingInstance passed in!");Rl=new Ml(e)}return Rl}!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 Bl={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Ul={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Fl,GOOGLE_USER_FETCHED:ql,INITIALIZED:Hl}=Bl,{INITIALIZATION:jl,AUTHENTICATION:Gl}=Ul;EventTarget;var zl={exports:{}};function Wl(e){this.message=e}Wl.prototype=new Error,Wl.prototype.name="InvalidCharacterError";var Kl="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Wl("'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 Vl=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(Kl(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 Kl(t)}};function Yl(e){this.message=e}Yl.prototype=new Error,Yl.prototype.name="InvalidTokenError",zl.exports=function(e,t){if("string"!=typeof e)throw new Yl("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Vl(e.split(".")[n]))}catch(e){throw new Yl("Invalid token specified: "+e.message)}},zl.exports.InvalidTokenError=Yl;const Jl=Bl,Ql=Ul;const{GOOGLE_USER_FETCHED:Xl,GOOGLE_ERROR:Zl,INITIALIZED:$l}=Jl,{INITIALIZATION:ec}=Ql;function tc(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function nc(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 ic(e,t){return Math.round(e-t)}var rc,oc=(rc=function(e,t){return(rc=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)},function(e,t){function n(){this.constructor=e}rc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),sc=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}(),ac=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oc(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(sc),lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oc(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(sc),cc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oc(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}(sc),uc=function(){return 0},dc=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),hc=dc&&!!window.requestAnimationFrame,pc={hasDOM:dc,hasRAF:hc,getScrollTop:uc,getScrollLeft:uc,getHeight:uc,getWidth:uc,rAF:hc?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:uc,get isDirty(){return pc.version!==pc.lastVersion},document:window.document,IntersectionObserver:dc&&window.IntersectionObserver,performance:dc&&window.performance};function fc(){++pc.version}function mc(){var e=null!=document.scrollingElement;pc.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},pc.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}dc&&(pc.getHeight=function(){return window.innerHeight},pc.getWidth=function(){return window.innerWidth},pc.updateMeta=function(){pc.meta.height=pc.getHeight(),pc.meta.width=pc.getWidth(),pc.meta.scrollLeft=pc.getScrollLeft(),pc.meta.scrollTop=pc.getScrollTop(),pc.lastVersion=pc.version},pc.updateMeta(),"loading"!==document.readyState?mc():document.addEventListener("DOMContentLoaded",mc),window.addEventListener("resize",fc,!1),window.addEventListener("scroll",fc,!1));var gc=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,pc.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}(),vc=null;var yc=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])})(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)}}(),Ec="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),bc=0,_c=function(){function e(e,t,n,i,r,o,s,a,l,c){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=l,this.left=c}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 pc.isDirty&&pc.updateMeta(),e===window||e===document?(n.height=pc.meta.height,n.width=pc.meta.width,n.scrollLeft=pc.meta.scrollLeft,n.scrollTop=pc.meta.scrollTop,n):(t=nc(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 wc(){return bc+++Ec}var Tc=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(vc||(vc=new gc)),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(_c.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=nc(e),i=_c.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}(),Sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new ac,t}return yc(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=wc();return this.queue.push({callback:e,id:t}),t},t}(Tc),Cc=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return yc(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Sc),kc=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=pc.version,r.queue=new cc,r.ALLOW_CACHED_SCHEDULER=i,r}return yc(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return pc.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=nc(r)),i(e,o,s)}this.lastVersion=pc.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||wc();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(Tc),Ic=null;var Ac=function(){function e(){this.queue=new lc}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}(),Lc=function(){function e(e){this.scheduler=new Cc(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=_c.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Oc=null;function Rc(e,t){var n=(Oc||(Oc={scroll:new Lc((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Lc((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new Ac,beforeunload:new Ac,hide:new Ac,show:new Ac}))[e];n&&n.listen(t)}function Nc(e,t){if(Oc){var n=Oc[e];n&&n.unlisten(t)}}function Pc(e,t){if(Oc){var n=Oc[e];n&&n.trigger(t)}}function xc(e){(Ic||(Ic=new Sc)).scheduleWork(e)}function Mc(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}}pc.hasDOM&&(window.addEventListener("beforeunload",(function(){Pc("beforeunload"),Pc("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Pc("show"):Pc("hide")})));var Dc=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 kc(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||wc();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,l=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===l.numSatisfiedThresholds&&a.isIntersecting===l.entry.isIntersecting||(l.numSatisfiedThresholds=s,l.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:Bc(),intersectionRatio:0,intersectionRect:Bc(),isIntersecting:!1,rootBounds:Bc(),target:n};var r=t.bottom,o=t.right,s=e.left+i.left,a=e.top+i.top,l={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},c=Math.max(l.left,t.left),u=Math.max(l.top,t.top),d=Math.min(l.left+l.width,t.right)-c,h=Math.min(l.top+l.height,t.bottom)-u,p=d>=0?c: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,l=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:s,intersectionRatio:l,isIntersecting:tc({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:l,target:n,boundingClientRect:Mc(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 Bc(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Uc={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,l=i.BACKGROUND_TAB_FIX,c=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=!!c&&!!pc.IntersectionObserver;var h=this.usingNativeIo?pc.IntersectionObserver:Dc;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),pc.hasDOM&&(Rc("beforeunload",this.onWindowClosed),Rc("hide",this.onTabHidden),Rc("show",this.onTabShown),l&&(this.paused="visible"!==pc.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,l=r.intersectionRect,c=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:c,rootBounds:a,intersectionRect:l,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,l=e.target,c=this.recordStore[l.__spanielId],u=this.usingNativeIo?Math.floor((pc.performance.timeOrigin||pc.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:l,duration:0,visibleTime:s?u:-1,entering:!1,payload:c.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:Uc,boundingClientRect:o||Uc,intersectionRect:Uc,visibleTime:r.lastVisible.unixTime,duration:ic(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=ic(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:tc(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var l=Number(setTimeout((function(){n.visible=!0,r.duration=ic(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=l}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(),pc.hasDOM&&(Nc("beforeunload",this.onWindowClosed),Nc("hide",this.onTabHidden),Nc("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),xc((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||wc();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}}();pc.IntersectionObserver&&pc.IntersectionObserver;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");".".concat("accordion-item__trigger");const Fc=["options","optionsV2"];function qc(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const Hc=qc("action"),jc=qc("openpage"),Gc=qc("openlink"),zc=e=>Hc(e)&&"BLOCK_PROFILE"===e.action.actionType;function Wc(e){const t=function(e){const t=(e.type?e.type:e).toLowerCase().split("_"),n=[];n.push(t.splice(0,1));for(const e of t)n.push(e[0].toUpperCase()+e.slice(1));return n.join("")}(e),n=t.toLowerCase();return{[n]:Je({},e[t]),type:n}}class Kc{constructor(e){this.optionStack=[],this.semaphoreJson=e.constructor==={}.constructor?e:JSON.parse(e)}getNextStep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.semaphoreJson,{options:n,optionsV2:i}=t,r=Xe(t,Fc);if(n&&!(this.optionStack.length>=r.numberOfSteps)){if("BLOCK_PROFILE"===e){let e=n.find(e=>Hc(e)&&"BLOCK_PROFILE"===e.action.type);if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType="BLOCK_PROFILE";const t=[e];return this.optionStack.push(Je({options:t.map(e=>Wc(e)),heading:r.blockConfirmationScreen.heading},r)),this.optionStack[this.optionStack.length-1]}if(e){const t=this.optionStack.length;if(0===t)return;const n=this.optionStack[t-1].options.find(t=>t[t.type].title===e);if(!n)return;if(jc(n))return Je(Je({},n),r);const i=Je({options:n[n.type].options.map(e=>Wc(e))},r);n[n.type].heading&&(i.heading=n[n.type].heading),this.optionStack.push(i)}else n=[...n,...i],this.optionStack.push(Je({options:n.map(e=>Wc(e))},r));return this.optionStack[this.optionStack.length-1]}}getPreviousStep(){if(this.optionStack.length>1)return this.optionStack.pop(),this.optionStack[this.optionStack.length-1]}hasPreviousStep(){return this.optionStack.length>1}getCurrentStep(){return this.optionStack[this.optionStack.length-1]}findAction(e){const t=this.optionStack[this.optionStack.length-1].options;if(!t)return;const n=t.find(t=>Hc(t)&&t[t.type].title===e);return n&&n.action}}const Vc="hidden";class Yc extends yo{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.titleEl=this._el.querySelector(".semaphore-modal__title"),this.contentEl=this._el.querySelector(".semaphore-modal__content"),this.footer=this._el.querySelector(".modal__footer"),this.submitBtn=this.footer.querySelector('[data-semaphore-action="submit"]')}setTitle(e){this.titleEl.textContent=e}setContent(e){this.contentEl.appendChild(e)}hideFooter(){this.footer.classList.add(Vc)}showFooter(){this.footer.classList.remove(Vc)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(Vc)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(Vc)}querySelector(e){return this._el.querySelector(e)}clearContent(){for(this.disableSubmit();this.contentEl.firstChild;)this.contentEl.removeChild(this.contentEl.firstChild)}close(){this.clearContent(),super.close()}}class Jc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'[data-item-type="semaphore"]',t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3?arguments[3]:void 0;this.semaphoreSelector=e,this.parentContainer=t||document;const r=this.parentContainer.querySelector(e);if(r){this.semaphoreTrackingPrefix=r.dataset.semaphoreTrackingPrefix;const e=this.parentContainer.querySelector("#semaphore-modal");this.semaphoreModal=new Yc(e,{focusElement:i}),this.submitActionCallBack=n,this.parentContainer?(this.parentContainer.addEventListener("click",this.semaphoreClickHandler.bind(this)),e.addEventListener("click",this.clickHandler.bind(this))):(document.body.removeEventListener("click",this.clickHandler),document.body.addEventListener("click",this.clickHandler.bind(this)))}}clickHandler(e){const t=C(e.target,"[data-semaphore-input]");if(t){if(t.href)return e.preventDefault(),void window.open(t.href,"_blank");"semaphore-action"===t.name&&(this.semaphoreModal.showFooter(),this.semaphoreModal.showSubmit())}if("back"===e.target.dataset.semaphoreAction){const e=this.semaphoreConfigParser.getPreviousStep();return void(e?(this.renderSemaphoreOptions(e),this.refreshLazyLoader(),this.semaphoreModal.open()):this.semaphoreModal.close())}if("submit"===e.target.dataset.semaphoreAction){let t=this.semaphoreModal.querySelector("[data-semaphore-input]:checked");if(t){const n=this.semaphoreConfigParser.findAction(t.value);n&&this.sendAction(n).finally(()=>{this.renderThanks(this.semaphoreConfigParser.getCurrentStep().resultScreen),this.submitActionCallBack(e)})}}let n=C(e.target,"[data-semaphore-item]");if(n&&"action"!==n.dataset.semaphoreItem){const t=n.querySelector('[data-attr="title"]');if(t){const n=this.semaphoreConfigParser.getNextStep(t.textContent);n&&(jc(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open())}}else{if(n&&"BLOCK_PROFILE"===n.dataset.semaphoreType){const e=this.semaphoreConfigParser.getNextStep("BLOCK_PROFILE");e&&this.renderSemaphoreOptions(e)}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=C(e.target,this.semaphoreSelector);t&&t.dataset.semaphoreContentType&&t.dataset.semaphoreContentUrn&&"true"===t.dataset.isLoggedIn&&(e.preventDefault(),this.makeSemaphoreRequest(t.dataset.semaphoreContentUrn,t.dataset.semaphoreContentType,t.dataset.semaphoreAuthorProfileId,t.dataset.semaphoreAuthorUrn).then(e=>{this.semaphoreConfigParser=new Kc(e);const t=this.semaphoreConfigParser.getNextStep();t&&(this.renderSemaphoreOptions(t),this.refreshLazyLoader(),this.semaphoreModal.open())}))}renderSemaphoreOptions(e){this.semaphoreModal.clearContent();const t=this.parentContainer.querySelector("#semaphore-container-template").content.firstElementChild.cloneNode(!0);let n=!1,i=!1,r=!1;e.options.forEach(o=>{let s=o.type;Gc(o)&&!i&&(i=!0),Hc(o)&&(n||(n=!1===o[s].nonRadioOptionEnabled),s=zc(o)?"block":o[s].nonRadioOptionEnabled?s:"".concat(s,"-radio"));const a=this.parentContainer.querySelector("#semaphore-".concat(s,"-template")).content.firstElementChild.cloneNode(!0),l=o[o.type],c=a.querySelector('[data-attr="title"]');if(c&&(c.textContent=l.title),l.type&&(a.dataset.semaphoreType=l.type),Hc(o)){if(zc(o)){r=!0;const t="".concat(e.blockConfirmationScreen.firstLine," \n ").concat(e.blockConfirmationScreen.secondLine);a.querySelector('[data-attr="block-content"]').textContent=t}a.querySelector("[data-semaphore-input]").value=l.title}const u=a.querySelector('[data-attr="body"]');u&&(l.body?u.textContent=l.body:u.remove()),l.url&&(a.querySelector("[data-semaphore-input]").href=l.url),a.querySelector("[data-semaphore-input]").dataset.trackingControlName=l.trackingId,t.appendChild(a)}),this.semaphoreModal.setContent(t),this.semaphoreModal.setTitle(e.heading||e.headings.whyReportingThis),this.semaphoreConfigParser.hasPreviousStep()?(this.semaphoreModal.showFooter(),r&&this.semaphoreModal.showSubmit()):this.semaphoreModal.hideFooter(),i&&this.semaphoreModal.hideSubmit()}renderThanks(e){this.semaphoreModal.hideFooter(),this.semaphoreModal.clearContent(),this.semaphoreModal.setTitle(e.title);const t=this.parentContainer.querySelector("#semaphore-result-template").content.firstElementChild.cloneNode(!0);t.querySelector('[data-attr="thanks-text-body"]').textContent=e.messageBody.body;let n=t.querySelector('[data-attr="thanks-help-center-link"]');n.textContent=e.messageBody.helpCenterText,n.href=this.addTrackingCode(e.messageBody.helpCenterLink);const i=document.createElement("div");i.appendChild(t),this.semaphoreModal.setContent(i)}addTrackingCode(e){return M(e,this.semaphoreTrackingPrefix)}sendAction(e){return Te(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}makeSemaphoreRequest(e,t,n,i){let r=D("/psettings/flagging-menu","entityUrn",e);return r=D(r,"contentSource",t),n?r=D(r,"authorProfileId",n):i&&(r=D(r,"authorUrn",i)),Te(r).then(e=>200===e.status?e.responseText:"{}").catch(()=>"{}")}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then(e=>{e.refreshLoader()})}}class Qc{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e,this.currentMenuItem=this._el.querySelector(".ellipsis-menu__item-button");const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new we(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new Jc('[data-item-type="semaphore"]',t))}}var Xc;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(Xc||(Xc={}));new Set(Object.values(Xc));Error;var Zc;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Zc||(Zc={})),new Set(Object.values(Zc));function $c(e){var t;null===(t=window.lazyloader)||void 0===t||t.then(e=>e.getLazyLoadedJavascriptModule("mweb-gdpr-notice-manager-js")).then(()=>{window.GDPRNoticeManager?new window.GDPRNoticeManager(e):window.GDPRNoticesConfig=e})}var eu={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,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 a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){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 u(e,t,n){return(u=c()?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}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(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 u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function f(e){return function(){var t,n=a(e);if(c()){var i=a(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function g(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}(function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}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 v="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",y={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},E={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},b={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},w={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"}},T={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},S={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},C=y.GOOGLE_ERROR,k=y.GOOGLE_USER_FETCHED,I=y.INITIALIZED,A=E.INITIALIZATION,L=E.AUTHENTICATION,O=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,l=void 0===a?v: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=l,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.");m((function(){g(o,i._initializeGoogleAuth.bind(h(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(I);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},i=new CustomEvent(C,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(k,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:L,message:t.error},i=new CustomEvent(C,{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}(d(EventTarget)),R=y.GOOGLE_USER_FETCHED,N=y.PROMPT_MOMENT,P=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,l=e.containerId,c=e.context,u=e.clientId,d=void 0===u?v:u,p=e.cancelOnTapOutside,f=void 0===p||p;if(t(this,r),i=n.call(this),!c)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=l,i.cancelOnTapOutside=f,i.clientId=d,i.context=c,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");m((function(){g(a,i._onGoogleApiLoad.bind(h(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===b.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(R,{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:w.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(N,{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(N,{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}(d(EventTarget)),x={exports:{}};function M(e){this.message=e}M.prototype=new Error,M.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new M("'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},B=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(D(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 D(t)}};function U(e){this.message=e}U.prototype=new Error,U.prototype.name="InvalidTokenError",x.exports=function(e,t){if("string"!=typeof e)throw new U("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(B(e.split(".")[n]))}catch(e){throw new U("Invalid token specified: "+e.message)}},x.exports.InvalidTokenError=U;var F=x.exports,q=y.GOOGLE_USER_FETCHED,H=y.PROMPT_MOMENT,j=function(e){s(a,e);var n=f(a);function a(e){var i,r,o,s,l=e.autoSelect,c=void 0!==l&&l,u=e.libSrcPath,d=e.clientId,p=void 0===d?v:d,f=e.showOneTap,y=void 0===f||f,E=e.promptParentId,b=e.buttonParentEl,_=e.gsiButtonConfig,w=void 0===_?{}:_,T=e.context,S=void 0===T?"signin":T,C=e.cancelOnTapOutside,k=void 0===C||C;if(t(this,a),(i=n.call(this)).autoSelect=c,i.libSrcPath=u,i.clientId=p,i.showOneTap=y,i.promptParentId=E,i.buttonParentEl=b,i.gsiButtonConfig=w,i.cancelOnTapOutside=k,i.context=S,i.isLibraryLoaded=((s=new Promise((function(e,t){r=e,o=t}))).resolve=r,s.reject=o,s),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!u)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){g(u,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(a,[{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:S[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.logo_alignment,r=void 0===i?"center":i,o=t.shape,s=void 0===o?"pill":o,a=t.size,l=void 0===a?"large":a,c=t.text,u=t.theme,d=t.type,h=t.width,p=void 0===h?"400px":h;return this.isLibraryLoaded.then((function(){var t=c||S[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:r,shape:s,size:l,text:t,theme:u,type:d,width:p})}))}},{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(H,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=F(t),s=function(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}({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(s){var a=new CustomEvent(q,{detail:s});this.dispatchEvent(a)}}},{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")}}}]),a}(d(EventTarget)),G=T.DISMISSED,z=T.INITIALIZED,W=T.SNAPPLE_USER_FETCHED,K=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,l=void 0===a?"com.linkedin.LinkedIn.service":a,c=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=l,i.redirectURI=i._getRedirectURL(c),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");m((function(){g(o,i._onSnappleLibLoad.bind(h(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(z);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(W,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(G,{detail:{type:G,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),V={CLIENT_ID:v,EVENTS:y,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:E,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:b,GOT_PROMPT_MOMENT_REASONS:w,GOT_PROMPT_MOMENT_TYPES:_};e.GoogleGsi=j,e.GoogleOneTap=P,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(eu.exports);const{EVENTS:tu,GOT_CONTEXTS:nu,GOT_PROMPT_MOMENT_REASONS:iu,GOT_PROMPT_MOMENT_TYPES:ru}=eu.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:ou,PROMPT_MOMENT:su}=tu,{SIGN_IN:au}=nu;iu.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,iu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,iu.NOT_DISPLAYED.SUPPRESSED_BY_USER,iu.SKIPPED.AUTO_CANCEL,iu.SKIPPED.TAP_OUTSIDE,iu.SKIPPED.USER_CANCEL,Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class lu{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("modal")),this.modal=new Wa(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()}}class cu{constructor(e){let{enablePageViewTracking:t=!0,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!1,shouldMoveToTopContainer:r=!0,focusElement:o,pageKey:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into to image viewer modal");this.el=e,this.modal=new Wa(this.el,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:r,focusElement:o,pageKey:s||"p_mwlite_image_viewer"});const a=this.el.querySelector(".slide-list");this.slideList=new $o(a),null==a||a.addEventListener("click",this._handleImageClick.bind(this))}open(e,t){e&&this.slideList.goToItem(e),this.modal.open(t)}_handleImageClick(e){e.target.closest(".main-image")&&this.el.classList.toggle("hide-components")}}const uu={AJAX:"ajax",HALF:"half",FULL:"full",ERROR:"error"};class du{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=Oa("feedLastUpdatedTime")}resetBadges(){No(this.badgeCountEls),No(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return Te(e?D("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);F(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const i=Do();return"messaging"===i&&(this._counts.messagingCount=0),"feed"===i||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this}).catch(()=>{F(window,"badgesreceived",{feedsCount:0})})}_renderBadges(){this.badgeCountEls.forEach(e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])}),this.badgeWithoutCountEls.forEach(e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])})}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,Ro(e)):t!==n&&(t>0?(e.textContent=t,Ro(e),e.classList.toggle("singular",t<=1)):Oo(e))}_setBadge(e,t){e&&(t>0?(Ro(e),e.classList.add("badge-with-no-count")):Oo(e))}_updateCacheBustUrl(e){Oa("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=Qs(e?D(t.href,"pwa","noCache"):j(t.href))})}}!function(){let e}();class hu{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(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+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}const pu=(hu.instance||(hu.instance=new hu(localStorage)),hu.instance),fu=(hu.sessionInstance||(hu.sessionInstance=new hu(sessionStorage)),hu.sessionInstance);var mu=Object.freeze({__proto__:null,default:hu,cache:pu,sessionCache:fu});let gu;function vu(){return gu||(gu=new Aa),gu}function yu(){var e,t;const n=null===(e=window.sessionStorage)||void 0===e?void 0:e.getItem("MWEB_TOAST_MESSAGE"),i=null===(t=window.sessionStorage)||void 0===t?void 0:t.getItem("MWEB_TOAST_TYPE");var r,o;n&&i&&(vu().trigger(i,n),null===(r=window.sessionStorage)||void 0===r||r.removeItem("MWEB_TOAST_MESSAGE"),null===(o=window.sessionStorage)||void 0===o||o.removeItem("MWEB_TOAST_TYPE"))}let Eu;function bu(e){var t;const n=Oa("gdpr_notice_share"),i=Oa("gdprLearnMoreLabel"),r=document.querySelector(".modal-spinner");Ro(r),n&&i&&$c({notices:[{name:"SHARING_POST_VISIBILITY_FOR_PERSONALIZATION",msg:n,lbl:i,href:"/help/linkedin/answer/85598"}]});const o=document.querySelector("#share-modal");null===(t=window.lazyloader)||void 0===t||t.then(e=>e.getLazyLoadedJavascriptModule("mweb-share-modal-js")).then(t=>{const{getShareModalInstance:n}=t;Eu=n(o,{shouldHideModal:()=>!1,triggerByOutletEl:!1,pushState:!0,historyUpdateUrl:e.historyUpdateUrl}),Oo(r),Eu.open(e)}).catch(()=>{Oo(r)})}function _u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.preventDefault(),bu(t)}A.getInstance().addUnloadCallback(()=>{Eu&&Eu.close(),Oo(document.querySelector("#discard-post-modal")),Oo(document.querySelector("#visibility-settings-modal")),Oo(document.querySelector("#max-images-prompt-modal")),Oo(document.querySelector("#retry-upload-modal"))});var wu=Object.freeze({__proto__:null,openShareModal:_u});function Tu(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,e=>{e.refreshLoader()})}function Su(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function Cu(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("select");i&&(i.addEventListener("change",Su),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(Cu)}Tu()}function ku(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),F(t,"input:cleared"),F(t,"change")}function Iu(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",Iu)}function Au(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function Lu(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("input"),r=e.querySelector(".right");i.addEventListener("change",Au),i.addEventListener("focus",Iu),r&&r.addEventListener("click",ku)}else{document.querySelectorAll(".input-container").forEach(Lu)}Tu()}const Ou="MinLength",Ru="MaxLength",Nu="Regex",Pu="Required",xu="RegexAllow",Mu={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"}},Du="EMAIL_ADDRESS",Bu="PHONE_NUMBER",Uu="OTHER",Fu="consentUnchecked",qu={INPUT:"INPUT",SELECT:"SELECT"},Hu="text",ju="checkbox";function Gu(e){return Object.keys(qu).includes(e.tagName)}function zu(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Uu:n&&t.push({type:Ou,MinLength:n}),i&&t.push({type:Ru,MaxLength:i});break;case Du:t.push({type:xu,RegexAllow:[Mu.EMAIL]});break;case Bu:o=e.value.replace(/ /g,""),t.push({type:xu,RegexAllow:[Mu.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 Pu:if(0===n.length)return Pu;break;case Ou:if(n.length<e[Ou])return Ou;break;case Ru:if(n.length>e[Ru])return Ru;break;case Nu:for(let t=0;t<e[Nu].length;t++)if(e[Nu][t].pattern.test(n))return Nu+e[Nu][t].errorCode;break;case xu:for(let t=0;t<e[xu].length;t++)if(!e[xu][t].pattern.test(n))return xu+e[xu][t].errorCode}})(e,n)).filter(e=>!!e)}function Wu(e,t){return t&&!e?Fu:null}const Ku=(e,t)=>parseInt(t.split(e)[1]);function Vu(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const Yu=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Ju=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function Qu(e){const t=e.id+"_",n=t+"q",i=t+"c";return new Promise((t,r)=>{const o=[];let s,a;const{urn:l}=e.dataset;a=e.dataset.leadTrackingParams,a||(s=e.closest("[data-lead-tracking-params]"),a=s.dataset.leadTrackingParams);const c={formResponse:{adFormUrn:l,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(Gu).forEach(e=>{let t;if(e.tagName===qu.SELECT)t=((e,t)=>{const n=Ku(e,t.id),i=t.selectedIndex;return{response:Ju(n,i)}})(n,e),c.formResponse.answers.push(t.response);else if(e.type===Hu)if(t=((e,t)=>{const n=Ku(e,t.id),i=zu(t);return 0!==i.length?{errors:i}:{response:Yu(n,t.value)}})(n,e),t.response)c.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===ju&&(t=((e,t,n,i)=>{const r=Ku(e,t),o=Wu(n,i);return o?{errors:o}:{response:{consentId:r,accepted:n}}})(i,e.id,e.checked,e.required),t.response?c.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))}),0===o.length?t(c):r(o)})}class Xu{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Lu(),Cu(),qo("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const i=e.querySelector(".lead-gen-modal");this.modal=new Wa(i,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Gu).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Qu(this.formEl).then(e=>{F(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();de(Vu(t.element,t.errorType),ue.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");Oo(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=Vu(e,t),i=e.closest(".lead-gen-input-container"),r=i.querySelector(".error-text");r.innerText=n,Ro(r),i.classList.add("input-error"),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===ju)t=Wu(e.checked,e.required);else if(e.type===Hu){const n=zu(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains("inputbox-input")&&this._handleInputError(e.target)}),this.formEl.querySelector(".submit-btn").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}Qe(Xu,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");function Zu(e,t){return e&&t?"urn:li:control:".concat(t,"-").concat(e):null}const $u="[data-feed-control]",ed='[data-id="main-feed-card"]';function td(e,t){const n=e.target.closest($u),i=e.target.closest(ed),r=t||(null==i?void 0:i.dataset);if(!n||!r)return;const{feedControl:o,feedActionCategory:s,feedActionType:a}=n.dataset,{activityUrn:l,feedItemTrackingId:c}=r;window.tracking&&window.tracking.then(e=>{let t;const n=Oa("trackingModuleKey"),i=z(document),r=co(i);t=Je({actionCategory:(null==s?void 0:s.toUpperCase())||"",actionType:a,controlUrn:Zu(o,i),updateUrn:l,trackingId:c||e.generateBase64UUID(),moduleKey:n||"lite-feed:phone",requestId:""},r);try{var u,d;(null===(u=t)||void 0===u?void 0:u.actionCategory)&&(null===(d=t)||void 0===d?void 0:d.actionType)&&e.fireTrackingEvent("FeedActionEvent",t)}catch(e){}})}class nd{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,{onSelect:t=(()=>{}),onClipboardCopy:n=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.onSelect=t,this.onClipboardCopy=n;const i=Oa("share-via-text"),r=Oa("share-via-url");if(this.shareData={url:r},i&&(this.shareData.text=i),this.shareViaActionEl=e.querySelector("[data-share-via-action]"),!this.shareViaActionEl)throw new Error('Element with "data-share-via-action" attribute cannot be found');this.shareViaModalEl=e.querySelector(".share-via-modal"),this.shareViaModalEl&&(this.shareViaModal=new yo(this.shareViaModalEl)),this.bindEvents()}modalClickHandler(e){const t=C(e.target,"[data-action-copy-to-clipboard]");t?(this.onSelect(e,t),this.copyToClipboard.call(this,e)):this.onSelect(e,C(e.target,".share-via-action")),this.shareViaModal.close()}share(){navigator.canShare&&navigator.canShare(this.shareData)?navigator.share(this.shareData):this.shareViaModal&&this.shareViaModal.open()}copyToClipboard(){navigator.clipboard.writeText(this.shareData.url).then(()=>{this.onClipboardCopy(!0)}).catch(e=>{this.onClipboardCopy(!1,e)})}bindEvents(){this.shareViaActionEl.addEventListener("click",this.share.bind(this)),this.shareViaModalEl&&this.shareViaModalEl.addEventListener("click",this.modalClickHandler.bind(this))}}const id=["endpoint","headers","queryId","variables","pageKey"];function rd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={},pageKey:o}=e,s=Xe(e,id);return Te(t,Je({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:o})},s))}const od="FOLLOW_ACTIVE",sd="UNFOLLOW";class ad{constructor(e){if(!e)throw Error("Missing FollowMutation endpoint");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 rd({endpoint:this.endpoint,queryId:ad.query,variables:{followState:e,to:t}}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(i)}}Qe(ad,"query","cbed571fffd8cea15209aed8d44e6759");class ld{constructor(e){var t,n;let{deleteEntity:i=(()=>{}),disableComment:r=(()=>{}),enableComment:o=(()=>{}),followConfig:s={},semaphoreConfig:a={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Control menu element is required");this._el=e,this.followConfig=s,this.semaphoreConfig=a,this.ellipsisMenu=new Qc(e),this.feedCardEl=e.closest('[data-id="main-feed-card"]'),this.parentEl=null===(t=this.feedCardEl)||void 0===t?void 0:t.parentNode,this.ellipsisMenuTriggerEl=e.querySelector(".ellipsis-menu__trigger"),null!==(n=this.followConfig)&&void 0!==n&&n.endpoint&&(this._followMutationInstance=new ad(this.followConfig.endpoint)),this._enableComment=o,document.getElementById("toasts")&&(this.toasts=new Aa);const l=e.querySelector(".collapsible-dropdown__list"),c=l.querySelector('[data-feed-action="control-menu-semaphore"]');c&&new Jc('[data-item-type="semaphore"]',c,this._handleSemaphoreSubmitAction.bind(this),this.ellipsisMenuTriggerEl);const u=l.querySelector('[data-feed-action="control-menu-share-via"]');var d;u&&(null===(d=this.toasts)||void 0===d||d.clearAllToasts(),new nd(u,{onClipboardCopy:e=>{var t,n;e?null===(t=this.toasts)||void 0===t||t.trigger("success",Oa("i18n_copy_to_clipboard_success")):null===(n=this.toasts)||void 0===n||n.trigger("error",Oa("i18n_copy_to_clipboard_error"))}}));if(l.querySelector('[data-feed-action="control-menu-delete"]')){const e=this.feedCardEl.querySelector("#modal-delete-confirmation-wrapper");this.deleteConfirmationModal=new lu(e,e=>i(e,this.feedCardEl),()=>{},{triggerByOutletEl:!1,focusElement:this.ellipsisMenuTriggerEl})}if(l.querySelector('[data-feed-action="control-menu-disable-comments"]')){const e=this.feedCardEl.querySelector("#modal-disable-comments-confirmation-wrapper");this.disableCommentsConfirmationModal=new lu(e,e=>r(e,this.feedCardEl),()=>{},{triggerByOutletEl:!1,focusElement:this.ellipsisMenuTriggerEl})}l.addEventListener("click",this.handleControlMenuActions.bind(this))}_showPostRemovedCard(e){const t=this.feedCardEl.parentNode,n=this.feedCardEl.querySelector("#post-removed-card-template"),i=document.importNode(n.content,!0);t.appendChild(i),this._initializeUndoButton(e);const r=t.querySelector(".imf-link");r&&r.focus()}_handleSemaphoreSubmitAction(){var e,t;Oo(this.feedCardEl);const n=this.feedCardEl.querySelector("#post-reported-card-template"),i=document.importNode(n.content,!0);this.parentEl.appendChild(i),null===(e=this.semaphoreConfig)||void 0===e||null===(t=e.submitActionCallback)||void 0===t||t.call(e)}_initializeUndoButton(e){const t=this.parentEl.querySelector(".post-removed-card");t.querySelector(".undo-follow-button").addEventListener("click",n=>{var i,r,o;const{activityUrn:s,feedItemTrackingId:a}=this.feedCardEl.dataset;td(n,{activityUrn:s,feedItemTrackingId:a}),null===(i=this.toasts)||void 0===i||i.clearAllToasts(),t.remove(),Ro(this.feedCardEl),this.parentEl.querySelector(".ellipsis-menu__trigger").focus(),null===(r=this.followConfig)||void 0===r||null===(o=r.actionCallback)||void 0===o||o.call(r),this._followMutationInstance.execute(od,e.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},t=>{var n,i,r;null===(n=this.toasts)||void 0===n||n.trigger("error",e.getAttribute("data-failure-message")),null===(i=this.followConfig)||void 0===i||null===(r=i.errorCallback)||void 0===r||r.call(i,t)})})}_handleFollowAction(e){var t,n,i;const r=e.target.closest("[data-feed-action]");null===(t=this.toasts)||void 0===t||t.clearAllToasts();de(r.getAttribute("data-unfollow-ally-text")),Oo(this.feedCardEl),this._showPostRemovedCard(r),null===(n=this.followConfig)||void 0===n||null===(i=n.actionCallback)||void 0===i||i.call(n),this._followMutationInstance.execute(sd,r.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},e=>{var t,n,i;null===(t=this.toasts)||void 0===t||t.trigger("error",r.getAttribute("data-unfollow-failure-message")),null===(n=this.followConfig)||void 0===n||null===(i=n.errorCallback)||void 0===i||i.call(n,e)})}handleControlMenuActions(e){const t=e.target.closest("[data-feed-action]"),n=e.target.closest('[data-id="main-feed-card"]');if(t&&t.getAttribute("data-feed-action")&&n){switch(t.getAttribute("data-feed-action")){case"control-menu-unfollow":this._handleFollowAction(e);break;case"control-menu-delete":this.deleteConfirmationModal.modal.open();break;case"control-menu-disable-comments":this.disableCommentsConfirmationModal.modal.open();break;case"control-menu-enable-comments":this._enableComment(e,n)}F(this._el,"close")}}}const cd=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.freeze(Object.values(cd));const ud="CREATE",dd="DELETE",hd="UPDATE";class pd{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");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:pd.query,variables:{entityUrn:t,action:n}};return n!==ud&&n!==hd||(o.variables.reactionType=e),rd(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Qe(pd,"query","070ee23fd6fb77f92ac08f964ae1df29");const fd="REACT",md="UNREACT";class gd{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(".reactions-menu","__trigger"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,{endpoint:n,beforeReaction:i,onReaction:r,onReactionSuccess:o=(()=>{}),onReactionError:s=(()=>{}),shouldStopPropagation:a=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.triggerSelector=e,this.a11yTriggerSelector="".concat(e,"--a11y"),this.reactionsMenu=t.querySelector("#reactions-menu"),this.parentContainerElement=t,this._mutationInstance=new pd(n),this.selectedReactionTemplate=t.querySelector("#selected-reaction"),!this.reactionsMenu)throw new Error("Cannot find ReactionsMenu template");this.beforeReaction=i,this.onReaction=r,this.onReactionSuccess=o,this.onReactionError=s,this.shouldStopPropagation=a,this.triggers=t.querySelectorAll(this.triggerSelector),this.reactionsMenuClickHandler=this.handleReactionsClick.bind(this),this.bindEvents()}bindEvents(){ye()?(this.parentContainerElement.addEventListener("touchstart",e=>{e.target.closest(this.triggerSelector)&&(this.longPressTimer=setTimeout(()=>{e.preventDefault(),this.showReactions(e)},334))}),this.parentContainerElement.addEventListener("touchmove",e=>{e.target.closest(this.triggerSelector)&&clearTimeout(this.longPressTimer)}),this.parentContainerElement.addEventListener("touchend",e=>{e.target.closest(this.triggerSelector)&&clearTimeout(this.longPressTimer)})):this.triggers.forEach(e=>{e.addEventListener("mouseenter",B(this.showReactions.bind(this),300)),e.addEventListener("mouseleave",B(()=>{!e.parentElement.matches(":hover")&&this.hideReactions.call(this)},500))}),this.parentContainerElement.addEventListener("click",e=>{if(e.target.closest(this.triggerSelector)){var t,n;const i=this.getContainerElement(e.target);null===(t=this.beforeReaction)||void 0===t||t.call(this,e),this.toggleReaction(i);const r=this.getCurrentReactionType(i);null===(n=this.onReaction)||void 0===n||n.call(this,e,r,this.getParentUrn(i)),this._mutationInstance.execute(r,this.getParentUrn(i),r?ud:dd,e=>{this.onReactionSuccess(e)},e=>{this.onReactionError(e)})}else e.target.closest(this.a11yTriggerSelector)?(e.stopPropagation(),this.showReactions(e)):this.maybeHideReactions(e)}),this.parentContainerElement.querySelectorAll(this.a11yTriggerSelector).forEach(e=>{e.addEventListener("focus",e=>{e.target.classList.remove("w-0")}),e.addEventListener("blur",e=>{!this.getContainerElement(e.target).querySelector('[data-id="reactions-menu"]')&&e.target.classList.add("w-0")})}),window.addEventListener("scroll",()=>{this.hideReactions()}),this.parentContainerEl!==document.body&&document.addEventListener("click",e=>{e.target.closest(this.a11yTriggerSelector)||this.hideReactions()})}showReactions(e){if(!this.reactionsMenuEl){let t=e.target;if(!e.target.classList.contains("reaction-menu")&&(t=this.getContainerElement(e.target),!t))return;this.renderReactionsMenu(t.querySelector(this.triggerSelector))}}hideReactions(){var e,t;this.reactionsMenuEl&&(this.reactionsMenuEl.removeEventListener("click",this.reactionsMenuClickHandler),null===(e=this.getContainerElement(this.reactionsMenuEl))||void 0===e||null===(t=e.querySelector(this.a11yTriggerSelector))||void 0===t||t.classList.add("w-0"),this.reactionsMenuEl.parentElement.removeChild(this.reactionsMenuEl),this.reactionsMenuEl=null)}getActionType(e,t){return e&&t?t!==e?hd:null:t?ud:dd}handleReactionsClick(e){const t=C(e.target,"[data-reaction-type]"),n=this.getContainerElement(e.target),i=this.getCurrentReactionType(n),r=this.getParentUrn(n);let o,s;if(t){var a,l,c,u;if(null===(a=this.beforeReaction)||void 0===a||a.call(this,e),this.setReaction(t.dataset.reactionType,n),null===(l=this.getContainerElement(n))||void 0===l||null===(c=l.querySelector(this.triggerSelector))||void 0===c||c.focus(),o=this.getCurrentReactionType(n),s=this.getActionType(i,o),s)null===(u=this.onReaction)||void 0===u||u.call(this,e,o,r),this._mutationInstance.execute(o,this.getParentUrn(n),s,e=>{this.onReactionSuccess(e)},e=>{this.onReactionError(e)});this.shouldStopPropagation&&e.stopPropagation()}}renderReactionsMenu(e){const t=this.reactionsMenu.content.firstElementChild.cloneNode(!0);t&&e&&(this.reactionsMenuEl=this.getContainerElement(e).appendChild(t),this.reactionsMenuEl.addEventListener("click",this.reactionsMenuClickHandler))}maybeHideReactions(e){C(e.target,"[data-reaction-type]")||this.hideReactions()}setReaction(e,t){const n="".concat(".selected-reaction","--").concat(e),i=this.selectedReactionTemplate.content.querySelector(n).cloneNode(!0),r=t.querySelector(".selected-reaction"),o=t.querySelector(".like-button-default");r?r.remove():o.classList.add("hidden"),t.querySelector(this.triggerSelector).setAttribute("aria-pressed","true"),i.classList.add("selected-reaction"),o.parentElement.insertBefore(i,o),this.postReactionChangeCallback(e,t)}toggleReaction(e){const t=e.querySelector(".selected-reaction"),n=e.querySelector(".like-button-default");if(t)return t.remove(),e.querySelector(this.triggerSelector).setAttribute("aria-pressed","false"),n.classList.remove("hidden"),void this.postReactionChangeCallback("",e);this.setReaction(cd.LIKE,e)}postReactionChangeCallback(e,t){const n=(e?"un".concat(e):"".concat(cd.LIKE)).toLowerCase()+"Update";this.hideReactions(),t.querySelector(this.triggerSelector).setAttribute("data-social-reaction",e),t.querySelector(this.triggerSelector).setAttribute("data-feed-action-type",n),t.querySelector(this.triggerSelector).setAttribute("data-feed-action-category",e?md:fd)}getCurrentReactionType(e){return e.querySelector(this.triggerSelector).dataset.socialReaction}getParentUrn(e){return e.querySelector(this.triggerSelector).dataset.parentUrn}getContainerElement(e){return e.closest(".reactions-menu")}getContainerElementFromParentUrn(e){const t=this.parentContainerElement.querySelector("".concat(this.triggerSelector,'[data-parent-urn="').concat(e,'"]'));return null==t?void 0:t.closest(".reactions-menu")}}class vd{constructor(e){if(!e)throw new Error("No element passed to FeedAttributedTextSegmentList");this._el=e,this._containerEl=e.closest(".attributed-text-segment-list__container"),this._truncationButton=this._containerEl.querySelector(".attributed-text-segment-list__btn-truncation"),Io(this._el)&&this._truncationButton&&(this._truncationButton.classList.remove("invisible"),this._truncationButton.addEventListener("click",this._handleSeeMoreAction.bind(this)))}_handleSeeMoreAction(){this._el.classList.remove("attributed-text-segment-list__content-truncated"),this._truncationButton.classList.add("hidden")}}class yd{constructor(e){let{endpoint:t,errorCallback:n=(()=>{}),globalWindow:i=window,onFollowSuccess:r=(()=>{}),onUnfollowSuccess:o=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");this._el=e,this._errorCallback=n,this._successCallbackForFollow=r,this._successCallbackForUnfollow=o,this._window=i,this._followButtonEl=e.querySelector(".follow-button__follow"),this._followingButtonEl=e.querySelector(".follow-button__following"),this._mutationInstance=new ad(t),this._entityUrn=e.getAttribute("data-entity-urn"),this._initEventListeners()}_initEventListeners(){this._followButtonEl.addEventListener("click",e=>{e.preventDefault(),this._showFollowingButton(),this._mutationInstance.execute(od,this._entityUrn,e=>{this._successCallbackForFollow(e)},e=>{this._hideFollowingButton(),this._errorCallback(e)})}),this._followingButtonEl.addEventListener("click",e=>{e.preventDefault(),this._hideFollowingButton(),this._mutationInstance.execute(sd,this._entityUrn,e=>{this._successCallbackForUnfollow(e)},e=>{this._showFollowingButton(),this._errorCallback(e)})})}_showFollowingButton(){var e,t,n,i;null===(e=this._followButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followingButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followingButtonEl.focus()}_hideFollowingButton(){var e,t,n,i;null===(e=this._followingButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followButtonEl.focus()}}class Ed{constructor(e){let{isLoggedIn:t=!1,reactionsMenuConfig:n={},newsletterConfig:i={},controlMenuConfig:r={},followButtonConfig:o={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e&&e.nodeType!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to MainFeedActivityCard");this._el=e,this._isLoggedIn=t,this._controlMenuConfig=r,this._controlMenu=this._initControlMenu(),this._nativeVideo=this._initNativeVideo(),this._reactionsMenuConfig=this._getReactionsMenuConfig(n),this._socialActionBar=this._initSocialActionBarMenu(),this._followButtons=this._initFollowButton(o),this._initPaginatedDocument(),this._socialShare=this._initSocialShare(),this._sponsoredContent=this._initSponsoredContent(),this._initImageViewer(),this._initFeedAttributedTextSegmentList(),this._initNewsletterSubscribe(i),this._handleShareAction()}_initFeedAttributedTextSegmentList(){this._el.querySelectorAll(".attributed-text-segment-list__content").forEach(e=>new vd(e))}_initControlMenu(){const e=this._el.querySelector(".ellipsis-menu");return e?this._isLoggedIn?void new ld(e,this._controlMenuConfig):new Qc(e):null}_handleShareAction(){this._isLoggedIn&&Oa("is-mobile")&&this._el.addEventListener("click",e=>{e.target.closest('[data-feed-action="share"]')&&_u(e,{feedItemToShare:this._el.parentElement,removalElements:['[data-id="main-feed-card__ellipsis-menu"]',".main-feed-activity-card__header",".main-feed-activity-card__social-actions",".social-action-bar","#feed-image-viewer-modal",".main-feed-activity-card__single-comment"]})})}_initSocialActionBarMenu(){if(this._isLoggedIn)return{reactionsMenu:new gd(".reactions-menu__trigger",this._el,this._reactionsMenuConfig)}}_initFollowButton(e){const t=this._el.querySelectorAll(".follow-button");if(this._isLoggedIn&&null!=t&&t.length)return Array.from(t).map(t=>new yd(t,e))}_getReactionsMenuConfig(e){const t=this._synchronizeReactionState(null==e?void 0:e.onReaction);return Je(Je({},e),{},{onReaction:t})}_synchronizeReactionState(e){const t=this;return function(n,i){var r;null==e||e.call(this,...arguments);const o=null===(r=t._socialActionBar)||void 0===r?void 0:r.reactionsMenu,s=Array.from(t._el.querySelectorAll(".reactions-menu")).filter(e=>i?i!==this.getCurrentReactionType(e):Boolean(this.getCurrentReactionType(e)));s.forEach(e=>{i?o.setReaction(i,e):o.toggleReaction(e)})}}_initNativeVideo(){const e=this._el.querySelector(".share-native-video__node");return e&&new Da(e)}_initImageViewer(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".feed-images-content"),t=this._el.querySelector("#feed-image-viewer-modal");e&&t&&(this.imageViewerModal=new cu(t,{shouldMoveToTopContainer:!1}),e.addEventListener("click",e=>{const t=e.target.closest("[data-position]");t&&this.imageViewerModal.open(t.dataset.position,{focusElement:t.querySelector("button")})}))}_initPaginatedDocument(){const e=this._el.querySelector('iframe[data-id="feed-paginated-document-content"]');e&&e.addEventListener("load",()=>{const{nativeDocumentConfig:t}=e.dataset;e.contentWindow.postMessage(t,"*")})}_initSponsoredContent(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".lead-gen-container");return e&&new Xu(e)}_initSocialShare(){const e=this._el.querySelector(".social-share");return e&&new xa(e)}_initNewsletterSubscribe(e){if(!this._isLoggedIn||null==e||!e.endpoint)return;const t=this._el.querySelector(".newsletter-details__action .follow-button"),n=this._el.querySelector(".newsletter-content__action .follow-button");let i=t||n;return i&&new yd(i,e)}}class bd{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e&&e.nodeType!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to MainFeedCard");this._el=e,this._options=t,this._mainFeedActivityCard=this._initMainFeedActivityCard()}_initMainFeedActivityCard(){if(this._el.classList.contains("main-feed-activity-card"))return new Ed(this._el,this._options)}}Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});const _d="https://radar.cedexis.com/1/11326/radar.html",wd="https://platform.linkedin.com/js/thirdPartyJSDelegatorFrame.html?type=dyndns";function Td(e){const t=document.createElement("iframe");t.style.display="none",t.setAttribute("sandbox","allow-scripts allow-same-origin"),t.src=e,document.body&&document.body.appendChild(t)}function Sd(){Td(wd)}function Cd(){Td(_d)}Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});function kd(e,t){const n=Oa("offline-text");t.clearAllToasts(),e&&t.trigger(Ia.NOTIFY,n,"offline")}function Id(e){e&&(e.setAttribute("category","system-icons"),e.setAttribute("type","close-small"))}const Ad=["category","type"];let Ld;const Od=e=>{const t=e.getAttribute("type");t&&0===t.indexOf("large-")&&e.classList.add("large-icon")},Rd=(e,t,n)=>{for(;e.firstChild;)e.removeChild(e.firstChild);const i=t&&n&&((e,t)=>{const n=Ld.querySelector("#".concat(e," #").concat(t));if(n){const e=n.cloneNode(!0);return e.removeAttribute("id"),e.classList.add("icon"),e}return null})(t,n);i&&e.appendChild(i)};class Nd extends HTMLElement{connectedCallback(){this.update(),this.syncA11yCaption(),this.setAttribute("aria-hidden","true"),Od(this)}disconnectedCallback(){this.removeA11yCaption()}static get observedAttributes(){return["a11y-text","type","class"]}attributeChangedCallback(e){Ad.indexOf(e)>-1&&this.update(),"a11y-text"===e&&this.syncA11yCaption(),"type"!==e&&"class"!==e||Od(this)}update(){const e=this.getAttribute("type"),t=this.getAttribute("category")||"ui",n="true"===this.dataset.inlineSvg;(e||t)&&(n||Rd(this,t,e))}installA11yCaption(){const{parentNode:e,a11yCaption:t}=this;e&&t&&!t.parentNode&&e.insertBefore(t,this)}removeA11yCaption(){const{a11yCaption:e}=this;e&&e.parentNode&&e.parentNode.removeChild(e),this.a11yCaption=null}syncA11yCaption(){const{a11yCaption:e}=this,t=this.getAttribute("a11y-text");t?e?e.textContent=t:(this.a11yCaption=(e=>{const t=document.createElement("span");return t.setAttribute("class","a11y-text"),t.textContent=e,t})(t),this.installA11yCaption()):this.removeA11yCaption()}}function Pd(){const e=document.getElementById("icons-svg").getAttribute("content");e&&Te(e,{skipCsrfToken:!0,sendCookies:!1}).then(e=>e.responseText).then(e=>{const t=(new DOMParser).parseFromString(e,"application/xml").firstChild;t&&(Ld=t,customElements.define("li-icon",Nd))})}const xd=["light","dark","system"],Md=["app","user"];function Dd(e){document.documentElement.classList.toggle("dark",e),function(e){Array.prototype.slice.call(document.querySelectorAll("img[light-theme-url]")).forEach(t=>function(e,t){const n=t?e.getAttribute("dark-theme-url"):e.getAttribute("light-theme-url");e.setAttribute(e.hasAttribute("data-delayed-url")?"data-delayed-url":"src",n)}(t,e))}(e);Jo("theme-color",e?"#1b1f23":"#ffffff")}function Bd(e){localStorage.setItem("mobileWebTheme",e)}function Ud(){const e=Oa("darkModeLixValue");if(!e||"control"===e)return;const t=x(window.location.href,"li_theme");if(t)return Dd("dark"===t),void Bd("dark"===t?"dark":"light");const n="on"===e?"system":"light",i=U("li_theme"),r=i&&xd.includes(i)?i:n;"system"===r?function(){if(window.matchMedia){Dd(window.matchMedia("(prefers-color-scheme:dark)").matches);try{window.matchMedia("(prefers-color-scheme:dark)").addEventListener("change",e=>Dd(e.matches))}catch(e){window.matchMedia("(prefers-color-scheme:dark)").addListener(e=>Dd(e.matches))}}}():Dd("dark"===r),Bd(r),function(e,t){let n="app";const i=U("li_theme_set");i&&Md.includes(i)?n=i:("on"===e&&"system"!==t||"enabled-light"===e&&"light"!==t)&&(n="user"),Ko("li_theme_set",n,15552e6)}(e,r)}const Fd=()=>{const e=window.location.href;window.addEventListener("popstate",t=>{if(t.state&&t.state.action&&"reload"===t.state.action){e===window.location.href||Vo()}})};function qd(e){return{isVoyagerAndroidAppInstalled:e.indexOf("com.linkedin.android")>-1,appTypesInstalled:e}}function Hd(e){k(()=>{!function(e){const t=[],n=navigator.getInstalledRelatedApps&&"function"==typeof navigator.getInstalledRelatedApps;if(n)window.appDetection.then(i=>{i.forEach(e=>{t.push(e.id)});const r=qd(t);e(n,r)});else{const i=qd(t);e(n,i)}}(e)})}const jd="PRIMARY_ACTION",Gd="DISMISS",zd="/mwlite/lego/sendPageImpressionEvent/",Wd="/mwlite/lego/sendWidgetImpressionEvent/",Kd="/mwlite/lego/sendWidgetActionEvent/";function Vd(e,t){Te(e,{method:"POST",postData:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).catch(()=>{})}let Yd;function Jd(e){const t=e.target.closest("[data-tracking-id]");if(t){var n,i;window.tracking.then(e=>{e.fireControlInteractionEvent(t.dataset.trackingId)});const e=null===(n=t.dataset)||void 0===n?void 0:n.action,r=document.querySelector("#app-upsell-container"),o=null==r||null===(i=r.dataset)||void 0===i?void 0:i.legoTrackingId;e&&(document.body.classList.remove("lock-screen"),!o||"upsell-app"!==e&&"custom-upsell-app"!==e?o&&"dismiss"===e&&(Vd(Kd,{trackingToken:o,actionCategory:Gd}),window.tracking.then(e=>{e.fireControlInteractionEvent("app_upsell_dismiss")})):Vd(Kd,{trackingToken:o,actionCategory:jd})),Yd(),r.remove()}}function Qd(){var e;const t=document.querySelector("#app-upsell-container");var n,i;Yd=Ka({el:t,focusElement:document.querySelector("#app-upsell-container .primary")}),t&&t.addEventListener("click",Jd),(n=null==t||null===(e=t.dataset)||void 0===e?void 0:e.legoTrackingId)&&(Vd(zd,{trackingToken:n}),Vd(Wd,{trackingToken:n})),null===(i=window.tracking)||void 0===i||i.then(e=>{lo(e,"half","p_mwlite_app_upsell_lego")})}function Xd(e,t){if(Oa("disableAppUpsellPrompt"))return;const{isVoyagerAndroidAppInstalled:n,appTypesInstalled:i}=t;if(e&&t&&n)return;const r=Oa("vanityName");let o="/mwlite/get-deep-link/";e&&(o=D(o,"isRelatedAppsApiAvailable",e,!0),i.length&&(o=D(o,"relatedAppId",i[0],!0))),r&&(o=D(o,"member",r,!0)),Te(o).then(e=>{if(e.responseText&&204!==e.status){const t=document.body;Xs(t,t.innerHTML+e.responseText,{ADD_ATTR:["category"]}),document.body.classList.add("lock-screen"),Qd()}})}function Zd(){Oa("isGlobalAlerts")||(document.querySelectorAll("#app-upsell-container").forEach(e=>e.parentNode.removeChild(e)),Hd(Xd))}function $d(){new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>{var e;e=vu(),window.addEventListener("offline",()=>kd(!0,e)),window.addEventListener("online",()=>kd(!1,e)),navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",t=>{const{data:n}=t;kd(n.offline,e)}),jo()}),window.addEventListener("load",()=>{R(document.querySelectorAll("li-icon.artdeco-global-alert__icon--dismissed")).map(Id),Pd(),zo("#overlay_"),Ud(),function(){if("serviceWorker"in navigator){Oa("isSWCacheEnabled")&&navigator.serviceWorker.register("/mwlite/service-worker.js",{scope:"/"}).then(e=>{console.info("Lite service worker is",e.waiting?"waiting":"registered"),e.waiting&&e.waiting.postMessage({action:"pageLoadComplete",href:window.location.href})}).catch(e=>{console.info("Lite service worker failed while registering!",e)})}}(),Cd(),Sd(),O.getInstance().addPagehideCallback(()=>{sessionStorage.setItem("previousPage",window.location.href)}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const t=()=>{const t=document.location.href,n=document.title,i={action:"reload",landingPage:t};window.history.replaceState(i,"",e),window.history.pushState(i,n,t)};Yo()&&t(),Fd()}(),yu(),Zd(),zo("#mobile-nav-search"),setTimeout(()=>{var t;null===(t=window.tracking)||void 0===t||t.then(t=>{Go()&&lo(t,uu.AJAX,"p_mwlite_launched_from_homescreen"),e()})})})})}Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const eh={getPageInstance:ho,getEventBody:co,firePageViewEvent:lo,fireViewModuleImpressionEvent:uo,getTrackingInstance:function(){let{appId:e="seo",appVersion:t="0.0.0",locale:n,multiproduct:i="undefined-frontend-mpName",service:r="undefined-frontend-serviceName",callTreeId:o=null,endpoint:s="li/track",maxSize:a=10,debounceTime:l=50,disableCompression:c=!1,customDelegate:u={},retryConfig:d=null,isLoggedIn:h=!1,customTransporterHosts:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const f={appId:e,appVersion:t,locale:n,multiproduct:i,service:r,endpoint:s,disableCompression:c,retryConfig:d,api:{AbortController,location:window.location,document,performance,PerformanceObserver,Promise,assign:Object.assign,fetch,sendBeacon:navigator.sendBeacon.bind(navigator)},batching:{maxSize:a,debounceTime:l}};o&&(f.treeID=o);const m=new Ni(f),g=new qi(m,Je({customTransporterHosts:p,preTransporter:e=>Je(Je({},e),{},{meta:fo(e.meta)}),shouldAnonymizeMemberId:()=>!!d&&!h},u));return g}}}).call(this,n(3).Buffer,n(2))},function(e,t,n){"use strict";(function(e,i){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s;n.d(t,"a",(function(){return gu})),n.d(t,"b",(function(){return nu})),n.d(t,"c",(function(){return Jc})),n.d(t,"d",(function(){return Ks})),n.d(t,"e",(function(){return Vc})),n.d(t,"f",(function(){return Gc})),n.d(t,"g",(function(){return yu})),n.d(t,"h",(function(){return iu})),n.d(t,"i",(function(){return mu})),n.d(t,"j",(function(){return Tc})),n.d(t,"k",(function(){return be})),n.d(t,"l",(function(){return zr})),n.d(t,"m",(function(){return zs})),n.d(t,"n",(function(){return Qc})),n.d(t,"o",(function(){return Xc})),n.d(t,"p",(function(){return Zc})),n.d(t,"q",(function(){return Ea})),n.d(t,"r",(function(){return Lc})),n.d(t,"s",(function(){return uo})),n.d(t,"t",(function(){return Rc})),n.d(t,"u",(function(){return rd})),n.d(t,"v",(function(){return Hs})),n.d(t,"w",(function(){return G}));var a,l,c,u={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},d="GUEST",h="MEMBER",p=0,f=1,m=2,g=(o(s={},d,"li_gc"),o(s,h,"li_mc"),s),v=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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in r(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},u)t[s]=t[s]||p,t[s]!==p&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===f||t[s]===p&&o===f},y=(a=[u.ADVERTISING,u.ANALYTICS_AND_RESEARCH,u.FUNCTIONAL],l=[p,f,m,p],c=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(c);if(!n)return{error:"Invalid consent body encoding",consent:new v};for(var i=parseInt(n[1],10),r={},o=0;o<a.length;o++)r[a[o]]=l[i>>2*o&3];var s=new Date(1e3*parseInt(n[2],10)),u=parseInt(n[3],10),d=p;return u>=0&&u<=3&&(d=l[u]),{error:null,consent:new v(r,s,t,d)}}}),E=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),b=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},_=function(e,t){var n=b(g[e],t);return n?T(n,e):b(g[d],t)||b(g[h],t)?w(m):w(f)},w=function(e){var t={};for(var n in u)t[n]=e;return{error:null,consent:new v(t,null,null,e)}};var T=function(t,n){t&&t.length>1&&'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1));var i,r=null;try{r=(i=t,"undefined"==typeof atob&&void 0!==e?e.from(i,"base64").toString("binary"):atob(i)).match(E)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new v};var o=parseInt(r[1],10),s=r[2];switch(o){case 1:return y.parseConsentBody(s,n);default:return{error:"Invalid encoded consent version ".concat(o),consent:new v}}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=b("liap",t)?b(g[h],t)?h:d:b(g[d],t)?d:h),_(e,t)};window.encodeURIComponent;function C(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 k(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}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 A=function(){let e;return{getInstance:function(){return e||(e=new I),e}}}();class L{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)}}const O=function(){let e;return{getInstance:function(){return e||(e=new L),e}}}();function R(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function N(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function P(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return r?e<=t*i:e>=n-(t+t*i)}function x(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function M(e,t){return D(e,"trk",t)}function D(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=x(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 B(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 l=()=>{r=null,n||e.apply(i,s)},c=n&&!r;clearTimeout(r),r=setTimeout(l,t),c&&e.apply(i,s)}}function U(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function F(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 q(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function H(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function j(e){return"string"!=typeof e?null:e.split("?")[0]}var G=Object.freeze({__proto__:null,closest:C,onload:k,UnloadHandler:A,PagehideHandler:O,makeArray:R,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:N,hasElementScrolledToThreshold:P,getQueryParam:x,addTrackingCode:M,addQueryParam:D,debounce:B,getCookie:U,dispatchCustomEvent:F,getDeferredPromise:q,isDocumentHidden:H,stripQueryParams:j});function z(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 W(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function K(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function V(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function Y(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const J={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},Q={Down:J.ARROW_DOWN,Right:J.ARROW_RIGHT,Left:J.ARROW_LEFT,Up:J.ARROW_UP,Esc:J.ESCAPE,Spacebar:J.SPACEBAR,Tab:J.TAB};function X(e){return Q[e]||e}class Z{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("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(X(e.key)){case J.ENTER:case J.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case J.ARROW_UP:this.isOpen||this._open(e);break;case J.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){X(e.key)===J.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=X(e.key);if(t===J.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case J.SPACEBAR:F(e.target,"click");break;case J.ARROW_LEFT:case J.ARROW_UP:n=C(e.target,"li");let t=n.previousElementSibling;t&&F(t,"focusEl");break;case J.ARROW_RIGHT:case J.ARROW_DOWN:n=C(e.target,"li");let i=n.nextElementSibling;i&&F(i,"focusEl")}}}_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)),F(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)),F(this.el,"close"),e&&this.mainButton.focus())}}let $,ee;const te=['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^="-"])'],ne=[...te,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),ie=[...te,"[tabindex]:not([disabled])"].join(",");function re(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function oe(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?!re(e):i&&i.get(e)?i.get(e):(re(e)?t=!1:e.parentNode&&(t=oe(e.parentNode,n,i)),i&&i.set(e,t),t)}const se={POLITE:"polite",ASSERTIVE:"assertive"};function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se.POLITE;$&&($.removeAttribute("aria-hidden"),$.setAttribute("aria-live",se.POLITE),$.textContent="",$.textContent=e,$.setAttribute("aria-live",t),clearTimeout(ee),ee=setTimeout(()=>{$.removeAttribute("aria-live"),$.setAttribute("aria-hidden","true")},1e4))}class le{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 ce=["class","disabled","style","tabindex","type"];class ue{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 le(this._container)}init(){this._observer.observe(this._container,{attributeFilter:ce,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=X(t),r=i===J.TAB&&e.shiftKey;!r&&i===J.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(ne)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=oe(r,e,n)&&r,o++}if(!r){const i=t[s];r=oe(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const de=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&de.test(e)}const pe=".".concat("collapsible-dropdown","__list"),fe=".".concat("collapsible-dropdown","__button"),me=".".concat("collapsible-dropdown","__close-button");class ge{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(ne)),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(pe),this._closeButton=this.el.querySelector(me),this._isMobile=he();const o=this.dropdownContentEl.closest(".".concat("collapsible-dropdown"));if(this._isMobile&&o&&(this._focusTrap=new ue(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(ne),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(fe),this.hideClass="hidden",this.collapsible=new Z(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("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),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 ve(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:l=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=new Promise((s,a)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)s({status:l.status,responseText:l.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));n.response={status:l.status,responseText:l.responseText},l.response&&(n.response.rawHeaders=l.getAllResponseHeaders()),a(n)}})),l.addEventListener("error",(function(e){a(e)})),l.open(t,e,!0),l.withCredentials=i,Object.keys(n).forEach(e=>{l.setRequestHeader(e,n[e])}),!r){const e=U("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",Y(e))}l.send(o)});return s&&(a.length?ye(c,e,l,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),c}function ye(e,t,n,i){try{const r=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?Ee(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,r,e.state.currentPageInstance)})})}catch(e){}}function Ee(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.trim().split(": "),i=n.shift();if(i){const e=n.join(": ");t.set(i.toLocaleLowerCase(),e)}}),t}class be{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 ge(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=Y(U("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}(V(document));return ve("".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 _e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},we=(parseInt,"object"==typeof _e&&_e&&_e.Object===Object&&_e),Te="object"==typeof self&&self&&self.Object===Object&&self;we||Te||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function Se(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 Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(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 Ae="light",Le="dark";function Oe(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Le:Ae:void 0}var Re;function Ne(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)||Fe(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 Pe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Fe(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 xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(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 De(e,t,n){return t&&Me(e.prototype,t),n&&Me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Be(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 qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fe(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 Fe(e,t){if(e){if("string"==typeof e)return qe(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)?qe(e,t):void 0}}function qe(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 He(e){return(He="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 je,Ge=new Uint8Array(16);function ze(){if(!je&&!(je="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 je(Ge)}var We=/^(?:[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 Ke(e){return"string"==typeof e&&We.test(e)}for(var Ve=[],Ye=0;Ye<256;++Ye)Ve.push((Ye+256).toString(16).substr(1));function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ve[e[t+0]]+Ve[e[t+1]]+Ve[e[t+2]]+Ve[e[t+3]]+"-"+Ve[e[t+4]]+Ve[e[t+5]]+"-"+Ve[e[t+6]]+Ve[e[t+7]]+"-"+Ve[e[t+8]]+Ve[e[t+9]]+"-"+Ve[e[t+10]]+Ve[e[t+11]]+Ve[e[t+12]]+Ve[e[t+13]]+Ve[e[t+14]]+Ve[e[t+15]]).toLowerCase();if(!Ke(n))throw TypeError("Stringified UUID is invalid");return n}function Qe(e){if(!Ke(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 Xe(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=Qe(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 Je(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Ze(e){return 14+(e+64>>>9<<4)+1}function $e(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function et(e,t,n,i,r,o){return $e((s=$e($e(t,e),$e(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function tt(e,t,n,i,r,o,s){return et(t&n|~t&i,e,t,r,o,s)}function nt(e,t,n,i,r,o,s){return et(t&i|n&~i,e,t,r,o,s)}function it(e,t,n,i,r,o,s){return et(t^n^i,e,t,r,o,s)}function rt(e,t,n,i,r,o,s){return et(n^(t|~i),e,t,r,o,s)}function ot(e,t,n){var i=(e=e||{}).random||(e.rng||ze)();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 Je(i)}function st(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function at(e,t){return e<<t|e>>>32-t}Xe("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[Ze(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,l=i,c=r,u=o;n=tt(n,i,r,o,e[s],7,-680876936),o=tt(o,n,i,r,e[s+1],12,-389564586),r=tt(r,o,n,i,e[s+2],17,606105819),i=tt(i,r,o,n,e[s+3],22,-1044525330),n=tt(n,i,r,o,e[s+4],7,-176418897),o=tt(o,n,i,r,e[s+5],12,1200080426),r=tt(r,o,n,i,e[s+6],17,-1473231341),i=tt(i,r,o,n,e[s+7],22,-45705983),n=tt(n,i,r,o,e[s+8],7,1770035416),o=tt(o,n,i,r,e[s+9],12,-1958414417),r=tt(r,o,n,i,e[s+10],17,-42063),i=tt(i,r,o,n,e[s+11],22,-1990404162),n=tt(n,i,r,o,e[s+12],7,1804603682),o=tt(o,n,i,r,e[s+13],12,-40341101),r=tt(r,o,n,i,e[s+14],17,-1502002290),n=nt(n,i=tt(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=nt(o,n,i,r,e[s+6],9,-1069501632),r=nt(r,o,n,i,e[s+11],14,643717713),i=nt(i,r,o,n,e[s],20,-373897302),n=nt(n,i,r,o,e[s+5],5,-701558691),o=nt(o,n,i,r,e[s+10],9,38016083),r=nt(r,o,n,i,e[s+15],14,-660478335),i=nt(i,r,o,n,e[s+4],20,-405537848),n=nt(n,i,r,o,e[s+9],5,568446438),o=nt(o,n,i,r,e[s+14],9,-1019803690),r=nt(r,o,n,i,e[s+3],14,-187363961),i=nt(i,r,o,n,e[s+8],20,1163531501),n=nt(n,i,r,o,e[s+13],5,-1444681467),o=nt(o,n,i,r,e[s+2],9,-51403784),r=nt(r,o,n,i,e[s+7],14,1735328473),n=it(n,i=nt(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=it(o,n,i,r,e[s+8],11,-2022574463),r=it(r,o,n,i,e[s+11],16,1839030562),i=it(i,r,o,n,e[s+14],23,-35309556),n=it(n,i,r,o,e[s+1],4,-1530992060),o=it(o,n,i,r,e[s+4],11,1272893353),r=it(r,o,n,i,e[s+7],16,-155497632),i=it(i,r,o,n,e[s+10],23,-1094730640),n=it(n,i,r,o,e[s+13],4,681279174),o=it(o,n,i,r,e[s],11,-358537222),r=it(r,o,n,i,e[s+3],16,-722521979),i=it(i,r,o,n,e[s+6],23,76029189),n=it(n,i,r,o,e[s+9],4,-640364487),o=it(o,n,i,r,e[s+12],11,-421815835),r=it(r,o,n,i,e[s+15],16,530742520),n=rt(n,i=it(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=rt(o,n,i,r,e[s+7],10,1126891415),r=rt(r,o,n,i,e[s+14],15,-1416354905),i=rt(i,r,o,n,e[s+5],21,-57434055),n=rt(n,i,r,o,e[s+12],6,1700485571),o=rt(o,n,i,r,e[s+3],10,-1894986606),r=rt(r,o,n,i,e[s+10],15,-1051523),i=rt(i,r,o,n,e[s+1],21,-2054922799),n=rt(n,i,r,o,e[s+8],6,1873313359),o=rt(o,n,i,r,e[s+15],10,-30611744),r=rt(r,o,n,i,e[s+6],15,-1560198380),i=rt(i,r,o,n,e[s+13],21,1309151649),n=rt(n,i,r,o,e[s+4],6,-145523070),o=rt(o,n,i,r,e[s+11],10,-1120210379),r=rt(r,o,n,i,e[s+2],15,718787259),i=rt(i,r,o,n,e[s+9],21,-343485551),n=$e(n,a),i=$e(i,l),r=$e(r,c),o=$e(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Ze(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),Xe("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),l=0;l<s;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];a[l]=c}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]=at(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],E=n[4],b=0;b<80;++b){var _=Math.floor(b/20),w=at(m,5)+st(_,g,v,y)+E+t[_]+h[b]>>>0;E=y,y=v,v=at(g,30)>>>0,g=m,m=w}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]+E>>>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 lt=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var ct=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(ct){var ut=new Uint8Array(256),dt=ut.length;lt={rng:function(){return dt>ut.length-16&&(ct.randomFillSync(ut),dt=0),ut.slice(dt,dt+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":He(crypto))&&crypto.randomUUID;function ht(){return ot(lt,new Array(16),0)}function pt(e){return Ue(e).map((function(e){return String.fromCharCode(e)})).join("")}function ft(){return pt(ht())}var mt=/^[a-zA-Z0-9/+]+[=]+$/;function gt(e,t){return{pageUrn:yt(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("")}(ht())}}function vt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function yt(e){return"urn:li:page:".concat(e)}function Et(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function bt(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 _t(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function wt(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"),l=a.objectStore(n),c=l.get(1);c.onsuccess=function(){var n=c.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=l.put({sequenceNumber:t},1);a.onsuccess=function(){return r(null)},a.onerror=function(){o(a.error)}}else{var u=l.add({sequenceNumber:0});u.onsuccess=function(){return r(0)},u.onerror=function(){o(u.error)}}},c.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(c.error))))},a.oncomplete=function(){return s.close()}},i.onerror=function(){return r(null)}}))}return Promise.resolve(null)}function Tt(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function St(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Ct,kt,It=(Ct=new Map,kt=new Map,{on:function(e,t){Tt(Ct,e,t)},before:function(e,t){Tt(kt,e,t)},off:function(e,t){St(Ct,e,t)},offBefore:function(e,t){St(kt,e,t)},emit:function(e,t){(kt.get(e)||[]).concat(Ct.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){kt.clear(),Ct.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var At=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||It.emit("internal:hide",e)};document.addEventListener("visibilitychange",At),window.addEventListener("pagehide",At)}var Lt=Uint8Array,Ot=Uint16Array,Rt=Uint32Array,Nt=new Lt([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]),Pt=new Lt([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]),xt=new Lt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mt=function(e,t){for(var n=new Ot(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Rt(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]},Dt=Mt(Nt,2),Bt=Dt[0],Ut=Dt[1];Bt[28]=258,Ut[258]=28;for(var Ft=Mt(Pt,0)[1],qt=new Ot(32768),Ht=0;Ht<32768;++Ht){var jt=(43690&Ht)>>>1|(21845&Ht)<<1;jt=(61680&(jt=(52428&jt)>>>2|(13107&jt)<<2))>>>4|(3855&jt)<<4,qt[Ht]=((65280&jt)>>>8|(255&jt)<<8)>>>1}var Gt=function(e,t,n){for(var i=e.length,r=0,o=new Ot(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new Ot(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new Ot(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[qt[d]>>>l]=c}else for(s=new Ot(i),r=0;r<i;++r)e[r]&&(s[r]=qt[a[e[r]-1]++]>>>15-e[r]);return s},zt=new Lt(288);for(Ht=0;Ht<144;++Ht)zt[Ht]=8;for(Ht=144;Ht<256;++Ht)zt[Ht]=9;for(Ht=256;Ht<280;++Ht)zt[Ht]=7;for(Ht=280;Ht<288;++Ht)zt[Ht]=8;var Wt=new Lt(32);for(Ht=0;Ht<32;++Ht)Wt[Ht]=5;var Kt=Gt(zt,9,0),Vt=Gt(Wt,5,0),Yt=function(e){return(e+7)/8|0},Jt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Qt=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},Xt=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[on,0];if(1==r){var s=new Lt(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],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=r-1;)a=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:a.f+l.f,l:a,r:l};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new Ot(h+1),f=Zt(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 E=o[i].s;p[E]<t?m-=1<<t-p[E]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new Lt(p),f]},Zt=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},$t=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ot(++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]},en=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},tn=function(e,t,n){var i=n.length,r=Yt(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)},nn=function(e,t,n,i,r,o,s,a,l,c,u){Jt(t,u++,n),++r[256];for(var d=Xt(r,15),h=d[0],p=d[1],f=Xt(o,15),m=f[0],g=f[1],v=$t(h),y=v[0],E=v[1],b=$t(m),_=b[0],w=b[1],T=new Ot(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var C=Xt(T,7),k=C[0],I=C[1],A=19;A>4&&!k[xt[A-1]];--A);var L,O,R,N,P=c+5<<3,x=en(r,zt)+en(o,Wt)+s,M=en(r,h)+en(o,m)+s+14+3*A+en(T,k)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return tn(t,u,e.subarray(l,l+c));if(Jt(t,u,1+(M<x)),u+=2,M<x){L=Gt(h,p,0),O=h,R=Gt(m,g,0),N=m;var D=Gt(k,I,0);for(Jt(t,u,E-257),Jt(t,u+5,w-1),Jt(t,u+10,A-4),u+=14,S=0;S<A;++S)Jt(t,u+3*S,k[xt[S]]);u+=3*A;for(var B=[y,_],U=0;U<2;++U){var F=B[U];for(S=0;S<F.length;++S){var q=31&F[S];Jt(t,u,D[q]),u+=k[q],q>15&&(Jt(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else L=Kt,O=zt,R=Vt,N=Wt;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,Qt(t,u,L[q+257]),u+=O[q+257],q>7&&(Jt(t,u,i[S]>>>23&31),u+=Nt[q]);var H=31&i[S];Qt(t,u,R[H]),u+=N[H],H>3&&(Qt(t,u,i[S]>>>5&8191),u+=Pt[H])}else Qt(t,u,L[i[S]]),u+=O[i[S]];return Qt(t,u,L[256]),u+O[256]},rn=new Rt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),on=new Lt(0),sn=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}(),an=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function ln(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=sn[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),8,function(e,t,n,i,r,o){var s=e.length,a=new Lt(i+s+5*(1+Math.ceil(s/7e3))+r),l=a.subarray(i,a.length-r),c=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(l[c>>3]=o),c=tn(l,c+1,e.subarray(u,d))}else{for(var h=rn[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new Ot(32768),v=new Ot(m+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&m},_=new Rt(25e3),w=new Ot(288),T=new Ot(32),S=0,C=0,k=(u=0,0),I=0,A=0;u<s;++u){var L=b(u),O=32767&u,R=v[L];if(g[O]=R,v[L]=O,I<=u){var N=s-u;if((S>7e3||k>24576)&&N>423){c=nn(e,l,0,_,w,T,C,k,A,u-A,c),k=S=C=0,A=u;for(var P=0;P<286;++P)w[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,B=O-R&32767;if(N>2&&L==b(u-B))for(var U=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);B<=F&&--D&&O!=R;){if(e[u+x]==e[u+x-B]){for(var H=0;H<q&&e[u+H]==e[u+H-B];++H);if(H>x){if(x=H,M=B,H>U)break;var j=Math.min(B,H-2),G=0;for(P=0;P<j;++P){var z=u-B+P+32768&32767,W=z-g[z]+32768&32767;W>G&&(G=W,R=z)}}}B+=(O=R)-(R=g[O])+32768&32767}if(M){_[k++]=268435456|Ut[x]<<18|Ft[M];var K=31&Ut[x],V=31&Ft[M];C+=Nt[K]+Pt[V],++w[257+K],++T[V],I=u+x,++S}else _[k++]=e[u],++w[e[u]]}}c=nn(e,l,o,_,w,T,C,k,A,u-A,c),!o&&7&c&&(c=tn(l,c+1,on))}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?Ot:4==e.BYTES_PER_ELEMENT?Rt:Lt)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+Yt(c)+r)}(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)),l=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&&an(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),an(a,l-8,n.d()),an(a,l-4,i),a}var cn="undefined"!=typeof TextDecoder&&new TextDecoder;try{cn.decode(on,{stream:!0})}catch(Qi){}function un(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function dn(){try{return un()&&"keepalive"in new Request("")}catch(e){return!1}}function hn(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)}}function pn(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=ln((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function fn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var mn,gn="undefined"!=typeof navigator&&"sendBeacon"in navigator,vn=dn()?function(e,t,n,i){return new Promise((function(r){fetch(e,pn({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,pn({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:fn(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(gn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,pn({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:fn(e)})}))}))};function yn(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 En(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 bn(){return mn||(mn=En("idb-queue","default")),mn}function _n(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))},yn(e.transaction)}function wn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn();return t("readwrite",(function(t){return _n(t,e)}))}var Tn=!1;function Sn(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]:bn();return n("readwrite",(function(n){return n.put(e),yn(n.count()).then((function(e){if(!(e<=t.maxNumber))return _n(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return wn(t,n)}))}function Cn(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]:bn();return Tn?Promise.resolve():Sn(e,t,n)}function kn(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())},yn(t.transaction).then((function(){return i}))}))}function In(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())},yn(t.transaction).then((function(){return i}))}))}function An(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn();return In(e,t,"next")}function Ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn();return In(e,t,"prev")}function On(){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 Rn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Nn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Pn(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{var n=function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function xn(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(Rn((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var Mn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xe(this,e),Be(this,"config",void 0),Be(this,"compress",void 0),Be(this,"throttleControl",void 0),Be(this,"withStore",void 0),Be(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=En(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=xn(this.replayEntries.bind(this),t.throttleWait)}return De(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Rn((function(){return"Persisting to DB "+e.url})),Cn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Rn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Nn((function(){return"push failed"}))}))};this.config.useIdle?Pn(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]:bn();return Tn=!0,e("readwrite",(function(e){return e.clear(),yn(e.transaction).finally((function(){return Tn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Nn((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([]):An(t,this.withStore).catch((function(){return e.disablePersistence=!0,Nn((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([]):Ln(t,this.withStore).catch((function(){return e.disablePersistence=!0,Nn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Rn((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn();return kn(e,t,"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,l=r.timestamp,c=r.statusCode,u=r.attemptCount;return Rn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),vn(o,s,On(a,e.config.headerName,u,c),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 Rn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:l,statusCode:c},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),Rn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:l,statusCode:c},null,2)})),Cn({url:o,body:s,timestamp:l,statusCode:c,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&&Nn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Pn(t):t()}}}]),e}(),Dn=function(){function e(){xe(this,e)}return De(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}(),Bn=function(){function e(t,n){xe(this,e),Be(this,"queue",void 0),Be(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Mn(t,n.compress):new Dn}return De(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}();Be(Bn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Un=[502,504],Fn=[429,503],qn=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];xe(this,e),Be(this,"url",void 0),Be(this,"body",void 0),Be(this,"config",void 0),Be(this,"persistenceConfig",void 0),Be(this,"compress",void 0),Be(this,"timestamp",void 0),Be(this,"isClearQueuePending",!1),Be(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 De(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 vn(e.url,e.body,t,e.compress)}),n,t).finally((function(){Rn((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(On(n,this.config.headerName,o,i)).then((function(i){var o,s,a,l;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),a=i;else if(Rn((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 c,u;null===(c=(u=r.config).onIntermediateResult)||void 0===c||c.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return Rn((function(){return"in memory retry in ".concat(d,"ms")})),(l=d,new Promise((function(e){return setTimeout(e,l)}))).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 Hn(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&&dn()&&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,l=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},c=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:l.attemptLimit,statusCodes:l.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:c.attemptLimit,statusCodes:c.statusCodes,maxNumber:c.maxNumber,batchEvictionNumber:c.batchEvictionNumber,throttleWait:c.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:Un,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:Fn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new Bn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return un()?new qn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||Fn},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){It.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){It.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var jn=function(){function e(t){xe(this,e),Be(this,"host",void 0),this.host=t}return De(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&&Hn(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){It.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();dn()&&"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){It.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;if(!Array.isArray(t)||t.length>0){var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;r||!un()||"undefined"==typeof Promise?hn(e,JSON.stringify(t),{headers:n}):vn(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}(),Gn="undefined"!=typeof window&&"undefined"!=typeof document,zn=/JSESSIONID="?([^";]+)"?/,Wn="",Kn=0;function Vn(){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?zn:i;if(!Wn||Date.now()-Kn>n){var o=Gn&&document.cookie.match(r);Wn=o&&o[1]||"",Kn=Date.now()}return Wn}var Yn=function(){function e(t){xe(this,e),Be(this,"networkTransporter",void 0),Be(this,"inactive",void 0),Be(this,"mpName",void 0),Be(this,"endpoint",void 0),Be(this,"debug",void 0),this.networkTransporter=new jn(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=Qn;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Jn;break;case"https://www.linkedin-ei.com/li/track":t=Jn;break;default:n=!0,t=Jn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return De(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":Vn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Jn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Qn="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function Xn(e){return"string"==typeof e}function Zn(e){return Xn(e)?e:e.topicName||e.eventName}function $n(e){return Xn(e)?e:e.eventName}var ei,ti,ni=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xe(this,e),Be(this,"host",void 0),Be(this,"cmoTransporter",void 0),Be(this,"clientMonitoringInstanceId",ft()),Be(this,"currentContext",oi()),Be(this,"appState",{}),Be(this,"estimatedFragmentSize",0),Be(this,"fragmentSizeLimit",void 0),Be(this,"activeFragmentEvent",void 0),Be(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new Yn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=ri(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return De(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=Pe(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,l={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(l),this.activeFragmentEvent.stats.previousInstanceEventStats.push(l)}},{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,l={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:$n(t),eventTopic:Zn(t)};this.estimatedFragmentSize+=JSON.stringify(l).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(l):this.findPreviousInstanceStat(r,(function(e){e.failures.push(l)})),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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,i=t.requestHeader,r=this.activeFragmentEvent;r.header=n,r.requestHeader=i,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=ri(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.stats.eventsGenerated,!1,t)}}},{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=si(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=si(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 ii(e){return ei||(ei=new ni(e)),{getCurrentInstanceId:function(){return ei.getCurrentInstanceId()},logEventGenerated:function(e){return ei.logEventGenerated(e)},logEventReadyToSend:function(e){ei.logEventReadyToSend(e)},logEventSent:function(e){ei.logEventSent(e)},logPersistedEventSent:function(e,t){ei.logEventSent(t,e)},logNetworkResponseCode:function(e){ei.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=ei)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){ei.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){ei.logFailedEvent(t,n,i,r,e)},flush:function(){ei.flush()},destroy:function(){ei=void 0},isDestroyed:function(){return void 0===ei},setCurrentContext:function(e){ei.setCurrentContext(e)},updateAppState:function(e){ei.updateAppState(e)}}}function ri(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 oi(){return{pageKey:"unknown",pageInstance:gt("unknown")}}function si(e){return Array.isArray(e)?pt(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(mt)}(e)?atob(e):pt(function(e){return Qe(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"}(ti||(ti={}));var ai="PageViewEvent",li=function(){function e(t){var n=this;xe(this,e),Be(this,"host",void 0),Be(this,"queue",void 0),Be(this,"preContextQueue",void 0),Be(this,"debounceTimer",void 0),Be(this,"unloadHandlers",void 0),Be(this,"maxQueueSize",void 0),Be(this,"flushDebounceTime",void 0),Be(this,"trackingEventListeners",[]),Be(this,"onHideHandler",(function(){n.forceFlush()})),Be(this,"networkTransporter",void 0),Be(this,"clientMonitoringConn",void 0),Be(this,"clientSequenceNumberCounter",void 0),Be(this,"isTimerRunning",void 0),Be(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,It.on("internal:hide",this.onHideHandler),this.networkTransporter=new jn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=ii(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return De(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(ti.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,ti.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(Zn(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,It.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:gt("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;wt("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){It.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){wt("update",this.clientSequenceNumberCounter).catch((function(e){It.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=Et(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,l=o.assign,c=e.meta.context,u=c.pageKey,d=c.pageInstance,h=function(e){return"string"==typeof e?e===ai:e.eventName===ai}(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&&l(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var g={header:l(m,e.meta.header||{}),requestHeader:l(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&l(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),l(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(ti.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 ci,ui=function(){function e(t,n){xe(this,e),this.clientBreadcrumbType=t,this.id=n}return De(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 di(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 hi(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(ci||(ci={}));var pi,fi,mi;!function(){function e(t,n){var i,r;if(xe(this,e),Be(this,"transporter",void 0),Be(this,"delegate",void 0),Be(this,"currentContext",void 0),Be(this,"appState",void 0),Be(this,"previousAppContext",void 0),Be(this,"customTransporters",void 0),Be(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 li(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=ii(t.host))}De(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){hi(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=hi(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Et(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,di(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Et(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Et(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=vt(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=Zn(e),o=void 0===t?"undefined":null===t?"null":He(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(ti.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var l=i||[];if(l.length>0){var c=l.map((function(e){return ui.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:c})}var u=l.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,l):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),o=i.length>0?this.addBreadcrumbsToEnvelope(r,i):r;return o}},{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(Xn(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=Zn(r.id),l="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var c=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(ti.UNKNOWN_EXECUTION_ERROR,r.id,l,c)}throw new Error(l)}return s.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return gt(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),It.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 vt((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&&Et(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 gi(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(){function e(t,n){var i,r=this;xe(this,e),Be(this,"core",void 0),Be(this,"protocol",void 0),Be(this,"throttleKeySet",new Set),Be(this,"config",void 0),Be(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},It.on("internal:error",this.reportTransporterError)}De(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,l=void 0===a?{}:a,c=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,E=this.core.host,b=E.appId,_=E.appVersion,w=E.service,T=E.serviceInstance,S=E.treeID,C=void 0===S?"":S,k=E.api,I=k.Promise,A=k.location,L=A.host,O=A.pathname,R=A.search,N=A.hash,P=void 0===N?"":N;if(l){t={};var x=new Map;Object.keys(l).forEach((function(e){x.set(e.toLowerCase(),l[e])})),t.callTreeId=x.get("x-li-uuid"),t.microsoftEdgeReference=x.get("x-msedge-ref"),t.pointOfPresenceId=x.get("x-li-pop"),t.fabric=x.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:b,e:{c:y,l:g,m:c,s:h,t:u,u:f},h:P,l:n.protocol,o:L,p:O,pageKey:e.pageKey,q:R,service:w,serviceInstance:T,serviceVersion:_,t:i,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=gi(u+c+h+i.join("")+s);return this.throttleKeySet.has(D)?I.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(),It.off("internal:error",this.reportTransporterError)}}])}();var vi=function(){function e(){xe(this,e),Be(this,"userTimingEntries",[]),Be(this,"longTasks",[]),Be(this,"resourceTimingEntries",[]),Be(this,"cdnData",void 0)}return De(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(Ei),cdnData:this.cdnData}}}]),e}(),yi=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Ei(e){return yi.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function bi(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};fi=Object.assign(Object.assign({},n),t),mi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(fi.root,n);var i=_i(e,pi.All,(function(){return _i(e,pi.Two,(function(){return _i(e,pi.One)}))}));if(i){var r=Oi(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[];if(t.length>2&&t.length>fi.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>fi.maxNumberOfTries)return r;i.counter+=1;var s=Ue(t);s.splice(o,1);var a=Ti(s);if(i.visited.has(a))return r;Ci(s)&&Ri(s,n)&&(r.push(s),i.visited.set(a,!0),r=r.concat(e(s,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),Ti(i)}throw new Error("Selector was not found.")}function _i(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=Ai(function(e){var t=e.getAttribute("id");return t&&fi.idName(t)?{name:"#"+Bi(t,{isIdentifier:!0}),penalty:0}:null}(o))||Ai.apply(void 0,Ue(function(e){return Array.from(e.attributes).filter((function(e){return fi.attr(e.name,e.value)})).map((function(e){return{name:"["+Bi(e.name,{isIdentifier:!0})+'="'+Bi(e.value)+'"]',penalty:.5}}))}(o)))||Ai.apply(void 0,Ue(function(e){return Array.from(e.classList).filter(fi.className).map((function(e){return{name:"."+Bi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Ai(function(e){var t=e.tagName.toLowerCase();return fi.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===pi.All)a&&(e=e.concat(e.filter(Ii).map((function(e){return ki(e,a)}))));else if(t===pi.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Ii).map((function(e){return ki(e,a)}))));else if(t===pi.One){var l=Ne(e=e.slice(0,1),1)[0];a&&Ii(l)&&(e=[ki(l,a)])}var c,u=Pe(e);try{for(u.s();!(c=u.n()).done;)c.value.level=s}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=fi.seedMinLength&&(i=wi(r,n)))return"break";o=o.parentElement,s++};o&&o!==fi.root.parentElement&&"break"!==a(););return i||(i=wi(r,n)),i}function wi(e,t){var n=Oi(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=Pe(t[0]);try{for(o.s();!(i=o.n()).done;){var s=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>fi.threshold)return t?t():null;var i,r=Pe(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Ci(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Ti(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 Si(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Ci(e){switch(mi.querySelectorAll(Ti(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Ti(e)));case 1:return!0;default:return!1}}function ki(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Ii(e){return"html"!==e.name&&!e.name.startsWith("#")}function Ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(Li);return i.length>0?i:null}function Li(e){return null!=e}function Oi(e){return Array.from(e).sort((function(e,t){return Si(e)-Si(t)}))}function Ri(e,t){return mi.querySelector(Ti(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(pi||(pi={}));var Ni,Pi=/[ -,\.\/:-@\[-\^`\{-~]/,xi=/[ -,\.\/:-@\[\]\^`\{-~]/,Mi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Di={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Bi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Di),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,l=e.length;a<l;){var c=e.charAt(a++),u=c.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<l){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?Pi.test(c)?"\\"+c:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==c||!r&&('"'==c&&i==c||"'"==c&&i==c)||r&&xi.test(c)?"\\"+c:c;s+=d}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Mi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function Ui(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 Fi(e){var t=e||performance;return Math.round(t.now())}function qi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return bi(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=qi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Hi(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 ji(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Gi,zi=function(){function e(t){xe(this,e),Be(this,"hostApis",void 0),Be(this,"hostnameProperties",void 0),Be(this,"usedHostnames",void 0),Be(this,"abortController",void 0),Be(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 De(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return _t(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=bt(_t(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,(Ni=Ni||i.createElement("a")).href=n,Ni.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}(),Wi=function(){function e(t,n,i,r){xe(this,e),Be(this,"hostApis",void 0),Be(this,"statics",void 0),Be(this,"options",void 0),Be(this,"allowTimingOrigin",void 0),Be(this,"collectResourceTimings",void 0),Be(this,"collectCdnData",void 0),Be(this,"perfObserver",void 0),Be(this,"renderTimings",new Map),Be(this,"urlToTreeId",new Map),Be(this,"cdnDataProvider",void 0),Be(this,"observables",new vi),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 zi(t))}return De(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Ni=Ni||t.createElement("a")).href=e,Ni.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:Ui(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Ui(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=Hi(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,Ki.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?bt(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=Hi(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:ji(this.renderTimings),networkInformationMetrics:Vi(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),Ki=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Vi(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"}(Gi||(Gi={}));var Yi=(Be(Re={},"web-ui-framework","EMBER"),Be(Re,"app-id","linkedin.rum.tracking"),Be(Re,"app-version","unknown"),Be(Re,"is-single-page-app",!0),Be(Re,"user-timing-mark-enabled",!1),Be(Re,"user-timing-measure-enabled",!0),Be(Re,"beacon-source","apps"),Be(Re,"enable-rs-timing",!0),Be(Re,"enable-cdn-tracking",!1),Be(Re,"async-plugins-timeout",5e3),Be(Re,"beacon-timeout",3e4),Be(Re,"enable-memory-measurement",!1),Be(Re,"pageKeyPrefix",""),Re),Ji=function(){function e(t,n,i){xe(this,e),Be(this,"featureName",void 0),Be(this,"trackingCore",void 0),Be(this,"rumConfig",void 0),Be(this,"observing",!1),Be(this,"basePageTreeId",void 0),Be(this,"startPageInstance",void 0),Be(this,"startMemory",void 0),Be(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return De(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)||gt("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:Fi(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}();Be(Ji,"checkpoints",[1,3,10,30,90,180,300]);var Qi,Xi,Zi,$i,er,tr=De((function e(t,n,i){xe(this,e),Be(this,"webUIFramework",void 0),Be(this,"timeSource",void 0),Be(this,"isSinglePageApp",void 0),Be(this,"appRenderMode",void 0),Be(this,"isAppRenderFailed",void 0),Be(this,"pageLoadMode","INITIAL"),Be(this,"isSSL",void 0),Be(this,"treeId",void 0),Be(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})),nr=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)}},ir=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){}},rr=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)},or=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},sr=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)))}},ar=-1,lr=function(){return"hidden"===document.visibilityState?0:1/0},cr=function(){rr((function(e){var t=e.timeStamp;ar=t}),!0)},ur=function(){return ar<0&&(ar=lr(),cr(),or((function(){setTimeout((function(){ar=lr(),cr()}),0)}))),{get firstHiddenTime(){return ar}}},dr=!1,hr=-1,pr=function(e,t){dr||(function(e,t){var n,i=ur(),r=nr("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:ir("paint",o);(s||a)&&(n=sr(e,r,t),s&&o(s),or((function(i){r=nr("FCP"),n=sr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){hr=e.value})),dr=!0);var n,i=function(t){hr>-1&&e(t)},r=nr("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())}},l=ir("layout-shift",a);l&&(n=sr(i,r,t),rr((function(){l.takeRecords().map(a),n(!0)})),or((function(){o=0,hr=-1,r=nr("CLS",0),n=sr(i,r,t)})))},fr={passive:!0,capture:!0},mr=new Date,gr=function(e,t){Qi||(Qi=t,Xi=e,Zi=new Date,Er(removeEventListener),vr())},vr=function(){if(Xi>=0&&Xi<Zi-mr){var e={entryType:"first-input",name:Qi.type,target:Qi.target,cancelable:Qi.cancelable,startTime:Qi.timeStamp,processingStart:Qi.timeStamp+Xi};$i.forEach((function(t){t(e)})),$i=[]}},yr=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(){gr(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,fr),removeEventListener("pointercancel",i,fr)};addEventListener("pointerup",n,fr),addEventListener("pointercancel",i,fr)}(t,e):gr(t,e)}},Er=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,yr,fr)}))},br=function(e,t){var n,i=ur(),r=nr("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=ir("first-input",o);n=sr(e,r,t),s&&rr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&or((function(){var i;r=nr("FID"),n=sr(e,r,t),$i=[],Xi=-1,Qi=null,Er(addEventListener),i=o,$i.push(i),vr()}))},_r={},wr=function(e,t){var n,i=ur(),r=nr("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=ir("largest-contentful-paint",o);if(s){n=sr(e,r,t);var a=function(){_r[r.id]||(s.takeRecords().map(o),s.disconnect(),_r[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),rr(a,!0),or((function(i){r=nr("LCP"),n=sr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,_r[r.id]=!0,n(!0)}))}))}))}},Tr=["LCP","FID","CLS"],Sr={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Cr={},kr=function(){var e;if(!Gn)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}(),Ir=!1,Ar=[],Lr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Or(){var e=!0===window.__test__resetWebVitalsState;if(!Ir||e){e&&(Ar=[]),Tr.forEach(Rr);var t=Symbol();er=t,[wr,br,pr].forEach((function(e){return e(Nr.bind(null,t),!0)})),[wr,br,pr].forEach((function(e){return e(Pr.bind(null,t))})),Ir=!0}}function Rr(e){Cr[e]={name:e,value:-1,updateHistory:[]};var t=Lr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Cr[e].value=-2)}function Nr(e,t){if(e===er){var n=Cr[t.name],i=Fi();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Ar.forEach((function(e){return e(t,i,!1)}))}}function Pr(e,t){e===er&&Ar.forEach((function(e){return e(t,Fi(),!0)}))}var xr=function(){function e(t,n){xe(this,e),Be(this,"basePageTreeId",void 0),Be(this,"basePageKey",void 0),Be(this,"observing",!1),Be(this,"appContextMap",new Map),Be(this,"rumConfig",void 0),Be(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return De(e,[{key:"startObserving",value:function(){var e,t,n=this;Or(),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",Tr.forEach((function(e){var t;-2===(null===(t=Cr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),Ar.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=Cr[e],n={name:Sr[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=Cr[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:kr},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:qi(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:qi(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":qi(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;xe(this,e),Be(this,"core",void 0),Be(this,"config",void 0),Be(this,"collector",void 0),Be(this,"boomerangStart",-1),Be(this,"webVitalsObserver",void 0),Be(this,"appMemoryObserver",void 0),Be(this,"pageMemoryObserver",void 0),Be(this,"liveTokens",new Set),Be(this,"stateWM",new WeakMap),Be(this,"activeToken",void 0),Be(this,"isInitial",void 0),Be(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({},Yi),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 Wi(i.host.api,new tr(t,this.config,i.host),this.config,s),this.collector.startObserving(),It.before("internal:hide",this.beforeHideHandlerBound)}De(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:Ui(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 Ji("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Ji("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new xr(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")),l=Ui(this.core.host.api.performance,a);s.endProps={renderCompleteTime:l,isImpactedByHiddenWindow:r,rumKey:o};var c=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=i.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){i.fireRumEvent(e,c)})):i.fireRumEvent(e,c)}),this.config["beacon-timeout"]),this.activeToken=void 0}else It.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;It.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,l=o.rumKey,c=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:l||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:c,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 Mr="undefined"!=typeof window&&"undefined"!=typeof performance,Dr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Br(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",Ur(n,t))}function Ur(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=W(document),i=K(document),r=Oe();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 Fr(e,t){const n=K(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function qr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Hr(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function Hr(e){return"string"==typeof e&&"=="===e.slice(-2)}!function(){function e(t,n){xe(this,e),Be(this,"featureKey",void 0),Be(this,"productName",void 0),Be(this,"endPageInstance",void 0),Be(this,"startPageInstance",void 0),Be(this,"isCanceled",!1),Be(this,"featureIdentifier",void 0),Be(this,"name",void 0),Be(this,"startTime",void 0),Be(this,"duration",void 0),Be(this,"marks",[]),Be(this,"spanStarts",new Map),Be(this,"spans",[]),Be(this,"isSpanContainer",!1),Be(this,"basePageTreeId",void 0),Be(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}De(e,[{key:"start",value:function(e){this.startPageInstance=e,Mr&&(this.startTime=Fi(),Dr&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){Mr&&(this.marks.push({name:e,startTime:Fi()}),Dr&&(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){Mr&&(this.spanStarts.set(e,Fi()),Dr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Mr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:Fi()-n}),Dr&&(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,Mr&&(this.duration=Fi()-this.startTime,Dr&&!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(Mr){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||gt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(Mr){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:jr,ESCAPE:Gr}=J;class zr{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 ue(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=X(e.key),n=t===jr&&document.activeElement===this._exitButtonEl;(t===Gr||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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),F(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{Br(e,"ajax",this._pageKey||"".concat(this._el.id))}):(F(this._wrapperEl,"afterOpen"),Promise.resolve());F(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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),F(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("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}function Wr(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 Kr=/ /g,Vr=/[\s\u0000<>"]|%00/,Yr=/\\/,Jr=/([.]|%2e){2}/i;let Qr=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 Xr(e){let t;if("string"!=typeof e)return Wr("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(Wr("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Kr,"+")),!Qr.test(t))return Wr("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(Vr.test(t))return Wr("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n,i=t.split("?")[0],r=!1;try{n=decodeURI(i)}catch(e){r=!0}return r?(Wr("jSecure Error: malformed url path detected: "+i),"invalid://"):Yr.test(i)||Jr.test(i)||Jr.test(n)?(Wr("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const Zr={redirect(e){window&&(window.location.href=e)}};function $r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function eo(e){return e.scrollHeight>e.offsetHeight}function to(e,t){const n=R(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function no(e){ro([e])}function io(e){oo([e])}function ro(e){to(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function oo(e){to(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function so(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}function ao(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&&eo(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")})}}const lo="prev",co="next";class uo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)throw new Error("No element passed in");this._el=e,this._previousButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=e.querySelector(".slide-list__list"),this._slideNavDisabled="true"===this._el.dataset.disabled,this._dragLimit=this._listEl.offsetWidth,this._items=[...this._listEl.children],this._lock={},this._currentPage=t,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=e.querySelector(".".concat("slide-list__header-nav--minimal")),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),this._indicatorElement=e.querySelector(".".concat("slide-list__indicator-button-container")),this._indicatorClickHandler=this._handleIndicatorClick.bind(this),this._noMorePreviousContentAlert=this._el.dataset.noMorePreviousContentAlert,this._noMoreNextContentAlert=this._el.dataset.noMoreNextContentAlert,!("ontouchstart"in window)&&this._slideNavDisabled||(this._initCalc(),window.addEventListener("resize",this._handleWindowResize.bind(this)),"ontouchstart"in window&&(this._el.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._el.addEventListener("touchmove",this._handleTouchMove.bind(this)),this._el.addEventListener("touchend",this._handleTouchEnd.bind(this))),e.querySelector(".slide-list__header-nav")&&this._el.addEventListener("click",this._handleScrollAction.bind(this)))}next(e){return e=e||1,this._currentPage+e<=this._pageTranslates.length-1&&(this._currentPage+=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}prev(e){return e=e||1,this._currentPage-e>=0&&(this._currentPage-=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}goToItem(e){const t=Number(e)-this._currentPage;if(0===t)return this._currentPage;t<0?this.prev(Math.abs(t)):this.next(t)}_handleIndicatorClick(e){const t=e.target.closest("[data-position]");t&&this.goToItem(t.dataset.position)}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_updateIndicator(){this._indicatorElement&&(this._pageItems.length===this._items.length?(io(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(no(this._indicatorElement),this._indicatorElement.isActive=!1,this._indicatorElement.removeEventListener("click",this._indicatorClickHandler)))}_initCalc(){this._pageTranslates=this._getPageTranslates(),this._pageTranslates[this._currentPage]||(this._currentPage=0),this._updateIndicator(),this._updateSlideButtons(!0),this._updateListPosition(),this._isResizing=!1,this._updateFocusableElements()}_getPageTranslates(){const e=this._listEl.offsetWidth,t=this._listEl.scrollWidth,n=this._isRtl?e-this._items[0].offsetLeft-this._items[0].offsetWidth:this._items[0].offsetLeft,i=t-e;let r=[0];const o=[new Set],s=[];let a=0;for(let t=0;t<this._items.length;t+=1){const l=r[r.length-1],c=o[r.length-1],u=this._items[t].offsetLeft,d=this._items[t].offsetWidth;let h=Math.abs(this._isRtl?u+d:u),p=Math.abs(this._isRtl?u:u+d);if(s.push(h),this._isRtl&&u>=0)c.add(this._items[t]);else if(0===h&&0===n||0===a)a=p,c.add(this._items[t]);else{if(p>l+e){if(h>=i){o.push(new Set(this._items.slice(t)));break}r.push((this._isRtl?a:h)-n),o.push(new Set([this._items[t]]))}else c.add(this._items[t]);a=p}}return r.push(i),s.forEach((e,t)=>{e>=i&&o[o.length-1].add(this._items[t])}),this._pageItems=o,r}_updateFocusableElements(){const e=this._pageItems[this._currentPage],t=this._items.filter(t=>!e.has(t));for(const e of this._items)e.removeAttribute("aria-hidden");for(const[e,t]of this._prevTabIndexMap)null===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t);for(const e of t){e.setAttribute("aria-hidden","true");e.querySelectorAll(ne).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=C(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===lo?this.prev():n===co&&this.next())}_fireScrollEvent(){F(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],0)}_updateIndicatorButtons(){if(this._indicatorElement&&this._indicatorElement.isActive){const e=this._el.querySelector(".slide-list__indicator-button-container > .slide-list__indicator--selected");e&&(e.classList.remove("slide-list__indicator--selected"),e.setAttribute("aria-current",!1));const t=this._el.querySelector(".".concat("slide-list__indicator-button-container"," > :nth-child(").concat(this._currentPage+1,")"));t.classList.add("slide-list__indicator--selected"),t.setAttribute("aria-current",!0)}}_updateSlideButtons(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._previousButton&&this._nextButton){if(this._previousButton.disabled=!1,this._nextButton.disabled=!1,!this._pageTranslates[1]||this._pageTranslates[1]<0)return this._previousButton.disabled=!0,void(this._nextButton.disabled=!0);0===this._currentPage&&(this._previousButton.disabled=!0,this._setTextInLiveRegion(this._noMorePreviousContentAlert,e)),this._currentPage!==this._pageTranslates.length-1&&0!==this._pageTranslates.length||(this._nextButton.disabled=!0,this._setTextInLiveRegion(this._noMoreNextContentAlert,e))}this._updateIndicatorButtons()}_setTextInLiveRegion(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this._el.querySelector(".slide-list__a11y-notification");if(!t&&n){const t=document.createTextNode(e);n.appendChild(t),setTimeout(()=>{n.removeChild(t)},1e3)}}_resetTouchEvents(){this._dragging=!1,this._dragCanceled=!1,this._listEl.classList.remove("slide-list__list--dragging"),this._lock.left=this._isRtl?this._currentPage===this._pageTranslates.length-1:0===this._currentPage,this._lock.right=this._isRtl?0===this._currentPage:this._currentPage===this._pageTranslates.length-1,this._dragThresholdMet=!1,this._t={current:{x:0,y:0}}}_handleTouchStart(e){this._resetTouchEvents(),this._t.start=this._getEventPosition(e),this._dragging=!0,this._listEl.classList.add("slide-list__list--dragging")}_handleTouchMove(e){if(!this._dragging||this._dragCanceled)return;let t=this._getEventPosition(e);this._t.current={x:this._t.start.x-t.x,y:this._t.start.y-t.y},this._canDrag()?(this._dragThresholdMet=!0,e.preventDefault(),this._lock.left&&this._t.current.x<0?this._t.current.x=this._t.current.x*-this._dragLimit/(this._t.current.x-this._dragLimit):this._lock.right&&this._t.current.x>0&&(this._t.current.x=this._t.current.x*this._dragLimit/(this._t.current.x+this._dragLimit)),this._updateTranslateXY((this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage])-this._t.current.x)):this._isVerticalScrolling()&&(this._dragCanceled=!0)}_handleTouchEnd(){this._dragging&&(!this._dragCanceled&&Math.abs(this._t.current.x)>20&&(this._t.current.x>0&&!this._lock.right?this._isRtl?this._currentPage--:this._currentPage++:this._t.current.x<0&&!this._lock.left&&(this._isRtl?this._currentPage++:this._currentPage--),this._dispatchPageChangeEvent()),this._resetTouchEvents(),this._updateSlideButtons(),this._updateListPosition())}_getEventPosition(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}_isVerticalScrolling(){return Math.abs(this._t.current.x)<Math.abs(this._t.current.y)&&Math.abs(this._t.current.y)>10}_canDrag(){return this._dragThresholdMet||Math.abs(this._t.current.x)>Math.abs(this._t.current.y)&&Math.abs(this._t.current.x)>10}_updateTranslateXY(e,t){this._listEl.style.transform="translate3d(".concat(e||0,"px, ").concat(t||0,"px, 0px)")}_dispatchPageChangeEvent(){F(this._el,"pagechange",{pageNumber:this._currentPage})}}var ho=Object.hasOwnProperty,po=Object.setPrototypeOf,fo=Object.isFrozen,mo=Object.getPrototypeOf,go=Object.getOwnPropertyDescriptor,vo=Object.freeze,yo=Object.seal,Eo=Object.create,bo="undefined"!=typeof Reflect&&Reflect,_o=bo.apply,wo=bo.construct;_o||(_o=function(e,t,n){return e.apply(t,n)}),vo||(vo=function(e){return e}),yo||(yo=function(e){return e}),wo||(wo=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 To,So=xo(Array.prototype.forEach),Co=xo(Array.prototype.pop),ko=xo(Array.prototype.push),Io=xo(String.prototype.toLowerCase),Ao=xo(String.prototype.match),Lo=xo(String.prototype.replace),Oo=xo(String.prototype.indexOf),Ro=xo(String.prototype.trim),No=xo(RegExp.prototype.test),Po=(To=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return wo(To,t)});function xo(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 _o(e,t,i)}}function Mo(e,t){po&&po(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=Io(i);r!==i&&(fo(t)||(t[n]=r),i=r)}e[i]=!0}return e}function Do(e){var t=Eo(null),n=void 0;for(n in e)_o(ho,e,[n])&&(t[n]=e[n]);return t}function Bo(e,t){for(;null!==e;){var n=go(e,t);if(n){if(n.get)return xo(n.get);if("function"==typeof n.value)return xo(n.value)}e=mo(e)}return function(e){return console.warn("fallback value for",e),null}}var Uo=vo(["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"]),Fo=vo(["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"]),qo=vo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ho=vo(["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"]),jo=vo(["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"]),Go=vo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zo=vo(["#text"]),Wo=vo(["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"]),Ko=vo(["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"]),Vo=vo(["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"]),Yo=vo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jo=yo(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Qo=yo(/<%[\s\S]*|[\s\S]*%>/gm),Xo=yo(/^data-[\-\w.\u00B7-\uFFFF]/),Zo=yo(/^aria-[\-\w]+$/),$o=yo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),es=yo(/^(?:\w+script|data):/i),ts=yo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ns="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 is(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 rs=function(){return"undefined"==typeof window?null:window},os=function(e,t){if("object"!==(void 0===e?"undefined":ns(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var ss=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rs(),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,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=Bo(m,"cloneNode"),v=Bo(m,"nextSibling"),y=Bo(m,"childNodes"),E=Bo(m,"parentNode");if("function"==typeof s){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var _=os(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,C=T.createNodeIterator,k=T.createDocumentFragment,I=T.getElementsByTagName,A=i.importNode,L={};try{L=Do(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==L;var R=Jo,N=Qo,P=Xo,x=Zo,M=es,D=ts,B=$o,U=null,F=Mo({},[].concat(is(Uo),is(Fo),is(qo),is(jo),is(zo))),q=null,H=Mo({},[].concat(is(Wo),is(Ko),is(Vo),is(Yo))),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,W=!0,K=!0,V=!1,Y=!1,J=!1,Q=!1,X=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=Mo({},["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,le=Mo({},["audio","video","img","source","image","track"]),ce=null,ue=Mo({},["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="text/html",Ee=void 0,be=null,_e=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":ns(e))||(e={}),e=Do(e),U="ALLOWED_TAGS"in e?Mo({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?Mo({},e.ALLOWED_ATTR):H,ce="ADD_URI_SAFE_ATTR"in e?Mo(Do(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?Mo(Do(le),e.ADD_DATA_URI_TAGS):le,oe="FORBID_CONTENTS"in e?Mo({},e.FORBID_CONTENTS):se,G="FORBID_TAGS"in e?Mo({},e.FORBID_TAGS):{},z="FORBID_ATTR"in e?Mo({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,X=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)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ge?function(e){return e}:Io,Y&&(K=!1),$&&(Z=!0),re&&(U=Mo({},[].concat(is(zo))),q=[],!0===re.html&&(Mo(U,Uo),Mo(q,Wo)),!0===re.svg&&(Mo(U,Fo),Mo(q,Ko),Mo(q,Yo)),!0===re.svgFilters&&(Mo(U,qo),Mo(q,Ko),Mo(q,Yo)),!0===re.mathMl&&(Mo(U,jo),Mo(q,Vo),Mo(q,Yo))),e.ADD_TAGS&&(U===F&&(U=Do(U)),Mo(U,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=Do(q)),Mo(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&Mo(ce,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=Do(oe)),Mo(oe,e.FORBID_CONTENTS)),ne&&(U["#text"]=!0),J&&Mo(U,["html","head","body"]),U.table&&(Mo(U,["tbody"]),delete G.tbody),vo&&vo(e),be=e)},Se=Mo({},["mi","mo","mn","ms","mtext"]),Ce=Mo({},["foreignobject","desc","title","annotation-xml"]),ke=Mo({},Fo);Mo(ke,qo),Mo(ke,Ho);var Ie=Mo({},jo);Mo(Ie,Go);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=Io(e.tagName),i=Io(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(ke[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[i]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=Mo({},["title","style","font","a","script"]);return!Ie[n]&&(r[n]||!ke[n])}return!1},Le=function(e){ko(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Oe=function(e,t){try{ko(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ko(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(X)e="<remove></remove>"+e;else{var i=Ao(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=_?_.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?I.call(t,J?"html":"body")[0]:J?t.documentElement:s},Ne=function(e){return C.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},xe=function(e){return"object"===(void 0===a?"undefined":ns(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":ns(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){O[e]&&So(O[e],(function(e){e.call(n,t,i,be)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Le(e),!0;if(Ao(e.nodeName,/[\u0080-\uFFFF]/))return Le(e),!0;var i=Ee(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:U}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&No(/<[/\w]/g,e.innerHTML)&&No(/<[/\w]/g,e.textContent))return Le(e),!0;if("select"===i&&No(/<template/i,e.innerHTML))return Le(e),!0;if(!U[i]||G[i]){if(ne&&!oe[i]){var r=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),v(e))}if(!G[i]&&Ue(i)){if(j.tagNameCheck instanceof RegExp&&No(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Le(e),!0}return e instanceof l&&!Ae(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i||!No(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=Lo(t,R," "),t=Lo(t,N," "),e.textContent!==t&&(ko(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},Be=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(K&&!z[t]&&No(P,t));else if(W&&No(x,t));else if(!q[t]||z[t]){if(!(Ue(e)&&(j.tagNameCheck instanceof RegExp&&No(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&No(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&No(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(ce[t]);else if(No(B,Lo(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Oo(n,"data:")||!ae[e]){if(V&&!No(M,Lo(n,D,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},Fe=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;Me("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(i=Ro(t.value),r=Ee(c),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Oe(c,e),a.keepAttr))if(No(/\/>/i,i))Oe(c,e);else{Y&&(i=Lo(i,R," "),i=Lo(i,N," "));var d=Ee(e.nodeName);if(Be(d,r,i))try{u?e.setAttributeNS(u,c,i):e.setAttribute(c,i),Co(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,i=Ne(t);for(Me("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Me("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),Fe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var s=void 0,l=void 0,c=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw Po("toString is not a function");if("string"!=typeof(e=e.toString()))throw Po("dirty is not a string, aborting")}if(!n.isSupported){if("object"===ns(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(xe(e))return t.toStaticHTML(e.outerHTML)}return e}if(Q||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=Ee(e.nodeName);if(!U[h]||G[h])throw Po("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(l=(s=Re("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?s=l:s.appendChild(l);else{if(!Z&&!Y&&!J&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?w:""}s&&X&&Le(s.firstChild);for(var p=Ne(ie?e:s);c=p.nextNode();)3===c.nodeType&&c===u||De(c)||(c.content instanceof o&&qe(c.content),Fe(c),u=c);if(u=null,ie)return e;if(Z){if($)for(d=k.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=J?s.outerHTML:s.innerHTML;return Y&&(f=Lo(f,R," "),f=Lo(f,N," ")),_&&ee?_.createHTML(f):f},n.setConfig=function(e){Te(e),Q=!0},n.clearConfig=function(){be=null,Q=!1},n.isValidAttribute=function(e,t,n){be||Te({});var i=Ee(e),r=Ee(t);return Be(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],ko(O[e],t))},n.removeHook=function(e){O[e]&&Co(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const as={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function ls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=cs(null,e,t);return n.innerHTML}function cs(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Ce({},as);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=ss.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var us="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",ds=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",hs=["b","del","em","i","s","strong","sub","sup"],ps=hs.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"]),fs=[us,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function ms(){}var gs,vs,ys=(vs=/[&<>"'\u0000\\=]/g,gs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(vs,(function(e){return gs[e]}))}),Es=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",l=e[ds],i[a]=l,l)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,l}))}}();var bs=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function _s(e){return/[<&]/.test(e)}var ws,Ts=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)};function Ss(e){e=bs(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",Ts(e,(function(e,s){t=e.tags||ps,n=e.attrs||fs,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function Cs(e){return Ss({tags:e=e||ps,checkUrlAttrs:!0})}function ks(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!Cs(n).test(e):i?!ks.R_UNSAFE_CUSTOM_ELEMENT.test(e):!ks.R_UNSAFE_HTML.test(e)}function Is(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function As(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 ms||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?ys(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return _s(i)&&!ks(i,n)&&(i=Is(i),Wr("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function Ls(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}ks.R_UNSAFE_HTML=Cs(),ks.R_UNSAFE_CUSTOM_ELEMENT=Ss([{tags:ps,checkUrlAttrs:!0},{tags:[(ws={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[us,ws.attrs].join("|"),checkUrlAttrs:!1}]);var Os={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,"",""]};Os.optgroup=Os.option,Os.tbody=Os.tfoot=Os.colgroup=Os.caption=Os.thead,Os.th=Os.td;var Rs=/<([\w:]+)/;function Ns(e,t){var n,i,r,o,s,a,l,c=t.createDocumentFragment(),u=[];for(s=0,l=e.length;s<l;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||c.appendChild(t.createElement("div")),n=(Rs.exec(o)||["",""])[1].toLowerCase(),Ms(r,(i=Os[n]||Os._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);Ls(u,r.childNodes),(r=c.firstChild).textContent=""}else Ls(u,o.nodeType?[o]:o);for(c.textContent="",o=u[s=0];o;)c.appendChild(o),o=u[++s];return c}var Ps=As,xs=As;function Ms(e,t,n){var i=As(t,n);return _s(i)?e.innerHTML=i:e[ds]=i,i}function Ds(e,t){if(!(this instanceof Ds))return new Ds(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}Ds.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new ms,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(ks(e,this._options)||(n=e,e=Is(e),Wr("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var Bs={ALLOWED_TAGS:ps,FORMATTING_TAGS:hs,htmlEncode:ys,htmlUnencode:Es,log:Wr,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 Ds?r:ys(r))})),xs(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Ns([e],t);else{if(!bs(e))return e;n=Ns(e,t)}return Ls([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:Ps,reEncode:function(e){return ys(Es(e))},_redirector:Zr,redirect:function(e){const t=Xr(e);t===e&&Zr.redirect(t)},sanitizeHTML:xs,sanitizeUrl:Xr,setElementContent:Ms,text:function(e){return Wr("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),ys(e)},unsafe:function(e){return e},UnsafeString:Ds};const Us=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Fs{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(Us).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(".toast");Array.from(e).forEach(e=>{this._removeToast(e)})}bindEvents(){this._el.addEventListener("click",e=>{const t=C(e.target,".toast__dismiss-btn");if(t){const e=C(t,".toast");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(".toast__message");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===Us.CAUTION?l="text-color-text-caution":e===Us.ERROR?l="text-color-text-negative":e===Us.SUCCESS&&(l="text-color-text-positive"),a.classList.add(l),cs(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",Bs.sanitizeUrl(M(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(".toast__message");return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),t.focus()}),500),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),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()})}}ke(Fs,"TOAST_TYPES",Us);const qs={};function Hs(e){const t=document.getElementById(e);if(!t&&void 0!==qs[e])return qs[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),qs[e]=null,qs[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):(qs[e]=n,t.parentNode.removeChild(t),qs[e])}const js={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(js).map(e=>js[e]);const Gs=["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(Gs,"i");class zs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.tracking,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.lazyloader;const{sources:r,posterUrl:o,digitalmediaAssetUrn:s,trackingId:a,captionsUrl:l}=e.dataset,c=JSON.parse(r);if(!c.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,s,t,i).then(e=>(o&&e.poster(o),e.src(c),l&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:l}),this._bindTracking(e,n),e))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,s=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",a=Ce({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{}},i);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:s}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o=Ce({header:{},requestHeader:{}},r);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=z(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}class Ws{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:i=!1,isBottom:r=!0,exposeStickyState:o=!1,marginApplied:s=!1,debounceDelay:a=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&i)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=n,this.hideOnScrollDown=i,this.isBottom=r,this.exposeStickyState=o,this._scrollListener=B(this._onScroll.bind(this),a),this.marginApplied=s,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),k(()=>{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(){he()||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"),F(this.el,"show")}hide(){this.el.classList.remove("show"),F(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}}"".concat("tooltip__popup","--show");class Ks{constructor(e){if(!e)throw new Error("No element passed in");this._el=e,this._imgEl=this._el.querySelector(".cover-img__image"),this._imgEl&&(this.cropInfo=Hs(this._imgEl.dataset.embedId),this.ratio=0,this._imgEl.classList.contains(".lazy-loaded")&&this._initCalc(),this._bindEvents())}_bindEvents(){window.addEventListener("resize",this._handleWindowResize.bind(this)),this._imgEl.addEventListener("load",this._initCalc.bind(this))}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_initCalc(){const e=this._el.clientWidth,t=this._el.clientHeight,n=this._imgEl.naturalWidth,i=this._imgEl.naturalHeight,r=this.cropInfo?this.cropInfo.y:0,o=this.cropInfo?this.cropInfo.x:0,s=n-o,a=i-r,l=e/s,c=t/a,u=s*c>=e,d=a*l>=t;let h=0;d&&u?h=Math.min(l,c):d?h=l:u&&(h=c);let p=Math.max(h*n,e),f=Math.max(h*i,t);h!==this.ratio&&(this.ratio=h,this._imgEl.style.width="".concat(p,"px"),this._imgEl.style.height="".concat(f,"px"),this._imgEl.style.top="-".concat(r*this.ratio,"px"),this._imgEl.style.left="-".concat(o*this.ratio,"px")),this._isResizing=!1}}const Vs="loader--absolute",Ys="loader--show",Js="loader--full-screen",Qs="no-scroll",Xs="loader-wrapper";class Zs{constructor(e){let{wrapperEl:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains(Vs),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(Ys),this.el.classList.contains(Js)&&document.body.classList.add(Qs),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Xs)}hide(){this.el.classList.remove(Ys),document.body.classList.remove(Qs),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Xs)}}const $s="dismissable-input",ea="dismissable-input--focus",ta="dismissable-input__button",na="dismissable-input__button--show",ia="dismissable-input__input";class ra{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(ia)),this._dismissButtonEl=this.el.querySelector(".".concat(ta)),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(ea),this._updateDismissButton(),F(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(na)}_showDismissButton(){this._dismissButtonEl.classList.add(na)}_onInputBlur(){this.el.classList.remove(ea)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),F(this.el,"clear")}}const oa={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"},sa="i18n_aria_live_text_no-suggestions",aa="i18n_aria_live_text_one-suggestion",la="i18n_aria_live_text_multiple-suggestions",ca=500;class ua{constructor(e,t){let{createDismissableInput:n,elementClasses:i=oa,generateApiUrl:r,liveTextEl:o,liveTextClearTime:s=ca,onSelect:a,onInput:l=(()=>{}),inputEl:c,dropdownContainerEl:u,dropdownListEl:d,isFullPageTypeahead:h,closeOnEscape:p=!1}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=i,this._closeOnEscape=p,this._input=c||this.el.querySelector(".".concat(ia)),this._dropdownContainerEl=u||this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=d||this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=r,this._onSelect=a,this._onInput=l,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 ra(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=B(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(X(e.key)){case J.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case J.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case J.ESCAPE:this._closeOnEscape&&this._hideList();break;case J.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 ve(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=R(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=Hs(sa),this._liveTextOneSuggestion=Hs(aa),this._liveTextMultipleSuggestions=Hs(la)}_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))}}class da{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 ue(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target: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:t}=e;C(t,".".concat(oa.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&$r()){return!this.expandedEl.contains(document.activeElement)}return!1}}class ha extends ua{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 pa={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"},fa="i18n_aria_live_text_recent-searches-one-suggestion",ma="i18n_aria_live_text_recent-searches-multiple-suggestions",ga="i18n_aria_live_text_recent-searches-cleared";class va extends ua{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:pa,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(pa.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=R(this.dropdownContainerEl.querySelectorAll(".".concat(pa.listItem))),this._clearBtnItem=e.querySelector(".".concat(pa.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(ta))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(pa.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(pa.listItemLink));n?this._redirect(n):t.classList.contains(pa.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(pa.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=Hs(fa),this._liveTextMultipleSuggestions=Hs(ma),this._liveTextClearedSuggestions=Hs(ga)}_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(){ve(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class ya{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 ge(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("hidden"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.add("hidden")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button")&&!e.target.classList.contains("switcher-tabs__tab"))return;const t=C(e.target,".".concat("switcher-tabs__tab")),n=t.querySelector(".".concat("switcher-tabs__button")).getAttribute("data-switcher-type");n&&t&&this.currentType!==n?(this.collapsibleSwitcher.collapsible.currentListItem=t,this._switchTo(n,t)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const t=this.el.querySelector(".".concat("tab-selected"));if(C(t,".".concat("switcher-tabs__tab"))&&(t.setAttribute("aria-selected","false"),t.classList.remove("tab-selected")),e.classList.contains("switcher-tabs__tab")){const t=e.querySelector(".".concat("switcher-tabs__button"));t.classList.add("tab-selected"),t.setAttribute("aria-selected","true")}}_updatePlaceholderText(){let e=this.el.querySelector(".".concat("tab-selected"));e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class Ea{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 s=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=i,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const a=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=R(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new da(t,this.el,this.placeholderEl,{onCloseExpandedSearch:r,isMobileDevice:a});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 ha(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(pa.dropdown))&&new va(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new ha(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat($s,".search-input"))).forEach(e=>{new ra(e);e.querySelector(".".concat(pa.dropdown))&&new va(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat($s))).forEach(e=>new ra(e));o&&(this.switcher=new ya(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(z(document),"-").concat(t)})})})}}class ba extends zr{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("overlay_").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("overlay_").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);z(document);String.fromCharCode(32);class _a{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("show"),this.el.classList.remove("dismiss"),this.dismissBtn.addEventListener("click",this._dismissEvent),F(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),F(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function wa(){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 Ta(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function Sa(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}const Ca={session_key:[wa(),Ta(3),Sa(128)],session_password:[wa(),Ta(6),Sa(400)]};function ka(e,t){const n=Ca[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 Ia=window||i;const Aa=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function La(){const e=Ia.location?Ia.location.hostname:"";return Aa.test(e)}function Oa(){return La()?Ra()?"platform.linkedin.cn":"platform.linkedin.com":Ra()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function Ra(){const e=Ia.location?Ia.location.hostname:"";return/\.cn$/.test(e)}function Na(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 Ia.XMLHttpRequest;r.withCredentials=i,r.open("GET",e,!0),r.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},r.send()}function Pa(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function xa(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function Ma(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function Da(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 Ba(e){const t=new Ia.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function Ua(){return/utagdb=[^;]+/.test(Ia.document.cookie)}let Fa;const qa={},Ha={};function ja(){return"https://".concat(La()?Ra()?"www.linkedin.cn":"www.linkedin.com":Ra()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function Ga(){return function(e){let t=Da({},e);return t["compliance.isAdvertisingOptIn"]=Pa(t),t["compliance.isAnalyticsAndResearchOptIn"]=xa(),t["compliance.isFunctionalOptIn"]=Ma(),t}(qa)}function za(e){if(!Ha[e]){const t=function(e){return"https://".concat(Oa(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{Na(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});Ha[e]=n}return Ha[e]}Ia.utag_data||(Ia.utag_data={});const Wa="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Ka;function Va(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(Oa(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(Ba(t))),n}function Ya(){return function(){if(void 0===Ka&&Wa){const e=Ia.document.cookie.match(/litms_utag_override=([^;]+)/);Ka=e?e[1]:""}return Ka}().length>0}function Ja(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Da({},t,Ga());e.view(r),Ua()&&Ia.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function Qa(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Da({},t,Ga());e.link(r),Ua()&&Ia.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function Xa(e,t,n){if(function(e){Ia.utag=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?Qa(e,i.data,i.callback,n):Ja(e,i.data,i.callback,n)}}}function Za(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 $a(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function el(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:$a(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Ia.utag_cfg_ovrd=Ia.utag_cfg_ovrd||{},Ia.trackingEventDebugData=Ia.trackingEventDebugData||[],Ia.utag_cfg_ovrd.noview=!0,Ia.utag_cfg_ovrd.nocookie=!0;const tl=Wa&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Ia.navigator.userAgent),nl={};let il,rl,ol,sl={};class al{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=za(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&&(nl[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==Ia.utag&&(Ia.utag=void 0),void 0!==Ia.utag_data&&(Ia.utag_data=void 0);const n=function(){if(!Fa){const e=ja();Fa=new Promise((t,n)=>{Na(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return Fa}().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=>{qa[n+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),i=(r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return Ya()?Ka:Va(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=Ia.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,Ia.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Ia.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){if(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&&Za(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!tl}_shouldProcessEvent(e){return tl?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?Xa(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=el(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&Za(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){S().consent.consentAvailable&&!rl?this._refireTracking():il=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){sl.payloads&&sl.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(Wa){rl=!1;const{payloads:n=[],url:i}=sl,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),sl={url:r,payloads:s},il||(il=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return S().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 ll(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 cl{constructor(e){if(this.trackingInstance=e,this.pageKey=z(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 al({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>ll({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||ll({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(Ce({pageKey:n},t))}}!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 ul="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",dl={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},hl={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:pl,GOOGLE_USER_FETCHED:fl,INITIALIZED:ml}=dl,{INITIALIZATION:gl,AUTHENTICATION:vl}=hl;class yl extends EventTarget{constructor(e){let{libSrcPath:t,el:n,clientId:i=ul}=e;if(super(),!n)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=t,this.el=n,this.clientId=i,window.gapi)this._initializeGoogleAuth();else{if(!t)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");!function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}(()=>{!function(e,t){const n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}(t,this._initializeGoogleAuth.bind(this))})}}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then(e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(ml);this.dispatchEvent(t)}).catch(e=>{const t={type:gl,message:e.error},n=new CustomEvent(pl,{detail:t});this.dispatchEvent(n)})}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},e=>{const t=new CustomEvent(fl,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)},e=>{const t={type:vl,message:e.error},n=new CustomEvent(pl,{detail:t});this.dispatchEvent(n)})}_getGoogleUserInformation(e){const t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}var El={exports:{}};function bl(e){this.message=e}bl.prototype=new Error,bl.prototype.name="InvalidCharacterError";var _l="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new bl("'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 wl=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(_l(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 _l(t)}};function Tl(e){this.message=e}Tl.prototype=new Error,Tl.prototype.name="InvalidTokenError",El.exports=function(e,t){if("string"!=typeof e)throw new Tl("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(wl(e.split(".")[n]))}catch(e){throw new Tl("Invalid token specified: "+e.message)}},El.exports.InvalidTokenError=Tl;const Sl=dl,Cl=hl;function kl(){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{GOOGLE_USER_FETCHED:Il,GOOGLE_ERROR:Al,INITIALIZED:Ll}=Sl,{INITIALIZATION:Ol}=Cl;class Rl{constructor(e){let{initSuccess:t,initFailure:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("Google sign in cta container/wrapper element must be provided");this.el=e,this.btnEl=this.el.querySelector(".google-sign-in-cta-widget__btn"),this.initSuccess=t,this.initFailure=n,this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new Zs(this.loaderEl),window.tracking&&window.tracking.then(e=>{const t=z(document,{skipSuffix:!0}),n="".concat(t,"-").concat(this.btnEl.dataset.trackingControlName),i=qr(e),r=this._createHiddenInputElement("pageInstance",i),o=this._createHiddenInputElement("controlId",n);this.el.appendChild(o),this.el.appendChild(r)}),this.googleSignInPromise=this._createGoogleSignIn()}_createGoogleSignIn(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib")).then(()=>(this.googleSignInInstance=new yl({el:this.btnEl}),this.initSuccess&&"function"==typeof this.initSuccess&&this.googleSignInInstance.addEventListener(Ll,this.initSuccess),this.googleSignInInstance.addEventListener(Il,e=>{const{idToken:t}=e.detail;this._submitWithGoogle(t)}),this.googleSignInInstance.addEventListener(Al,e=>{const{type:t,message:n}=e.detail,i="google-sign-in-error--".concat(t,"-").concat(n);this._fireControlInteractionEvent(i),this.initFailure&&"function"==typeof this.initFailure&&t===Ol&&this.initFailure()}),this.googleSignInInstance))}_fireControlInteractionEvent(e){window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}_submitWithGoogle(e){this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=this._createHiddenInputElement("googleIdToken",e),this._createHiddenInputElement("apfc",kl()),this.loader&&this.loader.show(),this.el.submit()}_createHiddenInputElement(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),this.el.appendChild(n),n}}const Nl='[data-js-module-id="guest-input"]';class Pl{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=Hs("i18n_sign_in_form_show_text"),this.showLabelText=Hs("i18n_sign_in_form_show_label"),this.hideText=Hs("i18n_sign_in_form_hide_text"),this.hideLabelText=Hs("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('[data-js-module-id="guest-input__message"]','[for="').concat(this.usernameElId,'"]')),this.passwordMsgEl=this.el.querySelector("".concat('[data-js-module-id="guest-input__message"]','[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));const o=this.el.nextElementSibling;null!=o&&o.classList.contains("google-sign-in-cta-widget")&&(this.googleSignInCta=new Rl(o,{initSuccess:this.initSuccess,initFailure:this.initFailure})),this.el.addEventListener("submit",e=>{if(e.preventDefault(),!this._validate()){if(this._customValidate)return this._customValidate(this.el);if(this.el.appendChild(this._createHiddenInputElement("apfc",kl())),this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const e=this.sessionRedirectEl.value,t=D("/public-profile/settings/anonymousLogin","csrfToken",Y(U("JSESSIONID")));this.sessionRedirectEl.value=D(t,"originalSessionRedirect",e),localStorage.setItem("voyager-web:anonymous-login",Date.now())}this.el.submit()}}),window.tracking&&window.tracking.then(e=>{const t=z(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=qr(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){Br(e,"ajax",t),function(e){if(!ol){if(!e)throw new Error("No trackingInstance passed in!");ol=new cl(e)}return ol}(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=ka(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(Nl).classList.add("input-error"),this.usernameMsgEl.classList.remove("hidden");const t="".concat("i18n_username","_").concat(e);return this.usernameMsgEl.innerText=Hs(t),this.usernameEl.focus(),!0}this.usernameEl.closest(Nl).classList.remove("input-error"),this.usernameMsgEl.classList.add("hidden");const t=ka(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(Nl).classList.add("input-error"),this.passwordMsgEl.classList.remove("hidden");const e="".concat("i18n_password","_").concat(t);return this.passwordMsgEl.innerText=Hs(e),this.passwordEl.focus(),!0}this.passwordEl.closest(Nl).classList.remove("input-error"),this.passwordMsgEl.classList.add("hidden")}}const xl=30,Ml="cta-modal";class Dl{constructor(e){let{daysCoolOff:t=xl,dismissOnOutsideClick:n=!0,dismissOnScroll:i=!1,dismissBtnEl:r,coolOffKey:o=Ml}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to cta modal");if(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()){this.dismissable=new _a(this.el,this.dismissBtnEl,{isShown:!1});const e=this.el.querySelector(".google-sign-in-cta-widget");e?new Rl(e,{initSuccess:this.dismissable.show.bind(this.dismissable),initFailure:this._onGoogleSignInInitFailure.bind(this)}):this.dismissable.show(),this._addEventListeners()}}_onGoogleSignInInitFailure(){const e=this.el.querySelector(".google-sign-in-cta-widget"),t=this.el.querySelector(".cta-modal__google-sign-in-container");t?this.el.removeChild(t):this.el.removeChild(e);this.el.querySelectorAll("[class*=".concat("--full-width","]")).forEach(e=>{e.className=e.className.replace("--full-width","")})}_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 Bl={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Ul{constructor(e,t){let{threshold:n=.9,root:i=null,rootMargin:r="0px",componentList:o=[],impressionEventCallback:s=(()=>{}),onImpression:a=(()=>{}),onObservation:l=(()=>{}),onUnobservation:c=(()=>{})}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("IntersectionObserver"in window))return Bl;this.root=i,this.threshold=n,this.rootMargin=r,this.trackingInstance=t,this.impressionEventCallback=s,this._onImpression=a,this._onObservation=l,this._onUnobservation=c;const u={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),u),this.observeComponents(o)}observeComponents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.forEach(e=>{this.intersectionObserverInstance.observe(e),this._onObservation(e)})}unobserveComponents(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(e=>{this.intersectionObserverInstance.unobserve(e),this._onUnobservation(e)})}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter(e=>this._isNodeVisible(e)).map(e=>{let{target:t}=e;return t});t.length>0&&(this._onImpression({trackingInstance:this.trackingInstance,visibleElements:t}),this.impressionEventCallback({trackingInstance:this.trackingInstance,queuedImpressions:t}),this.unobserveComponents(t))}}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.length>0&&this.observeComponents(e)}}function Fl(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function ql(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 Hl(e,t){return Math.round(e-t)}var jl,Gl=(jl=function(e,t){return(jl=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)},function(e,t){function n(){this.constructor=e}jl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),zl=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}(),Wl=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}(zl),Kl=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}(zl),Vl=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}(zl),Yl=function(){return 0},Jl=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Ql=Jl&&!!window.requestAnimationFrame,Xl={hasDOM:Jl,hasRAF:Ql,getScrollTop:Yl,getScrollLeft:Yl,getHeight:Yl,getWidth:Yl,rAF:Ql?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:Yl,get isDirty(){return Xl.version!==Xl.lastVersion},document:window.document,IntersectionObserver:Jl&&window.IntersectionObserver,performance:Jl&&window.performance};function Zl(){++Xl.version}function $l(){var e=null!=document.scrollingElement;Xl.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Xl.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}Jl&&(Xl.getHeight=function(){return window.innerHeight},Xl.getWidth=function(){return window.innerWidth},Xl.updateMeta=function(){Xl.meta.height=Xl.getHeight(),Xl.meta.width=Xl.getWidth(),Xl.meta.scrollLeft=Xl.getScrollLeft(),Xl.meta.scrollTop=Xl.getScrollTop(),Xl.lastVersion=Xl.version},Xl.updateMeta(),"loading"!==document.readyState?$l():document.addEventListener("DOMContentLoaded",$l),window.addEventListener("resize",Zl,!1),window.addEventListener("scroll",Zl,!1));var ec=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,Xl.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}(),tc=null;var nc=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])})(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)}}(),ic="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),rc=0,oc=function(){function e(e,t,n,i,r,o,s,a,l,c){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=l,this.left=c}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 Xl.isDirty&&Xl.updateMeta(),e===window||e===document?(n.height=Xl.meta.height,n.width=Xl.meta.width,n.scrollLeft=Xl.meta.scrollLeft,n.scrollTop=Xl.meta.scrollTop,n):(t=ql(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 sc(){return rc+++ic}var ac=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(tc||(tc=new ec)),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(oc.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=ql(e),i=oc.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}(),lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new Wl,t}return nc(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=sc();return this.queue.push({callback:e,id:t}),t},t}(ac),cc=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return nc(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(lc),uc=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=Xl.version,r.queue=new Vl,r.ALLOW_CACHED_SCHEDULER=i,r}return nc(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Xl.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=ql(r)),i(e,o,s)}this.lastVersion=Xl.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||sc();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(ac),dc=null;var hc=function(){function e(){this.queue=new Kl}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}(),pc=function(){function e(e){this.scheduler=new cc(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=oc.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),fc=null;function mc(e,t){var n=(fc||(fc={scroll:new pc((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new pc((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new hc,beforeunload:new hc,hide:new hc,show:new hc}))[e];n&&n.listen(t)}function gc(e,t){if(fc){var n=fc[e];n&&n.unlisten(t)}}function vc(e,t){if(fc){var n=fc[e];n&&n.trigger(t)}}function yc(e){(dc||(dc=new lc)).scheduleWork(e)}function Ec(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}}Xl.hasDOM&&(window.addEventListener("beforeunload",(function(){vc("beforeunload"),vc("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?vc("show"):vc("hide")})));var bc=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 uc(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||sc();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,l=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===l.numSatisfiedThresholds&&a.isIntersecting===l.entry.isIntersecting||(l.numSatisfiedThresholds=s,l.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:_c(),intersectionRatio:0,intersectionRect:_c(),isIntersecting:!1,rootBounds:_c(),target:n};var r=t.bottom,o=t.right,s=e.left+i.left,a=e.top+i.top,l={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},c=Math.max(l.left,t.left),u=Math.max(l.top,t.top),d=Math.min(l.left+l.width,t.right)-c,h=Math.min(l.top+l.height,t.bottom)-u,p=d>=0?c: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,l=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:s,intersectionRatio:l,isIntersecting:Fl({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:l,target:n,boundingClientRect:Ec(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 _c(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var wc={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,l=i.BACKGROUND_TAB_FIX,c=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=!!c&&!!Xl.IntersectionObserver;var h=this.usingNativeIo?Xl.IntersectionObserver:bc;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),Xl.hasDOM&&(mc("beforeunload",this.onWindowClosed),mc("hide",this.onTabHidden),mc("show",this.onTabShown),l&&(this.paused="visible"!==Xl.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,l=r.intersectionRect,c=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:c,rootBounds:a,intersectionRect:l,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,l=e.target,c=this.recordStore[l.__spanielId],u=this.usingNativeIo?Math.floor((Xl.performance.timeOrigin||Xl.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:l,duration:0,visibleTime:s?u:-1,entering:!1,payload:c.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:wc,boundingClientRect:o||wc,intersectionRect:wc,visibleTime:r.lastVisible.unixTime,duration:Hl(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=Hl(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:Fl(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var l=Number(setTimeout((function(){n.visible=!0,r.duration=Hl(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=l}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(),Xl.hasDOM&&(gc("beforeunload",this.onWindowClosed),gc("hide",this.onTabHidden),gc("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),yc((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||sc();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}}();Xl.IntersectionObserver&&Xl.IntersectionObserver;class Tc{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._impressionTracking=new Ul(e,t,Ce({componentList:this._componentList,onImpression:this._onImpression.bind(this)},n))}get _componentList(){return[...document.querySelectorAll(".main-job-card, .aside-job-card")]}_onImpression(e){let{trackingInstance:t,visibleElements:n}=e;const i=n.filter(e=>{const{entityUrn:t,referenceId:n,trackingId:i}=e.dataset;return Boolean(t&&n&&i)}).map(e=>{const{entityUrn:t,referenceId:n,trackingId:i}=e.dataset;return{jobPostingUrn:t,referenceId:n,trackingId:i}});i.length>0&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return;const n=z(document),{header:i,requestHeader:r}=Ur(n),{referenceId:o}=t[0],s=t.map((function(){let{jobPostingUrn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e})),a=t.map((function(){let{jobPostingUrn:e,trackingId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{objectUrn:e,trackingId:t}})),l={header:i,requestHeader:r,referenceId:o,jobPostingUrns:s,impressedJobPostings:a};e.fireTrackingEvent("JobViewportImpressionEvent",l)}(t,i)}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._impressionTracking.handleDynamicElements(e)}}const Sc=".".concat("show-more-less","__list"),Cc=".".concat("show-more-less","__more-button"),kc=".".concat("show-more-less","__less-button"),Ic="".concat("show-more-less","__list--hide-after"),Ac="".concat("show-more-less","__button--hide");class Lc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(ie);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Sc),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Ic,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Cc),this.showLessButton=this.el.querySelector(kc),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new Z(e,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",()=>this._showElements()),this.el.addEventListener("close",()=>this._hideElements()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){let{target:t}=e;if(t){let e=this._getFocusItemFromListItem(t);e&&e.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1),this._focusItem({target:this.firstHiddenListItem})}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(e){e?(this.showLessButton.classList.add(Ac),this.showMoreButton.classList.remove(Ac)):(this.showLessButton.classList.remove(Ac),this.showMoreButton.classList.add(Ac))}}".".concat("accordion-item__trigger");const Oc=350;class Rc{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=Oc}=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($r()){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===Hs("isClsFixActive")||document.body.classList.add("body--sticky-header"),this.stickyElement=new Ws(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("sticky-header--disabled"),document.body.classList.remove("body--sticky-header-disabled"),this.stickyElement?this.stickyElement.reactivate():this.instantiateStickyElement()):(this.stickyHeader.classList.add("sticky-header--disabled"),document.body.classList.add("body--sticky-header-disabled"),null===(t=this.stickyElement)||void 0===t||t.deactivate())}}const Nc=["options","optionsV2"];function Pc(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const xc=Pc("action"),Mc=Pc("openpage"),Dc=Pc("openlink"),Bc=e=>xc(e)&&"BLOCK_PROFILE"===e.action.actionType;function Uc(e){const t=function(e){const t=(e.type?e.type:e).toLowerCase().split("_"),n=[];n.push(t.splice(0,1));for(const e of t)n.push(e[0].toUpperCase()+e.slice(1));return n.join("")}(e),n=t.toLowerCase();return{[n]:Ce({},e[t]),type:n}}class Fc{constructor(e){this.optionStack=[],this.semaphoreJson=e.constructor==={}.constructor?e:JSON.parse(e)}getNextStep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.semaphoreJson,{options:n,optionsV2:i}=t,r=Ie(t,Nc);if(n&&!(this.optionStack.length>=r.numberOfSteps)){if("BLOCK_PROFILE"===e){let e=n.find(e=>xc(e)&&"BLOCK_PROFILE"===e.action.type);if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType="BLOCK_PROFILE";const t=[e];return this.optionStack.push(Ce({options:t.map(e=>Uc(e)),heading:r.blockConfirmationScreen.heading},r)),this.optionStack[this.optionStack.length-1]}if(e){const t=this.optionStack.length;if(0===t)return;const n=this.optionStack[t-1].options.find(t=>t[t.type].title===e);if(!n)return;if(Mc(n))return Ce(Ce({},n),r);const i=Ce({options:n[n.type].options.map(e=>Uc(e))},r);n[n.type].heading&&(i.heading=n[n.type].heading),this.optionStack.push(i)}else n=[...n,...i],this.optionStack.push(Ce({options:n.map(e=>Uc(e))},r));return this.optionStack[this.optionStack.length-1]}}getPreviousStep(){if(this.optionStack.length>1)return this.optionStack.pop(),this.optionStack[this.optionStack.length-1]}hasPreviousStep(){return this.optionStack.length>1}getCurrentStep(){return this.optionStack[this.optionStack.length-1]}findAction(e){const t=this.optionStack[this.optionStack.length-1].options;if(!t)return;const n=t.find(t=>xc(t)&&t[t.type].title===e);return n&&n.action}}const qc="hidden";class Hc extends zr{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.titleEl=this._el.querySelector(".semaphore-modal__title"),this.contentEl=this._el.querySelector(".semaphore-modal__content"),this.footer=this._el.querySelector(".modal__footer"),this.submitBtn=this.footer.querySelector('[data-semaphore-action="submit"]')}setTitle(e){this.titleEl.textContent=e}setContent(e){this.contentEl.appendChild(e)}hideFooter(){this.footer.classList.add(qc)}showFooter(){this.footer.classList.remove(qc)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(qc)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(qc)}querySelector(e){return this._el.querySelector(e)}clearContent(){for(this.disableSubmit();this.contentEl.firstChild;)this.contentEl.removeChild(this.contentEl.firstChild)}close(){this.clearContent(),super.close()}}class jc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'[data-item-type="semaphore"]',t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3?arguments[3]:void 0;this.semaphoreSelector=e,this.parentContainer=t||document;const r=this.parentContainer.querySelector(e);if(r){this.semaphoreTrackingPrefix=r.dataset.semaphoreTrackingPrefix;const e=this.parentContainer.querySelector("#semaphore-modal");this.semaphoreModal=new Hc(e,{focusElement:i}),this.submitActionCallBack=n,this.parentContainer?(this.parentContainer.addEventListener("click",this.semaphoreClickHandler.bind(this)),e.addEventListener("click",this.clickHandler.bind(this))):(document.body.removeEventListener("click",this.clickHandler),document.body.addEventListener("click",this.clickHandler.bind(this)))}}clickHandler(e){const t=C(e.target,"[data-semaphore-input]");if(t){if(t.href)return e.preventDefault(),void window.open(t.href,"_blank");"semaphore-action"===t.name&&(this.semaphoreModal.showFooter(),this.semaphoreModal.showSubmit())}if("back"===e.target.dataset.semaphoreAction){const e=this.semaphoreConfigParser.getPreviousStep();return void(e?(this.renderSemaphoreOptions(e),this.refreshLazyLoader(),this.semaphoreModal.open()):this.semaphoreModal.close())}if("submit"===e.target.dataset.semaphoreAction){let t=this.semaphoreModal.querySelector("[data-semaphore-input]:checked");if(t){const n=this.semaphoreConfigParser.findAction(t.value);n&&this.sendAction(n).finally(()=>{this.renderThanks(this.semaphoreConfigParser.getCurrentStep().resultScreen),this.submitActionCallBack(e)})}}let n=C(e.target,"[data-semaphore-item]");if(n&&"action"!==n.dataset.semaphoreItem){const t=n.querySelector('[data-attr="title"]');if(t){const n=this.semaphoreConfigParser.getNextStep(t.textContent);n&&(Mc(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open())}}else{if(n&&"BLOCK_PROFILE"===n.dataset.semaphoreType){const e=this.semaphoreConfigParser.getNextStep("BLOCK_PROFILE");e&&this.renderSemaphoreOptions(e)}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=C(e.target,this.semaphoreSelector);t&&t.dataset.semaphoreContentType&&t.dataset.semaphoreContentUrn&&"true"===t.dataset.isLoggedIn&&(e.preventDefault(),this.makeSemaphoreRequest(t.dataset.semaphoreContentUrn,t.dataset.semaphoreContentType,t.dataset.semaphoreAuthorProfileId,t.dataset.semaphoreAuthorUrn).then(e=>{this.semaphoreConfigParser=new Fc(e);const t=this.semaphoreConfigParser.getNextStep();t&&(this.renderSemaphoreOptions(t),this.refreshLazyLoader(),this.semaphoreModal.open())}))}renderSemaphoreOptions(e){this.semaphoreModal.clearContent();const t=this.parentContainer.querySelector("#semaphore-container-template").content.firstElementChild.cloneNode(!0);let n=!1,i=!1,r=!1;e.options.forEach(o=>{let s=o.type;Dc(o)&&!i&&(i=!0),xc(o)&&(n||(n=!1===o[s].nonRadioOptionEnabled),s=Bc(o)?"block":o[s].nonRadioOptionEnabled?s:"".concat(s,"-radio"));const a=this.parentContainer.querySelector("#semaphore-".concat(s,"-template")).content.firstElementChild.cloneNode(!0),l=o[o.type],c=a.querySelector('[data-attr="title"]');if(c&&(c.textContent=l.title),l.type&&(a.dataset.semaphoreType=l.type),xc(o)){if(Bc(o)){r=!0;const t="".concat(e.blockConfirmationScreen.firstLine," \n ").concat(e.blockConfirmationScreen.secondLine);a.querySelector('[data-attr="block-content"]').textContent=t}a.querySelector("[data-semaphore-input]").value=l.title}const u=a.querySelector('[data-attr="body"]');u&&(l.body?u.textContent=l.body:u.remove()),l.url&&(a.querySelector("[data-semaphore-input]").href=l.url),a.querySelector("[data-semaphore-input]").dataset.trackingControlName=l.trackingId,t.appendChild(a)}),this.semaphoreModal.setContent(t),this.semaphoreModal.setTitle(e.heading||e.headings.whyReportingThis),this.semaphoreConfigParser.hasPreviousStep()?(this.semaphoreModal.showFooter(),r&&this.semaphoreModal.showSubmit()):this.semaphoreModal.hideFooter(),i&&this.semaphoreModal.hideSubmit()}renderThanks(e){this.semaphoreModal.hideFooter(),this.semaphoreModal.clearContent(),this.semaphoreModal.setTitle(e.title);const t=this.parentContainer.querySelector("#semaphore-result-template").content.firstElementChild.cloneNode(!0);t.querySelector('[data-attr="thanks-text-body"]').textContent=e.messageBody.body;let n=t.querySelector('[data-attr="thanks-help-center-link"]');n.textContent=e.messageBody.helpCenterText,n.href=this.addTrackingCode(e.messageBody.helpCenterLink);const i=document.createElement("div");i.appendChild(t),this.semaphoreModal.setContent(i)}addTrackingCode(e){return M(e,this.semaphoreTrackingPrefix)}sendAction(e){return ve(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}makeSemaphoreRequest(e,t,n,i){let r=D("/psettings/flagging-menu","entityUrn",e);return r=D(r,"contentSource",t),n?r=D(r,"authorProfileId",n):i&&(r=D(r,"authorUrn",i)),ve(r).then(e=>200===e.status?e.responseText:"{}").catch(()=>"{}")}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then(e=>{e.refreshLoader()})}}class Gc{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e,this.currentMenuItem=this._el.querySelector(".ellipsis-menu__item-button");const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new ge(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new jc('[data-item-type="semaphore"]',t))}}var zc;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(zc||(zc={}));new Set(Object.values(zc));Error;var Wc;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Wc||(Wc={})),new Set(Object.values(Wc));class Kc{constructor(e){let{actionButtonClassName:t="promo__action",dismissButtonClassName:n="promo__dismiss",lockScreenClassName:i="no-scroll",startCoolOffAfterImpression:r=!1,dismissableOverlay:o=!0,overlayClassName:s="overlay"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to apptivation promo");this.promo=e,this.actionBtns=this.promo.querySelectorAll(".".concat(t)),this.dismissBtn=this.promo.querySelector(".".concat(n)),this.overlay=this.promo.querySelector(".".concat(s)),this.containsOverlay=!!this.overlay,this.lockScreenClassName=i,this.clickHandler=this._dismissPromo.bind(this),this.actionBtns.forEach(e=>{e.addEventListener("click",this.clickHandler)}),this.dismissBtn&&this.dismissBtn.addEventListener("click",this.clickHandler);const a=this.promo.hasAttribute("data-enable-app-detection");this._initPromise=this._getInitializationParams(e,a),this._initPromise.then(e=>{let{cooloffInMinutes:t,impressionsBeforeDisplay:n}=e;if(this.cooloffInMinutes=t,this.coolOffEnabled=this.cooloffInMinutes>0,this.impressionsBeforeDisplay=n,this.containsOverlay&&o&&this.overlay.addEventListener("click",this.clickHandler),!this._hasMetImpressionThreshold(this.impressionsBeforeDisplay))return;let i=!this.coolOffEnabled;this.coolOffEnabled&&(i=this._hasCoolOffExpired(r),i&&this._setCoolOfStart("global:impression")),this._toggleShowPromo(i)})}_getInitializationParams(e,t){const n=this._getSanitizedDatasetNumber(e.dataset,"cooloffInMinutes"),i=this._getSanitizedDatasetNumber(e.dataset,"impressionsBeforeDisplay");return new Promise(e=>{t?window.appDetection.then(t=>{const r=t.find(e=>"com.linkedin.android"===e.id);e(r?{cooloffInMinutes:0,impressionsBeforeDisplay:0}:{cooloffInMinutes:n,impressionsBeforeDisplay:i})}).catch(()=>{e({cooloffInMinutes:n,impressionsBeforeDisplay:i})}):e({cooloffInMinutes:n,impressionsBeforeDisplay:i})})}isVisible(){return this._initPromise.then(()=>!this.promo.classList.contains("hidden"))}_getSanitizedDatasetNumber(e,t){const n=e[t]&&e[t].replace(/\D/g,""),i=parseInt(n,10);return Number.isNaN(i)?0:i}_hasCoolOffExpired(e){this.cooloffStartTimestampMap=this._getCoolOfStartMap();const t=e?"global:impression":"global:dismiss",n=60*this.cooloffInMinutes*1e3,i=this.cooloffStartTimestampMap[t],r=i?parseInt(i,10):0;return Date.now()-r>n}_hasMetImpressionThreshold(e){if(e<2)return!0;return!(function(e){if(!e)throw"impressionKey is required";return(JSON.parse(localStorage.getItem("ssr-ui-lib:global-impression-count-map"))||{})[e]||0}("base-promo")+1<e)||(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!e)throw"impressionKey is required";const n=JSON.parse(localStorage.getItem("ssr-ui-lib:global-impression-count-map"))||{},i=n[e]||0;n[e]=i+t,localStorage.setItem("ssr-ui-lib:global-impression-count-map",JSON.stringify(n)),n[e]}("base-promo"),!1)}_dismissPromo(e){e.preventDefault(),this.actionBtns.forEach(e=>{e.removeEventListener("click",this.clickHandler)}),this.dismissBtn&&this.dismissBtn.removeEventListener("click",this.clickHandler);const{target:t}=e,n="A"===t.tagName,i=t.getAttribute("href");if(this._toggleShowPromo(!1),this.coolOffEnabled&&this._setCoolOfStart("global:dismiss"),n)if(this.shouldUseAndroidOemDeepLink){const e=Kc._getAndroidOEMDeepLinkFromUrl(i);location.assign(e),Kc._checkNativeAppOpen(i)}else location.assign(i)}get shouldUseAndroidOemDeepLink(){return/Android/.test(navigator.userAgent)&&this.promo.hasAttribute("data-use-deep-link-for-oem-custom-browsers")}static _getAndroidOEMDeepLinkFromUrl(e){const{pathname:t,search:n}=new URL(e);return"".concat("linkedin://you").concat(t).concat(n)}static _checkNativeAppOpen(e){const t=setTimeout(()=>{"hidden"!==document.visibilityState&&location.assign(e)},1500);document.addEventListener("visibilitychange",()=>{clearTimeout(t)})}_toggleShowPromo(e){this.promo.classList.toggle("hidden",!e),e&&this.promo.focus(),this.containsOverlay&&document.body.classList.toggle(this.lockScreenClassName,e)}_getCoolOfStartMap(){return JSON.parse(localStorage.getItem("ssr-ui-lib:base-promo-cooloff-start-timestamp-map"))||{}}_setCoolOfStart(e){this.cooloffStartTimestampMap[e]=Date.now(),localStorage.setItem("ssr-ui-lib:base-promo-cooloff-start-timestamp-map",JSON.stringify(this.cooloffStartTimestampMap))}}class Vc{constructor(e){if(!e)throw Error("An element must be provided to early nudge");this._el=e,this.basePromo=new Kc(this._el,{actionButtonClassName:"early-nudge__action",dismissButtonClassName:"early-nudge__dismiss"}),document.addEventListener("click",e=>{this._el.contains(e.target)||this.basePromo.clickHandler(e)})}}const Yc="conversion-modal";class Jc{constructor(e){let{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:r,coolOffKey:o=Yc}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to conversion modal.");this.ctaModal=new Dl(e,{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:r,coolOffKey:o})}}class Qc{constructor(e){if(!e)throw Error("An element must be provided to promo");this._el=e,this.basePromo=new Kc(this._el,{actionButtonClassName:"promo__action",dismissButtonClassName:"promo__dismiss",overlayClassName:"overlay"})}}class Xc{constructor(e){if(!e)throw Error("An element must be provided to promo banner");this._el=e,this.basePromo=new Kc(this._el,{actionButtonClassName:"promo-banner__action",dismissButtonClassName:"promo-banner__dismiss"})}}class Zc{constructor(e){if(!e)throw Error("An element must be provided to promo bottom sheet");this._el=e,this.basePromo=new Kc(this._el,{actionButtonClassName:"promo-bottom-sheet__action",dismissButtonClassName:"promo-bottom-sheet__dismiss",overlayClassName:"overlay"})}}const $c=10;class eu{constructor(e){let{minutesCoolOff:t=$c,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("modal"));const i=this.el.querySelector('[data-id="sign-in-form"]');i&&(this.signInForm=new Pl(i,{fireTrackingOnInit:!1,initFailure:this._onGoogleSignInInitFailure.bind(this)})),this.modal=new zr(this.modalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n}),this.modalEl.addEventListener("close",()=>{this._setCoolOff()})}_onGoogleSignInInitFailure(){const e=this.el.querySelector(".google-sign-in-cta-widget");e&&e.parentNode.removeChild(e)}_shouldHideModal(){if(!this.coolOffEnabled)return!1;try{const e=localStorage.getItem("sign-in-modal-cool-off-hidden");if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem("sign-in-modal-cool-off-hidden"),!1)}}catch(e){return!1}}_setCoolOff(){if(this.coolOffEnabled&&!this._shouldHideModal())try{localStorage.setItem("sign-in-modal-cool-off-hidden",Date.now())}catch(e){return""}}}const tu=10;class nu{constructor(e){let{minutesCoolOff:t=tu,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to contextual sign in card");this.el=e,this.coolOffEnabled=this.el.hasAttribute("data-cool-off-enabled"),this.coolOffPeriod=60*t*1e3,this.signInModalEl=this.el.querySelector(".".concat("sign-in-modal")),this.signInModalEl&&(this.signInModal=new eu(this.signInModalEl)),this.contextualModalEl=this.el.querySelector(".".concat("modal--contextual-sign-in")),this.contextualModalEl&&(this.contextualModal=new zr(this.contextualModalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n})),this.googleSignInCtaEl=this.el.querySelector(".".concat("contextual-sign-in-modal__google-sign-in-cta-widget")),this.googleSignInCtaEl&&new Rl(this.googleSignInCtaEl,{initFailure:this._onGoogleSignInInitFailure.bind(this)}),this.anonymousLoginToggleInput=this.contextualModalEl.querySelector(".anonymous-login-toggle input"),this.signInModal.modalEl.addEventListener("open",()=>{this._syncToggleStates(this.signInModal.signInForm.anonymousLoginToggleInput,this.anonymousLoginToggleInput),this.contextualModal.close(),localStorage.removeItem("contextual-sign-in-modal-cool-off-hidden"),this.signInModal.modal.noScroll()}),this.signInModal.modalEl.addEventListener("close",()=>{this._syncToggleStates(this.anonymousLoginToggleInput,this.signInModal.signInForm.anonymousLoginToggleInput),this._setCoolOff()}),this.contextualModalEl.addEventListener("close",()=>{this._setCoolOff()})}_syncToggleStates(e,t){e&&t&&(e.checked=t.checked)}_onGoogleSignInInitFailure(){const e=this.el.querySelector(".".concat("contextual-sign-in-modal__google-sign-in-cta-widget"));e&&e.parentNode.removeChild(e)}_shouldHideModal(){if(!this.coolOffEnabled)return!1;try{const e=localStorage.getItem("contextual-sign-in-modal-cool-off-hidden");if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem("contextual-sign-in-modal-cool-off-hidden"),!1)}}catch(e){return!1}}_setCoolOff(){if(this.coolOffEnabled&&!this._shouldHideModal())try{localStorage.setItem("contextual-sign-in-modal-cool-off-hidden",Date.now())}catch(e){return""}}}class iu{constructor(e){if(!e)throw new Error("No element passed into to full lockout component");this.el=e,this.basePromo=new Kc(this.el,{actionButtonClassName:"full-lockout__action",dismissableOverlay:!1}),this.focusTrap=new ue(this.el)}}var ru={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,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 a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){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 u(e,t,n){return(u=c()?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}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(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 u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function f(e){return function(){var t,n=a(e);if(c()){var i=a(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function g(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}(function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}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 v="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",y={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},E={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},b={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},w={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"}},T={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},S={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},C=y.GOOGLE_ERROR,k=y.GOOGLE_USER_FETCHED,I=y.INITIALIZED,A=E.INITIALIZATION,L=E.AUTHENTICATION,O=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,l=void 0===a?v: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=l,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.");m((function(){g(o,i._initializeGoogleAuth.bind(h(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(I);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},i=new CustomEvent(C,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(k,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:L,message:t.error},i=new CustomEvent(C,{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}(d(EventTarget)),R=y.GOOGLE_USER_FETCHED,N=y.PROMPT_MOMENT,P=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,l=e.containerId,c=e.context,u=e.clientId,d=void 0===u?v:u,p=e.cancelOnTapOutside,f=void 0===p||p;if(t(this,r),i=n.call(this),!c)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=l,i.cancelOnTapOutside=f,i.clientId=d,i.context=c,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");m((function(){g(a,i._onGoogleApiLoad.bind(h(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===b.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(R,{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:w.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(N,{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(N,{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}(d(EventTarget)),x={exports:{}};function M(e){this.message=e}M.prototype=new Error,M.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new M("'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},B=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(D(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 D(t)}};function U(e){this.message=e}U.prototype=new Error,U.prototype.name="InvalidTokenError",x.exports=function(e,t){if("string"!=typeof e)throw new U("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(B(e.split(".")[n]))}catch(e){throw new U("Invalid token specified: "+e.message)}},x.exports.InvalidTokenError=U;var F=x.exports,q=y.GOOGLE_USER_FETCHED,H=y.PROMPT_MOMENT,j=function(e){s(a,e);var n=f(a);function a(e){var i,r,o,s,l=e.autoSelect,c=void 0!==l&&l,u=e.libSrcPath,d=e.clientId,p=void 0===d?v:d,f=e.showOneTap,y=void 0===f||f,E=e.promptParentId,b=e.buttonParentEl,_=e.gsiButtonConfig,w=void 0===_?{}:_,T=e.context,S=void 0===T?"signin":T,C=e.cancelOnTapOutside,k=void 0===C||C;if(t(this,a),(i=n.call(this)).autoSelect=c,i.libSrcPath=u,i.clientId=p,i.showOneTap=y,i.promptParentId=E,i.buttonParentEl=b,i.gsiButtonConfig=w,i.cancelOnTapOutside=k,i.context=S,i.isLibraryLoaded=((s=new Promise((function(e,t){r=e,o=t}))).resolve=r,s.reject=o,s),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!u)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){g(u,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(a,[{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:S[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.logo_alignment,r=void 0===i?"center":i,o=t.shape,s=void 0===o?"pill":o,a=t.size,l=void 0===a?"large":a,c=t.text,u=t.theme,d=t.type,h=t.width,p=void 0===h?"400px":h;return this.isLibraryLoaded.then((function(){var t=c||S[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:r,shape:s,size:l,text:t,theme:u,type:d,width:p})}))}},{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(H,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=F(t),s=function(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}({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(s){var a=new CustomEvent(q,{detail:s});this.dispatchEvent(a)}}},{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")}}}]),a}(d(EventTarget)),G=T.DISMISSED,z=T.INITIALIZED,W=T.SNAPPLE_USER_FETCHED,K=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,l=void 0===a?"com.linkedin.LinkedIn.service":a,c=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=l,i.redirectURI=i._getRedirectURL(c),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");m((function(){g(o,i._onSnappleLibLoad.bind(h(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(z);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(W,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(G,{detail:{type:G,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),V={CLIENT_ID:v,EVENTS:y,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:E,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:b,GOT_PROMPT_MOMENT_REASONS:w,GOT_PROMPT_MOMENT_TYPES:_};e.GoogleGsi=j,e.GoogleOneTap=P,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(ru.exports);const{EVENTS:ou,GOT_CONTEXTS:su,GOT_PROMPT_MOMENT_REASONS:au,GOT_PROMPT_MOMENT_TYPES:lu}=ru.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:cu,PROMPT_MOMENT:uu}=ou,{SIGN_IN:du}=su,hu=[au.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,au.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,au.NOT_DISPLAYED.SUPPRESSED_BY_USER],pu=[au.SKIPPED.AUTO_CANCEL,au.SKIPPED.TAP_OUTSIDE,au.SKIPPED.USER_CANCEL],fu=Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});class mu{constructor(e){var t;let{clientId:n,globalWindow:i=window,onNotDisplayed:r,onSkipped:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buttons=Array.from(document.querySelectorAll(".google-auth-button__placeholder")),this.clientId=n,this.isLinkedInAppWebView=!0===Hs("isLinkedInAppWebView"),this.el=e,this.showOneTap=!(null===(t=this.el)||void 0===t||!t.querySelector("#google-one-tap__container")||this.isLinkedInAppWebView),(this.buttons.length||this.showOneTap&&this.el)&&(this.useAutoSelect=!0===Hs("enableGoogleAutoSelect")&&this._shouldAutologin(),this.window=i,this.onNotDisplayed=r,this.onSkipped=o,this.loader=new Zs(this.el.querySelector(".loader"),this.el),this._initGoogleAuth())}_initGoogleAuth(){return this.window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-gsi-lib")).then(()=>{const e=Hs("googleAuthLibraryPath");if(e)return this.googleGsiInstance=new ru.exports.GoogleGsi({autoSelect:this.useAutoSelect,cancelOnTapOutside:!1,clientId:this.clientId,context:du,libSrcPath:Bs.sanitizeUrl(e),promptParentid:this.showOneTap?"google-one-tap__container":void 0,showOneTap:this.showOneTap}),this._initButtons(),this.googleGsiInstance.addEventListener(cu,e=>{let{detail:t}=e;const{email:n,familyName:i,givenName:r,idToken:o,imageUrl:s,selectedBy:a}=t;this.loader.show();const l=this._getRequestType(a);this._addGoogleFieldToForm("googleGivenName",r),this._addGoogleFieldToForm("googleIdToken",o),this._addGoogleFieldToForm("googleFamilyName",i),this._addGoogleFieldToForm("googleImageUrl",s),this._addGoogleFieldToForm("googleEmail",n),this._addGoogleFieldToForm("soogleLoginRequestType",l),this._addGoogleFieldToForm("apfc",kl());const c=l===fu.BUTTON?"google-sign-in--account-selected":"google-one-tap--account-selected";this._fireControlInteractionEvent(c),this.el.submit()}),this.googleGsiInstance.addEventListener(uu,e=>{let{detail:t}=e;const{reason:n,type:i}=t;let r="google-one-tap-moment--".concat(i);if(r=n?"".concat(r,"-").concat(n):r,this._fireControlInteractionEvent(r),n){if(this._fireCounterIngraphMetric(i,n),i===lu.SKIPPED){if(n===au.SKIPPED.USER_CANCEL&&this._fireControlInteractionEvent("google-one-tap--user-dismissed"),this.onSkipped)this.onSkipped(t);else if(-1===pu.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else if(i===lu.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===hu.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else i===lu.DISPLAY&&this._fireViewModuleImpressionEvent("google-one-tap")}),this.googleGsiInstance})}_fireCounterIngraphMetric(e,t){let n="";e===lu.DISPLAY&&t===au.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(pu.indexOf(t)>=0||hu.indexOf(t)>=0)&&(n="GoogleAuthMiscError"),n&&this.window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:n})})}_fireViewModuleImpressionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{Fr(t,[e])})}_fireControlInteractionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}_initButtons(){var e,t;null!==(e=this.buttons)&&void 0!==e&&e.length&&(this._fireViewModuleImpressionEvent("google-button-view"),null===(t=this.buttons)||void 0===t||t.forEach(e=>{this.googleGsiInstance.renderGSIButton(e,this._getButtonConfig(e))}))}_getButtonConfig(e){if(e){const t=e.parentElement.offsetWidth-2;return{text:e.dataset.text||"continue_with",width:t}}return{}}_getRequestType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(!0){case"auto"===e:return fu.ONE_TAP_AUTO_LOGIN;case e.indexOf("user")>-1:return fu.ONE_TAP;default:return fu.BUTTON}}_addGoogleFieldToForm(e,t){const n=document.createElement("input");n.type="hidden",n.name=e,n.id=e,n.value=t,this.el.appendChild(n)}_shouldAutologin(){return!(null!==U("li_g_recent_logout"))}}".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class gu{constructor(e){var t;let{isShown:n=!1,bannerDismissedLocalStorageKey:i=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to the banner element");if(this.el=e,this.dismissBtnEl=this.el.querySelector(".banner__dismiss-button"),this.isBottom="true"===(null===(t=this.el.dataset)||void 0===t?void 0:t.isBottom),this.dismissBtnEl)if(i){const t=!window.localStorage.getItem(i);this.bannerDismissable=new _a(this.el,this.dismissBtnEl,{isShown:t}),t&&e.addEventListener("dismiss",()=>{window.localStorage.setItem(i,"true")})}else this.bannerDismissable=new _a(this.el,this.dismissBtnEl,{isShown:n});this.isBottom&&new Ws(this.el)}}class vu{constructor(e,t){if(!e)throw new Error("Linkster el required");this._el=e,this._trackingInstance=t,this._entityId=e.dataset.entityId,this._moduleName=e.dataset.moduleName,this._crossLinks=this._getCrossLinks(),this._crossLinks.length&&this.fireLinksterImpressionEvent(this._crossLinks)}_getCrossLinks(){return[...this._el.querySelectorAll('[data-js-module-id="link-column-link"]')].map(e=>({url:j(e.getAttribute("href"))}))}fireLinksterImpressionEvent(e){this._trackingInstance.fireLinksterImpressionEvent&&this._trackingInstance.fireLinksterImpressionEvent(this._moduleName,this._entityId,e)}}class yu{constructor(e,t){if(!e)throw new Error("ExpandableLinkster el required");this._showMoreLessEl=e.querySelector(".show-more-less"),new Lc(this._showMoreLessEl),this._linksterForTrackingEl=e.querySelector('[data-js-module-id="linkster"][data-entity-id][data-module-name]'),this._linksterForTrackingEl&&t&&new vu(this._linksterForTrackingEl,t)}}class Eu{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=Hs("feedLastUpdatedTime")}resetBadges(){ro(this.badgeCountEls),ro(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return ve(e?D("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);F(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const i=so();return"messaging"===i&&(this._counts.messagingCount=0),"feed"===i||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this}).catch(()=>{F(window,"badgesreceived",{feedsCount:0})})}_renderBadges(){this.badgeCountEls.forEach(e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])}),this.badgeWithoutCountEls.forEach(e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])})}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,io(e)):t!==n&&(t>0?(e.textContent=t,io(e),e.classList.toggle("singular",t<=1)):no(e))}_setBadge(e,t){e&&(t>0?(io(e),e.classList.add("badge-with-no-count")):no(e))}_updateCacheBustUrl(e){Hs("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=ls(e?D(t.href,"pwa","noCache"):j(t.href))})}}!function(){let e}();class bu{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(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+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}bu.instance||(bu.instance=new bu(localStorage)),bu.instance,bu.sessionInstance||(bu.sessionInstance=new bu(sessionStorage)),bu.sessionInstance;let _u;A.getInstance().addUnloadCallback(()=>{_u&&_u.close(),no(document.querySelector("#discard-post-modal")),no(document.querySelector("#visibility-settings-modal")),no(document.querySelector("#max-images-prompt-modal")),no(document.querySelector("#retry-upload-modal"))});function wu(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,e=>{e.refreshLoader()})}function Tu(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function Su(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("select");i&&(i.addEventListener("change",Tu),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(Su)}wu()}function Cu(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),F(t,"input:cleared"),F(t,"change")}function ku(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",ku)}function Iu(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function Au(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("input"),r=e.querySelector(".right");i.addEventListener("change",Iu),i.addEventListener("focus",ku),r&&r.addEventListener("click",Cu)}else{document.querySelectorAll(".input-container").forEach(Au)}wu()}const Lu="MinLength",Ou="MaxLength",Ru="Regex",Nu="Required",Pu="RegexAllow",xu={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"}},Mu="EMAIL_ADDRESS",Du="PHONE_NUMBER",Bu="OTHER",Uu="consentUnchecked",Fu={INPUT:"INPUT",SELECT:"SELECT"},qu="text",Hu="checkbox";function ju(e){return Object.keys(Fu).includes(e.tagName)}function Gu(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Bu:n&&t.push({type:Lu,MinLength:n}),i&&t.push({type:Ou,MaxLength:i});break;case Mu:t.push({type:Pu,RegexAllow:[xu.EMAIL]});break;case Du:o=e.value.replace(/ /g,""),t.push({type:Pu,RegexAllow:[xu.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 Nu:if(0===n.length)return Nu;break;case Lu:if(n.length<e[Lu])return Lu;break;case Ou:if(n.length>e[Ou])return Ou;break;case Ru:for(let t=0;t<e[Ru].length;t++)if(e[Ru][t].pattern.test(n))return Ru+e[Ru][t].errorCode;break;case Pu:for(let t=0;t<e[Pu].length;t++)if(!e[Pu][t].pattern.test(n))return Pu+e[Pu][t].errorCode}})(e,n)).filter(e=>!!e)}function zu(e,t){return t&&!e?Uu:null}const Wu=(e,t)=>parseInt(t.split(e)[1]);function Ku(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const Vu=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Yu=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function Ju(e){const t=e.id+"_",n=t+"q",i=t+"c";return new Promise((t,r)=>{const o=[];let s,a;const{urn:l}=e.dataset;a=e.dataset.leadTrackingParams,a||(s=e.closest("[data-lead-tracking-params]"),a=s.dataset.leadTrackingParams);const c={formResponse:{adFormUrn:l,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(ju).forEach(e=>{let t;if(e.tagName===Fu.SELECT)t=((e,t)=>{const n=Wu(e,t.id),i=t.selectedIndex;return{response:Yu(n,i)}})(n,e),c.formResponse.answers.push(t.response);else if(e.type===qu)if(t=((e,t)=>{const n=Wu(e,t.id),i=Gu(t);return 0!==i.length?{errors:i}:{response:Vu(n,t.value)}})(n,e),t.response)c.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===Hu&&(t=((e,t,n,i)=>{const r=Wu(e,t),o=zu(n,i);return o?{errors:o}:{response:{consentId:r,accepted:n}}})(i,e.id,e.checked,e.required),t.response?c.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))}),0===o.length?t(c):r(o)})}class Qu{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Au(),Su(),ao("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const i=e.querySelector(".lead-gen-modal");this.modal=new ba(i,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(ju).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Ju(this.formEl).then(e=>{F(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();ae(Ku(t.element,t.errorType),se.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");no(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=Ku(e,t),i=e.closest(".lead-gen-input-container"),r=i.querySelector(".error-text");r.innerText=n,io(r),i.classList.add("input-error"),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Hu)t=zu(e.checked,e.required);else if(e.type===qu){const n=Gu(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains("inputbox-input")&&this._handleInputError(e.target)}),this.formEl.querySelector(".submit-btn").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}ke(Qu,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");const Xu=["endpoint","headers","queryId","variables","pageKey"];function Zu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={},pageKey:o}=e,s=Ie(e,Xu);return ve(t,Ce({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:o})},s))}class $u{constructor(e){if(!e)throw Error("Missing FollowMutation endpoint");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 Zu({endpoint:this.endpoint,queryId:$u.query,variables:{followState:e,to:t}}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(i)}}ke($u,"query","cbed571fffd8cea15209aed8d44e6759");const ed=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.freeze(Object.values(ed));const td="CREATE",nd="UPDATE";class id{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");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:id.query,variables:{entityUrn:t,action:n}};return n!==td&&n!==nd||(o.variables.reactionType=e),Zu(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}ke(id,"query","070ee23fd6fb77f92ac08f964ae1df29");class rd{constructor(e){if(!e)throw new Error("No element passed into upsell banner");this._el=e,new Kc(this._el,{actionButtonClassName:"upsell-content__action",dismissButtonClassName:"upsell-content__dismiss"}),this._isBottom=this._el.dataset.isBottom,this._isBottom&&new Ws(this._el)}}Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});HTMLElement;Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"})}).call(this,n(3).Buffer,n(2))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){var i=n(5),r=n(6),o=n(7);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var o,s=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var u=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function E(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function b(e,t,n,i){return j(q(t,e.length-n),e,n,i)}function _(e,t,n,i){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return _(e,t,n,i)}function T(e,t,n,i){return j(H(t),e,n,i)}function S(e,t,n,i){return j(function(e,t){for(var n,i,r,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function C(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,s,a,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[r+1],s=e[r+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[r+1],s=e[r+2],a=e[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(i,r),u=e.slice(t,n),d=0;d<a;++d)if(c[d]!==u[d]){o=c[d],s=u[d];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function L(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=F(e[o]);return r}function O(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,i,r,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function x(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function M(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,i,o){return o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function B(e,t,n,i,o){return o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;n=new l(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=l.isBuffer(e)?e:q(new l(e,i).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],s=0;s<i;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0),r="/organization-guest/api/runQuery";function o(e){var t=e?{endpoint:r}:{},n=e?{deleteEntity:null,disableComment:null,enableComment:null,followConfig:{endpoint:r}}:{};Array.from(document.querySelectorAll('[data-id="main-feed-card"]')).forEach(r=>{r.getAttribute("data-is-initialized-feed-item")||(new i.h(r,{isLoggedIn:e,reactionsMenuConfig:t,controlMenuConfig:n}),r.setAttribute("data-is-initialized-feed-item","true"))})}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),s=i[0],a=i[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,o,s=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,s,a=8*r-i-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=c}return(p?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var s,a,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,r),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;e[n+p]=255&a,p+=f,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){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}}function i(e,r,o){return(i=n()?Reflect.construct:function(e,n,i){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return i&&t(o,i.prototype),o}).apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(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 o(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 s=Object.hasOwnProperty,a=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,d=Object.freeze,h=Object.seal,p=Object.create,f="undefined"!=typeof Reflect&&Reflect,m=f.apply,g=f.construct;m||(m=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){return i(e,r(t))});var v,y=A(Array.prototype.forEach),E=A(Array.prototype.pop),b=A(Array.prototype.push),_=A(String.prototype.toLowerCase),w=A(String.prototype.match),T=A(String.prototype.replace),S=A(String.prototype.indexOf),C=A(String.prototype.trim),k=A(RegExp.prototype.test),I=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(v,t)});function A(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return m(e,t,i)}}function L(e,t,n){n=n||_,a&&a(e,null);for(var i=t.length;i--;){var r=t[i];if("string"==typeof r){var o=n(r);o!==r&&(l(t)||(t[i]=o),r=o)}e[r]=!0}return e}function O(e){var t,n=p(null);for(t in e)m(s,e,[t])&&(n[t]=e[t]);return n}function R(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var N=d(["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"]),P=d(["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"]),x=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=d(["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"]),D=d(["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"]),B=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=d(["#text"]),F=d(["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"]),q=d(["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"]),H=d(["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"]),j=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=h(/<%[\w\W]*|[\w\W]*%>/gm),W=h(/^data-[\-\w.\u00B7-\uFFFF]/),K=h(/^aria-[\-\w]+$/),V=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=h(/^(?:\w+script|data):/i),J=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=h(/^html$/i),X=function(){return"undefined"==typeof window?null:window},Z=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var i=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(i=n.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),i=function(e){return t(e)};if(i.version="2.4.0",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var o=n.document,s=n.document,a=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,u=n.Element,h=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,g=n.DOMParser,v=n.trustedTypes,A=u.prototype,$=R(A,"cloneNode"),ee=R(A,"nextSibling"),te=R(A,"childNodes"),ne=R(A,"parentNode");if("function"==typeof l){var ie=s.createElement("template");ie.content&&ie.content.ownerDocument&&(s=ie.content.ownerDocument)}var re=Z(v,o),oe=re?re.createHTML(""):"",se=s,ae=se.implementation,le=se.createNodeIterator,ce=se.createDocumentFragment,ue=se.getElementsByTagName,de=o.importNode,he={};try{he=O(s).documentMode?s.documentMode:{}}catch(e){}var pe={};i.isSupported="function"==typeof ne&&ae&&void 0!==ae.createHTMLDocument&&9!==he;var fe,me,ge=G,ve=z,ye=W,Ee=K,be=Y,_e=J,we=V,Te=null,Se=L({},[].concat(r(N),r(P),r(x),r(D),r(U))),Ce=null,ke=L({},[].concat(r(F),r(q),r(H),r(j))),Ie=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}})),Ae=null,Le=null,Oe=!0,Re=!0,Ne=!1,Pe=!1,xe=!1,Me=!1,De=!1,Be=!1,Ue=!1,Fe=!1,qe=!0,He=!1,je="user-content-",Ge=!0,ze=!1,We={},Ke=null,Ve=L({},["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"]),Ye=null,Je=L({},["audio","video","img","source","image","track"]),Qe=null,Xe=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,it=["application/xhtml+xml","text/html"],rt="text/html",ot=null,st=s.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},lt=function(t){ot&&ot===t||(t&&"object"===e(t)||(t={}),t=O(t),fe=fe=-1===it.indexOf(t.PARSER_MEDIA_TYPE)?rt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===fe?function(e){return e}:_,Te="ALLOWED_TAGS"in t?L({},t.ALLOWED_TAGS,me):Se,Ce="ALLOWED_ATTR"in t?L({},t.ALLOWED_ATTR,me):ke,Qe="ADD_URI_SAFE_ATTR"in t?L(O(Xe),t.ADD_URI_SAFE_ATTR,me):Xe,Ye="ADD_DATA_URI_TAGS"in t?L(O(Je),t.ADD_DATA_URI_TAGS,me):Je,Ke="FORBID_CONTENTS"in t?L({},t.FORBID_CONTENTS,me):Ve,Ae="FORBID_TAGS"in t?L({},t.FORBID_TAGS,me):{},Le="FORBID_ATTR"in t?L({},t.FORBID_ATTR,me):{},We="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=t.SAFE_FOR_TEMPLATES||!1,xe=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,we=t.ALLOWED_URI_REGEXP||we,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Re=!1),Ue&&(Be=!0),We&&(Te=L({},r(U)),Ce=[],!0===We.html&&(L(Te,N),L(Ce,F)),!0===We.svg&&(L(Te,P),L(Ce,q),L(Ce,j)),!0===We.svgFilters&&(L(Te,x),L(Ce,q),L(Ce,j)),!0===We.mathMl&&(L(Te,D),L(Ce,H),L(Ce,j))),t.ADD_TAGS&&(Te===Se&&(Te=O(Te)),L(Te,t.ADD_TAGS,me)),t.ADD_ATTR&&(Ce===ke&&(Ce=O(Ce)),L(Ce,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&L(Qe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ke===Ve&&(Ke=O(Ke)),L(Ke,t.FORBID_CONTENTS,me)),Ge&&(Te["#text"]=!0),xe&&L(Te,["html","head","body"]),Te.table&&(L(Te,["tbody"]),delete Ae.tbody),d&&d(t),ot=t)},ct=L({},["mi","mo","mn","ms","mtext"]),ut=L({},["foreignobject","desc","title","annotation-xml"]),dt=L({},["title","style","font","a","script"]),ht=L({},P);L(ht,x),L(ht,M);var pt=L({},D);L(pt,B);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=_(e.tagName),i=_(t.tagName);return e.namespaceURI===$e?t.namespaceURI===et?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===i||ct[i]):Boolean(ht[n]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===n:t.namespaceURI===$e?"math"===n&&ut[i]:Boolean(pt[n]):e.namespaceURI===et&&!(t.namespaceURI===$e&&!ut[i])&&!(t.namespaceURI===Ze&&!ct[i])&&!pt[n]&&(dt[n]||!ht[n])},mt=function(e){b(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},gt=function(e,t){try{b(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ce[e])if(Be||Ue)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var i=w(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=re?re.createHTML(e):e;if(tt===et)try{t=(new g).parseFromString(r,fe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":r}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),tt===et?ue.call(t,xe?"html":"body")[0]:xe?t.documentElement:o},yt=function(e){return le.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},Et=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},bt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){pe[e]&&y(pe[e],(function(e){e.call(i,t,n,ot)}))},wt=function(e){var t;if(_t("beforeSanitizeElements",e,null),Et(e))return mt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var n=me(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:Te}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===n&&k(/<template/i,e.innerHTML))return mt(e),!0;if(!Te[n]||Ae[n]){if(!Ae[n]&&St(n)){if(Ie.tagNameCheck instanceof RegExp&&k(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(Ge&&!Ke[n]){var r=ne(e)||e.parentNode,o=te(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore($(o[s],!0),ee(e))}return mt(e),!0}return e instanceof u&&!ft(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n||!k(/<\/no(script|embed)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=T(t,ge," "),t=T(t,ve," "),e.textContent!==t&&(b(i.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(mt(e),!0)},Tt=function(e,t,n){if(qe&&("id"===t||"name"===t)&&(n in s||n in st))return!1;if(Re&&!Le[t]&&k(ye,t));else if(Oe&&k(Ee,t));else if(!Ce[t]||Le[t]){if(!(St(e)&&(Ie.tagNameCheck instanceof RegExp&&k(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&k(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&k(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(Qe[t]);else if(k(we,T(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ye[e])if(Ne&&!k(be,T(n,_e,"")));else if(n)return!1;return!0},St=function(e){return e.indexOf("-")>0},Ct=function(t){var n,r,o,s;_t("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce};for(s=a.length;s--;){var c=n=a[s],u=c.name,d=c.namespaceURI;if(r="value"===u?n.value:C(n.value),o=me(u),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,l),r=l.attrValue,!l.forceKeepAttr&&(gt(u,t),l.keepAttr))if(k(/\/>/i,r))gt(u,t);else{Pe&&(r=T(r,ge," "),r=T(r,ve," "));var h=me(t.nodeName);if(Tt(h,o,r)){if(!He||"id"!==o&&"name"!==o||(gt(u,t),r=je+r),re&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(h,o)){case"TrustedHTML":r=re.createHTML(r);break;case"TrustedScriptURL":r=re.createScriptURL(r)}try{d?t.setAttributeNS(d,u,r):t.setAttribute(u,r),E(i.removed)}catch(e){}}}}_t("afterSanitizeAttributes",t,null)}},kt=function e(t){var n,i=yt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)_t("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof a&&e(n.content),Ct(n));_t("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(t){var r,s,l,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!bt(t)){if("function"!=typeof t.toString)throw I("toString is not a function");if("string"!=typeof(t=t.toString()))throw I("dirty is not a string, aborting")}if(!i.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(bt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Me||lt(h),i.removed=[],"string"==typeof t&&(ze=!1),ze){if(t.nodeName){var p=me(t.nodeName);if(!Te[p]||Ae[p])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(s=(r=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!Be&&!Pe&&!xe&&-1===t.indexOf("<"))return re&&Fe?re.createHTML(t):t;if(!(r=vt(t)))return Be?null:Fe?oe:""}r&&De&&mt(r.firstChild);for(var f=yt(ze?t:r);l=f.nextNode();)3===l.nodeType&&l===u||wt(l)||(l.content instanceof a&&kt(l.content),Ct(l),u=l);if(u=null,ze)return t;if(Be){if(Ue)for(d=ce.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return Ce.shadowroot&&(d=de.call(o,d,!0)),d}var m=xe?r.outerHTML:r.innerHTML;return xe&&Te["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(Q,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),Pe&&(m=T(m,ge," "),m=T(m,ve," ")),re&&Fe?re.createHTML(m):m},i.setConfig=function(e){lt(e),Me=!0},i.clearConfig=function(){ot=null,Me=!1},i.isValidAttribute=function(e,t,n){ot||lt({});var i=me(e),r=me(t);return Tt(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],b(pe[e],t))},i.removeHook=function(e){if(pe[e])return E(pe[e])},i.removeHooks=function(e){pe[e]&&(pe[e]=[])},i.removeAllHooks=function(){pe={}},i}()}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j}));var i=n(0);const r="one_tap",o="one-tap-auto-login";function s(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}function a(e,t){const n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const l="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",c={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},u={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},d={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},h={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},p={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"}},{GOOGLE_ERROR:f,GOOGLE_USER_FETCHED:m,INITIALIZED:g}=c,{INITIALIZATION:v,AUTHENTICATION:y}=u;EventTarget;const{GOOGLE_USER_FETCHED:E,PROMPT_MOMENT:b}=c;class _ extends EventTarget{constructor({autoSelect:e=!1,libSrcPath:t,containerId:n,context:i,clientId:r=l,cancelOnTapOutside:o=!0}){if(super(),!i)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.autoSelect=e,this.libSrcPath=t,this.containerId=n,this.cancelOnTapOutside=o,this.clientId=r,this.context=i,window.google&&window.google.accounts&&window.google.accounts.id)this._onGoogleApiLoad();else{if(!t)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");s(()=>{a(t,this._onGoogleApiLoad.bind(this))})}}_onGoogleApiLoad(){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(()=>this.promptOneTap())}_handleCredentialResponse(e){const t=e.credential;let n=this.context===d.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;const t=new CustomEvent(E,{detail:n});this.dispatchEvent(t)}}_getBasicProfile(e){try{const t=new gapi.auth2.BasicProfile({id_token:e});return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:e,imageUrl:t.getImageUrl()}}catch(e){return this._dispatchSkippedEvent(e.message),null}}_dispatchSkippedEvent(e){const t={message:e,reason:p.SKIPPED.ISSUING_FAILED,type:h.SKIPPED},n=new CustomEvent(b,{detail:t});this.dispatchEvent(n)}promptOneTap(){google.accounts.id.prompt(e=>{const t={type:e.getMomentType(),reason:e.getNotDisplayedReason()||e.getSkippedReason()||e.getDismissedReason()},n=new CustomEvent(b,{detail:t});this.dispatchEvent(n),this.checkIfDesktopAndApplyClass()})}hideOneTap(){google.accounts.id.cancel()}checkIfDesktopAndApplyClass(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){const e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}var w={exports:{}};function T(e){this.message=e}T.prototype=new Error,T.prototype.name="InvalidCharacterError";var S="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new T("'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 C=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(S(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 S(t)}};function k(e){this.message=e}k.prototype=new Error,k.prototype.name="InvalidTokenError",w.exports=function(e,t){if("string"!=typeof e)throw new k("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(e.split(".")[n]))}catch(e){throw new k("Invalid token specified: "+e.message)}},w.exports.InvalidTokenError=k;const I={CLIENT_ID:l,EVENTS:c,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:u,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:d,GOT_PROMPT_MOMENT_REASONS:p,GOT_PROMPT_MOMENT_TYPES:h};function A(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}const L=i.u.getPageKey(document).replace("_jsbeacon","");function O(e,t,n){window.tracking&&window.tracking.then(r=>{if(t&&e.appendChild(function(e){return A("controlId","".concat(L,"-").concat(e.dataset.trackingControlName))}(t)),e.appendChild(function(e){return A("pageInstance",i.x.getPageInstance(e))}(r)),n){const e="".concat(L,"_").concat(n);i.x.firePageViewEvent(r,"ajax",e),Object(i.m)(r).trackPageView({pageKey:e})}})}function R(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}function N(e){window.tracking&&window.tracking.then(t=>{i.x.fireViewModuleImpressionEvent(t,[e])})}const{EVENTS:P,GOT_CONTEXTS:x,GOT_PROMPT_MOMENT_REASONS:M,GOT_PROMPT_MOMENT_TYPES:D}=I,{GOOGLE_USER_FETCHED:B,PROMPT_MOMENT:U}=P,{SIGN_IN:F}=x,q=[M.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,M.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,M.NOT_DISPLAYED.SUPPRESSED_BY_USER],H=[M.SKIPPED.AUTO_CANCEL,M.SKIPPED.TAP_OUTSIDE,M.SKIPPED.USER_CANCEL];class j{constructor(e,{onNotDisplayed:t,onSkipped:n,isAutoSelectEnabled:r=!1}={}){if(!e)throw Error("Google one tap form element must be provided");this.el=e,this.onNotDisplayed="function"==typeof t&&t,this.onSkipped="function"==typeof n&&n,this.isAutoSelectEnabled=r,this.containerEl=this.el.querySelector(".google-one-tap__container"),this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new i.f(this.loaderEl),O(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new _({autoSelect:this.isAutoSelectEnabled,cancelOnTapOutside:!1,context:F}),this.googleOneTapInstance.addEventListener(B,({detail:e})=>{const{idToken:t,selectedBy:n}=e;R("google-one-tap--account-selected");const i=this.googleOneTapInstance._getBasicProfile(t);this._submitWithGoogle(n,i)}),this.googleOneTapInstance.addEventListener(U,({detail:e})=>{const{reason:t,type:n}=e;if(t){if(this._fireCounterIngraphMetric(n,t),n===D.SKIPPED){if(t===M.SKIPPED.USER_CANCEL&&R("google-one-tap--user-dismissed"),this.onSkipped)this.onSkipped(e);else if(-1===H.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))}else if(n===D.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(e);else if(-1===q.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))}else n===D.DISPLAY&&N("google-one-tap")}),this.googleOneTapInstance))}_fireCounterIngraphMetric(e,t){let n="";e===D.DISPLAY&&t===M.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(H.indexOf(t)>=0||q.indexOf(t)>=0)&&(n="GoogleAuthMiscError"),n&&window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:n})})}_submitWithGoogle(e,t={}){const{email:n,idToken:i,imageUrl:s,familyName:a,givenName:l}=t;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=A("googleIdToken",i),this.el.appendChild(A("googleGivenName",l)),this.el.appendChild(A("googleFamilyName",a)),this.el.appendChild(A("googleImageUrl",s)),this.el.appendChild(A("googleEmail",n));const c="auto"===e?o:r;this.el.appendChild(A("soogleLoginRequestType",c)),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}const{GOOGLE_USER_FETCHED:G,GOOGLE_ERROR:z,INITIALIZED:W}=I.EVENTS,{INITIALIZATION:K,AUTHENTICATION:V}=I.GSI_ERROR_TYPES,{INIT_FAILED:Y,POPUP_CLOSED_BY_USER:J}=I.GSI_ERROR_MESSAGES;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;!function(e,t,n){e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var e="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",t="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",n=["b","del","em","i","s","strong","sub","sup"],i=n.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),r=[e,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function o(){}function s(e,t){if(t=t||"log",window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}var a,l,c=(l=/[&<>"'\u0000\\=]/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(l,(function(e){return a[e]}))}),u=function(){var e,n,i=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return n="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(o){return null==o?null:(o+"").replace(i,(function(i,o,s,a){return o?(l=o,r.hasOwnProperty(l)?r[l]:(e.innerHTML="&"+l+";",c=e[t],r[l]=c,c)):s||a?n(parseInt(s||a,s?16:10)||65533):"�";var l,c}))}}(),d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function h(e){return/[<&]/.test(e)}var p,f=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)};function m(e){e=d(e)?e:[e];var t,n,o,s=0,a="<(?!/?";return a+="(?:",f(e,(function(e,l){t=e.tags||i,n=e.attrs||r,o=e.checkUrlAttrs||!1,0!==l&&(a+="|"),a+="(?:"+t.join("|")+")",a+="(?:",a+="[ \t\r\n]*",a+="|[ \t\r\n]+",a+="(?:(?:",a+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",o&&(a+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),a+=")[ \t\r\n]*)+",a+=")"})),a+=")",a+="/?>)",new RegExp(a,"i")}function g(e){return m({tags:e=e||i,checkUrlAttrs:!0})}function v(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!g(n).test(e):i?!v.R_UNSAFE_CUSTOM_ELEMENT.test(e):!v.R_UNSAFE_HTML.test(e)}function y(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function E(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,s=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(s=t[i]))||s instanceof o||"number"==typeof s))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");s=r?c(s):s.toString()}return n[i]=s,s}))}(e,t):e,r=e;return h(i)&&!v(i,n)&&(i=y(i),s("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function b(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}v.R_UNSAFE_HTML=g(),v.R_UNSAFE_CUSTOM_ELEMENT=m([{tags:i,checkUrlAttrs:!0},{tags:[(p={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[e,p.attrs].join("|"),checkUrlAttrs:!1}]);var _={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,"",""]};_.optgroup=_.option,_.tbody=_.tfoot=_.colgroup=_.caption=_.thead,_.th=_.td;var w=/<([\w:]+)/;function T(e,t){var n,i,r,o,s,a,l,c=t.createDocumentFragment(),u=[];for(s=0,l=e.length;s<l;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||c.appendChild(t.createElement("div")),n=(w.exec(o)||["",""])[1].toLowerCase(),k(r,(i=_[n]||_._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);b(u,r.childNodes),(r=c.firstChild).textContent=""}else b(u,o.nodeType?[o]:o);for(c.textContent="",o=u[s=0];o;)c.appendChild(o),o=u[++s];return c}var S=E,C=E;function k(e,n,i){var r=E(n,i);return h(r)?e.innerHTML=r:e[t]=r,r}function I(e,t){if(!(this instanceof I))return new I(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}I.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new o,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(v(e,this._options)||(n=e,e=y(e),s("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var A=/ /g,L=/[\s\u0000<>"]|%00/,O=/\\/,R=/([.]|%2e){2}/i,N=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function P(e){var t=void 0;if("string"!=typeof e)return s("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(s("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(A,"+")),!N.test(t))return s("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(L.test(t))return s("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n=t.split("?")[0];return O.test(n)||R.test(n)||R.test(decodeURI(n))?(s("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}var x={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:i,FORMATTING_TAGS:n,htmlEncode:c,htmlUnencode:u,log:s,mk:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="",o=void 0,s=n.length;return e&&e.forEach((function(e,t){r+=e,t<s&&(o=n[t],r+=o instanceof I?o:c(o))})),C(r)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=T([e],t);else{if(!d(e))return e;n=T(e,t)}return b([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:S,reEncode:function(e){return c(u(e))},_redirector:x,redirect:function(e){var t=P(e);t===e&&x.redirect(t)},sanitizeHTML:C,sanitizeUrl:P,setElementContent:k,text:function(e){return s("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),c(e)},unsafe:function(e){return e},UnsafeString:I}}()}));const Q=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,X=/(.)\1{3}/,Z=/linkedin/i,$=/\d\d/,ee=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?"),te=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,ne=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,ie=/^[ぁ-ゔゞ゛゜ー]*$/,re=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,oe=e=>{const t=(t="")=>t.length<=e;return t.errorMessagePrefix="i18n_tooLong_",t},se=e=>{const t=(t="")=>t.length>=e;return t.errorMessagePrefix="i18n_tooShort_",t},ae=(e="")=>!$.test(e);ae.errorMessagePrefix="i18n_noConsecutiveDigits_";const le=(e="")=>!Q.test(e);le.errorMessagePrefix="i18n_noForbiddenCharacters_";const ce=(e="")=>!X.test(e);ce.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const ue=(e="")=>!Z.test(e);ue.errorMessagePrefix="i18n_noLinkedIn_";const de=(e="")=>!ee.test(e);de.errorMessagePrefix="i18n_noUrl_";const he=(e="")=>ne.test(e);he.errorMessagePrefix="i18n_onlyChinese_";const pe=(e="")=>ie.test(e);pe.errorMessagePrefix="i18n_onlyPhonetic_";const fe=(e="")=>""!==e.trim();fe.errorMessagePrefix="i18n_required_";const me=(e="")=>te.test(e);me.errorMessagePrefix="i18n_invalidFormat_";const ge=(e="")=>re.test(e);ge.errorMessagePrefix="i18n_invalidFormat_";const ve=(e="")=>te.test(e)||re.test(e);ve.errorMessagePrefix="i18n_invalidFormat_";const ye=[oe(50),le,ae,ce,ue,de],Ee=[fe].concat(ye),be=[pe,oe(50),ce];oe(4),se(2),oe(128),oe(128),oe(128),(e=>{const t=(t="")=>""===t||e(t);t.errorMessagePrefix=e.errorMessagePrefix})(me),se(8),oe(200);const{GOT_PROMPT_MOMENT_REASONS:_e,GOT_PROMPT_MOMENT_TYPES:we}=I;const{GOOGLE_ERROR:Te,GOOGLE_USER_FETCHED:Se,INITIALIZED:Ce}=I.EVENTS;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);var ke;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(ke||(ke={}));new Set(Object.values(ke));Error;const{EVENTS:Ie,GOT_CONTEXTS:Ae,GOT_PROMPT_MOMENT_TYPES:Le}=I,{GOOGLE_USER_FETCHED:Oe,PROMPT_MOMENT:Re}=Ie}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(0),r=n(8),o=n.n(r),s={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"]};var a=n(4);class l{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.globalWindow,r=void 0===n?window:n,o=t.paginationToken,s=t.requestUrl,a=t.feedLoadLimit,l=void 0===a?6:a,c=t.threshold,u=void 0===c?2:c,d=t.isLoggedIn,h=void 0!==d&&d,p=t.onStopCallback,f=void 0===p?()=>{}:p;if(!e)throw new Error("No element passed in");if(!o)throw new Error("No paginationToken passed in");if(!s)throw new Error("No requestUrl passed in");this.el=e,this.loaderEl=document.querySelector(".updates-loader"),this.window=r,this.threshold=u,this.feedLoadLimit=l,this.requestUrl=s,this.paginationToken=o,this.paginationStart=10,this.areAllFeedUpdatesLoaded=!1,this.isLoggedIn=h,this.onStopCallback=f,this.loadResults=()=>{if(!this.areAllFeedUpdatesLoaded)return this.requestUrl.searchParams.set("paginationStart",this.paginationStart),this.requestUrl.searchParams.set("paginationToken",this.paginationToken),Object(i.v)(this.requestUrl,{sendCookies:!1}).then(e=>{var t=e.status,n=e.responseText;200===t?this.onSuccess(n):this.onFail()}).catch(()=>{this.onFail()}).finally(()=>{this.paginationStart+=10,!this.isLoggedIn&&this.paginationStart>10*this.feedLoadLimit&&this._stopFeedUpdatesLoader()})},this.infiniteScroller=new i.e(this.window,{loaderEl:this.loaderEl,threshold:this.threshold,loadResults:this.loadResults,scrollLoadLimit:9999,useDebounce:!0,listEl:this.el})}onSuccess(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.a.sanitize(e,Object.assign({},s,t))}(e);t?(this.el.insertAdjacentHTML("beforeend",t),Object(a.a)(this.isLoggedIn),this.window.lazyloader.then(e=>e.refreshLoader())):this._stopFeedUpdatesLoader()}onFail(){this._stopFeedUpdatesLoader()}_stopFeedUpdatesLoader(){this.onStopCallback(),this.infiniteScroller.removeInfiniteScroller(),this.areAllFeedUpdatesLoaded=!0}}},,,function(e,t,n){"use strict";var i=n(1),r=n(9);new i.k(document.querySelector(".language-selector"));var o=document.querySelector(".search-bar");o&&new i.q(o,{typeaheadApiBaseUrl:"/organization-guest/api/typeaheadHits"});var s=document.querySelector(".upsell-banner");s&&new i.u(s);var a=document.querySelector(".banner");a&&new i.a(a);var l=document.querySelector(".sticky-header");l&&new i.t(l);var c=document.querySelector(".cover-img");c&&new i.d(c);var u=document.querySelector(".cta-modal"),d=()=>{if(u){var e=u.querySelector(".cta-modal__dismiss-btn");new i.c(u,{dismissBtnEl:e})}},h=document.querySelector(".strong-conversion-modal");h&&new i.b(h,{triggerByOutletEl:!1}).contextualModal.open();(e=>{var t=document.querySelector(".google-one-tap");if(t){var n=null===i.w.getCookie("li_g_recent_logout");new r.a(t,{onNotDisplayed:e,isAutoSelectEnabled:n})}else d()})(()=>{var e,t,n,r,o;d(),e=document.querySelector(".full-lockout"),t=document.querySelector(".early-nudge"),n=document.querySelector(".promo"),r=document.querySelector(".promo-banner"),o=document.querySelector(".promo-bottom-sheet"),e?new i.h(e):t?new i.e(t):n?new i.n(n):r?new i.o(r):o&&new i.p(o)});var p=document.querySelector(".google-auth");new i.i(p);var f=e=>e.querySelector("a");Array.from(document.querySelectorAll(".show-more-less")).forEach(e=>new i.r(e,f)),Array.from(document.querySelectorAll(".ellipsis-menu")).forEach(e=>new i.f(e)),Array.from(document.querySelectorAll(".modal:not(.modal--contextual-sign-in)")).forEach(e=>new i.l(e))},,,,function(e,t,n){"use strict";n.r(t);n(13);var i=n(1),r=n(10);if(Array.from(document.querySelectorAll(".share-native-video__node")).forEach(e=>new i.m(e)),document.querySelector(".updates-loader")){var o=document.querySelector(".updates__list"),s=Object(i.v)("feedUpdatesBaseUrl"),a=Object(i.v)("isMobile"),l=Object(i.v)("paginationToken");new r.a(o,{feedLoadLimit:a?3:6,onStopCallback:()=>{var e=document.querySelector('[data-id="conversion-prompt"]');null==e||e.classList.remove("hidden")},paginationToken:l,requestUrl:new URL("".concat(window.location.origin).concat(s)),threshold:a?4:2})}var c=document.querySelector('[data-js-module-id="products__slide-list"]');c&&new i.s(c);var u=document.querySelector('[data-js-module-id="more-searches"]');u&&window.tracking&&window.tracking.then(e=>{new i.g(u,e)})}]);