!function(){"use strict";const e="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",t="x-li-pop",n="x-msedge-ref";class r extends class{constructor(e,t,n){this._collectedFeatureMetrics=e,this._fireEventCallback=t,n(this.produceMetricEvent.bind(this),6e4)}}{produceMetricEvent(){this._collectedFeatureMetrics.flushMetrics().forEach((e=>{const t=[];e.featureCallCounts.forEach((e=>{t.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:e.failedApiCallCount,totalDownstreamCallCount:e.successfulApiCallCount+e.failedApiCallCount,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorType:e.featureMetricIdentifier.responseErrorType})}));const n={header:{},requestHeader:{},time:Date.now(),metrics:t};this._fireEventCallback("FeatureDegradationMetricEvent",n,e.pageInstance)}))}}function i(e){return JSON.stringify(e,Object.keys(e).sort())}class o extends class{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>e.successfulApiCallCount++))}trackFailedFeatureApiCall(e){this.trackMetric(e,(e=>e.failedApiCallCount++))}trackMetric(e,t){const n=i(e);if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n));else{const r=new a(e);t(r),this.featureCallCounts.set(n,r)}}}class a extends class{constructor(e){this.featureMetricIdentifier=e}}{constructor(){super(...arguments),this.successfulApiCallCount=0,this.failedApiCallCount=0}}class s extends class{flushMetrics(){const e=[...this.metrics.values()];return this.metrics=new Map,e}}{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e)))}incrementMetric(e,t){const n=i(e);if(this.metrics.has(n))t(this.metrics.get(n));else{const r=new o(e);t(r),this.metrics.set(n,r)}}}function c(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}var d;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(d||(d={}));const u=new Set(Object.values(d));class l extends Error{constructor(e){super(e),Object.setPrototypeOf(this,l.prototype)}}function p(e){return 0===e.length||!e.trim()}function h(t){if("string"!=typeof t)throw new l("The product name must be a string. ".concat(e,"."));if(p(t))throw new l("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(e,"."));return t}function f(t){if("string"!=typeof t)throw new l("Keys must be strings. ".concat(e,"."));if(p(t))throw new l("Keys should not be blank. ".concat(e,"."));if(/[^a-z0-9-]/.test(t))throw new l("'".concat(t,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(e,"."));return t}class g{constructor(t,n,r){if(this._featureKey=f(t),this._degradationKey=f(n),!r)return this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[]);if("object"!=typeof r)throw new l("DegradationTrackingMetadata options should be an object. ".concat(e,"."));const i=r.productName;i&&(this._productName=h(i));const o=r.untrackedResponseCodes,a=r.trackedResponseCodes;if(o&&a)throw new l("You may only specify one of the options: ".concat(d.UntrackedResponseCodes," or ")+"".concat(d.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(e,"."));!function(t,n){const r=(t,n)=>{if(!c(t)||t<=0||t>999)throw new l("Please only specify positive integer response codes between 1 and 999 for the ".concat(n," option. ")+"".concat(t," was specified. ").concat(e,"."));if(429===t||999===t)throw new l("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(n," options."));if(n===d.UntrackedResponseCodes&&(t<500||t>=600))throw new l("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(t," is not considered a degradation unless you explicitly add it to the ")+"".concat(d.TrackedResponseCodes," option. Please remove ").concat(t," from the ")+"".concat(d.UntrackedResponseCodes," option. ").concat(e,"."))};if(void 0!==t&&!Array.isArray(t))throw new l("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(d.UntrackedResponseCodes," option. ")+"".concat(e,"."));if(void 0!==n&&!Array.isArray(n))throw new l("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat(d.TrackedResponseCodes," option. ").concat(e,"."));t&&t.forEach((e=>r(e,d.UntrackedResponseCodes)));n&&n.forEach((e=>r(e,d.TrackedResponseCodes)))}(o,a),this._untrackedResponseCodes=o||[],this._trackedResponseCodes=a||[],this._clientSensorGroupName=r.clientSensorGroupName,function(t){Object.keys(t).forEach((t=>{if(!u.has(t))throw new l("An unsupported degradation tracking option '".concat(t,"' was provided. Please fix or remove it. ")+"".concat(e))}))}(r)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(g.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get degradationKey(){return this._degradationKey}get productName(){return this._productName}get untrackedResponseCodes(){return this._untrackedResponseCodes}get trackedResponseCodes(){return this._trackedResponseCodes}get clientSensorGroupName(){return this._clientSensorGroupName}}function m(e,t){if(!e.includes("/"))return e;const n=function(e){const t=document.createElement("a");return t.href=e,t.pathname}(e),r=n.split("/").filter((e=>e.length));if(!t.length)return r.join("/");const i=[];for(let e=r.length-1;e>=0;e--){const n=r[e],o=t.indexOf(n);o>=0?t.splice(o,1):i.push(n)}return i.reverse().join("/")}function v(e,r){if(e instanceof Error){if("AbortError"===e.name)return"CLIENT_ABORTED";if(e instanceof TypeError&&(e.message.indexOf("Network request failed")>=0||e.message.indexOf("NetworkError when attempting to fetch resource")>=0||e.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===e.statusText)return"CLIENT_TIMEOUT";if(0===e.status&&"abort"===e.statusText)return"CLIENT_ABORTED";if((i=e.status)>=500&&i<600)return function(e){if(e){if(e.has("x-li-fabric"))return"SERVER_ERROR";if(e.has(t))return"TRAFFIC_L0_TO_L1_ERROR";if(e.has(n))return"TRAFFIC_AFD_TO_L0_ERROR"}return"SERVER_ERROR"}(r);if("readyState"in e&&0===e.readyState)return"NETWORK_ERROR"}var i;return"UNCLASSIFIED"}var y;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(y||(y={}));const b=new Set(Object.values(y));class E{constructor(t,n,r){if(this._featureKey=f(t),this._defaultDegradationKey=f(n),!r)return this._nonDegradedResponseCodes=new Set,this._additionalDegradedResponseCodes=new Set,void(this._degradationKeyOverrides=[]);if("object"!=typeof r)throw new l("FailureTrackingMetadata options should be an object. ".concat(e,"."));const i=r.additionalDegradedResponseCodes,o=r.nonDegradedResponseCodes;this.validateResponseCodes(i,o),this._nonDegradedResponseCodes=new Set(o),this._additionalDegradedResponseCodes=new Set(i),this._degradationKeyOverrides=r.degradationKeyOverrides||[],this._clientSensorGroupName=r.clientSensorGroupName,this._customTrackingId=r.customTrackingId;const a=r.productName;a&&(this._productName=h(a)),function(t){Object.keys(t).forEach((t=>{if(!b.has(t))throw new l("An unsupported failure tracking option '".concat(t,"' was provided. Please fix or remove it. ")+"".concat(e))}))}(r)}static isFailureTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(E.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}validateResponseCodes(t,n){const r=(t,n)=>{if(!c(t)||t<=0||t>999)throw new l("Please only specify positive integer response codes between 1 and 999 for the ".concat(n," option. ")+"".concat(t," was specified. ").concat(e,"."));if(429===t||999===t)throw new l("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(n," options."));if(n===y.NonDegradedResponseCodes&&(t<500||t>=600))throw new l("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(t," is not considered a degradation unless you explicitly add it to the ")+"".concat(y.AdditionalDegradedResponseCodes," option. Please remove ").concat(t," from the ")+"".concat(y.NonDegradedResponseCodes," option. ").concat(e,"."))};if(void 0!==n&&!Array.isArray(n))throw new l("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(y.NonDegradedResponseCodes," option. ")+"".concat(e,"."));if(void 0!==t&&!Array.isArray(t))throw new l("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should also be considered as the degraded state(s) for the "+"".concat(y.AdditionalDegradedResponseCodes," option. ").concat(e,"."));null==n||n.forEach((e=>r(e,y.NonDegradedResponseCodes))),null==t||t.forEach((e=>r(e,y.AdditionalDegradedResponseCodes)));const i=new Set(t),o=new Set(n);if([...i].some((e=>o.has(e))))throw new l("Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes "+"don't have any overlapping response codes. ".concat(e,"."))}}class w{constructor(t,n){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,!g.isDegradationTrackingMetadata(t)&&!E.isFailureTrackingMetadata(t))throw new l("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.");if(!n)throw new l("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.");this._featureKey=t.featureKey,this._productName=n,this._clientSensorGroupName=t.clientSensorGroupName,g.isDegradationTrackingMetadata(t)?(this._nonDegradedResponseCodes=new Set(t.untrackedResponseCodes),this.processTrackedResponseCodes(t.trackedResponseCodes,t.degradationKey),t.trackedResponseCodes.length||(this._defaultDegradationKey=t.degradationKey)):(this._nonDegradedResponseCodes=t.nonDegradedResponseCodes,this._defaultDegradationKey=t.defaultDegradationKey,this._customTrackingId=t.customTrackingId,t.additionalDegradedResponseCodes.forEach((t=>{if(this._nonDegradedResponseCodes.has(t))throw new l("You attempted to specify ".concat(t," as an additional degraded response code for the '").concat(this.featureKey,"' feature, ")+"however it is also specified in the non-degraded response codes for that feature. Please decide whether "+"you want to consider ".concat(t," responses a degraded state or not. ").concat(e,"."));this._additionalDegradedResponseCodes.add(t)})),this.initializeDegradationKeyOverrides(t.degradationKeyOverrides))}mergeTrackingMetadata(t){const{untrackedResponseCodes:n,trackedResponseCodes:r,degradationKey:i,featureKey:o}=t;if(n.length){if(this._nonDegradedResponseCodes.size)throw new l("The ".concat(o," has multiple DegradationTrackingMetadata with the ")+"".concat(d.UntrackedResponseCodes," option. Please combine the degradation keys and ")+"the response codes into one tracking metadata instead. ".concat(e,"."));this._nonDegradedResponseCodes=new Set(n)}if(this.processTrackedResponseCodes(t.trackedResponseCodes,i),!r.length){if(this._defaultDegradationKey)throw new l("'".concat(this._defaultDegradationKey,"' has already been set as the degradation key for the '").concat(o,"' ")+"feature, so we can't use '".concat(i,"' as well. Please combine the two degradation tracking ")+"metadata objects together. ".concat(e,"."));this._defaultDegradationKey=i}}getDegradationKey(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}get featureKey(){return this._featureKey}get productName(){return this._productName}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}isCountedAgainstAvailability(e,t){return null!==e&&("CLIENT_ABORTED"!==e&&(null==t||this.isDegradedResponseCode(t)))}isDegradedResponseCode(e){if(this._degradationKeyByResponseCode.has(e))return!0;if(!this._defaultDegradationKey)return!1;if(this._additionalDegradedResponseCodes.has(e))return!0;const t=e>=500&&e<600,n=this._nonDegradedResponseCodes.has(e);return t&&!n}processTrackedResponseCodes(t,n){t.forEach((t=>{if(this._nonDegradedResponseCodes.has(t))throw new l("You attempted to specify ".concat(t," as a tracked response code for the '").concat(this.featureKey,"' feature, ")+"however it is also specified in the untracked response codes for that feature. Please decide whether "+"you want to consider ".concat(t," responses a degraded state or not. ").concat(e,"."));if(this._degradationKeyByResponseCode.has(t))throw new l("".concat(t," was specified multiple times in ").concat(this.featureKey,"'s ")+"".concat(d.TrackedResponseCodes,". Each tracked status code should only be ")+"specified once per degradation key. ".concat(e,"."));this._degradationKeyByResponseCode.set(t,n)}))}initializeDegradationKeyOverrides(t){t.forEach((t=>{if(!t.responseCodesToOverride||!t.degradationKey||!Array.isArray(t.responseCodesToOverride)||"string"!=typeof t.degradationKey)throw new l("Degradation key overrides must consist of an array of responseCodesToOverride "+"and a string degradationKey. ".concat(e,"."));new Set(t.responseCodesToOverride).forEach((e=>{if(!this.isDegradedResponseCode(e))throw new l("A degradation key override was specified for ".concat(e,", but that response code isn't considered degraded. ")+"Please add it to additionalDegradedResponseCodes if you want it to count against your availability.");this._degradationKeyByResponseCode.set(e,t.degradationKey)}))}))}}class I{constructor(e,t,n){this._featureMetricStore=new s,this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n;this._metricSender=new r(this._featureMetricStore,t,((e,t)=>{window.setInterval((()=>e()),t)})),window.addEventListener("beforeunload",(()=>this._metricSender.produceMetricEvent()))}trackFeatureDegradationsForFetch(e,t,n,r,i){let o,a=null;const s=new Map,c=this._createFailureProcessingMetadata(n);return t=this._getAndValidateUrlEntityIDs(t),r.then((e=>{a=e.status,!1===e.ok&&(e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),o=e)})).catch((e=>{throw o=e,e})).finally((()=>{this._trackResponse(e,a,t,c,i,s,o)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,o){const a=t.status,s=t.getAllResponseHeaders(),c=new Map;s&&s.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),n=t.shift();if(n){const e=t.join(": ");c.set(n.toLowerCase(),e)}}));const d=o?null:t,u=this._createFailureProcessingMetadata(r);n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,u,i,c,d)}_trackResponse(e,r,i,o,a,s,c){if(429===r||999===r)return;const d=c?v(c,s):null,u=s.get(t)||null,l=s.get("x-li-uuid")||null,p=s.get(n)||null,h=new Set,f=new Set;if(o.forEach((e=>{h.add(e.productName),f.add(e.featureKey),e.isCountedAgainstAvailability(d,r)?this._featureMetricStore.incrementFailedFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u,responseErrorType:d},a):this._featureMetricStore.incrementSuccessfulFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u},a)})),c&&d){this._reportErrorIfUnclassified(c,d,r,h,f);const t=function(e,t,n,r,i,o,a,s){if(!(e&&e.trim()&&t&&Array.isArray(t)))return[];const c=m(e,o?o.map((e=>encodeURIComponent(e))):[]),d=[];return t.forEach((e=>{const t=e.getDegradationKey(r),o=e.isCountedAgainstAvailability(n,r),u={endpointPath:c,degradationKey:t,responseErrorType:n,isCountedAgainstAvailability:o};r&&(u.responseCode=r),i&&(u.responseCallTreeId=i),a&&(u.pointOfPresenceId=a),s&&(u.microsoftEdgeReference=s),d.push({header:{},requestHeader:{},productName:e.productName,featureKey:e.featureKey,failedDownstreamRequests:[u]})})),d}(e,o,d,r,l,i,u,p);t.forEach((e=>{this._fireEventCallback("FeatureDegradeEvent",e,a)}))}}_reportErrorIfUnclassified(e,t,n,r,i){var o;if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["noise","pem-unclassified-error"];let n;r.forEach((e=>t.push("pem-product-".concat(e)))),i.forEach((e=>t.push("pem-feature-".concat(e)))),n=e instanceof Error?e:new Error("Could not classify jQuery response: ".concat(JSON.stringify(e))),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(t){if(!t||!Array.isArray(t)||!t.length)throw new l("Please specify a non-empty array of degradation tracking metadata. ".concat(e,"."));const n=new Map;return t.forEach((t=>{if(!g.isDegradationTrackingMetadata(t))throw new l("Please use DegradationTrackingMetadata to specify the degradations. ".concat(e,"."));const r=h(t.productName||this._defaultProductName),i={productName:r,featureKey:t.featureKey},o=n.get(i);o?o.mergeTrackingMetadata(t):n.set(i,new w(t,r))})),[...n.values()]}_getAndValidateUrlEntityIDs(t){if(!Array.isArray(t))throw new l("Please specify the queried IDs to remove from the request URL, or use an empty array if there "+"are none. ".concat(e,"."));return t}}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T,_,S,A,P={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},R="GUEST",N="MEMBER",O=0,D=1,L=2,M=(k(T={},R,"li_gc"),k(T,N,"li_mc"),T),x="liap",U=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 C(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},P)t[o]=t[o]||O,t[o]!==O&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===D||t[o]===O&&i===D},H=(_=[P.ADVERTISING,P.ANALYTICS_AND_RESEARCH,P.FUNCTIONAL],S=[O,D,L,O],A=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(A);if(!n)return{error:"Invalid consent body encoding",consent:new U};for(var r=parseInt(n[1],10),i={},o=0;o<_.length;o++)i[_[o]]=S[r>>2*o&3];var a=new Date(1e3*parseInt(n[2],10)),s=parseInt(n[3],10),c=O;return s>=0&&s<=3&&(c=S[s]),{error:null,consent:new U(i,a,t,c)}}}),K=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),F=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},j=function(e,t){var n=F(M[e],t);return n?q(n,e):F(M[R],t)||F(M[N],t)?V(L):V(D)},V=function(e){var t={};for(var n in P)t[n]=e;return{error:null,consent:new U(t,null,null,e)}};var q=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(K)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new U};var i=parseInt(r[1],10),o=r[2];return 1===i?H.parseConsentBody(o,t):{error:"Invalid encoded consent version ".concat(i),consent:new U}};const B=window.encodeURIComponent;function z(){const e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=F(x,t)?F(M[N],t)?N:R:F(M[R],t)?R:N),j(e,t)}().consent.optedInConsentMap;if(e[P.ANALYTICS_AND_RESEARCH]){let e=["c1=2","c2=6402952","c3=","c4=","c5=","c6=","c15="];e.push("".concat("ns_","_t=").concat(Date.now())),e.push("".concat("ns_","c=").concat(document.characterSet||document.defaultCharset||"")),e.push("c8=".concat(B(document.title))),e.push("c7=".concat(B(document.URL)));const t=document.referrer&&document.referrer.split("?")[0]||"";e.push("c9=".concat(B(t)));const n="https://sb.scorecardresearch.com/b?"+e.join("&");let r=new Image;return r.src=n,r}}function W(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function G(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function J(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function Q(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var X,$,Z=(X=function(e,t){!function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Y||"undefined"!=typeof self&&self;var n=t((function(e,t){!function(n,r){r(t,e)}(0,(function(e,t){var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,r=n&&!!window.requestIdleCallback,i=8,o={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],paused:!1,maxQueueSize:1,queueTimeout:1e3,timeoutId:null,disableSendBeacon:!0,csrfToken:"",testId:"",testSegId:"",setProperty:function(e,t){void 0!==t&&(this[e]=t)},setTrackingUrl:function(e){this.setProperty("globalTrackingUrl",e)},setAppId:function(e){this.setProperty("globalTrackingAppId",e)},setCsrfToken:function(e){this.setProperty("csrfToken",e)},setTestId:function(e){this.setProperty("testId",e)},setTestSegId:function(e){this.setProperty("testSegId",e)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var e="JSESSIONID=",t=this.getCookieString().split(";"),n=0;n<t.length;n++){for(var r=t[n];" "===r.charAt(0);)r=r.substring(1);if(-1!==r.indexOf(e)){var i=r.substring(e.length,r.length);return'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),i}}return""},createXmlHttpObject:function(){return n&&window.XMLHttpRequest?new XMLHttpRequest:null},beacon:function(e,t,r,i){this._beacon(e,t,r,i||this.globalTrackingUrl,this.disableSendBeacon?null:n&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,n,r,i){if(i){var o=void 0;try{o=i(r,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+r+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(o)return void(t&&t(o))}this.ajax(e,t,n,r)},ajax:function(e,t,n,r){var i;r?(i=this.createXmlHttpObject())&&(i.open(this.AJAX_METHOD,r,!0),i.withCredentials=!0,i.setRequestHeader("Content-type","application/json"),this.csrfToken?i.setRequestHeader("Csrf-Token",this.csrfToken):i.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&i.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&i.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),i.onreadystatechange=function(){4===i.readyState&&(200===i.status||304===i.status?"function"==typeof t&&t(i):n&&n('Response is not "OK" or "Not Modified" for tracking request'))},4!==i.readyState&&i.send(e)):n&&n("Tracking url is not defined")},pause:function(){this.paused=!0},unpause:function(){this.paused=!1,this.queue.length>=this.maxQueueSize&&this.flush()},flush:function(){if(this.queue.length>0){var e=this;this.beacon(JSON.stringify(this.queue),null,e.logError),this.queue=[]}r?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,n=Date.now();return requestIdleCallback((function(r){r.timeRemaining()>i||r.didTimeout?t.flush():t.timeoutId=t.idleFlush(e-(Date.now()-n))}),{timeout:e})},addToQueue:function(e){if(this.queue.push(e),this.queue.length>=this.maxQueueSize&&!this.paused)return this.flush();if(!this.timeoutId){var t=this;r&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout((function(){t.flush()}),this.queueTimeout)}},validateEvent:function(e,t,n){this.beacon(JSON.stringify([{eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)}]),(function(e){return n(null,e)}),(function(e){return n(e)}),this.globalTrackingUrl+"/validate")},sendEvent:function(e,t){this.addToQueue({eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(e){return"string"==typeof e&&(e={eventName:e}),e&&"object"==typeof e?(e.appId||(e.appId=this.globalTrackingAppId),e):(this.logError("Event info must be object"),{})},populateEventHeaders:function(e){return e&&"object"==typeof e?e:(this.logError("Event body must be object"),{})},logError:function(e){var t=window.console;t&&t.error&&t.error(e)},init:function(){this.setTrackingUrl(),this.setAppId(),this.onBeforeUnload=this.onBeforeUnload.bind(this),n&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){this.flush(),n&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};t.exports=o}))}));function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),i=0;i<t.length;i++){var o=t[i];if(null!==o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}var i,o,a="li_trk_navigation",s="undefined";function c(){window.sessionStorage.removeItem(a)}function d(){if(typeof window!==s&&typeof window.sessionStorage!==s)try{return JSON.parse(window.sessionStorage.getItem(a))}catch(e){}}function u(e){if(typeof window!==s&&typeof window.sessionStorage!==s)try{window.sessionStorage.setItem(a,JSON.stringify(e))}catch(e){}}function l(){var e=window.location.pathname,t=e+window.location.search,n=window.location.href,r=d();if(!r)return null;for(var i=0;i<r.length;i++){var o=r[i].href;if(o===e||o===t||o===n){var a=r.splice(i,1)[0];return u(r),a}}return null}function p(e){var t=d()||[];t.push(e),u(t)}(function(e){e[e.FOCUS=0]="FOCUS",e[e.UNFOCUS=1]="UNFOCUS",e[e.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",e[e.DRAG=3]="DRAG",e[e.PINCH_OPEN=4]="PINCH_OPEN",e[e.PINCH_CLOSE=5]="PINCH_CLOSE",e[e.DOUBLE_PRESS=6]="DOUBLE_PRESS",e[e.LONG_PRESS=7]="LONG_PRESS",e[e.SHORT_PRESS=8]="SHORT_PRESS",e[e.SWIPE_UP=9]="SWIPE_UP",e[e.SWIPE_DOWN=10]="SWIPE_DOWN",e[e.SWIPE_LEFT=11]="SWIPE_LEFT",e[e.SWIPE_RIGHT=12]="SWIPE_RIGHT",e[e.FLICK_UP=13]="FLICK_UP",e[e.FLICK_DOWN=14]="FLICK_DOWN",e[e.FLICK_LEFT=15]="FLICK_LEFT",e[e.FLICK_RIGHT=16]="FLICK_RIGHT",e[e.SHAKE=17]="SHAKE",e[e.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",e[e.HOVER=19]="HOVER"})(e.ControlInteractionType||(e.ControlInteractionType={})),(o=e.PageViewPageType||(e.PageViewPageType={}))[o.FULL=1]="FULL",o[o.AJAX=2]="AJAX",o[o.IFRAME=3]="IFRAME",o[o.REDIRECT=4]="REDIRECT",o[o.API=5]="API",o[o.FORM=6]="FORM",o[o.ROUTER=7]="ROUTER",o[o.ERROR=8]="ERROR",function(e){e[e.PageViewEvent=0]="PageViewEvent",e[e.NavigationEvent=1]="NavigationEvent",e[e.ExternalNavigationEvent=2]="ExternalNavigationEvent",e[e.ControlInteractionEvent=3]="ControlInteractionEvent",e[e.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent"}(e.EventTypes||(e.EventTypes={}));var h="undefined"!=typeof window?window:null;function f(){var e=h.crypto||h.msCrypto;if(!i&&e&&e.getRandomValues){var t=new Uint8Array(16);(i=function(){return e.getRandomValues(t),t})()}if(!i){var n=new Uint8Array(16);i=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=(t||0)>>>((3&e)<<3)&255;return n}}}h?f():i=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var g=[],m=0;m<256;m++)g[m]=(m+256).toString(16).substr(1);function v(){var e=new Uint8Array(16),t=0,n=i();n[6]=15&n[6]|64,n[8]=63&n[8]|128;for(var r=0;r<16;r++)e[t+r]=n[r];return e}function y(){return b(v())}function b(e){for(var t=32768,n=[],r=0;r<e.length;r+=t)n.push(String.fromCharCode.apply(null,e.subarray(r,r+t)));return btoa(n.join(""))}function E(e){return e?"urn:li:page:"+e:null}function w(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function I(e){return e?e.split(":").pop():null}function C(e,t){return e?{trackingId:t||y(),pageUrn:E(e)}:null}function k(e){return e?e.pageUrn+";"+e.trackingId:null}function T(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function _(e){return e&&e.referrer}function S(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var A=10,P=10,R=Object.assign||r,N=function(){function t(e){void 0===e&&(e={appId:null,initialPageInstance:null}),this.config=e;var t=this.config.disableInitialAnchorPageViewEvent||!1;if(!this.config.appId)throw new Error("TrackingTwo requires an appId.");if(!this.config.initialPageInstance){var r=document.querySelector('meta[name="trk-pageinstance"]');if(r&&(this.config.initialPageInstance=T(r.getAttribute("content"))),!this.config.initialPageInstance)throw new Error("TrackingTwo requires an initialPageInstance");t=!0}this.config.eventHeaderProperties?this.config.eventHeaderProperties.pageInstance&&delete this.config.eventHeaderProperties.pageInstance:this.config.eventHeaderProperties={},this.config.userRequestHeaderProperties?this.config.userRequestHeaderProperties.pageKey&&delete this.config.userRequestHeaderProperties.pageKey:this.config.userRequestHeaderProperties={},this.config.validationMode=!!this.config.validationMode||!1,this.config.trackingUrl=this.config.trackingUrl||"/li/track";var i=l();i&&(e.previousPageInstance=i.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),n.init(),n.setProperty("disableSendBeacon",!1),n.setTrackingUrl(this.config.trackingUrl),n.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||A),n.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||P)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var o=this.config.prevControlName||(i?i.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,o),t||this.firePageViewEvent(),this._boundDocumentClickHandler=this._handleDocumentClicks.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickHandler,!0),this._boundDocumentClickBubbleHandler=this._handleDocumentClicksBubble.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickBubbleHandler,!1),this._boundWindowBeforeUnloadHandler=this._handleWindowBeforeUnload.bind(this),window&&window.addEventListener("beforeunload",this._boundWindowBeforeUnloadHandler,!0),this._boundDocumentVisibilityChangeHandler=this._handleDocumentVisibilityChange.bind(this);var a="visibilitychange";document&&(void 0!==document.msHidden&&(a="msvisibilitychange"),document.addEventListener(a,this._boundDocumentVisibilityChangeHandler,!0))}return t.prototype._handleDocumentClicks=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(n)}},t.prototype._handleDocumentClicksBubble=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name"),r=t.hasAttribute("data-tracking-will-navigate"),i=t.getAttribute("data-tracking-href")||t.getAttribute("href");r&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:i})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,n=t,r=null,i=!1;if(t){for(;n!==e.currentTarget&&("function"!=typeof n.hasAttribute||!n.hasAttribute("data-tracking-control-name"))&&n.parentElement;)n=n.parentElement;n!==e.currentTarget&&("getAttribute"in n&&(r=n.getAttribute("data-tracking-control-name")),"hasAttribute"in n&&(i=n.hasAttribute("data-tracking-will-navigate")))}i||this.fireExternalNavigationEvent(r)},t.prototype._handleDocumentVisibilityChange=function(){var e=!1;if(void 0!==document.msHidden)e=document.msHidden;else{if(void 0===document.hidden)return;e=document.hidden}this.firePageVisibilityChangeEvent(e)},t.prototype.saveStateForPageDeparture=function(e){e&&p({controlName:e.controlName,href:e.href,prevInstance:this.state.currentPageInstance})},t.prototype.fireControlInteractionEvent=function(t,n,r){if(void 0===n&&(n=e.ControlInteractionType.SHORT_PRESS),void 0===r&&(r={}),!t)throw new Error("controlName is required.");var i=I(this.state.currentPageInstance.pageUrn),o=r.uiControlPageKey||i;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:w(t,o),interactionType:e.ControlInteractionType[n]},r)},t.prototype.fireNavigationEvent=function(t,n,r){void 0===r&&(r={});var i=t?I(t.pageUrn):null,o=r.uiControlPageKey||i;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:w(n,o)},r)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var r=n.uiControlPageKey||I(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:w(t,r)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var r=(n=R({},n)).pageViewPageType||e.PageViewPageType.AJAX,i=I(this.state.currentPageInstance.pageUrn),o=t||i;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:o},header:{},pageType:e.PageViewPageType[r].toLowerCase(),trackingInfo:{clientTimestamp:Date.now().toString()}},n)},t.prototype.fireAnchorPageViewEvent=function(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("newPageKey is required.");var r=R({},this.state.currentPageInstance),i=C(e);this.state.previousPageInstance=r,this.state.currentPageInstance=i,this.fireNavigationEvent(r,t,n),this.firePageViewEvent(e,n)},t.prototype.firePageVisibilityChangeEvent=function(t,n){void 0===n&&(n={}),this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageVisibilityChangeEvent],{requestHeader:{},header:{},isVisible:!t},n)},t.prototype.fireTrackingEvent=function(e,t,r,i){if(void 0===r&&(r={}),void 0===i&&(i=!1),!e||!t)throw new Error("eventName and body are required.");t=R({},t),(r=R({},r)).topicName||(r.topicName=e),r.pageInstance||(r.pageInstance=this.state.currentPageInstance);var o=R({pageKey:I(r.pageInstance.pageUrn),path:window.location.href,referer:_(document),trackingCode:S(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var a=R({pageInstance:r.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var s={requestHeader:o,header:a};this.config.mapHeaders&&(s=this.config.mapHeaders(s));var c=R(s,t),d={eventName:e,topicName:r.topicName,appId:this.config.appId};this.config.validationMode?n.validateEvent(d,c,(function(t){t&&console.error("Event "+e+" failed validation!")})):(n.sendEvent(d,c),i&&n.flush())},t.prototype.destroy=function(){n.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=C(n),new t(e)},t}();e.AppTrackingInstance=N,e.clearNavStorage=c,e.derivePageInstanceFromString=T,e.derivePageKeyFromUrn=I,e.generateControlUrn=w,e.generatePageInstance=C,e.generatePageUrn=E,e.generateTrackingId=y,e.getReferrer=_,e.getTrackingCode=S,e.stringifyPageInstance=k,e.uuid=v,e.webTrackingTransport=n}(t)},X($={exports:{}},$.exports),$.exports);function ee(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 te(e){"complete"===document.readyState?e():window.addEventListener("load",(()=>{setTimeout(e)}))}function ne(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function re(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 ie(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function oe(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=ie(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),a="&";return r<0?a="?":r===e.length-1&&(a=""),o&&(o="#".concat(o)),"".concat(i).concat(a).concat(t,"=").concat(n).concat(o||"")}}function ae(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function se(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}let ce=null;function de({appId:e="seo",trackingCode:t,applicationInstance:n=null}={}){const r=W(document),i=ie(window.location.href,"originalReferer"),o={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{},eventHeaderProperties:{}};return t&&(o.userRequestHeaderProperties.trackingCode=t),n&&n.applicationUrn&&n.version&&n.trackingId&&(o.eventHeaderProperties.clientApplicationInstance=n),i&&(o.userRequestHeaderProperties.referer=i),ce||(ce=Z.AppTrackingInstance.createFromPageKey(o,r)),ce.generateTrackingId=Z.generateTrackingId,ce}function ue(e,t="ajax",n){e.fireTrackingEvent("PageViewEvent",function(e,t="ajax"){const n=G(document),r=J(document);let i={};r&&(i.interfaceLocale=r);e&&(i.pageKey=e);return{header:{},requestHeader:i,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}(n,t))}function le(e,t){t=t||"log";if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}const pe=/ /g,he=/[\s\u0000<>"]|%00/,fe=/\\/,ge=/([.]|%2e){2}/i;let me=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 ve(e){let t,n="invalid://";if("string"!=typeof e)return le("jSecure Warning: url must be a string","error"),n;if(t=e.trim(),t.indexOf(" ")>-1&&(le("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(pe,"+")),!me.test(t))return le("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(he.test(t))return le("jSecure Error: not valid url character found in url: "+e,"error"),n;let r,i=t.split("?")[0],o=!1;try{r=decodeURI(i)}catch(e){o=!0}return o?(le("jSecure Error: malformed url path detected: "+i),n):fe.test(i)||ge.test(i)||ge.test(r)?(le("jSecure Error: malicious data found in url path: "+i,"error"),n):e}function ye(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 be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e,{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o,isPemEnabled:a=!1,pemDegradationTrackingMetadata:s=[],pemEntityIds:c=[]}={}){const d=new Promise(((a,s)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)a({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()),s(n)}})),c.addEventListener("error",(function(e){s(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach((e=>{c.setRequestHeader(e,n[e])})),!i){const e=ae("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",Q(e))}c.send(o)}));return a&&(s.length?function(e,t,n,r){try{const i=e.then(((e={})=>new Response(e,{status:e.status}))).catch(((e={})=>new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?we(e.response.rawHeaders):new Headers})));window.tracking.then((e=>{window.pemTracking.then((o=>{o.trackFeatureDegradationsForFetch(t,n,r,i,e.state.currentPageInstance)}))}))}catch(e){}}(d,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function we(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}const Ie={className:"class"};function Ce(e,t={}){if(!e)return Promise.reject(new Error("A path to the asset must be provided"));const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusable:"false"},t);return Ee(e,{sendCookies:!1,skipCsrfToken:!0}).then((e=>{return t=e.responseText,(new DOMParser).parseFromString(t,"image/svg+xml").firstChild;var t})).then((e=>function(e,t={}){return Object.keys(t).map((n=>{const r=Ie[n]||n;e.setAttribute(r,t[n])})),e}(e,n)))}function ke(e,t){if(!e)return Promise.reject(new Error("An icon tag must be provided to inlineIcon"));const n=e.getAttribute("data-svg-class-name");return Ce(t,n?{className:n}:{}).then((t=>(e.appendChild(t),e.setAttribute("aria-hidden","true"),t)))}const Te=["IMG","IFRAME","VIDEO","SCRIPT"],_e="SCRIPT";class Se{constructor({delayedUrlAttributeName:e="data-delayed-url",delayedPosterAttributeName:t="data-delayed-poster",delayedBackground:n="data-delayed-background",embeddedSrcAttributeName:r="data-li-src",ghostClassesAttributeName:i="data-ghost-classes",ghostUrlAttributeName:o="data-ghost-url",lazyloadClassName:a="lazy-load",lazyloadedClassName:s="lazy-loaded",onLoadClassName:c="onload",onErrorClassName:d="onerror"}={}){this.elementCache=[],this.onLoadClassName=c,this.onErrorClassName=d,this.delayedUrlAttributeName=e,this.delayedPosterAttributeName=t,this.delayedBackground=n,this.embeddedSrcAttributeName=r,this.lazyloadClassName=a,this.lazyloadedClassName=s,this.lazyloadElSelector="[".concat(this.delayedUrlAttributeName,"], [").concat(this.embeddedSrcAttributeName,"], .").concat(this.lazyloadClassName),this.boundLoadVisibleImages=this.loadVisibleImages.bind(this),this.boundEvents=!1,this.scriptLoadPromises={},this.ghostUrlAttributeName=o,this.ghostClassesAttributeName=i,te((()=>this.refreshLoader()))}getLazyLoadedJavascriptModule(e){return this.scriptLoadPromises[e]=this.scriptLoadPromises[e]||function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.scriptLoadPromises[e]}refreshLoader(){this.elementCache=ne(document.querySelectorAll(this.lazyloadElSelector)),this.loadVisibleImages(),this.elementCache.length&&!this.boundEvents&&this._attachEvents()}_attachEvents(){window.addEventListener("scroll",this.boundLoadVisibleImages,!0),window.addEventListener("touchmove",this.boundLoadVisibleImages,!0),window.addEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!0}_detachEvents(){window.removeEventListener("scroll",this.boundLoadVisibleImages,!0),window.removeEventListener("touchmove",this.boundLoadVisibleImages,!0),window.removeEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!1}_dropHttp(e){return e&&e.replace(/^http:\/\//i,"//")}lazyloadElOnload(e){if(e.classList.remove(this.lazyloadClassName),e.classList.add(this.lazyloadedClassName),e.tagName===_e){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).resolve(window[t])}}lazyloadOnerror(e){const t=e.classList.contains(this.onErrorClassName),n=e.getAttribute(this.ghostUrlAttributeName);if(e.classList.remove(this.lazyloadClassName),e.classList.add(this.lazyloadedClassName),e.classList.add(this.onErrorClassName),n&&!t){e.setAttribute("src",ve(n));const t=e.getAttribute(this.ghostClassesAttributeName);t&&t.length&&t.split(" ").forEach((t=>{e.classList.add(t)}))}if(e.tagName===_e){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).reject(new Error("Could not lazy load JS with src ".concat(e.src)))}}loadVisibleImages(){let e=0;for(;e<this.elementCache.length;){let t=this.elementCache[e];if(t.tagName===_e||t.classList.contains(this.onLoadClassName)||re(t)){const n=t.hasAttribute(this.embeddedSrcAttributeName)&&this._dropHttp(t.getAttribute(this.embeddedSrcAttributeName))||t.getAttribute(this.delayedUrlAttributeName);n&&"ICON"===t.tagName?ke(t,n).then((e=>{this.lazyloadElOnload(e),this.lazyloadElOnload(t)})).catch((()=>this.lazyloadOnerror(t))):n&&-1!==Te.indexOf(t.tagName)?(t.onerror=this.lazyloadOnerror.bind(this,t),t.onload=t.oncanplay=this.lazyloadElOnload.bind(this,t),t.src=ve(n)):(n&&t.hasAttribute(this.delayedBackground)&&(t.style.backgroundImage='url("'.concat(ve(n),'")')),this.lazyloadElOnload(t)),"VIDEO"===t.tagName&&(t.poster=ve(t.getAttribute(this.delayedPosterAttributeName))),t.removeAttribute(this.delayedUrlAttributeName),t.removeAttribute(this.embeddedSrcAttributeName),this.elementCache.splice(e,1)}else e++}this.elementCache.length||this._detachEvents()}}let Ae=null;const Pe=["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("|"),Re=new RegExp(Pe,"i");function Ne(e){return Re.test(e.trim())}var Oe,De,Le=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:Le(),isFinal:!1}},xe=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Ue=!1,He=!1,Ke=function(e){Ue=!e.persisted},Fe=function(){addEventListener("pagehide",Ke),addEventListener("beforeunload",(function(){}))},je=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];He||(Fe(),He=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:Ue})}),{capture:!0,once:t})},Ve=function(e,t,n,r){var i;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||t.isFinal||void 0===i)&&(e(t),i=t.value))}},qe=function(){return void 0===Oe&&(Oe="hidden"===document.visibilityState?0:1/0,je((function(e){var t=e.timeStamp;return Oe=t}),!0)),{get timeStamp(){return Oe}}},Be=function(){return De||(De=new Promise((function(e){return["scroll","keydown","pointerdown"].map((function(t){addEventListener(t,e,{once:!0,passive:!0,capture:!0})}))}))),De};class ze{constructor({gaugeMetricEndpoint:e,counterMetricEndpoint:t,pageKey:n,pageInstanceHeader:r=null}={}){if(this.gaugeMetricEndpoint=e,this.counterMetricEndpoint=t,this.perfData=window.performance.timing,this.pageInstanceHeader=r,this.pageKey=n,!this.pageKey||!this.gaugeMetricEndpoint||!this.counterMetricEndpoint)throw new Error("Please pass a valid pageKey, counterMetricEndpoint & gaugeMetricEndpoint");window.gaugeEndpoint="guestGauge"}_getPageLoadTime(){return this.perfData.loadEventEnd-this.perfData.navigationStart}firePageLoadTimeMetric(){if(Ne(navigator.userAgent)||this._pageLoadTimeMetricFired||!this.perfData)return;const e=this._getPageLoadTime();this.fireGaugeIngraphMetric({metricsType:"pageLoadTime",metricsValue:e}),this._pageLoadTimeMetricFired=!0}attachWebVitalsMetrics(){Ne(navigator.userAgent)||this._webVitalsListenersAttached||(!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Me("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),t())},o=xe("layout-shift",i);o&&(t=Ve(e,r,o,n),je((function(e){var n=e.isUnloading;o.takeRecords().map(i),n&&(r.isFinal=!0),t()})))}(this._webVitalReportHandler.bind(this)),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Me("LCP"),i=qe(),o=function(e){var n=e.startTime;n<i.timeStamp?(r.value=n,r.entries.push(e)):r.isFinal=!0,t()},a=xe("largest-contentful-paint",o);if(a){t=Ve(e,r,a,n);var s=function(){r.isFinal||(a.takeRecords().map(o),r.isFinal=!0,t())};Be().then(s),je(s,!0)}}(this._webVitalReportHandler.bind(this)),function(e){var t=Me("FID"),n=qe(),r=function(e){e.startTime<n.timeStamp&&(t.value=e.processingStart-e.startTime,t.entries.push(e),t.isFinal=!0,o())},i=xe("first-input",r),o=Ve(e,t,i);i?je((function(){i.takeRecords().map(r),i.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(e,r){r.timeStamp<n.timeStamp&&(t.value=e,t.isFinal=!0,t.entries=[{entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+e}],o())}))}(this._webVitalReportHandler.bind(this)),this._webVitalsListenersAttached=!0)}_webVitalReportHandler(e){this.fireGaugeIngraphMetric({metricsType:"".concat(e.name.toLowerCase(),"Time"),metricsValue:e.value,sendBeacon:!0})}_beacon(e,t){e=oe(e,"csrfToken",Q(ae("JSESSIONID")));const n=new Blob([t],{type:"application/json"});return navigator.sendBeacon(e,n)}fireGaugeIngraphMetric({metricsType:e,metricsValue:t,sendBeacon:n=!1}={}){const r="number"==typeof t&&!isNaN(t);if(!e||!r)throw new Error("valid metricsType & metricsValue are required");const i=JSON.stringify({pageKey:this.pageKey,metricsType:e,metricsValue:t});let o={"Content-Type":"application/json"};this.pageInstanceHeader&&this.pageInstanceHeader.pageUrn&&this.pageInstanceHeader.trackingId&&(o["x-li-pageInstance"]=this.pageInstanceHeader.pageUrn+";"+this.pageInstanceHeader.trackingId),n?this._beacon(this.gaugeMetricEndpoint,i):Ee(this.gaugeMetricEndpoint,{method:"POST",headers:o,postData:i})}fireSeoPageViewMetric(e=document){!this._seoPageViewMetricFired&&this._isSEOPageView(e)&&(this.fireCounterIngraphMetric({metricsType:"seoPageView"}),this._seoPageViewMetricFired=!0)}fireCounterIngraphMetric({metricsType:e,sendBeacon:t=!1}={}){if(!e)throw new Error("metricsType is required");const n=JSON.stringify({pageKey:this.pageKey,metricsType:e});t?this._beacon(this.counterMetricEndpoint,n):Ee(this.counterMetricEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},postData:n})}_isSEOPageView(e=document){const t=e.referrer||"",n=t.indexOf("mail.google.com")>-1,r=t.indexOf(".google.com")>-1,i=!n&&r;return!Ne(navigator.userAgent)&&i}}const We={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Ge{constructor(e,t,{threshold:n=.9,root:r=null,rootMargin:i="0px",componentList:o=[],impressionEventCallback:a=(()=>{}),onImpression:s=(()=>{}),onObservation:c=(()=>{}),onUnobservation:d=(()=>{})}={}){if(!("IntersectionObserver"in window))return We;this.root=r,this.threshold=n,this.rootMargin=i,this.trackingInstance=t,this.impressionEventCallback=a,this._onImpression=s,this._onObservation=c,this._onUnobservation=d;const u={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),u),this.observeComponents(o)}observeComponents(e=[]){this.intersectionObserverInstance&&e.forEach((e=>{this.intersectionObserverInstance.observe(e),this._onObservation(e)}))}unobserveComponents(e=[]){e.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((({target:e})=>e));t.length>0&&(this._onImpression({trackingInstance:this.trackingInstance,visibleElements:t}),this.impressionEventCallback({trackingInstance:this.trackingInstance,queuedImpressions:t}),this.unobserveComponents(t))}}handleDynamicElements(e=[]){this.intersectionObserverInstance&&e.length>0&&this.observeComponents(e)}}function Je({trackingInstance:e,visibleElements:t}){const n=t.map((e=>e.getAttribute("data-impression-id"))).filter((e=>e));n.length>0&&function(e,t){const n=J(document),r={};n&&(r.interfaceLocale=n);const i={header:{},requestHeader:r,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",i)}(e,n)}function Qe(e){e.removeAttribute("data-impression-id")}const Ye="timezoneOffset",Xe="screenWidth",$e="screenHeight",Ze="devicePixelRatio",et="currentContext",tt="/transactional-routing/createguestdeferreddeeplink",nt="csrfToken",rt=/iPad|iPhone|iPod/;function it(){var e;e=navigator.userAgent,rt.test(e)&&ne(document.querySelectorAll(".app-store-link")).forEach((e=>{e.href&&e.addEventListener("click",(e=>function(e){if(!e)throw Error("The given context is not valid");const t={[Ye]:(new Date).getTimezoneOffset(),[Xe]:window.screen.width,[$e]:window.screen.height,[Ze]:window.devicePixelRatio,[et]:e};try{navigator.sendBeacon(oe(tt,nt,Q(ae("JSESSIONID"))),JSON.stringify(t))}catch(e){}}(e.currentTarget.pathname)))}))}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st,ct={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},dt="GUEST",ut="MEMBER",lt=0,pt=1,ht=2,ft=(at(st={},dt,"li_gc"),at(st,ut,"li_mc"),st),gt="liap",mt=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 ot(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},ct)t[o]=t[o]||lt,t[o]!==lt&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===pt||t[o]===lt&&i===pt},vt=function(){var e=[ct.ADVERTISING,ct.ANALYTICS_AND_RESEARCH,ct.FUNCTIONAL],t=[lt,pt,ht,lt],n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";"));return{parseConsentBody:function(r,i){var o=r.match(n);if(!o)return{error:"Invalid consent body encoding",consent:new mt};for(var a=parseInt(o[1],10),s={},c=0;c<e.length;c++){s[e[c]]=t[a>>2*c&3]}var d=new Date(1e3*parseInt(o[2],10)),u=parseInt(o[3],10),l=lt;return u>=0&&u<=3&&(l=t[u]),{error:null,consent:new mt(s,d,i,l)}}}}(),yt=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),bt=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},Et=function(e,t){var n=bt(ft[e],t);return n?kt(n,e):bt(ft[dt],t)||bt(ft[ut],t)?wt(ht):wt(pt)},wt=function(e){var t={};for(var n in ct)t[n]=e;return{error:null,consent:new mt(t,null,null,e)}},It=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/);return e?e[1]:"linkedin-ei.com"},Ct=function(e){var t=e===ut?"settings/member-cookies":"mypreferences/g/guest-cookies";return"https://www.".concat(It(),"/").concat(t)};var kt=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(yt)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new mt};var i=parseInt(r[1],10),o=r[2];return 1===i?vt.parseConsentBody(o,t):{error:"Invalid encoded consent version ".concat(i),consent:new mt}},Tt=function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=bt(gt,t)?bt(ft[ut],t)?ut:dt:bt(ft[dt],t)?dt:ut),Et(e,t)}(e),n=t.consent,r=e||n.userMode||dt;return{showBanner:!t.error&&!n.consentAvailable,userMode:r,managePreferenceUrl:Ct(r)}},_t=function(e,t){var n=e.optedInConsentMap,r=e.updateSettings,i=e.userMode;t=t||function(e,t){},e.optedInConsentMap||t("optedInConsentMap is a required option",null);var o=new XMLHttpRequest;o.open("POST","https://www.".concat(It(),"/cookie-consent/")),o.setRequestHeader("Content-Type","application/json"),o.withCredentials=!0,o.onload=function(){200!==o.status?t("Request failed with status ".concat(o.status),null):t(null,o)},o.onerror=function(){t("Request failed with an error",o)};var a={UPDATE_SETTINGS:r,USER_MODE:i,CATEGORIES:{}};for(var s in ct){var c=void 0;!0===n[s]?c=pt:!1===n[s]&&(c=ht),a.CATEGORIES[s]=c}o.send(JSON.stringify(a))};function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(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 Pt(e,t,n){return t&&At(e.prototype,t),n&&At(e,n),e}function Rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ot(e,t)}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nt(e)}function Ot(e,t){return Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ot(e,t)}function Dt(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lt(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=Nt(e);if(t){var i=Nt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Dt(this,n)}}function Mt(e,t,n){return Mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Nt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},Mt(e,t,n||e)}function xt(e){var t={header:{},requestHeader:{},alertUrn:e.getAlertId(),actionType:"DISMISS"};e.getTrackingOptions().trackingInstance.fireTrackingEvent("AlertActionEvent",t)}var Ut=100,Ht=Object.freeze({TERMS_AND_CONDITIONS:0,COOKIE_POLICY:1,COOKIE_USAGE:2,MAINTENANCE:3,EMAIL_STATUS:4,SUBSCRIPTION:5,IE_DEPRECATION_BANNER:6,UNKNOWN:7,COOKIE_CONSENT:8});Object.freeze({TERMS_AND_CONDITIONS:501,COOKIE_POLICY:500,COOKIE_USAGE:500,MAINTENANCE:Ut,EMAIL_STATUS:300,SUBSCRIPTION:400,IE_DEPRECATION_BANNER:99,UNKNOWN:200});var Kt=Object.freeze({alertType:"type",severity:"severity",alertId:"alert-id",actionType:"action-type",actionUrl:"action-url"}),Ft="AlertActionClick";function jt(e,t){for(var n=e;null!=n;){if(n.classList&&n.classList.contains(t))return!0;n=n.parentNode}return!1}function Vt(e){var t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)"));return t?t[1]:void 0}function qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"customEvent",t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var Bt=1,zt=2,Wt=0,Gt="artdeco-global-alert__dismiss",Jt="artdeco-global-alert-action",Qt="artdeco-global-alert__content";function Yt(e){var t=e.target,n=t instanceof Element&&t.parentNode,r="artdeco-global-alert__responsive-container--scrollable-effect";if(n instanceof Element&&t instanceof Element){var i=t.offsetHeight,o=t.scrollHeight,a=t.scrollTop;if(o>i){var s=a+i;n.classList.add("".concat(r)),n.classList.remove("".concat(r,"-only-top")),n.classList.remove("".concat(r,"-only-bottom")),s===i&&n.classList.add("".concat(r,"-only-bottom")),s===o&&n.classList.add("".concat(r,"-only-top"))}}}var Xt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};St(this,e),this._el=t,this._state=Wt,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(Kt.alertType),this._id=this._el.getAttribute(Kt.alertId),this._elDismissBtn=this._el.querySelector(".".concat(Gt)),this._trackingOptions=n,this.init()}return Pt(e,[{key:"_makeAlertAccessible",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._el.setAttribute("aria-hidden",!e),this._el.style.setProperty("visibility",e?"visible":"hidden")}},{key:"init",value:function(){var e=this;this._el.style.setProperty("height","0px"),this._makeAlertAccessible(!1),this._el.addEventListener("click",(function(t){var n=t.target;jt(n,Gt)?(e.dismissAction(),xt(e)):jt(n,Jt)&&e.handleAlertAction(t)}))}},{key:"getTrackingOptions",value:function(){return this._trackingOptions}},{key:"getAlertNode",value:function(){return this._el}},{key:"setHeight",value:function(e){this._el.style.setProperty("height",e),this._el.style.setProperty("visibility","visible")}},{key:"getInitialHeight",value:function(){return this._initialHeight}},{key:"getAlertType",value:function(){return this._alertType}},{key:"getAlertId",value:function(){return this._id}},{key:"isInactive",value:function(){return!(this._state===Bt||this._state===zt)}},{key:"visited",value:function(){this._state=Bt,this._makeAlertAccessible(!1)}},{key:"activate",value:function(){var e,t,n=this._trackingOptions,r=n.enableControlInteractionEvents,i=n.controlInteractionEventsPrefix;this._state=zt,t={header:{},requestHeader:{},alertUrn:(e=this).getAlertId()},e.getTrackingOptions().trackingInstance.fireTrackingEvent("AlertImpressionEvent",t),this._makeAlertAccessible(!0),this._el.focus();var o,a,s,c=this._el.querySelector(".".concat(Qt));if(c instanceof Element){var d=(o=Yt,a=200,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(){clearTimeout(s),o.apply(void 0,t)};clearTimeout(s),s=setTimeout(r,a)});c.addEventListener("scroll",d)}c.dispatchEvent(qt("scroll")),r&&this._el.querySelectorAll("button, a").forEach((function(e){var t=e.tagName,n="data-tracking-control-name",r=e.getAttribute(n);if(r)r=r.replace("urn:li:control:",""),e.setAttribute(n,r),e.setAttribute("data-control-name",r);else{var o="a"===t.toLowerCase()?"alert-link-cta":"alert-dismiss-btn-cta";e.setAttribute(n,"".concat(i,"-").concat(o))}}))}},{key:"dismissAction",value:function(){}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(Kt.actionType),r=t.getAttribute(Kt.actionUrl);r=r&&ve(r);var i=qt(Ft);switch(n){case"LINK":r?window.location.assign(r):t.dispatchEvent(i);break;case"ACCEPT":r&&function(e){if(e){var t=document&&document.cookie.match(/(?:^|; *)JSESSIONID=([^;]*)(?:;|$)/),n=t?t[1]:null;if(n){var r=new XMLHttpRequest;r.open("POST",e),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("Csrf-Token",n),r.withCredentials=!0,r.onload=function(){},r.send(JSON.stringify({action:"ACCEPT"}))}}}(r),t.dispatchEvent(i);break;case"DENY":this.dismissAction(),xt(this),t.dispatchEvent(i)}}}]),e}();function $t(){try{var e=Tt();return e.isActive=!(!Vt("li_gc")&&!Vt("li_mc")),e}catch(e){return console.error("invalid domain",document.domain),{}}}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={},n=ct;return Object.keys(n).forEach((function(n){t[n]=e})),{optedInConsentMap:t}}var en=function(e){Rt(n,e);var t=Lt(n);function n(){return St(this,n),t.apply(this,arguments)}return Pt(n,[{key:"init",value:function(){Mt(Nt(n.prototype),"init",this).call(this),$t().showBanner||this.visited()}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(Kt.actionType),r=$t().managePreferenceUrl,i=t.getAttribute(Kt.actionUrl);i=i&&ve(i)||r;var o=qt(Ft);switch(n){case"LINK":i?_t(Zt(),(function(){window.location.assign(i)})):t.dispatchEvent(o);break;case"ACCEPT":_t(Zt(!0),(function(){})),t.dispatchEvent(o);break;case"DENY":this.dismissAction(),xt(this),t.dispatchEvent(o)}}}]),n}(Xt),tn="li_alerts";function nn(){var e,t,n=(e=tn,(t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")))?t[1]:void 0),r=n&&atob(n),i={};try{i=JSON.parse(r)}catch(e){}return i}function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=btoa(JSON.stringify(e)),n=new Date;n.setTime(n.getTime()+31536e6),document.cookie="".concat(tn,"=").concat(t,";expires=").concat(n.toUTCString(),";path=/;secure;samesite=none")}function on(e){if(!e)return 0;var t=e.toLowerCase(),n=nn(),r=n&&n[t]||0;return r=parseInt(r,10)}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e&&t){var n=e.toLowerCase(),r=Math.min(on(n)+t,3),i=nn();i[n]=r,rn(i)}}var sn="LIcookiePolicyDisplays";function cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;try{window.localStorage.setItem(sn,e)}catch(e){}}var dn=function(e){Rt(n,e);var t=Lt(n);function n(){return St(this,n),t.apply(this,arguments)}return Pt(n,[{key:"init",value:function(){var e=$t();Mt(Nt(n.prototype),"init",this).call(this),function(e){var t=NaN;try{t=parseInt(window.localStorage.getItem(sn),10)}catch(e){}!isNaN(t)&&t>=0&&an(e,t)}(this._alertType),(e.isActive||on(this._alertType)>=3)&&Mt(Nt(n.prototype),"visited",this).call(this)}},{key:"activate",value:function(){Mt(Nt(n.prototype),"activate",this).call(this),cn(on(this._alertType)+1),an(this._alertType,1)}},{key:"dismissAction",value:function(){Mt(Nt(n.prototype),"dismissAction",this).call(this),cn(3),an(this._alertType,3-on(this._alertType))}}]),n}(Xt);var un=function(){function e(t){St(this,e),this._trackingOptions=t}return Pt(e,[{key:"getAlertInstance",value:function(e){switch(function(e){return Ht[e.getAttribute(Kt.alertType)]}(e)){case Ht.COOKIE_USAGE:return new dn(e,this._trackingOptions);case Ht.COOKIE_CONSENT:return new en(e,this._trackingOptions);default:return new Xt(e,this._trackingOptions)}}}]),e}();"undefined"!=typeof window&&"undefined"!=typeof document&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var ln="artdeco-global-alert-container",pn="global-alert-offset",hn="artdeco-global-alert",fn="artdeco-global-alert__dismiss",gn="artdeco-global-alert-action",mn="artdeco-global-alerts-cls-offset",vn="transition-in",yn="transition-out",bn=function(){function e(t){var n=t.trackingInstance,r=t.enableControlInteractionEvents,i=void 0!==r&&r,o=t.controlInteractionEventsPrefix,a=void 0===o?"global-alerts":o;if(St(this,e),!n)throw new Error("Missing config - trackingInstance");if(this._el=document&&document.querySelector("#".concat(ln)),this._clsOffsetEl=document&&document.querySelector("#".concat(mn)),this._isSSR=!!this._clsOffsetEl,this._clsOffsetEl&&this._clsOffsetEl instanceof Element){var s=this._clsOffsetEl.offsetHeight;this._clsOffsetEl.style.setProperty("height",s),this._el.innerHTML=this._clsOffsetEl.innerHTML,this._clsOffsetEl.innerHTML=""}if(this._elOffsetList=document.querySelectorAll(".".concat(pn)),this._elAlertList=this._el&&this._el.querySelectorAll(".".concat(hn)),this._alertInstance=[],this._currentActiveAlert=void 0,this._alertFactoryInstance=new un({trackingInstance:n,enableControlInteractionEvents:i,controlInteractionEventsPrefix:a}),this._initalBodyOffset=parseInt(document.body.style.getPropertyValue("padding-top"),10)||0,!this._el&&!this._elAlertList.length)return!1;this.init()}return Pt(e,[{key:"init",value:function(){var e=this;rn(nn()),this._elAlertList.forEach((function(t){e._alertInstance.push(e._alertFactoryInstance.getAlertInstance(t))})),this._el.classList.add(vn),document.body.classList.add(vn),this._el.addEventListener("click",(function(t){var n=t.target;jt(n,fn)&&(e.dismissAlert(n),e.activateNextAlert())})),this._el.addEventListener(Ft,(function(t){var n=t.target;jt(n,gn)&&(e.dismissAlert(n),e.activateNextAlert())})),this.activateNextAlert()}},{key:"activateNextAlert",value:function(){var e;this._alertInstance.some((function(t){return!!t.isInactive()&&(e=t,!0)})),this._currentActiveAlert&&this._currentActiveAlert.visited(),e&&e.activate(),this._currentActiveAlert=e,this._currentActiveAlert?this.updateBodyOffset():this.destroy()}},{key:"updateBodyOffset",value:function(){var e=this._currentActiveAlert.getInitialHeight();this._isSSR?this._clsOffsetEl.style.setProperty("height","".concat(e+this._initalBodyOffset,"px")):document.body.style.setProperty("padding-top","".concat(e+this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(t){t.style.setProperty("top","".concat(e,"px"))})),this._el.style.setProperty("height","".concat(e,"px")),this._currentActiveAlert.setHeight("".concat(e,"px"))}},{key:"dismissAlert",value:function(e){var t=e.closest(".".concat(hn));t.classList.add(yn),t.style.setProperty("height","0px")}},{key:"destroy",value:function(){var e=this._el;this._el.classList.add(yn),document.body.classList.add(yn),this._isSSR?this._clsOffsetEl.remove():document.body.style.setProperty("padding-top","".concat(this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(e){e.style.setProperty("top","0px")})),this._el.style.setProperty("height","0px"),this._alertInstance=[],this._el=void 0,setTimeout((function(){e.remove(),document.body.classList.remove(vn),document.body.classList.remove(yn)}),500)}}]),e}();class En{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||"[object Function]"!=={}.toString.call(e))throw new Error("Please provide a valid tracking call back function");this.memberId=t,this.trackingCallback=e}getInstalledApps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return"getInstalledRelatedApps"in e?e.getInstalledRelatedApps().then((t=>(this._fireAppDetectionEvent(t,e),t))):Promise.resolve([])}_fireAppDetectionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator;const n=e.map((e=>({appId:e.id.toUpperCase().replace(/\./g,"_"),appVersion:e.version,platform:e.platform}))),r={header:{memberId:this.memberId},requestHeader:{browserId:this._getBrowserId(),userAgent:t.userAgent||""},installedAppList:n},i=this._getQueryParam(window.location.href,"originalReferer");i&&(r.requestHeader.referer=i),this.trackingCallback("AppDetectionEvent",r)}_getBrowserId(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).cookie.match(/bcookie=([^;]*)/),t=e?e[1].replace(/^"(.*)"$/,"$1"):"";return t&&t.includes("&")&&t.split("&")[1]||""}_getQueryParam(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}}var wn,In=new Uint8Array(16);function Cn(){if(!wn&&!(wn="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 wn(In)}var kn=/^(?:[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 Tn(e){return"string"==typeof e&&kn.test(e)}for(var _n=[],Sn=0;Sn<256;++Sn)_n.push((Sn+256).toString(16).substr(1));function An(){return function(e){return"undefined"!=typeof btoa?btoa(String.fromCharCode.apply(null,e)):"undefined"!=typeof Buffer?Buffer.from(String.fromCharCode.apply(null,e),"binary").toString("base64"):function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,a=o%3,s=o-a;i<s;)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(a){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("")}(e)}(function(e,t,n){var r=(e=e||{}).random||(e.rng||Cn)();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 function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(_n[e[t+0]]+_n[e[t+1]]+_n[e[t+2]]+_n[e[t+3]]+"-"+_n[e[t+4]]+_n[e[t+5]]+"-"+_n[e[t+6]]+_n[e[t+7]]+"-"+_n[e[t+8]]+_n[e[t+9]]+"-"+_n[e[t+10]]+_n[e[t+11]]+_n[e[t+12]]+_n[e[t+13]]+_n[e[t+14]]+_n[e[t+15]]).toLowerCase();if(!Tn(n))throw TypeError("Stringified UUID is invalid");return n}(r)}(null,new Uint8Array(16),0))}function Pn(e,t){return{pageUrn:Nn(e),trackingId:t||An()}}function Rn(e,t){return"urn:li:control:"+e+"-"+t}function Nn(e){return"urn:li:page:"+e}function On(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}var Dn="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Trident")>-1,Ln="PageViewEvent",Mn=function(){function e(e){this.host=e,this.trackingEventListeners=[],this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var t=e.batching;this.maxQueueSize=t&&t.maxSize||1,this.flushDebounceTime=t&&t.debounceTime||0}return e.prototype.on=function(e){this.trackingEventListeners.push(e)},e.prototype.fireEvent=function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);if(function(e){return!!e.meta.context}(t)){var n=t.meta.context=On(t.meta.context,this.host.api);if(this.preContextQueue.length>0&&(this.queue=this.queue.concat(this.populatePreContextQueue(n)),this.preContextQueue=[]),this.host.batching)return"function"==typeof t.body&&(t.body=t.body(n)),this.enqueue(t);var r=this.queue.concat([t]);return this.queue=[],this.sendPayload(r)}return this.preContextQueue.push(t),this.host.api.Promise.resolve(!0)},e.prototype.callOnDestroy=function(e){this.unloadHandlers.push(e)},e.prototype.destroy=function(){this.trackingEventListeners=[],this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush()},e.prototype.forceFlush=function(){this.queue=this.queue.concat(this.populatePreContextQueue({pageInstance:Pn("unknown"),pageKey:"unknown"})),this.preContextQueue=[],this.flush(!0)},e.prototype.envelop=function(e,t){return{eventBody:t,eventInfo:"string"==typeof e?{appId:this.host.appId,eventName:e,topicName:e}:this.host.api.assign({appId:this.host.appId},e)}},e.prototype.getGenericEventBody=function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,d=e.meta.context,u=d.pageKey,l=d.pageInstance,p="function"==typeof e.body?e.body(e.meta.context):e.body,h=("string"==typeof(t=e.id)?t===Ln:t.eventName===Ln)&&p.requestHeader&&p.requestHeader.pageKey||u,f=null;"string"!=typeof i&&null!==this.host.locale||(f=i);var g={interfaceLocale:f,pageKey:h,path:a.pathname+a.search,referer:s.referrer},m={header:c({pageInstance:l,time:e.meta.time,version:r},e.meta.header||{}),requestHeader:c(g,e.meta.requestHeader||{})};return this.host.api.assign(p,m)},e.prototype.populatePreContextQueue=function(e){return this.preContextQueue.map((function(t){return t.meta.context=e,t}))},e.prototype.trigger=function(e){this.trackingEventListeners.forEach((function(t){return t(e)}))},e.prototype.requestFlush=function(e){var t=this;e((function(n){n.timeRemaining()>5||n.didTimeout?t.forceFlush():t.requestFlush(e)}),{timeout:1e4})},e.prototype.flush=function(e){void 0===e&&(e=!1);var t=this.host.api.requestIdleCallback;if(e||!t){var n=this.queue;this.queue=[],n.length>0&&this.sendPayload(n)}else this.requestFlush(t)},e.prototype.enqueue=function(e){return this.queue.push(e),this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(this.flush.bind(this),this.flushDebounceTime)),this.host.api.Promise.resolve(!0)},e.prototype.sendPayload=function(e){var t=this,n=e.map((function(e){var n=t.getGenericEventBody(e),r=t.envelop(e.id,n);return t.trigger(r),r})),r=this.host,i=r.inactive,o=r.endpoint,a=r.api,s=a.sendBeacon,c=a.fetch,d=a.Promise;if(i)return d.resolve(!0);var u=JSON.stringify(n);if(s){var l=!1;try{l=s(o,u)}catch(e){if("object"!=typeof e||"Failed to execute 'sendBeacon()' on 'Window': Invalid argument."!==e.message)throw e&&(e.tags=["tracking:sendbeacon"]),e}if(l)return d.resolve(l)}return c(o,{body:u,credentials:"same-origin",headers:[["content-type","application/json"]],method:"POST",mode:"cors"}).catch((function(e){if("object"==typeof e){if(Dn)return!1;e.tags=["tracking:fetch"]}throw e}))},e}();function xn(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:"+decodeURIComponent(e.external_control),n=!0);var i=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 a=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:"+a,trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:"+decodeURIComponent(e.external_app),trackingId:e.external_app_instance,version:""}:void 0;return s&&((o=o||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}var Un=function(){function e(e,t){if(this.transporter=e,this.delegate=t,this.appState={},this.customTransporters={},t&&t.customTransporterHosts)for(var n in t.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(t.customTransporterHosts,n)){var r=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[n]=new Mn(this.transporter.host.api.assign(r,t.customTransporterHosts[n]))}}return Object.defineProperty(e.prototype,"host",{get:function(){return this.transporter.host},enumerable:!1,configurable:!0}),e.prototype.getCurrentContext=function(){if(this.currentContext)return On(this.currentContext,this.host.api)},e.prototype.setInitialPageInstanceId=function(e){this.initialPageInstanceId=e},e.prototype.navigate=function(e,t){void 0===t&&(t={});var n=this.navMetaFromSeed(e,xn(t));return this.setCurrentContext(n.to),this.fireNavEvents(n)},e.prototype.setCurrentContext=function(e){this.currentContext=On(e,this.host.api)},e.prototype.updateAppState=function(e){this.host.api.assign(this.appState,e)},e.prototype.fireCIE=function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=Rn(n.pageKey,e),a={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),a}),{context:n})},e.prototype.fireEvent=function(e,t,n){return this.fireEnvelope(this.generateEnvelope(e,t,n))},e.prototype.fireEnvelope=function(e){var t=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(t){var n=t.meta.transporterKey,r=n?this.customTransporters[n]:this.transporter;if(!r&&n)throw new Error("Could not find custom transporter: "+n);return r.fireEvent(t)}return this.host.api.Promise.resolve(!0)},e.prototype.generatePageInstance=function(e,t){return{pageUrn:"urn:li:page:"+e,trackingId:t||An()}},e.prototype.firePVE=function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=t?this.host.api.assign(t,r):r,o=this.generateEnvelope("PageViewEvent",i,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)},e.prototype.destroy=function(){this.transporter.destroy()},e.prototype.forceFlush=function(){this.transporter.forceFlush()},e.prototype.generateControlUrn=function(e,t){return Rn((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)},e.prototype.fireRawCIE=function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}},e.prototype.generateNavigationEvent=function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}},e.prototype.getTrackingCode=function(){return this.previousAppContext&&this.previousAppContext.pageKey},e.prototype.navMetaFromSeed=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}},e.prototype.fireNavEvents=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 a=r&&r.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])},e.prototype.generateEnvelope=function(e,t,n){void 0===n&&(n={});var r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&On(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}},e}(),Hn=function(){function e(e){this.core=e;var t=this.core.host.api.location.protocol;this.protocol=t.substring(0,t.length-1)}return e.prototype.reportError=function(e,t,n){var r=this;void 0===t&&(t=[]);var i=(void 0===n?{}:n).callTreeId,o=void 0===i?"":i,a=e.message,s=e.name,c=e.stack,d=void 0===c?"":c,u=e.fileName,l=void 0===u?"":u,p=e.lineNumber,h=void 0===p?0:p,f=e.columnNumber,g=void 0===f?0:f,m=this.core.host,v=m.appId,y=m.appVersion,b=m.service,E=m.serviceInstance,w=m.treeID,I=void 0===w?"":w,C=m.api.location,k=C.host,T=C.pathname,_=C.search,S=C.hash,A=void 0===S?"":S;return this.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:v,e:{c:g,l:h,m:a,s:d,t:s,u:l},h:A,l:r.protocol,o:k,p:T,pageKey:e.pageKey,q:_,service:b,serviceInstance:E,serviceVersion:y,t:t,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:o}}))},e.prototype.flush=function(){this.core.forceFlush()},e.prototype.destroy=function(){this.core.destroy()},e}();function Kn(e){if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var t=e.now(),n=e.timing.navigationStart;return Math.round(t+n)}return Date.now()}function Fn(e){var t=e||performance;return Math.round(t.now())}function jn(e,t){return{node:e,labels:t}}function Vn(e,t){return{edges:e,value:t}}var qn=/,+$/;function Bn(e){return 0===(e=Math.round("number"==typeof e?e:0))?"":e.toString(36)}function zn(e,t){return e.reduce((function(e,n){var r=t(n),i=n.name;return i in e?e[i]+="|"+r:e[i]=r,e}),{})}var Wn=/(?=_|\/)/;function Gn(e){for(var t=Vn([]),n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Qn(t,i.split(Wn),e[i])}return Jn(t)}function Jn(e){return e.edges.reduce((function(e,t){var n=t.node;return e[t.labels.join("")]=void 0===n.value?Jn(n):n.value,e}),{})}function Qn(e,t,n){for(var r=0,i=e.edges;r<i.length;r++){for(var o=i[r],a=0;a<t.length&&a<o.labels.length&&o.labels[a]===t[a];)a++;if(0!==a){if(a===o.labels.length){if(void 0!==o.node.value){var s=jn(o.node,[""]),c=jn(Vn([],n),t.slice(a));o.node=Vn([s,c])}else Qn(o.node,t.slice(a),n);return}var d=t.slice(0,a),u=a===t.length?[""]:t.slice(a),l=o.labels.slice(a),p=jn(o.node,l);return c=jn(Vn([],n),u),o.node=Vn([p,c]),void(o.labels=d)}}e.edges.push(jn(Vn([],n),t))}function Yn(e,t){"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){e.push(t)})),t.clearResourceTimings())}function Xn(e){return Gn(zn(e,Zn))}var $n={css:"a",navigation:"b",xmlhttprequest:"c",fetch:"d",beacon:"e",other:"f",img:"g",link:"h",script:"i",html:"j",image:"k",iframe:"l",subdocument:"m"};function Zn(e){var t=e.initiatorType||"other",n=[$n[t]||t,e.nextHopProtocol||"",Bn(e.startTime),Bn(e.duration),Bn(e.fetchStart),Bn(e.domainLookupStart),Bn(e.domainLookupEnd),Bn(e.connectStart),Bn(e.connectEnd),Bn(e.secureConnectionStart),Bn(e.requestStart),Bn(e.responseStart),Bn(e.responseEnd),Bn(e.transferSize),Bn(e.encodedBodySize),Bn(e.decodedBodySize),Bn(e.workerStart),Bn(e.redirectStart),Bn(e.redirectEnd)];return(n=e.resourceTreeId?["*0"+e.resourceTreeId].concat(n):n).join(",").replace(qn,"")}function er(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}var tr={MEASURE:0,MARK:1};function nr(e){return[tr[e.entryType],Bn(e.startTime),Bn(e.duration)].join(",").replace(qn,"")}function rr(e){return[Bn(e.startTime),Bn(e.duration)].join(",")}function ir(e){return Gn(zn(e,rr))}var or=function(){function e(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}return e.prototype.reset=function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]},e.prototype.attachTreeIds=function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))},e.prototype.getData=function(e){var t,n=this.userTimingEntries,r=this.longTasks,i=this.resourceTimingEntries;return{userTimingEntries:e?(t=n,Gn(zn(t,nr))):n,longTasks:e?ir(r):r,resourceTimingEntries:e?Xn(i):i.map(sr)}},e}(),ar=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function sr(e){return ar.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function cr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function dr(e){return[Bn(e.renderStart),Bn(e.renderEnd),e.viewId].join(",").replace(qn,"")}var ur,lr,pr=function(){function e(e,t,n){this.hostApis=e,this.statics=t,this.options=n,this.renderTimings=new Map,this.urlToTreeId=new Map,this.shouldPingCDN=!1,this.observables=new or,this.isInitial=!0;var r=this.hostApis,i=r.document,o=r.AbortController,a=i.createElement("a");this.normalizeUrl=function(e,t){return e.href=t,e.href}.bind(this,a),this.abortController=new o}return e.prototype.pingCDN=function(){this.shouldPingCDN=!0},e.prototype.recordTreeId=function(e,t){this.options["enable-rs-timing"]&&this.urlToTreeId.set(this.normalizeUrl(t),e)},e.prototype.recordRenderStart=function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:Kn(this.hostApis.performance)})},e.prototype.recordRenderEnd=function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Kn(this.hostApis.performance))},e.prototype.startObserving=function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.options["enable-rs-timing"]&&this.emulateResourceTimingObserver(n),this.options["enable-rs-timing"]&&Yn(this.observables.resourceTimingEntries,n)},e.prototype.stopObserving=function(){this.collectWhilePing&&this.collectWhilePing(),this.clearCollectTimer(!0),this.perfObserver&&this.perfObserver.disconnect(),this.observables.reset()},e.prototype.clearCollectTimer=function(e){this.currentCollect&&(this.currentCollect(e),clearTimeout(this.currentTimer),this.currentCollect=null,this.currentTimer=null)},e.prototype.collect=function(e){var t=this,n=this.isInitial;this.isInitial=!1;var r=this.hostApis,i=r.assign,o=r.PerformanceObserver;this.currentCollect=function(r){var a=Object.create(null);o||(t.observables.userTimingEntries=er(t.hostApis.performance,t.options,!0),t.options["enable-rs-timing"]&&Yn(t.observables.resourceTimingEntries,performance)),t.observables.attachTreeIds(t.urlToTreeId),t.urlToTreeId.clear(),i(a,t.observables.getData(t.options["compress-timings"]),t.snapshot,t.statics),t.observables.reset(),n?t.chainCollectForInitialLoad(a,e,r):e(a)},this.currentTimer=setTimeout((function(){t.currentCollect(!1),t.currentCollect=null,t.currentTimer=null}),this.options["beacon-timeout"])},e.prototype.chainCollectForInitialLoad=function(e,t,n){var r=this,i=this.hostApis,o=i.assign,a=i.Promise;if(o(e,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,hr.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)),this.statics.pageLoadMode="PARTIAL",this.shouldPingCDN&&!n){this.collectWhilePing=function(){return t(e)};var s=new a((function(e){return setTimeout(e,r.options["async-plugins-timeout"],"timeout")})),c=[];this.shouldPingCDN&&c.push(this.fetchCDN().then((function(t){return r.statics.usedCDN=t.usedCDN,o(e,t)}))),a.race([a.all(c),s]).then((function(n){"timeout"===n&&r.abortController.abort(),t(e),r.collectWhilePing=null})),this.shouldPingCDN=!1}else t(e)},e.prototype.fetchCDN=function(){for(var e=this.hostApis,t=e.document,n=e.Promise,r=t.querySelectorAll("script"),i=0;i<r.length;i++){var o=r[i].src;if("string"==typeof o&&o.indexOf("licdn")>-1)return this.fetchCdnFromUrl(o)}return n.resolve({usedCDN:{static_domain:"",ip_version:"",http_version:""}})},e.prototype.fetchCdnFromUrl=function(e){var t=this.hostApis,n=t.assign,r=t.fetch,i=this.abortController.signal,o={usedCDN:{static_domain:"",ip_version:"",http_version:""}};return r(e,{method:"HEAD",signal:i}).then((function(e){return n(o.usedCDN,{static_domain:e.headers.get("X-CDN")||"",ip_version:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",http_version:e.headers.get("X-CDN-Proto")||""}),o}),(function(){return o}))},e.prototype.setupPerformanceObserver=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.observables.resourceTimingEntries.push(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=er(this.hostApis.performance,this.options,!1);var n=["longtask"];this.options["enable-rs-timing"]&&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})},e.prototype.emulateResourceTimingObserver=function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return Yn(t.observables.resourceTimingEntries,e)})},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e,t={detailedRenderTimingEntries:this.options["compress-timings"]?(e=cr(this.renderTimings),Gn(e.reduce((function(e,t){return t.renderName in e?e[t.renderName]+="|"+dr(t):e[t.renderName]=dr(t),e}),{}))):cr(this.renderTimings),networkInformationMetrics:fr(this.hostApis.connection)};return this.renderTimings.clear(),t},enumerable:!1,configurable:!0}),e}(),hr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function fr(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.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.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.COMPRESS_TIMINGS="compress-timings"}(lr||(lr={}));var gr,mr,vr,yr,br=((ur={})["web-ui-framework"]="EMBER",ur["app-id"]="linkedin.rum.tracking",ur["app-version"]="unknown",ur["is-single-page-app"]=!0,ur["user-timing-mark-enabled"]=!1,ur["user-timing-measure-enabled"]=!0,ur["beacon-source"]="apps",ur["enable-rs-timing"]=!0,ur["async-plugins-timeout"]=5e3,ur["beacon-timeout"]=3e4,ur["compress-timings"]=!1,ur),Er=function(e,t,n){this.pageLoadMode="INITIAL",this.webUIFramework=t["web-ui-framework"],this.timeSource=t["beacon-source"],this.isSinglePageApp=t["is-single-page-app"],this.appRenderMode=e["app-render-mode"],this.isAppRenderFailed=e["is-app-render-failed"],this.isSSL="https:"===n.api.location.protocol?1:0,this.treeId=n.treeID,this.isFromServiceWorker=n.isFromServiceWorker},wr=function(e,t){return{name:e,value:void 0===t?-1:0,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Ir=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Cr=!1,kr=function(e,t){Cr||"undefined"!=typeof InstallTrigger||(addEventListener("beforeunload",(function(){})),Cr=!0),addEventListener("visibilitychange",(function n(r){"hidden"===document.visibilityState&&(e(r),t&&removeEventListener("visibilitychange",n,!0))}),!0)},Tr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},_r=new WeakSet,Sr=function(e,t,n){var r;return function(){t.value>=0&&(n||_r.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Ar=function(e,t){var n,r=wr("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),n())},o=Ir("layout-shift",i);o&&(n=Sr(e,r,t),kr((function(){o.takeRecords().map(i),n()})),Tr((function(){r=wr("CLS",0),n=Sr(e,r,t)})))},Pr=-1,Rr=function(){return"hidden"===document.visibilityState?0:1/0},Nr=function(){kr((function(e){var t=e.timeStamp;Pr=t}),!0)},Or=function(){return Pr<0&&(Pr=Rr(),Nr(),Tr((function(){setTimeout((function(){Pr=Rr(),Nr()}),0)}))),{get timeStamp(){return Pr}}},Dr={passive:!0,capture:!0},Lr=new Date,Mr=function(e,t){gr||(gr=t,mr=e,vr=new Date,Hr(removeEventListener),xr())},xr=function(){if(mr>=0&&mr<vr-Lr){var e={entryType:"first-input",name:gr.type,target:gr.target,cancelable:gr.cancelable,startTime:gr.timeStamp,processingStart:gr.timeStamp+mr};yr.map((function(t){t(e)})),yr=[]}},Ur=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(){Mr(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Dr),removeEventListener("pointercancel",r,Dr)};addEventListener("pointerup",n,Dr),addEventListener("pointercancel",r,Dr)}(t,e):Mr(t,e)}},Hr=function(e){["mousedown","keydown","touchstart","pointerdown"].map((function(t){return e(t,Ur,Dr)}))},Kr=function(e,t){var n,r=Or(),i=wr("FID"),o=function(e){e.startTime<r.timeStamp&&(i.value=e.processingStart-e.startTime,i.entries.push(e),_r.add(i),n())},a=Ir("first-input",o);n=Sr(e,i,t),a&&kr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&Tr((function(){var r;i=wr("FID"),n=Sr(e,i,t),yr=[],mr=-1,gr=null,Hr(addEventListener),r=o,yr.push(r),xr()}))},Fr=function(e,t){var n,r=Or(),i=wr("LCP"),o=function(e){var t=e.startTime;t<r.timeStamp&&(i.value=t,i.entries.push(e)),n()},a=Ir("largest-contentful-paint",o);if(a){n=Sr(e,i,t);var s=function(){_r.has(i)||(a.takeRecords().map(o),a.disconnect(),_r.add(i),n())};["keydown","click"].map((function(e){addEventListener(e,s,{once:!0,capture:!0})})),kr(s,!0),Tr((function(r){i=wr("LCP"),n=Sr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,_r.add(i),n()}))}))}))}},jr=function(){function e(e,t){this.webVitalsState={},this.targetMetrics=["LCP","FID","CLS"],this.entrySupportRequiredForMetrics={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"},this.observing=!1,this.trackingCore=e,this.rumConfig=t}return e.prototype.startObserving=function(){var e;if(!this.observing){this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageInstance)||Pn("unknown"),this.targetMetrics.map(this.initMetric.bind(this)),this.observing=!0,this.targetMetrics.map(this.reportIfNotSupported.bind(this));var t=this.handleMetricUpdate.bind(this);[Fr,Kr,Ar].map((function(e){return e(t)})),function(e,t){void 0===t&&(t=!0);addEventListener("visibilitychange",(function n(r){"hidden"===document.visibilityState&&(e(r),t&&removeEventListener("visibilitychange",n,!0))}),!0)}(this.reportAllRemaining.bind(this))}},e.prototype.stopObserving=function(){this.observing=!1},e.prototype.initMetric=function(e){this.webVitalsState[e]={name:e,value:-1,time:-1,reported:!1}},e.prototype.reportIfNotSupported=function(e){var t="undefined"!=typeof PerformanceObserver,n=void 0!==this.entrySupportRequiredForMetrics[e];t&&n||(this.webVitalsState[e].value=-2,this.reportMetric(e))},e.prototype.handleMetricUpdate=function(e){var t=this.webVitalsState[e.name];this.observing&&t&&!t.reported&&(t.value=e.value,this.reportMetric(e.name))},e.prototype.reportMetric=function(e){var t;if(!1===(null===(t=this.webVitalsState[e])||void 0===t?void 0:t.reported)){var n=this.webVitalsState[e],r={basePageTreeId:this.basePageTreeId,name:e,startTime:Fn(this.trackingCore.host.api.performance),duration:this.formatValue(n.value,e),startPageInstance:this.startPageInstance,marks:[],spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},r),n.reported=!0}},e.prototype.reportAllRemaining=function(){var e=this;this.targetMetrics.map((function(t){t in e.webVitalsState&&!e.webVitalsState[t].reported&&e.reportMetric(t)})),this.trackingCore.forceFlush()},e.prototype.formatValue=function(e,t){var n=e;return-1===e||-2===e?n:("CLS"===t&&(n*=1e5),Math.round(n))},e}(),Vr=function(){function e(e,t,n){this.core=n,this.perfTimeWM=new WeakMap,this.boomerangStart=-1,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(n.host.api.assign({},br),t),this.collector=new pr(n.host.api,new Er(e,this.config,n.host),this.config),this.collector.startObserving()}return e.prototype.pingCDN=function(){this.collector.pingCDN()},e.prototype.recordTreeId=function(e,t){e&&this.collector.recordTreeId(e,t)},e.prototype.recordRenderStart=function(e,t){this.collector.recordRenderStart(e,t||e)},e.prototype.recordRenderEnd=function(e){this.collector.recordRenderEnd(e)},e.prototype.start=function(){this.collector.clearCollectTimer(!1);var e=Object.create(null);return this.perfTimeWM.set(e,Kn(this.core.host.api.performance)),e},e.prototype.observeWebVitals=function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new jr(this.core,this.config),this.webVitalsObserver.startObserving())},e.prototype.end=function(e,t,n){var r=this;void 0===t&&(t=!1);var i=this.core.host.api,o=i.performance,a=i.assign,s=this.perfTimeWM.get(e);if(void 0===s)throw new Error("The rum token passed in is invalid");this.perfTimeWM.delete(e);var c=Kn(o),d=this.config["app-version"];this.collector.collect((function(e){var i=r.boomerangStart=e.navigationStart||r.boomerangStart,o=e.navigationStart||s,u=c-o;r.core.fireEvent({appId:r.config["app-id"],eventName:"RealUserMonitoringEvent",compressionFormat:r.config["compress-timings"]?"rum":void 0},(function(r){return a({pageKey:n||r.pageKey,isImpactedByHiddenWindow:t,appVersion:d,timeDone:u,navigationStart:o,boomerangStart:i,renderCompleteTime:c},e)}))}))},e.prototype.destroy=function(){var e;this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),this.core.destroy()},e}();"undefined"!=typeof location&&location.search.indexOf("_LI_MEASURE_DEBUG");class qr{constructor(e){if(!e)throw new Error("JetCore missing required only parameter (`trackingCore`)");this.cwtJetCoreInstance=new Hn(e),this.seenErrors=new Set}bind(e,t){e||(e=[]),e.push("guest-seo"),window.addEventListener("error",(n=>{const r={message:n.error.message,stack:n.error.stack,fileName:n.filename,lineNumber:n.lineno,columnNumber:n.colno};this.reportError(r,e,t)})),window.addEventListener("unhandledrejection",(n=>{const r={message:n.reason};this.reportError(r,e,t)}))}reportError(e,t,n){if(!this.seenErrors.has(e.stack))return this.seenErrors.add(e.stack),this.cwtJetCoreInstance.reportError(e,t,{callTreeId:n})}}const Br="data-tracking-control-name";class zr{constructor({ingraphs:e}={}){if(this.ingraphs=e,!e)throw new Error("ControlInteractionTracking requires an Ingraphs instance");document.body.addEventListener("click",this._handleBodyClicks.bind(this),!0)}_handleBodyClicks(e){const{target:t}=e,n=ee(t,"[".concat(Br,"]"));if(null===n)return;const r=n.getAttribute(Br);n.hasAttribute("data-tracking-client-ingraph")&&this._fireClientIngraphMetric(r)}_fireClientIngraphMetric(e){this.ingraphs.fireCounterIngraphMetric({metricsType:"controlInteractionEvent-".concat(e),sendBeacon:!0})}}const Wr="li_trk_navigation",Gr="undefined";function Jr(){if(typeof window!==Gr&&typeof window.sessionStorage!==Gr)try{return JSON.parse(window.sessionStorage.getItem(Wr))}catch(e){}}function Qr(e){if(typeof window!==Gr&&typeof window.sessionStorage!==Gr)try{window.sessionStorage.setItem(Wr,JSON.stringify(e))}catch(e){}}const Yr="ExternalNavigationEvent",Xr="ControlInteractionEvent",$r="PageVisibilityChangeEvent",Zr="PageViewHeartbeatEvent",ei="LinksterImpressionEvent",ti={FOCUS:"FOCUS",UNFOCUS:"UNFOCUS",KEYBOARD_SUBMIT:"KEYBOARD_SUBMIT",DRAG:"DRAG",PINCH_OPEN:"PINCH_OPEN",PINCH_CLOSE:"PINCH_CLOSE",DOUBLE_PRESS:"DOUBLE_PRESS",LONG_PRESS:"LONG_PRESS",SHORT_PRESS:"SHORT_PRESS",SWIPE_UP:"SWIPE_UP",SWIPE_DOWN:"SWIPE_DOWN",SWIPE_LEFT:"SWIPE_LEFT",SWIPE_RIGHT:"SWIPE_RIGHT",FLICK_UP:"FLICK_UP",FLICK_DOWN:"FLICK_DOWN",FLICK_LEFT:"FLICK_LEFT",FLICK_RIGHT:"FLICK_RIGHT",SHAKE:"SHAKE",KEYBOARD_NEXT:"KEYBOARD_NEXT",HOVER:"HOVER"};function ni(e){return e?e.split(":").pop():null}function ri(e,t){return e&&t?"urn:li:control:".concat(t,"-").concat(e):null}class ii{constructor(e,{globalWindow:t=window,globalDocument:n=document}={}){if(this.window=t,this.document=n,this._trackingCore=e,Object.defineProperty(this._trackingCore,"state",{get:function(){return{currentPageInstance:this.getCurrentContext().pageInstance,previousPageInstance:this.previousAppContext&&this.previousAppContext.pageInstance}}}),this.document){this.document.body.addEventListener("click",(e=>this._handleDocumentClicks(e)),!0),this.document.body.addEventListener("click",(e=>this._handleDocumentClicksBubble(e)),!1);let e="visibilitychange";void 0!==this.document.msHidden&&(e="msvisibilitychange"),this.document.addEventListener(e,(e=>this._handleDocumentVisibilityChange(e)),!0)}this.window&&this.window.addEventListener("beforeunload",(e=>this._handleWindowBeforeUnload(e)),!0)}getAppSeedQps(){let e={};const t=function(){const e=window.location.pathname,t=e+window.location.search,n=window.location.href;let r=Jr();if(!r)return null;for(let i=0;i<r.length;i++){const o=r[i].href;if(o===e||o===t||o===n){const e=r.splice(i,1)[0];return Qr(r),e}}return null}();if(t){const n=ni(t.prevInstance.pageUrn);e={lipi:"".concat(t.prevInstance.pageUrn,";").concat(t.prevInstance.trackingId),licu:ri(t.controlName,n)}}return e}navigate(e,t="full"){const n=G(this.document),r={pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}},i=this._trackingCore.navMetaFromSeed(e,xn(this.getAppSeedQps()));return this._trackingCore.setCurrentContext(i.to),this.fireNavEvents(i,r)}fireNavEvents(e,t){const n=this._trackingCore.generateNavigationEvent(e),{to:r,from:i,navEventId:o}=e,a=this._trackingCore.generateEnvelope(o,n);a.meta.requestHeader.pageKey=r.pageKey;const s=i&&i.applicationInstance;return s&&(a.meta.header.clientApplicationInstance=s),this._trackingCore.host.api.Promise.all([this.firePVE(r.pageKey,t),this._trackingCore.fireEnvelope(a)])}firePVE(e,t,n){const r={pageType:"full",totalTime:0,trackingCode:this._trackingCore.getTrackingCode(),trackingInfo:{}},i=t?this._trackingCore.host.api.assign(r,t):r,o=this._trackingCore.generateEnvelope("PageViewEvent",i,{context:n});return o.meta.requestHeader.pageKey=e,this._trackingCore.fireEnvelope(o)}_handleWindowBeforeUnload(e){const t=e.target.activeElement;let n=t,r=null,i=!1;if(t){for(;n!==e.currentTarget&&("function"!=typeof n.hasAttribute||!n.hasAttribute("data-tracking-control-name"))&&n.parentElement;)n=n.parentElement;n!==e.currentTarget&&("getAttribute"in n&&(r=n.getAttribute("data-tracking-control-name")),"hasAttribute"in n&&(i=n.hasAttribute("data-tracking-will-navigate")))}i||this.fireExternalNavigationEvent(r)}_handleDocumentClicks(e){let t=ee(e.target,"[data-tracking-control-name]");if(!t)return;const n=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(n)}_handleDocumentClicksBubble(e){let t=ee(e.target,"[data-tracking-control-name]");if(!t)return;const n=t.getAttribute("data-tracking-control-name"),r=t.hasAttribute("data-tracking-will-navigate"),i=t.getAttribute("data-tracking-href")||t.getAttribute("href");r&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:i})}_handleDocumentVisibilityChange(){const e=se(this.document);void 0!==e&&this.firePageVisibilityChangeEvent(e)}saveStateForPageDeparture(e){if(!e)return;!function(e){let t=Jr()||[];t.push(e),Qr(t)}({controlName:e.controlName,href:e.href,prevInstance:this._trackingCore.getCurrentContext().pageInstance})}firePageVisibilityChangeEvent(e){this._trackingCore.fireEvent($r,{isVisible:!e})}fireControlInteractionEvent(e,t=ti.SHORT_PRESS,n={}){if(!e)throw new Error("controlName is required in TrackingEvents.fireControlInteractionEvent");const r=ni(this._trackingCore.getCurrentContext().pageInstance.pageUrn),i=n.uiControlPageKey||r;this._trackingCore.fireEvent(Xr,{controlUrn:ri(e,i),interactionType:ti[t]},n)}fireExternalNavigationEvent(e){const t=ni(this._trackingCore.getCurrentContext().pageInstance.pageUrn);this._trackingCore.fireEvent(Yr,{triggerControlUrn:ri(e,t)},{},!0)}fireLinksterImpressionEvent(e,t,n){this._trackingCore.fireEvent(ei,{moduleName:e,sourceEntity:t,destinationEntities:n})}}function oi(e){const t=se(e);return void 0!==t&&!t}class ai{constructor(e,{globalDocument:t=document,globalWindow:n=window,heartbeatDuration:r=2e3}={}){if(!t||!n)return;this.tracking=e,this.document=t,this.window=n,this.heartbeatDuration=r,this._firePageViewHeartbeatEvent=this._firePageViewHeartbeatEvent.bind(this);const i=void 0!==this.document.msHidden?"msvisibilitychange":"visibilitychange";this.document.addEventListener(i,(()=>this._documentVisibilityChangeHeartbeatHandler()),!0),this.window.addEventListener("beforeunload",(()=>{oi(this.document)&&this._firePageViewHeartbeatEvent()}),!0),oi(this.document)&&this._startPageViewHeartbeatInterval()}_startPageViewHeartbeatInterval(){this._pageViewHeartbeatStartTime=Date.now(),this._pageViewHeartbeat=this.window.setInterval(this._firePageViewHeartbeatEvent,this.heartbeatDuration)}_documentVisibilityChangeHeartbeatHandler(){const e=se(this.document);void 0!==e&&(e?(this._firePageViewHeartbeatEvent(),clearInterval(this._pageViewHeartbeat)):this._startPageViewHeartbeatInterval())}_firePageViewHeartbeatEvent(){const e=Date.now();this.tracking.fireTrackingEvent(Zr,{header:{},requestHeader:{},startTime:this._pageViewHeartbeatStartTime},{header:{time:e}}),this._pageViewHeartbeatStartTime=e}}const si=document.getElementById("config");let ci,di,ui,li,pi,hi,fi,gi,mi,vi,yi;function bi(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}si&&si.dataset&&(ci=si.dataset.appId||"seo",di=si.dataset.appVersion||"0.0.0",pi=si.dataset.browserId,ui=si.dataset.callTreeId||null,yi=void 0!==si.dataset.enablePageViewHeartbeatTracking,vi=void 0!==si.dataset.enableCoreWebTracking,li=si.dataset.customTrackingCode||void 0,hi=si.dataset.trackingPageType||void 0,fi="string"==typeof si.dataset.jetTags&&si.dataset.jetTags.split(",")||[],gi=si.dataset.multiproductName||"undefined-frontend-mpName",mi=si.dataset.serviceName||"undefined-frontend-serviceName"),bi("lazyloader",function(e={}){return Ae=Ae||new Se(e),Ae}()),te((()=>{const e=W(document),t=document.querySelector('meta[name="locale"]').content,n={appId:ci,appVersion:di,locale:t,multiproduct:gi,service:mi,endpoint:"/li/track",api:{AbortController:AbortController,location:window.location,document:document,performance:performance,PerformanceObserver:PerformanceObserver,Promise:Promise,assign:Object.assign,fetch:fetch,sendBeacon:navigator.sendBeacon.bind(navigator)},batching:{maxSize:10,debounceTime:50}};ui&&(n.treeID=ui);const r=new Mn(n),i=new Un(r);i.fireTrackingEvent=i.fireEvent,i.generateTrackingId=An;const o=[];for(let e=0;e<16;e++){let t=mi.charCodeAt(e);isNaN(t)&&(t=0),o.push(t)}const a={applicationUrn:"urn:li:application:(".concat(gi,",").concat(mi,")"),version:di,trackingId:o},s=vi?i:de({appId:ci,trackingCode:li,applicationInstance:a});if(i.updateAppState({applicationViewerUrn:"urn:li:guest:".concat(pi),clientApplicationInstance:a}),vi){const t=new ii(i);i.fireControlInteractionEvent=t.fireControlInteractionEvent.bind(t),i.fireLinksterImpressionEvent=t.fireLinksterImpressionEvent.bind(t),t.navigate(e,hi)}else i.setCurrentContext({pageKey:e,pageInstance:Pn(e,s.generateTrackingId())});const c=new Ge(window.IntersectionObserver,s,{componentList:[...document.querySelectorAll("[data-impression-id]")],onImpression:Je,onUnobservation:Qe});yi&&new ai(s),bi("tracking",s),bi("impressionTracking",c),bi("pemTracking",new I("Default - PEM Tracking Instance",((t,n,r)=>{vi?i.fireEvent(t,n,{context:{pageKey:e,pageInstance:r}}):s.fireTrackingEvent(t,n,{pageInstance:r})})));const d=new Vr({"app-render-mode":"SSRSEO","is-app-render-failed":!1},{"is-single-page-app":!1,"navigation-timing-only":!0,"enable-rs-timing":!0,"enable-cdn-tracking":!0,"enable-pop-tracking":!0,"request-sampling-rate":1,"beacon-timeout":500,"web-ui-framework":"DUST"},i);d.end(d.start()),d.observeWebVitals();new qr(i).bind(fi,ui),z(),vi||ue(s,hi);const u=document.querySelector('meta[name="clientSideIngraphs"]');if(u){const{gaugeMetricEndpoint:t,counterMetricEndpoint:n}=u.dataset,r=vi?i.getCurrentContext().pageInstance:s.state.currentPageInstance,o=new ze({counterMetricEndpoint:n,gaugeMetricEndpoint:t,pageKey:e,pageInstanceHeader:r});new zr({ingraphs:o}),bi("ingraphTracking",o),o.firePageLoadTimeMetric(),o.fireSeoPageViewMetric(),o.attachWebVitalsMetrics()}if(it(),document.querySelector(".global-alert-banner")){new bn({enableControlInteractionEvents:!0,trackingInstance:s||i})}if(!!document.head.querySelector('link[rel="manifest"]')){bi("appDetection",new En(((e,t)=>{s.fireTrackingEvent(e,t)})).getInstalledApps())}}))}();
