/*! 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)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function o(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}n.d(t,"a",(function(){return Fc})),n.d(t,"b",(function(){return dp})),n.d(t,"c",(function(){return Lf})),n.d(t,"d",(function(){return Kp})),n.d(t,"e",(function(){return Ub})),n.d(t,"f",(function(){return tp})),n.d(t,"g",(function(){return np})),n.d(t,"h",(function(){return Te})),n.d(t,"i",(function(){return Qc})),n.d(t,"j",(function(){return lw})),n.d(t,"k",(function(){return Ip})),n.d(t,"l",(function(){return Cp})),n.d(t,"m",(function(){return Np})),n.d(t,"n",(function(){return SE})),n.d(t,"o",(function(){return Go})),n.d(t,"p",(function(){return ff})),n.d(t,"q",(function(){return uw})),n.d(t,"r",(function(){return sf})),n.d(t,"s",(function(){return hc})),n.d(t,"t",(function(){return Pf})),n.d(t,"u",(function(){return Aa})),n.d(t,"v",(function(){return ch})),n.d(t,"w",(function(){return Gw})),n.d(t,"x",(function(){return Rs})),n.d(t,"y",(function(){return xp})),n.d(t,"z",(function(){return Ca})),n.d(t,"A",(function(){return x})),n.d(t,"B",(function(){return A})),n.d(t,"C",(function(){return ee})),n.d(t,"D",(function(){return Ex}));class a{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t{for(let t=0;t=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function h(){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 f(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function p(e,t){return m(e,"trk",t)}function m(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=f(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),a="&";return i<0?a="?":i===e.length-1&&(a=""),o&&(o="#".concat(o)),"".concat(r).concat(a).concat(t,"=").concat(n).concat(o||"")}}function v(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,a=new Array(o),s=0;s{r=null,n||e.apply(i,a)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,a)}}function g(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(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 E(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function b(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function w(e){return"string"!=typeof e?null:e.split("?")[0]}var x=Object.freeze({__proto__:null,closest:r,onload:o,UnloadHandler:s,PagehideHandler:l,makeArray:u,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:d,hasElementScrolledToThreshold:h,getQueryParam:f,addTrackingCode:p,addQueryParam:m,debounce:v,getCookie:g,dispatchCustomEvent:y,getDeferredPromise:E,isDocumentHidden:b,stripQueryParams:w,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=m(n,e,t[e],!0);return n},getQueryParameters:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;const t={};if(e){const n=e.split("?")[1],i=n&&n.split("&");i&&i.forEach(e=>{const n=e.split("=");t[n[0]]=decodeURIComponent(n[1])})}return t}});function _(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 T(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function S(){var e,t;const n=null===(e=window.atob(g("li_gp")))||void 0===e||null===(t=e.split(";")[2])||void 0===t?void 0:t[0];return!!n&&!parseInt(n)}function k(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function C(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function I(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var A=Object.freeze({__proto__:null,getPageKey:_,getPageTag:T,getLiSugrCookie:function(){return g("li_sugr")},getGuestRetargetingOptOut:S,getLocale:k,getDomain:C,trimDoubleQuotes:I});const O={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},R={Down:O.ARROW_DOWN,Right:O.ARROW_RIGHT,Left:O.ARROW_LEFT,Up:O.ARROW_UP,Esc:O.ESCAPE,Spacebar:O.SPACEBAR,Tab:O.TAB};function L(e){return R[e]||e}class N{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:a=!1}=o;this.isOpen=a,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(L(e.key)){case O.ENTER:case O.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case O.ARROW_UP:this.isOpen||this._open(e);break;case O.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){L(e.key)===O.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=L(e.key);if(t===O.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case O.SPACEBAR:y(e.target,"click");break;case O.ARROW_LEFT:case O.ARROW_UP:n=r(e.target,"li");let t=n.previousElementSibling;t&&y(t,"focusEl");break;case O.ARROW_RIGHT:case O.ARROW_DOWN:n=r(e.target,"li");let i=n.nextElementSibling;i&&y(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)),y(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)),y(this.el,"close"),e&&this.mainButton.focus())}}let P,D;const M=['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^="-"])'],U=[...M,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),B=[...M,"[tabindex]:not([disabled])"].join(",");function F(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function q(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?!F(e):i&&i.get(e)?i.get(e):(F(e)?t=!1:e.parentNode&&(t=q(e.parentNode,n,i)),i&&i.set(e,t),t)}const H=["CODE","TEMPLATE","SCRIPT"],j={POLITE:"polite",ASSERTIVE:"assertive"};function G(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.POLITE;P&&(P.removeAttribute("aria-hidden"),P.setAttribute("aria-live",j.POLITE),P.textContent="",P.textContent=e,P.setAttribute("aria-live",t),clearTimeout(D),D=setTimeout(()=>{P.removeAttribute("aria-live"),P.setAttribute("aria-hidden","true")},1e4))}function W(){P=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}()}class K{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.classList.contains("top-level-modal-container")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const z=["class","disabled","style","tabindex","type"];class V{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 K(this._container)}init(){this._observer.observe(this._container,{attributeFilter:z,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=L(t),r=i===O.TAB&&e.shiftKey;!r&&i===O.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(U)],n=new Map;let i,r,o=0,a=t.length-1;for(;(!i||!r)&&o<=a;){if(!i){const r=t[o];i=q(r,e,n)&&r,o++}if(!r){const i=t[a];r=q(i,e,n)&&i,a--}}return r=r||i,[i,r]}}const Y=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&Y.test(e)}const Q=".".concat("collapsible-dropdown","__list"),J=".".concat("collapsible-dropdown","__button"),Z=".".concat("collapsible-dropdown","__close-button");class ${constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(U)),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(Q),this._closeButton=this.el.querySelector(Z),this._isMobile=X();const o=this.dropdownContentEl.closest(".".concat("collapsible-dropdown"));if(this._isMobile&&o&&(this._focusTrap=new V(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(U),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(J),this.hideClass="hidden",this.collapsible=new N(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 ee(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:a=!1,pemDegradationTrackingMetadata:s=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l={method:t,headers:n,body:null};if(!r){const e=g("JSESSIONID");e&&(l.headers["Csrf-Token"]=I(e))}i&&(l.credentials="include"),"POST"!==l.method&&"PUT"!==l.method||(l.body=o);const u=fetch(e,l),d=u.then(n=>n.ok||304===n.status?n.text().then(e=>(n.responseText=e,n)):n.text().then(i=>{const r=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(n.status));return n.responseText=i,r.response=n,Promise.reject(r)}));return a&&(s.length?te(u,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function te(e,t,n,i){try{window.tracking.then(r=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,e,r.state.currentPageInstance)})})}catch(e){}}class ne{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 $(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=I(g("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}(C(document));return ee("".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 ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},re=/^\s+|\s+$/g,oe=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,se=/^0o[0-7]+$/i,ce=parseInt,le="object"==typeof ie&&ie&&ie.Object===Object&&ie,ue="object"==typeof self&&self&&self.Object===Object&&self,de=le||ue||Function("return this")(),he=Object.prototype.toString,fe=Math.max,pe=Math.min,me=function(){return de.Date.now()};function ve(e,t,n){var i,r,o,a,s,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,o=r;return i=r=void 0,l=t,a=e.apply(o,n)}function p(e){return l=e,s=setTimeout(v,t),u?f(e):a}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function v(){var e=me();if(m(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-c);return d?pe(n,o-(e-l)):n}(e))}function g(e){return s=void 0,h&&i?f(e):(i=r=void 0,a)}function y(){var e=me(),n=m(e);if(i=arguments,r=this,c=e,n){if(void 0===s)return p(c);if(d)return s=setTimeout(v,t),f(c)}return void 0===s&&(s=setTimeout(v,t)),a}return t=ye(t)||0,ge(n)&&(u=!!n.leading,o=(d="maxWait"in n)?fe(ye(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,i=c=r=s=void 0},y.flush=function(){return void 0===s?a:g(me())},y}function ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ye(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==he.call(e)}(e))return NaN;if(ge(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ge(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(re,"");var n=ae.test(e);return n||se.test(e)?ce(e.slice(2),n?2:8):oe.test(e)?NaN:+e}var Ee=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return ge(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ve(e,t,{leading:i,maxWait:t,trailing:r})};const be=".loader",we=".infinite-scroller__show-more-button",xe=0,_e=10;class Te{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,{threshold:t=xe,scrollLoadLimit:n=_e,useDebounce:i=!1,wait:r=1e3,loadResults:o,onLoading:a=this._defaultOnLoading,onDoneLoading:s=this._defaultOnDoneLoading,loaderEl:c=document.querySelector(be),showMoreButtonEl:l=document.querySelector(we),isReverse:u=!1,listEl:d,getFocusItemFromListItem:h=(e=>e.querySelector(B))}=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");l&&!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=c,this.onLoading=a,this.onDoneLoading=s,this.loadResults=o,this.showMoreButtonEl=l,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?v(this._onScroll,this.wait):Ee(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&&h(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),y(this.el,"infinite-scroller-removed")}_attachScrollEventListener(){this.el.addEventListener("scroll",this._scrollListener)}}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 ke(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ae(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,Re(e,t,"get"))}function Oe(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Re(e,t,"set"),n),n}function Re(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Le(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Ne(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Pe(e,t,n){Ne(e,t),t.set(e,n)}function De(e,t){Ne(e,t),t.add(e)}const Me="light",Ue="dark";function Be(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Ue:Me:void 0}var Fe,qe=["requestStart"],He=["requestTime","viewNames","requestType"],je=["requestStart"],Ge=["requestStart"];function We(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 Ke(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ve(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,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Qe(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 Ye(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Qe(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Xe(e){return function(e){if(Array.isArray(e))return Je(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qe(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 Qe(e,t){if(e){if("string"==typeof e)return Je(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)?Je(e,t):void 0}}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0;return(ut[e[t+0]]+ut[e[t+1]]+ut[e[t+2]]+ut[e[t+3]]+"-"+ut[e[t+4]]+ut[e[t+5]]+"-"+ut[e[t+6]]+ut[e[t+7]]+"-"+ut[e[t+8]]+ut[e[t+9]]+"-"+ut[e[t+10]]+ut[e[t+11]]+ut[e[t+12]]+ut[e[t+13]]+ut[e[t+14]]+ut[e[t+15]]).toLowerCase()}function ft(e){if(!lt(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 pt(e,t,n){function i(e,i,r,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function vt(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function gt(e,t,n,i,r,o){return vt((a=vt(vt(t,e),vt(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function yt(e,t,n,i,r,o,a){return gt(t&n|~t&i,e,t,r,o,a)}function Et(e,t,n,i,r,o,a){return gt(t&i|n&~i,e,t,r,o,a)}function bt(e,t,n,i,r,o,a){return gt(t^n^i,e,t,r,o,a)}function wt(e,t,n,i,r,o,a){return gt(n^(t|~i),e,t,r,o,a)}pt("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[i/8])<>>32-t}pt("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>>0;E=y,y=g,g=St(v,30)>>>0,v=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>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 kt=Uint8Array,Ct=Uint16Array,It=Uint32Array,At=new kt([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]),Ot=new kt([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]),Rt=new kt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lt=function(e,t){for(var n=new Ct(31),i=0;i<31;++i)n[i]=t+=1<>>1|(21845&Bt)<<1;Ft=(61680&(Ft=(52428&Ft)>>>2|(13107&Ft)<<2))>>>4|(3855&Ft)<<4,Ut[Bt]=((65280&Ft)>>>8|(255&Ft)<<8)>>>1}var qt=function(e,t,n){for(var i=e.length,r=0,o=new Ct(t);r>>c]=l}else for(a=new Ct(i),r=0;r>>15-e[r]);return a},Ht=new kt(288);for(Bt=0;Bt<144;++Bt)Ht[Bt]=8;for(Bt=144;Bt<256;++Bt)Ht[Bt]=9;for(Bt=256;Bt<280;++Bt)Ht[Bt]=7;for(Bt=280;Bt<288;++Bt)Ht[Bt]=8;var jt=new kt(32);for(Bt=0;Bt<32;++Bt)jt[Bt]=5;var Gt=qt(Ht,9,0),Wt=qt(jt,5,0),Kt=function(e){return(e+7)/8|0},zt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Vt=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},Yt=function(e,t){for(var n=[],i=0;ih&&(h=o[i].s);var f=new Ct(h+1),p=Xt(n[u-1],f,0);if(p>t){i=0;var m=0,v=p-t,g=1<t))break;m+=g-(1<>>=v;m>0;){var E=o[i].s;f[E]=0&&m;--i){var b=o[i].s;f[b]==t&&(--f[b],++m)}p=t}return[new kt(f),p]},Xt=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},Qt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ct(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r);o=1,r=e[s]}return[n.subarray(0,i),t]},Jt=function(e,t){for(var n=0,i=0;i>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o4&&!k[Rt[I-1]];--I);var A,O,R,L,N=l+5<<3,P=Jt(r,Ht)+Jt(o,jt)+a,D=Jt(r,h)+Jt(o,m)+a+14+3*I+Jt(_,k)+(2*_[16]+3*_[17]+7*_[18]);if(N<=P&&N<=D)return Zt(t,u,e.subarray(c,c+l));if(zt(t,u,1+(D15&&(zt(t,u,F[T]>>>5&127),u+=F[T]>>>12)}}}else A=Gt,O=Ht,R=Wt,L=jt;for(T=0;T255){q=i[T]>>>18&31,Vt(t,u,A[q+257]),u+=O[q+257],q>7&&(zt(t,u,i[T]>>>23&31),u+=At[q]);var H=31&i[T];Vt(t,u,R[H]),u+=L[H],H>3&&(Vt(t,u,i[T]>>>5&8191),u+=Ot[H])}else Vt(t,u,A[i[T]]),u+=O[i[T]];return Vt(t,u,A[256]),u+O[256]},en=new It([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tn=new kt(0),nn=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,i,r){return function(e,t,n,i,r,o){var a=e.length,s=new kt(i+a+5*(1+Math.ceil(a/7e3))+r),c=s.subarray(i,s.length-r),l=0;if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535;d>=a&&(c[l>>3]=o),l=Zt(c,l+1,e.subarray(u,d))}else{for(var h=en[t-1],f=h>>>13,p=8191&h,m=(1<7e3||k>24576)&&L>423){l=$t(e,c,0,w,x,_,S,k,I,u-I,l),k=T=S=0,I=u;for(var N=0;N<286;++N)x[N]=0;for(N=0;N<30;++N)_[N]=0}var P=2,D=0,M=p,U=O-R&32767;if(L>2&&A==b(u-U))for(var B=Math.min(f,L)-1,F=Math.min(32767,u),q=Math.min(258,L);U<=F&&--M&&O!=R;){if(e[u+P]==e[u+P-U]){for(var H=0;HP){if(P=H,D=U,H>B)break;var j=Math.min(U,H-2),G=0;for(N=0;NG&&(G=K,R=W)}}}U+=(O=R)-(R=v[O])+32768&32767}if(D){w[k++]=268435456|Dt[P]<<18|Mt[D];var z=31&Dt[P],V=31&Mt[D];S+=At[z]+Ot[V],++x[257+z],++_[V],C=u+P,++T}else w[k++]=e[u],++x[e[u]]}}l=$t(e,c,o,w,x,_,S,k,I,u-I,l),!o&&7&l&&(l=Zt(c,l+1,tn))}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?Ct:4==e.BYTES_PER_ELEMENT?It:kt)(n-t);return i.set(e.subarray(t,n)),i}(s,0,i+Kt(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)},on=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},an="undefined"!=typeof TextDecoder&&new TextDecoder;try{an.decode(tn,{stream:!0})}catch(Pr){}function sn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function cn(){try{return sn()&&"keepalive"in new Request("")}catch(e){return!1}}function ln(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress;i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8");var o=t;if(r&&"undefined"!=typeof TextEncoder)try{o=function(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=rn(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=r.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&&on(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)}}(r,t),on(r,o-8,n.d()),on(r,o-4,i),r}((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 dn,hn="undefined"!=typeof navigator&&"sendBeacon"in navigator,fn=cn()?function(e,t,n,i){return new Promise((function(r){fetch(e,ln({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,ln({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(hn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,ln({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 pn(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 mn(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 vn(){return dn||(dn=mn("idb-queue","default")),dn}function gn(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++1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vn();return n("readwrite",(function(n){return n.put(e),pn(n.count()).then((function(e){if(!(e<=t.maxNumber))return gn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn())("readwrite",(function(t){return gn(t,e)}))}(t,n)}))}function bn(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]:vn();return yn?Promise.resolve():En(e,t,n)}function wn(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.length0&&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 _n(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Tn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}var kn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];$e(this,e),nt(this,"config",void 0),nt(this,"compress",void 0),nt(this,"throttleControl",void 0),nt(this,"withStore",void 0),nt(this,"disablePersistence",!1),this.config=t,this.compress=i;var r,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=mn(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(r=this.replayEntries.bind(this),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now();e-a>o&&(_n((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return tt(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){_n((function(){return"Persisting to DB "+e.url})),bn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),_n((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Tn((function(){return"push failed"}))}))};this.config.useIdle?Sn(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]:vn();return yn=!0,e("readwrite",(function(e){return e.clear(),pn(e.transaction).finally((function(){return yn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Tn((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):function(){return wn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Tn((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):function(){return wn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Tn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){_n((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var n=[];return t.openCursor(null,"next").onsuccess=function(){var t=this.result;t&&(n.push(t.value),t.delete(),(e<0||n.length0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return _n((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),fn(o,a,xn(s,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i;null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,a),e.replayEntries()}else{var r,s,d,h,f,p;if(u+1>e.config.attemptLimit)return _n((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(s=e.config).onResult)||void 0===r||r.call(s,t,a));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,a),_n((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),bn({url:o,body:a,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(f=(p=e.config).onResult)||void 0===f||f.call(p,t,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Tn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Sn(t):t()}}}]),e}(),Cn=function(){function e(){$e(this,e)}return tt(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}(),In=function(){function e(t,n){$e(this,e),nt(this,"queue",void 0),nt(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new kn(t,n.compress):new Cn}return tt(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}();nt(In,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var An=[502,504],On=[429,503],Rn=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];$e(this,e),nt(this,"url",void 0),nt(this,"body",void 0),nt(this,"config",void 0),nt(this,"persistenceConfig",void 0),nt(this,"compress",void 0),nt(this,"timestamp",void 0),nt(this,"isClearQueuePending",!1),nt(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return tt(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 fn(e.url,e.body,t,e.compress)}),n,t).finally((function(){_n((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(xn(n,this.config.headerName,o,i)).then((function(i){var o,a,s,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),s=i;else if(_n((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)}),s={type:"persisted",drop:!1,statusCode:i.statusCode};else{if(t>0&&r.isRetryableError(i)){var l,u;null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return _n((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(s=i).drop=!0}return null===(o=(a=r.config).onIntermediateResult)||void 0===o||o.call(a,s,r.body),s}))}},{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}(),Ln="internal:hide",Nn="internal:error";function Pn(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Dn(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Mn,Un,Bn=(Mn=new Map,Un=new Map,{on:function(e,t){Pn(Mn,e,t)},before:function(e,t){Pn(Un,e,t)},off:function(e,t){Dn(Mn,e,t)},offBefore:function(e,t){Dn(Un,e,t)},emit:function(e,t){(Un.get(e)||[]).concat(Mn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Un.clear(),Mn.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Fn=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Bn.emit(Ln,e)};document.addEventListener("visibilitychange",Fn),window.addEventListener("pagehide",Fn)}var qn=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Hn=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Hn){var jn=new Uint8Array(256),Gn=jn.length;qn={rng:function(){return Gn>jn.length-16&&(Hn.randomFillSync(jn),Gn=0),jn.slice(Gn,Gn+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ze(crypto))&&crypto.randomUUID;function Wn(){return _t(qn,new Array(16),0)}function Kn(e){return Xe(e).map((function(e){return String.fromCharCode(e)})).join("")}function zn(){return Kn(Wn())}var Vn=/^[a-zA-Z0-9/+]+[=]+$/;function Yn(e,t){return{pageUrn:Qn(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r>>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(a){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("")}(Wn())}}function Xn(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Qn(e){return"urn:li:page:".concat(e)}function Jn(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Zn(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 $n(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function ei(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var i,r="sequenceNumber";try{i=window.indexedDB.open(r)}catch(e){return Promise.resolve(null)}return new Promise((function(o,a){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(r)||e.createObjectStore(r,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,c=s.transaction(r,"readwrite"),l=c.objectStore(r),u=l.get(1);u.onsuccess=function(){var i=u.result;if(i){if("read"===e)return o(i);if("update"!==e)return o(null);var r,s=Object.assign({},i),c=!1,d=null!==(r=s.sequenceNumber)&&void 0!==r?r:0;if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,i=null!==(t=s[e])&&void 0!==t?t:0,r=n[e];r>i&&(s[e]=r,c=!0)})),c){var h=l.put(s,1);h.onsuccess=function(){return o(null)},h.onerror=function(){a(h.error)}}}else{var f={sequenceNumber:0};n&&Object.keys(n).forEach((function(e){f[e]=0}));var p=l.add(f);p.onsuccess=function(){return o(0)},p.onerror=function(){a(p.error)}}},u.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},c.oncomplete=function(){return s.close()}},i.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function ti(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!sn()||"undefined"==typeof Promise}function ni(e,t,n,i){var r=["core-web-tracking:".concat(e)];null==i||i.forEach((function(e){return r.push(e)})),Bn.emit(Nn,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}var ii=function(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))},ri=function(){function e(t){$e(this,e),nt(this,"heap",void 0),nt(this,"comparator",void 0),this.comparator=t,this.heap=[]}return tt(e,[{key:"heapsize",value:function(){return this.heap.length}},{key:"peak",value:function(){return this.heap[0]}},{key:"heapArray",get:function(){return this.heap}},{key:"heapClear",value:function(){var e=Xe(this.heap);return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]];this.heap[0]=t[0],this.heap[e-1]=t[1];for(var n=this.heap.pop(),i=0;2*i+10;){var n=Math.floor((t-1)/2);if(!this.comparator(this.heap[t],this.heap[n]))break;var i=[this.heap[n],this.heap[t]];this.heap[t]=i[0],this.heap[n]=i[1],t=n}}}]),e}();var oi="beacons";function ai(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&cn()&&t&&n}function si(e,t,n,i,r){"control"!==i&&e.retryConfig&&ai()&&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)}}))}(oi);var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},l=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:oi,attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:An,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:On,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new In(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s;return sn()?new Rn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||On},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,f=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:f},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?f.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 f.clearQueue()}}),(function(){return f.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){ni("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){ni("retry:setup",e)}))}var ci=function(){function e(t){$e(this,e),nt(this,"host",void 0),this.host=t}return tt(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&&si(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){ni("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();cn()&&"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){ni("retry:beacon",e)}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&(ti()?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?ui:i;if(!di||Date.now()-hi>n){var o=li&&document.cookie.match(r);di=o&&o[1]||"",hi=Date.now()}return di}var pi={prod:{pattern:new RegExp(/https: \/\/www.linkedin.com\/.+|https:\/\/www.linkedin.com\/li\/track$/),monitorEndpoint:"https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"},ei:{pattern:new RegExp(/https: \/\/www.linkedin-ei.com\/.+|https:\/\/www.linkedin-ei.com\/li\/track$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"},eiValidate:{pattern:new RegExp(/https:\/\/www\.linkedin-ei\.com\/.+\/validate$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"}},mi=function(){function e(t){$e(this,e),nt(this,"networkTransporter",void 0),nt(this,"inactive",void 0),nt(this,"mpName",void 0),nt(this,"endpoint",void 0),nt(this,"debug",void 0),this.networkTransporter=new ci(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return pi.prod.pattern.test(e)?t=pi.prod.monitorEndpoint:pi.eiValidate.pattern.test(e)?(n=!0,t=pi.eiValidate.monitorEndpoint):pi.ei.pattern.test(e)?t=pi.ei.monitorEndpoint:(t=pi.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return tt(e,[{key:"fireFragment",value:function(e){var t;if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":fi(),"x-restli-protocol-version":"2.0.0"},i=[],r=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=r.failures,a=r.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,Xe(t.failures)),e}),[]);[].concat(Xe(o),Xe(a)).forEach((function(e){var t=e.reason,n=e.rawError,r=e.eventTopic,o=e.header,a=e.requestHeader;i.push({reason:t,rawError:n,failedTopicName:r,header:o,requestHeader:a})}));var s={clientTrackingFailures:i,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function vi(e){return"string"==typeof e}function gi(e){return vi(e)?e:e.topicName||e.eventName}function yi(e){return vi(e)?e:e.eventName}var Ei,bi,wi=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e(this,e),nt(this,"host",void 0),nt(this,"cmoTransporter",void 0),nt(this,"clientMonitoringInstanceId",zn()),nt(this,"currentContext",{pageKey:ot,pageInstance:Yn(ot)}),nt(this,"appState",{}),nt(this,"estimatedFragmentSize",0),nt(this,"fragmentSizeLimit",void 0),nt(this,"activeFragmentEvent",void 0),nt(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new mi(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=_i(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return tt(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=Ye(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(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:yi(t),eventTopic:gi(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0;var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent;i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=_i(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=Ti(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Ti(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:zn(),memberId:0}}}}]),e}();function xi(e){return Ei||(Ei=new wi(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 _i(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 Ti(e){return Array.isArray(e)?Kn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Vn)}(e)?atob(e):Kn(function(e){return ft(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"}(bi||(bi={}));var Si=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],ki="PageViewEvent",Ci=function(){function e(t){var n,i,r,o=this;$e(this,e),nt(this,"host",void 0),nt(this,"queue",void 0),nt(this,"preContextQueue",void 0),nt(this,"debounceTimer",void 0),nt(this,"unloadHandlers",void 0),nt(this,"maxQueueSize",void 0),nt(this,"flushDebounceTime",void 0),nt(this,"trackingEventListeners",[]),nt(this,"onHideHandler",(function(){o.forceFlush()})),nt(this,"networkTransporter",void 0),nt(this,"clientMonitoringConn",void 0),nt(this,"clientGlobalSequenceNumberCounter",void 0),nt(this,"clientTopicLocalSequenceNumberCountersMap",{}),nt(this,"isTimerRunning",void 0),nt(this,"trackingEndpoint",void 0),nt(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track";this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(c,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,Bn.on(Ln,this.onHideHandler),this.networkTransporter=new ci(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=xi(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return tt(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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logFailedEvent(bi.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logPersistedFailedEvent(r,bi.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,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(gi(e.id)));var n=this.host,i=n.api.Promise,r=n.batching;if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t);return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),this.queue.push(a),r?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))}return this.preContextQueue.push(t),i.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){var e,t,n;this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,Bn.off(Ln,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location)}},{key:"forceFlush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:Yn(ot),pageKey:ot}).forEach((function(t){e.queue.push(t)})),this.isEvenBatchEnabled?1===t?this.sendPayload(void 0,!0):this.sendPayload():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;ei("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Si.forEach((function(n){var i;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){ni("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){ei("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){ni("sequence-number:idb-update",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=Jn(e.meta.context,this.host.api);return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,a={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(a,{clientBreadcrumbs:n}),a}},{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,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===ki:e.eventName===ki}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,f=null;"string"!=typeof r&&null!==this.host.locale||(f=r);var p={interfaceLocale:f,pageKey:h,path:a.pathname+a.search,referer:s.referrer,isFlushOnCloseBrowserTabEnabled:!ti()&&(cn()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},m={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:zn(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var v=gi(e.id);if(Si.includes(v)){var g=this.clientTopicLocalSequenceNumberCountersMap[v];"number"==typeof g&&c(m,{clientTopicLocalSequenceNumber:g})}var y={header:c(m,e.meta.header||{}),requestHeader:c(p,e.meta.requestHeader||{})},E=e.meta.clientMonitoringInstanceId,b=e.meta.clientMonitoringInstanceEventNumber;return E&&c(y.header,{clientMonitoringInstanceId:E,clientMonitoringInstanceEventNumber:b}),c(e.body,y)}},{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(0)}),{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(void 0,!0):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(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e;else{var r=this.maxQueueSize+1;this.queue.length>0&&(this.queue.length<=r||i)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,r)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[]);if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3));var o,a,s=[],c=[];t.forEach((function(e){var t=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),r=n.envelop(e.id,t,i);n.trigger(r,e.meta);var o=r.eventInfo.eventName;"LixTreatmentsEvent"===o||"JavaScriptErrorEvent"===o?s.push(r):c.push(r),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var a=gi(e.id);Si.includes(a)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[a]&&n.clientTopicLocalSequenceNumberCountersMap[a]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(s.length+c.length),a=this.clientMonitoringConn,o={onResult:function(e,t){a&&!a.isDestroyed()&&(e.statusCode&&a.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,r="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(r)].join(", ");null==a||a.logFailedEvent(bi.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},o,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,s,void 0,o),this.networkTransporter.sendPayload(this.trackingEndpoint,c,void 0,o))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}();var Ii,Ai=function(){function e(t,n){$e(this,e),this.clientBreadcrumbType=t,this.id=n}return tt(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 Oi(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,o=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi);if(o?r={pageInstance:o,pageKey:t}:t&&(r={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);r={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=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 s&&((r=r||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:r,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function Ri(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW"}(Ii||(Ii={}));var Li,Ni,Pi=function(){function e(t,n){var i,r;if($e(this,e),nt(this,"transporter",void 0),nt(this,"delegate",void 0),nt(this,"currentContext",void 0),nt(this,"appState",void 0),nt(this,"previousAppContext",void 0),nt(this,"customTransporters",void 0),nt(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 a=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new Ci(this.transporter.host.api.assign(a,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=xi(t.host))}return tt(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){Ri(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Ri(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Jn(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,Oi(t),null==n?void 0:n.pageInstanceTrackingId);if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Jn(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Jn(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=Xn(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),a}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof HTMLElement&&"body"!==n.tagName.toLowerCase();){var i=n.getAttribute("data-view-name");i&&t.push(i),n=n.parentElement}return t}},{key:"fireInteraction",value:function(e){var t=e.targetView,n=e.manualFireReason,i=e.interactionType,r=e.controlUrn,o=e.actionType,a=e.contentTrackingId,s=e.clientBreadcrumbs,c=e.isShadowEvent,l=this.getViewHierarchy(t);return this.fireEvent("GenericActionEvent",{controlUrn:r||"",interactionType:i,actionType:o,contentTrackingId:""===a?void 0:a,manualFireReason:n},{header:{viewHierarchy:l}},s,c)}},{key:"fireImpression",value:function(e){var t=e.viewHierarchy,n=e.manualFireReason,i=e.viewDurationInMilliseconds,r=void 0===i?0:i,o=e.contentViewFraction,a=void 0===o?1:o,s=e.width,c=void 0===s?-1:s,l=e.height,u=void 0===l?-1:l,d=e.verticalPosition,h=e.horizontalPosition,f=e.impressionTime,p=e.contentTrackingId,m=e.clientBreadcrumbs,v=e.isShadowEvent;return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:r,contentViewFraction:a,width:c,height:u,verticalPosition:d,horizontalPosition:h,impressionTime:f,contentTrackingId:""===p?void 0:p,manualFireReason:n},{header:{viewHierarchy:t}},m,v)}},{key:"fireEvent",value:function(e,t,n,i,r){if(!t){var o=gi(e),a=void 0===t?"undefined":null===t?"null":Ze(t),s='Firing tracking event "'.concat(o,'" with invalid body, you fired "').concat(a,'"');if(this.clientMonitoringConn){var c=this.clientMonitoringConn.logEventGenerated(o);this.clientMonitoringConn.logFailedEvent(bi.MISSING_REQUIRED_PROPERTIES,e,s,c)}throw new Error(s)}var l=i||[];if(l.length>0){var u=l.map((function(e){return Ai.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:u})}var d=l.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,l,r):this.generateEnvelope(e,t,n,r);return this.fireEnvelope(d)}},{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=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.generateEnvelope(e,t,n,r);return i.length>0?this.addBreadcrumbsToEnvelope(o,i):o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){return this.host.api.assign(e,{clientBreadcrumbs:t}),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(vi(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,a=o?this.customTransporters[o]:this.transporter;if(!a&&o){var s=gi(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(bi.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Yn(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{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),Bn.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 Xn((t||this.currentContext||{pageKey:ot}).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,n){var i="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:i,topicName:"InboundNavigationEvent"}:i;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||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 a=i&&i.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),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=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Jn(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,isShadowEvent:i},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}]),e}();!function(){function e(t,n){var i,r=this;$e(this,e),nt(this,"core",void 0),nt(this,"protocol",void 0),nt(this,"throttleKeySet",new Set),nt(this,"config",void 0),nt(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"]),{responseHeaders:e.responseHeaders}).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},Bn.on(Nn,this.reportTransporterError)}tt(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,a=void 0===o?"":o,s=r.responseHeaders,c=void 0===s?{}:s,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,f=e.fileName,p=void 0===f?"":f,m=e.lineNumber,v=void 0===m?0:m,g=e.columnNumber,y=void 0===g?0:g,E=this.core.host,b=E.appId,w=E.appVersion,x=E.service,_=E.serviceInstance,T=E.treeID,S=void 0===T?"":T,k=E.api,C=k.Promise,I=k.location,A=I.host,O=I.pathname,R=I.search,L=I.hash,N=void 0===L?"":L;if(c){t={};var P=new Map;Object.keys(c).forEach((function(e){P.set(e.toLowerCase(),c[e])})),t.callTreeId=P.get("x-li-uuid"),t.microsoftEdgeReference=P.get("x-msedge-ref"),t.pointOfPresenceId=P.get("x-li-pop"),t.fabric=P.get("x-li-fabric")}var D=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:b,e:{c:y,l:v,m:l,s:h,t:u,u:p},h:N,l:n.protocol,o:A,p:O,pageKey:e.pageKey,q:R,service:x,serviceInstance:_,serviceVersion:w,t:i,trackingID:e.pageInstance.trackingId,treeID:S,callTreeId:a,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return D();var M=(u+l+h+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(M)?C.resolve(!1):(this.throttleKeySet.add(M),setTimeout((function(){return n.throttleKeySet.delete(M)}),this.config.throttleTime),D())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Bn.off(Nn,this.reportTransporterError)}}])}(),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",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3"}(Li||(Li={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(Ni||(Ni={}));var Di,Mi,Ui,Bi,Fi,qi,Hi,ji=(nt(nt(nt(nt(nt(nt(nt(nt(nt(nt(Fe={},"web-ui-framework","EMBER"),"app-id","linkedin.rum.tracking"),"app-version","unknown"),"is-single-page-app",!0),"user-timing-mark-enabled",!1),"user-timing-measure-enabled",!0),"beacon-source","apps"),"enable-rs-timing",!0),"enable-cdn-tracking",!1),"async-plugins-timeout",5e3),nt(nt(nt(nt(nt(Fe,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1)),Gi=-1,Wi=-2,Ki=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],zi={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},Vi={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Yi="pageLoadId does not exist",Xi="rum token passed is invalid",Qi=new RegExp(/batch-(\d+)$|enabled$/),Ji=function(){function e(){$e(this,e),nt(this,"userTimingEntries",[]),nt(this,"longTasks",[]),nt(this,"resourceTimingEntries",[]),nt(this,"cdnData",void 0)}return tt(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($i),cdnData:this.cdnData}}}]),e}(),Zi=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function $i(e){return Zi.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function er(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};qi=Object.assign(Object.assign({},n),t),Hi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(qi.root,n);var i=tr(e,Fi.All,(function(){return tr(e,Fi.Two,(function(){return tr(e,Fi.One)}))}));if(i){var r=ur(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>qi.optimizedMinLength)for(var o=1;oqi.maxNumberOfTries)return r;i.counter+=1;var a=Xe(t);a.splice(o,1);var s=ir(a);if(i.visited.has(s))return r;or(a)&&dr(a,n)&&(r.push(a),i.visited.set(s,!0),r=r.concat(e(a,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),ir(i)}throw new Error("Selector was not found.")}function tr(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=cr(function(e){var t=e.getAttribute("id");return t&&qi.idName(t)?{name:"#"+vr(t,{isIdentifier:!0}),penalty:0}:null}(o))||cr.apply(void 0,Xe(function(e){return Array.from(e.attributes).filter((function(e){return qi.attr(e.name,e.value)})).map((function(e){return{name:"["+vr(e.name,{isIdentifier:!0})+'="'+vr(e.value)+'"]',penalty:.5}}))}(o)))||cr.apply(void 0,Xe(function(e){return Array.from(e.classList).filter(qi.className).map((function(e){return{name:"."+vr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||cr(function(e){var t=e.tagName.toLowerCase();return qi.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=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===Fi.All)s&&(e=e.concat(e.filter(sr).map((function(e){return ar(e,s)}))));else if(t===Fi.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(sr).map((function(e){return ar(e,s)}))));else if(t===Fi.One){var c=Ve(e=e.slice(0,1),1)[0];s&&sr(c)&&(e=[ar(c,s)])}var l,u=Ye(e);try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=qi.seedMinLength&&(i=nr(r,n)))return 1;o=o.parentElement,a++};o&&o!==qi.root.parentElement&&!s(););return i||(i=nr(r,n)),i}function nr(e,t){var n=ur(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=Ye(t[0]);try{for(o.s();!(i=o.n()).done;){var a=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(a)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>qi.threshold)return t?t():null;var i,r=Ye(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(or(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function ir(e){for(var t=e[0],n=t.name,i=1;i ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function rr(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function or(e){switch(Hi.querySelectorAll(ir(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ir(e)));case 1:return!0;default:return!1}}function ar(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function sr(e){return"html"!==e.name&&!e.name.startsWith("#")}function cr(){for(var e=arguments.length,t=new Array(e),n=0;n0?i:null}function lr(e){return null!=e}function ur(e){return Array.from(e).sort((function(e,t){return rr(e)-rr(t)}))}function dr(e,t){return Hi.querySelector(ir(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(Di||(Di={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(Mi||(Mi={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(Ui||(Ui={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Bi||(Bi={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Fi||(Fi={}));var hr=/[ -,\.\/:-@\[-\^`\{-~]/,fr=/[ -,\.\/:-@\[\]\^`\{-~]/,pr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,mr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},mr),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s126){if(u>=55296&&u<=56319&&s1&&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 br(e){var t=e||performance;return Math.round(t.now())}function wr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return er(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=wr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function xr(e,t,n,i){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration;r.push({entryType:"MEASURE",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:o}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration;r.push({entryType:"MARK",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),r}function _r(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Tr,Sr,kr=function(){function e(t){$e(this,e),nt(this,"hostApis",void 0),nt(this,"hostnameProperties",void 0),nt(this,"usedHostnames",void 0),nt(this,"abortController",void 0),nt(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 tt(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return $n(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=Zn($n(this.pendingPromises),r),a=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(a),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,(gr=gr||i.createElement("a")).href=n,gr.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}));this.pendingPromises.add(a)}}}},{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}(),Cr=["msMaxTouchPoints","createEvent","TouchEvent","ontouchstart","canvas","display","inline","getContext","rect","canvasWinding","isPointInPath","fillRect","fillStyle","#069","dontUseFakeFontInCanvas","11pt Arial","font","11pt no-real-font-123","fillText","rgba(102, 204, 0, 0.2)","Cwm fjordbank glyphs vext quiz, 😃","globalCompositeOperation","multiply","rgb(255,0,255)","arc","rgb(0,255,255)","beginPath","closePath","fill","rgb(255,255,0)","evenodd","toDataURL","canvasHash","clearColor","enable","depthFunc","clear","COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","getWebglCanvas","ARRAY_BUFFER","STATIC_DRAW","itemSize","createProgram","VERTEX_SHADER","attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}","compileShader","attachShader","linkProgram","vertexPosAttrib","getAttribLocation","attrVertex","offsetUniform","getUniformLocation","uniformOffset","enableVertexAttribArray","vertexPosArray","vertexAttribPointer","FLOAT","uniform2f","TRIANGLE_STRIP","numItems","webglHash","webgl","vendorAndRenderer","getWebglVendorAndRenderer","extensions","getSupportedExtensions","webgl aliased line width range","getParameter","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALPHA_BITS","webgl antialiasing","antialias","yes","BLUE_BITS","webgl depth bits","DEPTH_BITS","webgl max anisotropy","getExtension","WEBKIT_EXT_texture_filter_anisotropic","MOZ_EXT_texture_filter_anisotropic","MAX_COMBINED_TEXTURE_IMAGE_UNITS","webgl max cube map texture size","MAX_CUBE_MAP_TEXTURE_SIZE","webgl max fragment uniform vectors","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","webgl max texture image units","webgl max texture size","webgl max varying vectors","MAX_VARYING_VECTORS","webgl max vertex attribs","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","webgl max vertex uniform vectors","MAX_VERTEX_UNIFORM_VECTORS","webgl max viewport dims","webgl red bits","RED_BITS","RENDERER","webgl shading language version","SHADING_LANGUAGE_VERSION","webgl stencil bits","STENCIL_BITS","VENDOR","webgl version","WEBGL_debug_renderer_info","webgl unmasked vendor","UNMASKED_VENDOR_WEBGL","getShaderPrecisionFormat","INT","VERTEX","FRAGMENT","HIGH","LOW","rangeMin","_SHADER","precision","webgl ","toLowerCase","innerHTML"," ","className","adsbox","languages","substr","height","oscpu","windows phone","Windows Phone","win","android","Android","Linux","iphone","ipad","iOS","mac","Mac","Windows","linux","Other","pike","ipod","productSub","opera","opr","chrome","safari","Internet Explorer","toSource","WebGLRenderingContext","isIE","Microsoft Internet Explorer","Netscape","swfobject","9.0.0","addFlashDivNode","setAttribute","___fp_swf_loaded","embedSWF","always","false","experimental-webgl","components","webrtc","location","locationKey","javascripts","incognito","pixelDepthKey","pixelRatio","screenResolution","screenOrientation","availableScreenResolution","indexedDb","addBehavior","openDatabaseKey","signals","touchSupport","networkInfo","battery","audioKey","automation","mimetyps","mimetypesComponent","fontsFlash","Options not provided","excludes","key","alias","shouldEnforceDataLimit","dataLimit","data","Exceeded current data limit:"," Data length for:","latency","acq_time","allFeatures","allFeaturesCollectionAt","errors","requestIdleCallback","querySelector","firstChild","nodeValue","parentNode","parse","getElementsByClassName","fromCharCode","apply","importPk","atob","crypto","subtle","importKey","RSA-OAEP","SHA-256","wrap","spki","wrapKey","encode","encryptWithKey","ec1","getRandomValues","AES-CBC","generateKey","decrypt","error","resolve","string","wrapErrorResult","Error: ec2","number","isNaN","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB","encryptWithKeyFromDifferentSources","publicKey","publicKeyVersion","uuidv4","generateSha256HashOrDefault","digest","from","DNA","HUMAN","DFP_WEB","_cookieRegEx","cookie","getDomain","; path=","; secure=true","domain=","expires=","=([^;]*)","apfcDf","flash/compiled/FontList.swf","https://ponf.linkedin.com/pixel/tracking.png","n/a","excluded","enabled","globalIntegration","checkConfigAndInitializeAllIntegration","addEventListener","stringify","settings-iframe","setting-headline","useRequestIdleCallBack","readyState","initialize","load","isDfCollectionRequired","getItem","df_ts","deleteDfCookieIfRequired","checkConfigAndInitializeGlobalIntegration","checkConfigAndInitializeThirdPartyIntegration","addDfCookieIfRequired","dnaIntegrationEnabled","dnaIntegrationCompleted","intializeGlobalIntegration","humanIntegrationEnabled","humanIntegrationCompleted","initializeHumanIntegration","dfpIntegrationEnabled","intializeDfpIntegration","samplingTimeWindowInMillis","setTime","apfcDfPK","triggerApfc","reentry","reqid","isProd","getFeatures","pageInstance","fullFeatureCollection","apfcDfPKV","https://www.linkedin-ei.com","POST","setRequestHeader","application/json","send","telemetryCollectPath","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","&instanceId=","script","dfpIframeScript","dfp","doFpt","getElementsByTagName","Invalid session_id: ","dfpIntegrationCompleted","treeId","PXdOjV695v","PXgoH0hfKu","https://li.protechts.net/index.html?ts=","&r_id=","&app_id=","&uc=scraping","&d_id=","iframe","src","sandbox","allow-same-origin allow-scripts","aria-hidden","true","0px","border","position","reentryGlobalIntegration","triggerDnaApfcEvent",".linkedin.com","pemberly","isEmpty","getUrlFromNoscriptBeacon","div_bc","noscript","text/html","getAttribute","class","display:none;","ponfUrl","pathname","searchParams","get","getElementById","charAt","substring","bc_context",".linkedin-ei.com","img","undefined","x64Add","x64Multiply","x64Xor","length","charCodeAt","x64Rotl","x64LeftShift","x64Fmix","00000000","toString","slice","each","prototype","forEach","hasOwnProperty","map","push","getIPs","webkitRTCPeerConnection","mozRTCPeerConnection","msRTCPeerConnection","stun:stun.l.google.com:19302","localDescription","sdp","split","a=candidate:","indexOf","c=IN","keys","candidate","onicegatheringstatechange","complete","iceGatheringState","createDataChannel","then","setLocalDescription","automationKey","getHasLiedBrowser","undetected, fake browser","getBrowserNameAndVersion","Chrome","webdriver","document","documentElement","_Selenium_IDE_Recorder","__webdriver_script_fn","Selenium","callPhantom","_phantom","NOT_AVAILABLE","webRtcKey","name","enumerateDevicesKey","enumerateDevices","gid","groupId","kind","label","catch","isEnumerateDevicesSupported","mediaDevices","audio","excludeIOS11","userAgent","match","EXCLUDED","OfflineAudioContext","createOscillator","frequency","setValueAtTime","currentTime","createDynamicsCompressor","threshold","knee","ratio","reduction","function","connect","destination","start","startRendering","oncomplete","audioTimeout","timeout","getChannelData","reduce","abs","disconnect","UserAgent","languageKey","language","userLanguage","browserLanguage","systemLanguage","colorDepthKey","screen","colorDepth","deviceMemoryKey","deviceMemory"," GB","pixelDepth","pixelRatioKey","screenResolutionKey","screenOrientationKey","Enabled","orientation","msOrientation","mozOrientation","getScreenResolution","width","availableScreenResolutionKey","getAvailableScreenResolution","availHeight","availWidth","timezoneOffset","timezone","Intl","DateTimeFormat","sessionStorageKey","localStorageKey","hasLocalStorage","indexedDbKey","hasIndexedDB","addBehaviorKey","body","openDatabase","cpuClassKey","getNavigatorCpuClass","oscpuKey","appName","appCodeNameKey","appCodeName","seedKey","now","platformKey","productKey","product","productSubKey","vendorKey","vendorSubKey","vendorSub","doNotTrackKey","getDoNotTrack","incognitoKey","RequestFileSystem","webkitRequestFileSystem","storage","estimate","Safari","safariIncognito","localStorage","setItem","test","removeItem","Firefox","open","onerror","onsuccess","indexedDB","PointerEvent","MSPointerEvent","exec","IE ","join","replace","OPR","Opera","appVersion","splice","canvasKey","isCanvasSupported","getCanvasFp","webglKey","isWebGlSupported","getWebglFp","javascriptsKey","scripts","hash","host","hostname","href","origin","port","protocol","signalsKey","getSignals","getAdBlock","getHasLiedResolution","flashFontsKey","hasSwfObjectLoaded","hasMinFlashInstalled","fonts","swfPath","loadSwfAndDetectFonts","flash not installed","swf object not loaded","jsFontsKey","sans-serif","serif","Andale Mono","Arial Black","Arial Hebrew","Arial Narrow","Arial Rounded MT Bold","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century Gothic","Century Schoolbook","Comic Sans","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Times","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3","concat","extendedJsFonts","userDefinedFonts","filter","createElement","div","span","style","absolute","left","-9999px","fontSize","fontStyle","normal","fontWeight","lineBreak","lineHeight","textTransform","none","textAlign","textShadow","wordBreak","wordSpacing","fontFamily","offsetWidth","offsetHeight","appendChild","removeChild","x64hash128","hashOnly","lists","mimeTypes","type","suffixes","description","pluginsComponent","plugins","excludeIE","sort","getIEPlugins","getOwnPropertyDescriptor","ActiveXObject","AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","ERROR","getRegularPlugins","sortPluginsFor","batteryKey","getBattery","level","chargingTime","dischargingTime","networkInfoKey","downlink","effectiveType","touchSupportKey","hardwareConcurrencyKey","hasSessionStorage","sessionStorage","getHardwareConcurrency","hardwareConcurrency","cpuClass","getNavigatorPlatform","platform","doNotTrack","msDoNotTrack","getTouchSupport","maxTouchPoints"];Tr=Cr,Sr=354,function(e){for(;--e;)Tr.push(Tr.shift())}(++Sr);var Ir=function(e,t){return Cr[e-=0]};!function(){var e=function(e,t,n){function i(){$e(this,i)}return tt(i,null,[{key:Ir("0x0"),value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:Ir("0x1"),value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Rotl",value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}},{key:"x64LeftShift",value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=i.x64Multiply(e,[4283543511,3981806797]),e=i.x64Xor(e,[0,e[0]>>>1]),e=i[Ir("0x1")](e,[3301882366,444984403]),i[Ir("0x2")](e,[0,e[0]>>>1])}},{key:"x64hash128",value:function(e,t){t=t||0;var n,r=(e=e||"")[Ir("0x3")]%16,o=e[Ir("0x3")]-r,a=[0,t],s=[0,t],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167];for(n=0;n>>0)[Ir("0x9")](16)).slice(-8)+("00000000"+(a[1]>>>0)[Ir("0x9")](16))[Ir("0xa")](-8)+(Ir("0x8")+(s[0]>>>0)[Ir("0x9")](16))[Ir("0xa")](-8)+(Ir("0x8")+(s[1]>>>0)[Ir("0x9")](16))[Ir("0xa")](-8)}}]),i}(),t=function(t,n,i,r,o,a,s,c,l,u,d,h,f,p,m,v,g,y,E,b,w,x,_,T,S,k,C,I,A,O,R,L,N,P,D,M,U,B,F,q,H,j,G,W,K,z,V,Y,X,Q,J,Z,$,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,he,fe,pe,me){function ve(){$e(this,ve),this[Ir("0x1f4")]=[{key:Ir("0x1f5"),getData:ve.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:Ir("0x35"),getData:ve[Ir("0x34")],shouldEnforceDataLimit:!0,dataLimit:22e3},{key:Ir("0x81"),getData:ve.appNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:ve[Ir("0x84")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0xa7"),getData:ve.appVersionKey,shouldEnforceDataLimit:!0,dataLimit:300},{key:"appCodeName",getData:ve[Ir("0x82")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1f6"),getData:ve[Ir("0x1f7")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Ir("0x1f8"),getData:ve[Ir("0xaf")],shouldEnforceDataLimit:!0,dataLimit:2200},{key:Ir("0x149"),getData:ve.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x88"),getData:ve[Ir("0x87")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1e0"),getData:ve[Ir("0x89")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x147"),getData:ve[Ir("0x7e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1cf"),getData:ve[Ir("0x80")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x146"),getData:ve[Ir("0x142")],alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x62"),getData:ve[Ir("0x61")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:ve.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:ve.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:ve.languageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezoneOffset",getData:ve.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x73"),getData:ve[Ir("0x73")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:ve[Ir("0x58")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Ir("0x29"),getData:ve[Ir("0x29")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x14a"),getData:ve[Ir("0x8d")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1f9"),getData:ve[Ir("0x8f")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x60"),getData:ve[Ir("0x5e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x64"),getData:ve[Ir("0x1fa")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1fb"),getData:ve.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1fc"),getData:ve[Ir("0x66")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1fd"),getData:ve[Ir("0x67")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1fe"),getData:ve.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x144"),getData:ve.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:ve[Ir("0x77")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x1ff"),getData:ve.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x200"),getData:ve[Ir("0x7b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x7d"),getData:ve[Ir("0x201")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x152"),getData:ve.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"webgl",getData:ve[Ir("0xac")],shouldEnforceDataLimit:!0,dataLimit:6e3},{key:Ir("0x202"),getData:ve.signalsKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:Ir("0x203"),getData:ve[Ir("0x141")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x204"),getData:ve[Ir("0x13e")],shouldEnforceDataLimit:!0,dataLimit:150},{key:Ir("0x205"),getData:ve[Ir("0x139")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x3d"),getData:ve[Ir("0x206")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x207"),getData:ve.automationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ir("0x120"),getData:ve[Ir("0x11f")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:Ir("0x208"),getData:ve[Ir("0x209")],shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:ve[Ir("0xc4")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Ir("0x20a"),getData:ve.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return tt(ve,[{key:"getFeatures",value:function(e,t){if(Ir("0x4c")==Ze(e)){if(!t)return e({error:Ir("0x20b")});var n={data:{latency:{acq_time:{}},errors:{}}},i=Date[Ir("0x85")](),r={},o=0,a=0;this[Ir("0x1f4")][Ir("0xd")]((function(s){if(!t[Ir("0x20c")][s[Ir("0x20d")]]){var c=s[Ir("0x20d")];void 0!==s[Ir("0x20e")]&&null!==s.alias&&s[Ir("0x20e")][Ir("0x3")]>0&&(c=s[Ir("0x20e")]),o++;var l=function(){r[c]=Date[Ir("0x85")]();try{s.getData((function(t){if(!1!==s[Ir("0x20f")]){var l=s[Ir("0xe")](Ir("0x210"))&&"number"==typeof s.dataLimit?s.dataLimit:1e3,u=JSON.stringify(t).length;u>l&&(n[Ir("0x211")].errors[c]=Ir("0x212")+l+Ir("0x213")+c+" was found to be:"+u,t={})}n[Ir("0x211")][c]=t,n[Ir("0x211")][Ir("0x214")][Ir("0x215")][c]=Date.now()-r[c],++a>=o&&(n.data.latency[Ir("0x215")][Ir("0x216")]=Date.now()-i,n[Ir("0x211")][Ir("0x217")]=Date[Ir("0x85")](),e(n[Ir("0x211")],!0))}),t)}catch(e){n.data[Ir("0x218")][c]=String(e)}};Ir("0x4c")==Ze(window[Ir("0x219")])&&!1!==t.useRequestIdleCallBack?window[Ir("0x219")](l):l()}})),n.data[Ir("0x214")][Ir("0x215")][Ir("0x216")]=Date.now()-i,e(n[Ir("0x211")],!1)}}}],[{key:t,value:function(e,t){if(Array.prototype.forEach&&e.forEach===Array[Ir("0xc")][Ir("0xd")])e[Ir("0xd")](t);else if(e.length===+e[Ir("0x3")])for(var n=0,i=e[Ir("0x3")];n0&&ve.pluginsShouldBeSorted(e)&&(t=t[Ir("0x122")]((function(e,t){return e[Ir("0x33")]>t.name?1:e.name=0?Ir("0x1d1"):t[Ir("0x1a")](Ir("0x1d2"))>=0?"Windows":t[Ir("0x1a")](Ir("0x1d3"))>=0?Ir("0x1d4"):t.indexOf("linux")>=0||t[Ir("0x1a")]("cros")>=0?Ir("0x1d5"):t.indexOf(Ir("0x1d6"))>=0||t[Ir("0x1a")](Ir("0x1d7"))>=0?Ir("0x1d8"):t[Ir("0x1a")](Ir("0x1d9"))>=0?Ir("0x1da"):"Other",(Ir("0x151")in window||navigator[Ir("0x14d")]>0||navigator[Ir("0x14e")]>0)&&Ir("0x1d1")!==e&&Ir("0x1d4")!==e&&Ir("0x1d8")!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n[Ir("0x1c7")]())[Ir("0x1a")](Ir("0x1d2"))>=0&&Ir("0x1db")!==e&&Ir("0x1d1")!==e)return!0;if(n[Ir("0x1a")](Ir("0x1dc"))>=0&&"Linux"!==e&&Ir("0x1d4")!==e)return!0;if(n[Ir("0x1a")](Ir("0x1d9"))>=0&&"Mac"!==e&&Ir("0x1d8")!==e)return!0;if((-1===n.indexOf(Ir("0x1d2"))&&-1===n[Ir("0x1a")](Ir("0x1dc"))&&-1===n.indexOf("mac"))!=(Ir("0x1dd")===e))return!0}return i[Ir("0x1a")](Ir("0x1d2"))>=0&&Ir("0x1db")!==e&&Ir("0x1d1")!==e||(i[Ir("0x1a")](Ir("0x1dc"))>=0||i[Ir("0x1a")](Ir("0x1d3"))>=0||i[Ir("0x1a")](Ir("0x1de"))>=0)&&"Linux"!==e&&"Android"!==e||(i[Ir("0x1a")](Ir("0x1d9"))>=0||i.indexOf("ipad")>=0||i[Ir("0x1a")](Ir("0x1df"))>=0||i[Ir("0x1a")]("iphone")>=0)&&Ir("0x1da")!==e&&Ir("0x1d8")!==e||(i.indexOf(Ir("0x1d2"))<0&&i[Ir("0x1a")]("linux")<0&&i.indexOf(Ir("0x1d9"))<0&&i[Ir("0x1a")](Ir("0x1d6"))<0&&i.indexOf("ipad")<0)!=(Ir("0x1dd")===e)||void 0===navigator[Ir("0x120")]&&"Windows"!==e&&Ir("0x1d1")!==e}},{key:Ir("0x25"),value:function(){var e,t=navigator[Ir("0x3f")][Ir("0x1c7")](),n=navigator[Ir("0x1e0")];if(e=t[Ir("0x1a")]("firefox")>=0?Ir("0x9a"):t[Ir("0x1a")](Ir("0x1e1"))>=0||t[Ir("0x1a")](Ir("0x1e2"))>=0?Ir("0xa6"):t[Ir("0x1a")](Ir("0x1e3"))>=0?"Chrome":t[Ir("0x1a")](Ir("0x1e4"))>=0?Ir("0x94"):t[Ir("0x1a")]("trident")>=0?"Internet Explorer":Ir("0x1dd"),(Ir("0x28")===e||Ir("0x94")===e||Ir("0xa6")===e)&&"20030107"!==n)return!0;var i,r=eval[Ir("0x9")]().length;if(37===r&&Ir("0x94")!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===r&&Ir("0x1e5")!==e&&Ir("0x1dd")!==e)return!0;if(33===r&&Ir("0x28")!==e&&Ir("0xa6")!==e&&Ir("0x1dd")!==e)return!0;try{throw"a"}catch(e){try{e[Ir("0x1e6")](),i=!0}catch(e){i=!1}}return i&&Ir("0x9a")!==e&&Ir("0x1dd")!==e}},{key:Ir("0xaa"),value:function(){var e=document[Ir("0x100")](Ir("0x152"));return!(!e[Ir("0x155")]||!e[Ir("0x155")]("2d"))}},{key:Ir("0xad"),value:function(){if(!ve[Ir("0xaa")]())return!1;var e=ve[Ir("0x175")]();return!!window[Ir("0x1e7")]&&!!e}},{key:Ir("0x1e8"),value:function(){return Ir("0x1e9")===navigator[Ir("0x81")]||!(Ir("0x1ea")!==navigator[Ir("0x81")]||!/Trident/[Ir("0x98")](navigator[Ir("0x3f")]))}},{key:Ir("0xbd"),value:function(){return void 0!==window[Ir("0x1eb")]}},{key:Ir("0xbe"),value:function(){return window[Ir("0x1eb")].hasFlashPlayerVersion(Ir("0x1ec"))}},{key:Ir("0x1ed"),value:function(e){var t=document[Ir("0x100")]("div");t[Ir("0x1ee")]("id",e[Ir("0xbf")].swfContainerId),document[Ir("0x7c")][Ir("0x116")](t)}},{key:Ir("0xc1"),value:function(e,t){window[Ir("0x1ef")]=function(t){e(t)};var n=t[Ir("0xbf")].swfContainerId;ve[Ir("0x1ed")]();var i={onReady:Ir("0x1ef")};window[Ir("0x1eb")][Ir("0x1f0")](t[Ir("0xbf")][Ir("0xc0")],n,"1","1",Ir("0x1ec"),!1,i,{allowScriptAccess:Ir("0x1f1"),menu:Ir("0x1f2")},{})}},{key:Ir("0x175"),value:function(){var e=document[Ir("0x100")](Ir("0x152")),t=null;try{t=e[Ir("0x155")]("webgl")||e.getContext(Ir("0x1f3"))}catch(e){}return t||(t=null),t}}]),ve}(Ir("0xb"),Ir("0xf"),Ir("0x11"),Ir("0x24"),Ir("0x32"),Ir("0x34"),Ir("0x3b"),Ir("0x58"),Ir("0x29"),Ir("0x59"),Ir("0x5e"),Ir("0x61"),Ir("0x65"),Ir("0x66"),Ir("0x67"),Ir("0x6c"),Ir("0x6e"),Ir("0x6f"),Ir("0x72"),Ir("0x73"),Ir("0x76"),Ir("0x77"),Ir("0x79"),Ir("0x7b"),Ir("0x7e"),Ir("0x80"),Ir("0x82"),Ir("0x84"),Ir("0x86"),Ir("0x87"),Ir("0x89"),Ir("0x8a"),Ir("0x8b"),Ir("0x8d"),Ir("0x8f"),Ir("0x27"),Ir("0xa9"),Ir("0xac"),Ir("0xaf"),Ir("0xb8"),Ir("0xb9"),Ir("0xbc"),Ir("0xc4"),Ir("0x11f"),Ir("0x123"),Ir("0x139"),Ir("0x13e"),Ir("0x141"),Ir("0x142"),Ir("0x143"),Ir("0x78"),Ir("0x7a"),Ir("0x145"),Ir("0x148"),Ir("0x8e"),Ir("0x14c"),Ir("0xab"),Ir("0xae"));function n(e){var t=arguments[Ir("0x3")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n[Ir("0x21a")]("#"+e):document.getElementById(e);if(i){var r=i[Ir("0x21b")][Ir("0x21c")];if(t&&i[Ir("0x21d")][Ir("0x117")](i),r)try{return JSON[Ir("0x21e")](r)}catch(e){return}}}function i(e){var t=document[Ir("0x21f")](e);return void 0!==t&&t[Ir("0x3")]>=1}var r=function(e,t,i,r,o,a){function s(){$e(this,s)}return tt(s,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e[Ir("0x3")]),n=new Uint8Array(t),i=0,r=e[Ir("0x3")];i>e/4)[Ir("0x9")](16)}))}},{key:Ir("0x240"),value:function(e){var t=(new TextEncoder)[Ir("0x22c")](e);return crypto[Ir("0x225")][Ir("0x241")](Ir("0x228"),t)[Ir("0x22")]((function(e){return Array[Ir("0x242")](new Uint8Array(e))[Ir("0xf")]((function(e){return("00"+e[Ir("0x9")](16))[Ir("0xa")](-2)}))[Ir("0xa3")]("")})).catch((function(){return""}))}}]),s}(),o=Ir("0x243"),a=Ir("0x244"),s=Ir("0x245"),c={getItem:function(e){var t=this.getCookieString()[Ir("0x40")](this[Ir("0x246")](e));return t?t[1][Ir("0xa4")](/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document[Ir("0x247")][Ir("0x18")](/\s*;\s*/),t=0;t1&&"bcookie"===n[0]){var i=n[n[Ir("0x3")]-1];return i.substring(2,i.length-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments[Ir("0x3")]>3&&void 0!==arguments[3]?arguments[3]:this[Ir("0x248")]();if(n){var r=[e+"="+t+Ir("0x249")+(arguments[Ir("0x3")]>4&&void 0!==arguments[4]?arguments[4]:"/")+Ir("0x24a")];Ir("0x235")==Ze(i)&&i[Ir("0x3")]>0&&r[Ir("0x10")](Ir("0x24b")+i),r.push(Ir("0x24c")+(n instanceof Date?n.toUTCString():n)),document[Ir("0x247")]=r[Ir("0xa3")]("; ")}},deleteItem:function(e){this[Ir("0x97")](e,"",new Date(0))},_cookieRegEx:function(e){return new RegExp(e+Ir("0x24d"))},getCookieString:function(){return document[Ir("0x247")]},getDomain:function(){return window[Ir("0x1f6")]?window[Ir("0x1f6")].hostname:""}},l={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:Ir("0x24e"),swfPath:Ir("0x24f"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:Ir("0x250"),telemetryCollectPath:"/platform-telemetry/li/apfcDf",extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:Ir("0x251"),ERROR:"err",EXCLUDED:Ir("0x252"),useRequestIdleCallBack:!0},u=function(e,u,d,h,f,p,m){function v(e,t,n){var r=this;if($e(this,v),void 0!==t&&void 0!==e&&Ir("0x253")===e[Ir("0x254")])Ir("0x1f")===document.readyState?this[Ir("0x255")](t,n):window[Ir("0x256")]("load",(function(){r[Ir("0x255")](t,n)}));else if(void 0!==e){var o=JSON.parse(JSON[Ir("0x257")](l));i(Ir("0x258"))||i(Ir("0x259"))||(o[Ir("0x25a")]=!1),this.initialize(o,e)}else{var a=JSON[Ir("0x21e")](JSON[Ir("0x257")](l));i("settings-iframe")||i("setting-headline")||(a[Ir("0x25a")]=!1),Ir("0x1f")===document[Ir("0x25b")]?this[Ir("0x25c")](a):window.addEventListener(Ir("0x25d"),(function(){r[Ir("0x25c")](a)}))}}return tt(v,[{key:Ir("0x25e"),value:function(e){return Ir("0x238")!=Ze(e.samplingTimeWindowInMillis)||e.samplingTimeWindowInMillis<=0||""===c[Ir("0x25f")](Ir("0x260"))}},{key:"checkConfigAndInitializeAllIntegration",value:function(e,t){this[Ir("0x261")](t),this[Ir("0x25e")](t)&&(this[Ir("0x262")](e,t),this[Ir("0x263")](e,t),this[Ir("0x264")](t))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){!0===t[Ir("0x265")]&&!0!==globalThis[Ir("0x266")]&&this[Ir("0x267")](l,e)}},{key:Ir("0x263"),value:function(e,t){!0===t[Ir("0x268")]&&!0!==globalThis[Ir("0x269")]&&this[Ir("0x26a")](e,t),!0===t[Ir("0x26b")]&&!0!==globalThis.dfpIntegrationCompleted&&this[Ir("0x26c")](e)}},{key:Ir("0x261"),value:function(e){var t=Ir("0x238")!=Ze(e[Ir("0x26d")])?0:e[Ir("0x26d")];""!==c[Ir("0x25f")](Ir("0x260"))&&Date[Ir("0x85")]()-Number(c[Ir("0x25f")](Ir("0x260")))>t&&c.deleteItem(Ir("0x260"))}},{key:Ir("0x264"),value:function(e){if(Ir("0x238")==Ze(e[Ir("0x26d")])&&e[Ir("0x26d")]>0){var t=Date[Ir("0x85")](),n=new Date;n[Ir("0x26e")](t+e[Ir("0x26d")]),c[Ir("0x97")](Ir("0x260"),t,n)}}},{key:"initialize",value:function(e,i){if(null!=i||null!=n(Ir("0x26f"))){this.placePonfBeacon(e,i);var o=this[Ir("0x272")],a=this.pageInstance,s=this[Ir("0x273")]();return(new t)[Ir("0x274")]((function(t,n){t[Ir("0x272")]=o,t[Ir("0x275")]=a,t[Ir("0x276")]=n,r[Ir("0x23c")](JSON.stringify(t),"apfcDfPK",Ir("0x277"),i,s)[Ir("0x22")]((function(t){globalThis[Ir("0x24e")]=t,!0===n&&function(e,t,n){var i=new XMLHttpRequest,r=n?"https://www.linkedin.com":Ir("0x278");r+=String(t),i.open(Ir("0x279"),r),i[Ir("0x27a")]("Content-Type",Ir("0x27b")),i[Ir("0x27c")](e)}(JSON[Ir("0x257")](t),e[Ir("0x27d")],s)}))}),e)}globalThis[Ir("0x270")]=this[Ir("0x271")]}},{key:Ir("0x267"),value:function(e,n){return(new t)[Ir("0x274")]((function(e,t){!0===t&&(r.encryptWithKeyIds(JSON[Ir("0x257")](e),Ir("0x26f"),Ir("0x277"))[Ir("0x22")]((function(e){n(o,JSON[Ir("0x257")](e))})),globalThis[Ir("0x266")]=!0)}),e)}},{key:Ir("0x26c"),value:function(e){var t=c.getBcookie(),n=this[Ir("0x273")]()?Ir("0x27e"):Ir("0x27f");try{if(RegExp("^[\\w-]*$").test(t)){var i="https://merchantpool1.linkedin.com/mdt.js?session_id="+t+Ir("0x280")+n,r=document[Ir("0x100")](Ir("0x281"));r[Ir("0x1ee")]("src",i),r[Ir("0x1ee")]("id",Ir("0x282")),r[Ir("0x256")](Ir("0x25d"),(function(){return window[Ir("0x283")][Ir("0x284")](document)})),document[Ir("0x285")]("head")[0][Ir("0x116")](r);var o={sessionId:t,instanceId:n};e(s,JSON[Ir("0x257")](o))}else{var a={error:Ir("0x286")+t};e(s,JSON.stringify(a))}}catch(t){var l={error:t};e(s,JSON[Ir("0x257")](l))}globalThis[Ir("0x287")]=!0}},{key:Ir("0x26a"),value:function(e,t){var n=t[Ir("0x288")],i=Date.now(),o=this.isProd()?Ir("0x289"):Ir("0x28a"),s=c.getBcookie(),l=Ir("0x28b")+i+Ir("0x28c")+encodeURIComponent(n)+Ir("0x28d")+o+Ir("0x28e");r[Ir("0x240")](s)[Ir("0x22")]((function(t){""!==(s=t)&&(l+=Ir("0x28f")+s);try{var r=document[Ir("0x100")](Ir("0x290"));r.setAttribute("id","humanThirdPartyIframe"),r[Ir("0x1ee")](Ir("0x291"),l),r[Ir("0x1ee")](Ir("0x292"),Ir("0x293")),r[Ir("0x1ee")](Ir("0x294"),Ir("0x295")),r[Ir("0x103")][Ir("0x1ce")]=Ir("0x296"),r[Ir("0x103")][Ir("0x6d")]=Ir("0x296"),r.style[Ir("0x297")]=Ir("0x10e"),r[Ir("0x103")][Ir("0x298")]=Ir("0x104"),r[Ir("0x103")].left=Ir("0x106"),document[Ir("0x7c")][Ir("0x116")](r);var c={app_id:o,ts:i,d_id:s,r_id:n,uc:"scraping"};e(a,JSON[Ir("0x257")](c))}catch(t){var u={error:t};e(a,JSON[Ir("0x257")](u))}})),globalThis.humanIntegrationCompleted=!0}}]),v}();u.prototype[Ir("0x271")]=function(e){globalThis.triggerApfc=null,new u(e)},u[Ir("0xc")][Ir("0x299")]=function(e,t){globalThis[Ir("0x29a")]=null,new u({globalIntegration:Ir("0x253")},e,t)},u[Ir("0xc")].isProd=function(){var e=location&&location.host;return e&&e[Ir("0x1a")](Ir("0x29b"))>-1&&!e.startsWith(Ir("0x29c"))},u[Ir("0xc")][Ir("0x29d")]=function(e){return e&&0===Object[Ir("0x1c")](e)[Ir("0x3")]},u[Ir("0xc")][Ir("0x29e")]=function(){var e=[];return Xe(document[Ir("0x21f")](Ir("0x29f"))).forEach((function(t){Xe(t[Ir("0x285")](Ir("0x2a0"))).forEach((function(t){var n=t[Ir("0x1c8")];if(n){var i=(new DOMParser).parseFromString(n,Ir("0x2a1"));i&&Xe(i[Ir("0x21f")]("bc"))[Ir("0xd")]((function(t){e[Ir("0x10")]({src:t[Ir("0x2a2")](Ir("0x291")),style:t[Ir("0x2a2")](Ir("0x103")),class:t[Ir("0x2a2")](Ir("0x2a3")),width:t[Ir("0x2a2")](Ir("0x6d")),height:t[Ir("0x2a2")](Ir("0x1ce"))})}))}}))})),0===e.length?null:e[0]},u[Ir("0xc")].placePonfBeacon=function(e,t){if(null!=e){var n,i,o="bc",a=Ir("0x2a4"),s="1",c="1",l=e[Ir("0x2a5")];if(this[Ir("0x272")]=null,this[Ir("0x275")]=null,null!==(n=this.getUrlFromNoscriptBeacon())){o=n[Ir("0x2a3")],a=n[Ir("0x103")],s=n[Ir("0x6d")],c=n[Ir("0x1ce")];var u=new URL(n[Ir("0x291")]);l=u.protocol+"//"+u[Ir("0xb2")]+u[Ir("0x2a6")],this[Ir("0x272")]=u[Ir("0x2a7")][Ir("0x2a8")](Ir("0x272")),this[Ir("0x275")]=u[Ir("0x2a7")][Ir("0x2a8")](Ir("0x275"))}else if(void 0!==(i=function(e){var t=arguments[Ir("0x3")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n.querySelector("#"+e):document[Ir("0x2a9")](e);if(i){var r=i.firstChild[Ir("0x21c")];if(t&&i[Ir("0x21d")][Ir("0x117")](i),r)try{var o=r;return"'"!==o[Ir("0x2aa")](0)&&'"'!==o[Ir("0x2aa")](0)||(o=o[Ir("0x2ab")](1,o[Ir("0x3")]-1)),JSON[Ir("0x21e")](o)}catch(e){return}}}(Ir("0x2ac"))))this[Ir("0x272")]=void 0===i[Ir("0x272")]?null:i[Ir("0x272")],this.pageInstance=i[Ir("0x275")];else{if(void 0===t)return;this[Ir("0x275")]=t[Ir("0x275")]}this[Ir("0x273")]()||(l=l[Ir("0xa4")](/\.linkedin\.com/,Ir("0x2ad"))),null===this[Ir("0x272")]&&(this[Ir("0x272")]=r.uuidv4());var d=l+"?"+new URLSearchParams({reqid:this[Ir("0x272")],pageInstance:this[Ir("0x275")],js:Ir("0x253")}).toString(),h=document[Ir("0x21f")](Ir("0x29f"))[0];null==h&&((h=document[Ir("0x100")](Ir("0x101")))[Ir("0x1ee")]("id",this[Ir("0x272")]),document[Ir("0x7c")][Ir("0x116")](h));var f=document.createElement(Ir("0x2ae"));f.src=d,f[Ir("0x103")]=a,f[Ir("0x1ca")]=o,f[Ir("0x6d")]=s,f[Ir("0x1ce")]=c,h.appendChild(f)}},Ir("0x2af")!=("undefined"==typeof globalThis?"undefined":Ze(globalThis))&&Ir("0x2af")!=("undefined"==typeof document?"undefined":Ze(document))&&"undefined"!=typeof window&&(globalThis[Ir("0x29a")]=u[Ir("0xc")][Ir("0x299")],new u)}();var Ar=function(){function e(){$e(this,e)}return tt(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEvent&&globalThis.triggerDnaApfcEvent(t,e)}catch(e){}}}]),e}(),Or=function(){function e(t,n,i,r,o,a,s,c,l,u,d){$e(this,e),nt(this,"hostApis",void 0),nt(this,"statics",void 0),nt(this,"options",void 0),nt(this,"allowTimingOrigin",void 0),nt(this,"fireCustomMeasureEvent",void 0),nt(this,"fireResourceLoadEvent",void 0),nt(this,"isTracerEnabled",void 0),nt(this,"responseRleCache",void 0),nt(this,"fireApfcEvent",void 0),nt(this,"abuseDeviceSignalCollectionConfig",void 0),nt(this,"trackingEndpoint",void 0),nt(this,"collectResourceTimings",void 0),nt(this,"collectCdnData",void 0),nt(this,"perfObserver",void 0),nt(this,"renderTimings",new Map),nt(this,"urlToTreeId",new Map),nt(this,"cdnDataProvider",void 0),nt(this,"observables",new Ji),nt(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireCustomMeasureEvent=o,this.fireResourceLoadEvent=a,this.isTracerEnabled=s,this.responseRleCache=c,this.fireApfcEvent=l,this.abuseDeviceSignalCollectionConfig=u,this.trackingEndpoint=d,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new kr(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return tt(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(gr=gr||t.createElement("a")).href=e,gr.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:Er(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e);if(i&&(i.renderEnd=i.renderEnd||Er(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void ni("ViewLoadEvent",Yi)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,i=e.renderEnd,r=void 0===i?-1:i,o=e.renderStart,a=void 0===o?-1:o,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:r}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):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:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,i=Object.create(null);i.pageKey=n,i.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",i.networkInformationMetrics=this.snapshot.networkInformationMetrics;var r=this.statics,o=r.webUIFramework,a=r.timeSource,s=r.isSinglePageApp,c=r.appRenderMode,l=r.isAppRenderFailed,u=r.isFromServiceWorker,d=r.treeId;return i.treeId=d,i.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},i}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null);t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null);var i=e.isInitial,r=e.immediate,o=this.hostApis.assign;if(i){var a=Lr(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,l=a.navigationType,u=a.workerStart;s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=l),n.workerStart=null!=u?u:0,Ki.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!r){var d=this.collectAsynchronousData();if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var h=this.collectAsynchronousData(!0);return o(t.cdnData,h.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,i=e.transferSize,r=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,l={};l.resourceKey=n,l.isNetwork=!!i&&0!==i,l.loadType=r||"unknown",l.timeOrigin=t;var u=[];Object.keys(zi).forEach((function(t){var n;t in Ui&&void 0!==e[t]&&u.push({resourceProgressType:zi[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u;var d={},h=Vi[o];d.nextHopProtocol=null!=h?h:"UNKNOWN",d.transferSize=i,d.encodedBodySize=a,d.decodedBodySize=s,l.resourceNetworkContext=d,l.requestStart=c;try{var f,p,m=new URL(n),v=m.pathname+m.search+m.hash;return null===(f=this.responseRleCache)||void 0===f||f.offerResourceLoadEvent(v,l),null===(p=this.responseRleCache)||void 0===p?void 0:p.flushCacheByUrl(v)}catch(e){var g,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n);return e instanceof Error?(e.message="".concat(y," ").concat(e.message),ni("ResourceLoadEvent",e)):ni("ResourceLoadEvent",y),null===(g=this.responseRleCache)||void 0===g?void 0:g.flushCacheByUrl()}}},{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=xr(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,Lr(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?Zn(r,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(){try{var e=this.abuseDeviceSignalCollectionConfig||{},t=e.isDnaIntegrationLixEnabled,n=e.isHumanIntegrationLixEnabled,i=e.isDfpIntegrationLixEnabled,r=e.samplingTimeWindowInMillis;if(n||i||t){var o,a,s={treeId:null!==(o=null===(a=this.statics.treeId)||void 0===a?void 0:a.toString())&&void 0!==o?o:"",humanIntegrationEnabled:n,dfpIntegrationEnabled:i,dnaIntegrationEnabled:t,samplingTimeWindowInMillis:r};Ar.collectFeatures(s,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this;this.perfObserver=new e((function(e){var i=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization;i&&n.triggerDeviceSignalCollection(),e.getEntries().forEach((function(e){var r=e.entryType,o=e.name,a=e.startTime,s=e.duration;"resource"===r?n.processSingleResourceTiming(e,t):"mark"===r?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"MARK",measureProgressStates:[{measureProgressName:o,timestamp:a}]}),"mark_meaningful_paint_end"!==o||i||n.triggerDeviceSignalCollection()):"measure"===r?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:o,timestamp:a,duration:s}]})):"longtask"===r&&(n.observables.longTasks.push({duration:s,name:o,startTime:a}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:o,timestamp:a,duration:s}]}))}))})),this.observables.userTimingEntries=xr(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent);var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{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(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this;if(this.collectResourceTimings){this.observables.resourceTimingEntries.push(e);var i=-1!==e.name.indexOf(this.trackingEndpointPattern);if(this.isTracerEnabled&&!i&&!function(e){for(var t=0,n=yr;t=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:_r(this.renderTimings),networkInformationMetrics:Rr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function Rr(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 Lr(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}var Nr=function(){function e(t,n,i){$e(this,e),nt(this,"featureName",void 0),nt(this,"trackingCore",void 0),nt(this,"rumConfig",void 0),nt(this,"observing",!1),nt(this,"basePageTreeId",void 0),nt(this,"startPageInstance",void 0),nt(this,"startMemory",void 0),nt(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return tt(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)||Yn(ot),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:br(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}();nt(Nr,"checkpoints",[1,3,10,30,90,180,300]);var Pr,Dr,Mr,Ur,Br,Fr=tt((function e(t,n,i){$e(this,e),nt(this,"webUIFramework",void 0),nt(this,"timeSource",void 0),nt(this,"isSinglePageApp",void 0),nt(this,"appRenderMode",void 0),nt(this,"isAppRenderFailed",void 0),nt(this,"pageLoadMode","INITIAL"),nt(this,"isSSL",void 0),nt(this,"treeId",void 0),nt(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})),qr=function(){function e(t){$e(this,e),nt(this,"isPEMTracerEnabled",void 0),nt(this,"responseContextMap",new Map),nt(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return tt(e,[{key:"offerResponseContext",value:function(e,t){if(this.isPEMTracerEnabled)if(this.responseContextMap.has(e)){var n;null===(n=this.responseContextMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new ri((function(e,t){return e.requestTime0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[];if(e){var n,i=Ye(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t=[].concat(Xe(t),Xe(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=Ye(o);try{for(s.s();!(a=s.n()).done;){var c,l=a.value,u=null===(c=this.resourceLoadEventsMap.get(l))||void 0===c?void 0:c.heapClear();u&&(t=[].concat(Xe(t),Xe(u.map((function(e){e.requestStart;var t=ze(e,je);return ii(t)})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[];if(!e)return n;if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){e.requestStart;var t=ze(e,Ge);return ii(t)})))||n;if(this.canFlush(e)){for(var i=this.responseContextMap.get(e);i&&i.heapsize()>0;){var r=this.mergeAndConsume(e);r&&n.push(r)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),Hr=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)}},jr=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){}},Gr=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)},Wr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Kr=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)))}},zr=-1,Vr=function(){return"hidden"===document.visibilityState?0:1/0},Yr=function(){Gr((function(e){var t=e.timeStamp;zr=t}),!0)},Xr=function(){return zr<0&&(zr=Vr(),Yr(),Wr((function(){setTimeout((function(){zr=Vr(),Yr()}),0)}))),{get firstHiddenTime(){return zr}}},Qr=!1,Jr=-1,Zr=function(e,t){Qr||(function(e,t){var n,i=Xr(),r=Hr("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime-1&&e(t)},r=Hr("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>r.value&&(r.value=o,r.entries=a,n())}},c=jr("layout-shift",s);c&&(n=Kr(i,r,t),Gr((function(){c.takeRecords().map(s),n(!0)})),Wr((function(){o=0,Jr=-1,r=Hr("CLS",0),n=Kr(i,r,t)})))},$r={passive:!0,capture:!0},eo=new Date,to=function(e,t){Pr||(Pr=t,Dr=e,Mr=new Date,ro(removeEventListener),no())},no=function(){if(Dr>=0&&Dr1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){to(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,$r),removeEventListener("pointercancel",i,$r)};addEventListener("pointerup",n,$r),addEventListener("pointercancel",i,$r)}(t,e):to(t,e)}},ro=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,io,$r)}))},oo=function(e,t){var n,i=Xr(),r=Hr("FID"),o=function(e){e.startTime0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),fo=!1,po=new Set,mo={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function vo(){var e=!0===window.__test__resetWebVitalsState;if(!fo||e){e&&(po=new Set),co.forEach(go);var t=Symbol();Br=t,[so,oo,Zr].forEach((function(e){return e(yo.bind(null,t),!0)})),[so,oo,Zr].forEach((function(e){return e(Eo.bind(null,t))})),fo=!0}}function go(e){uo[e]={name:e,value:Gi,updateHistory:[]};var t=mo[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(uo[e].value=Wi)}function yo(e,t){if(e===Br){var n=uo[t.name],i=br();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),po.forEach((function(e){return e(t,i,!1)}))}}function Eo(e,t){e===Br&&po.forEach((function(e){return e(t,br(),!0)}))}var bo,wo=function(){function e(t,n){var i=this;$e(this,e),nt(this,"basePageTreeId",void 0),nt(this,"basePageKey",void 0),nt(this,"observing",!1),nt(this,"appContextMap",new Map),nt(this,"rumConfig",void 0),nt(this,"trackingCore",void 0),nt(this,"onMetricUpdate",(function(e,t,n){var r;i.observing&&(n?i.reportMetric(e.name):i.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=i.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return tt(e,[{key:"startObserving",value:function(){var e,t,n=this;vo(),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",co.forEach((function(e){var t;(null===(t=uo[e])||void 0===t?void 0:t.value)===Wi&&n.reportMetric(e)})),t=this.onMetricUpdate,po.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,po.delete(e)}},{key:"reportMetric",value:function(e){var t=uo[e],n={name:lo[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=uo[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:ho},a=null;switch(n.name){case"LCP":a=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],a={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:wr(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(a.url=o.url),a}(n,i);break;case"FID":a=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:wr(o.target)}}(n,i);break;case"CLS":a=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 a,s=t.get(r.time);return o&&s?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":wr(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(a){var s={};return r(s,o,a),s}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}(),xo="x-li-uuid",_o="x-li-pop",To="x-msedge-ref",So="x-li-fabric",ko="x-li-pem-resp-meta",Co="content-type",Io="x-cache",Ao=function(){function e(t){$e(this,e),nt(this,"_callTreeId",void 0),nt(this,"_fabric",void 0),nt(this,"_msEdgeRef",void 0),nt(this,"_pointOfPresenceId",void 0),nt(this,"_responseMetadata",void 0),nt(this,"_contentType",void 0),nt(this,"_cdnCacheMetadata",void 0),nt(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(xo)||null,this._pointOfPresenceId=n.get(_o)||null,this._msEdgeRef=n.get(To)||null,this._fabric=n.get(So)||null,this._responseMetadata=n.get(ko)||null,this._contentType=n.get(Co)||null,this._cdnCacheMetadata=n.get(Io)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=Ye(e.split(","));try{for(n.s();!(t=n.n()).done;){var i=t.value.split("=",2);if(2===i.length&&"availability"===i[0]){var r=parseFloat(i[1]);if(r>=0&&r<=1)return r}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return tt(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}();!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(bo||(bo={}));function Oo(e,t,n,i,r){var o=new Ao(i),a=function(e,t,n){if(t){if(429===t||999===t)return bo.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return bo.BLOCKED_BY_CLIENT_PROXY;if((i=t)>=400&&i<500)return bo.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return bo.SERVER_ERROR;if(e.pointOfPresenceId)return bo.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return bo.TRAFFIC_AFD_TO_LI_POP_ERROR}return bo.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return bo.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var i;if(n instanceof Error){if("AbortError"===n.name)return bo.CLIENT_ABORTED;if(n instanceof TypeError&&(n.message.indexOf("Network request failed")>=0||n.message.indexOf("NetworkError when attempting to fetch resource")>=0||n.message.indexOf("Failed to fetch")>=0))return bo.NETWORK_ERROR}else{if("timeout"===n.statusText)return bo.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return bo.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return bo.NETWORK_ERROR}return bo.UNCLASSIFIED}(o,n,r),s=null;return a&&(s={errorType:a},a===bo.UNCLASSIFIED&&r&&(s.errorMessage=r.message,function(e,t,n){var i=["tracer-unclassified-error"];null==n||n.forEach((function(e){return i.push("target-view-name-".concat(e))})),ni("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),i)}(r,i,t))),{cdnCache:o.cdnCacheMetadata||void 0,contentType:o.contentType||void 0,fabric:o.fabric||void 0,msEdgeReference:o.microsoftEdgeReference||void 0,pointOfPresenceId:o.pointOfPresenceId||void 0,resourceTreeId:o.callTreeId?o.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}!function(){function e(t,n,i){var r,o,a,s,c,l,u,d,h,f,p,m,v,g,y,E,b,w,x,_,T,S=this;$e(this,e),nt(this,"core",void 0),nt(this,"config",void 0),nt(this,"collector",void 0),nt(this,"boomerangStart",-1),nt(this,"webVitalsObserver",void 0),nt(this,"appMemoryObserver",void 0),nt(this,"pageMemoryObserver",void 0),nt(this,"liveTokens",new Set),nt(this,"stateWM",new WeakMap),nt(this,"activeToken",void 0),nt(this,"isInitial",void 0),nt(this,"shouldTrackCustomMeasureEvent",void 0),nt(this,"pageLoadId",void 0),nt(this,"initialResourcesEvents",[]),nt(this,"initialCustomMeasureEvents",[]),nt(this,"responseRleCache",void 0),nt(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),nt(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),nt(this,"isTracerEnabled",void 0),nt(this,"isPEMTracerEnabled",void 0),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({},ji),n);var k="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),C={isDnaIntegrationLixEnabled:"enabled"===(null===(a=(s=i.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.fireApfcEvent"))||"enabled"===(null===(c=i.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.webviewDnaMemberLixTreatment)||"enabled"===(null===(l=i.host.abuseDeviceSignalCollectionConfig)||void 0===l?void 0:l.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:"enabled"===(null===(u=(d=i.host).__getLixTreatment)||void 0===u?void 0:u.call(d,"pemberly.tracking.human.integration"))||"enabled"===(null===(h=i.host.abuseDeviceSignalCollectionConfig)||void 0===h?void 0:h.webviewHumanMemberLixTreatment)||"enabled"===(null===(f=i.host.abuseDeviceSignalCollectionConfig)||void 0===f?void 0:f.humanMemberLixTreatment),isDfpIntegrationLixEnabled:"enabled"===(null===(p=(m=i.host).__getLixTreatment)||void 0===p?void 0:p.call(m,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(v=i.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.webviewDfpMemberLixTreatment)||"enabled"===(null===(g=i.host.abuseDeviceSignalCollectionConfig)||void 0===g?void 0:g.dfpMemberLixTreatment),disablePerfMarkerOptimization:i.host.abuseDeviceSignalCollectionConfig&&i.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(y=(E=i.host).__getLixTreatment)||void 0===y?void 0:y.call(E,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(b=i.host.abuseDeviceSignalCollectionConfig)||void 0===b?void 0:b.samplingTimeWindowInMillis},I=null===(w=(x=i.host).__getLixTreatment)||void 0===w?void 0:w.call(x,"pemberly.tracking.generic-tracers"),A=!!I&&Qi.test(I);this.isTracerEnabled=A||this.config["enable-tracking-3"];var O="enabled"===(null===(_=(T=i.host).__getLixTreatment)||void 0===_?void 0:_.call(T,"pemberly.tracking.pem-tracers"));this.isPEMTracerEnabled=O||this.config["enable-pem-tracking-3"],this.responseRleCache=new qr(this.isPEMTracerEnabled),this.collector=new Or(i.host.api,new Fr(t,this.config,i.host),this.config,k,(function(e){return S.fireCustomMeasureEvent(e)}),(function(e){return S.fireResourceLoadEvent(e,S.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,C,i.host.endpoint),this.collector.startObserving(),Bn.before(Ln,this.beforeHideHandlerBound)}tt(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){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,i=this.collector.recordRenderEnd(e,this.isTracerEnabled,n);i&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},i)}},{key:"provisionNetworkResponse",value:function(e,t){var n,i,r=this;null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t);var o=null===(i=this.responseRleCache)||void 0===i?void 0:i.flushCacheByUrl(e);null==o||o.forEach((function(e){r.fireResourceLoadEvent(e,r.activeToken)}))}},{key:"start",value:function(e){var t,n;!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,r=Object.create(null),o="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=r,this.liveTokens.add(r),this.isTracerEnabled?(this.stateWM.set(r,{isInitial:this.isInitial,startTime:Er(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:Er(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Nr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Nr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new wo(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 a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=Er(this.core.host.api.performance,s);a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o},this.isTracerEnabled&&o&&(a.pageKey=o);var l=this.activeToken,u=this.isTracerEnabled?5e3:this.config["beacon-timeout"];a.fireRumEventTimeout=setTimeout((function(){if(i.isTracerEnabled){i.flushResourceLoadEvents(l);var e=i.collector.collectPageLoadEndData({isInitial:a.isInitial});"then"in e?e.then((function(e){i.firePageLoadEndEvent(e,l)})):i.firePageLoadEndEvent(e,l)}var t=i.collector.collect({isInitial:a.isInitial});"then"in t?t.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(t,l)}),u),this.activeToken=void 0}else ni("rum-end",Xi)}},{key:"onDataResponse",value:function(e,t,n,i,r,o){var a=Oo(t,n,i,r,o);this.provisionNetworkResponse(e,a)}},{key:"onOopsPage",value:function(e,t){ni("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0;var t=this.stateWM.get(e);this.pageLoadId=zn(),t.pageLoadId=this.pageLoadId;var n=this.collector.collectPageLoadStartData({isInitial:t.isInitial,rumKey:t.pageKey});n.pageLoadId=t.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},n)}else ni("PageLoadStartEvent",Xi)}},{key:"destroy",value:function(){var e,t,n;Bn.offBefore(Ln,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.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken;return n&&(t=this.stateWM.get(n).pageLoadId),t}},{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){if(e.isTracerEnabled){var i=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0});e.firePageLoadEndEvent(i,t),e.flushResourceLoadEvents(t)}var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,i=this,r=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache();null==r||r.map((function(t){i.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",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,a=i.pageLoadId,s=i.pageKey;if(o){var c=o.renderCompleteTime,l=o.isImpactedByHiddenWindow;if(a?e.pageLoadId=a:ni("PageLoadEndEvent",Yi),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=l),e.navigationTiming){var u,d=null===(u=e.navigationTiming)||void 0===u?void 0:u.navigationStart,h=this.boomerangStart=d||this.boomerangStart,f=d||r,p=c-f;e.navigationTiming.boomerangStart=h,e.navigationTiming.timeDone=p,e.navigationTiming.navigationStart=f,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this;if(this.isTracerEnabled&&this.shouldTrackCustomMeasureEvent){var n,i=null!==(n=this.getPageLoadIdFromState())&&void 0!==n?n:this.pageLoadId;if(!i)return void this.initialCustomMeasureEvents.push(e);this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=i,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=i,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this;if(this.isTracerEnabled){var i,r=null!==(i=this.getPageLoadIdFromState(t))&&void 0!==i?i:this.pageLoadId;if(!r)return void this.initialResourcesEvents.push(e);this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=r,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=r,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{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 a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=a-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:s,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:a},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,i=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),r={issueTime:0,browserId:""};try{r=function(e){var t,n={issueTime:0,browserId:""},i=Ye(e);try{for(i.s();!(t=i.n()).done;){var r=t.value.split("=");if(r.length>1&&"bscookie"===r[0]){var o=decodeURIComponent(r[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50);return n.browserId=c,n.issueTime=s,n}}}catch(e){i.e(e)}finally{i.f()}return n}(i)}catch(e){}var o={type:e,bsCookieInfo:r,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}}])}();var Ro,Lo="undefined"!=typeof window&&"undefined"!=typeof performance,No="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Po(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",Do(n,t))}function Do(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=T(document),i=k(document),r=Be();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 Mo(e,t){const n=k(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function Uo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Bo(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function Bo(e){return"string"==typeof e&&"=="===e.slice(-2)}function Fo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=ke({},e),n=f(window.location.href,"originalReferer")||f(window.location.href,"original_referer");return n&&(t.requestHeader=ke(ke({},t.requestHeader),{},{referer:n})),qo(t)}function qo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=ke({},e),n=Be();return n&&(t.requestHeader=ke(ke({},t.requestHeader),{},{theme:n.toUpperCase()})),t}!function(){function e(t,n){$e(this,e),nt(this,"trackingCore",void 0),nt(this,"endPageInstance",void 0),nt(this,"startPageInstance",void 0),nt(this,"featureIdentifier",void 0),nt(this,"marks",[]),nt(this,"spans",[]),nt(this,"spanStarts",new Map),nt(this,"started",!1),nt(this,"ended",!1),nt(this,"featureKey",void 0),nt(this,"productName",void 0),nt(this,"flushOnEnd",void 0),nt(this,"basePageTreeId",void 0),nt(this,"debounceFlush",void 0),nt(this,"disableAutoFlush",void 0),nt(this,"isCanceled",!1),nt(this,"isClosed",!1),this.trackingCore=t;var i=n.featureKey,r=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd;this.featureKey=i,this.productName=r,this.flushOnEnd=a;var s=r?"::".concat(r):"";this.featureIdentifier="".concat(i).concat(s);var c=void 0!==o?o:3e3;c>0&&(this.debounceFlush=function(e,t,n){var i,r,o;void 0===t&&(t=50),void 0===n&&(n={});var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[];function d(){if(void 0!==c){var e=Date.now()-l;if(e+t>=c)return c-e}return t}var h=function(){var t=[].slice.call(arguments),n=this;return new Promise((function(i,r){var c=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t);s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var h=e.apply(n,t);return s&&s(h),i(h)}u.push({resolve:i,reject:r})}))};return h.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},h}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}tt(e,[{key:"start",value:function(e){var t;if(Lo){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"));this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t;if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));if(Lo){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"));this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){Lo&&(this.marks.push({name:e,startTime:br()}),No&&(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))),this.handleNewData())}},{key:"spanStart",value:function(e){Lo&&(this.spanStarts.set(e,br()),No&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Lo&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e;this.spans.push({name:i,startTime:n,duration:br()-n}),No&&(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"))),this.handleNewData()}}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return br()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}};this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||Yn(ot),i={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans};return e.productName&&(i.productName=e.productName),e.basePageTreeId&&(i.basePageTreeId=e.basePageTreeId),i}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(Lo){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'))}}}])}(),function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(Ro||(Ro={}));const{ENTER:Ho,ESCAPE:jo}=O;class Go{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:a,pageKey:s}=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=s,this._shouldHideModal=n,this._shouldMoveToTopContainer=r;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=a,i&&this._outletEls.forEach(e=>{e.addEventListener("click",e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.getAttribute("data-no-cool-off");this.open({noCoolOff:n})})}),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new V(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];return t.length||console.warn("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e)),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=L(e.key),n=t===Ho&&document.activeElement===this._exitButtonEl;(t===jo||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e,noCoolOff:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t||!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","false"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),y(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{Po(e,"ajax",this._pageKey||"".concat(this._el.id))}):(y(this._wrapperEl,"afterOpen"),Promise.resolve());y(this._el,"didNotOpen")}async close(){var e,t,n,i,r;this._events.onBeforeClose&&await(null===(n=this._events)||void 0===n||null===(i=n.onBeforeClose)||void 0===i?void 0:i.call(n,this._wrapperEl));(this._overlayEl.classList.remove("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","true"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),y(this._el,"close"),null!==(e=this._focusElement)&&void 0!==e&&null!==(t=e.classList)&&void 0!==t&&t.contains("ellipsis-menu__trigger"))?(null===(r=this._focusElement)||void 0===r?void 0:r.focus())||this._previouslyFocusedEl.focus():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("overflow-hidden")}removeNoScroll(){document.body.classList.remove("overflow-hidden")}}class Wo{constructor(e){if(!e)throw Error("An element must be provided to SidePanel");this.el=e,this.modalEl=this.el.querySelector(".modal"),this.modal=new Go(this.modalEl,{events:this._events()}),this._onAfterOpen()}_onAfterOpen(){this.modalEl.addEventListener("afterOpen",e=>{e.target.classList.remove("translate-x-full")})}_events(){return{onBeforeClose:e=>new Promise(t=>{e.classList.add("translate-x-full"),setTimeout(()=>{t()},330)})}}}class Ko{constructor(){const e=document.querySelector(".member-nav-menu");if(!e)throw Error("The member header should have a dropdown element");const t=document.querySelector('[data-id="member-nav-header__link-item-me"]');this.collapsibleDropdown=new $(e,{dropdownTriggerEl:t}),this.searchEl=document.querySelector('[data-id="member-nav-header__search"]'),this.searchEl&&(this.searchEl.addEventListener("focusin",()=>this.searchEl.classList.add("member-nav-header__search--focused")),this.searchEl.addEventListener("focusout",()=>this.searchEl.classList.remove("member-nav-header__search--focused"))),this.sidePanelEl=document.querySelector(".sidepanel-menu"),this.sidePanelEl&&(this.sidePanel=new Wo(this.sidePanelEl))}}function zo(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 Vo=/ /g,Yo=/[\s\u0000<>"]|%00/,Xo=/\\/,Qo=/([.]|%2e){2}/i;let Jo=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 Zo(e){let t;if("string"!=typeof e)return zo("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(zo("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Vo,"+")),!Jo.test(t))return zo("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(Yo.test(t))return zo("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?(zo("jSecure Error: malformed url path detected: "+i),"invalid://"):Xo.test(i)||Qo.test(i)||Qo.test(n)?(zo("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const $o={redirect(e){window&&(window.location.href=e)}};function ea(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function ta(e){return e.scrollHeight>e.offsetHeight}function na(e,t){const n=u(e);for(let e=0;e{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function sa(e){na(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function ca(e){if(!e)return"";return e.split("").map(e=>String.fromCharCode(e.charCodeAt(0)+17)).join("")}function la(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function ua(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function da(){return document.documentElement.classList.contains("safari")}function ha(){return document.documentElement.classList.contains("ios")}const fa={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function pa(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function ma(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=_(document),r=pa();return window.tracking.then(o=>(t=o.generateTrackingId(),ee(e,ke(ke({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[fa.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 va(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&&ta(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 ga(e,t){return e.replace(new RegExp("".concat(t,"=[^&]*&?")),"").replace(new RegExp("[&?]$"),"")}function ya(){if(!f(window.location.href,"pwa"))return;const e=ga(window.location.href,"pwa");window.history.replaceState({},document.title,e)}function Ea(){let e=!1;try{if(window.matchMedia("(display-mode: standalone)").matches){null===sessionStorage.getItem("launchedFromHomeScreen")&&(e=!0,sessionStorage.setItem("launchedFromHomeScreen",""))}}catch(e){}return e}function ba(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 wa(e){e&&(document.cookie="".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;"))}function xa(e,t,n,i){let r="";if(n){const e=new Date;e.setTime(e.getTime()+n),r="expires=".concat(e.toUTCString())}g(e)&&wa(e);const o=i?"domain=.".concat(i):"",a="".concat(e,"=").concat(t,";").concat(r,";path=/;").concat(o),s="".concat(a,";").concat("secure;samesite=none");document.cookie=s,g(e)||(document.cookie=a)}function _a(){const e=m(window.location.href,"pwa","noCache",!0);window.location.replace(e)}function Ta(){let e=!1;try{(null===sessionStorage.getItem("previousPage")||1===window.history.length)&&(e=!0)}catch(e){}return e}function Sa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const n=t.querySelector('meta[name="'.concat(e,'"]'));if(n)return n.getAttribute("content")}function ka(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 Ca=Object.freeze({__proto__:null,PREVIOUS_PAGE_KEY:"previousPage",NO_CACHE_PARAM_KEY:"pwa",NO_CACHE_PARAM_VALUE:"noCache",LAUNCHED_FROM_HOME_SCREEN:"launchedFromHomeScreen",isElementHidden:ia,hideElement:ra,showElement:oa,hideElements:aa,showElements:sa,conceal:ca,getCsrfToken:function(){let e=g("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:la,enableButton:ua,isSafari:da,isIOS:ha,isMobile:function(){return document.documentElement.classList.contains("android")||ha()},getCurrentPage:function(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""},HEADERS:fa,getEffectiveConnectionType:pa,requestJSONWithDefaultHeaders:ma,initExpandButton:va,removeQueryParameter:ga,removeNoCacheParam:ya,isLaunchedFromHomeScreen:Ea,removeHashFromUrl:ba,deleteCookie:wa,setCookie:xa,hardReloadPage:_a,isFirstPageOfSession:Ta,getMetaTagContent:Sa,setMetaTagContent:ka,convertIdToUrn:function(e,t){return Boolean(e)&&Boolean(t)&&"urn:li:".concat(t,":").concat(e)}});const Ia={};function Aa(e){const t=document.getElementById(e);if(!t&&void 0!==Ia[e])return Ia[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Ia[e]=null,Ia[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):(Ia[e]=n,t.parentNode.removeChild(t),Ia[e])}const Oa="prev",Ra="next";class La{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._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.querySelector(".previous-slide-list__a11y-notification"),this._noMoreNextContentAlert=this._el.querySelector(".next-slide-list__a11y-notification"),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__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?(oa(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(ra(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],a=[];let s=0;for(let t=0;t=0)l.add(this._items[t]);else if(0===h&&0===n||0===s)s=f,l.add(this._items[t]);else{if(f>c+e){if(h>=i){o.push(new Set(this._items.slice(t)));break}r.push((this._isRtl?s:h)-n),o.push(new Set([this._items[t]]))}else l.add(this._items[t]);s=f}}return r.push(i),a.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(U).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=r(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Oa?this.prev():n===Ra&&this.next())}_fireScrollEvent(){y(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.querySelector(".current-slide").textContent="");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.querySelector(".current-slide").textContent=Aa("i18n_slide_list_current_slide_aria_label")}}_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._setNoMoreContentAlert(this._noMorePreviousContentAlert,e)),this._currentPage!==this._pageTranslates.length-1&&0!==this._pageTranslates.length||(this._nextButton.disabled=!0,this._setNoMoreContentAlert(this._noMoreNextContentAlert,e))}this._updateIndicatorButtons()}_setNoMoreContentAlert(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&e&&(e.classList.remove("hidden"),setTimeout(()=>{e.classList.add("hidden")},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)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(){y(this._el,"pagechange",{pageNumber:this._currentPage})}}var Na=Object.hasOwnProperty,Pa=Object.setPrototypeOf,Da=Object.isFrozen,Ma=Object.getPrototypeOf,Ua=Object.getOwnPropertyDescriptor,Ba=Object.freeze,Fa=Object.seal,qa=Object.create,Ha="undefined"!=typeof Reflect&&Reflect,ja=Ha.apply,Ga=Ha.construct;ja||(ja=function(e,t,n){return e.apply(t,n)}),Ba||(Ba=function(e){return e}),Fa||(Fa=function(e){return e}),Ga||(Ga=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);t1?n-1:0),r=1;r/gm),ys=Fa(/^data-[\-\w.\u00B7-\uFFFF]/),Es=Fa(/^aria-[\-\w]+$/),bs=Fa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ws=Fa(/^(?:\w+script|data):/i),xs=Fa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_s="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 Ts(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:Ss(),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,a=t.HTMLTemplateElement,s=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,f=t.DOMParser,p=t.trustedTypes,m=c.prototype,v=rs(m,"cloneNode"),g=rs(m,"nextSibling"),y=rs(m,"childNodes"),E=rs(m,"parentNode");if("function"==typeof a){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=ks(p,i),x=w?w.createHTML(""):"",_=r,T=_.implementation,S=_.createNodeIterator,k=_.createDocumentFragment,C=_.getElementsByTagName,I=i.importNode,A={};try{A=is(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&T&&void 0!==T.createHTMLDocument&&9!==A;var R=vs,L=gs,N=ys,P=Es,D=ws,M=xs,U=bs,B=null,F=ns({},[].concat(Ts(os),Ts(as),Ts(ss),Ts(ls),Ts(ds))),q=null,H=ns({},[].concat(Ts(hs),Ts(fs),Ts(ps),Ts(ms))),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,W=null,K=!0,z=!0,V=!1,Y=!1,X=!1,Q=!1,J=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,ae=ns({},["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"]),se=null,ce=ns({},["audio","video","img","source","image","track"]),le=null,ue=ns({},["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",fe="http://www.w3.org/1999/xhtml",pe=fe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",Ee=void 0,be=null,we=r.createElement("form"),xe=function(e){return e instanceof RegExp||e instanceof Function},_e=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":_s(e))||(e={}),e=is(e),B="ALLOWED_TAGS"in e?ns({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?ns({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?ns(is(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?ns(is(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?ns({},e.FORBID_CONTENTS):ae,G="FORBID_TAGS"in e?ns({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?ns({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,z=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,pe=e.NAMESPACE||fe,e.CUSTOM_ELEMENT_HANDLING&&xe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&xe(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),ve=ve=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ve?function(e){return e}:Ya,Y&&(z=!1),$&&(Z=!0),re&&(B=ns({},[].concat(Ts(ds))),q=[],!0===re.html&&(ns(B,os),ns(q,hs)),!0===re.svg&&(ns(B,as),ns(q,fs),ns(q,ms)),!0===re.svgFilters&&(ns(B,ss),ns(q,fs),ns(q,ms)),!0===re.mathMl&&(ns(B,ls),ns(q,ps),ns(q,ms))),e.ADD_TAGS&&(B===F&&(B=is(B)),ns(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=is(q)),ns(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ns(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=is(oe)),ns(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),X&&ns(B,["html","head","body"]),B.table&&(ns(B,["tbody"]),delete G.tbody),Ba&&Ba(e),be=e)},Te=ns({},["mi","mo","mn","ms","mtext"]),Se=ns({},["foreignobject","desc","title","annotation-xml"]),ke=ns({},as);ns(ke,ss),ns(ke,cs);var Ce=ns({},ls);ns(Ce,us);var Ie=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:fe,tagName:"template"});var n=Ya(e.tagName),i=Ya(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===fe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Te[i]):Boolean(ke[n]);if(e.namespaceURI===de)return t.namespaceURI===fe?"math"===n:t.namespaceURI===he?"math"===n&&Se[i]:Boolean(Ce[n]);if(e.namespaceURI===fe){if(t.namespaceURI===he&&!Se[i])return!1;if(t.namespaceURI===de&&!Te[i])return!1;var r=ns({},["title","style","font","a","script"]);return!Ce[n]&&(r[n]||!ke[n])}return!1},Ae=function(e){Va(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=x}catch(t){e.remove()}}},Oe=function(e,t){try{Va(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Va(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Ae(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(J)e=""+e;else{var i=Xa(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ve&&(e=''+e+"");var o=w?w.createHTML(e):e;if(pe===fe)try{t=(new f).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=T.createDocument(pe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),pe===fe?C.call(t,X?"html":"body")[0]:X?t.documentElement:a},Le=function(e){return S.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Ne=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)},Pe=function(e){return"object"===(void 0===s?"undefined":_s(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":_s(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,i){O[e]&&Ka(O[e],(function(e){e.call(n,t,i,be)}))},Me=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),Ne(e))return Ae(e),!0;if(Xa(e.nodeName,/[\u0080-\uFFFF]/))return Ae(e),!0;var i=Ee(e.nodeName);if(De("uponSanitizeElement",e,{tagName:i,allowedTags:B}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&$a(/<[/\w]/g,e.innerHTML)&&$a(/<[/\w]/g,e.textContent))return Ae(e),!0;if("select"===i&&$a(/