/*! For license information please see learning.js.LICENSE.txt */
(()=>{"use strict";var e,t={};function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var i,o,s,a={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},c="GUEST",l="MEMBER",u=0,d=1,h=2,p=(r(e={},c,"li_gc"),r(e,l,"li_mc"),e),f=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=r,this.userMode=i,this.optedInConsentMap={},a)t[s]=t[s]||u,t[s]!==u&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===d||t[s]===u&&o===d},m=(i=[a.ADVERTISING,a.ANALYTICS_AND_RESEARCH,a.FUNCTIONAL],o=[u,d,h,u],s=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(s);if(!n)return{error:"Invalid consent body encoding",consent:new f};for(var r=parseInt(n[1],10),a={},c=0;c<i.length;c++)a[i[c]]=o[r>>2*c&3];var l=new Date(1e3*parseInt(n[2],10)),d=parseInt(n[3],10),h=u;return d>=0&&d<=3&&(h=o[d]),{error:null,consent:new f(a,l,t,h)}}}),v=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),g=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},y=function(e,t){var n=g(p[e],t);return n?E(n,e):g(p[c],t)||g(p[l],t)?b(h):b(d)},b=function(e){var t={};for(var n in a)t[n]=e;return{error:null,consent:new f(t,null,null,e)}};var E=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,r=null;try{r=(n=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("binary"):atob(n)).match(v)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new f};var i=parseInt(r[1],10),o=r[2];switch(i){case 1:return m.parseConsentBody(o,t);default:return{error:"Invalid encoded consent version ".concat(i),consent:new f}}},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=g("liap",t)?g(p[l],t)?l:c:g(p[c],t)?c:l),y(e,t)};window.encodeURIComponent;function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),r=e.getElementById("config"),i=r&&"true"===r.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(i||t.skipSuffix?"":"_jsbeacon"):""}function T(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function S(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function k(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function C(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const I={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},A={Down:I.ARROW_DOWN,Right:I.ARROW_RIGHT,Left:I.ARROW_LEFT,Up:I.ARROW_UP,Esc:I.ESCAPE,Spacebar:I.SPACEBAR,Tab:I.TAB};function R(e){return A[e]||e}function N(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 L(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}class O{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const x=function(){let e;return{getInstance:function(){return e||(e=new O),e}}}();function M(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function P(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,o=t.left<=r&&t.left+t.width>=0;return i&&o}function D(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>=n-(t+t*r)}function B(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function F(e,t){return q(e,"trk",t)}function q(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=B(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),s="&";return r<0?s="?":r===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(i).concat(s).concat(t,"=").concat(n).concat(o||"")}}function U(e,t,n){var r=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{i=null,n||e.apply(r,s)},l=n&&!i;clearTimeout(i),i=setTimeout(c,t),l&&e.apply(r,s)}}function H(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=document.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function z(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function W(e){return"string"!=typeof e?null:e.split("?")[0]}var K=Object.freeze({__proto__:null,closest:N,onload:L,UnloadHandler:x,makeArray:M,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:P,hasElementScrolledToThreshold:D,getQueryParam:B,addTrackingCode:F,addQueryParam:q,debounce:U,getCookie:H,dispatchCustomEvent:j,getDeferredPromise:z,isDocumentHidden:function(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0},stripQueryParams:W});class V{constructor(e,t,n){let{mainButton:r,closeButton:i}=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(!r)throw Error("A main button element must be provided to Collapsible");this.el=e,this.expandableEl=t,this._isList=["UL","OL","DL"].includes(this.expandableEl.tagName);const{isOpen:s=!1}=o;this.isOpen=s,this.mainButton=r,this.closeButton=i,this.buttons=[r],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(R(e.key)){case I.ENTER:case I.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case I.ARROW_UP:this.isOpen||this._open(e);break;case I.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){R(e.key)===I.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=R(e.key);if(t===I.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case I.SPACEBAR:j(e.target,"click");break;case I.ARROW_LEFT:case I.ARROW_UP:n=N(e.target,"li");let t=n.previousElementSibling;t&&j(t,"focusEl");break;case I.ARROW_RIGHT:case I.ARROW_DOWN:n=N(e.target,"li");let r=n.nextElementSibling;r&&j(r,"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)),j(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)),j(this.el,"close"),e&&this.mainButton.focus())}}let G,Q;const X=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function J(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function Y(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=arguments.length>2?arguments[2]:void 0;return e===n?!J(e):r&&r.get(e)?r.get(e):(J(e)?t=!1:e.parentNode&&(t=Y(e.parentNode,n,r)),r&&r.set(e,t),t)}const $={POLITE:"polite",ASSERTIVE:"assertive"};function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.POLITE;G&&(G.removeAttribute("aria-hidden"),G.setAttribute("aria-live",$.POLITE),G.textContent="",G.textContent=e,G.setAttribute("aria-live",t),clearTimeout(Q),Q=setTimeout(()=>{G.removeAttribute("aria-live"),G.setAttribute("aria-hidden","true")},1e4))}const ee=".".concat("collapsible-dropdown","__list"),te=".".concat("collapsible-dropdown","__button");class ne{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(X)),elementToFocus:n,dropdownTriggerEl:r,dropdownContentEl:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to CollapsibleDropdown");if(this.el=e,this.dropdownContentEl=i||this.el.querySelector(ee),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(X),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=r||this.el.querySelector(te),this.hideClass="hidden",this.collapsible=new V(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(){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))}_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})}_showDropdownList(e){this.el.addEventListener("focusout",this._focusOutsideDropdown),window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),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()}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close()}}function re(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new Promise((s,a)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},c.response&&(n.response.rawHeaders=c.getAllResponseHeaders()),a(n)}})),c.addEventListener("error",(function(e){a(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!i){const e=H("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",C(e))}c.send(o)});return s&&(a.length?ie(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function ie(e,t,n,r){try{const i=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?oe(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,r,i,e.state.currentPageInstance)})})}catch(e){}}function oe(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.trim().split(": "),r=n.shift();if(r){const e=n.join(": ");t.set(r.toLocaleLowerCase(),e)}}),t}class se{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 ne(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=C(H("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}(k(document));return re("".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 ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{},ce=(parseInt,"object"==typeof ae&&ae&&ae.Object===Object&&ae),le="object"==typeof self&&self&&self.Object===Object&&self;ce||le||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pe="light",fe="dark";function me(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?fe:pe:void 0}var ve;function ge(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 r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||Se(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=Se(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e,t,n){return t&&Ee(e.prototype,t),n&&Ee(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e){return function(e){if(Array.isArray(e))return ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Se(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 Se(e,t){if(e){if("string"==typeof e)return ke(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)?ke(e,t):void 0}}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ie,Ae=new Uint8Array(16);function Re(){if(!Ie&&!(Ie="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ie(Ae)}var Ne=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Le(e){return"string"==typeof e&&Ne.test(e)}for(var Oe=[],xe=0;xe<256;++xe)Oe.push((xe+256).toString(16).substr(1));function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Oe[e[t+0]]+Oe[e[t+1]]+Oe[e[t+2]]+Oe[e[t+3]]+"-"+Oe[e[t+4]]+Oe[e[t+5]]+"-"+Oe[e[t+6]]+Oe[e[t+7]]+"-"+Oe[e[t+8]]+Oe[e[t+9]]+"-"+Oe[e[t+10]]+Oe[e[t+11]]+Oe[e[t+12]]+Oe[e[t+13]]+Oe[e[t+14]]+Oe[e[t+15]]).toLowerCase();if(!Le(n))throw TypeError("Stringified UUID is invalid");return n}function Pe(e){if(!Le(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 De(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=Pe(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return Me(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Be(e){return 14+(e+64>>>9<<4)+1}function Fe(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function qe(e,t,n,r,i,o){return Fe((s=Fe(Fe(t,e),Fe(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function Ue(e,t,n,r,i,o,s){return qe(t&n|~t&r,e,t,i,o,s)}function He(e,t,n,r,i,o,s){return qe(t&r|n&~r,e,t,i,o,s)}function je(e,t,n,r,i,o,s){return qe(t^n^r,e,t,i,o,s)}function ze(e,t,n,r,i,o,s){return qe(n^(t|~r),e,t,i,o,s)}function We(e,t,n){var r=(e=e||{}).random||(e.rng||Re)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Me(r)}function Ke(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Ve(e,t){return e<<t|e>>>32-t}De("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Be(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=i,u=o;n=Ue(n,r,i,o,e[s],7,-680876936),o=Ue(o,n,r,i,e[s+1],12,-389564586),i=Ue(i,o,n,r,e[s+2],17,606105819),r=Ue(r,i,o,n,e[s+3],22,-1044525330),n=Ue(n,r,i,o,e[s+4],7,-176418897),o=Ue(o,n,r,i,e[s+5],12,1200080426),i=Ue(i,o,n,r,e[s+6],17,-1473231341),r=Ue(r,i,o,n,e[s+7],22,-45705983),n=Ue(n,r,i,o,e[s+8],7,1770035416),o=Ue(o,n,r,i,e[s+9],12,-1958414417),i=Ue(i,o,n,r,e[s+10],17,-42063),r=Ue(r,i,o,n,e[s+11],22,-1990404162),n=Ue(n,r,i,o,e[s+12],7,1804603682),o=Ue(o,n,r,i,e[s+13],12,-40341101),i=Ue(i,o,n,r,e[s+14],17,-1502002290),n=He(n,r=Ue(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=He(o,n,r,i,e[s+6],9,-1069501632),i=He(i,o,n,r,e[s+11],14,643717713),r=He(r,i,o,n,e[s],20,-373897302),n=He(n,r,i,o,e[s+5],5,-701558691),o=He(o,n,r,i,e[s+10],9,38016083),i=He(i,o,n,r,e[s+15],14,-660478335),r=He(r,i,o,n,e[s+4],20,-405537848),n=He(n,r,i,o,e[s+9],5,568446438),o=He(o,n,r,i,e[s+14],9,-1019803690),i=He(i,o,n,r,e[s+3],14,-187363961),r=He(r,i,o,n,e[s+8],20,1163531501),n=He(n,r,i,o,e[s+13],5,-1444681467),o=He(o,n,r,i,e[s+2],9,-51403784),i=He(i,o,n,r,e[s+7],14,1735328473),n=je(n,r=He(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=je(o,n,r,i,e[s+8],11,-2022574463),i=je(i,o,n,r,e[s+11],16,1839030562),r=je(r,i,o,n,e[s+14],23,-35309556),n=je(n,r,i,o,e[s+1],4,-1530992060),o=je(o,n,r,i,e[s+4],11,1272893353),i=je(i,o,n,r,e[s+7],16,-155497632),r=je(r,i,o,n,e[s+10],23,-1094730640),n=je(n,r,i,o,e[s+13],4,681279174),o=je(o,n,r,i,e[s],11,-358537222),i=je(i,o,n,r,e[s+3],16,-722521979),r=je(r,i,o,n,e[s+6],23,76029189),n=je(n,r,i,o,e[s+9],4,-640364487),o=je(o,n,r,i,e[s+12],11,-421815835),i=je(i,o,n,r,e[s+15],16,530742520),n=ze(n,r=je(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=ze(o,n,r,i,e[s+7],10,1126891415),i=ze(i,o,n,r,e[s+14],15,-1416354905),r=ze(r,i,o,n,e[s+5],21,-57434055),n=ze(n,r,i,o,e[s+12],6,1700485571),o=ze(o,n,r,i,e[s+3],10,-1894986606),i=ze(i,o,n,r,e[s+10],15,-1051523),r=ze(r,i,o,n,e[s+1],21,-2054922799),n=ze(n,r,i,o,e[s+8],6,1873313359),o=ze(o,n,r,i,e[s+15],10,-30611744),i=ze(i,o,n,r,e[s+6],15,-1560198380),r=ze(r,i,o,n,e[s+13],21,1309151649),n=ze(n,r,i,o,e[s+4],6,-145523070),o=ze(o,n,r,i,e[s+11],10,-1120210379),i=ze(i,o,n,r,e[s+2],15,718787259),r=ze(r,i,o,n,e[s+9],21,-343485551),n=Fe(n,a),r=Fe(r,c),i=Fe(i,l),o=Fe(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Be(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),De("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=Ve(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),_=Ve(m,5)+Ke(w,v,g,y)+b+t[w]+h[E]>>>0;b=y,y=g,g=Ve(v,30)>>>0,v=m,m=_}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]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Ge=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Qe=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Qe){var Xe=new Uint8Array(256),Je=Xe.length;Ge={rng:function(){return Je>Xe.length-16&&(Qe.randomFillSync(Xe),Je=0),Xe.slice(Je,Je+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ce(crypto))&&crypto.randomUUID;function Ye(){return We(Ge,new Array(16),0)}function $e(e){return Te(e).map((function(e){return String.fromCharCode(e)})).join("")}function Ze(){return $e(Ye())}var et=/^[a-zA-Z0-9/+]+[=]+$/;function tt(e,t){return{pageUrn:rt(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,s=o%3,a=o-s;i<a;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(s){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(Ye())}}function nt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function rt(e){return"urn:li:page:".concat(e)}function it(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function ot(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,r=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return r(e)})).catch((function(){return r(e)}))}))}))}(e)}function st(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function at(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",r=window.indexedDB.open(n);return new Promise((function(i,o){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var r,s=null!==(r=n.sequenceNumber)&&void 0!==r?r:0;if("read"===e)return i(s);if(!("update"===e&&void 0!==t&&t>s))return i(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return i(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return i(0)},u.onerror=function(){o(u.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},a.oncomplete=function(){return s.close()}},r.onerror=function(){return i(null)}}))}return Promise.resolve(null)}function ct(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function lt(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var ut,dt,ht=(ut=new Map,dt=new Map,{on:function(e,t){ct(ut,e,t)},before:function(e,t){ct(dt,e,t)},off:function(e,t){lt(ut,e,t)},offBefore:function(e,t){lt(dt,e,t)},emit:function(e,t){(dt.get(e)||[]).concat(ut.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){dt.clear(),ut.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var pt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||ht.emit("internal:hide",e)};document.addEventListener("visibilitychange",pt),window.addEventListener("pagehide",pt)}var ft=Uint8Array,mt=Uint16Array,vt=Uint32Array,gt=new ft([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]),yt=new ft([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]),bt=new ft([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Et=function(e,t){for(var n=new mt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new vt(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},wt=Et(gt,2),_t=wt[0],Tt=wt[1];_t[28]=258,Tt[258]=28;for(var St=Et(yt,0)[1],kt=new mt(32768),Ct=0;Ct<32768;++Ct){var It=(43690&Ct)>>>1|(21845&Ct)<<1;It=(61680&(It=(52428&It)>>>2|(13107&It)<<2))>>>4|(3855&It)<<4,kt[Ct]=((65280&It)>>>8|(255&It)<<8)>>>1}var At=function(e,t,n){for(var r=e.length,i=0,o=new mt(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new mt(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new mt(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[kt[d]>>>c]=l}else for(s=new mt(r),i=0;i<r;++i)e[i]&&(s[i]=kt[a[e[i]-1]++]>>>15-e[i]);return s},Rt=new ft(288);for(Ct=0;Ct<144;++Ct)Rt[Ct]=8;for(Ct=144;Ct<256;++Ct)Rt[Ct]=9;for(Ct=256;Ct<280;++Ct)Rt[Ct]=7;for(Ct=280;Ct<288;++Ct)Rt[Ct]=8;var Nt=new ft(32);for(Ct=0;Ct<32;++Ct)Nt[Ct]=5;var Lt=At(Rt,9,0),Ot=At(Nt,5,0),xt=function(e){return(e+7)/8|0},Mt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Pt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Dt=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[zt,0];if(1==i){var s=new ft(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var p=new mt(h+1),f=Bt(n[u-1],p,0);if(f>t){r=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=o[r].s;p[b]<t?m-=1<<t-p[b]++-1:++r}for(;r>=0&&m;--r){var E=o[r].s;p[E]==t&&(--p[E],++m)}f=t}return[new ft(p),f]},Bt=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},Ft=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new mt(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},qt=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Ut=function(e,t,n){var r=n.length,i=xt(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Ht=function(e,t,n,r,i,o,s,a,c,l,u){Mt(t,u++,n),++i[256];for(var d=Dt(i,15),h=d[0],p=d[1],f=Dt(o,15),m=f[0],v=f[1],g=Ft(h),y=g[0],b=g[1],E=Ft(m),w=E[0],_=E[1],T=new mt(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var k=Dt(T,7),C=k[0],I=k[1],A=19;A>4&&!C[bt[A-1]];--A);var R,N,L,O,x=l+5<<3,M=qt(i,Rt)+qt(o,Nt)+s,P=qt(i,h)+qt(o,m)+s+14+3*A+qt(T,C)+(2*T[16]+3*T[17]+7*T[18]);if(x<=M&&x<=P)return Ut(t,u,e.subarray(c,c+l));if(Mt(t,u,1+(P<M)),u+=2,P<M){R=At(h,p,0),N=h,L=At(m,v,0),O=m;var D=At(C,I,0);for(Mt(t,u,b-257),Mt(t,u+5,_-1),Mt(t,u+10,A-4),u+=14,S=0;S<A;++S)Mt(t,u+3*S,C[bt[S]]);u+=3*A;for(var B=[y,w],F=0;F<2;++F){var q=B[F];for(S=0;S<q.length;++S){var U=31&q[S];Mt(t,u,D[U]),u+=C[U],U>15&&(Mt(t,u,q[S]>>>5&127),u+=q[S]>>>12)}}}else R=Lt,N=Rt,L=Ot,O=Nt;for(S=0;S<a;++S)if(r[S]>255){U=r[S]>>>18&31,Pt(t,u,R[U+257]),u+=N[U+257],U>7&&(Mt(t,u,r[S]>>>23&31),u+=gt[U]);var H=31&r[S];Pt(t,u,L[H]),u+=O[H],H>3&&(Pt(t,u,r[S]>>>5&8191),u+=yt[H])}else Pt(t,u,R[r[S]]),u+=N[r[S]];return Pt(t,u,R[256]),u+N[256]},jt=new vt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zt=new ft(0),Wt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Kt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Vt(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Wt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i,o,s,a=(i=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,r,i,o){var s=e.length,a=new ft(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=Ut(c,l+1,e.subarray(u,d))}else{for(var h=jt[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new mt(32768),g=new mt(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},w=new vt(25e3),_=new mt(288),T=new mt(32),S=0,k=0,C=(u=0,0),I=0,A=0;u<s;++u){var R=E(u),N=32767&u,L=g[R];if(v[N]=L,g[R]=N,I<=u){var O=s-u;if((S>7e3||C>24576)&&O>423){l=Ht(e,c,0,w,_,T,k,C,A,u-A,l),C=S=k=0,A=u;for(var x=0;x<286;++x)_[x]=0;for(x=0;x<30;++x)T[x]=0}var M=2,P=0,D=f,B=N-L&32767;if(O>2&&R==E(u-B))for(var F=Math.min(p,O)-1,q=Math.min(32767,u),U=Math.min(258,O);B<=q&&--D&&N!=L;){if(e[u+M]==e[u+M-B]){for(var H=0;H<U&&e[u+H]==e[u+H-B];++H);if(H>M){if(M=H,P=B,H>F)break;var j=Math.min(B,H-2),z=0;for(x=0;x<j;++x){var W=u-B+x+32768&32767,K=W-v[W]+32768&32767;K>z&&(z=K,L=W)}}}B+=(N=L)-(L=v[N])+32768&32767}if(P){w[C++]=268435456|Tt[M]<<18|St[P];var V=31&Tt[M],G=31&St[P];k+=gt[V]+yt[G],++_[257+V],++T[G],I=u+M,++S}else w[C++]=e[u],++_[e[u]]}}l=Ht(e,c,o,w,_,T,k,C,A,u-A,l),!o&&7&l&&(l=Ut(c,l+1,zt))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?mt:4==e.BYTES_PER_ELEMENT?vt:ft)(n-t);return r.set(e.subarray(t,n)),r}(a,0,r+xt(l)+i)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,s,8,!0)),c=a.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Kt(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(a,t),Kt(a,c-8,n.d()),Kt(a,c-4,r),a}var Gt="undefined"!=typeof TextDecoder&&new TextDecoder;try{Gt.decode(zt,{stream:!0})}catch(Pr){}function Qt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Xt(){try{return Qt()&&"keepalive"in new Request("")}catch(e){return!1}}function Jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,o=Object.keys(n.headers);i<o.length;i++){var s=o[i];r.setRequestHeader(s,n.headers[s])}r.send(t)}}function Yt(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress;r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8");var o=t;if(i&&"undefined"!=typeof TextEncoder)try{o=Vt((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function $t(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Zt,en="undefined"!=typeof navigator&&"sendBeacon"in navigator,tn=Xt()?function(e,t,n,r){return new Promise((function(i){fetch(e,Yt({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,Yt({body:t,keepalive:!1,headers:n,compress:r}))})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:e.status}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:$t(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(en){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,Yt({body:t,keepalive:!1,headers:n,compress:r})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:200}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:$t(e)})}))}))};function nn(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 rn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var o=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return o.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function on(){return Zt||(Zt=rn("idb-queue","default")),Zt}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},nn(e.transaction)}function an(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:on();return t("readwrite",(function(t){return sn(t,e)}))}var cn=!1;function ln(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]:on();return n("readwrite",(function(n){return n.put(e),nn(n.count()).then((function(e){if(!(e<=t.maxNumber))return sn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return an(t,n)}))}function un(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]:on();return cn?Promise.resolve():ln(e,t,n)}function dn(e,t,n){return t("readwrite",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),t.delete(),(e<0||r.length<e)&&t.continue())},nn(t.transaction).then((function(){return r}))}))}function hn(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length<e)&&t.continue())},nn(t.transaction).then((function(){return r}))}))}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:on();return hn(e,t,"next")}function fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:on();return hn(e,t,"prev")}function mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function vn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function gn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function bn(e,t){var n=0;return{throttledFn:function(){var r=Date.now();r-n>t&&(vn((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var En=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];be(this,e),_e(this,"config",void 0),_e(this,"compress",void 0),_e(this,"throttleControl",void 0),_e(this,"withStore",void 0),_e(this,"disablePersistence",!1),this.config=t,this.compress=r;var i=t.measureIDB;i&&performance.mark(i.createStartMark),this.withStore=rn(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=bn(this.replayEntries.bind(this),t.throttleWait)}return we(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){vn((function(){return"Persisting to DB "+e.url})),un(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),vn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,gn((function(){return"push failed"}))}))};this.config.useIdle?yn(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]:on();return cn=!0,e("readwrite",(function(e){return e.clear(),nn(e.transaction).finally((function(){return cn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,gn((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([]):pn(t,this.withStore).catch((function(){return e.disablePersistence=!0,gn((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([]):fn(t,this.withStore).catch((function(){return e.disablePersistence=!0,gn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){vn((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:on();return dn(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,s=i.body,a=i.headers,c=i.timestamp,l=i.statusCode,u=i.attemptCount;return vn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,s),tn(o,s,mn(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,r;null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,s),e.replayEntries()}else{var i,a,d,h,p,f;if(u+1>e.config.attemptLimit)return vn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(i=(a=e.config).onResult)||void 0===i||i.call(a,t,s));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,s),vn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),un({url:o,body:s,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(p=(f=e.config).onResult)||void 0===p||p.call(f,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&gn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?yn(t):t()}}}]),e}(),wn=function(){function e(){be(this,e)}return we(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}(),_n=function(){function e(t,n){be(this,e),_e(this,"queue",void 0),_e(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new En(t,n.compress):new wn}return we(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}();_e(_n,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Tn=[502,504],Sn=[429,503],kn=function(){function e(t,n,r,i){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];be(this,e),_e(this,"url",void 0),_e(this,"body",void 0),_e(this,"config",void 0),_e(this,"persistenceConfig",void 0),_e(this,"compress",void 0),_e(this,"timestamp",void 0),_e(this,"isClearQueuePending",!1),_e(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return we(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 tn(e.url,e.body,t,e.compress)}),n,t).finally((function(){vn((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,r){var i=this,o=this.getAttemptCount(t)-1;return e(mn(n,this.config.headerName,o,r)).then((function(r){var o,s,a,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),a=r;else if(vn((function(){return"retry rejected "+JSON.stringify(r)})),i.shouldPersist(t,r))i.persistenceConfig.db.pushToQueue({url:i.url,body:i.body,headers:n,statusCode:r.statusCode,timestamp:i.timestamp,attemptCount:i.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:r.statusCode};else{if(t>0&&i.isRetryableError(r)){var l,u;null===(l=(u=i.config).onIntermediateResult)||void 0===l||l.call(u,r,i.body);var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return vn((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return i.retry(e,t-1,n,r.statusCode)}))}(a=r).drop=!0}return null===(o=(s=i.config).onIntermediateResult)||void 0===o||o.call(s,a,i.body),a}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function Cn(e,t,n,r,i){"control"!==r&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&Xt()&&t&&n}()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}("beacons");var s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},l=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==i?void 0:i.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==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:Tn,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var i=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:Sn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new _n(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,s){var a;return Qt()?new kn(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||Sn},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body);if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){ht.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){ht.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var In=function(){function e(t){be(this,e),_e(this,"host",void 0),this.host=t}return we(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&&Cn(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){ht.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();Xt()&&"control"!==o&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{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){ht.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i||!Qt()||"undefined"==typeof Promise?Jt(e,JSON.stringify(t),{headers:n}):tn(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var r=this.host.retryConfig.lixKey;return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),An="undefined"!=typeof window&&"undefined"!=typeof document,Rn=/JSESSIONID="?([^";]+)"?/,Nn="",Ln=0;function On(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?Rn:r;if(!Nn||Date.now()-Ln>n){var o=An&&document.cookie.match(i);Nn=o&&o[1]||"",Ln=Date.now()}return Nn}var xn=function(){function e(t){be(this,e),_e(this,"networkTransporter",void 0),_e(this,"inactive",void 0),_e(this,"mpName",void 0),_e(this,"endpoint",void 0),_e(this,"debug",void 0),this.networkTransporter=new In(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=Pn;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Mn;break;case"https://www.linkedin-ei.com/li/track":t=Mn;break;default:n=!0,t=Mn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return we(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":On(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Mn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Pn="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function Dn(e){return"string"==typeof e}function Bn(e){return Dn(e)?e:e.topicName||e.eventName}function Fn(e){return Dn(e)?e:e.eventName}var qn,Un,Hn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};be(this,e),_e(this,"host",void 0),_e(this,"cmoTransporter",void 0),_e(this,"clientMonitoringInstanceId",Ze()),_e(this,"currentContext",Wn()),_e(this,"appState",{}),_e(this,"estimatedFragmentSize",0),_e(this,"fragmentSizeLimit",void 0),_e(this,"activeFragmentEvent",void 0),_e(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new xn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=zn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return we(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,r=ye(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:Fn(t),eventTopic:Bn(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,i===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(i,(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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,r=t.requestHeader,i=this.activeFragmentEvent;i.header=n,i.requestHeader=r,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=zn(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,t)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=Kn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Kn(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:"0000000000000000"}}}}]),e}();function jn(e){return qn||(qn=new Hn(e)),{getCurrentInstanceId:function(){return qn.getCurrentInstanceId()},logEventGenerated:function(e){return qn.logEventGenerated(e)},logEventReadyToSend:function(e){qn.logEventReadyToSend(e)},logEventSent:function(e){qn.logEventSent(e)},logPersistedEventSent:function(e,t){qn.logEventSent(t,e)},logNetworkResponseCode:function(e){qn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=qn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){qn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){qn.logFailedEvent(t,n,r,i,e)},flush:function(){qn.flush()},destroy:function(){qn=void 0},isDestroyed:function(){return void 0===qn},setCurrentContext:function(e){qn.setCurrentContext(e)},updateAppState:function(e){qn.updateAppState(e)}}}function zn(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,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:i.requestHeader,header:i.header}}function Wn(){return{pageKey:"unknown",pageInstance:tt("unknown")}}function Kn(e){return Array.isArray(e)?$e(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(et)}(e)?atob(e):$e(function(e){return Pe(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"}(Un||(Un={}));var Vn="PageViewEvent",Gn=function(){function e(t){var n=this;be(this,e),_e(this,"host",void 0),_e(this,"queue",void 0),_e(this,"preContextQueue",void 0),_e(this,"debounceTimer",void 0),_e(this,"unloadHandlers",void 0),_e(this,"maxQueueSize",void 0),_e(this,"flushDebounceTime",void 0),_e(this,"trackingEventListeners",[]),_e(this,"onHideHandler",(function(){n.forceFlush()})),_e(this,"networkTransporter",void 0),_e(this,"clientMonitoringConn",void 0),_e(this,"clientSequenceNumberCounter",void 0),_e(this,"isTimerRunning",void 0),_e(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var r=t.batching;this.maxQueueSize=r&&r.maxSize||1,this.flushDebounceTime=r&&r.debounceTime||0,ht.on("internal:hide",this.onHideHandler),this.networkTransporter=new In(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=jn(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return we(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r;if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent(Un.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-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 r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(i,Un.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(Bn(e.id)));var n,r=this.host,i=r.api.Promise,o=r.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))):(this.preContextQueue.push(t),i.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,ht.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:tt("unknown"),pageKey:"unknown"}).forEach((function(t){return e.queue.push(t)})),this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n;return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this;at("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){ht.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){at("update",this.clientSequenceNumberCounter).catch((function(e){ht.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-update"],reason:e})}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this;"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=it(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,o=r.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===Vn:e.eventName===Vn}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof i&&null!==this.host.locale||(p=i);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:r};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var v={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},g=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return g&&c(v.header,{clientMonitoringInstanceId:g,clientMonitoringInstanceEventNumber:y}),c(e.body,v)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,r,i=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),r=e.getBreadcrumbs(t),s=e.envelop(t.id,n,r);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?i.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(i.length+o.length),r=this.clientMonitoringConn,n={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==r||r.logFailedEvent(Un.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,i,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var Qn,Xn,Jn,Yn,$n=function(){function e(t,n){be(this,e),this.clientBreadcrumbType=t,this.id=n}return we(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,r){return"build"===r?function(){return e}:function(n){return e[r.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 Zn(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var i=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=i&&{pageInstance:i,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}function er(e){return"retryConfig"in e.host}function tr(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Qn||(Qn={})),function(){function e(t,n){var r,i;if(be(this,e),_e(this,"transporter",void 0),_e(this,"delegate",void 0),_e(this,"currentContext",void 0),_e(this,"appState",void 0),_e(this,"previousAppContext",void 0),_e(this,"customTransporters",void 0),_e(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new Gn(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=jn(t.host))}we(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){er(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=er(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return it(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]:{},r=this.navMetaFromSeed(e,Zn(t));if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=it(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(it(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,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=nt(n.pageKey,e),s={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,r){if(!t){var i=Bn(e),o=void 0===t?"undefined":null===t?"null":Ce(t),s='Firing tracking event "'.concat(i,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(i);this.clientMonitoringConn.logFailedEvent(Un.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=r||[];if(c.length>0){var l=c.map((function(e){return $n.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=this.generateEnvelope(e,t,n),o=r.length>0?this.addBreadcrumbsToEnvelope(i,r):i;return o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(Dn(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var o=i.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=Bn(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Un.UNKNOWN_EXECUTION_ERROR,i.id,c,l)}throw new Error(c)}return s.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return tt(e,t)}},{key:"firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),o=this.generateEnvelope("PageViewEvent",i,{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),ht.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 nt((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var s=r&&r.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&it(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}])}(),function(){function e(t,n){var r,i=this;be(this,e),_e(this,"core",void 0),_e(this,"protocol",void 0),_e(this,"throttleKeySet",new Set),_e(this,"config",void 0),_e(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},ht.on("internal:error",this.reportTransporterError)}we(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callTreeId,s=void 0===o?"":o,a=i.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,v=void 0===m?0:m,g=e.columnNumber,y=void 0===g?0:g,b=this.core.host,E=b.appId,w=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,C=b.api,I=C.Promise,A=C.location,R=A.host,N=A.pathname,L=A.search,O=A.hash,x=void 0===O?"":O;if(c){t={};var M=new Map;Object.keys(c).forEach((function(e){M.set(e.toLowerCase(),c[e])})),t.callTreeId=M.get("x-li-uuid"),t.microsoftEdgeReference=M.get("x-msedge-ref"),t.pointOfPresenceId=M.get("x-li-pop"),t.fabric=M.get("x-li-fabric")}var P=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:v,m:l,s:h,t:u,u:f},h:x,l:n.protocol,o:R,p:N,pageKey:e.pageKey,q:L,service:_,serviceInstance:T,serviceVersion:w,t:r,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return P();var D=tr(u+l+h+r.join("")+s);return this.throttleKeySet.has(D)?I.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),P())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),ht.off("internal:error",this.reportTransporterError)}}])}();var nr=function(){function e(){be(this,e),_e(this,"userTimingEntries",[]),_e(this,"longTasks",[]),_e(this,"resourceTimingEntries",[]),_e(this,"cdnData",void 0)}return we(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(ir),cdnData:this.cdnData}}}]),e}(),rr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function ir(e){return rr.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function or(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};Jn=Object.assign(Object.assign({},n),t),Yn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Jn.root,n);var r=sr(e,Xn.All,(function(){return sr(e,Xn.Two,(function(){return sr(e,Xn.One)}))}));if(r){var i=mr(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(t.length>2&&t.length>Jn.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>Jn.maxNumberOfTries)return i;r.counter+=1;var s=Te(t);s.splice(o,1);var a=cr(s);if(r.visited.has(a))return i;ur(s)&&vr(s,n)&&(i.push(s),r.visited.set(a,!0),i=i.concat(e(s,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),cr(r)}throw new Error("Selector was not found.")}function sr(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var e=pr(function(e){var t=e.getAttribute("id");return t&&Jn.idName(t)?{name:"#"+_r(t,{isIdentifier:!0}),penalty:0}:null}(o))||pr.apply(void 0,Te(function(e){return Array.from(e.attributes).filter((function(e){return Jn.attr(e.name,e.value)})).map((function(e){return{name:"["+_r(e.name,{isIdentifier:!0})+'="'+_r(e.value)+'"]',penalty:.5}}))}(o)))||pr.apply(void 0,Te(function(e){return Array.from(e.classList).filter(Jn.className).map((function(e){return{name:"."+_r(e,{isIdentifier:!0}),penalty:1}}))}(o)))||pr(function(e){var t=e.tagName.toLowerCase();return Jn.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if(t===Xn.All)a&&(e=e.concat(e.filter(hr).map((function(e){return dr(e,a)}))));else if(t===Xn.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(hr).map((function(e){return dr(e,a)}))));else if(t===Xn.One){var c=ge(e=e.slice(0,1),1)[0];a&&hr(c)&&(e=[dr(c,a)])}var l,u=ye(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(i.push(e),i.length>=Jn.seedMinLength&&(r=ar(i,n)))return"break";o=o.parentElement,s++};o&&o!==Jn.root.parentElement&&"break"!==a(););return r||(r=ar(i,n)),r}function ar(e,t){var n=mr(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=ye(t[0]);try{for(o.s();!(r=o.n()).done;){var s=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return i}return[n]}(e));if(n.length>Jn.threshold)return t?t():null;var r,i=ye(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(ur(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function cr(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function lr(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function ur(e){switch(Yn.querySelectorAll(cr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(cr(e)));case 1:return!0;default:return!1}}function dr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function hr(e){return"html"!==e.name&&!e.name.startsWith("#")}function pr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(fr);return r.length>0?r:null}function fr(e){return null!=e}function mr(e){return Array.from(e).sort((function(e,t){return lr(e)-lr(t)}))}function vr(e,t){return Yn.querySelector(cr(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Xn||(Xn={}));var gr,yr=/[ -,\.\/:-@\[-\^`\{-~]/,br=/[ -,\.\/:-@\[\]\^`\{-~]/,Er=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function _r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},wr),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var l=e.charAt(a++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?yr.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!i&&('"'==l&&r==l||"'"==l&&r==l)||i&&br.test(l)?"\\"+l:l;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Er,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+s+r:s}function Tr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function Sr(e){var t=e||performance;return Math.round(t.now())}function kr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return or(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=kr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Cr(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){r.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){r.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Ir(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Ar,Rr=function(){function e(t){be(this,e),_e(this,"hostApis",void 0),_e(this,"hostnameProperties",void 0),_e(this,"usedHostnames",void 0),_e(this,"abortController",void 0),_e(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 we(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return st(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,r=n.AbortController,i=n.Promise,o=ot(st(this.pendingPromises),i),s=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(gr=gr||r.createElement("a")).href=n,gr.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),Nr=function(){function e(t,n,r,i){be(this,e),_e(this,"hostApis",void 0),_e(this,"statics",void 0),_e(this,"options",void 0),_e(this,"allowTimingOrigin",void 0),_e(this,"collectResourceTimings",void 0),_e(this,"collectCdnData",void 0),_e(this,"perfObserver",void 0),_e(this,"renderTimings",new Map),_e(this,"urlToTreeId",new Map),_e(this,"cdnDataProvider",void 0),_e(this,"observables",new nr),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Rr(t))}return we(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:Tr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Tr(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{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,r=t.PerformanceObserver,i=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",r||(this.observables.userTimingEntries=Cr(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,Lr.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(i,this.collectAsynchronousData(!0)),i}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var r=this.cdnDataProvider.getPresentData();n.cdnData=r,n.usedCDN=this.extractUsedCDN(r)}return n}var i=[];return this.collectCdnData&&i.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),i.length>0?ot(i,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,r=e.name,i=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:i,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:i,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:r,startTime:i})}))})),this.observables.userTimingEntries=Cr(this.hostApis.performance,this.options,!1);var n=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance;"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){return e.processSingleResourceTiming(t)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e){this.collectResourceTimings&&this.observables.resourceTimingEntries.push(e),this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:Ir(this.renderTimings),networkInformationMetrics:Or(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),Lr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Or(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix"}(Ar||(Ar={}));var xr=(_e(ve={},"web-ui-framework","EMBER"),_e(ve,"app-id","linkedin.rum.tracking"),_e(ve,"app-version","unknown"),_e(ve,"is-single-page-app",!0),_e(ve,"user-timing-mark-enabled",!1),_e(ve,"user-timing-measure-enabled",!0),_e(ve,"beacon-source","apps"),_e(ve,"enable-rs-timing",!0),_e(ve,"enable-cdn-tracking",!1),_e(ve,"async-plugins-timeout",5e3),_e(ve,"beacon-timeout",3e4),_e(ve,"enable-memory-measurement",!1),_e(ve,"pageKeyPrefix",""),ve),Mr=function(){function e(t,n,r){be(this,e),_e(this,"featureName",void 0),_e(this,"trackingCore",void 0),_e(this,"rumConfig",void 0),_e(this,"observing",!1),_e(this,"basePageTreeId",void 0),_e(this,"startPageInstance",void 0),_e(this,"startMemory",void 0),_e(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return we(e,[{key:"startObserving",value:function(){var t,n=this,r=this.getMemory();r&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||tt("unknown"),this.startMemory=r,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:Sr(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]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();_e(Mr,"checkpoints",[1,3,10,30,90,180,300]);var Pr,Dr,Br,Fr,qr,Ur=we((function e(t,n,r){be(this,e),_e(this,"webUIFramework",void 0),_e(this,"timeSource",void 0),_e(this,"isSinglePageApp",void 0),_e(this,"appRenderMode",void 0),_e(this,"isAppRenderFailed",void 0),_e(this,"pageLoadMode","INITIAL"),_e(this,"isSSL",void 0),_e(this,"treeId",void 0),_e(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:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),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){}},zr=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),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 r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Vr=-1,Gr=function(){return"hidden"===document.visibilityState?0:1/0},Qr=function(){zr((function(e){var t=e.timeStamp;Vr=t}),!0)},Xr=function(){return Vr<0&&(Vr=Gr(),Qr(),Wr((function(){setTimeout((function(){Vr=Gr(),Qr()}),0)}))),{get firstHiddenTime(){return Vr}}},Jr=!1,Yr=-1,$r=function(e,t){Jr||(function(e,t){var n,r=Xr(),i=Hr("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:jr("paint",o);(s||a)&&(n=Kr(e,i,t),s&&o(s),Wr((function(r){i=Hr("FCP"),n=Kr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){Yr=e.value})),Jr=!0);var n,r=function(t){Yr>-1&&e(t)},i=Hr("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],r=s[s.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>i.value&&(i.value=o,i.entries=s,n())}},c=jr("layout-shift",a);c&&(n=Kr(r,i,t),zr((function(){c.takeRecords().map(a),n(!0)})),Wr((function(){o=0,Yr=-1,i=Hr("CLS",0),n=Kr(r,i,t)})))},Zr={passive:!0,capture:!0},ei=new Date,ti=function(e,t){Pr||(Pr=t,Dr=e,Br=new Date,ii(removeEventListener),ni())},ni=function(){if(Dr>=0&&Dr<Br-ei){var e={entryType:"first-input",name:Pr.type,target:Pr.target,cancelable:Pr.cancelable,startTime:Pr.timeStamp,processingStart:Pr.timeStamp+Dr};Fr.forEach((function(t){t(e)})),Fr=[]}},ri=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){ti(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Zr),removeEventListener("pointercancel",r,Zr)};addEventListener("pointerup",n,Zr),addEventListener("pointercancel",r,Zr)}(t,e):ti(t,e)}},ii=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ri,Zr)}))},oi=function(e,t){var n,r=Xr(),i=Hr("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=jr("first-input",o);n=Kr(e,i,t),s&&zr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Wr((function(){var r;i=Hr("FID"),n=Kr(e,i,t),Fr=[],Dr=-1,Pr=null,ii(addEventListener),r=o,Fr.push(r),ni()}))},si={},ai=function(e,t){var n,r=Xr(),i=Hr("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},s=jr("largest-contentful-paint",o);if(s){n=Kr(e,i,t);var a=function(){si[i.id]||(s.takeRecords().map(o),s.disconnect(),si[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),zr(a,!0),Wr((function(r){i=Hr("LCP"),n=Kr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,si[i.id]=!0,n(!0)}))}))}))}},ci=["LCP","FID","CLS"],li={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},ui={},di=function(){var e;if(!An)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),hi=!1,pi=[],fi={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function mi(){var e=!0===window.__test__resetWebVitalsState;if(!hi||e){e&&(pi=[]),ci.forEach(vi);var t=Symbol();qr=t,[ai,oi,$r].forEach((function(e){return e(gi.bind(null,t),!0)})),[ai,oi,$r].forEach((function(e){return e(yi.bind(null,t))})),hi=!0}}function vi(e){ui[e]={name:e,value:-1,updateHistory:[]};var t=fi[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(ui[e].value=-2)}function gi(e,t){if(e===qr){var n=ui[t.name],r=Sr();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),pi.forEach((function(e){return e(t,r,!1)}))}}function yi(e,t){e===qr&&pi.forEach((function(e){return e(t,Sr(),!0)}))}var bi=function(){function e(t,n){be(this,e),_e(this,"basePageTreeId",void 0),_e(this,"basePageKey",void 0),_e(this,"observing",!1),_e(this,"appContextMap",new Map),_e(this,"rumConfig",void 0),_e(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return we(e,[{key:"startObserving",value:function(){var e,t,n=this;mi(),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",ci.forEach((function(e){var t;-2===(null===(t=ui[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),pi.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var r;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=this.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))}},{key:"reportMetric",value:function(e){var t=ui[e],n={name:li[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=ui[e];if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:di},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],s={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:kr(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,r);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:kr(o.target)}}(n,r);break;case"CLS":s=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),o=null;r&&r.sources&&r.sources.length&&(o=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(i.time);return o&&a?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":kr(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(s){var a={};return i(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,r,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,r){var i,o;be(this,e),_e(this,"core",void 0),_e(this,"config",void 0),_e(this,"collector",void 0),_e(this,"boomerangStart",-1),_e(this,"webVitalsObserver",void 0),_e(this,"appMemoryObserver",void 0),_e(this,"pageMemoryObserver",void 0),_e(this,"liveTokens",new Set),_e(this,"stateWM",new WeakMap),_e(this,"activeToken",void 0),_e(this,"isInitial",void 0),_e(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(r.host.api.assign({},xr),n);var s="enabled"===(null===(i=(o=this.core.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new Nr(r.host.api,new Ur(t,this.config,r.host),this.config,s),this.collector.startObserving(),ht.before("internal:hide",this.beforeHideHandlerBound)}we(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,r;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,o=Object.create(null),s="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=o,this.liveTokens.add(o),this.stateWM.set(o,{isInitial:this.isInitial,startTime:Tr(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(r=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pemberly.tracking.rum-memory-measurement")))&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Mr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Mr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new bi(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var s=this.stateWM.get(e),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=Tr(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=r.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){r.fireRumEvent(e,l)})):r.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else ht.emit("internal:error",{tags:["core-web-tracking:rum:end"],reason:new Error("RUM end: rum token passed is invalid")})}},{key:"destroy",value:function(){var e,t,n;ht.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,o=r.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||i,d=s-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:s},e)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var Ei="undefined"!=typeof window&&"undefined"!=typeof performance,wi="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function _i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",Ti(n,t))}function Ti(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=T(document),r=S(document),i=me();let o={};return i&&(o.theme=i.toUpperCase()),r&&(o.interfaceLocale=r),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function Si(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)}!function(){function e(t,n){be(this,e),_e(this,"featureKey",void 0),_e(this,"productName",void 0),_e(this,"endPageInstance",void 0),_e(this,"startPageInstance",void 0),_e(this,"isCanceled",!1),_e(this,"featureIdentifier",void 0),_e(this,"name",void 0),_e(this,"startTime",void 0),_e(this,"duration",void 0),_e(this,"marks",[]),_e(this,"spanStarts",new Map),_e(this,"spans",[]),_e(this,"isSpanContainer",!1),_e(this,"basePageTreeId",void 0),_e(this,"isClosed",!1),this.featureKey=t,this.productName=n;var r=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(r),this.name=t}we(e,[{key:"start",value:function(e){this.startPageInstance=e,Ei&&(this.startTime=Sr(),wi&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){Ei&&(this.marks.push({name:e,startTime:Sr()}),wi&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))))}},{key:"spanStart",value:function(e){Ei&&(this.spanStarts.set(e,Sr()),wi&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Ei&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:Sr()-n}),wi&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")))}}},{key:"deleteSpan",value:function(e){if(this.isClosed)throw new Error("[rum measurement] spans can only be deleted before the feature performance measurement ends.");for(var t=this.spans.length-1;t>=0;t--)if(this.spans[t].name===e)return void this.spans.splice(t,1)}},{key:"end",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isClosed){if(this.isSpanContainer=t,this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));this.endPageInstance=e,Ei&&(this.duration=Sr()-this.startTime,wi&&!this.isSpanContainer&&(performance.mark("LI:".concat(this.featureIdentifier,"-end")),performance.measure("LI:".concat(this.featureIdentifier),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-end"))),this.cleanUp())}}},{key:"cancel",value:function(){this.isCanceled||(this.isCanceled=!0)}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"toEventBody",value:function(){if(Ei){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||tt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(Ei){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'));if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'));if(this.isSpanContainer&&0===this.spans.length)throw new Error("The span container should have at least one span");for(var e=0,t=["startTime","duration","basePageTreeId"];e<t.length;e++){var n=t[e];if(void 0===this[n])throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is missing "').concat(n,'"'))}}}},{key:"cleanUp",value:function(){this.spanStarts.clear()}}])}();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 ki(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function Ci(e){return e.scrollHeight>e.offsetHeight}function Ii(e,t){const n=M(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Ai(e){Ni([e])}function Ri(e){Li([e])}function Ni(e){Ii(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Li(e){Ii(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Oi(e){e.setAttribute("disabled","disabled")}function xi(e){e.removeAttribute("disabled")}function Mi(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}const Pi={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Di(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function Bi(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=_(document),i=Di();return window.tracking.then(o=>(t=o.generateTrackingId(),re(e,de(de({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[Pi.EFFECTIVE_CONNECTION_TYPE]:i,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":r,"X-li-page-instance":"urn:li:page:".concat(r,";").concat(t)}}))))}function Fi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r=null==n?void 0:n.querySelector(".".concat(e));if(r&&Ci(r)){const i=n.querySelector(t);null==i||i.classList.remove("invisible"),null==i||i.addEventListener("click",()=>{r.classList.remove(e),i.classList.add("invisible")})}}const qi="prev",Ui="next";class Hi{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)throw new Error("No element passed in");this._el=e,this._previousButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=e.querySelector(".slide-list__list"),this._slideNavDisabled="true"===this._el.dataset.disabled,this._dragLimit=this._listEl.offsetWidth,this._items=[...this._listEl.children],this._lock={},this._currentPage=t,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=e.querySelector(".".concat("slide-list__header-nav--minimal")),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),this._indicatorElement=e.querySelector(".".concat("slide-list__indicator-button-container")),this._indicatorClickHandler=this._handleIndicatorClick.bind(this),!("ontouchstart"in window)&&this._slideNavDisabled||(this._initCalc(),window.addEventListener("resize",this._handleWindowResize.bind(this)),"ontouchstart"in window&&(this._el.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._el.addEventListener("touchmove",this._handleTouchMove.bind(this)),this._el.addEventListener("touchend",this._handleTouchEnd.bind(this))),e.querySelector(".slide-list__header-nav")&&this._el.addEventListener("click",this._handleScrollAction.bind(this)))}next(e){return e=e||1,this._currentPage+e<=this._pageTranslates.length-1&&(this._currentPage+=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}prev(e){return e=e||1,this._currentPage-e>=0&&(this._currentPage-=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}goToItem(e){const t=Number(e)-this._currentPage;if(0===t)return this._currentPage;t<0?this.prev(Math.abs(t)):this.next(t)}_handleIndicatorClick(e){const t=e.target.closest("[data-position]");t&&this.goToItem(t.dataset.position)}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_updateIndicator(){this._indicatorElement&&(this._pageItems.length===this._items.length?(Ri(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(Ai(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(),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,r=t-e;let i=[0];const o=[new Set],s=[];let a=0;for(let t=0;t<this._items.length;t+=1){const c=i[i.length-1],l=o[i.length-1],u=this._items[t].offsetLeft,d=this._items[t].offsetWidth;let h=Math.abs(this._isRtl?u+d:u),p=Math.abs(this._isRtl?u:u+d);if(s.push(h),this._isRtl&&u>=0)l.add(this._items[t]);else if(0===h&&0===n||0===a)a=p,l.add(this._items[t]);else{if(p>c+e){if(h>=r){o.push(new Set(this._items.slice(t)));break}i.push((this._isRtl?a:h)-n),o.push(new Set([this._items[t]]))}else l.add(this._items[t]);a=p}}return i.push(r),s.forEach((e,t)=>{e>=r&&o[o.length-1].add(this._items[t])}),this._pageItems=o,i}_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(X).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=N(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===qi?this.prev():n===Ui&&this.next())}_fireScrollEvent(){j(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],0)}_updateIndicatorButtons(){if(this._indicatorElement&&this._indicatorElement.isActive){const e=this._el.querySelector(".slide-list__indicator-button-container > .slide-list__indicator--selected");e&&(e.classList.remove("slide-list__indicator--selected"),e.setAttribute("aria-current",!1));const t=this._el.querySelector(".".concat("slide-list__indicator-button-container"," > :nth-child(").concat(this._currentPage+1,")"));t.classList.add("slide-list__indicator--selected"),t.setAttribute("aria-current",!0)}}_updateSlideButtons(){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._currentPage!==this._pageTranslates.length-1&&0!==this._pageTranslates.length||(this._nextButton.disabled=!0)}this._updateIndicatorButtons()}_resetTouchEvents(){this._dragging=!1,this._dragCanceled=!1,this._listEl.classList.remove("slide-list__list--dragging"),this._lock.left=this._isRtl?this._currentPage===this._pageTranslates.length-1:0===this._currentPage,this._lock.right=this._isRtl?0===this._currentPage:this._currentPage===this._pageTranslates.length-1,this._dragThresholdMet=!1,this._t={current:{x:0,y:0}}}_handleTouchStart(e){this._resetTouchEvents(),this._t.start=this._getEventPosition(e),this._dragging=!0,this._listEl.classList.add("slide-list__list--dragging")}_handleTouchMove(e){if(!this._dragging||this._dragCanceled)return;let t=this._getEventPosition(e);this._t.current={x:this._t.start.x-t.x,y:this._t.start.y-t.y},this._canDrag()?(this._dragThresholdMet=!0,e.preventDefault(),this._lock.left&&this._t.current.x<0?this._t.current.x=this._t.current.x*-this._dragLimit/(this._t.current.x-this._dragLimit):this._lock.right&&this._t.current.x>0&&(this._t.current.x=this._t.current.x*this._dragLimit/(this._t.current.x+this._dragLimit)),this._updateTranslateXY((this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage])-this._t.current.x)):this._isVerticalScrolling()&&(this._dragCanceled=!0)}_handleTouchEnd(){this._dragging&&(!this._dragCanceled&&Math.abs(this._t.current.x)>20&&(this._t.current.x>0&&!this._lock.right?this._isRtl?this._currentPage--:this._currentPage++:this._t.current.x<0&&!this._lock.left&&(this._isRtl?this._currentPage++:this._currentPage--),this._dispatchPageChangeEvent()),this._resetTouchEvents(),this._updateSlideButtons(),this._updateListPosition())}_getEventPosition(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}_isVerticalScrolling(){return Math.abs(this._t.current.x)<Math.abs(this._t.current.y)&&Math.abs(this._t.current.y)>10}_canDrag(){return this._dragThresholdMet||Math.abs(this._t.current.x)>Math.abs(this._t.current.y)&&Math.abs(this._t.current.x)>10}_updateTranslateXY(e,t){this._listEl.style.transform="translate3d(".concat(e||0,"px, ").concat(t||0,"px, 0px)")}_dispatchPageChangeEvent(){j(this._el,"pagechange",{pageNumber:this._currentPage})}}const ji=".tabs__list",zi=".tab-button",Wi=".tab__panel";class Ki{constructor(e){if(!(e&&e instanceof Node))throw new Error("No tabs element passed in");this._el=e,this._tabList=this._el.querySelector(ji),this._tabButtonList=this._el.querySelectorAll(zi),this._tabPanelList=this._el.querySelectorAll(Wi),this._initializeTabs(),this._tabList.addEventListener("keydown",e=>this._onTabButtonKeyDown(e)),this._tabList.addEventListener("click",e=>{let{target:t}=e;return this._onTabClick(t)})}_initializeTabs(){this._addAttributes(),[this._tabActive,this._tabPanelActive]=this._getActiveElements(),this._checkActivePanel()}_addAttributes(){const e=this._generateIds();this._tabButtonList.forEach((t,n)=>{const r=this._tabPanelList[n],{tabId:i,tabPanelId:o}=e(n);t.id=i,t.setAttribute("aria-controls",o),r.id=o,r.setAttribute("aria-labelledby",i)})}_generateIds(){const e=this._el.dataset.tabId?"".concat(this._el.dataset.tabId,"_"):"";return function(t){return{tabPanelId:"".concat(e,"tab-panel_").concat(t),tabId:"".concat(e,"tab_").concat(t)}}}_getActiveElements(){const e=this._el.querySelector('[aria-selected="true"]')||this._tabButtonList[0],t=e.getAttribute("aria-controls");return[e,document.getElementById(t)]}_checkActivePanel(){this._tabPanelActive.removeAttribute("hidden"),this._tabPanelList.forEach(e=>{e!==this._tabPanelActive&&e.setAttribute("hidden","")})}_onTabButtonKeyDown(e){switch(R(e.key)){case I.ENTER:case I.SPACEBAR:e.target!==this._tabActive&&this._activateTab(e.target);break;case I.ARROW_LEFT:this._focusTabOnArrowPress(-1,e.target);break;case I.ARROW_RIGHT:this._focusTabOnArrowPress(1,e.target)}}_onTabClick(e){const t=N(e,zi);t&&[...this._tabButtonList].includes(t)&&t!==this._tabActive&&this._activateTab(t)}_focusTabOnArrowPress(e,t){const n=[...this._tabButtonList].indexOf(t),r=this._tabButtonList[n+(1===e?1:-1)];r?r.focus():-1===e?this._focusLastTab():this._focusFirstTab()}_focusFirstTab(){this._tabButtonList[0].focus()}_focusLastTab(){this._tabButtonList[this._tabButtonList.length-1].focus()}_activateTab(e){this._deactivateActiveTab(),this._tabActive=e,this._tabActive.removeAttribute("tabIndex"),this._tabActive.setAttribute("aria-selected","true"),this._tabActive.classList.add("tab-selected");const t=this._tabActive.getAttribute("aria-controls");this._tabPanelActive=document.getElementById(t),this._tabPanelActive.removeAttribute("hidden")}_deactivateActiveTab(){this._tabActive.setAttribute("tabIndex","-1"),this._tabActive.setAttribute("aria-selected","false"),this._tabActive.classList.remove("tab-selected"),this._tabActive=null,this._tabPanelActive.setAttribute("hidden",""),this._tabPanelActive=null}}class Vi{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const Gi=["class","disabled","style","tabindex","type"];class Qi{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 Vi(this._container)}init(){this._observer.observe(this._container,{attributeFilter:Gi,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,r=R(t),i=r===I.TAB&&e.shiftKey;!i&&r===I.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):i&&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(X)],n=new Map;let r,i,o=0,s=t.length-1;for(;(!r||!i)&&o<=s;){if(!r){const i=t[o];r=Y(i,e,n)&&i,o++}if(!i){const r=t[s];i=Y(r,e,n)&&r,s--}}return i=i||r,[r,i]}}const{ENTER:Xi,ESCAPE:Ji}=I;class Yi{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,shouldMoveToTopContainer:i=!0}=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,i&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),r&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._shouldHideModal=n,this._shouldMoveToTopContainer=i,r&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new Qi(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=R(e.key),n=t===Xi&&document.activeElement===this._exitButtonEl;(t===Ji||n)&&(this.close(),e.preventDefault())}open(){if(!this._shouldHideModal())return this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),j(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=_(document,{skipSuffix:!0});_i(e,"ajax","".concat(t,"_").concat(this._el.id))}):Promise.resolve();j(this._el,"didNotOpen")}close(){this._overlayEl.classList.remove("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),j(this._el,"close"),this._previouslyFocusedEl&&this._previouslyFocusedEl.focus(),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}var $i=Object.hasOwnProperty,Zi=Object.setPrototypeOf,eo=Object.isFrozen,to=Object.getPrototypeOf,no=Object.getOwnPropertyDescriptor,ro=Object.freeze,io=Object.seal,oo=Object.create,so="undefined"!=typeof Reflect&&Reflect,ao=so.apply,co=so.construct;ao||(ao=function(e,t,n){return e.apply(t,n)}),ro||(ro=function(e){return e}),io||(io=function(e){return e}),co||(co=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var lo,uo=wo(Array.prototype.forEach),ho=wo(Array.prototype.pop),po=wo(Array.prototype.push),fo=wo(String.prototype.toLowerCase),mo=wo(String.prototype.match),vo=wo(String.prototype.replace),go=wo(String.prototype.indexOf),yo=wo(String.prototype.trim),bo=wo(RegExp.prototype.test),Eo=(lo=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return co(lo,t)});function wo(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return ao(e,t,r)}}function _o(e,t){Zi&&Zi(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=fo(r);i!==r&&(eo(t)||(t[n]=i),r=i)}e[r]=!0}return e}function To(e){var t=oo(null),n=void 0;for(n in e)ao($i,e,[n])&&(t[n]=e[n]);return t}function So(e,t){for(;null!==e;){var n=no(e,t);if(n){if(n.get)return wo(n.get);if("function"==typeof n.value)return wo(n.value)}e=to(e)}return function(e){return console.warn("fallback value for",e),null}}var ko=ro(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Co=ro(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Io=ro(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ao=ro(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ro=ro(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),No=ro(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lo=ro(["#text"]),Oo=ro(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),xo=ro(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Mo=ro(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Po=ro(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Do=io(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Bo=io(/<%[\s\S]*|[\s\S]*%>/gm),Fo=io(/^data-[\-\w.\u00B7-\uFFFF]/),qo=io(/^aria-[\-\w]+$/),Uo=io(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ho=io(/^(?:\w+script|data):/i),jo=io(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zo="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 Wo(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Ko=function(){return"undefined"==typeof window?null:window},Vo=function(e,t){if("object"!==(void 0===e?"undefined":zo(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var Go=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ko(),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 r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,v=So(m,"cloneNode"),g=So(m,"nextSibling"),y=So(m,"childNodes"),b=So(m,"parentNode");if("function"==typeof s){var E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}var w=Vo(f,r),_=w?w.createHTML(""):"",T=i,S=T.implementation,k=T.createNodeIterator,C=T.createDocumentFragment,I=T.getElementsByTagName,A=r.importNode,R={};try{R=To(i).documentMode?i.documentMode:{}}catch(e){}var N={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==R;var L=Do,O=Bo,x=Fo,M=qo,P=Ho,D=jo,B=Uo,F=null,q=_o({},[].concat(Wo(ko),Wo(Co),Wo(Io),Wo(Ro),Wo(Lo))),U=null,H=_o({},[].concat(Wo(Oo),Wo(xo),Wo(Mo),Wo(Po))),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}})),z=null,W=null,K=!0,V=!0,G=!1,Q=!1,X=!1,J=!1,Y=!1,$=!1,Z=!1,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,se=_o({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=_o({},["audio","video","img","source","image","track"]),le=null,ue=_o({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,we=i.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":zo(e))||(e={}),e=To(e),F="ALLOWED_TAGS"in e?_o({},e.ALLOWED_TAGS):q,U="ALLOWED_ATTR"in e?_o({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?_o(To(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?_o(To(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?_o({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?_o({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?_o({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,$=e.RETURN_DOM||!1,Z=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(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,be="application/xhtml+xml"===ve?function(e){return e}:fo,Q&&(V=!1),Z&&($=!0),ie&&(F=_o({},[].concat(Wo(Lo))),U=[],!0===ie.html&&(_o(F,ko),_o(U,Oo)),!0===ie.svg&&(_o(F,Co),_o(U,xo),_o(U,Po)),!0===ie.svgFilters&&(_o(F,Io),_o(U,xo),_o(U,Po)),!0===ie.mathMl&&(_o(F,Ro),_o(U,Mo),_o(U,Po))),e.ADD_TAGS&&(F===q&&(F=To(F)),_o(F,e.ADD_TAGS)),e.ADD_ATTR&&(U===H&&(U=To(U)),_o(U,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&_o(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=To(oe)),_o(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),X&&_o(F,["html","head","body"]),F.table&&(_o(F,["tbody"]),delete z.tbody),ro&&ro(e),Ee=e)},Se=_o({},["mi","mo","mn","ms","mtext"]),ke=_o({},["foreignobject","desc","title","annotation-xml"]),Ce=_o({},Co);_o(Ce,Io),_o(Ce,Ao);var Ie=_o({},Ro);_o(Ie,No);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=fo(e.tagName),r=fo(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ce[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[r]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[r])return!1;if(t.namespaceURI===de&&!Se[r])return!1;var i=_o({},["title","style","font","a","script"]);return!Ie[n]&&(i[n]||!Ce[n])}return!1},Re=function(e){po(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Ne=function(e,t){try{po(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){po(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!U[e])if($||Z)try{Re(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(Y)e="<remove></remove>"+e;else{var r=mo(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),fe===pe?I.call(t,X?"html":"body")[0]:X?t.documentElement:s},Oe=function(e){return k.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},xe=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)},Me=function(e){return"object"===(void 0===a?"undefined":zo(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":zo(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,r){N[e]&&uo(N[e],(function(e){e.call(n,t,r,Ee)}))},De=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),xe(e))return Re(e),!0;if(mo(e.nodeName,/[\u0080-\uFFFF]/))return Re(e),!0;var r=be(e.nodeName);if(Pe("uponSanitizeElement",e,{tagName:r,allowedTags:F}),!Me(e.firstElementChild)&&(!Me(e.content)||!Me(e.content.firstElementChild))&&bo(/<[/\w]/g,e.innerHTML)&&bo(/<[/\w]/g,e.textContent))return Re(e),!0;if("select"===r&&bo(/<template/i,e.innerHTML))return Re(e),!0;if(!F[r]||z[r]){if(ne&&!oe[r]){var i=b(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(v(o[s],!0),g(e))}if(!z[r]&&Fe(r)){if(j.tagNameCheck instanceof RegExp&&bo(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}return Re(e),!0}return e instanceof c&&!Ae(e)?(Re(e),!0):"noscript"!==r&&"noembed"!==r||!bo(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=vo(t,L," "),t=vo(t,O," "),e.textContent!==t&&(po(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1):(Re(e),!0)},Be=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in i||n in we))return!1;if(V&&!W[t]&&bo(x,t));else if(K&&bo(M,t));else if(!U[t]||W[t]){if(!(Fe(e)&&(j.tagNameCheck instanceof RegExp&&bo(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&bo(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&bo(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(bo(B,vo(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==go(n,"data:")||!ae[e]){if(G&&!bo(P,vo(n,D,"")));else if(n)return!1}else;return!0},Fe=function(e){return e.indexOf("-")>0},qe=function(e){var t=void 0,r=void 0,i=void 0,o=void 0;Pe("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(r=yo(t.value),i=be(l),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,Pe("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Ne(l,e),a.keepAttr))if(bo(/\/>/i,r))Ne(l,e);else{Q&&(r=vo(r,L," "),r=vo(r,O," "));var d=be(e.nodeName);if(Be(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),ho(n.removed)}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},Ue=function e(t){var n=void 0,r=Oe(t);for(Pe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Pe("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),qe(n));Pe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,i){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Me(e)){if("function"!=typeof e.toString)throw Eo("toString is not a function");if("string"!=typeof(e=e.toString()))throw Eo("dirty is not a string, aborting")}if(!n.isSupported){if("object"===zo(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Me(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Te(i),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){var h=be(e.nodeName);if(!F[h]||z[h])throw Eo("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!$&&!Q&&!X&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Le(e)))return $?null:ee?_:""}s&&Y&&Re(s.firstChild);for(var p=Oe(re?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&Ue(l.content),qe(l),u=l);if(u=null,re)return e;if($){if(Z)for(d=C.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return U.shadowroot&&(d=A.call(r,d,!0)),d}var f=X?s.outerHTML:s.innerHTML;return Q&&(f=vo(f,L," "),f=vo(f,O," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),J=!0},n.clearConfig=function(){Ee=null,J=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var r=be(e),i=be(t);return Be(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],po(N[e],t))},n.removeHook=function(e){N[e]&&ho(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const Qo={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Xo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Jo(null,e,t);return n.innerHTML}function Jo(e,t){let{ADD_TAGS:n=[],ADD_ATTR:r=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=de({},Qo);i.ADD_TAGS=[...i.ADD_TAGS,...n],i.ADD_ATTR=[...i.ADD_ATTR,...r];const o=Go.sanitize(t,i);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Yo="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",$o=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Zo=["b","del","em","i","s","strong","sub","sup"],es=Zo.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),ts=[Yo,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function ns(){}var rs,is;is=/[&<>"'\u0000\\=]/g,rs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"}}();var os=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var ss,as=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)};function cs(e){e=os(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",as(e,(function(e,s){t=e.tags||es,n=e.attrs||ts,r=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++i+")?",r&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++i),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function ls(e){return cs({tags:e=e||es,checkUrlAttrs:!0})}function us(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!ls(n).test(e):r?!us.R_UNSAFE_CUSTOM_ELEMENT.test(e):!us.R_UNSAFE_HTML.test(e)}function ds(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}us.R_UNSAFE_HTML=ls(),us.R_UNSAFE_CUSTOM_ELEMENT=cs([{tags:es,checkUrlAttrs:!0},{tags:[(ss={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Yo,ss.attrs].join("|"),checkUrlAttrs:!1}]);var hs={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};hs.optgroup=hs.option,hs.tbody=hs.tfoot=hs.colgroup=hs.caption=hs.thead,hs.th=hs.td;function ps(e,t){if(!(this instanceof ps))return new ps(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}ps.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new ns,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(us(e,this._options)||(n=e,e=ds(e),Si("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});const fs={};function ms(e){const t=document.getElementById(e);if(!t&&void 0!==fs[e])return fs[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),fs[e]=null,fs[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):(fs[e]=n,t.parentNode.removeChild(t),fs[e])}const vs={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(vs).map(e=>vs[e]);const gs=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|");new RegExp(gs,"i");const ys=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function bs(e){return!!e&&ys.test(e)}class Es{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:r=!1,isBottom:i=!0,exposeStickyState:o=!1,marginApplied:s=!1,debounceDelay:a=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&r)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=n,this.hideOnScrollDown=r,this.isBottom=i,this.exposeStickyState=o,this._scrollListener=U(this._onScroll.bind(this),a),this.marginApplied=s,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),L(()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()})}reactivate(){this._setupResizeListener(),this._setSpacing()}deactivate(){this._removeResizeListener(),this._resetSpacing()}_setupResizeListener(){bs(navigator.userAgent)||window.addEventListener("resize",this._setSpacingBound)}_removeResizeListener(){window.removeEventListener("resize",this._setSpacingBound)}_doesPageHaveEnoughScroll(){return document.body.scrollHeight>window.innerHeight+this.scrollThreshold}_setSpacing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isBottom?this._setBottomSpacing():this.hideOnScrollBack||this.hideOnScrollDown||(this._setTopSpacing(),e&&this.show())}_resetSpacing(){this.marginApplied?(document.body.style.marginTop="0px",document.body.style.marginBottom="0px"):(document.body.style.marginTop="".concat(this.originalMarginTop,"px"),document.body.style.marginBottom="".concat(this.originalMarginBottom,"px"))}_setBottomSpacing(){let e=this.el.clientHeight;document.body.style.marginBottom&&!this.marginApplied&&(e+=this.originalMarginBottom),document.body.style.marginBottom="".concat(e,"px")}_setTopSpacing(){let e=this.el.clientHeight;document.body.style.marginTop&&!this.marginApplied&&(e+=this.originalMarginTop),document.body.style.marginTop="".concat(e,"px")}show(){this.el.classList.add("show"),j(this.el,"show")}hide(){this.el.classList.remove("show"),j(this.el,"hide")}_onScroll(){const e=window.pageYOffset;e>this.scrollThreshold?(this.hideOnScrollBack||this.hideOnScrollDown||this.exposeStickyState||window.removeEventListener("scroll",this._scrollListener),this.hideOnScrollDown?this.hide():this.show(),this.exposeStickyState&&this.el.classList.add("stuck")):(this.hideOnScrollBack&&this.hide(),this.exposeStickyState&&this.el.classList.remove("stuck")),this.previousScrollPosition>e&&this.hideOnScrollDown&&this.show(),this.previousScrollPosition=e}}"".concat("tooltip__popup","--show");const ws="dismissable-input",_s="dismissable-input--focus",Ts="dismissable-input__button",Ss="dismissable-input__button--show",ks="dismissable-input__input";class Cs{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(ks)),this._dismissButtonEl=this.el.querySelector(".".concat(Ts)),this._isDismissable=!!this._dismissButtonEl,this._attachEventListeners()}_attachEventListeners(){this._input.addEventListener("focus",this._onInputFocus.bind(this)),this._input.addEventListener("input",this._updateDismissButton.bind(this)),this._input.addEventListener("blur",this._onInputBlur.bind(this)),this._isDismissable&&(this._dismissButtonEl.addEventListener("click",this.clear.bind(this)),this._updateDismissButton())}_onInputFocus(){this.el.classList.add(_s),this._updateDismissButton(),j(this._input,"dismissableInputFocused")}_updateDismissButton(){this._isDismissable&&(this._input.value.length?(this._showDismissButton(),this._dismissButtonEl.disabled=!1):(this._hideDismissButton(),this._dismissButtonEl.disabled=!0))}_hideDismissButton(){this._dismissButtonEl.classList.remove(Ss)}_showDismissButton(){this._dismissButtonEl.classList.add(Ss)}_onInputBlur(){this.el.classList.remove(_s)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),j(this.el,"clear")}}const Is={block:"typeahead-input",showList:"typeahead-input__dropdown--show",dropdown:"typeahead-input__dropdown",dropdownList:"typeahead-input__dropdown-list",dropdownText:"typeahead-input__dropdown-text",listItemFocus:"typeahead-input__dropdown-item--highlighted",listItem:"typeahead-input__dropdown-item",liveText:"typeahead-live-text",template:"typeahead-item-template"},As="i18n_aria_live_text_no-suggestions",Rs="i18n_aria_live_text_one-suggestion",Ns="i18n_aria_live_text_multiple-suggestions",Ls=500;class Os{constructor(e,t){let{createDismissableInput:n,elementClasses:r=Is,generateApiUrl:i,liveTextEl:o,liveTextClearTime:s=Ls,onSelect:a,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:d}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=r,this._input=l||this.el.querySelector(".".concat(ks)),this._dropdownContainerEl=u||this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=d||this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=i,this._onSelect=a,this._onInput=c,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=o||this.el.querySelector(".".concat(this._elementClasses.liveText)),n&&(this.dismissableInput=new Cs(this.el)),this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=U(this._getAndApplyResults.bind(this),500)}_resetState(){this._dropdownListItemEls=[],this._setHighlightedEl(null),this._setExpandedState(!1)}_attachEventListeners(){this.checkForListItemSelectHandler=this._checkForListItemSelect.bind(this),this.hideListHandler=this._hideList.bind(this),this.onKeyDownHandler=this._onKeyDown.bind(this),this.onUserInputHandler=this._onUserInput.bind(this),this.onClearHandler=this._onClear.bind(this),this._input.addEventListener("keydown",this.onKeyDownHandler),this._input.addEventListener("input",this.onUserInputHandler),this._input.addEventListener("focus",this.onUserInputHandler),this._input.addEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler),this._isDismissable&&this.el.addEventListener("clear",this.onClearHandler)}_removeEventListeners(){this._input.removeEventListener("keydown",this.onKeyDownHandler),this._input.removeEventListener("input",this.onUserInputHandler),this._input.removeEventListener("focus",this.onUserInputHandler),this._input.removeEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler)}_isListActive(){return this._input.getAttribute("aria-owns")===this._listId&&Boolean(this._input.getAttribute("aria-expanded"))}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(!this._isListActive())return;switch(R(e.key)){case I.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case I.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case I.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let n=null===this._highlighted.index?t:this._highlighted.index+e;n<0&&(n=this._dropdownListItemEls.length-1),n>=this._dropdownListItemEls.length&&(n=0),this._setHighlightedEl(n)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return re(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_getItemEl(){return document.importNode(this._typeaheadItemTemplate.content,!0)}_appendResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._hideList(),e.forEach((e,t)=>{const n=this._getItemEl(),r=n.querySelector(".".concat(this._elementClasses.listItem)),i=r.querySelector(".".concat(this._elementClasses.dropdownText));r.id="".concat(this._input.name,"-").concat(t+1),i.textContent=e.displayName,i.dataset.id=e.id,this._dropdownListEl.appendChild(n)}),this._dropdownListItemEls=M(this._dropdownListEl.children)}_shouldShowList(){return this._dropdownListItemEls.length>0&&this._isInputValid()}_showList(){this._shouldShowList()?(this._dropdownContainerEl.classList.add(this._elementClasses.showList),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):(this._hideList(),this._setExpandedState(!1)),this._setLiveText()}_hideList(){if(this._isListActive()){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(this._elementClasses.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}}_onClear(){this.hideListHandler()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const n=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText))||t.closest(".".concat(this._elementClasses.dropdownText));n&&this.el.contains(n)&&this._updateInputTo(n,e)}_updateInputTo(e,t){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e,t),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=ms(As),this._liveTextOneSuggestion=ms(Rs),this._liveTextMultipleSuggestions=ms(Ns)}_getLiveText(){let e;switch((this._dropdownListItemEls||[]).length){case 0:e=this._liveTextNoSuggestions;break;case 1:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_setLiveText(){const e=this._getLiveText(),t=document.createElement("p");t.textContent=e,this._liveTextEl.children.length&&(this._liveTextEl.removeChild(this._liveTextEl.firstChild),clearTimeout(this._liveTextTimeout)),this._liveTextEl.appendChild(t),this._liveTextTimeout=setTimeout(()=>{this._liveTextEl.firstChild&&this._liveTextEl.removeChild(this._liveTextEl.firstChild)},this._liveTextClearTime)}_setExpandedState(e){this._input.setAttribute("aria-expanded",e),e&&(this._input.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}class xs{constructor(e,t,n){let{onCloseExpandedSearch:r=(e=>e),isMobileDevice:i=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(this.el=e,this.expandedEl=t,this.placeholderEl=n,this.isMobileDevice=i,!this.el)throw new Error("No element passed in to BaseSearchBar");this.isExpanded=!1,this.type=this.el.getAttribute("data-searchbar-type"),this.firstInput=this.el.querySelector("input:first-of-type"),this.isIOSDevice="iPhone"===navigator.platform||"iPad"===navigator.platform||"iPod"===navigator.platform,this.onCloseExpandedSearch=r,i&&(this.focusTrap=new Qi(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:n}=e,r="Escape"===t,i="INPUT"===n.tagName;r&&!i?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;N(t,".".concat(Is.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&ki()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Ms extends Os{constructor(e,t){let{generateApiUrl:n,liveTextEl:r,onSelect:i,onInput:o}=t;super(e,{createDismissableInput:!0,generateApiUrl:n,liveTextEl:r,onSelect:i,onInput:o})}}const Ps={clearButton:"recent-searches__clear-btn",dropdown:"recent-searches",dropdownList:"recent-searches__list",listItem:"recent-searches__item",listItemClearButton:"recent-searches__item--clear",listItemLink:"recent-searches__item-link",listItemFocus:"recent-searches__item--highlighted",showList:"recent-searches--show"},Ds="i18n_aria_live_text_recent-searches-one-suggestion",Bs="i18n_aria_live_text_recent-searches-multiple-suggestions",Fs="i18n_aria_live_text_recent-searches-cleared";class qs extends Os{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:r}=t;if(super(e,{liveTextEl:n,elementClasses:Ps,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(Ps.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=r,this._dropdownListItemEls=M(this.dropdownContainerEl.querySelectorAll(".".concat(Ps.listItem))),this._clearBtnItem=e.querySelector(".".concat(Ps.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(Ts))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(Ps.clearButton)),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this._clearBtn.addEventListener("mousedown",this._clearRecentSearchesHandler),super._attachEventListeners()}_removeEventListeners(){this._clearBtn.removeEventListener("mousedown",this._clearRecentSearchesHandler),super._removeEventListeners()}_onUserInput(){this._shouldShowList()?this._showList():this._hideList()}_redirect(e){e.click()}_clickOutsideToCloseHandler(e){e.target===this._input||this._dismissButtonEl.contains(e.target)||this._hideList()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const n=t.querySelector(".".concat(Ps.listItemLink));n?this._redirect(n):t.classList.contains(Ps.listItemLink)?this._redirect(t):t===this._clearBtnItem&&this._clearRecentSearches()}_shouldShowList(){return this._dropdownListItemEls.length>1&&0===this._input.value.length}_onClear(){this.onUserInputHandler()}_hideList(){this._isListActive()&&(this.dropdownContainerEl.classList.remove(Ps.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=ms(Ds),this._liveTextMultipleSuggestions=ms(Bs),this._liveTextClearedSuggestions=ms(Fs)}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){re(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class Us{constructor(e,t,n){this.el=e,this.mobileTriggerEl=n,this.baseSearchBarsMap=t,this.currentType=this.el.getAttribute("data-current-search-type"),this.switcherTriggerAndTabs=this.el.querySelector(".".concat("switcher-tabs__trigger-and-tabs")),this.switcherTabs=this.el.querySelector(".".concat("switcher-tabs")),this.dropdownList=this.el.querySelector(".".concat("switcher-tabs__list")),this.dropdownTrigger=this.el.querySelector(".".concat("switcher-tabs__placeholder")),this.dropdownPlaceholderText=this.el.querySelector(".".concat("switcher-tabs__placeholder-text")),this._handleSwitcherClick=this._handleSwitcherClick.bind(this),this._initMobileExpandedSwitcher(),this._initCollapsibleSwitcher()}_initMobileExpandedSwitcher(){this.el.addEventListener("click",this._handleSwitcherClick),this.mobileTriggerEl.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].showExpandedSearch()}),this.cancelBtn=this.el.querySelector(".".concat("switcher-tabs__cancel-btn")),this.cancelBtn.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new ne(this.switcherTriggerAndTabs,{dropdownContentEl:this.dropdownList,dropdownTriggerEl:this.dropdownTrigger}),this.switcherTriggerAndTabs.addEventListener("open",()=>this._openSwitcher()),this.switcherTriggerAndTabs.addEventListener("close",()=>this._closeSwitcher()),this._updatePlaceholderText()}_openSwitcher(){this.dropdownList.addEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("hidden"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.add("hidden")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button")&&!e.target.classList.contains("switcher-tabs__tab"))return;const t=N(e.target,".".concat("switcher-tabs__tab")),n=t.querySelector(".".concat("switcher-tabs__button")).getAttribute("data-switcher-type");n&&t&&this.currentType!==n?(this.collapsibleSwitcher.collapsible.currentListItem=t,this._switchTo(n,t)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const t=this.el.querySelector(".".concat("tab-selected")),n=N(t,".".concat("switcher-tabs__tab"));n&&(n.setAttribute("aria-selected","false"),t.classList.remove("tab-selected")),e.classList.contains("switcher-tabs__tab")&&(e.querySelector(".".concat("switcher-tabs__button")).classList.add("tab-selected"),e.setAttribute("aria-selected","true"))}_updatePlaceholderText(){let e=this.el.querySelector(".".concat("tab-selected"));e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class Hs{constructor(e){let{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:n,shouldSearchOnSelect:r=!0,onCloseExpandedSearch:i,includeSwitcher:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const s=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=r,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const a=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=M(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new xs(t,this.el,this.placeholderEl,{onCloseExpandedSearch:i,isMobileDevice:a});return e[n.type]=n,e},{}),t){this.baseSearchBarFormEl=this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form"),this.geoIdInputEl=this.el.querySelector('input[name="geoId"]');const e=this.el.querySelector(".keywords-typeahead-input");new Ms(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(Ps.dropdown))&&new qs(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new Ms(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat(ws,".search-input"))).forEach(e=>{new Cs(e);e.querySelector(".".concat(Ps.dropdown))&&new qs(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(ws))).forEach(e=>new Cs(e));o&&(this.switcher=new Us(e,this.baseSearchBarsMap,this.placeholderEl)),this.setupSearchInputFocusTracking()}_generateKeywordsTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e))}_generateLocationTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e),"&typeaheadType=GEO&geoTypes=POPULATED_PLACE,ADMIN_DIVISION_2,MARKET_AREA,COUNTRY_REGION")}_onKeywordsTypeaheadSelect(){this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadSelect(e){this.geoIdInputEl&&(this.geoIdInputEl.value=e.dataset.id),this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadInput(){this.geoIdInputEl&&(this.geoIdInputEl.value="")}_submitForm(){const e=this.el.querySelector(".keywords-typeahead-input input");null!=e&&e.validity.valueMissing?e.reportValidity():this.baseSearchBarFormEl&&this.baseSearchBarFormEl.submit()}_addCustomErrorStateHandler(){const e=this.el.querySelector(".keywords-typeahead-input input"),t=this.el.querySelector(".keywords-typeahead-input-helper");null==e||e.addEventListener("invalid",n=>{n.preventDefault(),this.baseSearchBarFormEl.classList.add("input-error"),null==t||t.classList.remove("hidden"),e.focus()})}setupSearchInputFocusTracking(){this.el.addEventListener("dismissableInputFocused",e=>{const t=e.target.getAttribute("data-tracking-control-name");t&&window.tracking&&window.tracking.then(e=>{e.fireTrackingEvent("SearchInputFocusEvent",{header:{},controlUrn:"urn:li:control:".concat(_(document),"-").concat(t)})})})}}class js extends Yi{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,pushState:i=!0,shouldMoveToTopContainer:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into mobile web modal");super(e,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:r,shouldMoveToTopContainer:o}),this.pushState=i,this.hashChangeHandlerRef=this._hashChangeHandler.bind(this)}historyBackClickHandler(){this.close({enableHistoryBack:!1})}_hashChangeHandler(e){const t=e.oldURL&&e.oldURL.split("#")[1];t&&t==="".concat("overlay_").concat(this._el.id)&&this.historyBackClickHandler()}open(){super.open(),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat("overlay_").concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);_(document);String.fromCharCode(32);function zs(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function Ws(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function Ks(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}zs(),Ws(3),Ks(128),zs(),Ws(6),Ks(400);var Vs=window||t.g;const Gs=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function Qs(){const e=Vs.location?Vs.location.hostname:"";return Gs.test(e)}function Xs(){return Qs()?Js()?"platform.linkedin.cn":"platform.linkedin.com":Js()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function Js(){const e=Vs.location?Vs.location.hostname:"";return/\.cn$/.test(e)}function Ys(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.");const i=new Vs.XMLHttpRequest;i.withCredentials=r,i.open("GET",e,!0),i.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},i.send()}function $s(e){return function(){let e=w();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function Zs(e){return function(){let e=w();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function ea(e){return function(){let e=w();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function ta(e){for(let t=1;t<arguments.length;t++){const n=arguments[t];if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=t[r];e[i]=n[i]}}}return e}function na(e){const t=new Vs.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function ra(){return/utagdb=[^;]+/.test(Vs.document.cookie)}let ia;const oa={},sa={};function aa(){return"https://".concat(Qs()?Js()?"www.linkedin.cn":"www.linkedin.com":Js()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function ca(){return function(e){let t=ta({},e);return t["compliance.isAdvertisingOptIn"]=$s(t),t["compliance.isAnalyticsAndResearchOptIn"]=Zs(),t["compliance.isFunctionalOptIn"]=ea(),t}(oa)}function la(e){if(!sa[e]){const t=function(e){return"https://".concat(Xs(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{Ys(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});sa[e]=n}return sa[e]}Vs.utag_data||(Vs.utag_data={});const ua="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let da;function ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(Xs(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(na(t))),n}function pa(){return function(){if(void 0===da&&ua){const e=Vs.document.cookie.match(/litms_utag_override=([^;]+)/);da=e?e[1]:""}return da}().length>0}function fa(e,t,n,r){e.onLoadRulesRunOnce(n);let i=ta({},t,ca());e.view(i),ra()&&Vs.trackingEventDebugData.push({profileName:r,eventType:"PV",trackingData:i})}function ma(e,t,n,r){e.onLoadRulesRunOnce(n);let i=ta({},t,ca());e.link(i),ra()&&Vs.trackingEventDebugData.push({profileName:r,eventType:"CI",trackingData:i})}function va(e,t,n){if(function(e){Vs.utag=e}(e),t instanceof Array&&t.length>0){const r=t.length;for(let i=0;i<r;i++){const r=t.shift();r.isControlInteraction?ma(e,r.data,r.callback,n):fa(e,r.data,r.callback,n)}}}function ga(e,t){!function(e){return"object"==typeof e&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)}function ya(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function ba(e){const t=function(e){return Object.keys(e.loader.cfg).filter(t=>1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load)}(e).map(t=>function(e,t){return{tagUrn:ya(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Vs.utag_cfg_ovrd=Vs.utag_cfg_ovrd||{},Vs.trackingEventDebugData=Vs.trackingEventDebugData||[],Vs.utag_cfg_ovrd.noview=!0,Vs.utag_cfg_ovrd.nocookie=!0;const Ea=ua&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Vs.navigator.userAgent),wa={};let _a,Ta,Sa,ka={};class Ca{constructor(){let{profileName:e,tracking2Instance:t,enableAllowlisting:n=!1,cacheBusterInterval:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableAllowlisting=n,this.cacheBusterInterval=r}initialize(){return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(this.isInitialized=!0,this.initializePromise=new Promise((e,t)=>{this.enableAllowlisting?(this.isAllowlistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._allowlistReadyPromise=la(this.profileName).then(e=>this._processAllowlistResult(e)).catch(e=>console.error("Unable to retrieve allowlists for profile : ".concat(this.profileName),e))):this._loadContainerTag(e,t)}),this.profileName&&(wa[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==Vs.utag&&(Vs.utag=void 0),void 0!==Vs.utag_data&&(Vs.utag_data=void 0);const n=function(){if(!ia){const e=aa();ia=new Promise((t,n)=>{Ys(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return ia}().then(e=>{Object.keys(e).forEach(t=>{!function(e,t){const n="string"!=typeof t?"":"".concat(t,".");"object"==typeof e&&Object.keys(e).forEach(t=>{oa[n+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),r=(i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return pa()?da:ha(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=Vs.document.createElement("script");t.type="text/javascript",t.src=i,t.async=!0,t.onload=e,Vs.document.getElementsByTagName("head")[0].appendChild(t)}));var i;Promise.all([n,r]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Vs.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){if(n.call(this,arguments),t.length>0){t.shift()()}}}(this._uTag),this._processQueuedEvents();const t={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&ga(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!Ea}_shouldProcessEvent(e){return Ea?Promise.resolve(!1):this.isAllowlistingEnabled?new Promise(t=>{this._allowlistReadyPromise.then(()=>{t(this._isEventAllowlisted(e))})}):Promise.resolve(!0)}_isEventAllowlisted(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}_isEventAllowlistedByPageKey(e){return void 0!==this.allowlist.pageKey[e.pageKey]}_isEventAllowlistedByControlUrn(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}addValuesToAllowlist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach(t=>{this.allowlist[e][t]=!0})}_processQueuedEvents(){this.isContainerTagLoaded?va(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=ba(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&ga(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){w().consent.consentAvailable&&!Ta?this._refireTracking():_a=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){ka.payloads&&ka.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(ua){Ta=!1;const{payloads:n=[],url:r}=ka,i=location.href,o={data:e,callback:t},s=i!==r?[]:n;s.push(o),ka={url:i,payloads:s},_a||(_a=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return w().consent.consentAvailable||this._savePayloadForRefire(e,t),this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}}function Ia(e){let{event:t,litmsInstance:n,pageKey:r}=e;const i=t.target.getAttribute("data-tracking-control-name"),o=t.target.hasAttribute("data-tracking-litms");i&&o&&n.trackControlInteraction({controlUrn:"urn:li:control:".concat(r,"-").concat(i)})}class Aa{constructor(e){if(this.trackingInstance=e,this.pageKey=_(document),this.litmsProfileName=function(e){const t=e.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(document),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new Ca({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>Ia({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||Ia({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView(){let{pageKey:e="",customParameters:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");if(!("object"==typeof t||t instanceof Object))throw new Error("CustomParamteres is expected to be an object.");const n=e||this.pageKey;this.litmsInstance&&this.litmsInstance.trackPageView(de({pageKey:n},t))}}function Ra(e){if(!Sa){if(!e)throw new Error("No trackingInstance passed in!");Sa=new Aa(e)}return Sa}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const Na={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},La={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Oa,GOOGLE_USER_FETCHED:xa,INITIALIZED:Ma}=Na,{INITIALIZATION:Pa,AUTHENTICATION:Da}=La;EventTarget;const Ba=Na,Fa=La,{GOOGLE_USER_FETCHED:qa,GOOGLE_ERROR:Ua,INITIALIZED:Ha}=Ba,{INITIALIZATION:ja}=Fa;function za(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Wa(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function Ka(e,t){return Math.round(e-t)}var Va,Ga=(Va=function(e,t){return(Va=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Va(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Qa=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}(),Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ga(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Qa),Ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ga(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Qa),Ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ga(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(Qa),$a=function(){return 0},Za=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),ec=Za&&!!window.requestAnimationFrame,tc={hasDOM:Za,hasRAF:ec,getScrollTop:$a,getScrollLeft:$a,getHeight:$a,getWidth:$a,rAF:ec?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:$a,get isDirty(){return tc.version!==tc.lastVersion},document:window.document,IntersectionObserver:Za&&window.IntersectionObserver,performance:Za&&window.performance};function nc(){++tc.version}function rc(){var e=null!=document.scrollingElement;tc.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},tc.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}Za&&(tc.getHeight=function(){return window.innerHeight},tc.getWidth=function(){return window.innerWidth},tc.updateMeta=function(){tc.meta.height=tc.getHeight(),tc.meta.width=tc.getWidth(),tc.meta.scrollLeft=tc.getScrollLeft(),tc.meta.scrollTop=tc.getScrollTop(),tc.lastVersion=tc.version},tc.updateMeta(),"loading"!==document.readyState?rc():document.addEventListener("DOMContentLoaded",rc),window.addEventListener("resize",nc,!1),window.addEventListener("scroll",nc,!1));var ic=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,tc.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var r=e.work.length;t<r;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),oc=null;var sc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ac="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),cc=0,lc=function(){function e(e,t,n,r,i,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=r,this.width=i,this.height=o,this.x=s,this.y=a,this.top=c,this.left=l}return e.generate=function(t){void 0===t&&(t=window);var n=this.revalidateRootMeta(t);return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document);var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0};return tc.isDirty&&tc.updateMeta(),e===window||e===document?(n.height=tc.meta.height,n.width=tc.meta.width,n.scrollLeft=tc.meta.scrollLeft,n.scrollTop=tc.meta.scrollTop,n):(t=Wa(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function uc(){return cc+++ac}var dc=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(oc||(oc=new ic)),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1;else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e]);this.toRemove=[]}this.applyQueue(lc.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,r,i=this;this.engine.scheduleRead((function(){n=Wa(e),r=lc.generate(i.root)})),this.engine.scheduleWork((function(){t(n,r)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new Xa,t}return sc(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.id;(0,n.callback)(e,r)}},t.prototype.watch=function(e){this.startTicking();var t=uc();return this.queue.push({callback:e,id:t}),t},t}(dc),pc=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return sc(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(hc),fc=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n)||this;return i.lastVersion=tc.version,i.queue=new Ya,i.ALLOW_CACHED_SCHEDULER=r,i}return sc(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return tc.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.callback,i=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=Wa(i)),r(e,o,s)}this.lastVersion=tc.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||uc();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(dc),mc=null;var vc=function(){function e(){this.queue=new Ja}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),gc=function(){function e(e){this.scheduler=new pc(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=lc.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),yc=null;function bc(e,t){var n=(yc||(yc={scroll:new gc((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft;return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new gc((function(e){var t=this.state,n=t.width,r=t.height;return this.state=e,r!==e.height||n!==e.width})),destroy:new vc,beforeunload:new vc,hide:new vc,show:new vc}))[e];n&&n.listen(t)}function Ec(e,t){if(yc){var n=yc[e];n&&n.unlisten(t)}}function wc(e,t){if(yc){var n=yc[e];n&&n.trigger(t)}}function _c(e){(mc||(mc=new hc)).scheduleWork(e)}function Tc(e){var t=e.left,n=e.right,r=e.top,i=e.bottom;return{left:t,x:t,top:r,y:r,bottom:i,right:n,width:n-t,height:i-r}}tc.hasDOM&&(window.addEventListener("beforeunload",(function(){wc("beforeunload"),wc("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?wc("show"):wc("hide")})));var Sc=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new fc(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||uc();return this.scheduler.watch(e,(function(e,r,i){t.onTick(e,r,i,n)}),n.__spanielId),r},e.prototype.onTick=function(e,t,n,r){var i=this,o=this.generateEntryEvent(e,n,r),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){i.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var r=0,i=function(e,t,n,r){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:kc(),intersectionRatio:0,intersectionRect:kc(),isIntersecting:!1,rootBounds:kc(),target:n};var i=t.bottom,o=t.right,s=e.left+r.left,a=e.top+r.top,c={left:s,top:a,bottom:r.bottom,right:r.right,width:e.width-(r.right+r.left),height:e.height-(r.bottom+r.top),y:a,x:s},l=Math.max(c.left,t.left),u=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-l,h=Math.min(c.top+c.height,t.bottom)-u,p=d>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:i};return function(e){var t=e.unixTime,n=e.highResTime,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=i.height*i.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:za({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Tc(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];i.intersectionRatio>=s&&r++}return{numSatisfiedThresholds:r,entry:i}},e}();function kc(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Cc={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var r=t||{threshold:[]},i=r.root,o=r.rootMargin,s=r.threshold,a=r.ALLOW_CACHED_SCHEDULER,c=r.BACKGROUND_TAB_FIX,l=r.USE_NATIVE_IO,u="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:i,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!tc.IntersectionObserver;var h=this.usingNativeIo?tc.IntersectionObserver:Sc;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),tc.hasDOM&&(bc("beforeunload",this.onWindowClosed),bc("hide",this.onTabHidden),bc("show",this.onTabShown),c&&(this.paused="visible"!==tc.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),r=0;r<e.length;r++){var i=this.recordStore[e[r]].lastSeenEntry;if(i){var o=i.intersectionRatio,s=i.boundingClientRect,a=i.rootBounds,c=i.intersectionRect,l=i.isIntersecting,u=i.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:l,rootBounds:a,intersectionRect:c,target:u})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((tc.performance.timeOrigin||tc.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:d,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:c,duration:0,visibleTime:s?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),r=performance.now();e.thresholdStates.forEach((function(i){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:r,payload:e.payload,label:i.threshold.label,threshold:i.threshold,entering:!1,rootBounds:Cc,boundingClientRect:o||Cc,intersectionRect:Cc,visibleTime:i.lastVisible.unixTime,duration:Ka(r,i.lastVisible.highResTime),target:e.target},i),i.lastSatisfied=!1,i.visible=!1,i.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,r=!!t.threshold.time;t.lastSatisfied&&(!r||r&&t.visible)&&(e.duration=Ka(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,r=this.recordStore[n.__spanielId];r&&(r.lastSeenEntry=e,this.paused||(r.thresholdStates.forEach((function(n){var r=!!n.threshold.time,i=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof i.isIntersecting?i.isIntersecting:za(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(i.entering=!0,n.lastVisible={highResTime:i.highResTime,unixTime:i.unixTime},r){var c=Number(setTimeout((function(){n.visible=!0,i.duration=Ka(performance.now(),n.lastVisible.highResTime),i.visibleTime=n.lastVisible.unixTime,t.callback([i])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,i.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(i);else t.handleThresholdExiting(i,n);n.lastEntry=e,n.lastSatisfied=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),tc.hasDOM&&(Ec("beforeunload",this.onWindowClosed),Ec("hide",this.onTabHidden),Ec("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId];n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),_c((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||uc();return this.recordStore[r]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),r}}();tc.IntersectionObserver&&tc.IntersectionObserver;const Ic=".".concat("show-more-less","__list"),Ac=".".concat("show-more-less","__more-button"),Rc=".".concat("show-more-less","__less-button"),Nc="".concat("show-more-less","__list--hide-after"),Lc="".concat("show-more-less","__button--hide");class Oc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(X);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Ic),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Nc,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Ac),this.showLessButton=this.el.querySelector(Rc),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new V(e,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",()=>this._showElements()),this.el.addEventListener("close",()=>this._hideElements()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){let{target:t}=e;if(t){let e=this._getFocusItemFromListItem(t);e&&e.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1),this._focusItem({target:this.firstHiddenListItem})}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(e){e?(this.showLessButton.classList.add(Lc),this.showMoreButton.classList.remove(Lc)):(this.showLessButton.classList.remove(Lc),this.showMoreButton.classList.add(Lc))}}const xc="roo:event:close",Mc="roo:event:ready",Pc="roo:event:nodeRendered",Dc="roo:event:noTargetMatch",Bc="roo:showSurvey";class Fc{constructor(e){let{isDev:t=!1,customTriggerFn:n,triggerTime:r=7e3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("You must pass an element to initialize qualaroo");if(this.el=e,this.isDev=t,this.qualarooIframe=this.el.querySelector(".qualaroo__iframe"),this.surveyId=this.qualarooIframe.getAttribute("data-survey-id"),this.channelId=this.qualarooIframe.getAttribute("data-channel-id"),!this.surveyId||!this.channelId)throw new Error("Channel Id and Survery Id must be present on iframe element");n?n.call(this):this._setupTrigger(r),window.addEventListener("message",e=>{this._handleQualarooMessage(e)})}_setupTrigger(e){let t,n=!1;const r=()=>{clearTimeout(t),t=setTimeout(()=>{this.showSurvey(),n=!0},e)},i=U(function(){n?window.removeEventListener("scroll",i):r()}.bind(this),250);window.addEventListener("scroll",i),r()}_handleQualarooMessage(e){let{origin:t,data:n}=e;const[r,i,,,o,s]=n;if("https://linkedin.cdn.qualaroo.com"===t&&(r||i)){if(r!==this.channelId)throw new Error("Qualaroo channelId does not match");switch(i){case xc:this.isRendered=!1;break;case Pc:s&&o&&(this.isRendered=!0,this.height=s,this.width=o);break;case Dc:console.log("No Target Match");break;case Mc:this.isDev?this.qualarooIframe.contentWindow.postMessage([Bc,this.surveyId,!0],"https://linkedin.cdn.qualaroo.com"):this.qualarooIframe.contentWindow.postMessage([Bc,this.surveyId,!1],"https://linkedin.cdn.qualaroo.com")}}}set height(e){this.qualarooIframe.height=e}set width(e){this.qualarooIframe.width=e}showSurvey(){this.el.classList.add("show")}}".".concat("accordion-item__trigger");const qc=350;class Uc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".sticky-header"),{marginApplied:t=!0,disableUnderMinimumViewportHeight:n=!1,minimumViewportHeight:r=qc}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("A header element is required to instantiate a StickyHeader");if(!e.querySelector("nav"))throw Error("The header must contain a 'nav' element in order to instantiate a StickyHeader");let i=8;if(ki()){const t=e.querySelector(".search-bar");t&&(i=t.getBoundingClientRect().height)}return this.stickyHeader=e,this.stickyElementOptions={exposeStickyState:!0,isBottom:!1,marginApplied:t,scrollThreshold:i},n&&r>0?this.setupDisableUnderMinimumViewportHeight(r):this.instantiateStickyElement(),this.stickyElement}instantiateStickyElement(){this.stickyElement=new Es(this.stickyHeader,this.stickyElementOptions)}setupDisableUnderMinimumViewportHeight(e){const t="(min-height: ".concat(e,"px)"),n=window.matchMedia(t);n.addEventListener("change",this.handleMediaQueryChange.bind(this)),this.handleMediaQueryChange(n)}handleMediaQueryChange(e){var t;e.matches?(this.stickyHeader.classList.remove("sticky-header--disabled"),document.body.classList.remove("body--sticky-header-disabled"),this.stickyElement?this.stickyElement.reactivate():this.instantiateStickyElement()):(this.stickyHeader.classList.add("sticky-header--disabled"),document.body.classList.add("body--sticky-header-disabled"),null===(t=this.stickyElement)||void 0===t||t.deactivate())}}function Hc(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}Hc("action"),Hc("openpage"),Hc("openlink");var jc;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(jc||(jc={}));new Set(Object.values(jc));Error;var zc;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(zc||(zc={})),new Set(Object.values(zc));".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class Wc{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=ms("feedLastUpdatedTime")}resetBadges(){Ni(this.badgeCountEls),Ni(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return re(e?q("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);j(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const r=Mi();return"messaging"===r&&(this._counts.messagingCount=0),"feed"===r||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this}).catch(()=>{j(window,"badgesreceived",{feedsCount:0})})}_renderBadges(){this.badgeCountEls.forEach(e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])}),this.badgeWithoutCountEls.forEach(e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])})}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,Ri(e)):t!==n&&(t>0?(e.textContent=t,Ri(e),e.classList.toggle("singular",t<=1)):Ai(e))}_setBadge(e,t){e&&(t>0?(Ri(e),e.classList.add("badge-with-no-count")):Ai(e))}_updateCacheBustUrl(e){ms("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=Xo(e?q(t.href,"pwa","noCache"):W(t.href))})}}!function(){let e}();const Kc=/\s+/,Vc=/,$/;function Gc(){const e=["^","(?:(?:https?)?:?//)?","(?:","(?!(?:10|127)(?:\\.\\d{1,3}){3})","(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})","(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})","(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])","(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}","(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))","|","(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)","(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*","(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")","(?::\\d{2,5})?","(?:(?:/|\\?)\\S*)?","$"].join("");return new RegExp(e,"i")}var Qc=function(){this.__data__=[],this.size=0};var Xc=function(e,t){return e===t||e!=e&&t!=t},Jc=Xc;var Yc=function(e,t){for(var n=e.length;n--;)if(Jc(e[n][0],t))return n;return-1},$c=Yc,Zc=Array.prototype.splice;var el=Yc;var tl=Yc;var nl=Yc;var rl=Qc,il=function(e){var t=this.__data__,n=$c(t,e);return!(n<0)&&(n==t.length-1?t.pop():Zc.call(t,n,1),--this.size,!0)},ol=function(e){var t=this.__data__,n=el(t,e);return n<0?void 0:t[n][1]},sl=function(e){return tl(this.__data__,e)>-1},al=function(e,t){var n=this.__data__,r=nl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function cl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cl.prototype.clear=rl,cl.prototype.delete=il,cl.prototype.get=ol,cl.prototype.has=sl,cl.prototype.set=al;var ll=cl,ul=ll;var dl=function(){this.__data__=new ul,this.size=0};var hl=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var pl=function(e){return this.__data__.get(e)};var fl=function(e){return this.__data__.has(e)},ml="object"==typeof ae&&ae&&ae.Object===Object&&ae,vl=ml,gl="object"==typeof self&&self&&self.Object===Object&&self,yl=vl||gl||Function("return this")(),bl=yl.Symbol,El=bl,wl=Object.prototype,_l=wl.hasOwnProperty,Tl=wl.toString,Sl=El?El.toStringTag:void 0;var kl=function(e){var t=_l.call(e,Sl),n=e[Sl];try{e[Sl]=void 0;var r=!0}catch(e){}var i=Tl.call(e);return r&&(t?e[Sl]=n:delete e[Sl]),i},Cl=Object.prototype.toString;var Il=kl,Al=function(e){return Cl.call(e)},Rl=bl?bl.toStringTag:void 0;var Nl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Rl&&Rl in Object(e)?Il(e):Al(e)};var Ll=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ol=Nl,xl=Ll;var Ml,Pl=function(e){if(!xl(e))return!1;var t=Ol(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Dl=yl["__core-js_shared__"],Bl=(Ml=/[^.]+$/.exec(Dl&&Dl.keys&&Dl.keys.IE_PROTO||""))?"Symbol(src)_1."+Ml:"";var Fl=function(e){return!!Bl&&Bl in e},ql=Function.prototype.toString;var Ul=Pl,Hl=Fl,jl=Ll,zl=function(e){if(null!=e){try{return ql.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Wl=/^\[object .+?Constructor\]$/,Kl=Function.prototype,Vl=Object.prototype,Gl=Kl.toString,Ql=Vl.hasOwnProperty,Xl=RegExp("^"+Gl.call(Ql).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Jl=function(e){return!(!jl(e)||Hl(e))&&(Ul(e)?Xl:Wl).test(zl(e))},Yl=function(e,t){return null==e?void 0:e[t]};var $l=function(e,t){var n=Yl(e,t);return Jl(n)?n:void 0},Zl=$l(yl,"Map"),eu=$l(Object,"create"),tu=eu;var nu=function(){this.__data__=tu?tu(null):{},this.size=0};var ru=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},iu=eu,ou=Object.prototype.hasOwnProperty;var su=function(e){var t=this.__data__;if(iu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ou.call(t,e)?t[e]:void 0},au=eu,cu=Object.prototype.hasOwnProperty;var lu=eu;var uu=nu,du=ru,hu=su,pu=function(e){var t=this.__data__;return au?void 0!==t[e]:cu.call(t,e)},fu=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lu&&void 0===t?"__lodash_hash_undefined__":t,this};function mu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mu.prototype.clear=uu,mu.prototype.delete=du,mu.prototype.get=hu,mu.prototype.has=pu,mu.prototype.set=fu;var vu=mu,gu=ll,yu=Zl;var bu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Eu=function(e,t){var n=e.__data__;return bu(t)?n["string"==typeof t?"string":"hash"]:n.map},wu=Eu;var _u=Eu;var Tu=Eu;var Su=Eu;var ku=function(){this.size=0,this.__data__={hash:new vu,map:new(yu||gu),string:new vu}},Cu=function(e){var t=wu(this,e).delete(e);return this.size-=t?1:0,t},Iu=function(e){return _u(this,e).get(e)},Au=function(e){return Tu(this,e).has(e)},Ru=function(e,t){var n=Su(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Nu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nu.prototype.clear=ku,Nu.prototype.delete=Cu,Nu.prototype.get=Iu,Nu.prototype.has=Au,Nu.prototype.set=Ru;var Lu=ll,Ou=Zl,xu=Nu;var Mu=ll,Pu=dl,Du=hl,Bu=pl,Fu=fl,qu=function(e,t){var n=this.__data__;if(n instanceof Lu){var r=n.__data__;if(!Ou||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xu(r)}return n.set(e,t),this.size=n.size,this};function Uu(e){var t=this.__data__=new Mu(e);this.size=t.size}Uu.prototype.clear=Pu,Uu.prototype.delete=Du,Uu.prototype.get=Bu,Uu.prototype.has=Fu,Uu.prototype.set=qu;var Hu=Uu,ju=$l,zu=function(){try{var e=ju(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Wu=zu;var Ku=function(e,t,n){"__proto__"==t&&Wu?Wu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Vu=Ku,Gu=Xc;var Qu=function(e,t,n){(void 0!==n&&!Gu(e[t],n)||void 0===n&&!(t in e))&&Vu(e,t,n)};var Xu=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}(),Ju={exports:{}};!function(e,t){var n=yl,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(Ju,Ju.exports);var Yu=yl.Uint8Array;var $u=function(e){var t=new e.constructor(e.byteLength);return new Yu(t).set(new Yu(e)),t};var Zu=function(e,t){var n=t?$u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var ed=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},td=Ll,nd=Object.create,rd=function(){function e(){}return function(t){if(!td(t))return{};if(nd)return nd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var id=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),od=Object.prototype;var sd=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||od)},ad=rd,cd=id,ld=sd;var ud=function(e){return"function"!=typeof e.constructor||ld(e)?{}:ad(cd(e))};var dd=function(e){return null!=e&&"object"==typeof e},hd=Nl,pd=dd;var fd=function(e){return pd(e)&&"[object Arguments]"==hd(e)},md=dd,vd=Object.prototype,gd=vd.hasOwnProperty,yd=vd.propertyIsEnumerable,bd=fd(function(){return arguments}())?fd:function(e){return md(e)&&gd.call(e,"callee")&&!yd.call(e,"callee")},Ed=Array.isArray;var wd=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},_d=Pl,Td=wd;var Sd=function(e){return null!=e&&Td(e.length)&&!_d(e)},kd=Sd,Cd=dd;var Id=function(e){return Cd(e)&&kd(e)},Ad={exports:{}};var Rd=function(){return!1};!function(e,t){var n=yl,r=Rd,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(Ad,Ad.exports);var Nd=Nl,Ld=id,Od=dd,xd=Function.prototype,Md=Object.prototype,Pd=xd.toString,Dd=Md.hasOwnProperty,Bd=Pd.call(Object);var Fd=function(e){if(!Od(e)||"[object Object]"!=Nd(e))return!1;var t=Ld(e);if(null===t)return!0;var n=Dd.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pd.call(n)==Bd},qd=Nl,Ud=wd,Hd=dd,jd={};jd["[object Float32Array]"]=jd["[object Float64Array]"]=jd["[object Int8Array]"]=jd["[object Int16Array]"]=jd["[object Int32Array]"]=jd["[object Uint8Array]"]=jd["[object Uint8ClampedArray]"]=jd["[object Uint16Array]"]=jd["[object Uint32Array]"]=!0,jd["[object Arguments]"]=jd["[object Array]"]=jd["[object ArrayBuffer]"]=jd["[object Boolean]"]=jd["[object DataView]"]=jd["[object Date]"]=jd["[object Error]"]=jd["[object Function]"]=jd["[object Map]"]=jd["[object Number]"]=jd["[object Object]"]=jd["[object RegExp]"]=jd["[object Set]"]=jd["[object String]"]=jd["[object WeakMap]"]=!1;var zd=function(e){return Hd(e)&&Ud(e.length)&&!!jd[qd(e)]};var Wd=function(e){return function(t){return e(t)}},Kd={exports:{}};!function(e,t){var n=ml,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(Kd,Kd.exports);var Vd=zd,Gd=Wd,Qd=Kd.exports,Xd=Qd&&Qd.isTypedArray,Jd=Xd?Gd(Xd):Vd;var Yd=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},$d=Ku,Zd=Xc,eh=Object.prototype.hasOwnProperty;var th=function(e,t,n){var r=e[t];eh.call(e,t)&&Zd(r,n)&&(void 0!==n||t in e)||$d(e,t,n)},nh=Ku;var rh=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=r?r(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),i?nh(n,a,c):th(n,a,c)}return n};var ih=/^(?:0|[1-9]\d*)$/;var oh=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ih.test(e))&&e>-1&&e%1==0&&e<t},sh=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},ah=bd,ch=Ed,lh=Ad.exports,uh=oh,dh=Jd,hh=Object.prototype.hasOwnProperty;var ph=function(e,t){var n=ch(e),r=!n&&ah(e),i=!n&&!r&&lh(e),o=!n&&!r&&!i&&dh(e),s=n||r||i||o,a=s?sh(e.length,String):[],c=a.length;for(var l in e)!t&&!hh.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||uh(l,c))||a.push(l);return a};var fh=Ll,mh=sd,vh=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},gh=Object.prototype.hasOwnProperty;var yh=ph,bh=function(e){if(!fh(e))return vh(e);var t=mh(e),n=[];for(var r in e)("constructor"!=r||!t&&gh.call(e,r))&&n.push(r);return n},Eh=Sd;var wh=function(e){return Eh(e)?yh(e,!0):bh(e)},_h=rh,Th=wh;var Sh=Qu,kh=Ju.exports,Ch=Zu,Ih=ed,Ah=ud,Rh=bd,Nh=Ed,Lh=Id,Oh=Ad.exports,xh=Pl,Mh=Ll,Ph=Fd,Dh=Jd,Bh=Yd,Fh=function(e){return _h(e,Th(e))};var qh=Hu,Uh=Qu,Hh=Xu,jh=function(e,t,n,r,i,o,s){var a=Bh(e,n),c=Bh(t,n),l=s.get(c);if(l)Sh(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=Nh(c),p=!h&&Oh(c),f=!h&&!p&&Dh(c);u=c,h||p||f?Nh(a)?u=a:Lh(a)?u=Ih(a):p?(d=!1,u=kh(c,!0)):f?(d=!1,u=Ch(c,!0)):u=[]:Ph(c)||Rh(c)?(u=a,Rh(a)?u=Fh(a):Mh(a)&&!xh(a)||(u=Ah(c))):d=!1}d&&(s.set(c,u),i(u,c,r,o,s),s.delete(c)),Sh(e,n,u)}},zh=Ll,Wh=wh,Kh=Yd;var Vh=function e(t,n,r,i,o){t!==n&&Hh(n,(function(s,a){if(o||(o=new qh),zh(s))jh(t,n,a,r,e,i,o);else{var c=i?i(Kh(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),Uh(t,a,c)}}),Wh)};var Gh=function(e){return e};var Qh=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Xh=Math.max;var Jh=function(e,t,n){return t=Xh(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Xh(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),Qh(e,this,a)}};var Yh=function(e){return function(){return e}},$h=zu,Zh=$h?function(e,t){return $h(e,"toString",{configurable:!0,enumerable:!1,value:Yh(t),writable:!0})}:Gh,ep=Date.now;var tp=function(e){var t=0,n=0;return function(){var r=ep(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Zh),np=Gh,rp=Jh,ip=tp;var op=Xc,sp=Sd,ap=oh,cp=Ll;var lp=function(e,t){return ip(rp(e,t,np),e+"")},up=function(e,t,n){if(!cp(n))return!1;var r=typeof t;return!!("number"==r?sp(n)&&ap(t,n.length):"string"==r&&t in n)&&op(n[t],e)};var dp=Vh;hp=function(e,t,n){dp(e,t,n)},lp((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=hp.length>3&&"function"==typeof i?(r--,i):void 0,o&&up(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var s=t[n];s&&hp(e,s,n,i)}return e}));var hp;document.querySelector(".upload-progress"),document.querySelector("#progressVal");document.querySelector("#share-modal .progress-overlay");let pp={};document.querySelector("#share-modal"),document.querySelector("#share-modal .textarea"),document.querySelector("#share-modal .recommendations"),document.querySelector("#share-modal .full-page-header-share");const fp=document.querySelector("#image-upload-label"),mp=document.querySelector("#image-upload"),vp=document.querySelector("#image-upload-label .image-upload-btn"),gp=document.querySelector("#share-modal .post-title"),yp=document.querySelector("#post-provider-info"),bp=document.querySelector("#post-link"),Ep=document.querySelector("#post-image"),wp=document.querySelector("#share-modal .textarea"),_p=document.querySelector(".image-preview-wrapper"),Tp=document.querySelector("#share-modal .modal-content .reshare-section"),Sp=document.querySelector(".post-button"),kp=(document.querySelector("#share-modal .modal-content"),document.querySelector("#image-preview"),document.querySelector("#share-modal .upload-progress-header"),document.querySelector("#share-with-group"),document.querySelector("#share-with-network"),document.querySelector(".remove-image-preview"),document.querySelector("#share-modal .share-actions"),document.querySelector("#share-modal .close-button"),document.querySelector(".post-settings-wrapper"),document.querySelector("#visibility-settings-modal"),document.querySelector('input[name="share-with"]:checked'),document.querySelector("#visibility-header-back .close-button"),document.querySelector("#visibility-settings-modal .settings-list-wrapper"),document.querySelector("#discard-post-modal-wrapper"),document.querySelector("#retry-upload-modal-wrapper"),document.querySelector("#max-images-prompt-modal-wrapper"),document.querySelector("#comments-enabled"),document.querySelector("#comments-disabled"),document.querySelector("#share-with-public"),document.querySelector(".modal-spinner"),ms("loadingDescription"),ms("loadedDescription"),ms("i18n_file_load_error"),()=>{fp&&fp.classList.add("disabled"),Oi(mp),Oi(vp)}),Cp=()=>{fp&&fp.classList.remove("disabled"),xi(mp),xi(vp)},Ip=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gp.textContent=e.title||"",yp.textContent=e.providerInfo||"",e.resolvedUrl?bp.href=Xo(e.resolvedUrl):bp.removeAttribute("href");const t=e.imageUrl;t&&""!==t?(Ep.src=Xo(t),Ri(Ep)):Ai(Ep)},Ap=e=>{pp=e?{shareMediaContent:{article:e}}:{}};function Rp(){var e;const t=null===(e=wp.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===_p.getAttribute("data-image-load-state"),r=Tp.children.length;t||n||r?xi(Sp):Oi(Sp)}U(e=>{const t=function(e){const t=e.split(Kc),n=[];for(let e=0;e<t.length;e++)t[e].match(Gc())&&n.push(t[e].replace(Vc,""));return n}(e.target.innerText);t.length>0?Bi("".concat("/mwlite/url-preview/","?url=").concat(t[0],"&ingestionReason=").concat("SHARE")).then(e=>e&&JSON.parse(e.responseText)).then(e=>{Ip(e),Ap(e),kp()}).catch(()=>{Ip(),Cp(),Ap()}):(Ip(),Ap(),Cp()),Rp()},300);class Np{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(e)}return null}write(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}remove(e){try{this.storage.removeItem(e)}catch(e){console.error(e)}}readWithExpiry(e,t){const n=this.read(e+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}Np.instance||(Np.instance=new Np(localStorage)),Np.instance,Np.sessionInstance||(Np.sessionInstance=new Np(sessionStorage)),Np.sessionInstance;let Lp;x.getInstance().addUnloadCallback(()=>{Lp&&Lp.close(),Ai(document.querySelector("#discard-post-modal")),Ai(document.querySelector("#visibility-settings-modal")),Ai(document.querySelector("#max-images-prompt-modal")),Ai(document.querySelector("#retry-upload-modal"))});function Op(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function xp(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("select");r&&(r.addEventListener("change",Op),r.value&&r.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(xp)}}function Mp(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),j(t,"input:cleared"),j(t,"change")}function Pp(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,r=t.querySelector("input");n&&r.setAttribute("placeholder",n),r.removeEventListener("focus",Pp)}function Dp(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function Bp(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("input"),i=e.querySelector(".right");r.addEventListener("change",Dp),r.addEventListener("focus",Pp),i&&i.addEventListener("click",Mp)}else{document.querySelectorAll(".input-container").forEach(Bp)}}const Fp="MinLength",qp="MaxLength",Up="Regex",Hp="Required",jp="RegexAllow",zp={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{pattern:new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),errorCode:"Email"},PHONE_NUMBER:{pattern:/(?:^((\+(?=[0-9]{1,4}))?))[0-9]{5,14}$/,errorCode:"PhoneNumber"}},Wp="EMAIL_ADDRESS",Kp="PHONE_NUMBER",Vp="OTHER",Gp="consentUnchecked",Qp={INPUT:"INPUT",SELECT:"SELECT"},Xp="text",Jp="checkbox";function Yp(e){return Object.keys(Qp).includes(e.tagName)}function $p(e){const t=function(e){const t=[],{minLength:n,maxLength:r,inputType:i}=e.dataset;let o;switch(i){case Vp:n&&t.push({type:Fp,MinLength:n}),r&&t.push({type:qp,MaxLength:r});break;case Wp:t.push({type:jp,RegexAllow:[zp.EMAIL]});break;case Kp:o=e.value.replace(/ /g,""),t.push({type:jp,RegexAllow:[zp.PHONE_NUMBER]})}return{value:o||e.value,ruleSet:t}}(e),n=t.value;return t.ruleSet.map(e=>((e,t)=>{const n=t.trim();if(e)switch(e.type){case Hp:if(0===n.length)return Hp;break;case Fp:if(n.length<e[Fp])return Fp;break;case qp:if(n.length>e[qp])return qp;break;case Up:for(let t=0;t<e[Up].length;t++)if(e[Up][t].pattern.test(n))return Up+e[Up][t].errorCode;break;case jp:for(let t=0;t<e[jp].length;t++)if(!e[jp][t].pattern.test(n))return jp+e[jp][t].errorCode}})(e,n)).filter(e=>!!e)}function Zp(e,t){return t&&!e?Gp:null}const ef=(e,t)=>parseInt(t.split(e)[1]);function tf(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const nf=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),rf=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function of(e){const t=e.id+"_",n=t+"q",r=t+"c";return new Promise((t,i)=>{const o=[],{urn:s,leadTrackingParams:a}=e.dataset,c={formResponse:{adFormUrn:s,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(Yp).forEach(e=>{let t;if(e.tagName===Qp.SELECT)t=((e,t)=>{const n=ef(e,t.id),r=t.selectedIndex;return{response:rf(n,r)}})(n,e),c.formResponse.answers.push(t.response);else if(e.type===Xp)if(t=((e,t)=>{const n=ef(e,t.id),r=$p(t);return 0!==r.length?{errors:r}:{response:nf(n,t.value)}})(n,e),t.response)c.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===Jp&&(t=((e,t,n,r)=>{const i=ef(e,t),o=Zp(n,r);return o?{errors:o}:{response:{consentId:i,accepted:n}}})(r,e.id,e.checked,e.required),t.response?c.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))}),0===o.length?t(c):i(o)})}class sf{constructor(e){let{isLivePreview:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Bp(),xp(),Fi("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const n=e.querySelector(".lead-gen-modal");this.modal=new js(n,{triggerByOutletEl:!t,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Yp).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),of(this.formEl).then(e=>{j(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();Z(tf(t.element,t.errorType),$.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");Ai(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=tf(e,t),r=e.closest(".lead-gen-input-container"),i=r.querySelector(".error-text");i.innerText=n,Ri(i),r.classList.add("input-error"),i.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Jp)t=Zp(e.checked,e.required);else if(e.type===Xp){const n=$p(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains("inputbox-input")&&this._handleInputError(e.target)}),this.formEl.querySelector(".submit-btn").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}he(sf,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");const af=Object.freeze({APPRECIATION:"APPRECIATION",ASSENT:"ASSENT",CELEBRATION:"CELEBRATION",EMPATHY:"EMPATHY",ENTERTAINMENT:"ENTERTAINMENT",INSPIRATION:"INSPIRATION",INTEREST:"INTEREST",LIKE:"LIKE",MAYBE:"MAYBE",PRAISE:"PRAISE",UNKNOWN:"UNKNOWN",USEFULNESS:"USEFULNESS"}),cf=Object.freeze(Object.values(af));function lf(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return re(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:r})})}const uf="CREATE",df="DELETE";class hf{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};const i=cf.includes(e)?uf:df,o={endpoint:this.endpoint,queryId:hf.query,variables:{entityUrn:t,action:i}};i===uf&&(o.variables.reactionType=e),lf(o).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}he(hf,"query","070ee23fd6fb77f92ac08f964ae1df29");Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});const pf="FOLLOW",ff="UNFOLLOW";class mf{constructor(e){if(!e)throw Error("Missing FollowMutation endpoint");this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};const i=e===pf?"FOLLOW_ACTIVE":ff;lf({endpoint:this.endpoint,queryId:mf.query,variables:{followState:i,to:t}}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}he(mf,"query","cbed571fffd8cea15209aed8d44e6759");HTMLElement;function vf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yf,bf={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Ef="GUEST",wf="MEMBER",_f=0,Tf=1,Sf=2,kf=(gf(yf={},Ef,"li_gc"),gf(yf,wf,"li_mc"),function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in vf(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},bf)t[o]=t[o]||_f,t[o]!==_f&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Tf||t[o]===_f&&i===Tf});(function(){var e=[bf.ADVERTISING,bf.ANALYTICS_AND_RESEARCH,bf.FUNCTIONAL],t=[_f,Tf,Sf,_f],n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";"))})(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));window.encodeURIComponent;function Cf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),r=e.getElementById("config"),i=r&&"true"===r.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(i||t.skipSuffix?"":"_jsbeacon"):""}function If(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function Af(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function Rf(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const Nf={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},Lf={Down:Nf.ARROW_DOWN,Right:Nf.ARROW_RIGHT,Left:Nf.ARROW_LEFT,Up:Nf.ARROW_UP,Esc:Nf.ESCAPE,Spacebar:Nf.SPACEBAR,Tab:Nf.TAB};function Of(e){return Lf[e]||e}class xf{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const Mf=function(){let e;return{getInstance:function(){return e||(e=new xf),e}}}();function Pf(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function Df(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function Bf(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=Df(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),s="&";return r<0?s="?":r===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(i).concat(s).concat(t,"=").concat(n).concat(o||"")}}function Ff(e,t,n){var r=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{i=null,n||e.apply(r,s)},l=n&&!i;clearTimeout(i),i=setTimeout(c,t),l&&e.apply(r,s)}}function qf(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function Uf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=document.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function Hf(e){return"string"!=typeof e?null:e.split("?")[0]}let jf,zf;const Wf=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function Kf(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function Vf(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=arguments.length>2?arguments[2]:void 0;return e===n?!Kf(e):r&&r.get(e)?r.get(e):(Kf(e)?t=!1:e.parentNode&&(t=Vf(e.parentNode,n,r)),r&&r.set(e,t),t)}const Gf={POLITE:"polite",ASSERTIVE:"assertive"};function Qf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gf.POLITE;jf&&(jf.removeAttribute("aria-hidden"),jf.setAttribute("aria-live",Gf.POLITE),jf.textContent="",jf.textContent=e,jf.setAttribute("aria-live",t),clearTimeout(zf),zf=setTimeout(()=>{jf.removeAttribute("aria-live"),jf.setAttribute("aria-hidden","true")},1e4))}".".concat("collapsible-dropdown","__list"),".".concat("collapsible-dropdown","__button");function Xf(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new Promise((s,a)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},c.response&&(n.response.rawHeaders=c.getAllResponseHeaders()),a(n)}})),c.addEventListener("error",(function(e){a(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!i){const e=qf("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",Rf(e))}c.send(o)});return s&&(a.length?Jf(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function Jf(e,t,n,r){try{const i=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?Yf(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,r,i,e.state.currentPageInstance)})})}catch(e){}}function Yf(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.trim().split(": "),r=n.shift();if(r){const e=n.join(": ");t.set(r.toLocaleLowerCase(),e)}}),t}var $f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{},Zf=(parseInt,"object"==typeof $f&&$f&&$f.Object===Object&&$f),em="object"==typeof self&&self&&self.Object===Object&&self;Zf||em||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){rm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const im="light",om="dark";function sm(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?om:im:void 0}var am;function cm(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fm(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function lm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dm(e,t,n){return t&&um(e.prototype,t),n&&um(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pm(e){return function(e){if(Array.isArray(e))return mm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fm(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 fm(e,t){if(e){if("string"==typeof e)return mm(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)?mm(e,t):void 0}}function mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vm(e){return(vm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var gm,ym=new Uint8Array(16);function bm(){if(!gm&&!(gm="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gm(ym)}var Em=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function wm(e){return"string"==typeof e&&Em.test(e)}for(var _m=[],Tm=0;Tm<256;++Tm)_m.push((Tm+256).toString(16).substr(1));function Sm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(_m[e[t+0]]+_m[e[t+1]]+_m[e[t+2]]+_m[e[t+3]]+"-"+_m[e[t+4]]+_m[e[t+5]]+"-"+_m[e[t+6]]+_m[e[t+7]]+"-"+_m[e[t+8]]+_m[e[t+9]]+"-"+_m[e[t+10]]+_m[e[t+11]]+_m[e[t+12]]+_m[e[t+13]]+_m[e[t+14]]+_m[e[t+15]]).toLowerCase();if(!wm(n))throw TypeError("Stringified UUID is invalid");return n}function km(e){if(!wm(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 Cm(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=km(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return Sm(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Im(e){return 14+(e+64>>>9<<4)+1}function Am(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Rm(e,t,n,r,i,o){return Am((s=Am(Am(t,e),Am(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function Nm(e,t,n,r,i,o,s){return Rm(t&n|~t&r,e,t,i,o,s)}function Lm(e,t,n,r,i,o,s){return Rm(t&r|n&~r,e,t,i,o,s)}function Om(e,t,n,r,i,o,s){return Rm(t^n^r,e,t,i,o,s)}function xm(e,t,n,r,i,o,s){return Rm(n^(t|~r),e,t,i,o,s)}function Mm(e,t,n){var r=(e=e||{}).random||(e.rng||bm)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Sm(r)}function Pm(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Dm(e,t){return e<<t|e>>>32-t}Cm("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Im(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=i,u=o;n=Nm(n,r,i,o,e[s],7,-680876936),o=Nm(o,n,r,i,e[s+1],12,-389564586),i=Nm(i,o,n,r,e[s+2],17,606105819),r=Nm(r,i,o,n,e[s+3],22,-1044525330),n=Nm(n,r,i,o,e[s+4],7,-176418897),o=Nm(o,n,r,i,e[s+5],12,1200080426),i=Nm(i,o,n,r,e[s+6],17,-1473231341),r=Nm(r,i,o,n,e[s+7],22,-45705983),n=Nm(n,r,i,o,e[s+8],7,1770035416),o=Nm(o,n,r,i,e[s+9],12,-1958414417),i=Nm(i,o,n,r,e[s+10],17,-42063),r=Nm(r,i,o,n,e[s+11],22,-1990404162),n=Nm(n,r,i,o,e[s+12],7,1804603682),o=Nm(o,n,r,i,e[s+13],12,-40341101),i=Nm(i,o,n,r,e[s+14],17,-1502002290),n=Lm(n,r=Nm(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=Lm(o,n,r,i,e[s+6],9,-1069501632),i=Lm(i,o,n,r,e[s+11],14,643717713),r=Lm(r,i,o,n,e[s],20,-373897302),n=Lm(n,r,i,o,e[s+5],5,-701558691),o=Lm(o,n,r,i,e[s+10],9,38016083),i=Lm(i,o,n,r,e[s+15],14,-660478335),r=Lm(r,i,o,n,e[s+4],20,-405537848),n=Lm(n,r,i,o,e[s+9],5,568446438),o=Lm(o,n,r,i,e[s+14],9,-1019803690),i=Lm(i,o,n,r,e[s+3],14,-187363961),r=Lm(r,i,o,n,e[s+8],20,1163531501),n=Lm(n,r,i,o,e[s+13],5,-1444681467),o=Lm(o,n,r,i,e[s+2],9,-51403784),i=Lm(i,o,n,r,e[s+7],14,1735328473),n=Om(n,r=Lm(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=Om(o,n,r,i,e[s+8],11,-2022574463),i=Om(i,o,n,r,e[s+11],16,1839030562),r=Om(r,i,o,n,e[s+14],23,-35309556),n=Om(n,r,i,o,e[s+1],4,-1530992060),o=Om(o,n,r,i,e[s+4],11,1272893353),i=Om(i,o,n,r,e[s+7],16,-155497632),r=Om(r,i,o,n,e[s+10],23,-1094730640),n=Om(n,r,i,o,e[s+13],4,681279174),o=Om(o,n,r,i,e[s],11,-358537222),i=Om(i,o,n,r,e[s+3],16,-722521979),r=Om(r,i,o,n,e[s+6],23,76029189),n=Om(n,r,i,o,e[s+9],4,-640364487),o=Om(o,n,r,i,e[s+12],11,-421815835),i=Om(i,o,n,r,e[s+15],16,530742520),n=xm(n,r=Om(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=xm(o,n,r,i,e[s+7],10,1126891415),i=xm(i,o,n,r,e[s+14],15,-1416354905),r=xm(r,i,o,n,e[s+5],21,-57434055),n=xm(n,r,i,o,e[s+12],6,1700485571),o=xm(o,n,r,i,e[s+3],10,-1894986606),i=xm(i,o,n,r,e[s+10],15,-1051523),r=xm(r,i,o,n,e[s+1],21,-2054922799),n=xm(n,r,i,o,e[s+8],6,1873313359),o=xm(o,n,r,i,e[s+15],10,-30611744),i=xm(i,o,n,r,e[s+6],15,-1560198380),r=xm(r,i,o,n,e[s+13],21,1309151649),n=xm(n,r,i,o,e[s+4],6,-145523070),o=xm(o,n,r,i,e[s+11],10,-1120210379),i=xm(i,o,n,r,e[s+2],15,718787259),r=xm(r,i,o,n,e[s+9],21,-343485551),n=Am(n,a),r=Am(r,c),i=Am(i,l),o=Am(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Im(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),Cm("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=Dm(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),_=Dm(m,5)+Pm(w,v,g,y)+b+t[w]+h[E]>>>0;b=y,y=g,g=Dm(v,30)>>>0,v=m,m=_}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]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Bm=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Fm=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Fm){var qm=new Uint8Array(256),Um=qm.length;Bm={rng:function(){return Um>qm.length-16&&(Fm.randomFillSync(qm),Um=0),qm.slice(Um,Um+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":vm(crypto))&&crypto.randomUUID;function Hm(){return Mm(Bm,new Array(16),0)}function jm(e){return pm(e).map((function(e){return String.fromCharCode(e)})).join("")}function zm(){return jm(Hm())}var Wm=/^[a-zA-Z0-9/+]+[=]+$/;function Km(e,t){return{pageUrn:Gm(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,s=o%3,a=o-s;i<a;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(s){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(Hm())}}function Vm(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Gm(e){return"urn:li:page:".concat(e)}function Qm(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Xm(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,r=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return r(e)})).catch((function(){return r(e)}))}))}))}(e)}function Jm(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Ym(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",r=window.indexedDB.open(n);return new Promise((function(i,o){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var r,s=null!==(r=n.sequenceNumber)&&void 0!==r?r:0;if("read"===e)return i(s);if(!("update"===e&&void 0!==t&&t>s))return i(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return i(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return i(0)},u.onerror=function(){o(u.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},a.oncomplete=function(){return s.close()}},r.onerror=function(){return i(null)}}))}return Promise.resolve(null)}function $m(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function Zm(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var ev,tv,nv=(ev=new Map,tv=new Map,{on:function(e,t){$m(ev,e,t)},before:function(e,t){$m(tv,e,t)},off:function(e,t){Zm(ev,e,t)},offBefore:function(e,t){Zm(tv,e,t)},emit:function(e,t){(tv.get(e)||[]).concat(ev.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){tv.clear(),ev.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var rv=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||nv.emit("internal:hide",e)};document.addEventListener("visibilitychange",rv),window.addEventListener("pagehide",rv)}var iv=Uint8Array,ov=Uint16Array,sv=Uint32Array,av=new iv([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]),cv=new iv([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]),lv=new iv([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),uv=function(e,t){for(var n=new ov(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new sv(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},dv=uv(av,2),hv=dv[0],pv=dv[1];hv[28]=258,pv[258]=28;for(var fv=uv(cv,0)[1],mv=new ov(32768),vv=0;vv<32768;++vv){var gv=(43690&vv)>>>1|(21845&vv)<<1;gv=(61680&(gv=(52428&gv)>>>2|(13107&gv)<<2))>>>4|(3855&gv)<<4,mv[vv]=((65280&gv)>>>8|(255&gv)<<8)>>>1}var yv=function(e,t,n){for(var r=e.length,i=0,o=new ov(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new ov(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new ov(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[mv[d]>>>c]=l}else for(s=new ov(r),i=0;i<r;++i)e[i]&&(s[i]=mv[a[e[i]-1]++]>>>15-e[i]);return s},bv=new iv(288);for(vv=0;vv<144;++vv)bv[vv]=8;for(vv=144;vv<256;++vv)bv[vv]=9;for(vv=256;vv<280;++vv)bv[vv]=7;for(vv=280;vv<288;++vv)bv[vv]=8;var Ev=new iv(32);for(vv=0;vv<32;++vv)Ev[vv]=5;var wv=yv(bv,9,0),_v=yv(Ev,5,0),Tv=function(e){return(e+7)/8|0},Sv=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},kv=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Cv=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[xv,0];if(1==i){var s=new iv(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var p=new ov(h+1),f=Iv(n[u-1],p,0);if(f>t){r=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=o[r].s;p[b]<t?m-=1<<t-p[b]++-1:++r}for(;r>=0&&m;--r){var E=o[r].s;p[E]==t&&(--p[E],++m)}f=t}return[new iv(p),f]},Iv=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},Av=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ov(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},Rv=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Nv=function(e,t,n){var r=n.length,i=Tv(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Lv=function(e,t,n,r,i,o,s,a,c,l,u){Sv(t,u++,n),++i[256];for(var d=Cv(i,15),h=d[0],p=d[1],f=Cv(o,15),m=f[0],v=f[1],g=Av(h),y=g[0],b=g[1],E=Av(m),w=E[0],_=E[1],T=new ov(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var k=Cv(T,7),C=k[0],I=k[1],A=19;A>4&&!C[lv[A-1]];--A);var R,N,L,O,x=l+5<<3,M=Rv(i,bv)+Rv(o,Ev)+s,P=Rv(i,h)+Rv(o,m)+s+14+3*A+Rv(T,C)+(2*T[16]+3*T[17]+7*T[18]);if(x<=M&&x<=P)return Nv(t,u,e.subarray(c,c+l));if(Sv(t,u,1+(P<M)),u+=2,P<M){R=yv(h,p,0),N=h,L=yv(m,v,0),O=m;var D=yv(C,I,0);for(Sv(t,u,b-257),Sv(t,u+5,_-1),Sv(t,u+10,A-4),u+=14,S=0;S<A;++S)Sv(t,u+3*S,C[lv[S]]);u+=3*A;for(var B=[y,w],F=0;F<2;++F){var q=B[F];for(S=0;S<q.length;++S){var U=31&q[S];Sv(t,u,D[U]),u+=C[U],U>15&&(Sv(t,u,q[S]>>>5&127),u+=q[S]>>>12)}}}else R=wv,N=bv,L=_v,O=Ev;for(S=0;S<a;++S)if(r[S]>255){U=r[S]>>>18&31,kv(t,u,R[U+257]),u+=N[U+257],U>7&&(Sv(t,u,r[S]>>>23&31),u+=av[U]);var H=31&r[S];kv(t,u,L[H]),u+=O[H],H>3&&(kv(t,u,r[S]>>>5&8191),u+=cv[H])}else kv(t,u,R[r[S]]),u+=N[r[S]];return kv(t,u,R[256]),u+N[256]},Ov=new sv([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xv=new iv(0),Mv=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Pv=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Dv(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Mv[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i,o,s,a=(i=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,r,i,o){var s=e.length,a=new iv(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=Nv(c,l+1,e.subarray(u,d))}else{for(var h=Ov[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new ov(32768),g=new ov(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},w=new sv(25e3),_=new ov(288),T=new ov(32),S=0,k=0,C=(u=0,0),I=0,A=0;u<s;++u){var R=E(u),N=32767&u,L=g[R];if(v[N]=L,g[R]=N,I<=u){var O=s-u;if((S>7e3||C>24576)&&O>423){l=Lv(e,c,0,w,_,T,k,C,A,u-A,l),C=S=k=0,A=u;for(var x=0;x<286;++x)_[x]=0;for(x=0;x<30;++x)T[x]=0}var M=2,P=0,D=f,B=N-L&32767;if(O>2&&R==E(u-B))for(var F=Math.min(p,O)-1,q=Math.min(32767,u),U=Math.min(258,O);B<=q&&--D&&N!=L;){if(e[u+M]==e[u+M-B]){for(var H=0;H<U&&e[u+H]==e[u+H-B];++H);if(H>M){if(M=H,P=B,H>F)break;var j=Math.min(B,H-2),z=0;for(x=0;x<j;++x){var W=u-B+x+32768&32767,K=W-v[W]+32768&32767;K>z&&(z=K,L=W)}}}B+=(N=L)-(L=v[N])+32768&32767}if(P){w[C++]=268435456|pv[M]<<18|fv[P];var V=31&pv[M],G=31&fv[P];k+=av[V]+cv[G],++_[257+V],++T[G],I=u+M,++S}else w[C++]=e[u],++_[e[u]]}}l=Lv(e,c,o,w,_,T,k,C,A,u-A,l),!o&&7&l&&(l=Nv(c,l+1,xv))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?ov:4==e.BYTES_PER_ELEMENT?sv:iv)(n-t);return r.set(e.subarray(t,n)),r}(a,0,r+Tv(l)+i)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,s,8,!0)),c=a.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Pv(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(a,t),Pv(a,c-8,n.d()),Pv(a,c-4,r),a}var Bv="undefined"!=typeof TextDecoder&&new TextDecoder;try{Bv.decode(xv,{stream:!0})}catch(Pr){}function Fv(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function qv(){try{return Fv()&&"keepalive"in new Request("")}catch(e){return!1}}function Uv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,o=Object.keys(n.headers);i<o.length;i++){var s=o[i];r.setRequestHeader(s,n.headers[s])}r.send(t)}}function Hv(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress;r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8");var o=t;if(i&&"undefined"!=typeof TextEncoder)try{o=Dv((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function jv(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var zv,Wv="undefined"!=typeof navigator&&"sendBeacon"in navigator,Kv=qv()?function(e,t,n,r){return new Promise((function(i){fetch(e,Hv({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,Hv({body:t,keepalive:!1,headers:n,compress:r}))})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:e.status}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:jv(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(Wv){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,Hv({body:t,keepalive:!1,headers:n,compress:r})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:200}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:jv(e)})}))}))};function Vv(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 Gv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var o=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return o.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function Qv(){return zv||(zv=Gv("idb-queue","default")),zv}function Xv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},Vv(e.transaction)}function Jv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qv();return t("readwrite",(function(t){return Xv(t,e)}))}var Yv=!1;function $v(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]:Qv();return n("readwrite",(function(n){return n.put(e),Vv(n.count()).then((function(e){if(!(e<=t.maxNumber))return Xv(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return Jv(t,n)}))}function Zv(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]:Qv();return Yv?Promise.resolve():$v(e,t,n)}function eg(e,t,n){return t("readwrite",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),t.delete(),(e<0||r.length<e)&&t.continue())},Vv(t.transaction).then((function(){return r}))}))}function tg(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length<e)&&t.continue())},Vv(t.transaction).then((function(){return r}))}))}function ng(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qv();return tg(e,t,"next")}function rg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qv();return tg(e,t,"prev")}function ig(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function og(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function sg(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function ag(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function cg(e,t){var n=0;return{throttledFn:function(){var r=Date.now();r-n>t&&(og((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var lg=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];lm(this,e),hm(this,"config",void 0),hm(this,"compress",void 0),hm(this,"throttleControl",void 0),hm(this,"withStore",void 0),hm(this,"disablePersistence",!1),this.config=t,this.compress=r;var i=t.measureIDB;i&&performance.mark(i.createStartMark),this.withStore=Gv(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=cg(this.replayEntries.bind(this),t.throttleWait)}return dm(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){og((function(){return"Persisting to DB "+e.url})),Zv(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),og((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,sg((function(){return"push failed"}))}))};this.config.useIdle?ag(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]:Qv();return Yv=!0,e("readwrite",(function(e){return e.clear(),Vv(e.transaction).finally((function(){return Yv=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,sg((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([]):ng(t,this.withStore).catch((function(){return e.disablePersistence=!0,sg((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([]):rg(t,this.withStore).catch((function(){return e.disablePersistence=!0,sg((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){og((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qv();return eg(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,s=i.body,a=i.headers,c=i.timestamp,l=i.statusCode,u=i.attemptCount;return og((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,s),Kv(o,s,ig(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,r;null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,s),e.replayEntries()}else{var i,a,d,h,p,f;if(u+1>e.config.attemptLimit)return og((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(i=(a=e.config).onResult)||void 0===i||i.call(a,t,s));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,s),og((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),Zv({url:o,body:s,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(p=(f=e.config).onResult)||void 0===p||p.call(f,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&sg((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?ag(t):t()}}}]),e}(),ug=function(){function e(){lm(this,e)}return dm(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}(),dg=function(){function e(t,n){lm(this,e),hm(this,"queue",void 0),hm(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new lg(t,n.compress):new ug}return dm(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}();hm(dg,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var hg=[502,504],pg=[429,503],fg=function(){function e(t,n,r,i){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];lm(this,e),hm(this,"url",void 0),hm(this,"body",void 0),hm(this,"config",void 0),hm(this,"persistenceConfig",void 0),hm(this,"compress",void 0),hm(this,"timestamp",void 0),hm(this,"isClearQueuePending",!1),hm(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return dm(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 Kv(e.url,e.body,t,e.compress)}),n,t).finally((function(){og((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,r){var i=this,o=this.getAttemptCount(t)-1;return e(ig(n,this.config.headerName,o,r)).then((function(r){var o,s,a,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),a=r;else if(og((function(){return"retry rejected "+JSON.stringify(r)})),i.shouldPersist(t,r))i.persistenceConfig.db.pushToQueue({url:i.url,body:i.body,headers:n,statusCode:r.statusCode,timestamp:i.timestamp,attemptCount:i.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:r.statusCode};else{if(t>0&&i.isRetryableError(r)){var l,u;null===(l=(u=i.config).onIntermediateResult)||void 0===l||l.call(u,r,i.body);var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return og((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return i.retry(e,t-1,n,r.statusCode)}))}(a=r).drop=!0}return null===(o=(s=i.config).onIntermediateResult)||void 0===o||o.call(s,a,i.body),a}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function mg(e,t,n,r,i){"control"!==r&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&qv()&&t&&n}()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}("beacons");var s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},l=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==i?void 0:i.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==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:hg,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var i=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:pg,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new dg(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,s){var a;return Fv()?new fg(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||pg},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body);if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){nv.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){nv.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var vg=function(){function e(t){lm(this,e),hm(this,"host",void 0),this.host=t}return dm(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&&mg(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){nv.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();qv()&&"control"!==o&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{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){nv.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i||!Fv()||"undefined"==typeof Promise?Uv(e,JSON.stringify(t),{headers:n}):Kv(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var r=this.host.retryConfig.lixKey;return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),gg="undefined"!=typeof window&&"undefined"!=typeof document,yg=/JSESSIONID="?([^";]+)"?/,bg="",Eg=0;function wg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?yg:r;if(!bg||Date.now()-Eg>n){var o=gg&&document.cookie.match(i);bg=o&&o[1]||"",Eg=Date.now()}return bg}var _g=function(){function e(t){lm(this,e),hm(this,"networkTransporter",void 0),hm(this,"inactive",void 0),hm(this,"mpName",void 0),hm(this,"endpoint",void 0),hm(this,"debug",void 0),this.networkTransporter=new vg(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=Sg;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Tg;break;case"https://www.linkedin-ei.com/li/track":t=Tg;break;default:n=!0,t=Tg}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return dm(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":wg(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Tg="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Sg="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function kg(e){return"string"==typeof e}function Cg(e){return kg(e)?e:e.topicName||e.eventName}function Ig(e){return kg(e)?e:e.eventName}var Ag,Rg,Ng=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lm(this,e),hm(this,"host",void 0),hm(this,"cmoTransporter",void 0),hm(this,"clientMonitoringInstanceId",zm()),hm(this,"currentContext",xg()),hm(this,"appState",{}),hm(this,"estimatedFragmentSize",0),hm(this,"fragmentSizeLimit",void 0),hm(this,"activeFragmentEvent",void 0),hm(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new _g(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Og(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return dm(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,r=cm(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:Ig(t),eventTopic:Cg(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,i===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(i,(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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,r=t.requestHeader,i=this.activeFragmentEvent;i.header=n,i.requestHeader=r,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=Og(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,t)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=Mg(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Mg(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:"0000000000000000"}}}}]),e}();function Lg(e){return Ag||(Ag=new Ng(e)),{getCurrentInstanceId:function(){return Ag.getCurrentInstanceId()},logEventGenerated:function(e){return Ag.logEventGenerated(e)},logEventReadyToSend:function(e){Ag.logEventReadyToSend(e)},logEventSent:function(e){Ag.logEventSent(e)},logPersistedEventSent:function(e,t){Ag.logEventSent(t,e)},logNetworkResponseCode:function(e){Ag.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Ag)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Ag.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Ag.logFailedEvent(t,n,r,i,e)},flush:function(){Ag.flush()},destroy:function(){Ag=void 0},isDestroyed:function(){return void 0===Ag},setCurrentContext:function(e){Ag.setCurrentContext(e)},updateAppState:function(e){Ag.updateAppState(e)}}}function Og(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,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:i.requestHeader,header:i.header}}function xg(){return{pageKey:"unknown",pageInstance:Km("unknown")}}function Mg(e){return Array.isArray(e)?jm(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Wm)}(e)?atob(e):jm(function(e){return km(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"}(Rg||(Rg={}));var Pg=function(){function e(t){var n=this;lm(this,e),hm(this,"host",void 0),hm(this,"queue",void 0),hm(this,"preContextQueue",void 0),hm(this,"debounceTimer",void 0),hm(this,"unloadHandlers",void 0),hm(this,"maxQueueSize",void 0),hm(this,"flushDebounceTime",void 0),hm(this,"trackingEventListeners",[]),hm(this,"onHideHandler",(function(){n.forceFlush()})),hm(this,"networkTransporter",void 0),hm(this,"clientMonitoringConn",void 0),hm(this,"clientSequenceNumberCounter",void 0),hm(this,"isTimerRunning",void 0),hm(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var r=t.batching;this.maxQueueSize=r&&r.maxSize||1,this.flushDebounceTime=r&&r.debounceTime||0,nv.on("internal:hide",this.onHideHandler),this.networkTransporter=new vg(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Lg(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return dm(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r;if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent(Rg.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-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 r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(i,Rg.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(Cg(e.id)));var n,r=this.host,i=r.api.Promise,o=r.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))):(this.preContextQueue.push(t),i.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,nv.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:Km("unknown"),pageKey:"unknown"}).forEach((function(t){return e.queue.push(t)})),this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n;return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this;Ym("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){nv.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){Ym("update",this.clientSequenceNumberCounter).catch((function(e){nv.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-update"],reason:e})}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this;"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=Qm(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,o=r.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?"PageViewEvent"===e:"PageViewEvent"===e.eventName}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof i&&null!==this.host.locale||(p=i);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:r};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var v={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},g=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return g&&c(v.header,{clientMonitoringInstanceId:g,clientMonitoringInstanceEventNumber:y}),c(e.body,v)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,r,i=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),r=e.getBreadcrumbs(t),s=e.envelop(t.id,n,r);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?i.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(i.length+o.length),r=this.clientMonitoringConn,n={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==r||r.logFailedEvent(Rg.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,i,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var Dg,Bg,Fg,qg,Ug=function(){function e(t,n){lm(this,e),this.clientBreadcrumbType=t,this.id=n}return dm(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,r){return"build"===r?function(){return e}:function(n){return e[r.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 Hg(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var i=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=i&&{pageInstance:i,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}function jg(e){return"retryConfig"in e.host}function zg(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Dg||(Dg={})),function(){function e(t,n){var r,i;if(lm(this,e),hm(this,"transporter",void 0),hm(this,"delegate",void 0),hm(this,"currentContext",void 0),hm(this,"appState",void 0),hm(this,"previousAppContext",void 0),hm(this,"customTransporters",void 0),hm(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new Pg(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Lg(t.host))}dm(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){jg(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=jg(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Qm(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]:{},r=this.navMetaFromSeed(e,Hg(t));if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Qm(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Qm(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,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=Vm(n.pageKey,e),s={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,r){if(!t){var i=Cg(e),o=void 0===t?"undefined":null===t?"null":vm(t),s='Firing tracking event "'.concat(i,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(i);this.clientMonitoringConn.logFailedEvent(Rg.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=r||[];if(c.length>0){var l=c.map((function(e){return Ug.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=this.generateEnvelope(e,t,n),o=r.length>0?this.addBreadcrumbsToEnvelope(i,r):i;return o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(kg(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var o=i.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=Cg(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Rg.UNKNOWN_EXECUTION_ERROR,i.id,c,l)}throw new Error(c)}return s.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Km(e,t)}},{key:"firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),o=this.generateEnvelope("PageViewEvent",i,{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),nv.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 Vm((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var s=r&&r.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Qm(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}])}(),function(){function e(t,n){var r,i=this;lm(this,e),hm(this,"core",void 0),hm(this,"protocol",void 0),hm(this,"throttleKeySet",new Set),hm(this,"config",void 0),hm(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},nv.on("internal:error",this.reportTransporterError)}dm(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callTreeId,s=void 0===o?"":o,a=i.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,v=void 0===m?0:m,g=e.columnNumber,y=void 0===g?0:g,b=this.core.host,E=b.appId,w=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,C=b.api,I=C.Promise,A=C.location,R=A.host,N=A.pathname,L=A.search,O=A.hash,x=void 0===O?"":O;if(c){t={};var M=new Map;Object.keys(c).forEach((function(e){M.set(e.toLowerCase(),c[e])})),t.callTreeId=M.get("x-li-uuid"),t.microsoftEdgeReference=M.get("x-msedge-ref"),t.pointOfPresenceId=M.get("x-li-pop"),t.fabric=M.get("x-li-fabric")}var P=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:v,m:l,s:h,t:u,u:f},h:x,l:n.protocol,o:R,p:N,pageKey:e.pageKey,q:L,service:_,serviceInstance:T,serviceVersion:w,t:r,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return P();var D=zg(u+l+h+r.join("")+s);return this.throttleKeySet.has(D)?I.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),P())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),nv.off("internal:error",this.reportTransporterError)}}])}();var Wg=function(){function e(){lm(this,e),hm(this,"userTimingEntries",[]),hm(this,"longTasks",[]),hm(this,"resourceTimingEntries",[]),hm(this,"cdnData",void 0)}return dm(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(Vg),cdnData:this.cdnData}}}]),e}(),Kg=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Vg(e){return Kg.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function Gg(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};Fg=Object.assign(Object.assign({},n),t),qg=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Fg.root,n);var r=Qg(e,Bg.All,(function(){return Qg(e,Bg.Two,(function(){return Qg(e,Bg.One)}))}));if(r){var i=ry(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(t.length>2&&t.length>Fg.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>Fg.maxNumberOfTries)return i;r.counter+=1;var s=pm(t);s.splice(o,1);var a=Jg(s);if(r.visited.has(a))return i;$g(s)&&iy(s,n)&&(i.push(s),r.visited.set(a,!0),i=i.concat(e(s,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),Jg(r)}throw new Error("Selector was not found.")}function Qg(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var e=ty(function(e){var t=e.getAttribute("id");return t&&Fg.idName(t)?{name:"#"+uy(t,{isIdentifier:!0}),penalty:0}:null}(o))||ty.apply(void 0,pm(function(e){return Array.from(e.attributes).filter((function(e){return Fg.attr(e.name,e.value)})).map((function(e){return{name:"["+uy(e.name,{isIdentifier:!0})+'="'+uy(e.value)+'"]',penalty:.5}}))}(o)))||ty.apply(void 0,pm(function(e){return Array.from(e.classList).filter(Fg.className).map((function(e){return{name:"."+uy(e,{isIdentifier:!0}),penalty:1}}))}(o)))||ty(function(e){var t=e.tagName.toLowerCase();return Fg.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if(t===Bg.All)a&&(e=e.concat(e.filter(ey).map((function(e){return Zg(e,a)}))));else if(t===Bg.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(ey).map((function(e){return Zg(e,a)}))));else if(t===Bg.One){var c=function(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 r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||fm(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.")}()}(e=e.slice(0,1),1)[0];a&&ey(c)&&(e=[Zg(c,a)])}var l,u=cm(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(i.push(e),i.length>=Fg.seedMinLength&&(r=Xg(i,n)))return"break";o=o.parentElement,s++};o&&o!==Fg.root.parentElement&&"break"!==a(););return r||(r=Xg(i,n)),r}function Xg(e,t){var n=ry(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=cm(t[0]);try{for(o.s();!(r=o.n()).done;){var s=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return i}return[n]}(e));if(n.length>Fg.threshold)return t?t():null;var r,i=cm(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if($g(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function Jg(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function Yg(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function $g(e){switch(qg.querySelectorAll(Jg(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Jg(e)));case 1:return!0;default:return!1}}function Zg(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function ey(e){return"html"!==e.name&&!e.name.startsWith("#")}function ty(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(ny);return r.length>0?r:null}function ny(e){return null!=e}function ry(e){return Array.from(e).sort((function(e,t){return Yg(e)-Yg(t)}))}function iy(e,t){return qg.querySelector(Jg(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Bg||(Bg={}));var oy,sy=/[ -,\.\/:-@\[-\^`\{-~]/,ay=/[ -,\.\/:-@\[\]\^`\{-~]/,cy=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ly={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function uy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},ly),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var l=e.charAt(a++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?sy.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!i&&('"'==l&&r==l||"'"==l&&r==l)||i&&ay.test(l)?"\\"+l:l;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(cy,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+s+r:s}function dy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function hy(e){var t=e||performance;return Math.round(t.now())}function py(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Gg(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=py(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function fy(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){r.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){r.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),r}function my(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var vy,gy=function(){function e(t){lm(this,e),hm(this,"hostApis",void 0),hm(this,"hostnameProperties",void 0),hm(this,"usedHostnames",void 0),hm(this,"abortController",void 0),hm(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 dm(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Jm(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,r=n.AbortController,i=n.Promise,o=Xm(Jm(this.pendingPromises),i),s=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(oy=oy||r.createElement("a")).href=n,oy.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),yy=function(){function e(t,n,r,i){lm(this,e),hm(this,"hostApis",void 0),hm(this,"statics",void 0),hm(this,"options",void 0),hm(this,"allowTimingOrigin",void 0),hm(this,"collectResourceTimings",void 0),hm(this,"collectCdnData",void 0),hm(this,"perfObserver",void 0),hm(this,"renderTimings",new Map),hm(this,"urlToTreeId",new Map),hm(this,"cdnDataProvider",void 0),hm(this,"observables",new Wg),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new gy(t))}return dm(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(oy=oy||t.createElement("a")).href=e,oy.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:dy(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||dy(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{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,r=t.PerformanceObserver,i=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",r||(this.observables.userTimingEntries=fy(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,by.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(i,this.collectAsynchronousData(!0)),i}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var r=this.cdnDataProvider.getPresentData();n.cdnData=r,n.usedCDN=this.extractUsedCDN(r)}return n}var i=[];return this.collectCdnData&&i.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),i.length>0?Xm(i,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,r=e.name,i=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:i,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:i,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:r,startTime:i})}))})),this.observables.userTimingEntries=fy(this.hostApis.performance,this.options,!1);var n=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance;"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){return e.processSingleResourceTiming(t)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e){this.collectResourceTimings&&this.observables.resourceTimingEntries.push(e),this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:my(this.renderTimings),networkInformationMetrics:Ey(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),by=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Ey(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix"}(vy||(vy={}));var wy=(hm(am={},"web-ui-framework","EMBER"),hm(am,"app-id","linkedin.rum.tracking"),hm(am,"app-version","unknown"),hm(am,"is-single-page-app",!0),hm(am,"user-timing-mark-enabled",!1),hm(am,"user-timing-measure-enabled",!0),hm(am,"beacon-source","apps"),hm(am,"enable-rs-timing",!0),hm(am,"enable-cdn-tracking",!1),hm(am,"async-plugins-timeout",5e3),hm(am,"beacon-timeout",3e4),hm(am,"enable-memory-measurement",!1),hm(am,"pageKeyPrefix",""),am),_y=function(){function e(t,n,r){lm(this,e),hm(this,"featureName",void 0),hm(this,"trackingCore",void 0),hm(this,"rumConfig",void 0),hm(this,"observing",!1),hm(this,"basePageTreeId",void 0),hm(this,"startPageInstance",void 0),hm(this,"startMemory",void 0),hm(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return dm(e,[{key:"startObserving",value:function(){var t,n=this,r=this.getMemory();r&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||Km("unknown"),this.startMemory=r,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:hy(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]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();hm(_y,"checkpoints",[1,3,10,30,90,180,300]);var Ty,Sy,ky,Cy,Iy,Ay=dm((function e(t,n,r){lm(this,e),hm(this,"webUIFramework",void 0),hm(this,"timeSource",void 0),hm(this,"isSinglePageApp",void 0),hm(this,"appRenderMode",void 0),hm(this,"isAppRenderFailed",void 0),hm(this,"pageLoadMode","INITIAL"),hm(this,"isSSL",void 0),hm(this,"treeId",void 0),hm(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:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),Ry=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)}},Ny=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){}},Ly=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Oy=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},xy=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},My=-1,Py=function(){return"hidden"===document.visibilityState?0:1/0},Dy=function(){Ly((function(e){var t=e.timeStamp;My=t}),!0)},By=function(){return My<0&&(My=Py(),Dy(),Oy((function(){setTimeout((function(){My=Py(),Dy()}),0)}))),{get firstHiddenTime(){return My}}},Fy=!1,qy=-1,Uy=function(e,t){Fy||(function(e,t){var n,r=By(),i=Ry("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:Ny("paint",o);(s||a)&&(n=xy(e,i,t),s&&o(s),Oy((function(r){i=Ry("FCP"),n=xy(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){qy=e.value})),Fy=!0);var n,r=function(t){qy>-1&&e(t)},i=Ry("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],r=s[s.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>i.value&&(i.value=o,i.entries=s,n())}},c=Ny("layout-shift",a);c&&(n=xy(r,i,t),Ly((function(){c.takeRecords().map(a),n(!0)})),Oy((function(){o=0,qy=-1,i=Ry("CLS",0),n=xy(r,i,t)})))},Hy={passive:!0,capture:!0},jy=new Date,zy=function(e,t){Ty||(Ty=t,Sy=e,ky=new Date,Vy(removeEventListener),Wy())},Wy=function(){if(Sy>=0&&Sy<ky-jy){var e={entryType:"first-input",name:Ty.type,target:Ty.target,cancelable:Ty.cancelable,startTime:Ty.timeStamp,processingStart:Ty.timeStamp+Sy};Cy.forEach((function(t){t(e)})),Cy=[]}},Ky=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){zy(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Hy),removeEventListener("pointercancel",r,Hy)};addEventListener("pointerup",n,Hy),addEventListener("pointercancel",r,Hy)}(t,e):zy(t,e)}},Vy=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ky,Hy)}))},Gy=function(e,t){var n,r=By(),i=Ry("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=Ny("first-input",o);n=xy(e,i,t),s&&Ly((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Oy((function(){var r;i=Ry("FID"),n=xy(e,i,t),Cy=[],Sy=-1,Ty=null,Vy(addEventListener),r=o,Cy.push(r),Wy()}))},Qy={},Xy=function(e,t){var n,r=By(),i=Ry("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},s=Ny("largest-contentful-paint",o);if(s){n=xy(e,i,t);var a=function(){Qy[i.id]||(s.takeRecords().map(o),s.disconnect(),Qy[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Ly(a,!0),Oy((function(r){i=Ry("LCP"),n=xy(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,Qy[i.id]=!0,n(!0)}))}))}))}},Jy=["LCP","FID","CLS"],Yy={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},$y={},Zy=function(){var e;if(!gg)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),eb=!1,tb=[],nb={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function rb(){var e=!0===window.__test__resetWebVitalsState;if(!eb||e){e&&(tb=[]),Jy.forEach(ib);var t=Symbol();Iy=t,[Xy,Gy,Uy].forEach((function(e){return e(ob.bind(null,t),!0)})),[Xy,Gy,Uy].forEach((function(e){return e(sb.bind(null,t))})),eb=!0}}function ib(e){$y[e]={name:e,value:-1,updateHistory:[]};var t=nb[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||($y[e].value=-2)}function ob(e,t){if(e===Iy){var n=$y[t.name],r=hy();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),tb.forEach((function(e){return e(t,r,!1)}))}}function sb(e,t){e===Iy&&tb.forEach((function(e){return e(t,hy(),!0)}))}var ab=function(){function e(t,n){lm(this,e),hm(this,"basePageTreeId",void 0),hm(this,"basePageKey",void 0),hm(this,"observing",!1),hm(this,"appContextMap",new Map),hm(this,"rumConfig",void 0),hm(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return dm(e,[{key:"startObserving",value:function(){var e,t,n=this;rb(),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",Jy.forEach((function(e){var t;-2===(null===(t=$y[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),tb.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var r;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=this.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))}},{key:"reportMetric",value:function(e){var t=$y[e],n={name:Yy[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=$y[e];if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Zy},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],s={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:py(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,r);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:py(o.target)}}(n,r);break;case"CLS":s=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),o=null;r&&r.sources&&r.sources.length&&(o=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(i.time);return o&&a?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":py(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(s){var a={};return i(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,r,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,r){var i,o;lm(this,e),hm(this,"core",void 0),hm(this,"config",void 0),hm(this,"collector",void 0),hm(this,"boomerangStart",-1),hm(this,"webVitalsObserver",void 0),hm(this,"appMemoryObserver",void 0),hm(this,"pageMemoryObserver",void 0),hm(this,"liveTokens",new Set),hm(this,"stateWM",new WeakMap),hm(this,"activeToken",void 0),hm(this,"isInitial",void 0),hm(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(r.host.api.assign({},wy),n);var s="enabled"===(null===(i=(o=this.core.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new yy(r.host.api,new Ay(t,this.config,r.host),this.config,s),this.collector.startObserving(),nv.before("internal:hide",this.beforeHideHandlerBound)}dm(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,r;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,o=Object.create(null),s="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=o,this.liveTokens.add(o),this.stateWM.set(o,{isInitial:this.isInitial,startTime:dy(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(r=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pemberly.tracking.rum-memory-measurement")))&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new _y("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new _y("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new ab(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var s=this.stateWM.get(e),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=dy(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=r.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){r.fireRumEvent(e,l)})):r.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else nv.emit("internal:error",{tags:["core-web-tracking:rum:end"],reason:new Error("RUM end: rum token passed is invalid")})}},{key:"destroy",value:function(){var e,t,n;nv.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,o=r.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||i,d=s-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:s},e)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var cb="undefined"!=typeof window&&"undefined"!=typeof performance,lb="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function ub(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",db(n,t))}function db(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=If(document),r=Af(document),i=sm();let o={};return i&&(o.theme=i.toUpperCase()),r&&(o.interfaceLocale=r),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function hb(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)}!function(){function e(t,n){lm(this,e),hm(this,"featureKey",void 0),hm(this,"productName",void 0),hm(this,"endPageInstance",void 0),hm(this,"startPageInstance",void 0),hm(this,"isCanceled",!1),hm(this,"featureIdentifier",void 0),hm(this,"name",void 0),hm(this,"startTime",void 0),hm(this,"duration",void 0),hm(this,"marks",[]),hm(this,"spanStarts",new Map),hm(this,"spans",[]),hm(this,"isSpanContainer",!1),hm(this,"basePageTreeId",void 0),hm(this,"isClosed",!1),this.featureKey=t,this.productName=n;var r=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(r),this.name=t}dm(e,[{key:"start",value:function(e){this.startPageInstance=e,cb&&(this.startTime=hy(),lb&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){cb&&(this.marks.push({name:e,startTime:hy()}),lb&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))))}},{key:"spanStart",value:function(e){cb&&(this.spanStarts.set(e,hy()),lb&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(cb&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:hy()-n}),lb&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")))}}},{key:"deleteSpan",value:function(e){if(this.isClosed)throw new Error("[rum measurement] spans can only be deleted before the feature performance measurement ends.");for(var t=this.spans.length-1;t>=0;t--)if(this.spans[t].name===e)return void this.spans.splice(t,1)}},{key:"end",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isClosed){if(this.isSpanContainer=t,this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));this.endPageInstance=e,cb&&(this.duration=hy()-this.startTime,lb&&!this.isSpanContainer&&(performance.mark("LI:".concat(this.featureIdentifier,"-end")),performance.measure("LI:".concat(this.featureIdentifier),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-end"))),this.cleanUp())}}},{key:"cancel",value:function(){this.isCanceled||(this.isCanceled=!0)}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"toEventBody",value:function(){if(cb){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||Km("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(cb){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'));if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'));if(this.isSpanContainer&&0===this.spans.length)throw new Error("The span container should have at least one span");for(var e=0,t=["startTime","duration","basePageTreeId"];e<t.length;e++){var n=t[e];if(void 0===this[n])throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is missing "').concat(n,'"'))}}}},{key:"cleanUp",value:function(){this.spanStarts.clear()}}])}();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 pb(e){return e.scrollHeight>e.offsetHeight}function fb(e,t){const n=Pf(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function mb(e){gb([e])}function vb(e){yb([e])}function gb(e){fb(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function yb(e){fb(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function bb(e){e.setAttribute("disabled","disabled")}function Eb(e){e.removeAttribute("disabled")}function wb(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}const _b={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Tb(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function Sb(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Cf(document),i=Tb();return window.tracking.then(o=>(t=o.generateTrackingId(),Xf(e,nm(nm({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[_b.EFFECTIVE_CONNECTION_TYPE]:i,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":r,"X-li-page-instance":"urn:li:page:".concat(r,";").concat(t)}}))))}function kb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r=null==n?void 0:n.querySelector(".".concat(e));if(r&&pb(r)){const i=n.querySelector(t);null==i||i.classList.remove("invisible"),null==i||i.addEventListener("click",()=>{r.classList.remove(e),i.classList.add("invisible")})}}class Cb{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const Ib=["class","disabled","style","tabindex","type"];class Ab{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 Cb(this._container)}init(){this._observer.observe(this._container,{attributeFilter:Ib,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,r=Of(t),i=r===Nf.TAB&&e.shiftKey;!i&&r===Nf.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):i&&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(Wf)],n=new Map;let r,i,o=0,s=t.length-1;for(;(!r||!i)&&o<=s;){if(!r){const i=t[o];r=Vf(i,e,n)&&i,o++}if(!i){const r=t[s];i=Vf(r,e,n)&&r,s--}}return i=i||r,[r,i]}}const{ENTER:Rb,ESCAPE:Nb}=Nf;class Lb{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,shouldMoveToTopContainer:i=!0}=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,i&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),r&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._shouldHideModal=n,this._shouldMoveToTopContainer=i,r&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new Ab(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=Of(e.key),n=t===Rb&&document.activeElement===this._exitButtonEl;(t===Nb||n)&&(this.close(),e.preventDefault())}open(){if(!this._shouldHideModal())return this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),Uf(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=Cf(document,{skipSuffix:!0});ub(e,"ajax","".concat(t,"_").concat(this._el.id))}):Promise.resolve();Uf(this._el,"didNotOpen")}close(){this._overlayEl.classList.remove("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),Uf(this._el,"close"),this._previouslyFocusedEl&&this._previouslyFocusedEl.focus(),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}var Ob=Object.hasOwnProperty,xb=Object.setPrototypeOf,Mb=Object.isFrozen,Pb=Object.getPrototypeOf,Db=Object.getOwnPropertyDescriptor,Bb=Object.freeze,Fb=Object.seal,qb=Object.create,Ub="undefined"!=typeof Reflect&&Reflect,Hb=Ub.apply,jb=Ub.construct;Hb||(Hb=function(e,t,n){return e.apply(t,n)}),Bb||(Bb=function(e){return e}),Fb||(Fb=function(e){return e}),jb||(jb=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var zb=Zb(Array.prototype.forEach),Wb=Zb(Array.prototype.pop),Kb=Zb(Array.prototype.push),Vb=Zb(String.prototype.toLowerCase),Gb=Zb(String.prototype.match),Qb=Zb(String.prototype.replace),Xb=Zb(String.prototype.indexOf),Jb=Zb(String.prototype.trim),Yb=Zb(RegExp.prototype.test),$b=function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return jb(e,n)}}(TypeError);function Zb(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Hb(e,t,r)}}function eE(e,t){xb&&xb(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=Vb(r);i!==r&&(Mb(t)||(t[n]=i),r=i)}e[r]=!0}return e}function tE(e){var t=qb(null),n=void 0;for(n in e)Hb(Ob,e,[n])&&(t[n]=e[n]);return t}function nE(e,t){for(;null!==e;){var n=Db(e,t);if(n){if(n.get)return Zb(n.get);if("function"==typeof n.value)return Zb(n.value)}e=Pb(e)}return function(e){return console.warn("fallback value for",e),null}}var rE=Bb(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),iE=Bb(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),oE=Bb(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sE=Bb(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),aE=Bb(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),cE=Bb(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),lE=Bb(["#text"]),uE=Bb(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),dE=Bb(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hE=Bb(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),pE=Bb(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fE=Fb(/\{\{[\s\S]*|[\s\S]*\}\}/gm),mE=Fb(/<%[\s\S]*|[\s\S]*%>/gm),vE=Fb(/^data-[\-\w.\u00B7-\uFFFF]/),gE=Fb(/^aria-[\-\w]+$/),yE=Fb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bE=Fb(/^(?:\w+script|data):/i),EE=Fb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wE="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 _E(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var TE=function(){return"undefined"==typeof window?null:window},SE=function(e,t){if("object"!==(void 0===e?"undefined":wE(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var kE=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TE(),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 r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,v=nE(m,"cloneNode"),g=nE(m,"nextSibling"),y=nE(m,"childNodes"),b=nE(m,"parentNode");if("function"==typeof s){var E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}var w=SE(f,r),_=w?w.createHTML(""):"",T=i,S=T.implementation,k=T.createNodeIterator,C=T.createDocumentFragment,I=T.getElementsByTagName,A=r.importNode,R={};try{R=tE(i).documentMode?i.documentMode:{}}catch(e){}var N={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==R;var L=fE,O=mE,x=vE,M=gE,P=bE,D=EE,B=yE,F=null,q=eE({},[].concat(_E(rE),_E(iE),_E(oE),_E(aE),_E(lE))),U=null,H=eE({},[].concat(_E(uE),_E(dE),_E(hE),_E(pE))),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}})),z=null,W=null,K=!0,V=!0,G=!1,Q=!1,X=!1,J=!1,Y=!1,$=!1,Z=!1,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,se=eE({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=eE({},["audio","video","img","source","image","track"]),le=null,ue=eE({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,we=i.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":wE(e))||(e={}),e=tE(e),F="ALLOWED_TAGS"in e?eE({},e.ALLOWED_TAGS):q,U="ALLOWED_ATTR"in e?eE({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?eE(tE(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?eE(tE(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?eE({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?eE({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?eE({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,$=e.RETURN_DOM||!1,Z=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(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,be="application/xhtml+xml"===ve?function(e){return e}:Vb,Q&&(V=!1),Z&&($=!0),ie&&(F=eE({},[].concat(_E(lE))),U=[],!0===ie.html&&(eE(F,rE),eE(U,uE)),!0===ie.svg&&(eE(F,iE),eE(U,dE),eE(U,pE)),!0===ie.svgFilters&&(eE(F,oE),eE(U,dE),eE(U,pE)),!0===ie.mathMl&&(eE(F,aE),eE(U,hE),eE(U,pE))),e.ADD_TAGS&&(F===q&&(F=tE(F)),eE(F,e.ADD_TAGS)),e.ADD_ATTR&&(U===H&&(U=tE(U)),eE(U,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&eE(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=tE(oe)),eE(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),X&&eE(F,["html","head","body"]),F.table&&(eE(F,["tbody"]),delete z.tbody),Bb&&Bb(e),Ee=e)},Se=eE({},["mi","mo","mn","ms","mtext"]),ke=eE({},["foreignobject","desc","title","annotation-xml"]),Ce=eE({},iE);eE(Ce,oE),eE(Ce,sE);var Ie=eE({},aE);eE(Ie,cE);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=Vb(e.tagName),r=Vb(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ce[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[r]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[r])return!1;if(t.namespaceURI===de&&!Se[r])return!1;var i=eE({},["title","style","font","a","script"]);return!Ie[n]&&(i[n]||!Ce[n])}return!1},Re=function(e){Kb(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Ne=function(e,t){try{Kb(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Kb(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!U[e])if($||Z)try{Re(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(Y)e="<remove></remove>"+e;else{var r=Gb(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),fe===pe?I.call(t,X?"html":"body")[0]:X?t.documentElement:s},Oe=function(e){return k.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},xe=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)},Me=function(e){return"object"===(void 0===a?"undefined":wE(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":wE(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,r){N[e]&&zb(N[e],(function(e){e.call(n,t,r,Ee)}))},De=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),xe(e))return Re(e),!0;if(Gb(e.nodeName,/[\u0080-\uFFFF]/))return Re(e),!0;var r=be(e.nodeName);if(Pe("uponSanitizeElement",e,{tagName:r,allowedTags:F}),!Me(e.firstElementChild)&&(!Me(e.content)||!Me(e.content.firstElementChild))&&Yb(/<[/\w]/g,e.innerHTML)&&Yb(/<[/\w]/g,e.textContent))return Re(e),!0;if("select"===r&&Yb(/<template/i,e.innerHTML))return Re(e),!0;if(!F[r]||z[r]){if(ne&&!oe[r]){var i=b(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(v(o[s],!0),g(e))}if(!z[r]&&Fe(r)){if(j.tagNameCheck instanceof RegExp&&Yb(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}return Re(e),!0}return e instanceof c&&!Ae(e)?(Re(e),!0):"noscript"!==r&&"noembed"!==r||!Yb(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=Qb(t,L," "),t=Qb(t,O," "),e.textContent!==t&&(Kb(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1):(Re(e),!0)},Be=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in i||n in we))return!1;if(V&&!W[t]&&Yb(x,t));else if(K&&Yb(M,t));else if(!U[t]||W[t]){if(!(Fe(e)&&(j.tagNameCheck instanceof RegExp&&Yb(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&Yb(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Yb(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(Yb(B,Qb(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Xb(n,"data:")||!ae[e]){if(G&&!Yb(P,Qb(n,D,"")));else if(n)return!1}else;return!0},Fe=function(e){return e.indexOf("-")>0},qe=function(e){var t=void 0,r=void 0,i=void 0,o=void 0;Pe("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(r=Jb(t.value),i=be(l),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,Pe("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Ne(l,e),a.keepAttr))if(Yb(/\/>/i,r))Ne(l,e);else{Q&&(r=Qb(r,L," "),r=Qb(r,O," "));var d=be(e.nodeName);if(Be(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),Wb(n.removed)}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},Ue=function e(t){var n=void 0,r=Oe(t);for(Pe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Pe("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),qe(n));Pe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,i){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Me(e)){if("function"!=typeof e.toString)throw $b("toString is not a function");if("string"!=typeof(e=e.toString()))throw $b("dirty is not a string, aborting")}if(!n.isSupported){if("object"===wE(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Me(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Te(i),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){var h=be(e.nodeName);if(!F[h]||z[h])throw $b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!$&&!Q&&!X&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Le(e)))return $?null:ee?_:""}s&&Y&&Re(s.firstChild);for(var p=Oe(re?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&Ue(l.content),qe(l),u=l);if(u=null,re)return e;if($){if(Z)for(d=C.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return U.shadowroot&&(d=A.call(r,d,!0)),d}var f=X?s.outerHTML:s.innerHTML;return Q&&(f=Qb(f,L," "),f=Qb(f,O," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),J=!0},n.clearConfig=function(){Ee=null,J=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var r=be(e),i=be(t);return Be(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],Kb(N[e],t))},n.removeHook=function(e){N[e]&&Wb(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const CE={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function IE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=AE(null,e,t);return n.innerHTML}function AE(e,t){let{ADD_TAGS:n=[],ADD_ATTR:r=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=nm({},CE);i.ADD_TAGS=[...i.ADD_TAGS,...n],i.ADD_ATTR=[...i.ADD_ATTR,...r];const o=kE.sanitize(t,i);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var RE="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",NE=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",LE=["b","del","em","i","s","strong","sub","sup"],OE=LE.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),xE=[RE,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function ME(){}(function(){var e,t=/[&<>"'\u0000\\=]/g;e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"}})(),function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"}}();var PE=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var DE=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)};function BE(e){e=PE(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",DE(e,(function(e,s){t=e.tags||OE,n=e.attrs||xE,r=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++i+")?",r&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++i),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function FE(e){return BE({tags:e=e||OE,checkUrlAttrs:!0})}function qE(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!FE(n).test(e):r?!qE.R_UNSAFE_CUSTOM_ELEMENT.test(e):!qE.R_UNSAFE_HTML.test(e)}function UE(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}qE.R_UNSAFE_HTML=FE(),qE.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return BE([{tags:OE,checkUrlAttrs:!0},{tags:[e.tag],attrs:[RE,e.attrs].join("|"),checkUrlAttrs:!1}])}();var HE={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};HE.optgroup=HE.option,HE.tbody=HE.tfoot=HE.colgroup=HE.caption=HE.thead,HE.th=HE.td;function jE(e,t){if(!(this instanceof jE))return new jE(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}jE.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new ME,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(qE(e,this._options)||(n=e,e=UE(e),hb("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});const zE={};function WE(e){const t=document.getElementById(e);if(!t&&void 0!==zE[e])return zE[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),zE[e]=null,zE[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):(zE[e]=n,t.parentNode.removeChild(t),zE[e])}const KE={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(KE).map(e=>KE[e]);const VE=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|");new RegExp(VE,"i");"".concat("tooltip__popup","--show");class GE extends Lb{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,pushState:i=!0,shouldMoveToTopContainer:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into mobile web modal");super(e,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:r,shouldMoveToTopContainer:o}),this.pushState=i,this.hashChangeHandlerRef=this._hashChangeHandler.bind(this)}historyBackClickHandler(){this.close({enableHistoryBack:!1})}_hashChangeHandler(e){const t=e.oldURL&&e.oldURL.split("#")[1];t&&t==="".concat("overlay_").concat(this._el.id)&&this.historyBackClickHandler()}open(){super.open(),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat("overlay_").concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);Cf(document);String.fromCharCode(32);function QE(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function XE(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function JE(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}QE(),XE(3),JE(128),QE(),XE(6),JE(400);var YE=window||t.g;YE.utag_data||(YE.utag_data={});const $E="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;YE.utag_cfg_ovrd=YE.utag_cfg_ovrd||{},YE.trackingEventDebugData=YE.trackingEventDebugData||[],YE.utag_cfg_ovrd.noview=!0,YE.utag_cfg_ovrd.nocookie=!0;$E&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(YE.navigator.userAgent);!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const ZE={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},ew={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:tw,GOOGLE_USER_FETCHED:nw,INITIALIZED:rw}=ZE,{INITIALIZATION:iw,AUTHENTICATION:ow}=ew;EventTarget;const sw=ZE,aw=ew,{GOOGLE_USER_FETCHED:cw,GOOGLE_ERROR:lw,INITIALIZED:uw}=sw,{INITIALIZATION:dw}=aw;const hw={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class pw{constructor(e,t){let{threshold:n=.9,root:r=null,rootMargin:i="0px",componentList:o=[],impressionEventCallback:s=(()=>{}),onImpression:a=(()=>{}),onObservation:c=(()=>{}),onUnobservation:l=(()=>{})}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("IntersectionObserver"in window))return hw;this.root=r,this.threshold=n,this.rootMargin=i,this.trackingInstance=t,this.impressionEventCallback=s,this._onImpression=a,this._onObservation=c,this._onUnobservation=l;const u={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),u),this.observeComponents(o)}observeComponents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.forEach(e=>{this.intersectionObserverInstance.observe(e),this._onObservation(e)})}unobserveComponents(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(e=>{this.intersectionObserverInstance.unobserve(e),this._onUnobservation(e)})}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter(e=>this._isNodeVisible(e)).map(e=>{let{target:t}=e;return t});t.length>0&&(this._onImpression({trackingInstance:this.trackingInstance,visibleElements:t}),this.impressionEventCallback({trackingInstance:this.trackingInstance,queuedImpressions:t}),this.unobserveComponents(t))}}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.length>0&&this.observeComponents(e)}}function fw(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function mw(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function vw(e,t){return Math.round(e-t)}var gw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yw=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}(),bw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gw(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(yw),Ew=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gw(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(yw),ww=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gw(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(yw),_w=function(){return 0},Tw=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Sw=Tw&&!!window.requestAnimationFrame,kw={hasDOM:Tw,hasRAF:Sw,getScrollTop:_w,getScrollLeft:_w,getHeight:_w,getWidth:_w,rAF:Sw?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:_w,get isDirty(){return kw.version!==kw.lastVersion},document:window.document,IntersectionObserver:Tw&&window.IntersectionObserver,performance:Tw&&window.performance};function Cw(){++kw.version}function Iw(){var e=null!=document.scrollingElement;kw.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},kw.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}Tw&&(kw.getHeight=function(){return window.innerHeight},kw.getWidth=function(){return window.innerWidth},kw.updateMeta=function(){kw.meta.height=kw.getHeight(),kw.meta.width=kw.getWidth(),kw.meta.scrollLeft=kw.getScrollLeft(),kw.meta.scrollTop=kw.getScrollTop(),kw.lastVersion=kw.version},kw.updateMeta(),"loading"!==document.readyState?Iw():document.addEventListener("DOMContentLoaded",Iw),window.addEventListener("resize",Cw,!1),window.addEventListener("scroll",Cw,!1));var Aw=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,kw.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var r=e.work.length;t<r;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),Rw=null;var Nw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lw="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Ow=0,xw=function(){function e(e,t,n,r,i,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=r,this.width=i,this.height=o,this.x=s,this.y=a,this.top=c,this.left=l}return e.generate=function(t){void 0===t&&(t=window);var n=this.revalidateRootMeta(t);return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document);var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0};return kw.isDirty&&kw.updateMeta(),e===window||e===document?(n.height=kw.meta.height,n.width=kw.meta.width,n.scrollLeft=kw.meta.scrollLeft,n.scrollTop=kw.meta.scrollTop,n):(t=mw(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function Mw(){return Ow+++Lw}var Pw=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Rw||(Rw=new Aw)),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1;else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e]);this.toRemove=[]}this.applyQueue(xw.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,r,i=this;this.engine.scheduleRead((function(){n=mw(e),r=xw.generate(i.root)})),this.engine.scheduleWork((function(){t(n,r)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),Dw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new bw,t}return Nw(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.id;(0,n.callback)(e,r)}},t.prototype.watch=function(e){this.startTicking();var t=Mw();return this.queue.push({callback:e,id:t}),t},t}(Pw),Bw=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return Nw(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Dw),Fw=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n)||this;return i.lastVersion=kw.version,i.queue=new ww,i.ALLOW_CACHED_SCHEDULER=r,i}return Nw(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return kw.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.callback,i=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=mw(i)),r(e,o,s)}this.lastVersion=kw.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Mw();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(Pw),qw=null;var Uw=function(){function e(){this.queue=new Ew}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),Hw=function(){function e(e){this.scheduler=new Bw(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=xw.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),jw=null;function zw(e,t){var n=(jw||(jw={scroll:new Hw((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft;return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new Hw((function(e){var t=this.state,n=t.width,r=t.height;return this.state=e,r!==e.height||n!==e.width})),destroy:new Uw,beforeunload:new Uw,hide:new Uw,show:new Uw}))[e];n&&n.listen(t)}function Ww(e,t){if(jw){var n=jw[e];n&&n.unlisten(t)}}function Kw(e,t){if(jw){var n=jw[e];n&&n.trigger(t)}}function Vw(e){(qw||(qw=new Dw)).scheduleWork(e)}function Gw(e){var t=e.left,n=e.right,r=e.top,i=e.bottom;return{left:t,x:t,top:r,y:r,bottom:i,right:n,width:n-t,height:i-r}}kw.hasDOM&&(window.addEventListener("beforeunload",(function(){Kw("beforeunload"),Kw("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Kw("show"):Kw("hide")})));var Qw=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new Fw(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||Mw();return this.scheduler.watch(e,(function(e,r,i){t.onTick(e,r,i,n)}),n.__spanielId),r},e.prototype.onTick=function(e,t,n,r){var i=this,o=this.generateEntryEvent(e,n,r),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){i.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var r=0,i=function(e,t,n,r){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:Xw(),intersectionRatio:0,intersectionRect:Xw(),isIntersecting:!1,rootBounds:Xw(),target:n};var i=t.bottom,o=t.right,s=e.left+r.left,a=e.top+r.top,c={left:s,top:a,bottom:r.bottom,right:r.right,width:e.width-(r.right+r.left),height:e.height-(r.bottom+r.top),y:a,x:s},l=Math.max(c.left,t.left),u=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-l,h=Math.min(c.top+c.height,t.bottom)-u,p=d>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:i};return function(e){var t=e.unixTime,n=e.highResTime,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=i.height*i.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:fw({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Gw(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];i.intersectionRatio>=s&&r++}return{numSatisfiedThresholds:r,entry:i}},e}();function Xw(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Jw={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var r=t||{threshold:[]},i=r.root,o=r.rootMargin,s=r.threshold,a=r.ALLOW_CACHED_SCHEDULER,c=r.BACKGROUND_TAB_FIX,l=r.USE_NATIVE_IO,u="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:i,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!kw.IntersectionObserver;var h=this.usingNativeIo?kw.IntersectionObserver:Qw;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),kw.hasDOM&&(zw("beforeunload",this.onWindowClosed),zw("hide",this.onTabHidden),zw("show",this.onTabShown),c&&(this.paused="visible"!==kw.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),r=0;r<e.length;r++){var i=this.recordStore[e[r]].lastSeenEntry;if(i){var o=i.intersectionRatio,s=i.boundingClientRect,a=i.rootBounds,c=i.intersectionRect,l=i.isIntersecting,u=i.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:l,rootBounds:a,intersectionRect:c,target:u})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((kw.performance.timeOrigin||kw.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:d,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:c,duration:0,visibleTime:s?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),r=performance.now();e.thresholdStates.forEach((function(i){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:r,payload:e.payload,label:i.threshold.label,threshold:i.threshold,entering:!1,rootBounds:Jw,boundingClientRect:o||Jw,intersectionRect:Jw,visibleTime:i.lastVisible.unixTime,duration:vw(r,i.lastVisible.highResTime),target:e.target},i),i.lastSatisfied=!1,i.visible=!1,i.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,r=!!t.threshold.time;t.lastSatisfied&&(!r||r&&t.visible)&&(e.duration=vw(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,r=this.recordStore[n.__spanielId];r&&(r.lastSeenEntry=e,this.paused||(r.thresholdStates.forEach((function(n){var r=!!n.threshold.time,i=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof i.isIntersecting?i.isIntersecting:fw(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(i.entering=!0,n.lastVisible={highResTime:i.highResTime,unixTime:i.unixTime},r){var c=Number(setTimeout((function(){n.visible=!0,i.duration=vw(performance.now(),n.lastVisible.highResTime),i.visibleTime=n.lastVisible.unixTime,t.callback([i])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,i.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(i);else t.handleThresholdExiting(i,n);n.lastEntry=e,n.lastSatisfied=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),kw.hasDOM&&(Ww("beforeunload",this.onWindowClosed),Ww("hide",this.onTabHidden),Ww("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId];n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),Vw((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||Mw();return this.recordStore[r]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),r}}();kw.IntersectionObserver&&kw.IntersectionObserver;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");".".concat("accordion-item__trigger");function Yw(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}Yw("action"),Yw("openpage"),Yw("openlink");var $w;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}($w||($w={}));new Set(Object.values($w));Error;var Zw;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Zw||(Zw={})),new Set(Object.values(Zw));".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class e_{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=WE("feedLastUpdatedTime")}resetBadges(){gb(this.badgeCountEls),gb(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return Xf(e?Bf("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);Uf(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const r=wb();return"messaging"===r&&(this._counts.messagingCount=0),"feed"===r||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this}).catch(()=>{Uf(window,"badgesreceived",{feedsCount:0})})}_renderBadges(){this.badgeCountEls.forEach(e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])}),this.badgeWithoutCountEls.forEach(e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])})}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,vb(e)):t!==n&&(t>0?(e.textContent=t,vb(e),e.classList.toggle("singular",t<=1)):mb(e))}_setBadge(e,t){e&&(t>0?(vb(e),e.classList.add("badge-with-no-count")):mb(e))}_updateCacheBustUrl(e){WE("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=IE(e?Bf(t.href,"pwa","noCache"):Hf(t.href))})}}!function(){let e}();const t_=/\s+/,n_=/,$/;function r_(){const e=["^","(?:(?:https?)?:?//)?","(?:","(?!(?:10|127)(?:\\.\\d{1,3}){3})","(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})","(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})","(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])","(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}","(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))","|","(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)","(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*","(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")","(?::\\d{2,5})?","(?:(?:/|\\?)\\S*)?","$"].join("");return new RegExp(e,"i")}var i_=function(){this.__data__=[],this.size=0};var o_=function(e,t){return e===t||e!=e&&t!=t},s_=o_;var a_=function(e,t){for(var n=e.length;n--;)if(s_(e[n][0],t))return n;return-1},c_=a_,l_=Array.prototype.splice;var u_=a_;var d_=a_;var h_=a_;var p_=i_,f_=function(e){var t=this.__data__,n=c_(t,e);return!(n<0)&&(n==t.length-1?t.pop():l_.call(t,n,1),--this.size,!0)},m_=function(e){var t=this.__data__,n=u_(t,e);return n<0?void 0:t[n][1]},v_=function(e){return d_(this.__data__,e)>-1},g_=function(e,t){var n=this.__data__,r=h_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function y_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}y_.prototype.clear=p_,y_.prototype.delete=f_,y_.prototype.get=m_,y_.prototype.has=v_,y_.prototype.set=g_;var b_=y_,E_=b_;var w_=function(){this.__data__=new E_,this.size=0};var __=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var T_=function(e){return this.__data__.get(e)};var S_=function(e){return this.__data__.has(e)},k_="object"==typeof $f&&$f&&$f.Object===Object&&$f,C_=k_,I_="object"==typeof self&&self&&self.Object===Object&&self,A_=C_||I_||Function("return this")(),R_=A_.Symbol,N_=R_,L_=Object.prototype,O_=L_.hasOwnProperty,x_=L_.toString,M_=N_?N_.toStringTag:void 0;var P_=function(e){var t=O_.call(e,M_),n=e[M_];try{e[M_]=void 0;var r=!0}catch(e){}var i=x_.call(e);return r&&(t?e[M_]=n:delete e[M_]),i},D_=Object.prototype.toString;var B_=P_,F_=function(e){return D_.call(e)},q_=R_?R_.toStringTag:void 0;var U_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q_&&q_ in Object(e)?B_(e):F_(e)};var H_=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},j_=U_,z_=H_;var W_=function(e){if(!z_(e))return!1;var t=j_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K_=A_["__core-js_shared__"],V_=function(){var e=/[^.]+$/.exec(K_&&K_.keys&&K_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var G_=function(e){return!!V_&&V_ in e},Q_=Function.prototype.toString;var X_=W_,J_=G_,Y_=H_,$_=function(e){if(null!=e){try{return Q_.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Z_=/^\[object .+?Constructor\]$/,eT=Function.prototype,tT=Object.prototype,nT=eT.toString,rT=tT.hasOwnProperty,iT=RegExp("^"+nT.call(rT).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var oT=function(e){return!(!Y_(e)||J_(e))&&(X_(e)?iT:Z_).test($_(e))},sT=function(e,t){return null==e?void 0:e[t]};var aT=function(e,t){var n=sT(e,t);return oT(n)?n:void 0},cT=aT(A_,"Map"),lT=aT(Object,"create"),uT=lT;var dT=function(){this.__data__=uT?uT(null):{},this.size=0};var hT=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pT=lT,fT=Object.prototype.hasOwnProperty;var mT=function(e){var t=this.__data__;if(pT){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return fT.call(t,e)?t[e]:void 0},vT=lT,gT=Object.prototype.hasOwnProperty;var yT=lT;var bT=dT,ET=hT,wT=mT,_T=function(e){var t=this.__data__;return vT?void 0!==t[e]:gT.call(t,e)},TT=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yT&&void 0===t?"__lodash_hash_undefined__":t,this};function ST(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ST.prototype.clear=bT,ST.prototype.delete=ET,ST.prototype.get=wT,ST.prototype.has=_T,ST.prototype.set=TT;var kT=ST,CT=b_,IT=cT;var AT=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var RT=function(e,t){var n=e.__data__;return AT(t)?n["string"==typeof t?"string":"hash"]:n.map},NT=RT;var LT=RT;var OT=RT;var xT=RT;var MT=function(){this.size=0,this.__data__={hash:new kT,map:new(IT||CT),string:new kT}},PT=function(e){var t=NT(this,e).delete(e);return this.size-=t?1:0,t},DT=function(e){return LT(this,e).get(e)},BT=function(e){return OT(this,e).has(e)},FT=function(e,t){var n=xT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function qT(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qT.prototype.clear=MT,qT.prototype.delete=PT,qT.prototype.get=DT,qT.prototype.has=BT,qT.prototype.set=FT;var UT=b_,HT=cT,jT=qT;var zT=b_,WT=w_,KT=__,VT=T_,GT=S_,QT=function(e,t){var n=this.__data__;if(n instanceof UT){var r=n.__data__;if(!HT||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jT(r)}return n.set(e,t),this.size=n.size,this};function XT(e){var t=this.__data__=new zT(e);this.size=t.size}XT.prototype.clear=WT,XT.prototype.delete=KT,XT.prototype.get=VT,XT.prototype.has=GT,XT.prototype.set=QT;var JT=XT,YT=aT,$T=function(){try{var e=YT(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ZT=$T;var eS=function(e,t,n){"__proto__"==t&&ZT?ZT(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},tS=eS,nS=o_;var rS=function(e,t,n){(void 0!==n&&!nS(e[t],n)||void 0===n&&!(t in e))&&tS(e,t,n)};var iS=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}(),oS={exports:{}};!function(e,t){var n=A_,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(oS,oS.exports);var sS=A_.Uint8Array;var aS=function(e){var t=new e.constructor(e.byteLength);return new sS(t).set(new sS(e)),t};var cS=function(e,t){var n=t?aS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var lS=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},uS=H_,dS=Object.create,hS=function(){function e(){}return function(t){if(!uS(t))return{};if(dS)return dS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var pS=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),fS=Object.prototype;var mS=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fS)},vS=hS,gS=pS,yS=mS;var bS=function(e){return"function"!=typeof e.constructor||yS(e)?{}:vS(gS(e))};var ES=function(e){return null!=e&&"object"==typeof e},wS=U_,_S=ES;var TS=function(e){return _S(e)&&"[object Arguments]"==wS(e)},SS=ES,kS=Object.prototype,CS=kS.hasOwnProperty,IS=kS.propertyIsEnumerable,AS=TS(function(){return arguments}())?TS:function(e){return SS(e)&&CS.call(e,"callee")&&!IS.call(e,"callee")},RS=Array.isArray;var NS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},LS=W_,OS=NS;var xS=function(e){return null!=e&&OS(e.length)&&!LS(e)},MS=xS,PS=ES;var DS=function(e){return PS(e)&&MS(e)},BS={exports:{}};var FS=function(){return!1};!function(e,t){var n=A_,r=FS,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(BS,BS.exports);var qS=U_,US=pS,HS=ES,jS=Function.prototype,zS=Object.prototype,WS=jS.toString,KS=zS.hasOwnProperty,VS=WS.call(Object);var GS=function(e){if(!HS(e)||"[object Object]"!=qS(e))return!1;var t=US(e);if(null===t)return!0;var n=KS.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&WS.call(n)==VS},QS=U_,XS=NS,JS=ES,YS={};YS["[object Float32Array]"]=YS["[object Float64Array]"]=YS["[object Int8Array]"]=YS["[object Int16Array]"]=YS["[object Int32Array]"]=YS["[object Uint8Array]"]=YS["[object Uint8ClampedArray]"]=YS["[object Uint16Array]"]=YS["[object Uint32Array]"]=!0,YS["[object Arguments]"]=YS["[object Array]"]=YS["[object ArrayBuffer]"]=YS["[object Boolean]"]=YS["[object DataView]"]=YS["[object Date]"]=YS["[object Error]"]=YS["[object Function]"]=YS["[object Map]"]=YS["[object Number]"]=YS["[object Object]"]=YS["[object RegExp]"]=YS["[object Set]"]=YS["[object String]"]=YS["[object WeakMap]"]=!1;var $S=function(e){return JS(e)&&XS(e.length)&&!!YS[QS(e)]};var ZS=function(e){return function(t){return e(t)}},ek={exports:{}};!function(e,t){var n=k_,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(ek,ek.exports);var tk=$S,nk=ZS,rk=ek.exports,ik=rk&&rk.isTypedArray,ok=ik?nk(ik):tk;var sk=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},ak=eS,ck=o_,lk=Object.prototype.hasOwnProperty;var uk=function(e,t,n){var r=e[t];lk.call(e,t)&&ck(r,n)&&(void 0!==n||t in e)||ak(e,t,n)},dk=eS;var hk=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=r?r(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),i?dk(n,a,c):uk(n,a,c)}return n};var pk=/^(?:0|[1-9]\d*)$/;var fk=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pk.test(e))&&e>-1&&e%1==0&&e<t},mk=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},vk=AS,gk=RS,yk=BS.exports,bk=fk,Ek=ok,wk=Object.prototype.hasOwnProperty;var _k=function(e,t){var n=gk(e),r=!n&&vk(e),i=!n&&!r&&yk(e),o=!n&&!r&&!i&&Ek(e),s=n||r||i||o,a=s?mk(e.length,String):[],c=a.length;for(var l in e)!t&&!wk.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bk(l,c))||a.push(l);return a};var Tk=H_,Sk=mS,kk=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Ck=Object.prototype.hasOwnProperty;var Ik=_k,Ak=function(e){if(!Tk(e))return kk(e);var t=Sk(e),n=[];for(var r in e)("constructor"!=r||!t&&Ck.call(e,r))&&n.push(r);return n},Rk=xS;var Nk=function(e){return Rk(e)?Ik(e,!0):Ak(e)},Lk=hk,Ok=Nk;var xk=rS,Mk=oS.exports,Pk=cS,Dk=lS,Bk=bS,Fk=AS,qk=RS,Uk=DS,Hk=BS.exports,jk=W_,zk=H_,Wk=GS,Kk=ok,Vk=sk,Gk=function(e){return Lk(e,Ok(e))};var Qk=JT,Xk=rS,Jk=iS,Yk=function(e,t,n,r,i,o,s){var a=Vk(e,n),c=Vk(t,n),l=s.get(c);if(l)xk(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=qk(c),p=!h&&Hk(c),f=!h&&!p&&Kk(c);u=c,h||p||f?qk(a)?u=a:Uk(a)?u=Dk(a):p?(d=!1,u=Mk(c,!0)):f?(d=!1,u=Pk(c,!0)):u=[]:Wk(c)||Fk(c)?(u=a,Fk(a)?u=Gk(a):zk(a)&&!jk(a)||(u=Bk(c))):d=!1}d&&(s.set(c,u),i(u,c,r,o,s),s.delete(c)),xk(e,n,u)}},$k=H_,Zk=Nk,eC=sk;var tC=function e(t,n,r,i,o){t!==n&&Jk(n,(function(s,a){if(o||(o=new Qk),$k(s))Yk(t,n,a,r,e,i,o);else{var c=i?i(eC(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),Xk(t,a,c)}}),Zk)};var nC=function(e){return e};var rC=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},iC=Math.max;var oC=function(e,t,n){return t=iC(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=iC(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),rC(e,this,a)}};var sC=function(e){return function(){return e}},aC=$T,cC=aC?function(e,t){return aC(e,"toString",{configurable:!0,enumerable:!1,value:sC(t),writable:!0})}:nC,lC=Date.now;var uC=function(e){var t=0,n=0;return function(){var r=lC(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(cC),dC=nC,hC=oC,pC=uC;var fC=o_,mC=xS,vC=fk,gC=H_;var yC=function(e,t){return pC(hC(e,t,dC),e+"")},bC=function(e,t,n){if(!gC(n))return!1;var r=typeof t;return!!("number"==r?mC(n)&&vC(t,n.length):"string"==r&&t in n)&&fC(n[t],e)};var EC=tC;!function(e){yC((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&bC(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t}))}((function(e,t,n){EC(e,t,n)}));document.querySelector(".upload-progress"),document.querySelector("#progressVal");document.querySelector("#share-modal .progress-overlay");let wC={};document.querySelector("#share-modal"),document.querySelector("#share-modal .textarea"),document.querySelector("#share-modal .recommendations"),document.querySelector("#share-modal .full-page-header-share");const _C=document.querySelector("#image-upload-label"),TC=document.querySelector("#image-upload"),SC=document.querySelector("#image-upload-label .image-upload-btn"),kC=document.querySelector("#share-modal .post-title"),CC=document.querySelector("#post-provider-info"),IC=document.querySelector("#post-link"),AC=document.querySelector("#post-image"),RC=document.querySelector("#share-modal .textarea"),NC=document.querySelector(".image-preview-wrapper"),LC=document.querySelector("#share-modal .modal-content .reshare-section"),OC=document.querySelector(".post-button"),xC=(document.querySelector("#share-modal .modal-content"),document.querySelector("#image-preview"),document.querySelector("#share-modal .upload-progress-header"),document.querySelector("#share-with-group"),document.querySelector("#share-with-network"),document.querySelector(".remove-image-preview"),document.querySelector("#share-modal .share-actions"),document.querySelector("#share-modal .close-button"),document.querySelector(".post-settings-wrapper"),document.querySelector("#visibility-settings-modal"),document.querySelector('input[name="share-with"]:checked'),document.querySelector("#visibility-header-back .close-button"),document.querySelector("#visibility-settings-modal .settings-list-wrapper"),document.querySelector("#discard-post-modal-wrapper"),document.querySelector("#retry-upload-modal-wrapper"),document.querySelector("#max-images-prompt-modal-wrapper"),document.querySelector("#comments-enabled"),document.querySelector("#comments-disabled"),document.querySelector("#share-with-public"),document.querySelector(".modal-spinner"),WE("loadingDescription"),WE("loadedDescription"),WE("i18n_file_load_error"),()=>{_C&&_C.classList.add("disabled"),bb(TC),bb(SC)}),MC=()=>{_C&&_C.classList.remove("disabled"),Eb(TC),Eb(SC)},PC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};kC.textContent=e.title||"",CC.textContent=e.providerInfo||"",e.resolvedUrl?IC.href=IE(e.resolvedUrl):IC.removeAttribute("href");const t=e.imageUrl;t&&""!==t?(AC.src=IE(t),vb(AC)):mb(AC)},DC=e=>{wC=e?{shareMediaContent:{article:e}}:{}};function BC(){var e;const t=null===(e=RC.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===NC.getAttribute("data-image-load-state"),r=LC.children.length;t||n||r?Eb(OC):bb(OC)}Ff(e=>{const t=function(e){const t=e.split(t_),n=[];for(let e=0;e<t.length;e++)t[e].match(r_())&&n.push(t[e].replace(n_,""));return n}(e.target.innerText);t.length>0?Sb("".concat("/mwlite/url-preview/","?url=").concat(t[0],"&ingestionReason=").concat("SHARE")).then(e=>e&&JSON.parse(e.responseText)).then(e=>{PC(e),DC(e),xC()}).catch(()=>{PC(),MC(),DC()}):(PC(),DC(),MC()),BC()},300);class FC{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(e)}return null}write(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}remove(e){try{this.storage.removeItem(e)}catch(e){console.error(e)}}readWithExpiry(e,t){const n=this.read(e+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}FC.instance||(FC.instance=new FC(localStorage)),FC.instance,FC.sessionInstance||(FC.sessionInstance=new FC(sessionStorage)),FC.sessionInstance;let qC;Mf.getInstance().addUnloadCallback(()=>{qC&&qC.close(),mb(document.querySelector("#discard-post-modal")),mb(document.querySelector("#visibility-settings-modal")),mb(document.querySelector("#max-images-prompt-modal")),mb(document.querySelector("#retry-upload-modal"))});function UC(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function HC(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("select");r&&(r.addEventListener("change",UC),r.value&&r.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(HC)}}function jC(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),Uf(t,"input:cleared"),Uf(t,"change")}function zC(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,r=t.querySelector("input");n&&r.setAttribute("placeholder",n),r.removeEventListener("focus",zC)}function WC(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function KC(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("input"),i=e.querySelector(".right");r.addEventListener("change",WC),r.addEventListener("focus",zC),i&&i.addEventListener("click",jC)}else{document.querySelectorAll(".input-container").forEach(KC)}}const VC="MinLength",GC="MaxLength",QC="Regex",XC="Required",JC="RegexAllow",YC={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{pattern:new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),errorCode:"Email"},PHONE_NUMBER:{pattern:/(?:^((\+(?=[0-9]{1,4}))?))[0-9]{5,14}$/,errorCode:"PhoneNumber"}},$C="EMAIL_ADDRESS",ZC="PHONE_NUMBER",eI="OTHER",tI="consentUnchecked",nI={INPUT:"INPUT",SELECT:"SELECT"},rI="text",iI="checkbox";function oI(e){return Object.keys(nI).includes(e.tagName)}function sI(e){const t=function(e){const t=[],{minLength:n,maxLength:r,inputType:i}=e.dataset;let o;switch(i){case eI:n&&t.push({type:VC,MinLength:n}),r&&t.push({type:GC,MaxLength:r});break;case $C:t.push({type:JC,RegexAllow:[YC.EMAIL]});break;case ZC:o=e.value.replace(/ /g,""),t.push({type:JC,RegexAllow:[YC.PHONE_NUMBER]})}return{value:o||e.value,ruleSet:t}}(e),n=t.value;return t.ruleSet.map(e=>((e,t)=>{const n=t.trim();if(e)switch(e.type){case XC:if(0===n.length)return XC;break;case VC:if(n.length<e[VC])return VC;break;case GC:if(n.length>e[GC])return GC;break;case QC:for(let t=0;t<e[QC].length;t++)if(e[QC][t].pattern.test(n))return QC+e[QC][t].errorCode;break;case JC:for(let t=0;t<e[JC].length;t++)if(!e[JC][t].pattern.test(n))return JC+e[JC][t].errorCode}})(e,n)).filter(e=>!!e)}function aI(e,t){return t&&!e?tI:null}const cI=(e,t)=>parseInt(t.split(e)[1]);function lI(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const uI=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),dI=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function hI(e){const t=e.id+"_",n=t+"q",r=t+"c";return new Promise((t,i)=>{const o=[],{urn:s,leadTrackingParams:a}=e.dataset,c={formResponse:{adFormUrn:s,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(oI).forEach(e=>{let t;if(e.tagName===nI.SELECT)t=((e,t)=>{const n=cI(e,t.id),r=t.selectedIndex;return{response:dI(n,r)}})(n,e),c.formResponse.answers.push(t.response);else if(e.type===rI)if(t=((e,t)=>{const n=cI(e,t.id),r=sI(t);return 0!==r.length?{errors:r}:{response:uI(n,t.value)}})(n,e),t.response)c.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===iI&&(t=((e,t,n,r)=>{const i=cI(e,t),o=aI(n,r);return o?{errors:o}:{response:{consentId:i,accepted:n}}})(r,e.id,e.checked,e.required),t.response?c.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))}),0===o.length?t(c):i(o)})}class pI{constructor(e){let{isLivePreview:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");KC(),HC(),kb("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const n=e.querySelector(".lead-gen-modal");this.modal=new GE(n,{triggerByOutletEl:!t,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(oI).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),hI(this.formEl).then(e=>{Uf(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();Qf(lI(t.element,t.errorType),Gf.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");mb(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=lI(e,t),r=e.closest(".lead-gen-input-container"),i=r.querySelector(".error-text");i.innerText=n,vb(i),r.classList.add("input-error"),i.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===iI)t=aI(e.checked,e.required);else if(e.type===rI){const n=sI(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains("inputbox-input")&&this._handleInputError(e.target)}),this.formEl.querySelector(".submit-btn").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}rm(pI,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");const fI=Object.freeze({APPRECIATION:"APPRECIATION",ASSENT:"ASSENT",CELEBRATION:"CELEBRATION",EMPATHY:"EMPATHY",ENTERTAINMENT:"ENTERTAINMENT",INSPIRATION:"INSPIRATION",INTEREST:"INTEREST",LIKE:"LIKE",MAYBE:"MAYBE",PRAISE:"PRAISE",UNKNOWN:"UNKNOWN",USEFULNESS:"USEFULNESS"}),mI=Object.freeze(Object.values(fI));function vI(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xf(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:r})})}const gI="CREATE",yI="DELETE";class bI{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};const i=mI.includes(e)?gI:yI,o={endpoint:this.endpoint,queryId:bI.query,variables:{entityUrn:t,action:i}};i===gI&&(o.variables.reactionType=e),vI(o).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}rm(bI,"query","070ee23fd6fb77f92ac08f964ae1df29");Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});const EI="FOLLOW",wI="UNFOLLOW";class _I{constructor(e){if(!e)throw Error("Missing FollowMutation endpoint");this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};const i=e===EI?"FOLLOW_ACTIVE":wI;vI({endpoint:this.endpoint,queryId:_I.query,variables:{followState:i,to:t}}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}rm(_I,"query","cbed571fffd8cea15209aed8d44e6759");HTMLElement;const TI="learning-".concat("search__button"),SI=".".concat("base-search-bar","[").concat('data-searchbar-type="LEARNING"',"] .").concat("base-search-bar__form"),kI="".concat(SI,' .search-input input[name="keywords"]'),CI="".concat(SI,' input[name="sortBy"]'),II=".".concat(TI,"[").concat('data-searchbar-type="LEARNING"',"]");class AI{constructor(e){if(!e)throw Error("An element must be provided to LearningSearch");this.el=e;const t=this.el.querySelector(SI),n=this.el.querySelector(kI),r=this.el.querySelector(CI),i=this.el.querySelector(II);t&&i&&(i.addEventListener("click",()=>{t.dispatchEvent(new Event("submit"))}),t.addEventListener("submit",()=>{n.value.length&&r.remove(),t.submit()}))}}function RI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function LI(e,t,n){return t&&NI(e.prototype,t),n&&NI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OI(e){return(OI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xI(e,t){return(xI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function MI(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function PI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=OI(e);if(t){var i=OI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return MI(this,n)}}function DI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||FI(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 BI(e){return function(e){if(Array.isArray(e))return qI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||FI(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 FI(e,t){if(e){if("string"==typeof e)return qI(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)?qI(e,t):void 0}}function qI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var UI="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",HI=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",jI=["b","del","em","i","s","strong","sub","sup"],zI=jI.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),WI=[UI,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|"),KI=LI((function e(){RI(this,e)}));function VI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var GI=function(){var e=/[&<>"'\u0000\\=]/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"};return function(n){return null==n?null:n.toString().replace(e,(function(e){return function(e){return e in t}(e)?t[e]:e}))}}(),QI=function(){if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};var e,t=document.createElement("div"),n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};function i(e){if(function(e){return VI(r,e)}(e))return r[e];t.innerHTML="&".concat(e,";");var n=t[HI];return r[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,r,o){return n?i(n):r||o?e(parseInt(r||o,r?16:10)||65533):"�"}))}}();function XI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log",n="undefined"!=typeof window;if(n&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}function JI(e){return/[<&]/.test(e)}function YI(e){e=Array.isArray(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",e.forEach((function(e,s){t=e.tags||zI,n=e.attrs||WI,r=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++i,")?"),r&&(o+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++i)),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function $I(e){return YI({tags:e=e||zI,checkUrlAttrs:!0})}function ZI(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n&&n.length>0?!$I(n).test(e):r?!ZI.R_UNSAFE_CUSTOM_ELEMENT.test(e):!ZI.R_UNSAFE_HTML.test(e)}function eA(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}ZI.R_UNSAFE_HTML=$I(),ZI.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return YI([{tags:zI,checkUrlAttrs:!0},{tags:[e.tag],attrs:[UI,e.attrs].join("|"),checkUrlAttrs:!1}])}();var tA={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]},nA=/<([\w:]+)/;function rA(e,t){var n,r,i,o,s,a=t.createDocumentFragment(),c=[];for(i=0,s=e.length;i<s;i++)if(r=e[i])if("string"==typeof r){n=n||a.appendChild(t.createElement("div"));var l=DI(nA.exec(r)||["",""],2)[1];if(void 0!==l){var u=l.toLowerCase(),d=u in tA&&tA[u]||tA._default;for(aA(n,d[1]+r+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);c.push.apply(c,BI(Array.from(n.childNodes))),(n=a.firstChild)&&(n.textContent="")}}else r instanceof Node&&c.push(r);for(a.textContent="",r=c[i=0];r;)a.appendChild(r),r=c[++i];return a}function iA(e,t,n){e=e.toString();var r=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,r){if(VI(n,r))return n[r];if(VI(t,r)){var i=t[r],o="string"==typeof i;if(!o&&!(i instanceof KI)&&!("number"==typeof i))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");return i?(i=o?"".concat(GI(i)):i.toString(),n[r]=i,i):e}return e}))}(e,t):e,i=e;return JI(r)&&!ZI(r,n)&&(r=eA(r),XI("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),r}var oA=iA,sA=iA;function aA(e,t,n){var r=iA(t,n);return r&&JI(r)?e.innerHTML=r:r&&(e[HI]=r),r}var cA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xI(e,t)}(n,e);var t=PI(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return RI(this,n),(r=t.call(this)).options=i,r.tags=r.options.allowTags?r.options.allowTags.flat():[],r.str=e,r}return LI(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e;return void 0!==t?t:(ZI(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=eA(e),XI("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(KI);var lA=/ /g,uA=/[\s\u0000<>"]|%00/,dA=/\\/,hA=/([.]|%2e){2}/i,pA=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 fA(e){var t;if("string"!=typeof e)return XI("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(XI("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(lA,"+")),!pA.test(t))return XI("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(uA.test(t))return XI("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n,r=t.split("?")[0],i=!1;if(r){try{if(n=decodeURI(r),hA.test(n))return XI("jSecure Error: malicious data found in url path: "+r,"error"),"invalid://"}catch(e){i=!0}if(i)return XI("jSecure Error: malformed url path detected: "+r),"invalid://";if(dA.test(r)||hA.test(r))return XI("jSecure Error: malicious data found in url path: "+r,"error"),"invalid://"}return e}var mA={redirect:function(e){window&&(window.location.href=e)}};var vA={ALLOWED_TAGS:zI,FORMATTING_TAGS:jI,htmlEncode:GI,htmlUnencode:QI,log:XI,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(i=n[t],o+=i instanceof cA?i:GI(i))})),"".concat(sA(o))},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=rA([e],t);else{if(!Array.isArray(e))return e;n=rA(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:oA,reEncode:function(e){return GI(QI(e))},_redirector:mA,redirect:function(e){var t=fA(e);t===e&&mA.redirect(t)},sanitizeHTML:sA,sanitizeUrl:fA,setElementContent:aA,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new cA(t,n)}};const{addQueryParam:gA}=K,yA="[".concat("data-upsell-impression-id","]");function bA(){let{trackingInstance:e,visibleElements:t=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="lil_upsell",r="_teambuy";for(const i of t){const t=i.getAttribute("data-upsell-impression-id"),o=t&&t.startsWith(n),s=t&&t.endsWith(r)?"TEAM_BUY":"CONSUMER_SUBSCRIPTION";if(o){const n=e.generateTrackingId(),r=document.querySelector("[data-tracking-control-name=".concat(t,"]"));r.href=EA(n,r);const i={header:{pageInstance:e},trackingId:n,upsellType:s,upsellTrackingCode:t};e.fireTrackingEvent("LearningUpsellImpressionV2Event",i)}}}function EA(e,t){const n=gA(t.href,"upsellTrackingId",e,!0);return vA.sanitizeUrl(n)}new class{constructor(){window.tracking&&window.tracking.then(e=>{Ra(e).trackPageView()}),new Hs(document.querySelector(".search-bar"),{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits"}),new se(document.querySelector(".language-selector"));const e=document.querySelector(".qualaroo");e&&new Fc(e)}},window.tracking.then(e=>{window.upsellImpressionTracking=new pw(window.IntersectionObserver,e,{componentList:[...document.querySelectorAll(yA)],onImpression:bA})});const wA=document.querySelector(".learning-search");wA&&new AI(wA);const _A=[...document.querySelectorAll('[data-test-id="popular-topics"]')],TA=e=>e.querySelector("a");_A.forEach(e=>{e.querySelector(".show-more-less")&&new Oc(e.querySelector(".show-more-less"),TA)});const SA=[...document.querySelectorAll(".slide-list")].map(e=>new Hi(e)),kA=document.querySelector(".tabs");kA&&(new Ki(kA),kA.addEventListener("click",()=>{!function(e){e.forEach(e=>{const t=e._el;t&&null!==t.offsetParent&&e._initCalc()})}(SA)})),new Uc})();