/*! For license information please see chunk.166.8b43018668c95e03bbe6.js.LICENSE.txt */
(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[166],{51495:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{CI:()=>r,DEBUG:()=>i})
const i=!1,r=!1},99186:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{Abi:()=>re,AbiV2:()=>oe})
var i={}
function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}n.r(i),n.d(i,{ABI_FUNNEL_TRACKING_EVENTS:()=>E,EMAIL_DOMAIN_RESOLVE:()=>h,EMAIL_VALIDATION_ERRORS:()=>y,EVENT_NAME:()=>u,IMPORT_CONTACTS:()=>g,IMPORT_ERRORS:()=>b,INPUT_EMAIL:()=>p,NETWORK_ERROR:()=>c,OAUTH:()=>v,POLL_IMPORT_STATUS:()=>m,STATES:()=>f,STATE_MACHINE_ERRORS:()=>k,STATE_TRANSITION_EVENT_NAME:()=>d,TOO_MANY_REQUESTS:()=>l}),r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number")
return this._maxListeners=e,this},r.prototype.emit=function(e){let t,n,i,r,c,l
if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t
throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1
if(o(n))switch(arguments.length){case 1:n.call(this)
break
case 2:n.call(this,arguments[1])
break
case 3:n.call(this,arguments[1],arguments[2])
break
default:for(i=arguments.length,r=new Array(i-1),c=1;c<i;c++)r[c-1]=arguments[c]
n.apply(this,r)}else if(a(n)){for(i=arguments.length,r=new Array(i-1),c=1;c<i;c++)r[c-1]=arguments[c]
for(l=n.slice(),i=l.length,c=0;c<i;c++)l[c].apply(this,r)}return!0},r.prototype.addListener=function(e,t){var n
if(!o(t))throw TypeError("listener must be a function")
return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function")
let n=!1
function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){let n,i,r,s
if(!o(t))throw TypeError("listener must be a function")
if(!this._events||!this._events[e])return this
if(n=this._events[e],r=n.length,i=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t)
else if(a(n)){for(s=r;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s
break}if(i<0)return this
1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){let t,n
if(!this._events)return this
if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this
if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t)
return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n)
else for(;n.length;)this.removeListener(e,n[n.length-1])
return delete this._events[e],this},r.prototype.listeners=function(e){let t
return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},r.listenerCount=function(e,t){let n
return n=e._events&&e._events[t]?o(e._events[t])?1:e._events[t].length:0,n}
const c="network-error",l="Too Many Requests",u="custom-state-event",d="state-transition-event",f={INPUT_EMAIL:"input-email",EMAIL_DOMAIN_RESOLVE:"email-domain-resolve",IMPORT_CONTACTS:"import-contacts",POLL_IMPORT_STATUS:"poll-import-status",OAUTH:"oauth"},p={EVENTS:{EMAIL_INPUT_CHANGE:"emailInputChange",FETCH_FORM_SUBMIT:"fetchFormSubmit"},EVENT_TYPE:{INVALID_EMAIL:"invalid-email"}},h={EVENTS:{EMAIL_INPUT_CHANGE:"emailInputChange"},EVENT_TYPE:{PROVIDER_CHANGED:"provider-changed",RESOLUTION_BEGUN:"resolution-begun",RESOLUTION_COMPLETE:"resolution-complete",PASSWORD_REQUIRED:"password-required",UNSUPPORTED_DOMAIN:"unsupported-domain",NETWORK_ERROR:"network-error"}},g={EVENTS:{STATE_RESET:"stateReset"},EVENT_TYPE:{OPEN_POPUP:"open-popup"}},m={EVENTS:{GET_IMPORT_STATUS:"getImportStatus",STATE_RESET:"stateReset"},EVENT_TYPE:{IMPORT_STARTED:"import-started",IMPORT_SUCCESS:"import-success",IMPORT_IN_PROGRESS:"import-in-progress",IMPORT_ERROR_OTHER:"import-error-other",IMPORT_ERROR_BAD_LOGIN:"import-error-bad-login",ZERO_CONTACTS_TO_IMPORT:"zero-contacts-to-import",INVALID_CREDENTIALS:"invalid-credentials",EXCEEDED_MAX_RETRIES:"exceeded-max-retries"}},v={EVENTS:{STATE_RESET:"stateReset"},EVENT_TYPE:{CALLBACK:"oauth-callback",OAUTH_SUCCESS:"oauth-success",UPDATE_POPUP:"update-popup",LOGIN_LIMIT_EXCEEDED:"login-limit-exceeded"}},y={INVALID_EMAIL:"invalid-email",UNSUPPORTED_DOMAIN:"unsupported-domain",OAUTH_WITHOUT_PROVIDER:"oauth-without-provider",INVALID_DOMAIN_RESOLUTION_CALLBACK:"invalid-domain-resolution-callback",NETWORK:"network",OTHER:"other"},b={EMPTY_CONFIG:"empty-config",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"invalid-password",INVALID_ABOOK_TRANSACTION_ID:"invalid-abook-transaction-id",INVALID_TICKET_ID_CALLBACK:"invalid-ticket-id-callback",INVALID_POLL_STATUS_CALLBACK:"invalid-poll-status-callback",INVALID_TRACKING_CALLBACK:"invalid-tracking-callback",INVALID_CREDENTIALS:"invalid-credentials",INVALID_JSECURE:"invalid-jsecure",ZERO_CONTACTS_TO_IMPORT:"zero-contacts-to-import",EXCEEDED_MAX_REQUEST_RETRIES:"exceeded-max-request-retries",EXCEEDED_MAX_STATUS_CHECK_RETRIES:"exceeded-max-status-check-retries",IMPORT_ERROR_OTHER:"import-error-other",NETWORK:"network",OTHER:"other",INVALID_IMPORT_TICKET_ID:"invalid-import-ticket-id",OAUTH_VALIDATION_TIMED_OUT:"oauth-validation-timed-out",OAUTH_POPUP_NOT_OPEN:"oauth-popup-not-open"},E={SUBMIT:"AbookImportSubmitEvent",TASK_STATUS:"AbookImportTaskStatusEvent",OAUTH_REDIRECT:"AbookImportOAuthRedirectEvent",OAUTH_CALLBACK:"AbookImportOAuthCallbackEvent"},k={ALREADY_STARTED:"State machine has already begun"}
class _ extends r{constructor(e,t,n){if(super(),this.promise=n||Promise,!Array.isArray(e))throw new Error("The state machine constructor only accepts an array of states as the first argument")
if(!t)throw new Error("Define a start state for the state machine")
if(this.states={},e.forEach((e=>{this.addState(e)})),this.startState=this.states[t],!this.startState)throw new Error("Start state is not defined")
this.currentState=this.startState}start(){if(this.currentState.getName()!==this.startState.getName())throw new Error(k.ALREADY_STARTED)
this.step()}addState(e){this.states[e.getName()]=e,e.on(u,(t=>{const n=t.type||u
this.emit(n,{currentState:e.getName(),eventData:t})})),e.on(d,(e=>{this._transitionTo(e)}))}_transitionTo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if(!(e.state in this.states))throw new Error(`Cannot transition from ${this.currentState} to ${e.state}`)
this.currentState=this.states[e.state],delete e.state,this.step(e.eventName,e)}step(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"entry",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=this.currentState.go(e,t.data)
if(n){if("function"==typeof n.then)return new this.promise((e=>{e(n)})).then((e=>this._transitionTo(e)))
this._transitionTo(n)}}getCurrentState(){return this.currentState.getName()}}class T extends r{constructor(e,t){super(),this.name=e,this.validNextStates=t,this.defaultStateEvents=["entry"],this.events=[]}onEntry(){}getName(){return this.name}getNextStates(){return this.validNextStates}getEvents(){return this.defaultStateEvents+this.events}go(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"entry",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(this.getEvents().indexOf(e)>-1)return this[`on${e.charAt(0).toUpperCase()}${e.slice(1)}`](t)
throw new Error(`I can not serve that event. Expecting [${this.getEvents()}]\n                but got ${e} from ${this.name}`)}}class S extends T{constructor(){super(f.INPUT_EMAIL,[f.EMAIL_DOMAIN_RESOLVE,f.IMPORT_CONTACTS]),this.events=[p.EVENTS.EMAIL_INPUT_CHANGE,p.EVENTS.FETCH_FORM_SUBMIT],this.resolvedEmail=null,this.isNonOAuth=!1,this.provider=null}onEntry(e){Object.prototype.hasOwnProperty.call(e,"emailAddress")&&(this.resolvedEmail=e.emailAddress),Object.prototype.hasOwnProperty.call(e,"isNonOAuth")&&(this.isNonOAuth=e.isNonOAuth),Object.prototype.hasOwnProperty.call(e,"provider")&&(this.provider=e.provider)}onEmailInputChange(e){let t="object"==typeof e?e.emailAddress:e
if("object"==typeof e&&!e.isEmailDomainResolve)return this.emit(u,{type:h.EVENT_TYPE.RESOLUTION_COMPLETE}),this.isNonOAuth=Object.prototype.hasOwnProperty.call(e,"isNonOauth")?e.isNonOAuth:this.isNonOAuth,{state:f.INPUT_EMAIL,data:{emailAddress:t,isEmailDomainResolve:e.isEmailDomainResolve,provider:e.provider,isNonOAuth:e.isNonOAuth}}
const n=/^([a-zA-Z0-9_\-=.'+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9-]+\.)+))([a-zA-Z]{2,10}|[0-9]{1,3})(\]?)$/
if(t.length){if(t=t.trim(),n.test(t))return{state:f.EMAIL_DOMAIN_RESOLVE,data:{emailAddress:t,isEmailDomainResolve:e.isEmailDomainResolve,provider:e.provider,isNonOAuth:e.isNonOAuth}}
this.emit(u,{type:p.EVENT_TYPE.INVALID_EMAIL})}}onFetchFormSubmit(e){const t={},{abookImportTransactionId:n,password:i}=e
if(this.isNonOAuth&&i.length>0?t.password=i:this.isNonOAuth&&this.emit(u,{type:h.EVENT_TYPE.PASSWORD_REQUIRED}),n&&(t.abookImportTransactionId=n),this.resolvedEmail)return t.emailAddress=this.resolvedEmail,t.isNonOAuth=this.isNonOAuth,t.provider=this.provider,{state:f.IMPORT_CONTACTS,data:t}
this.emit(u,{type:p.EVENT_TYPE.INVALID_EMAIL})}}const C=Object.freeze({"com.linkedin.voyager.dash.deco.contacts.EmailProvider":"com.linkedin.voyager.dash.deco.contacts.EmailProvider-1","com.linkedin.voyager.dash.deco.contacts.EmailImportTaskStatus":"com.linkedin.voyager.dash.deco.contacts.EmailImportTaskStatus-1"}),w="X-RestLi-Method",x="X-RestLi-Protocol-Version",I="Csrf-Token",A="Content-Type",R="x-restli-id",O="application/json",j="2.0.0",M={GET:"GET",CREATE:"POST",ACTION:"POST"}
function N(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function P(){const e=N()&&document.cookie.match(/JSESSIONID=?"?([^";]+)?"?/)
return e&&e[1]||""}function D(e,t,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}
const o=M[t],a=JSON.stringify(n)||""
return new i(((n,i)=>{const s=new XMLHttpRequest
s.open(o,e),s.setRequestHeader(A,O),s.setRequestHeader(I,P()),s.setRequestHeader(x,j),t&&o!==t&&s.setRequestHeader(w,t),Object.keys(r).forEach((e=>{s.setRequestHeader(e,r[e])})),s.onload=function(){let e=this
if(!e){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o]
e=r[0].target}4===e.readyState&&(200===e.status?n(JSON.parse(e.response||e.responseText)):201===e.status?n(e.getResponseHeader(R)):i(new Error(e.statusText)))},s.onerror=function(e){i(new Error(e))},s.send(a)}))}function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0
const i=C[n]
if(!e)throw new Error("uri must be passed.")
if(!i)throw new Error("Invalid recipeId! Recipe not defined in dash-recipes.")
const r=Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&")
return`${e}?decorationId=${i}&${r}`}class L extends T{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
super(f.EMAIL_DOMAIN_RESOLVE,[f.INPUT_EMAIL]),this.promise=e||Promise,this.events=[h.EVENTS.EMAIL_INPUT_CHANGE]
const{dashEnabled:n,pageKey:i}=t
if(n&&!i)throw new Error("PageKey is required for dash email domain resolver")
this.dashEnabled=n,this.pageKey=i}_buildDomainUrl(e){return this.dashEnabled?U("/voyager/api/voyagerContactsDashEmailProvider",{q:"findEmailProviders",emailAddress:e},"com.linkedin.voyager.dash.deco.contacts.EmailProvider"):`/voyager/api/voyagerGrowthEmailDomainResolutions/${e}`}onEntry(e){const t=this._buildDomainUrl(e.emailAddress)
this.emit(u,{type:h.EVENT_TYPE.RESOLUTION_BEGUN})
const n={}
return this.dashEnabled&&(n["X-Li-Page-Instance"]=this.pageKey),D(t,"GET",{},this.promise,n).then((t=>{let n=t
return this.dashEnabled&&(n=t&&t.elements?t.elements[0]:{}),this._handleResponse(e,n)})).catch((()=>{this.emit(u,{type:c})}))}_handleResponse(e,t){return this.emit(u,{type:h.EVENT_TYPE.RESOLUTION_COMPLETE}),"UNSUPPORTED"===t.emailProviderType?(this.emit(u,{type:h.EVENT_TYPE.UNSUPPORTED_DOMAIN}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,provider:t.emailProviderType,isNonOAuth:t.passwordInputRequired}}):t.passwordInputRequired?(this.emit(u,{type:h.EVENT_TYPE.PASSWORD_REQUIRED}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,provider:t.emailProviderType,isNonOAuth:t.passwordInputRequired}}):{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,provider:t.emailProviderType,isNonOAuth:t.passwordInputRequired}}}onEmailInputChange(e){const t=p.EVENTS.EMAIL_INPUT_CHANGE
return this.emit(u,{type:h.EVENT_TYPE.PROVIDER_CHANGED}),{state:f.INPUT_EMAIL,eventName:t,data:{emailAddress:e}}}}class F extends T{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
super(f.IMPORT_CONTACTS,[f.POLL_IMPORT_STATUS]),this.promise=e||Promise,this.events=[v.EVENTS.STATE_RESET]
const{dashEnabled:n,pageKey:i}=t
if(n&&!i)throw new Error("PageKey is required for import contacts")
this.dashEnabled=n,this.pageKey=i,this.importUrl=this.dashEnabled?"/voyager/api/voyagerContactsDashEmailImportTask":"/voyager/api/voyagerGrowthEmailImportTask"}get customHeaders(){return this.dashEnabled?{"X-Li-Page-Instance":this.pageKey}:{}}onStateReset(e){return this.importUrl=this.importUrl,{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}}}onEntry(e){e.isNonOAuth||this.emit(u,{type:g.EVENT_TYPE.OPEN_POPUP})
const t=this.dashEnabled?{email:e.emailAddress,password:e.password,transactionId:e.abookImportTransactionId}:{emailAddress:e.emailAddress,password:e.password,abookImportTransactionId:e.abookImportTransactionId}
return D(this.importUrl,"CREATE",t,this.promise,this.customHeaders).then((t=>({state:f.POLL_IMPORT_STATUS,data:{ticketId:t,emailAddress:e.emailAddress,provider:e.provider,isNonOAuth:e.isNonOAuth}}))).catch((t=>(t.message===l?this.emit(u,{type:m.EVENT_TYPE.EXCEEDED_MAX_RETRIES}):this.emit(u,{type:c}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})))}}class B extends T{constructor(){super(f.OAUTH,[f.IMPORT_CONTACTS,f.INPUT_EMAIL]),this.oAuthUrl="/genie/startauth?sec=true&cb=onAuthenticationComplete&as=",this.events=[v.EVENTS.STATE_RESET]}_adjustDomain(){let e=document.domain,t=e
const n=/(lmodules)|(linkedin)/i,i=/\./g
if(i.test(e))for(let r=0,o=e.match(i).length;r<o&&(e=e.substring(e.indexOf(".")+1),n.test(e));r+=1)t=e
document.domain!==t&&(document.domain=t)}_updatePopup(e){this._adjustDomain(),this.emit(u,{type:v.EVENT_TYPE.UPDATE_POPUP,provider:this.provider,url:`https://www.${document.domain}${e}`})}onEntry(e){this.isNonOAuth=e.isNonOAuth,this.provider=e.provider,window.onAuthenticationComplete=this.onAuthenticationComplete.bind(this),e.isNonOAuth||(e.authSpecGaapScriptV2Urn?this._updatePopup(`${this.oAuthUrl}${e.authSpecGaapScriptV2Urn}`):this._updatePopup(`${this.oAuthUrl}${e.authSpec}`))}onStateReset(e){return{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}}}onAuthenticationComplete(e,t){if(this.emit(u,{type:v.EVENT_TYPE.CALLBACK,error:t}),t)return this.emit(u,{type:c}),{state:f.INPUT_EMAIL}
this.emit(u,{type:v.EVENT_TYPE.OAUTH_SUCCESS}),this.emit(d,{state:f.IMPORT_CONTACTS,data:{emailAddress:e,isNonOAuth:this.isNonOAuth,provider:this.provider}})}}class q extends T{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
super(f.POLL_IMPORT_STATUS,[f.INPUT_EMAIL,f.OAUTH]),this.promise=e.promise||Promise
const{dashEnabled:t,pageKey:n}=e
if(t&&!n)throw new Error("PageKey is required for poll import status")
this.dashEnabled=t,this.pageKey=n,this.events=[m.EVENTS.GET_IMPORT_STATUS,m.EVENTS.STATE_RESET],this.currentStatus=!1,this.pollingCount=0,this.noOfRetries=e.noOfRetries||30,this.pollingInterval=e.pollingInterval||0===e.pollingInterval?e.pollingInterval:500}onEntry(e){return new this.promise((t=>{const n=this
this._pollStatus(e).then((function i(r){r?t(r):setTimeout((()=>{n._pollStatus(e).then(i)}),n.pollingInterval)}))}))}_buildPollImportStatusUrl(e){return this.dashEnabled?U(`/voyager/api/voyagerContactsDashEmailImportTaskStatus/${e}`,{},"com.linkedin.voyager.dash.deco.contacts.EmailImportTaskStatus"):"/voyager/api/voyagerGrowthEmailImportTask?action=getImportStatus"}get customHeaders(){return this.dashEnabled?{"X-Li-Page-Instance":this.pageKey}:{}}_pollStatus(e){if(this.pollingCount<this.noOfRetries){let t="GET"
const n={}
return this.dashEnabled||(n.importTaskHandle={handle:e.ticketId},t="ACTION"),this.pollingCount=this.pollingCount+1,D(this._buildPollImportStatusUrl(e.ticketId),t,n,this.promise,this.customHeaders).then((t=>{const n=this.dashEnabled?t.state:t.value.status,{authSpec:i,authSpecGaapScriptV2Urn:r}=this.dashEnabled?t:t.value
switch(n){case"IN_PROGRESS":return new this.promise((e=>{1===this.pollingCount?this.emit(u,{type:m.EVENT_TYPE.IMPORT_STARTED}):this.emit(u,{type:m.EVENT_TYPE.IMPORT_IN_PROGRESS}),e()}))
case"SUCCESS":return new this.promise((t=>{this.emit(u,{type:m.EVENT_TYPE.IMPORT_SUCCESS,ticketId:e.ticketId}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress,ticketId:e.ticketId,success:!0}})}))
case"ERROR_BAD_LOGIN":return new this.promise((t=>{this.emit(u,{type:m.EVENT_TYPE.IMPORT_ERROR_BAD_LOGIN}),e.isNonOAuth?(this.emit(u,{type:m.EVENT_TYPE.INVALID_CREDENTIALS}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})):t(i?{state:f.OAUTH,data:{emailAddress:e.emailAddress,isNonOAuth:e.isNonOAuth,provider:e.provider,authSpec:i}}:{state:f.OAUTH,data:{emailAddress:e.emailAddress,isNonOAuth:e.isNonOAuth,provider:e.provider,authSpecGaapScriptV2Urn:r}})}))
case"ERROR_ZERO_CONTACTS":return new this.promise((t=>{this.emit(u,{type:m.EVENT_TYPE.ZERO_CONTACTS_TO_IMPORT}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})}))
case"ERROR_OTHERS":case"ERROR_OTHER":return new this.promise((t=>{this.emit(u,{type:m.EVENT_TYPE.IMPORT_ERROR_OTHER}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})}))
default:return new this.promise((t=>{this.emit(u,{type:c}),t({state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})}))}})).catch((()=>(this.emit(u,{type:c}),{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}})))}this.emit(u,{type:m.EVENT_TYPE.EXCEEDED_MAX_RETRIES})}onGetImportStatus(){return this.currentStatus}onStateReset(e){return this.currentStatus=this.currentStatus,{state:f.INPUT_EMAIL,data:{emailAddress:e.emailAddress}}}}function H(e){return new Promise(((t,n)=>{if(e.resolveDomainCallback&&"function"==typeof e.resolveDomainCallback||n(y.INVALID_DOMAIN_RESOLUTION_CALLBACK),e.emailAddress&&"string"==typeof e.emailAddress){const i=e.emailAddress.trim();/^([a-zA-Z0-9_\-=.'+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9-]+\.)+))([a-zA-Z]{2,10}|[0-9]{1,3})(\]?)$/.test(i)?e.resolveDomainCallback.call(this,{emailAddress:i}).then((e=>{const r={isOauth:e.isOauth,emailAddress:i}
e.isOauth&&(e.providerName?"UNSUPPORTED"===e.providerName?n(y.UNSUPPORTED_DOMAIN):r.providerName=e.providerName:n(y.OAUTH_WITHOUT_PROVIDER)),t(r)})).catch((()=>{n(y.OTHER)})):n(y.INVALID_EMAIL)}else n(y.INVALID_EMAIL)}))}function G(e){let t,n
return new Promise(((i,r)=>{e||r(b.EMPTY_CONFIG),e.pollStatusCallback&&"function"==typeof e.pollStatusCallback||r(b.INVALID_POLL_STATUS_CALLBACK),e.fireTrackingEventCallback&&"function"==typeof e.fireTrackingEventCallback||r(b.INVALID_TRACKING_CALLBACK),e.abookImportTransactionId&&"string"==typeof e.abookImportTransactionId||r(b.INVALID_ABOOK_TRANSACTION_ID),e.importTicketId&&"string"==typeof e.importTicketId||r(b.INVALID_IMPORT_TICKET_ID),n=e.retryCount||0
try{e.pollStatusCallback.call(this,{importTicketId:e.importTicketId}).then((o=>{const a=o.status||"ERROR_OTHER"
switch(e.fireTrackingEventCallback&&e.fireTrackingEventCallback(E.TASK_STATUS,{status:a,abookImportTransactionId:e.abookImportTransactionId}),o.status){case"SUCCESS":i({importTicketId:e.importTicketId,abookImportTransactionId:e.abookImportTransactionId})
break
case"IN_PROGRESS":t=setTimeout((()=>{if(clearTimeout(t),n<30)return n+=1,G.call(this,{importTicketId:e.importTicketId,pollStatusCallback:e.pollStatusCallback,fireTrackingEventCallback:e.fireTrackingEventCallback,abookImportTransactionId:e.abookImportTransactionId,isOauthImport:e.isOauthImport||!1,retryCount:n}).then((e=>i(e))).catch((e=>r(e)))
r(b.EXCEEDED_MAX_STATUS_CHECK_RETRIES)}),500)
break
case"ERROR_BAD_LOGIN":e.isOauthImport?i(o):r(b.INVALID_CREDENTIALS)
break
case"ERROR_ZERO_CONTACTS":r(b.ZERO_CONTACTS_TO_IMPORT)
break
default:r(b.IMPORT_ERROR_OTHER)}})).catch((()=>{e.fireTrackingEventCallback(E.TASK_STATUS,{status:"NETWORK_ERROR",abookImportTransactionId:e.abookImportTransactionId}),r(b.IMPORT_ERROR_OTHER)}))}catch(t){e.fireTrackingEventCallback(E.TASK_STATUS,{status:"NETWORK_ERROR",abookImportTransactionId:e.abookImportTransactionId}),r(b.IMPORT_ERROR_OTHER)}}))}function V(e){return new Promise(((t,n)=>{e||n(b.EMPTY_CONFIG),e.emailAddress&&"string"==typeof e.emailAddress||n(b.INVALID_EMAIL),e.password&&"string"==typeof e.password||n(b.INVALID_PASSWORD),e.abookImportTransactionId&&"string"==typeof e.abookImportTransactionId||n(b.INVALID_ABOOK_TRANSACTION_ID),e.getImportTicketIdCallback&&"function"==typeof e.getImportTicketIdCallback||n(b.INVALID_TICKET_ID_CALLBACK),e.pollStatusCallback&&"function"==typeof e.pollStatusCallback||n(b.INVALID_POLL_STATUS_CALLBACK),e.fireTrackingEventCallback&&"function"==typeof e.fireTrackingEventCallback||n(b.INVALID_TRACKING_CALLBACK),e.fireTrackingEventCallback(E.SUBMIT,{abookImportTransactionId:e.abookImportTransactionId}),e.getImportTicketIdCallback.call(this,{emailAddress:e.emailAddress,password:e.password,abookImportTransactionId:e.abookImportTransactionId}).then((i=>{if(i.importTicketId)return G({importTicketId:i.importTicketId,pollStatusCallback:e.pollStatusCallback,fireTrackingEventCallback:e.fireTrackingEventCallback,abookImportTransactionId:e.abookImportTransactionId}).then((e=>t(e))).catch((e=>n(e)))
n(b.INVALID_IMPORT_TICKET_ID)})).catch((e=>{Array.isArray(e.errors)&&e.errors.some((e=>429===e.status))?n(b.EXCEEDED_MAX_REQUEST_RETRIES):n(e||b.OTHER)}))}))}const K={hotmail:{width:905,height:580},aol:{width:520,height:315},"live.com":{width:905,height:580},"msn.com":{width:905,height:580},default:{width:790,height:650},minimum:{width:150,height:100}},W=N()
let z,X,Q,Y,$
function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.default,n=arguments.length>2?arguments[2]:void 0
if(W||"function"!=typeof X){if(!z)return}else X({url:e,size:t})
const{oAuthWindow:i}=z,{width:r,height:o}=t
i&&i.resizeTo?(i.location=n.sanitizeUrl(e),i.resizeTo(r,o),Y.fireTrackingEventCallback(E.OAUTH_REDIRECT,{abookImportTransactionId:Y.abookImportTransactionId})):z=null}function Z(){if(!z)return
const{oAuthWindow:e}=z
e&&(e.focus(),setTimeout((()=>{e&&e.close()}),5)),z=null}function ee(e){return new Promise(((t,n)=>{e.getImportTicketIdCallback.call(this,{emailAddress:e.emailAddress,abookImportTransactionId:e.abookImportTransactionId}).then((t=>{if(t.importTicketId)return G({importTicketId:t.importTicketId,pollStatusCallback:e.pollStatusCallback,fireTrackingEventCallback:e.fireTrackingEventCallback,abookImportTransactionId:e.abookImportTransactionId,isOauthImport:e.isOauthImport})
n(b.IMPORT_ERROR_OTHER)})).then((e=>{t(e)})).catch((e=>{Array.isArray(e.errors)&&e.errors.some((e=>429===e.status))?n(b.EXCEEDED_MAX_REQUEST_RETRIES):n(e)}))}))}function te(){if(!W)return void(z={})
const{width:e,height:t}=K.minimum,n=window.open("","oauth-popup",`width=${e},height=${t},toolbar=0,location=0,status=0,scrollbars=no`)
z={oAuthWindow:n},$=!1,n&&(n.focus(),function(){let e=0
return new Promise((function t(n,i){z&&z.oAuthWindow&&!z.oAuthWindow.closed?e<120?(e+=1,setTimeout(t,1e3,n,i)):(Z(),i()):(z=null,$?n():i())}))}().catch((()=>{"function"==typeof Q&&Q(b.OAUTH_VALIDATION_TIMED_OUT)})))}function ne(e,t){let n="linkedin.com"
W&&(function(){let e=document.domain,t=e
const n=/(lmodules)|(linkedin)/i,i=/\./g
if(i.test(e))for(let r=0,o=e.match(i).length;r<o&&(e=e.substring(e.indexOf(".")+1),n.test(e));r+=1)t=e
document.domain!==t&&(document.domain=t)}(),n=document.domain)
const i=`https://www.${n}/genie/startauth?sec=true&cb=onAuthenticationComplete&as=${e}`
return"YAHOO_JAPAN"===t?`https://fbi.address.yahoo.co.jp/explain?done=${encodeURIComponent(i)}`:i}function ie(e){return new Promise(((t,n)=>{e||n(b.EMPTY_CONFIG),e.emailAddress&&e.emailAddress.length||n(b.INVALID_EMAIL),e.abookImportTransactionId&&e.abookImportTransactionId.length||n(b.INVALID_ABOOK_TRANSACTION_ID),e.provider&&e.provider.length||n(b.INVALID_EMAIL),e.getImportTicketIdCallback&&"function"==typeof e.getImportTicketIdCallback||n(b.INVALID_TICKET_ID_CALLBACK),e.pollStatusCallback&&"function"==typeof e.pollStatusCallback||n(b.INVALID_POLL_STATUS_CALLBACK),e.fireTrackingEventCallback&&"function"==typeof e.fireTrackingEventCallback||n(b.INVALID_TRACKING_CALLBACK),e.jSecure&&"object"==typeof e.jSecure||n(b.INVALID_JSECURE),e.isOauthImport=!0,z||te(),z||n(b.OAUTH_POPUP_NOT_OPEN),X=t,Q=n,e.fireTrackingEventCallback(E.SUBMIT,{abookImportTransactionId:e.abookImportTransactionId}),ee(e).then((i=>{const{importTicketId:r,authSpec:o,authSpecGaapScriptV2Urn:a}=i
if(r)Z(),t(i)
else if(o){const t=ne(o,e.provider),n=K[e.provider]
Y=e,J(t,n,e.jSecure)}else if(a){const t=ne(a,e.provider),n=K[e.provider]
Y=e,J(t,n,e.jSecure)}else n(b.OTHER)})).catch((e=>{Z(),n(e)}))}))}W&&(window.onAuthenticationComplete=function(e,t){e?(Y.emailAddress=e,ee(Y).then((e=>{const{importTicketId:t}=e
t&&"function"==typeof X?X(e):"function"==typeof Q&&Q(b.IMPORT_ERROR_OTHER)})).catch((()=>{"function"==typeof Q&&Q(b.IMPORT_ERROR_OTHER)})).then((()=>Z()))):"function"==typeof Q&&Q({error:t}),Y.fireTrackingEventCallback(E.OAUTH_CALLBACK,{abookImportTransactionId:Y.abookImportTransactionId}),$=!0,Z()})
class re extends _{constructor(e){super([new S,new L(e),new F(e),new B,new q({promise:e})],f.INPUT_EMAIL,e),this.CONSTANTS=i,this.validateEmailAndResolveDomain=H,this.importContactsFromNonOauthDomain=V,this.importContactsFromOauthDomain=ie,this.openOauthPopup=te,this.closeOauthPopup=Z}}class oe extends _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
const{promise:t,pageKey:n}=e
if(!n)throw new Error("PageKey is required")
super([new S,new L(t,{dashEnabled:!0,pageKey:n}),new F(t,{dashEnabled:!0,pageKey:n}),new B,new q({promise:t,dashEnabled:!0,pageKey:n})],f.INPUT_EMAIL,t),this.CONSTANTS=i,this.validateEmailAndResolveDomain=H,this.importContactsFromNonOauthDomain=V,this.importContactsFromOauthDomain=ie,this.openOauthPopup=te,this.closeOauthPopup=Z}}},57727:(e,t,n)=>{"use strict"
function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}n.r(t),n.d(t,{GUEST_PREFERENCES:()=>F,NON_ESSENTIAL_CATEGORIES:()=>k,SETTINGS_COLOR_SCHEME:()=>C,USER_MODE:()=>_,getBannerData:()=>U,getCookieConsent:()=>D,getPreferenceStatuses:()=>G,parseEncodedConsent:()=>P,updateCookieConsent:()=>L})
var a=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),s=/^fs_/
function c(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof e+".")
var t,n,i=a.exec(e)
return i&&(t=i[1].replace(s,""),n=i[2]),{id:n,type:t}}var l,u,d=/(?![^(]*\)),/,f=function e(t){var n=c(t),i=n.id,r=n.type,o={}
if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(d),l=0;a=s[l];++l)0===a.indexOf("urn")&&(s[l]=e(a))
i=s}return o[r]=i,o},p=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null}
function h(e){return"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(e,"base64").toString("binary"):atob(e)}var g,m,v,y,b,E,k={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},_={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},T=(r(l={},_.GUEST,"li_gc"),r(l,_.MEMBER,"li_mc"),r(l,_.ENTERPRISE_UNBOUND,"li_ec"),l),S=(r(u={},_.GUEST,"mypreferences/g/guest-cookies"),r(u,_.MEMBER,"settings/member-cookies"),r(u,_.ENTERPRISE_UNBOUND,"mypreferences/e/enterprise-cookies"),u),C=Object.freeze(["dark","light"]),w="liap",x=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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var a in i(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},k)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===o},I=(g=[k.ADVERTISING,k.ANALYTICS_AND_RESEARCH,k.FUNCTIONAL],m=[0,1,2,0],v=function(e){for(var t={},n=0;n<g.length;n++)t[g[n]]=m[e>>2*n&3]
return t},y=function(e){var t=0
return e>=0&&e<=3&&(t=m[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),i=e.match(n)
if(!i)return{error:"Invalid consent body encoding",consent:new x}
var r=v(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=y(parseInt(i[3],10))
return{error:null,consent:new x(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=f(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!i)return{error:"Invalid enterprise profile urn provided",consent:new x}
var r=i.enterpriseAccountId,a=i.enterpriseProfileId,s=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),c=e.match(s)
if(!c)return{error:"Invalid consent body encoding",consent:new x}
var l=c[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t,i=(4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0
try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),4!==n.length);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,4)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,4):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[1],c=i[2],l=i[3]
return s===r&&c===a&&l===n}))[0]
if(!l)return{error:null,consent:new x}
var u=v(l[0]),d=new Date(1e3*parseInt(c[2],10)),p=y(parseInt(c[3],10))
return{error:null,consent:new x(u,d,_.ENTERPRISE_UNBOUND,p)}}}),A=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),R=function(e,t,n,i){var r=p(T[e],t)
return r?P(r,e,n,i):p(T[_.GUEST],t)||p(T[_.MEMBER],t)||p(T[_.ENTERPRISE_UNBOUND],t)?O(2):O(1)},O=function(e){var t={}
for(var n in k)t[n]=e
return{error:null,consent:new x(t,null,null,e)}},j=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},M=function(e,t,n){var i=S[e],r=t.enterpriseProfileHash,o=t.enterpriseAppInstanceId,a=new URLSearchParams
e===_.ENTERPRISE_UNBOUND&&(r&&a.append("p",r),o&&a.append("iid",o)),"string"==typeof n&&(n=n.toLowerCase(),C.includes(n)&&a.append("li_theme",n))
var s=Array.from(a).length?"?"+a.toString():""
return"https://www.".concat(j(),"/").concat(i).concat(s)},N=function(){return"undefined"==typeof document},P=function(e,t,n,i){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var r=null
try{r=h(e).match(A)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new x}
var o=parseInt(r[1],10),a=r[2]
return 1===o?t===_.ENTERPRISE_UNBOUND?I.parseConsentBodyEnterpriseUnbound(a,n,i):I.parseConsentBody(a,t):{error:"Invalid encoded consent version ".concat(o),consent:new x}},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.enterpriseProfileUrn,r=n.enterpriseAppInstanceId
if("string"!=typeof t){if(N())return{error:"cookie string must be provided in SSR mode",consent:new x}
t=document.cookie}if(i&&!r||!i&&r)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new x}
if(!(e!==_.ENTERPRISE_UNBOUND||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new x}
if(!e){var o=p(T[_.ENTERPRISE_UNBOUND],t)
if(o&&i&&r){var a=P(o,_.ENTERPRISE_UNBOUND,i,r),s=a.consent.userMode===_.ENTERPRISE_UNBOUND
if(s||a.error)return a}e=p(w,t)?p(T[_.MEMBER],t)?_.MEMBER:_.GUEST:p(T[_.GUEST],t)?_.GUEST:_.MEMBER}return R(e,t,i,r)},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=D(e,document.cookie,t),r=i.consent,o=e||r.userMode||_.GUEST
return{showBanner:!i.error&&!r.consentAvailable,userMode:o,managePreferenceUrl:M(o,t,n)}},L=function(e,t){var n=e.optedInConsentMap,i=e.updateSettings,r=e.userMode,o=e.xLiTrackPayload,a=e.enterpriseContext||{},s=a.enterpriseProfileHash,c=a.enterpriseAppInstanceId
t=t||function(e,t){}
var l=p(T[_.ENTERPRISE_UNBOUND],document.cookie)
n||t("optedInConsentMap is a required option",null)
var u=new XMLHttpRequest,d=new URLSearchParams
l&&c&&d.append("appInstanceId",c)
var f=Array.from(d).length?"?"+d.toString():""
u.open("POST","https://www.".concat(j(),"/cookie-consent/").concat(f)),u.setRequestHeader("Content-Type","application/json"),o&&u.setRequestHeader("X-LI-Track",o),l&&s&&u.setRequestHeader("x-li-identity",s),u.withCredentials=!0,u.onload=function(){200!==u.status?t("Request failed with status ".concat(u.status),null):t(null,u)},u.onerror=function(){t("Request failed with an error",u)}
var h={UPDATE_SETTINGS:i,USER_MODE:r,CATEGORIES:{}}
for(var g in k){var m=void 0
!0===n[g]?m=1:!1===n[g]&&(m=2),h.CATEGORIES[g]=m}u.send(JSON.stringify(h))},F={SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"},B=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.guestPreferencesData,r=void 0===n?null:n,o=t.issuedAt,a=void 0===o?null:o,s=t.defaultConsent,c=void 0===s?0:s
for(var l in i(this,e),r=r||{},this.issuedAt=a,this.guestPreferencesMap={},F)"number"!=typeof r[l]&&(r[l]=c),this.guestPreferencesMap[l]=1===r[l]},q=(b=[F.SHARE_DATA_WITH_TRUSTED_PARTNERS],E=[0,1],{parseGuestPreferencesBody:function(e){var t=new RegExp(["^(\\d+)","(\\d+)"].join(";")),n=e.match(t)
if(!n)return{error:"Invalid guest preferences body encoding",guestPreferences:new B}
var i=n[1],r=function(e){for(var t={},n=0;n<b.length;n++){var i=b[n],r=e[n]
if(void 0===E[r])return
t[i]=E[r]}return t}(n[2])
if(!r)return{error:"Invalid guest preferences consent provided",guestPreferences:new B}
var o=new Date(1e3*i)
return{error:null,guestPreferences:new B({guestPreferencesData:r,issuedAt:o})}}}),H=new RegExp(["^(\\d+)","((?:.|\\d)+)"].join(";"))
function G(e){"string"!=typeof e&&(e=document.cookie)
var t=p("li_gp",e)
return t?function(e){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var t=null
try{t=h(e).match(H)}catch(e){}if(!t)return{error:"Invalid guest preferences encoding",guestPreferences:new B}
var n=parseInt(t[1],10),i=t[2]
return 1===n?q.parseGuestPreferencesBody(i):{error:"Invalid encoded guest preferences version ".concat(n),guestPreferences:new B}}(t):{error:null,guestPreferences:new B({defaultConsent:1})}}},74319:(e,t,n)=>{"use strict"
var i
n.r(t),n.d(t,{CALL_TREE_ID_HEADER_NAME:()=>h,DEGRADATION_TRACKING_EVENT_FIELD:()=>k,DEGRADATION_TRACKING_EVENT_NAME:()=>d,DOWNSTREAM_REQUEST_FIELD:()=>_,DegradationTrackingMetadata:()=>B,DegradationTrackingMetadataOptionName:()=>N,FABRIC_HEADER_NAME:()=>v,FEATURE_DEGRADATION_METRIC_EVENT_NAME:()=>f,FailureTrackingMetadata:()=>X,INSTRUMENTATION_GUIDE_PROMPT:()=>u,InternalFailureProcessingMetadata:()=>Q,InternalFeatureDegradationMetricEventProducer:()=>w,InternalFeatureDegradationMetricStore:()=>M,InvalidArgumentError:()=>D,JET_UNCLASSIFIED_ERROR_TAG:()=>S,METRIC_EMISSION_INTERVAL_IN_MS:()=>T,MICROSOFT_EDGE_REFERENCE_HEADER_NAME:()=>m,PEM_METADATA_HEADER_NAME:()=>b,PEM_RESPONSE_METADATA_HEADER_NAME:()=>y,PEM_RESPONSE_METATADA_HEADER_AVAILABILITY_KEY:()=>E,POINT_OF_PRESENCE_ID_HEADER_NAME:()=>g,ParsedResponseHeaders:()=>Y,PemTrackingService:()=>ee,RESPONSE_HEADERS:()=>p,ResponseDetails:()=>$,RetryableDegradationTrackingMetadata:()=>q,SUPPORTED_DEGRADATION_TRACKING_METADATA_OPTIONS:()=>P,calculateSuccessfulDownstreamCallsRatio:()=>z,createDegradeEvents:()=>K,determineResponseErrorType:()=>V,generateSpanSuffix:()=>W,parseDownstreamEndpointPathname:()=>H,refineServerErrorType:()=>G,teardown:()=>Z,validateKey:()=>F,validateProductName:()=>L})
var r=new Uint8Array(16)
function o(){if(!i&&!(i="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 i(r)}const a=/^(?:[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,s=function(e){return"string"==typeof e&&a.test(e)}
for(var c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1))
const u="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",d="FeatureDegradeEvent",f="FeatureDegradationMetricEvent",p={CALL_TREE_ID:"x-li-uuid",POINT_OF_PRESENCE_ID:"x-li-pop",MICROSOFT_EDGE_REFERENCE:"x-msedge-ref",FABRIC:"x-li-fabric",PEM_RESPONSE_METADATA:"x-li-pem-resp-meta",CONTENT_TYPE:"content-type",CDN_CACHE:"x-cache"},h=p.CALL_TREE_ID,g=p.POINT_OF_PRESENCE_ID,m=p.MICROSOFT_EDGE_REFERENCE,v=p.FABRIC,y=p.PEM_RESPONSE_METADATA,b="X-LI-PEM-Metadata",E="availability",k={featureKey:"featureKey",productName:"productName",downstreamRequests:"downstreamRequests"},_={degradationKey:"degradationKey",degradationReason:"degradationReason",responseCode:"responseCode",endpointPath:"endpointPath",callTreeId:"responseCallTreeId"},T=6e4,S="pem-unclassified-error"
class C{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class w extends C{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const n=[]
t.featureCallCounts.forEach((e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const i={header:{},requestHeader:{},time:Date.now(),metrics:n}
this._fireEventCallback(f,i,t.pageInstance,e)}))}}class x{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class I{constructor(e){this.featureMetricIdentifier=e}}function A(e){return JSON.stringify(e,Object.keys(e).sort())}class R extends x{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const n=A(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const i=new O(e)
t(i),this.featureCallCounts.set(n,i)}}}class O extends I{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class j{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class M extends j{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t)
void 0!==n?e.featureCallCounts.forEach(((e,i)=>{var r
let o=n.featureCallCounts.get(i)
void 0!==o?o=o.mergeCallCounts(e):null===(r=this.metrics.get(t))||void 0===r||r.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=A(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const i=new R(e)
t(i),this.metrics.set(n,i)}}}var N
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(N||(N={}))
const P=new Set(Object.values(N))
class D extends Error{constructor(e){super(e),Object.setPrototypeOf(this,D.prototype)}}function U(e){return 0===e.length||!e.trim()}function L(e){if("string"!=typeof e)throw new D(`The product name must be a string. ${u}.`)
if(U(e))throw new D(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${u}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new D(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${u}.`)
return e}function F(e){if("string"!=typeof e)throw new D(`Keys must be strings. ${u}.`)
if(U(e))throw new D(`Keys should not be blank. ${u}.`)
if(/[^a-z0-9-]/.test(e))throw new D(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${u}.`)
return e}class B{constructor(e,t,n){var i,r,o
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=F(e),this._defaultDegradationKey=F(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new D(`DegradationTrackingMetadata options should be an object. ${u}.`)
const a=n.productName
a&&(this._productName=L(a))
const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes
!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new D(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${u}.`)
var n
if(429===e||999===e)throw new D(`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 ${t} options.`)
if(t===N.NonDegradedResponseCodes&&e>=400&&e<500)throw new D(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${N.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${N.NonDegradedResponseCodes} option. ${u}.`)}
if(void 0!==e&&!Array.isArray(e))throw new D(`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 ${N.NonDegradedResponseCodes} option. ${u}.`)
if(void 0!==t&&!Array.isArray(t))throw new D(`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 ${N.AdditionalDegradedResponseCodes} option. ${u}.`)
null==e||e.forEach((e=>n(e,N.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,N.AdditionalDegradedResponseCodes)))
const i=new Set(t),r=new Set(e)
if([...i].some((e=>r.has(e))))throw new D(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${u}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach((e=>{if(!P.has(e))throw new D(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${u}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(B.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class q{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new M,this._lastRequestMetricStore=new M,this._requestsMade=0,this._trackingId=function(e,t,n){var i=(e=e||{}).random||(e.rng||o)()
if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0
for(var r=0;r<16;++r)t[n+r]=i[r]
return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()
if(!s(n))throw TypeError("Stringified UUID is invalid")
return n}(i)}()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(q.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}function H(e,t){if(!e.includes("/"))return e
const n=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),i=n.split("/").filter((e=>e.length))
if(!t.length)return i.join("/")
const r=[]
for(let e=i.length-1;e>=0;e--){const n=i[e],o=t.indexOf(n)
o>=0?t.splice(o,1):r.push(n)}return r.reverse().join("/")}function G(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}function V(e){const t=e.responseError,n=e.parsedHeaders,i=e.responseCode
if(null!==i){if(429===i||999===i)return"TOO_MANY_REQUESTS"
if(n&&!n.hasAnyLinkedInHeaders()&&i&&i>=400&&i<600)return"BLOCKED_BY_CLIENT_PROXY"
if((r=i)>=400&&r<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(i)
if(function(e){return e>=500&&e<600}(i))return G(n)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(i,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var r,o
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"
if(t.message.indexOf('Unexpected identifier "NotReadableError"')>=0)return"NOT_READABLE_ERROR"
if(t instanceof RangeError&&(o=t).message.indexOf("Maximum call stack size exceeded")>=0&&o.stack&&o.stack.indexOf("eval at executeScript")>=0)return"CLIENT_EXTENSION_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}function K(e,t,n,i){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const r=[],o=i.responseCode
return t.forEach((t=>{const a=t.getDegradationKey(o),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,o),c={endpointPath:e,degradationKey:a,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:i.downstreamServiceErrorCode}
o&&(c.responseCode=o)
const l=i.parsedHeaders
l.callTreeId&&(c.responseCallTreeId=l.callTreeId),(null==l?void 0:l.pointOfPresenceId)&&(c.pointOfPresenceId=l.pointOfPresenceId),(null==l?void 0:l.microsoftEdgeReference)&&(c.microsoftEdgeReference=l.microsoftEdgeReference),(null==l?void 0:l.fabric)&&(c.fabric=l.fabric),q.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),r.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})})),r}function W(e){if(!e)return"-success"
switch(e){case"SERVER_ERROR":case"GRAPHQL_FULL_FAILURE":return"-server-error"
case"CLIENT_ERROR":case"TOO_MANY_REQUESTS":return"-client-error"
default:return"-misc-error"}}function z(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}class X extends B{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===X.name}}class Q{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!q.isRetryableDegradationTrackingMetadata(e)&&!B.isDegradationTrackingMetadata(e)&&!X.isFailureTrackingMetadata(e))throw new D("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new D("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let n=B.isDegradationTrackingMetadata(e)?e:void 0
q.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}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}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,n=e>=300&&e<400,i=this._nonDegradedResponseCodes.has(e)
return!n&&!t&&!i}shouldImpactAvailability(e,t,n){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e||"CLIENT_EXTENSION_ERROR"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new D(`You attempted to specify ${e} as an additional degraded response code for the '${this.featureKey}' feature, however it is also specified in the non-degraded response codes for that feature. Please decide whether you want to consider ${e} responses a degraded state or not. ${u}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new D(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${u}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new D(`A degradation key override was specified for ${t}, 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(t,e.degradationKey)}))}))}}class Y{constructor(e){const t=new Map
let n=null
if(e instanceof Map)n=e
else if(e&&"object"==typeof e){n=new Map
for(const[t,i]of Object.entries(e))"string"==typeof t&&"string"==typeof i&&n.set(t,i)}null==n||n.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get(p.CALL_TREE_ID)||null,this._pointOfPresenceId=t.get(p.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=t.get(p.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=t.get(p.FABRIC)||null,this._responseMetadata=t.get(p.PEM_RESPONSE_METADATA)||null,this._downstreamAvailability=function(e){if(null==e)return 1
const t=e.split(",")
for(const e of t){const t=e.split("=",2)
if(2===t.length&&t[0]===E){const e=parseFloat(t[1])
if(e>=0&&e<=1)return e}}return 1}(this._responseMetadata),this._contentType=t.get(p.CONTENT_TYPE)||null,this._cdnCacheMetadata=t.get(p.CDN_CACHE)||null,this._rawHeaders=n||null}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}get contentType(){return this._contentType}get cdnCacheMetadata(){return this._cdnCacheMetadata}get responseMetadata(){return this._responseMetadata}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}get rawHeaders(){return this._rawHeaders}}class ${constructor(e,t,n,i){this._responseCode=void 0!==e?e:null,this._parsedResponseHeaders=t?new Y(t):new Y,this._responseError=n||null,this._downstreamServiceErrorCode=i}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const J="undefined"==typeof FastBoot
function Z(e){e._metricsInterval&&window.clearInterval(e._metricsInterval),window.removeEventListener("visibilitychange",e._visibilityListener)}class ee{constructor(e,t,n){this._featureMetricStore=new M,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new w(this._featureMetricStore,t),J&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),T),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,i,r){let o,a=null
const s=new Map,c=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),i.then((e=>{a=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),(!1===e.ok||e.status<200||a>=300)&&(o=e)})).catch((e=>{throw o=e,e})).finally((()=>{this._trackResponse(e,a,t,c,r,s,o)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,i,r,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 l=o?null:t,u=this._createFailureProcessingMetadata(i)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,u,r,c,l)}startRetryFlow(e){return ee.startRetryFlow(e)}static startRetryFlow(e){return new q(e)}completeRetryFlow(e){if(!q.isRetryableDegradationTrackingMetadata(e))throw new D("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,i,r,o,a){const s=new $(t,o,a),c=s.parsedHeaders,l=V(s),u=H(e,n),f=new Set,p=new Set
i.forEach((e=>{f.add(e.productName),p.add(e.featureKey)
const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(l)&&(e.isCountedAgainstAvailability(l,t)?(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:l,responseFabric:c.fabric},r,z(l,c)):(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},r))})),l&&(this._reportErrorIfUnclassified(a,l,t,f,p),K(u,i,l,s).forEach((e=>{this._fireEventCallback(d,e,r)})))}_reportErrorIfUnclassified(e,t,n,i,r){var o
if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=[S]
let n
i.forEach((e=>t.push(`pem-product-${e}`))),r.forEach((e=>t.push(`pem-feature-${e}`))),n=e instanceof Error?e:new Error(`Could not classify jQuery response: ${JSON.stringify(e)}`),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new D(`Please specify a non-empty array of degradation tracking metadata. ${u}.`)
const t=new Set
return e.map((e=>{if(!B.isDegradationTrackingMetadata(e)&&!q.isRetryableDegradationTrackingMetadata(e))throw new D(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${u}.`)
const n=L(e.productName||this._defaultProductName),i=`${n}!!${e.featureKey}`
if(t.has(i))throw new D("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(i),new Q(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new D(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${u}.`)
return e}}},97549:function(e,t){!function(e){"use strict"
const t=/[,()':]/g,n=/[,()':]/
function i(e){const t=JSON.parse(JSON.stringify(e))
return function(e){if("object"!=typeof e)throw new Error("You must pass either an array or an object to the encode function.")}(t),r(t,!1)}function r(e,t){return Array.isArray(e)?function(e,t){const n=new Array(e.length)
for(let i=0;i<e.length;i++)n[i]=r(e[i],t)
return`List(${n.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){return`(${Object.keys(e).map((n=>`${o(n,t)}:${r(e[n],t)}`)).join(",")})`}(e,t):o(e,t)}function o(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":i&&"string"==typeof e&&n.test(e)?e.replace(t,escape):i?e:encodeURIComponent(e).replace(t,escape)}Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const a={"X-RestLi-Protocol-Version":"2.0.0","X-HTTP-Method-Override":"GET","Content-Type":"application/x-www-form-urlencoded"},s="lix/treatmentsV2"
function c(){const e=function(){const e=document.cookie.match(/JSESSIONID="?([^";]+)"?/)
if(e)return e[1]}()
if(e){const t={"Csrf-Token":e}
return Object.assign(t,a)}return a}class l{constructor(e,t){const n=function(e){return!e.lix}(e)?{lix:e}:e
this.lixes=n.lix,this.tracker=t}treatment(e){let{peek:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=this.lixes[e]
if(!n)return"control"
if(!n.treatment)throw new Error("The LiX treatment object does not contain any treatment")
return!0!==t&&this.tracker.notifyOfEval(n),n.treatment}cleanup(){this.lixes={}}append(e){for(const t in e){const n=e[t]
void 0!==n&&(this.lixes[t]=n)}}getTests(){return this.lixes}replace(e){this.lixes=e}}const u="LixTreatmentsEvent"
class d{constructor(e){this.queue=[],this.pendingTrackedLixes=[],this.trackingFiredRecords=new WeakMap,this.logger=e}fireTrackingEvent(e){this._fireTrackingEvent?this._fireTrackingEvent(u,e):this.queue.push(e)}notifyOfEval(e){var t
const n=Date.now()
this.shouldFireTrackingEvent(e,n)&&this.appendForTracking(e,n),null===(t=e.recursiveResults)||void 0===t||t.forEach((e=>this.notifyOfEval(e)))}shouldFireTrackingEvent(e,t){return!(!e||!e.trackingInfo)&&t-(this.trackingFiredRecords.get(e)||0)>6e4}appendForTracking(e,t){0===this.pendingTrackedLixes.length&&(this.timer=window.setTimeout(this.fireTrackingEvents.bind(this),100)),this.pendingTrackedLixes.push(e.trackingInfo),this.trackingFiredRecords.set(e,t)}fireTrackingEvents(){this.track(this.pendingTrackedLixes),this.pendingTrackedLixes.length=0}attach(e){this._fireTrackingEvent=e,this.queue.forEach((e=>{var t
null===(t=this._fireTrackingEvent)||void 0===t||t.call(this,u,e)}))}cleanup(){delete this._fireTrackingEvent,this.pendingTrackedLixes=[],this.timer&&clearTimeout(this.timer)}track(e){const t=e.reduce(((e,t)=>{var n
const{experimentId:i,treatmentIndex:r,segmentIndex:o,urn:a,trackingUrns:s}=t,c={experimentId:i,treatmentIndex:r,segmentIndex:o},l=a.match(/^urn:li:([a-zA-Z0-9]+):(\S+)$/)
if(null===l)return this.logger(`Failed parse the URN: "${a}"`),e
const u=l[1],d=l[2]
if(!u||!d)return e
e[u]||(e[u]={})
const f=e[u]
f[d]||(f[d]={primaryEvaluationUrn:a,trackingUrns:s,treatments:[]})
const p=f[d]
return null==p||null===(n=p.treatments)||void 0===n||n.push(c),e}),{}),n=[]
for(const e in t)for(const r in t[e]){var i
const o=null===(i=t[e])||void 0===i?void 0:i[r]
if(o){const t={urnId:r,urnType:e,primaryEvaluationUrn:o.primaryEvaluationUrn,treatments:o.treatments}
Array.isArray(o.trackingUrns)&&(t.additionalTrackingUrns=o.trackingUrns),n.push(t)}}this.fireTrackingEvent({urns:n})}}const f="value_"
e.LixCache=l,e.LixClient=class{constructor(e,t,n){this.tracker=new d(t),this.legacyLixCache=new l(e,this.tracker),this.env=n}get lixKeys(){return Object.keys(this.legacyLixCache.getTests())}attachTrackingCore(e){const t=e.fireEvent.bind(e)
this.tracker.attach(t)}fetch(e){return this.env.isBrowser?function(e){let{lixKeys:t=[],explicitUrnLixList:n=[],context:r={},endpointPath:o=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const a={ids:t,explicitUrnLiXList:n,evaluationContext:{context:r}},l=Object.keys(a).map((e=>`${e}=${i(a[e])}`))
return e(`/${o||s}`,{credentials:"same-origin",method:"POST",headers:c(),body:l.join("&")}).then((e=>e.text().then((t=>{const n=e.status
if(200!==n)throw new Error(`LiX request failed with status code: ${n}\n${t}`)
try{return JSON.parse(t).results}catch(e){throw new Error(`Failed to parse the LiX response: "${t}"\n${e}`)}}))))}(this.env.fetch,e).then((e=>this.appendToCache(e))):this.env.Promise.resolve({})}getTreatment(e,t){return this.legacyLixCache.treatment(e,t)}getTreatmentIsEnabled(e,t){return"control"!==this.getTreatment(e,t)}getTreatmentValue(e,t){const n=this.getTreatment(e,t)
if(!n||-1===n.indexOf(f))return!1
const i=parseInt(n.replace(f,""),10)
return!isNaN(i)&&i}destroy(){this.legacyLixCache.cleanup(),this.tracker.cleanup(),this.env.onDestroy&&this.env.onDestroy()}appendToCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.legacyLixCache.append(e),this.legacyLixCache.getTests()}replaceCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.legacyLixCache.replace(e)}clearCache(){this.legacyLixCache.cleanup()}notifyOfEval(e){this.tracker.notifyOfEval(e)}},e.LixTracker=d,e.TRACKING_BATCH_DELAY=100,e.fetchFromDom=function(){const e=document.querySelector('meta[name="__init"]')
if(!(e instanceof HTMLMetaElement))throw new Error("Unable to parse lix values from DOM, expected HTMLMetaElement")
if(!e||!e.content||"%INIT%"===e.content)return{}
try{return JSON.parse(e.content)}catch(e){throw new Error("Unable to parse lix values from DOM")}},Object.defineProperty(e,"__esModule",{value:!0})}(t)},60686:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{INPAGE_URL:()=>r,getShimmedLink:()=>c,initAnchorLinkShim:()=>f,isExternalLink:()=>s,removeAnchorLinkShim:()=>p})
var i=["linkedin.com","linkedin.cn","linkedin-ei.com","linkedin-ei.cn","lynda.com"],r="https://www.linkedin.com/safety/go",o=new RegExp(/^http(s)?:\/\/.*/)
function a(e){return e?(e=(e=(e=(e=(e=e.replace(/(https?:\/\/)?(www.)?/i,"")).includes("/")?e.split("/")[0]:e).includes("@")?e.split("@")[1]:e).includes(":")?e.split(":")[0]:e).split(".")).slice(e.length-2).join("."):(console.warn("Called getDomain with empty url"),e)}function s(e){var t
return!(!function(e){return!(!e||"string"!=typeof e||!e.match(1<arguments.length&&void 0!==arguments[1]?arguments[1]:o))}(e)||(e=a(e))===a(null==(t=window)?void 0:t.location.host)||-1!==i.indexOf(e))}function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
if(s(e)){var n,i=r+"?url=".concat(encodeURIComponent(e))
for(n in t)i+="&"+n+"="+encodeURIComponent(t[n])
return i}return e}function l(e,t){return t instanceof HTMLAnchorElement?t:e instanceof HTMLAnchorElement?e:t===e||null===t?null:t.parentElement instanceof HTMLAnchorElement?t.parentElement:l(e,t.parentElement)}function u(e){return function(t){(t=t.currentTarget instanceof HTMLElement&&t.target instanceof HTMLElement?l(t.currentTarget,t.target):null)&&(t.href=c(t.href,e),t.removeAttribute("rel"))}}function d(e){return function(t){var n=t.currentTarget instanceof HTMLElement&&t.target instanceof HTMLElement?l(t.currentTarget,t.target):null
"Enter"===t.key&&n&&(n.href=c(n.href,e),n.removeAttribute("rel"))}}function f(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
e instanceof HTMLElement?(e.addEventListener("mousedown",u(t)),e.addEventListener("keydown",d(t))):console.warn("attempting to `initAnchorLinkShim()` on non-`HTMLElement` item ".concat(e))}function p(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
console.error("removeAnchorLinkShim is deprecated and does nothing. Please remove this call (with element ".concat(e," and params ").concat(JSON.stringify(t)))}},70588:function(e){var t
"undefined"!=typeof self&&self,t=function(){return function(e){var t={}
function n(i){if(t[i])return t[i].exports
var r=t[i]={i:i,l:!1,exports:{}}
return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e}
return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=63)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")()
"number"==typeof __g&&(__g=n)},function(e,t,n){var i=n(31)("wks"),r=n(22),o=n(0).Symbol,a="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))}).store=i},function(e,t){var n=e.exports={version:"2.6.11"}
"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(4),r=n(44),o=n(29),a=Object.defineProperty
t.f=n(5)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!")
return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(9)
e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!")
return e}},function(e,t,n){e.exports=!n(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=window||e}).call(t,n(41))},function(e,t,n){var i=n(0),r=n(2),o=n(18),a=n(8),s=n(10),c="prototype",l=function(e,t,n){var u,d,f,p=e&l.F,h=e&l.G,g=e&l.S,m=e&l.P,v=e&l.B,y=e&l.W,b=h?r:r[t]||(r[t]={}),E=b[c],k=h?i:g?i[t]:(i[t]||{})[c]
for(u in h&&(n=t),n)(d=!p&&k&&void 0!==k[u])&&s(b,u)||(f=d?k[u]:n[u],b[u]=h&&"function"!=typeof k[u]?n[u]:v&&d?o(f,i):y&&k[u]==f?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e
case 1:return new e(t)
case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)}
return t[c]=e[c],t}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[u]=f,e&l.R&&E&&!E[u]&&a(E,u,f)))}
l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var i=n(3),r=n(20)
e.exports=n(5)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty
e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(69),r=n(27)
e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.PROD_REGEX=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,t.UDO_KEY="utag_data",t.CDN_HOSTNAME_PROD="platform.linkedin.com",t.CDN_HOSTNAME_EI="platform.linkedin-ei.com",t.CN_CDN_HOSTNAME_PROD="platform.linkedin.cn",t.CN_CDN_HOSTNAME_EI="platform.linkedin-ei.cn",t.COOKIE_CONSENT_CHECK_INTERVAL=2e3,t.ROOT_HOSTNAME_EI="www.linkedin-ei.com",t.ROOT_HOSTNAME_PROD="www.linkedin.com",t.CN_ROOT_HOSTNAME_EI="www.linkedin-ei.cn",t.CN_ROOT_HOSTNAME_PROD="www.linkedin.cn",t.UTAG_GLOBAL_OBJECT_KEY="utag",t.UTAG_CONFIG_OVERRIDE_OBJECT_KEY="utag_cfg_ovrd",t.CUSTOM_EVENTS_TMS_LOAD_EVENT="TagManagementSystemLoadEvent",t.CUSTOM_EVENTS_TAG_FIRE_AUDIT_EVENT="ExternalMarketingTagFireEvent",t.TAG_MANAGEMENT_SYSTEM_USED="tealium",t.USER_METADATA_PATH="/litms/api/metadata/user",t.TRACKING_EVENT_DEBUG_DATA="trackingEventDebugData",t.REFRESH_ON_COOKIE_CONSENT_PROPERTY="entity.refreshOnCookieConsent",t.TRACKING_IDS=["twclid","clickid","fbclid"],t.L_PAGE_COOKIE_LIFETIME="15780000"},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t){var n={}.toString
e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){var i=n(19)
e.exports=function(e,t,n){if(i(e),void 0===t)return e
switch(n){case 1:return function(n){return e.call(t,n)}
case 2:return function(n,i){return e.call(t,n,i)}
case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")
return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(47),r=n(32)
e.exports=Object.keys||function(e){return i(e,r)}},function(e,t){var n=0,i=Math.random()
e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(3).f,r=n(10),o=n(1)("toStringTag")
e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getAPIHostname=t.getCDNHostname=t.isProd=void 0
var i,r=(i=n(6))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}(n(12))
function a(){var e=r.default.location?r.default.location.hostname:""
return o.PROD_REGEX.test(e)}function s(){var e=r.default.location?r.default.location.hostname:""
return/\.cn$/.test(e)}t.isProd=a,t.getCDNHostname=function(){return a()?s()?o.CN_CDN_HOSTNAME_PROD:o.CDN_HOSTNAME_PROD:s()?o.CN_CDN_HOSTNAME_EI:o.CDN_HOSTNAME_EI},t.getAPIHostname=function(){return a()?s()?o.CN_ROOT_HOSTNAME_PROD:o.ROOT_HOSTNAME_PROD:s()?o.CN_ROOT_HOSTNAME_EI:o.ROOT_HOSTNAME_EI}},function(e,t,n){"use strict"
t.__esModule=!0
var i=a(n(64)),r=a(n(76)),o="function"==typeof r.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e}
function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===o(i.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t){var n=Math.ceil,i=Math.floor
e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e)
return e}},function(e,t,n){var i=n(9),r=n(0).document,o=i(r)&&i(r.createElement)
e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var i=n(9)
e.exports=function(e,t){if(!i(e))return e
var n,r
if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r
if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r
if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r
throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(31)("keys"),r=n(22)
e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(2),r=n(0),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(13)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(27)
e.exports=function(e){return Object(i(e))}},function(e,t,n){t.f=n(1)},function(e,t,n){var i=n(0),r=n(2),o=n(13),a=n(34),s=n(3).f
e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{})
"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){e.exports={default:n(89),__esModule:!0}},function(e,t,n){"use strict"
var i=n(19)
function r(e){var t,n
this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor")
t=e,n=i})),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.shouldRefreshOnCookieConsent=t.isDebugMode=t.generateCacheBuster=t.assign=void 0
var i=a(n(17)),r=n(12),o=a(n(6))
function a(e){return e&&e.__esModule?e:{default:e}}t.assign=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
if(n)for(var r=(0,i.default)(n),o=0;o<r.length;o++){var a=r[o]
e[a]=n[a]}}return e},t.generateCacheBuster=function(e){var t=new o.default.Date
t.setSeconds(0),t.setMilliseconds(0)
var n=Math.floor(t.getMinutes()/e)*e
return t.setMinutes(n),t.getTime()},t.isDebugMode=function(){return/utagdb=[^;]+/.test(o.default.document.cookie)},t.shouldRefreshOnCookieConsent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
return!!Array.isArray(e)&&e.some((function(e){var t=e.data[r.REFRESH_ON_COOKIE_CONSENT_PROPERTY]
return"boolean"==typeof t?t:"string"==typeof t&&"true"===t.toLowerCase()}))}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var i="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
t.default=i},function(e,t){var n
n=function(){return this}()
try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict"
var i=n(66)(!0)
n(43)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i
return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict"
var i=n(13),r=n(7),o=n(45),a=n(8),s=n(15),c=n(67),l=n(23),u=n(72),d=n(1)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",g=function(){return this}
e.exports=function(e,t,n,m,v,y,b){c(n,t,m)
var E,k,_,T=function(e){if(!f&&e in x)return x[e]
switch(e){case p:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",C=v==h,w=!1,x=e.prototype,I=x[d]||x["@@iterator"]||v&&x[v],A=I||T(v),R=v?C?T("entries"):A:void 0,O="Array"==t&&x.entries||I
if(O&&(_=u(O.call(new e)))!==Object.prototype&&_.next&&(l(_,S,!0),i||"function"==typeof _[d]||a(_,d,g)),C&&I&&I.name!==h&&(w=!0,A=function(){return I.call(this)}),i&&!b||!f&&!w&&x[d]||a(x,d,A),s[t]=A,s[S]=g,v)if(E={values:C?A:T(h),keys:y?A:T(p),entries:R},b)for(k in E)k in x||o(x,k,E[k])
else r(r.P+r.F*(f||w),t,E)
return E}},function(e,t,n){e.exports=!n(5)&&!n(14)((function(){return 7!=Object.defineProperty(n(28)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){e.exports=n(8)},function(e,t,n){var i=n(4),r=n(68),o=n(32),a=n(30)("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=n(28)("iframe"),i=o.length
for(t.style.display="none",n(49).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l[c][o[i]]
return l()}
e.exports=Object.create||function(e,t){var n
return null!==e?(s[c]=i(e),n=new s,s[c]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(10),r=n(11),o=n(70)(!1),a=n(30)("IE_PROTO")
e.exports=function(e,t){var n,s=r(e),c=0,l=[]
for(n in s)n!=a&&i(s,n)&&l.push(n)
for(;t.length>c;)i(s,n=t[c++])&&(~o(l,n)||l.push(n))
return l}},function(e,t,n){var i=n(26),r=Math.min
e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(0).document
e.exports=i&&i.documentElement},function(e,t,n){n(73)
for(var i=n(0),r=n(8),o=n(15),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=i[l],d=u&&u.prototype
d&&!d[a]&&r(d,a,l),o[l]=o.Array}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(47),r=n(32).concat("length","prototype")
t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t){},function(e,t,n){var i=n(16),r=n(1)("toStringTag"),o="Arguments"==i(function(){return arguments}())
e.exports=function(e){var t,n,a
return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:o?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var i=n(4),r=n(19),o=n(1)("species")
e.exports=function(e,t){var n,a=i(e).constructor
return void 0===a||null==(n=i(a)[o])?t:r(n)}},function(e,t,n){var i,r,o,a=n(18),s=n(96),c=n(49),l=n(28),u=n(0),d=u.process,f=u.setImmediate,p=u.clearImmediate,h=u.MessageChannel,g=u.Dispatch,m=0,v={},y="onreadystatechange",b=function(){var e=+this
if(v.hasOwnProperty(e)){var t=v[e]
delete v[e],t()}},E=function(e){b.call(e.data)}
f&&p||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++])
return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},i(m),m},p=function(e){delete v[e]},"process"==n(16)(d)?i=function(e){d.nextTick(a(b,e,1))}:g&&g.now?i=function(e){g.now(a(b,e,1))}:h?(o=(r=new h).port2,r.port1.onmessage=E,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",E,!1)):i=y in l("script")?function(e){c.appendChild(l("script"))[y]=function(){c.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:p}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(4),r=n(9),o=n(38)
e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t
var n=o.f(e)
return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.UTAG_CACHE_BUSTER_INTERVAL_IN_MINUTES_DEFAULT=t.createLoadRulesCompletedListenerForUTag=t.setGlobalUTagReference=t.cleanUpGlobalUTagReferences=t.getUTagFromGlobalReference=t.getTagsFired=t.processQueuedEvents=t.trackControlInteraction=t.trackPageView=t.loadScript=t.constructContainerTagUrl=void 0
var i=f(n(17)),r=f(n(37)),o=f(n(6)),a=d(n(12)),s=d(n(24)),c=n(60),l=n(39),u=f(n(40))
function d(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY]=o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY]||{},o.default[a.TRACKING_EVENT_DEBUG_DATA]=o.default[a.TRACKING_EVENT_DEBUG_DATA]||[],o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY].noview=!0,o.default[a.UTAG_CONFIG_OVERRIDE_OBJECT_KEY].nocookie=!0
var p=void 0
function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null
return"string"==typeof e&&(n="https://"+s.getCDNHostname()+"/litms/utag/"+e+"/utag.js?cb="+(0,l.generateCacheBuster)(t)),n}function g(){return function(){if(void 0===p&&u.default){var e=o.default.document.cookie.match(/litms_utag_override=([^;]+)/)
p=e?e[1]:""}return p}().length>0}function m(e,t,n,i){e.onLoadRulesRunOnce(n)
var r=(0,l.assign)({},t,(0,c.getUpdatedSharedEventData)(i))
e.view(r),(0,l.isDebugMode)()&&o.default[a.TRACKING_EVENT_DEBUG_DATA].push({profileName:i,eventType:"PV",trackingData:r})}function v(e,t,n,i){e.onLoadRulesRunOnce(n)
var r=(0,l.assign)({},t,(0,c.getUpdatedSharedEventData)(i))
e.link(r),(0,l.isDebugMode)()&&o.default[a.TRACKING_EVENT_DEBUG_DATA].push({profileName:i,eventType:"CI",trackingData:r})}function y(e){o.default[a.UTAG_GLOBAL_OBJECT_KEY]=e}t.constructContainerTagUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments[1]
return g()?p:h(e,t)},t.loadScript=function(e){return new r.default((function(t){var n=o.default.document.createElement("script")
n.type="text/javascript",n.src=e,n.async=!0,n.onload=t,o.default.document.getElementsByTagName("head")[0].appendChild(n)}))},t.trackPageView=m,t.trackControlInteraction=v,t.processQueuedEvents=function(e,t,n){if(y(e),t instanceof Array&&t.length>0)for(var i=t.length,r=0;r<i;r++){var o=t.shift()
o.isControlInteraction?v(e,o.data,o.callback,n):m(e,o.data,o.callback,n)}},t.getTagsFired=function(e){return(0,i.default)(e.loader.cfg).filter((function(t){return 1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load}))},t.getUTagFromGlobalReference=function(){return o.default[a.UTAG_GLOBAL_OBJECT_KEY]},t.cleanUpGlobalUTagReferences=function(){void 0!==o.default[a.UTAG_GLOBAL_OBJECT_KEY]&&(o.default[a.UTAG_GLOBAL_OBJECT_KEY]=void 0),void 0!==o.default[a.UDO_KEY]&&(o.default[a.UDO_KEY]=void 0)},t.setGlobalUTagReference=y,t.createLoadRulesCompletedListenerForUTag=function(e){var t=[]
e.onLoadRulesRunOnce=function(e){t.push(e)}
var n=e.loader.initcfg
e.loader.initcfg=function(){if(n.call(this,arguments),t.length>0){var e=t.shift()
e()}}},t.UTAG_CACHE_BUSTER_INTERVAL_IN_MINUTES_DEFAULT=5},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getEnterpriseContextForProfile=t.getUpdatedSharedEventData=t.addInUpdatedComplianceObjectFromConsentCookie=t.sharedEventData=t.addSharedEventData=t.getAllowlistForProfile=t.getUserSettings=t.getRequestHeaders=t.UDO=void 0
var i=p(n(25)),r=p(n(37)),o=p(n(17)),a=p(n(6)),s=f(n(12)),c=n(24),l=n(109),u=f(n(61)),d=n(39)
function f(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}var h=void 0,g={},m={},v=a.default[s.UDO_KEY]||(a.default[s.UDO_KEY]={})
function y(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new URLSearchParams
e&&t.append("isEnterprise",!0)
var n=t.toString()?"?"+t.toString():""
return"https://"+(0,c.getAPIHostname)()+s.USER_METADATA_PATH+n}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=t+"."+t
return e[n+".isEnterpriseUser"]||e[t+".isEnterpriseUser"]}function E(e,t){var n=t+"."+t
return{enterpriseProfileUrn:e[n+".enterpriseProfile"]||e[t+".enterpriseProfile"],enterpriseAppInstanceId:e[n+".enterpriseAppInstanceId"]||e[t+".enterpriseAppInstanceId"]}}function k(e,t){var n=(0,d.assign)({},e),i={userSettings:n,enterpriseContext:E(e,t)}
return n["compliance.isAdvertisingOptIn"]=!function(e,t){var n=e[t+"."+t+".isBoundUser"]||e[t+".isBoundUser"]
return b(e,t)&&!n}(e,t)&&u.getUpdatedUserAdvertisingOptIn(i),n["compliance.isAnalyticsAndResearchOptIn"]=u.getUpdatedUserAnalyticsAndResearchOptIn(i),n["compliance.isFunctionalOptIn"]=u.getUpdatedUserFunctionalOptIn(i),n}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=e[t+".xLiTrack"],i=e[t+".xLiIdentity"],r=e[t+".enterpriseAppInstanceId"],a={"X-LI-Track":n,"x-li-identity":i,"x-li-enterprise-app-instance-id":r}
return(0,o.default)(a).reduce((function(e,t){return a[t]&&(e[t]=a[t]),e}),{})}t.UDO=v,t.getRequestHeaders=_,t.getUserSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1]
if(!h){var n=y(b(e,t))
h=new r.default((function(i,r){(0,l.get)(n,(function(e){try{i(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),r(e)}}),(function(e){r(e)}),!0,_(e,t))}))}return h},t.getAllowlistForProfile=function(e){if(!m[e]){var t=function(e){return"https://"+(0,c.getCDNHostname)()+"/litms/allowlist/"+encodeURIComponent(e)}(e),n=new r.default((function(e,n){(0,l.get)(t,(function(t){e(JSON.parse(t))}),(function(e){n(e)}),!1)}))
m[e]=n}return m[e]},t.addSharedEventData=function(e,t){var n="string"!=typeof t?"":t+"."
"object"===(void 0===e?"undefined":(0,i.default)(e))&&(0,o.default)(e).forEach((function(t){g[n+t]=e[t]}))},t.sharedEventData=g,t.addInUpdatedComplianceObjectFromConsentCookie=k,t.getUpdatedSharedEventData=function(e){return k(g,e)},t.getEnterpriseContextForProfile=E},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getUpdatedUserFunctionalOptIn=t.getUpdatedUserAnalyticsAndResearchOptIn=t.getUpdatedUserAdvertisingOptIn=t.getAdvertisingOptIn=t.getAnalyticsAndResearchOptIn=t.getFunctionalOptIn=t.getGDPROptIn=void 0
var i=function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}(n(62))
function r(e){return e["compliance.isGDPROptIn"]}function o(e){var t=i.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.FUNCTIONAL}function a(e){var t=i.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}function s(e){var t=i.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.ADVERTISING}t.getGDPROptIn=r,t.getFunctionalOptIn=o,t.getAnalyticsAndResearchOptIn=a,t.getAdvertisingOptIn=s,t.getUpdatedUserAdvertisingOptIn=function(e){var t=e.userSettings,n=e.enterpriseContext
return s(void 0===n?{}:n)&&r(t)},t.getUpdatedUserAnalyticsAndResearchOptIn=function(e){e.userSettings
var t=e.enterpriseContext
return a(void 0===t?{}:t)},t.getUpdatedUserFunctionalOptIn=function(e){e.userSettings
var t=e.enterpriseContext
return o(void 0===t?{}:t)}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}n.d(t,"NON_ESSENTIAL_CATEGORIES",(function(){return v})),n.d(t,"USER_MODE",(function(){return y})),n.d(t,"getBannerData",(function(){return M})),n.d(t,"getCookieConsent",(function(){return j})),n.d(t,"parseEncodedConsent",(function(){return O})),n.d(t,"updateCookieConsent",(function(){return N}))
var a=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),s=/^fs_/
function c(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof e+".")
var t,n,i=a.exec(e)
return i&&(t=i[1].replace(s,""),n=i[2]),{id:n,type:t}}var l,u,d,f,p,h,g=/(?![^(]*\)),/,m=function e(t){var n=c(t),i=n.id,r=n.type,o={}
if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(g),l=0;a=s[l];++l)0===a.indexOf("urn")&&(s[l]=e(a))
i=s}return o[r]=i,o},v={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},y={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},b=(r(l={},y.GUEST,"li_gc"),r(l,y.MEMBER,"li_mc"),r(l,y.ENTERPRISE_UNBOUND,"li_ec"),l),E=(r(u={},y.GUEST,"mypreferences/g/guest-cookies"),r(u,y.MEMBER,"settings/member-cookies"),r(u,y.ENTERPRISE_UNBOUND,"settings/cookies"),u),k="liap",_=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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var a in i(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},v)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===o},T=(d=[v.ADVERTISING,v.ANALYTICS_AND_RESEARCH,v.FUNCTIONAL],f=[0,1,2,0],p=function(e){for(var t={},n=0;n<d.length;n++)t[d[n]]=f[e>>2*n&3]
return t},h=function(e){var t=0
return e>=0&&e<=3&&(t=f[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),i=e.match(n)
if(!i)return{error:"Invalid consent body encoding",consent:new _}
var r=p(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=h(parseInt(i[3],10))
return{error:null,consent:new _(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=m(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!i)return{error:"Invalid enterprise profile urn provided",consent:new _}
var r=i.enterpriseAccountId,a=i.enterpriseProfileId,s=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),c=e.match(s)
if(!c)return{error:"Invalid consent body encoding",consent:new _}
var l=c[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t,i=(4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0
try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),4!==n.length);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,4)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,4):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[1],c=i[2],l=i[3]
return s===r&&c===a&&l===n}))[0]
if(!l)return{error:null,consent:new _}
var u=p(l[0]),d=new Date(1e3*parseInt(c[2],10)),f=h(parseInt(c[3],10))
return{error:null,consent:new _(u,d,y.ENTERPRISE_UNBOUND,f)}}}),S=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),C=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},w=function(e,t,n,i){var r=C(b[e],t)
return r?O(r,e,n,i):C(b[y.GUEST],t)||C(b[y.MEMBER],t)||C(b[y.ENTERPRISE_UNBOUND],t)?x(2):x(1)},x=function(e){var t={}
for(var n in v)t[n]=e
return{error:null,consent:new _(t,null,null,e)}},I=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},A=function(e){var t=E[e]
return"https://www.".concat(I(),"/").concat(t)},R=function(){return"undefined"==typeof document},O=function(t,n,i,r){t&&t.length>1&&'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1))
var o,a=null
try{a=(o=t,"undefined"==typeof atob&&void 0!==e?e.from(o,"base64").toString("binary"):atob(o)).match(S)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new _}
var s=parseInt(a[1],10),c=a[2]
return 1===s?n===y.ENTERPRISE_UNBOUND?T.parseConsentBodyEnterpriseUnbound(c,i,r):T.parseConsentBody(c,n):{error:"Invalid encoded consent version ".concat(s),consent:new _}},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.enterpriseProfileUrn,r=n.enterpriseAppInstanceId
if("string"!=typeof t){if(R())return{error:"cookie string must be provided in SSR mode",consent:new _}
t=document.cookie}if(i&&!r||!i&&r)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new _}
if(!(e!==y.ENTERPRISE_UNBOUND||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new _}
if(!e){var o=C(b[y.ENTERPRISE_UNBOUND],t)
if(o&&i&&r){var a=O(o,y.ENTERPRISE_UNBOUND,i,r),s=a.consent.userMode===y.ENTERPRISE_UNBOUND
if(s||a.error)return a}e=C(k,t)?C(b[y.MEMBER],t)?y.MEMBER:y.GUEST:C(b[y.GUEST],t)?y.GUEST:y.MEMBER}return w(e,t,i,r)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=j(e,document.cookie,t),i=n.consent,r=e||i.userMode||y.GUEST
return{showBanner:!n.error&&!i.consentAvailable,userMode:r,managePreferenceUrl:A(r)}},N=function(e,t){var n=e.optedInConsentMap,i=e.updateSettings,r=e.userMode,o=e.xLiTrackPayload,a=e.enterpriseContext||{},s=a.enterpriseProfileHash,c=a.enterpriseAppInstanceId
t=t||function(e,t){}
var l=C(b[y.ENTERPRISE_UNBOUND],document.cookie)
n||t("optedInConsentMap is a required option",null)
var u=new XMLHttpRequest,d=new URLSearchParams
l&&c&&d.append("appInstanceId",c)
var f=Array.from(d).length?"?"+d.toString():""
u.open("POST","https://www.".concat(I(),"/cookie-consent/").concat(f)),u.setRequestHeader("Content-Type","application/json"),o&&u.setRequestHeader("X-LI-Track",o),l&&s&&u.setRequestHeader("x-li-identity",s),u.withCredentials=!0,u.onload=function(){200!==u.status?t("Request failed with status ".concat(u.status),null):t(null,u)},u.onerror=function(){t("Request failed with an error",u)}
var p={UPDATE_SETTINGS:i,USER_MODE:r,CATEGORIES:{}}
for(var h in v){var g=void 0
!0===n[h]?g=1:!1===n[h]&&(g=2),p.CATEGORIES[h]=g}u.send(JSON.stringify(p))}}.call(t,n(110).Buffer)},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.teardownInstanceForProfile=t.getInstanceForProfile=t.addSharedEventData=void 0
var i=E(n(25)),r=E(n(17)),o=E(n(37)),a=E(n(104)),s=E(n(105)),c=b(n(59)),l=b(n(114)),u=n(24),d=n(60),f=n(39),p=n(61),h=E(n(115)),g=n(62),m=E(n(40)),v=E(n(6)),y=n(12)
function b(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}var k={},_=void 0,T={},S=void 0,C=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.profileName,i=t.tracking2Instance,r=t.enableAllowlisting,s=void 0!==r&&r,c=t.cacheBusterInterval;(0,a.default)(this,e),this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=o.default.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=i,this.profileName=n,this.enableAllowlisting=s,this.cacheBusterInterval=c,this.landingPageUrl}return(0,s.default)(e,[{key:"initialize",value:function(){var e=this
return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(m.default&&(sessionStorage.getItem("utagLandingPage")&&sessionStorage.removeItem("utagLandingPage"),this.landingPageUrl=v.default.location.href),this.isInitialized=!0,this.initializePromise=new o.default((function(t,n){e.enableAllowlisting?(e.isAllowlistingEnabled=!0,e._onInitializeSuccessCallback=t,e._onInitializeFailureCallback=n,e._allowlistReadyPromise=(0,d.getAllowlistForProfile)(e.profileName).then((function(t){return e._processAllowlistResult(t)})).catch((function(t){return console.error("Unable to retrieve allowlists for profile : "+e.profileName,t)}))):e._loadContainerTag(t,n)})),this.profileName&&(k[this.profileName]=this),this.initializePromise):o.default.resolve()}},{key:"_processAllowlistResult",value:function(e){var t=this;(0,r.default)(e).forEach((function(n){return t.addValuesToAllowlist(n,e[n])}))}},{key:"_setLandingPageCookie",value:function(){var e=this,t=(0,d.getUpdatedSharedEventData)(this.profileName),n={userSettings:t,enterpriseContext:(0,d.getEnterpriseContextForProfile)(t,this.profileName)}
if(this.landingPageUrl&&(0,p.getUpdatedUserAdvertisingOptIn)(n)&&y.TRACKING_IDS.find((function(t){return e.landingPageUrl.includes(t)}))){var i=(0,u.isProd)()?".linkedin.com":"linkedin-ei.com"
v.default.document.cookie="l_page="+this.landingPageUrl+";domain="+i+";path=/;max-age="+y.L_PAGE_COOKIE_LIFETIME}}},{key:"_loadContainerTag",value:function(e,t){var n=this
c.cleanUpGlobalUTagReferences()
var a=(0,d.getUserSettings)(d.sharedEventData,this.profileName).then((function(e){(0,r.default)(e).forEach((function(t){(0,d.addSharedEventData)(e[t],t)})),m.default&&n._setLandingPageCookie()})).catch((function(e){console.error("Unable to get user settings while calling loading container tag",e)})),s=c.loadScript(c.constructContainerTagUrl(this.profileName,this.cacheBusterInterval))
o.default.all([a,s]).then((function(){n.isContainerTagLoaded=!0,n._uTag=c.getUTagFromGlobalReference(),c.createLoadRulesCompletedListenerForUTag(n._uTag),n._processQueuedEvents()
var t=l.buildTmsLoadEvent()
"object"===(0,i.default)(n.tracking2Instance)&&l.fireTrackingEvent(n.tracking2Instance,t),e(t)})).catch((function(e){console.error("Unable to complete loading container tag",e),t()}))}},{key:"_shouldInitialize",value:function(){return!h.default}},{key:"_shouldProcessEvent",value:function(e){var t=this
return h.default?o.default.resolve(!1):this.isAllowlistingEnabled?new o.default((function(n){t._allowlistReadyPromise.then((function(){n(t._isEventAllowlisted(e))}))})):o.default.resolve(!0)}},{key:"_isEventAllowlisted",value:function(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}},{key:"_isEventAllowlistedByPageKey",value:function(e){return void 0!==this.allowlist.pageKey[e.pageKey]}},{key:"_isEventAllowlistedByControlUrn",value:function(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}},{key:"addValuesToAllowlist",value:function(e,t){var n=this
"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach((function(t){n.allowlist[e][t]=!0}))}},{key:"_processQueuedEvents",value:function(){this.isContainerTagLoaded?c.processQueuedEvents(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}},{key:"_fireAuditEvent",value:function(){var e=l.buildTagFireAuditEvent(this._uTag)
return void 0!==this.tracking2Instance&&void 0!==e&&l.fireTrackingEvent(this.tracking2Instance,e),e}},{key:"_createCallbackForAuditEvent",value:function(e){var t=this
return function(){var n=t._fireAuditEvent()
"function"==typeof e&&e(n)}}},{key:"_checkForCookieConsent",value:function(){var e=this,t=(0,d.getEnterpriseContextForProfile)(d.sharedEventData,this.profileName);(0,g.getCookieConsent)(null,void 0,t).consent.consentAvailable&&!S?(0,f.shouldRefreshOnCookieConsent)(T.payloads)?location.reload():this._refireTracking():_=setTimeout((function(){e._checkForCookieConsent()}),y.COOKIE_CONSENT_CHECK_INTERVAL)}},{key:"_refireTracking",value:function(){var e=this
T.payloads&&T.payloads.forEach((function(t){var n=t.data,i=t.callback
n.cookieConsentGiven=!0,e.trackPageView(n,i)}))}},{key:"_savePayloadForRefire",value:function(e,t){var n=this
if(m.default){S=!1
var i=T,r=i.payloads,o=void 0===r?[]:r,a=i.url,s=location.href,c={data:e,callback:t},l=s!==a?[]:o
l.push(c),T={url:s,payloads:l},_||(_=setTimeout((function(){n._checkForCookieConsent()}),y.COOKIE_CONSENT_CHECK_INTERVAL))}}},{key:"trackPageView",value:function(e,t){var n=this,i=(0,d.getEnterpriseContextForProfile)(d.sharedEventData,this.profileName)
return(0,g.getCookieConsent)(null,void 0,i).consent.consentAvailable||this._savePayloadForRefire(e,t),this._shouldProcessEvent(e).then((function(i){i&&(n._queue.push({isControlInteraction:!1,data:e,callback:n._createCallbackForAuditEvent(t)}),n._processQueuedEvents())}))}},{key:"trackControlInteraction",value:function(e,t){var n=this
return this._shouldProcessEvent(e).then((function(i){i&&(n._queue.push({isControlInteraction:!0,data:e,callback:n._createCallbackForAuditEvent(t)}),n._processQueuedEvents())}))}}]),e}()
t.addSharedEventData=d.addSharedEventData,t.getInstanceForProfile=function(e){var t=k[e]
return t&&c.setGlobalUTagReference(t._uTag),t},t.teardownInstanceForProfile=function(e){delete k[e]},t.default=C},function(e,t,n){e.exports={default:n(65),__esModule:!0}},function(e,t,n){n(42),n(50),e.exports=n(34).f("iterator")},function(e,t,n){var i=n(26),r=n(27)
e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),c=i(n),l=s.length
return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict"
var i=n(46),r=n(20),o=n(23),a={}
n(8)(a,n(1)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var i=n(3),r=n(4),o=n(21)
e.exports=n(5)?Object.defineProperties:function(e,t){r(e)
for(var n,a=o(t),s=a.length,c=0;s>c;)i.f(e,n=a[c++],t[n])
return e}},function(e,t,n){var i=n(16)
e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(11),r=n(48),o=n(71)
e.exports=function(e){return function(t,n,a){var s,c=i(t),l=r(c.length),u=o(a,l)
if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0
return!e&&-1}}},function(e,t,n){var i=n(26),r=Math.max,o=Math.min
e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t,n){var i=n(10),r=n(33),o=n(30)("IE_PROTO"),a=Object.prototype
e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict"
var i=n(74),r=n(75),o=n(15),a=n(11)
e.exports=n(43)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++
return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(77),__esModule:!0}},function(e,t,n){n(78),n(53),n(84),n(85),e.exports=n(2).Symbol},function(e,t,n){"use strict"
var i=n(0),r=n(10),o=n(5),a=n(7),s=n(45),c=n(79).KEY,l=n(14),u=n(31),d=n(23),f=n(22),p=n(1),h=n(34),g=n(35),m=n(80),v=n(81),y=n(4),b=n(9),E=n(33),k=n(11),_=n(29),T=n(20),S=n(46),C=n(82),w=n(83),x=n(51),I=n(3),A=n(21),R=w.f,O=I.f,j=C.f,M=i.Symbol,N=i.JSON,P=N&&N.stringify,D="prototype",U=p("_hidden"),L=p("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),q=u("symbols"),H=u("op-symbols"),G=Object[D],V="function"==typeof M&&!!x.f,K=i.QObject,W=!K||!K[D]||!K[D].findChild,z=o&&l((function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=R(G,t)
i&&delete G[t],O(e,t,n),i&&e!==G&&O(G,t,i)}:O,X=function(e){var t=q[e]=S(M[D])
return t._k=e,t},Q=V&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},Y=function(e,t,n){return e===G&&Y(H,t,n),y(e),t=_(t,!0),y(n),r(q,t)?(n.enumerable?(r(e,U)&&e[U][t]&&(e[U][t]=!1),n=S(n,{enumerable:T(0,!1)})):(r(e,U)||O(e,U,T(1,{})),e[U][t]=!0),z(e,t,n)):O(e,t,n)},$=function(e,t){y(e)
for(var n,i=m(t=k(t)),r=0,o=i.length;o>r;)Y(e,n=i[r++],t[n])
return e},J=function(e){var t=F.call(this,e=_(e,!0))
return!(this===G&&r(q,e)&&!r(H,e))&&(!(t||!r(this,e)||!r(q,e)||r(this,U)&&this[U][e])||t)},Z=function(e,t){if(e=k(e),t=_(t,!0),e!==G||!r(q,t)||r(H,t)){var n=R(e,t)
return!n||!r(q,t)||r(e,U)&&e[U][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=j(k(e)),i=[],o=0;n.length>o;)r(q,t=n[o++])||t==U||t==c||i.push(t)
return i},te=function(e){for(var t,n=e===G,i=j(n?H:k(e)),o=[],a=0;i.length>a;)!r(q,t=i[a++])||n&&!r(G,t)||o.push(q[t])
return o}
V||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!")
var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(H,n),r(this,U)&&r(this[U],e)&&(this[U][e]=!1),z(this,e,T(1,n))}
return o&&W&&z(G,e,{configurable:!0,set:t}),X(e)},s(M[D],"toString",(function(){return this._k})),w.f=Z,I.f=Y,n(52).f=C.f=ee,n(36).f=J,x.f=te,o&&!n(13)&&s(G,"propertyIsEnumerable",J,!0),h.f=function(e){return X(p(e))}),a(a.G+a.W+a.F*!V,{Symbol:M})
for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;ne.length>ie;)p(ne[ie++])
for(var re=A(p.store),oe=0;re.length>oe;)g(re[oe++])
a(a.S+a.F*!V,"Symbol",{for:function(e){return r(B,e+="")?B[e]:B[e]=M(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!")
for(var t in B)if(B[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?S(e):$(S(e),t)},defineProperty:Y,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te})
var ae=l((function(){x.f(1)}))
a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return x.f(E(e))}}),N&&a(a.S+a.F*(!V||l((function(){var e=M()
return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++])
if(n=t=i[1],(b(t)||void 0!==e)&&!Q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,P.apply(N,i)}}),M[D][L]||n(8)(M[D],L,M[D].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(22)("meta"),r=n(9),o=n(10),a=n(3).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(14)((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e
if(!o(e,i)){if(!c(e))return"F"
if(!t)return"E"
u(e)}return e[i].i},getWeak:function(e,t){if(!o(e,i)){if(!c(e))return!0
if(!t)return!1
u(e)}return e[i].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!o(e,i)&&u(e),e}}},function(e,t,n){var i=n(21),r=n(51),o=n(36)
e.exports=function(e){var t=i(e),n=r.f
if(n)for(var a,s=n(e),c=o.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a)
return t}},function(e,t,n){var i=n(16)
e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(11),r=n(52).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[]
e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},function(e,t,n){var i=n(36),r=n(20),o=n(11),a=n(29),s=n(10),c=n(44),l=Object.getOwnPropertyDescriptor
t.f=n(5)?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){n(35)("asyncIterator")},function(e,t,n){n(35)("observable")},function(e,t,n){n(87),e.exports=n(2).Object.keys},function(e,t,n){var i=n(33),r=n(21)
n(88)("keys",(function(){return function(e){return r(i(e))}}))},function(e,t,n){var i=n(7),r=n(2),o=n(14)
e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={}
a[e]=t(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){n(53),n(42),n(50),n(90),n(102),n(103),e.exports=n(2).Promise},function(e,t,n){"use strict"
var i,r,o,a,s=n(13),c=n(0),l=n(18),u=n(54),d=n(7),f=n(9),p=n(19),h=n(91),g=n(92),m=n(55),v=n(56).set,y=n(97)(),b=n(38),E=n(57),k=n(98),_=n(58),T="Promise",S=c.TypeError,C=c.process,w=C&&C.versions,x=w&&w.v8||"",I=c[T],A="process"==u(C),R=function(){},O=r=b.f,j=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(1)("species")]=function(e){e(R,R)}
return(A||"function"==typeof PromiseRejectionEvent)&&e.then(R)instanceof t&&0!==x.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t
return!(!f(e)||"function"!=typeof(t=e.then))&&t},N=function(e,t){if(!e._n){e._n=!0
var n=e._c
y((function(){for(var i=e._v,r=1==e._s,o=0,a=function(t){var n,o,a,s=r?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain
try{s?(r||(2==e._h&&U(e),e._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===t.promise?l(S("Promise-chain cycle")):(o=M(n))?o.call(n,c,l):c(n)):l(i)}catch(e){u&&!a&&u.exit(),l(e)}};n.length>o;)a(n[o++])
e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){v.call(c,(function(){var t,n,i,r=e._v,o=D(e)
if(o&&(t=E((function(){A?C.emit("unhandledRejection",r,e):(n=c.onunhandledrejection)?n({promise:e,reason:r}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",r)})),e._h=A||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},U=function(e){v.call(c,(function(){var t
A?C.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},L=function(e){var t=this
t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),N(t,!0))},F=function(e){var t,n=this
if(!n._d){n._d=!0,n=n._w||n
try{if(n===e)throw S("Promise can't be resolved itself");(t=M(e))?y((function(){var i={_w:n,_d:!1}
try{t.call(e,l(F,i,1),l(L,i,1))}catch(e){L.call(i,e)}})):(n._v=e,n._s=1,N(n,!1))}catch(e){L.call({_w:n,_d:!1},e)}}}
j||(I=function(e){h(this,I,T,"_h"),p(e),i.call(this)
try{e(l(F,this,1),l(L,this,1))}catch(e){L.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(99)(I.prototype,{then:function(e,t){var n=O(m(this,I))
return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&N(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i
this.promise=e,this.resolve=l(F,e,1),this.reject=l(L,e,1)},b.f=O=function(e){return e===I||e===a?new o(e):r(e)}),d(d.G+d.W+d.F*!j,{Promise:I}),n(23)(I,T),n(100)(T),a=n(2)[T],d(d.S+d.F*!j,T,{reject:function(e){var t=O(this)
return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!j),T,{resolve:function(e){return _(s&&this===a?I:this,e)}}),d(d.S+d.F*!(j&&n(101)((function(e){I.all(e).catch(R)}))),T,{all:function(e){var t=this,n=O(t),i=n.resolve,r=n.reject,o=E((function(){var n=[],o=0,a=1
g(e,!1,(function(e){var s=o++,c=!1
n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||i(n))}),r)})),--a||i(n)}))
return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=O(t),i=n.reject,r=E((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,i)}))}))
return r.e&&i(r.v),n.promise}})},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!")
return e}},function(e,t,n){var i=n(18),r=n(93),o=n(94),a=n(4),s=n(48),c=n(95),l={},u={};(t=e.exports=function(e,t,n,d,f){var p,h,g,m,v=f?function(){return e}:c(e),y=i(n,d,t?2:1),b=0
if("function"!=typeof v)throw TypeError(e+" is not iterable!")
if(o(v)){for(p=s(e.length);p>b;b++)if((m=t?y(a(h=e[b])[0],h[1]):y(e[b]))===l||m===u)return m}else for(g=v.call(e);!(h=g.next()).done;)if((m=r(g,y,h.value,t))===l||m===u)return m}).BREAK=l,t.RETURN=u},function(e,t,n){var i=n(4)
e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e.return
throw void 0!==o&&i(o.call(e)),t}}},function(e,t,n){var i=n(15),r=n(1)("iterator"),o=Array.prototype
e.exports=function(e){return void 0!==e&&(i.Array===e||o[r]===e)}},function(e,t,n){var i=n(54),r=n(1)("iterator"),o=n(15)
e.exports=n(2).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||o[i(e)]}},function(e,t){e.exports=function(e,t,n){var i=void 0===n
switch(t.length){case 0:return i?e():e.call(n)
case 1:return i?e(t[0]):e.call(n,t[0])
case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1])
case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2])
case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var i=n(0),r=n(56).set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,c="process"==n(16)(a)
e.exports=function(){var e,t,n,l=function(){var i,r
for(c&&(i=a.domain)&&i.exit();e;){r=e.fn,e=e.next
try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()}
if(c)n=function(){a.nextTick(l)}
else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0)
n=function(){u.then(l)}}else n=function(){r.call(i,l)}
else{var d=!0,f=document.createTextNode("")
new o(l).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(i){var r={fn:i,next:void 0}
t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){var i=n(0).navigator
e.exports=i&&i.userAgent||""},function(e,t,n){var i=n(8)
e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:i(e,r,t[r])
return e}},function(e,t,n){"use strict"
var i=n(0),r=n(2),o=n(3),a=n(5),s=n(1)("species")
e.exports=function(e){var t="function"==typeof r[e]?r[e]:i[e]
a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(1)("iterator"),r=!1
try{var o=[7][i]()
o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1
var n=!1
try{var o=[7],a=o[i]()
a.next=function(){return{done:n=!0}},o[i]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){"use strict"
var i=n(7),r=n(2),o=n(0),a=n(55),s=n(58)
i(i.P+i.R,"Promise",{finally:function(e){var t=a(this,r.Promise||o.Promise),n="function"==typeof e
return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict"
var i=n(7),r=n(38),o=n(57)
i(i.S,"Promise",{try:function(e){var t=r.f(this),n=o(e)
return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict"
t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict"
t.__esModule=!0
var i,r=(i=n(106))&&i.__esModule?i:{default:i}
t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}()},function(e,t,n){e.exports={default:n(107),__esModule:!0}},function(e,t,n){n(108)
var i=n(2).Object
e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},function(e,t,n){var i=n(7)
i(i.S+i.F*!n(5),"Object",{defineProperty:n(3).f})},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0
var i=o(n(17)),r=o(n(6))
function o(e){return e&&e.__esModule?e:{default:e}}t.get=function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}
if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.")
var s=new r.default.XMLHttpRequest
s.withCredentials=o,s.open("GET",e,!0),(0,i.default)(a).forEach((function(e){s.setRequestHeader(e,a[e])})),s.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},s.send()}},function(e,t,n){"use strict";(function(e){var i=n(111),r=n(112),o=n(113)
function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length")
return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n)
if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string")
return d(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number')
return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds")
if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds")
return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t),e}(e,t,n,i):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding')
var i=0|h(t,n),r=(e=s(e,i)).write(t,n)
return r!==i&&(e=e.slice(0,r)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length)
return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):f(e,t)
if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var i
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number')
if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0
return e}function f(e,t){var n=t.length<0?0:0|p(t.length)
e=s(e,n)
for(var i=0;i<n;i+=1)e[i]=255&t[i]
return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes")
return 0|e}function h(e,t){if(c.isBuffer(e))return e.length
if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength
"string"!=typeof e&&(e=""+e)
var n=e.length
if(0===n)return 0
for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n
case"utf8":case"utf-8":case void 0:return B(e).length
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n
case"hex":return n>>>1
case"base64":return q(e).length
default:if(i)return B(e).length
t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=!1
if((void 0===t||t<0)&&(t=0),t>this.length)return""
if((void 0===n||n>this.length)&&(n=this.length),n<=0)return""
if((n>>>=0)<=(t>>>=0))return""
for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n)
case"utf8":case"utf-8":return w(this,t,n)
case"ascii":return I(this,t,n)
case"latin1":case"binary":return A(this,t,n)
case"base64":return C(this,t,n)
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n)
default:if(i)throw new TypeError("Unknown encoding: "+e)
e=(e+"").toLowerCase(),i=!0}}function m(e,t,n){var i=e[t]
e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1
if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1
n=e.length-1}else if(n<0){if(!r)return-1
n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r)
if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r)
throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var o,a=1,s=e.length,c=t.length
if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1
a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1
for(o=n;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(l(e,o+f)!==l(t,f)){d=!1
break}if(d)return o}return-1}function b(e,t,n,i){n=Number(n)||0
var r=e.length-n
i?(i=Number(i))>r&&(i=r):i=r
var o=t.length
if(o%2!=0)throw new TypeError("Invalid hex string")
i>o/2&&(i=o/2)
for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16)
if(isNaN(s))return a
e[n+a]=s}return a}function E(e,t,n,i){return H(B(t,e.length-n),e,n,i)}function k(e,t,n,i){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n))
return t}(t),e,n,i)}function _(e,t,n,i){return k(e,t,n,i)}function T(e,t,n,i){return H(q(t),e,n,i)}function S(e,t,n,i){return H(function(e,t){for(var n,i,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(n=e.charCodeAt(a))>>8,r=n%256,o.push(r),o.push(i)
return o}(t,e.length-n),e,n,i)}function C(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function w(e,t,n){n=Math.min(e.length,n)
for(var i=[],r=t;r<n;){var o,a,s,c,l=e[r],u=null,d=l>239?4:l>223?3:l>191?2:1
if(r+d<=n)switch(d){case 1:l<128&&(u=l)
break
case 2:128==(192&(o=e[r+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c)
break
case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c)
break
case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length
if(t<=x)return String.fromCharCode.apply(String,e)
for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=x))
return n}(i)}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1)
return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers")
if(e===t)return 0
for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r]
break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0
default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers')
if(0===e.length)return c.alloc(0)
var n
if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length
var i=c.allocUnsafe(t),r=0
for(n=0;n<e.length;++n){var a=e[n]
if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers')
a.copy(i,r),r+=a.length}return i},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length
if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits")
for(var t=0;t<e;t+=2)m(this,t,t+1)
return this},c.prototype.swap32=function(){var e=this.length
if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits")
for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2)
return this},c.prototype.swap64=function(){var e=this.length
if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits")
for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4)
return this},c.prototype.toString=function(){var e=0|this.length
return 0===e?"":0===arguments.length?w(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer")
return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES
return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer")
if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index")
if(i>=r&&t>=n)return 0
if(i>=r)return-1
if(t>=n)return 1
if(this===e)return 0
for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,r),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d]
break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0
else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0
else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")
t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t
if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds")
i||(i="utf8")
for(var o=!1;;)switch(i){case"hex":return b(this,e,t,n)
case"utf8":case"utf-8":return E(this,e,t,n)
case"ascii":return k(this,e,t,n)
case"latin1":case"binary":return _(this,e,t,n)
case"base64":return T(this,e,t,n)
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n)
default:if(o)throw new TypeError("Unknown encoding: "+i)
i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}}
var x=4096
function I(e,t,n){var i=""
n=Math.min(e.length,n)
for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r])
return i}function A(e,t,n){var i=""
n=Math.min(e.length,n)
for(var r=t;r<n;++r)i+=String.fromCharCode(e[r])
return i}function R(e,t,n){var i,r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r)
for(var o="",a=t;a<n;++a)o+=(i=e[a])<16?"0"+i.toString(16):i.toString(16)
return o}function O(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1])
return r}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint")
if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,i,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance')
if(t>r||t<o)throw new RangeError('"value" argument is out of bounds')
if(n+i>e.length)throw new RangeError("Index out of range")}function N(e,t,n,i){t<0&&(t=65535+t+1)
for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function P(e,t,n,i){t<0&&(t=4294967295+t+1)
for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function D(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range")
if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,i,o){return o||D(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function L(e,t,n,i,o){return o||D(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length
if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype
else{var r=t-e
n=new c(r,void 0)
for(var o=0;o<r;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length)
for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r
return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length)
for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r
return i},c.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length)
for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r
return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length)
for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r
return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||j(e,2,this.length)
var n=this[e]|this[e+1]<<8
return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||j(e,2,this.length)
var n=this[e+1]|this[e]<<8
return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||M(this,e,t,n,Math.pow(2,8*n)-1,0)
var r=1,o=0
for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255
return t+n},c.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||M(this,e,t,n,Math.pow(2,8*n)-1,0)
var r=n-1,o=1
for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255
return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1)
M(this,e,t,n,r-1,-r)}var o=0,a=1,s=0
for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255
return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1)
M(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0
for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255
return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0
if(0===e.length||0===this.length)return 0
if(t<0)throw new RangeError("targetStart out of bounds")
if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds")
if(i<0)throw new RangeError("sourceEnd out of bounds")
i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n)
var r,o=i-n
if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n]
else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n]
else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t)
return o},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0)
r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string")
if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255)
if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index")
if(n<=t)return this
var o
if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e
else{var a=c.isBuffer(e)?e:B(new c(e,i).toString()),s=a.length
for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this}
var F=/[^+\/0-9A-Za-z-_]/g
function B(e,t){var n
t=t||1/0
for(var i=e.length,r=null,o=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189)
continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189)
continue}r=n
continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n
continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189)
if(r=null,n<128){if((t-=1)<0)break
o.push(n)}else if(n<2048){if((t-=2)<0)break
o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break
o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point")
if((t-=4)<0)break
o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return""
for(;e.length%4!=0;)e+="="
return e}(e))}function H(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r]
return r}}).call(t,n(41))},function(e,t,n){"use strict"
t.byteLength=function(e){var t=l(e),n=t[0],i=t[1]
return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a
for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t
return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],a=16383,s=0,c=n-r;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a))
return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}
for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)i[s]=a[s],r[a.charCodeAt(s)]=s
function l(e){var t=e.length
if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4")
var n=e.indexOf("=")
return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,o,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o])
return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?r-1:0,f=n?-1:1,p=e[t+d]
for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l
else{if(o===c)return a?NaN:1/0*(p?-1:1)
a+=Math.pow(2,i),o-=l}return(p?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,c,l=8*o-r-1,u=(1<<l)-1,d=u>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,h=i?1:-1,g=t<0||0===t&&1/t<0?1:0
for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=h,s/=256,r-=8);for(a=a<<r|s,l+=r;l>0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*g}},function(e,t){var n={}.toString
e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.buildTagFireAuditEvent=t.buildTmsLoadEvent=t.fireTrackingEvent=void 0
var i,r=(i=n(25))&&i.__esModule?i:{default:i},o=s(n(12)),a=s(n(59))
function s(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
return t.default=e,t}function c(e,t){return"urn:li:externalMarketingTag:("+function(e){var t=e.data["ut.profile"],n=e.cfg.v
return"urn:li:tagManagementSystemProfile:("+o.TAG_MANAGEMENT_SYSTEM_USED+","+t+","+n+")"}(e)+","+parseInt(t)+")"}t.fireTrackingEvent=function(e,t){!function(e){return"object"===(void 0===e?"undefined":(0,r.default)(e))&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)},t.buildTmsLoadEvent=function(){return{info:{name:o.CUSTOM_EVENTS_TMS_LOAD_EVENT},body:{header:{},requestHeader:{}}}},t.buildTagFireAuditEvent=function(e){var t=a.getTagsFired(e).map((function(t){return function(e,t){return{tagUrn:c(e,t)}}(e,t)}))
if(0!==t.length)return{info:{name:o.CUSTOM_EVENTS_TAG_FIRE_AUDIT_EVENT},body:{header:{},requestHeader:{},tags:t}}}},function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var i=o(n(40)),r=o(n(6))
function o(e){return e&&e.__esModule?e:{default:e}}var a=i.default&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(r.default.navigator.userAgent)
t.default=a}])},e.exports=t()},12965:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.decorate=void 0
const i=n(69808)
function r(e){return e}function o(){return""}t.decorate=function(e,t,n){let a=n
if(!e||!(e.begin||e.end||e.segment))return a
if(Array.isArray(t)&&t.length){const s=new i.StringView(n),c=s.length,l="function"==typeof e.begin?e.begin:o,u="function"==typeof e.end?e.end:o,d="function"==typeof e.segment?e.segment:r,f=[],p=t,h=[]
let g,m=c
for(g=c;g>=0;g--){let t,n
for(n=f.length>0&&f[f.length-1];f.length&&n&&g===n.start;)g!==m&&h.push(d.call(e,s.substring(g,m).toString())),h.push(l.call(e,n)),m=g,f.pop(),n=f[f.length-1]
for(t=p.length>0&&p[p.length-1];p.length&&t&&g===t.start+t.length;)g!==m&&h.push(d.call(e,s.substring(g,m).toString())),h.push(u.call(e,t)),m=g,f.push(p.pop()),t=p[p.length-1]
for(n=f.length>0&&f[f.length-1];f.length&&n&&g===n.start;)g!==m&&h.push(d.call(e,s.substring(g,m).toString())),h.push(l.call(e,n)),m=g,f.pop(),n=f[f.length-1]
0===g&&m!==g&&h.push(d(s.substring(g,m).toString()))}a=h.reverse().join("")}else a="function"==typeof e.segment?e.segment(a):a
return a}},97034:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.decorate=t.StringView=void 0
var i=n(69808)
Object.defineProperty(t,"StringView",{enumerable:!0,get:function(){return i.StringView}})
var r=n(12965)
Object.defineProperty(t,"decorate",{enumerable:!0,get:function(){return r.decorate}})},69808:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.StringView=void 0
const n=String.fromCharCode
class i{constructor(e){Array.isArray(e)?(this.str=null,this.codePoints=e):(this.str=e,this.codePoints=function(e){let t,n,i=[],r=0,o=e.length
for(;r<o;)t=e.charCodeAt(r++),t>=55296&&t<=56319&&r<o?(n=e.charCodeAt(r++),56320==(64512&n)?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--)):i.push(t)
return i}(e)),this.length=this.codePoints.length}substring(e,t){const n=this.length
return 0===t?new i(""):((isNaN(e)||e<0)&&(e=0),(isNaN(t)||t<0)&&(t=n),e>n&&(e=n),t>n&&(t=n),t<e&&([t,e]=[e,t]),new i(e===t?"":this.codePoints.slice(e,t)))}toString(){return null!==this.str?this.str:this.codePoints.map((function(e){let t=""
return e>65535&&(t+=n((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=n(e),t})).join("")}}t.StringView=i},23484:(e,t,n)=>{var i=n(97034)
e.exports=i},87118:(e,t)=>{var n
void 0===(n=function(){return function(e){var t=window.location.origin,n={width:"100%",iframeId:"payments-iframe",iframeCartPath:"/payments/embed",iframeOrderTokenPath:"/payments/order/token/embed",iframePaymentPath:"/payments/v2/purchase",iframeTitle:"Linkedin payments embedded checkout",load:function(){},update:function(){},cancel:function(){},cartTaxed:function(){},showPMPanel:function(){},handleShow3dsAuthentication:function(){},handleSubmit3dsAuthentication:function(){},handleSetProcessingModal:function(){}},i={left:"0",height:"100%",position:"fixed",top:"0",width:"100%","z-index":"10000"},r=["https://www.linkedin-ei.com","https://www.linkedin-ei.cn","https://www.linkedin.com","https://www.linkedin.cn","https://staging.slideshare.com","https://www.slideshare.net","https://pemberly.www.linkedin-ei.com:4443","https://pemberly.www.linkedin-ei.cn:4443","https://pemberly.www.linkedin.com:4443","https://pemberly.www.linkedin.cn:4443"],o=["height"],a=["error.session.timeout","error.purchase.generic","error.unknown","error.purchase.enter_valid_vat","error.purchase.no_confirmed_email_address","harderror"],s=this
this.init=function(){var t,i
if(this.config=e,!this._isProperConfig(e))throw new Error("Config is incomplete. Must have success, error, sessionTimeout, and iframeParentId. Must have cartId or accessToken or have viewType, customerUrn and routingType.")
if(!(t=document.getElementById(this.config.iframeParentId)))throw new Error('Cannot find an element with an ID of "'+this.config.iframeParentId+'"')
this.clearIframeParentContainer(),this.config=this.setDefaults(n,this.config),this.iframe=document.createElement("iframe"),this.iframe.setAttribute("width",this.config.width),this.iframe.setAttribute("id",this.config.iframeId),this.iframe.setAttribute("title",this.config.iframeTitle),this.iframe.style.border=0,i=this.config.cartId?this.config.iframeCartPath+"?_cartId="+this.config.cartId:this.config.accessToken?this.config.iframeOrderTokenPath+"?accessToken="+this.config.accessToken+"&viewType=PAYMENTFORM":`${this.config.iframePaymentPath}?viewType=${this.config.viewType}&owner=${this.config.customerUrn}&routingType=${this.config.routingType}`,this.iframe.setAttribute("src",i),t.appendChild(this.iframe),this.attachEventListeners()},this.clearIframeParentContainer=function(){document.getElementById(this.config.iframeParentId).innerHTML=""},this.removeEventListener=function(){window.removeEventListener("message",this.receiveMessage,!1)},this.attachEventListeners=function(){this.iframe.contentWindow.addEventListener("message",this.receiveMessage,!1),window.addEventListener("message",this.receiveMessage,!1)},this.receiveMessage=function(e){var t
if(e.origin&&-1!==r.indexOf(e.origin)&&(t=s.config,e.data&&e.data.type))switch(e.data.type){case"success":s._handleSuccessEvt(e,t)
break
case"success:orderV5Auth":s._handleOrderV5AuthSuccessEvt(e,t)
break
case"error":s._handleErrorEvt(e,t)
break
case"fullscreen:collapse":s._handleFullscreenCollapseEvt()
break
case"fullscreen:expand":s._handleFullscreenExpandEvt()
break
case"load":s._handleLoadEvt(e,t)
break
case"cancel":s._handleCancelEvt(e,t)
break
case"update":s._handleUpdateEvt(e,t)
break
case"action:carttaxed":s._handleCartTaxedEvent(e,t)
break
case"action:showpaymentmethodpanel":s._handleShowPMPanelEvent(e,t)
break
case"action:show3dsauthentication":case"dialog:two_factor_auth:open":s._handleShow3dsAuthentication(e,t)
break
case"action:submit3dsauthentication":s._handleSubmit3dsAuthentication(e,t)
break
case"set:processingModal":s._handleSetProcessingModal(e,t)
break
case"sessiontimeout":s._handleSessionTimeoutErrorEvt(e,t)}},this.setLIThemeForIframe=function(e){this.iframe.contentWindow.postMessage({type:"set:theme"},t)},this.buyJobsCart=function(){var e={type:"submit"}
if(!this.config||!this.config.cartId)throw new Error("Parameter cartId: "+cartId+" does not match the checkout cartId: "+this.config.cartId)
e.cartId=this.config.cartId,this.iframe.contentWindow.postMessage(e,t)},this.buyCart=function(e,n){var i={type:"submit"}
if(this.config.accessToken&&e.fullName&&e.title)i.accessToken=this.config.accessToken,i.fullName=e.fullName,i.title=e.title,e.enterpriseProfileEmail&&(i.enterpriseProfileEmail=e.enterpriseProfileEmail),i.OrderV5PlaceOrderFlow=n||!1
else if(this.config.accessToken&&(!e.fullName||!e.title))throw new Error("Missing fields accessToken, fullName, and title.")
this.iframe.contentWindow.postMessage(i,t)},this.setDefaults=function(e,t){for(key in e)t[key]||(t[key]=e[key])
return t},this._handleErrorEvt=function(e,t){var n=e.data.value
if(!n||!n.errorCode||-1===a.indexOf(n.errorCode))throw new Error('Invalid data sent for "error" call')
t.error(n)},this._handleSessionTimeoutErrorEvt=function(e,t){var n=e.data.value
if(!n||!n.errorCode||0!==a.indexOf(n.errorCode))throw new Error('Invalid data sent for "sessiontimeout" call')
t.sessionTimeout(n)},this._handleFullscreenCollapseEvt=function(){void 0!==s.iframe.style.cssText?s.iframe.style.cssText=s.previousStyles:s.setAttribute("style",s.previousStyles),s.previousStyles=""},this._handleFullscreenExpandEvt=function(e,t){s.newFullscreenStyles=s.newFullscreenStyles||s._toStyleString(i),void 0!==s.iframe.style.cssText?(s.previousStyles=s.iframe.style.cssText,s.iframe.style.cssText+=s.newFullscreenStyles):(s.previousStyles=s.iframe.getAttribute("style"),s.iframe.setAttribute("style",s.previousStyles+s.newFullscreenStyles))},this._handleLoadEvt=function(e,t){t.load()},this._handleCancelEvt=function(e,t){t.cancel()},this._handleSuccessEvt=function(e,t){t.success()},this._handleOrderV5AuthSuccessEvt=function(e,t){var n=e.data&&e.data.value
n&&n.errorCode?this._handleErrorEvt(e,t):t.orderV5AuthSuccess(n)},this._handleUpdateEvt=function(e,t){var n=e.data.value
if(!n||!n.val||!n.attr||2!==Object.keys(n).length||-1===o.indexOf(n.attr))throw new Error('Invalid data sent for "update" call')
document.getElementById(t.iframeId).setAttribute(n.attr,n.val),t.update()},this._handleCartTaxedEvent=function(e,t){t.cartTaxed()},this._handleShowPMPanelEvent=function(e,t){t.showPMPanel()},this._handleShow3dsAuthentication=function(e,t){t.handleShow3dsAuthentication()},this._handleSubmit3dsAuthentication=function(e,t){t.handleSubmit3dsAuthentication()},this._handleSetProcessingModal=function(e,t){var n=e.data.value
t.handleSetProcessingModal(n)},this._toStyleString=function(e){var t,n=""
for(t in e)n+=t+": "+e[t]+"; "
return n.substring(0,n.length-1)},this._isProperConfig=function(e){const t=e.success&&e.error&&e.iframeParentId,n=e.cartId||e.accessToken,i=e.viewType&&e.customerUrn&&e.routingType
return t&&(n||i)},this.init()}}.apply(t,[]))||(e.exports=n)},78789:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getGraphQLSource=t.getGraphQLQueryId=t.isGraphQLQuery=t.isGraphQLFragment=t.getQueryTokenByQuerySource=t.lookup=t.register=t.resetRegisteredQueries=void 0
const n=new Map
function i(e,t,n){if(e)return Object.freeze(Object.create(null))
if("query"===t.kind||"mutation"===t.kind||"subscription"===t.kind){const e=t
if(e.ast)return Object.assign(Object.create(null),e.ast,n)}return Object.freeze(Object.assign(Object.create(null),n))}function r(e){return n.get(e)}function o(e,t){const n=r(e)
if(void 0===n)throw new Error(`No GraphQL query or fragment metadata associated with the given token: ${JSON.stringify(e)}`)
return n.kind===t}t.resetRegisteredQueries=function(){n.clear()},t.register=function(e,t){let r
return r=e?i(!0,t):"query"===t.kind||"mutation"===t.kind?i(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):i(!1,t,{$debug:{name:t.name,kind:t.kind}}),n.set(r,t),r},t.lookup=r,t.getQueryTokenByQuerySource=function(e){const t=[]
for(const[i,r]of n)"query"!==r.kind&&"mutation"!==r.kind||r.source!==e||t.push(i)
if(t.length>1)throw new Error("Query source is found in multiple query files")
return t[0]},t.isGraphQLFragment=function(e){return o(e,"fragment")},t.isGraphQLQuery=function(e){return o(e,"query")},t.getGraphQLQueryId=function(e){const t=r(e)
if(void 0===t||"query"!==t.kind&&"mutation"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
return t.id},t.getGraphQLSource=function(e){const t=r(e)
if(void 0===t||"query"!==t.kind&&"mutation"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
if(!t.source)throw new Error(`No GraphQL source associated with the given token: ${JSON.stringify(e)}`)
return t.source}},94083:function(e,t){!function(e){"use strict"
function t(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e)
t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{}
n%2?t(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o,a,s=[],c=!0,l=!1
try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return c(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}var l=null,u=null,d=null
window&&window.t8&&(l=window.t8,Object.keys(l).length&&(u=new l.CurrencyFormatter,d=new l.NumberFormatter))
var f=u,p=d,h=null,g=null
function m(){throw new Error("You need to inject a ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""," formatter or have t8 available as a global, neither were found"))}var v={currency:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var i=t[0],r=t[1],o=t[2]
return h?h(i,r,o):(f||m("currency"),f.format(i,o,r))},number:function(){var e
return g?g.apply(void 0,arguments):(p||m("number"),(e=p).format.apply(e,arguments))}}
function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i]
if("number"===e){var r=n[0],o=void 0===r?"":r,a=n[1]
return v[e](o,a)}if("currency"===e){var s=n[0],c=n[1],l=n[2]
return v[e](s,c,l)}return""}function b(e){return"number"==typeof e?!isNaN(e-parseFloat(e.toString())):"string"==typeof e}function E(e,t){if(!b(e))return""
var n=o(e.toString().split("."),2),i=n[0],r=n[1]
i&&(i=i.replace(/(\d)(?=(\d{2})+\d$)/g,"$1,"))
var a=i
return t&&(a="".concat(t).concat(i)),"string"==typeof r&&(a="".concat(a,".").concat(r)),a||""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US"
return"en_IN"===t&&e?E(e):y("number",e,t)}var _="12345678.91",T={},S={en_US:["K","M","B"],zh_CN:["K","M","B"],en_IN:["K","Lakh","cr"]},C=["en_US","zh_CN"],w=["en_IN"],x=function(e){return Math.pow(10,3*(e+1))},I=function(e){return 0===e?1e3:Math.pow(10,2*(e+1.5))},A=function(){return Number.POSITIVE_INFINITY}
function R(e){return S[e]||[]}function O(e){return C.indexOf(e)>-1?x:w.indexOf(e)>-1?I:A}function j(e){return[",","."].reduce((function(t,n){return 2===e.split(n).length?n:t}))}function M(e,t){return 4===e.split(t).length?"india":"thousands"}function N(e,t){var n=function(e){return[",","."," "," ","'"].reduce((function(t,n){return e.split(n).length>=3?n:t}))}(e)
return{delimiter:n,radixMark:j(e),delimiterStyle:M(e,n),abbreviations:R(t),abbreviateOn:O(t)}}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",t=e,n=T[t]
if(n)return n
var i=N(k(_,e),e)
return T[t]=i,i}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=[".",",","'"]
return t.splice(t.indexOf(e),1),t}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=D(e),n=[].concat(a(t),["s"]).join("\\")
return new RegExp("([^,\\.\\d]*)([".concat(n,"\\d]*\\d+)(\\").concat(e,"?)(\\d*)(\\D*)"))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=["","","","",""]
if(!b(e))return n
var i=U(t).exec(e)
if(!i)return n
i.shift()
var r=function(e){return e||""}
return n[0]=r(i[0]),n[1]=r(i[1]),n[2]=r(i[2]),n[3]=r(i[3]),n[4]=r(i[4]),n}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2?arguments[2]:void 0,i=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).keepTrailingRadixMark,r=void 0!==i&&i
if(!b(e))return""
var a,s=o(L(e.toString(),t),5),c=s[0],l=s[1],u=s[2],d=s[3],f=s[4]
return b(n)&&""!==n&&(a=Number(n)),0===a?"".concat(c).concat(l).concat(f):r&&""===d?"".concat(c).concat(l).concat(u).concat(f):(a&&(d=d.slice(0,a)),""===d?"".concat(c).concat(l).concat(f):"".concat(c).concat(l).concat(u).concat(d).concat(f))}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD"
if("en_IN"===t){var i=z("en_US",n),r=i.currencySymbol,o=i.radixPlaces
return E(F(e,i.radixMark,o),r)}return y("currency",e,t,n)}var q="12345678.91",H={}
function G(e){return Number(e.substring(0,1))?"after":"before"}function V(e,t,n){var i=new RegExp("[^\\d\\".concat(t,"\\").concat(n,"\\s]+")),r=e.match(i)
return r?r[0]:""}function K(e,t){var n=t.replace("$","\\$"),i=new RegExp("\\s?".concat(n,"\\s?")),r=e.match(i)
return r?r[0]:t}function W(e,t){var n=new RegExp("\\".concat(t,"(\\d+)")),i=e.match(n)
return i&&i[1]?i[1].length:0}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",i="".concat(e,":").concat(t),r=H[i]
if(r)return r
var o=P(e),a=o.radixMark,s=o.delimiter,c=B(q,e,t),l=G(c),u=V(c,a,s),d=K(c,u),f=W(c,a),p=n(n({},o),{currencySymbolLocation:l,currencySymbol:u,currencySymbolWithWhitespace:d,radixPlaces:f})
return H[i]=p,p}var X=function(e){return e[e.Delete=46]="Delete",e[e.Backspace=8]="Backspace",e[e.Three=51]="Three",e}({})
function Q(e){return e===X.Delete||e===X.Backspace}function Y(e){var t=e.selectionStart,n=e.selectionEnd
return{start:t,end:n,length:(n||0)-(t||0)}}function $(e,t){return e.length-t.length}function J(e,t,n,i,r){return t?0:i&&e===X.Backspace?-r:n&&e===X.Delete?r:0}function Z(e,t){return e+t}function ee(e,t,n){return n.charAt(t-1)===e}function te(e,t,n){return n.charAt(t)===e}function ne(e,t,n){t!==n&&(e.selectionStart=n,e.selectionEnd=n)}function ie(e){return e.replace(/\s/g,(function(){return" "}))}function re(e){return"0".concat(e)}function oe(e,t,n,i){return t||""===t?F("".concat(e).concat(n).concat(t),n,i,{keepTrailingRadixMark:!0}):e}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2?arguments[2]:void 0,i=P(t).radixMark,r=n
if(b(r)&&""!==r&&(r=Number(r)),!e)return""
if("."===e)return 0===r?"":re(i)
var a=o(e.split("."),2),s=a[0],c=a[1]
return oe(ie(k(s,t)),c,i,n)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function le(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}function fe(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e)}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o=[],a=!0,s=!1
try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||ge(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ge(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){if(e){if("string"==typeof e)return me(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}var ve="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",ye="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",be=["b","del","em","i","s","strong","sub","sup"],Ee=be.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),ke=[ve,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding|attributionsrc"].join("|"),_e=le((function e(){se(this,e)}))
function Te(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Se,Ce,we=(Se=/[&<>"'\u0000\\=]/g,Ce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Se,(function(e){return function(e){return e in Ce}(e)?Ce[e]:e}))}),xe=function(){var e,t="undefined"!=typeof document?document.createElement("div"):null,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'}
function r(e){if(function(e){return Te(i,e)}(e))return i[e]
if(!t)return e
t.innerHTML="&".concat(e,";")
var n=t[ye]
return i[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,i,o){return n?r(n):i||o?e(parseInt(i||o,i?16:10)||65533):"�"}))}}()
function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log"
if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}function Ae(e){return/[<&]/.test(e)}var Re,Oe="[ \t\r\n]*"
function je(e){e=Array.isArray(e)?e:[e]
var t,n,i,r=0,o="<(?!/?"
return o+="(?:",e.forEach((function(e,a){t=e.tags||Ee,n=e.attrs||ke,i=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=Oe,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++r,")?"),i&&(o+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++r)),o+=")"+Oe+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function Me(e){return je({tags:e=e||Ee,checkUrlAttrs:!0})}function Ne(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup
return n&&n.length>0?!Me(n).test(e):i?!Ne.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Ne.R_UNSAFE_HTML.test(e)}function Pe(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}Ne.R_UNSAFE_HTML=Me(),Ne.R_UNSAFE_CUSTOM_ELEMENT=je([{tags:Ee,checkUrlAttrs:!0},{tags:[(Re={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[ve,Re.attrs].join("|"),checkUrlAttrs:!1}])
var De={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]},Ue=/<([\w:]+)/
function Le(e){return e in De}function Fe(e,t){var n,i,r,o,a,s=t.createDocumentFragment(),c=[]
for(r=0,a=e.length;r<a;r++)if(i=e[r])if("string"==typeof i){n=n||s.appendChild(t.createElement("div"))
var l=pe(Ue.exec(i)||["",""],2)[1]
if(void 0!==l){var u=l.toLowerCase(),d=Le(u)&&De[u]||De._default
for(Ge(n,d[1]+i+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild)
c.push.apply(c,he(Array.from(n.childNodes))),(n=s.firstChild)&&(n.textContent="")}}else i instanceof Node&&c.push(i)
for(s.textContent="",i=c[r=0];i;)s.appendChild(i),i=c[++r]
return s}function Be(e,t,n){e=e.toString()
var i=t?function(e,t){var n={}
return e.replace(/\{([^}]+)\}/g,(function(e,i){if(Te(n,i))return n[i]
if(Te(t,i)){var r=t[i],o="string"==typeof r
if(!(o||r instanceof _e||"number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return r?(r=o?"".concat(we(r)):r.toString(),n[i]=r,r):e}return e}))}(e,t):e,r=e
return Ae(i)&&!Ne(i,n)&&(i=Pe(i),Ie("Content contains tags or attributes that are not allowed:\nContent: "+r,"error")),i}var qe=Be,He=Be
function Ge(e,t,n){var i=Be(t,n)
return i&&Ae(i)?e.innerHTML=i:i&&(e[ye]=i),i}var Ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(n,e)
var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()
return function(){var n,i=ue(e)
if(t){var r=ue(this).constructor
n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments)
return fe(this,n)}}(n)
function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return se(this,n),(i=t.call(this)).options=r,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return le(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e
return void 0!==t?t:(Ne(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=Pe(e),Ie("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(_e),Ke=/ /g,We=/[\s\u0000<>"]|%00/,ze=/\\/,Xe=/([.]|%2e){2}/i,Qe=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 Ye(e){var t,n="invalid://"
if("string"!=typeof e)return Ie("jSecure Warning: url must be a string","error"),n
if((t=e.trim()).indexOf(" ")>-1&&(Ie("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Ke,"+")),!Qe.test(t))return Ie("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n
if(We.test(t))return Ie("jSecure Error: not valid url character found in url: "+e,"error"),n
var i,r=t.split("?")[0],o=!1
if(r){try{if(i=decodeURI(r),Xe.test(i))return Ie("jSecure Error: malicious data found in url path: "+r,"error"),n}catch(e){o=!0}if(o)return Ie("jSecure Error: malformed url path detected: "+r),n
if(ze.test(r)||Xe.test(r))return Ie("jSecure Error: malicious data found in url path: "+r,"error"),n}return e}var $e={redirect:function(e){window&&(window.location.href=e)}},Je={ALLOWED_TAGS:Ee,FORMATTING_TAGS:be,htmlEncode:we,htmlUnencode:xe,log:Ie,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i]
var r,o="",a=n.length
return e&&e.forEach((function(e,t){o+=e,t<a&&(r=n[t],o+=r instanceof Ve?r:we(r))})),"".concat(He(o))},parseHTML:function(e,t){var n
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Fe([e],t)
else{if(!Array.isArray(e))return e
n=Fe(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:qe,reEncode:function(e){return we(xe(e))},_redirector:$e,redirect:function(e){var t=Ye(e)
t===e&&$e.redirect(t)},sanitizeHTML:He,sanitizeUrl:Ye,setElementContent:Ge,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new Ve(t,n)}}.sanitizeHTML
function Ze(e){if(e instanceof HTMLInputElement){var t=e.value.trim()
return t?Je(t):""}return""}function et(e){if(e instanceof HTMLInputElement)return e
throw new Error("Event target is not an HTMLInputElement")}function tt(e){var t=e.value
return t?Je(t):""}function nt(e,t){e.value=t}var it=function(e){return function(e){return/[a-z][_-][A-Z]/g.test(e)}(e)},rt=function(e){return P(e)},ot=function(e){return b(e)}
function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."
return st(e,t).replace(new RegExp("\\".concat(t),"g"),".")}function st(e){var t=new RegExp("((&#(39|92|61);)|[^\\d\\".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:".","])"),"g")
return e.replace(t,"")}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."
if(!ot(e))return""
var n=t
return it(t)&&(n=rt(t).radixMark),at(e,n)}function lt(e,t,n,i){if(function(e,t,n){return function(e,t,n){var i=n.indexOf(e),r=i+e.length
return t>i&&t<r}(e,t,n)||function(e,t,n){return t===n.indexOf(e)+e.length}(e,t,n)||function(e,t,n){return t===n.indexOf(e)}(e,t,n)}(e,n,i)){var r=i.indexOf(e),o=r+e.length
return"before"===t?o:r}return n}function ut(e,t,n){return"before"===n?"".concat(t).concat(e):"".concat(e).concat(t)}function dt(e,t){var n=e
return b(n)&&""!==n&&(n=Number(n)),n||0===n?n:t}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD",i=arguments.length>3?arguments[3]:void 0,r=z(t,n),a=r.currencySymbolWithWhitespace,s=r.currencySymbolLocation,c=r.radixMark,l=r.radixPlaces
if(!b(e))return""
var u=dt(i,l)
a=ie(a)
var d=ct(e,c),f=o(L(d,"."),2)[1]
if(""===d)return a
if("."===d)return 0===u?a:ut(re(c),a,s)
var p=o(L(F(e,c,u,{keepTrailingRadixMark:!0}),c),4),h=p[2],g=p[3],m=o(L(ie(B(f,t,n)),c),5),v=m[0],y=m[1],E=m[4]
return"".concat(v).concat(y).concat(h).concat(g).concat(E)}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2?arguments[2]:void 0
return ae(ct(e,t),t,n)}function ht(e,t,n){for(var i=t.length-1;i>=0;i--){var r=n(i)
if(r<=e){var o=t[i]||"",a=e/r,s=Math.round(e/r)
return Math.floor(a)!==a&&i>0?[a.toFixed(1),o]:[s.toString(),o]}}return[e.toString(),""]}e.abbreviateNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US"
if(!b(e))return""
var n=P(t),i=n.radixMark,r=n.abbreviations,a=n.abbreviateOn
if(!r.length)return"".concat(e)
var s=o(L(e.toString(),i),5),c=s[0],l=s[1],u=s[2],d=s[3],f=s[4],p=o(ht(+ct(l,i),r,a),2),h=p[0],g=void 0===h?"":h,m=p[1]
return g=g.replace(".",i),m?"".concat(c).concat(g).concat(m).concat(f):"".concat(c).concat(g).concat(m).concat(u).concat(d).concat(f)},e.addNBSP=function(e){var t=String.fromCharCode(160)
return e.replace(/\s/g,(function(){return t}))},e.formatCurrency=B,e.formatMaskingCurrency=ft,e.formatMaskingNumber=pt,e.formatNumber=k,e.formatUnformattedCurrency=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD",i=arguments.length>3?arguments[3]:void 0
return ft(ae(e,t,i),t,n,i)},e.formatUnformattedNumber=ae,e.getAdjustedCursorPosition=Z,e.getCurrencyFormatData=z,e.getCursorAdjustment=$,e.getElementSelection=Y,e.getNumberFormatData=P,e.indiaNumberFormatter=E,e.injectCurrencyFormatter=function(e){var t=i(e)
if(!e||"function"!==t)throw new Error("Expected function for currency formatter, got ".concat(t))
h=e},e.injectNumberFormatter=function(e){var t=i(e)
if(!e||"function"!==t)throw new Error("Expected function for number formatter, got ".concat(t))
g=e},e.isCursorImmediatelyAfterCharacter=ee,e.isCursorImmediatelyBeforeCharacter=te,e.isNumberOrString=b,e.onCurrencyBlur=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,i=void 0===n?"en_US":n,r=t.currencyCode,o=void 0===r?"USD":r,a=t.beforeSetValue,s=t.setValue,c=t.afterSetValue,l=et(e.target),u=Ze(l),d=z(i,o).currencySymbol
if(""===u||u===d){var f=""
a&&"function"==typeof a&&a(f,f),s&&"function"==typeof s?s(f,f):nt(l,f),c&&"function"==typeof c&&c(f,f)}},e.onCurrencyFocus=function(e,t){var n=t.locale,i=void 0===n?"en_US":n,r=t.currencyCode,o=void 0===r?"USD":r,a=et(e.target)
if(""===Ze(a)){var s=z(i,o),c=s.currencySymbolWithWhitespace,l=s.currencySymbolLocation
nt(a,c=ie(c))
var u=Y(a).start,d=null!=u?u:0
ne(a,d,lt(c,l,d,c))}},e.onCurrencyInput=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.locale,r=void 0===i?"en_US":i,o=n.currencyCode,a=void 0===o?"USD":o,s=n.maxRadixPlaces,c=void 0===s?"":s,l=n.setValue,u=n.beforeSetValue,d=n.afterSetValue,f=et(e.target),p=Ze(f),h=z(r,a),g=h.currencySymbolWithWhitespace,m=h.currencySymbolLocation,v=h.radixMark
g=ie(g)
var y=ft(p,r,a,c),b=$(y,p),E=Z(null!==(t=Y(f).end)&&void 0!==t?t:0,b)
E=lt(g,m,E,y)
var k=ct(y,v)
u&&"function"==typeof u&&u(y,k),l&&"function"==typeof l?l(y,k):nt(f,y),ne(f,y.length,E),d&&"function"==typeof d&&d(y,k)},e.onCurrencyKeyDown=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,i=void 0===n?"en_US":n,r=t.currencyCode,o=void 0===r?"USD":r,a=e.which,s=et(e.target),c=tt(s),l=Y(s),u=l.start,d=l.length,f=null!=u?u:0,p=f,h=z(i,o),g=h.currencySymbolWithWhitespace,m=h.currencySymbolLocation,v=h.delimiter
g=ie(g),v=ie(v),Q(a)&&(p=Z(f,J(a,d,te(v,f,c),ee(v,f,c),v.length))),p=lt(g,m,p,c),d||ne(s,f,p)},e.onNumberInput=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,i=void 0===n?"en_US":n,r=t.maxRadixPlaces,o=void 0===r?"":r,a=t.setValue,s=t.beforeSetValue,c=t.afterSetValue,l=et(e.target),u=Ze(l),d=ct(u,i),f=pt(u,i,o),p=$(f,u),h=Y(l).end,g=Z(null!=h?h:0,p)
d=ct(f,i),s&&"function"==typeof s&&s(f,d),a&&"function"==typeof a?a(f,d):nt(l,f),ne(l,f.length,g),c&&"function"==typeof c&&c(f,d)},e.onNumberKeyDown=function(e,t){var n=t.locale,i=void 0===n?"en_US":n,r=e.which
if(Q(r)){var o=et(e.target),a=Ze(o),s=P(i).delimiter,c=Y(o),l=c.start,u=null!=l?l:0
ne(o,null!=u?u:0,Z(null!=u?u:0,J(r,c.length,te(s,u,a),ee(s,u,a),s.length)))}},e.parseNumber=L,e.removeFormatting=st,e.removeNBSP=ie,e.resetCurrencyFormatter=function(){h=null},e.resetNumberFormatter=function(){g=null},e.toDecimalString=ct,e.trimFractionalNumbers=function(e,t,n,i){return F(e,P(t).radixMark,n,i)},e.trimRadixPlaces=F,Object.defineProperty(e,"__esModule",{value:!0})}(t)},32472:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1)
e.exports=function(e,n){var i=n||0,r=t
return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},28401:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(t){var n=new Uint8Array(16)
e.exports=function(){return t(n),n}}else{var i=new Array(16)
e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255
return i}}},81611:(e,t,n)=>{var i=n(28401),r=n(32472)
e.exports=function(e,t,n){var o=t&&n||0
"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null)
var a=(e=e||{}).random||(e.rng||i)()
if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s]
return t||r(a)}},27186:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{IngestionError:()=>B,MediaIngestionManager:()=>Ge,MultipartFinalizationError:()=>G,RegistrationError:()=>H,containsC2PA:()=>$})
var i=n(81611),r=n.n(i)
const o="VALIDATION",a="REGISTRATION",s="PREPROCESSING",c="UPLOAD",l="FINALIZE",u={QUEUED:"QUEUED",INPROGRESS:"INPROGRESS",CANCELLED:"CANCELLED",FAILED:"FAILED",COMPLETED:"COMPLETED"},d={CONNECTION_TIMEOUT:"CONNECTION_TIMEOUT",FILE_NOT_FOUND:"FILE_NOT_FOUND",FILE_TOO_LONG:"FILE_TOO_LONG",INVALID_FILE_SIZE:"INVALID_FILE_SIZE",NETWORK_LOST:"NETWORK_LOST",SERVER_PROCESSING_ERROR:"SERVER_PROCESSING_ERROR",UNSUPPORTED_FILE_TYPE:"UNSUPPORTED_FILE_TYPE",UNKNOWN:"UNKNOWN"},f="USER_CANCELLED",p="TERMINATED",h="task:update",g="tracking:update",m="upload:progress",v="ingestionstep:tracking:update",y="UploadStatusEvent",b="PREPROCESSING_STARTED",E=36152320,k="MULTIPART_FORMDATA",_="MULTIPART",T="CLIENT",S="CLIENT_REJECTED_INPUT",C="SERVER",w="NETWORK",x="IMAGE_SHARING",I="MICROSOFT_DESIGNER_IMAGE_SHARING",A="VIDEO_SHARING",R="VIDEO_PRIVATE_AUTOCAPTION",O="VIDEO_WITHOUT_AUTOCAPTION",j=new Uint8Array([99,50,112,97,0,17,0,16,128,0,0,170,0,56,155,113]),M=new Uint8Array([100,99,116,101,114,109,115,58,112,114,111,118,101,110,97,110,99,101])
class N extends Error{constructor(e){let t=arguments.length>2?arguments[2]:void 0
super(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f),this.code="AbortError",this.errorPhase=e,this.meta=t,this.httpErrorCode=null,this.errorType=T,this.statusMessage=`${this.code} - Ingestion was cancelled by the user`,this.reason=d.UNKNOWN}}function P(e){let t="UNKNOWN"
return e>=500?t=C:e>=400?t=T:0===e&&(t=w),t}function D(e){switch(P(e)){case C:return"SERVER_ERROR"
case T:return"CLIENT_ERROR"
case w:return"NETWORK_ERROR"
default:return"UNKNOWN"}}function U(e){let t=d.UNKNOWN
return 0===e?t=d.NETWORK_LOST:e>=500&&(t=d.SERVER_PROCESSING_ERROR),t}function L(e){return[d.FILE_NOT_FOUND,d.INVALID_FILE_SIZE].includes(e)}class F extends Error{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5?arguments[5]:void 0
super(e),this.reason=t,this.errorPhase=n,this.meta=a,this.httpErrorCode=i,this.errorType=function(){let{reason:e,phase:t,errorCode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return t===o&&[d.UNSUPPORTED_FILE_TYPE,d.FILE_TOO_LONG].includes(e)?S:e&&L(e)?T:P(n)}({reason:t,phase:n,errorCode:i}),this.statusMessage=`Reason: ${t}, ${r||this.stack}`}}class B extends Error{constructor(e,t,n){super(e),this.details=t,this.originalError=n}}class q extends Error{constructor(e,t,n){super(e),this.statusCode=t,this.stack=function(e){return("string"==typeof e?e:JSON.stringify(e)).trim().substring(0,1e3)}(n||this.stack)}}class H extends q{constructor(e,t,n){super(e,t,n)}}class G extends q{constructor(e,t,n){super(e,t,n)}}function V(e,t,n){var i
return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class K{constructor(){V(this,"_id",r()()),V(this,"_tasks",new Map),V(this,"_taskPromises",[]),V(this,"_progress",0),V(this,"_state",u.QUEUED)}get id(){return this._id}get progress(){return this._progress}get state(){return this._state}getTask(e){return this._tasks.get(e)||null}getTaskList(){return Array.from(this._tasks.values())}getFirstTask(){return this.getTaskList()[0]}addTask(e){this._tasks.has(e.id)||this._tasks.set(e.id,e)}run(){this._state=u.INPROGRESS,this._tasks.forEach((e=>{this._taskPromises.push(e.runTask())}))}isDone(){return Promise.all(this._taskPromises).then((e=>(this._state=u.COMPLETED,e))).catch((e=>{throw this._state=e.originalError instanceof N?u.CANCELLED:u.FAILED,e}))}update(){let e=0
this._tasks.forEach((t=>{e+=t.status.progress})),this._progress=parseFloat((e/this._tasks.size).toFixed(2))}cancel(){this._tasks.forEach((e=>{e.cancel()}))}}var W=n(39705),z=n.n(W)
function X(e){return new Promise((t=>{const n=new FileReader
n.onloadend=e=>t(e.target.result),n.onerror=()=>t(),n.readAsArrayBuffer(e)}))}const Q=e=>e.subarray(0,1e6),Y=e=>e.subarray(-1e6)
function $(e){return X(e).then((e=>{if(!e)return!1
const t=new Uint8Array(e)
return J(Q(t),j)||J(Y(t),j)||J(Q(t),M)||J(Y(t),M)}))}function J(e,t){return function(e,t){let n=0,i=0
const r=e.length,o=t.length
for(;n<r&&i<o;)if(e[n]===t[i]){if(n++,i++,i===o)return!0}else n=n-i+1,i=0
return!1}(e,t)}function Z(e){return e instanceof FormData?e.get("file")||{}:e}var ee=n(37647)
function te(e){return/^video\//.test(e.type)}function ne(e){return/^image\//.test(e.type)}function ie(e,t,n){var i
return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class re{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
ie(this,"_file",void 0),ie(this,"_mediaUploadType",void 0),ie(this,"_error",null),ie(this,"_metadata",{}),ie(this,"_hasC2PA",null),this._featureOptions=t,this._processMedia(e)}get file(){return this._file}get mediaUploadType(){return this._mediaUploadType}get isValid(){return!this._error}get error(){return this._error}get metadata(){return this._metadata}get hasC2PA(){return this._hasC2PA}_processMedia(e){this._updateUploadFileAndMetadata(e),this._updateMediaUploadType(e),this.isValid}_updateUploadFileAndMetadata(e){if(!e.file)return void(this._error=d.FILE_NOT_FOUND)
this._file=e.file
const t=Z(e.file)
null==t||!t.size||t.size<=0?this._error=d.INVALID_FILE_SIZE:this._getFileMetadata(t)}_updateMediaUploadType(e){this._mediaUploadType=e.mediaUploadType}_getFileMetadata(e){const{name:t="",size:n,type:i=""}=e
this._updateMetadata({fileName:t,fileSize:n,fileType:i,videoDuration:null,fileHash:null,hasC2PA:this.hasC2PA})}getFileHash(){return new Promise((e=>{const t=new FileReader
t.onloadend=t=>{crypto.subtle.digest("SHA-256",t.target.result).then((t=>{const n=Array.from(new Uint8Array(t)).map((e=>e.toString(16).padStart(2,"0"))).join("")
this._updateMetadata({fileHash:n}),e()})).catch(e)},t.onerror=()=>e(),t.readAsArrayBuffer(Z(this._file))}))}fetchVideoDuration(){return te(this._file)?(0,ee.getVideoDuration)(this.file).then((e=>this._updateMetadata({videoDuration:e===1/0?null:e}))):Promise.resolve()}_checkForC2PA(){return $(Z(this._file)).then((e=>{this._hasC2PA=e,this._updateMetadata({hasC2PA:e})}))}fetchMetadata(){const e=[this.fetchVideoDuration(),this.getFileHash()]
return this._featureOptions.enableC2PA&&e.push(this._checkForC2PA()),Promise.all(e)}_updateMetadata(e){this._metadata={...this._metadata,...e}}setFileToUpload(e){this._file=e,this._getFileMetadata(e)}}var oe=n(11056)
function ae(e,t,n){var i
return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class se{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
ae(this,"_media",void 0),ae(this,"_uploadParams",void 0),ae(this,"_error",null),this._featureOptions=t,this._processIngestionRequest(e)}get media(){return this._media}get uploadParams(){return this._uploadParams}get isValid(){return!this.error}get error(){return this._error}_processIngestionRequest(e){if("object"!=typeof(t=null==e?void 0:e.media)||null===t||Array.isArray(t))return void(this._error=d.FILE_NOT_FOUND)
var t
const{media:n,uploadParams:i={}}=e,r=new re(n,this._featureOptions)
r.isValid?(this._media=r,this._uploadParams=i):this._error=r.error}fetchMetadata(){return(0,oe.isBrowser)()?this._media.fetchMetadata():Promise.resolve()}}var ce=n(72371)
class le extends W.TinyEmitter{constructor(e,t,n){super(),this._media=e,this._file=e.file,this._mediaUploadType=e.mediaUploadType,this._spec=t,this._trackingData=n}validateImage(){return new Promise(((e,t)=>{const n=this._file.type
if(!ne(this._file)){const e=`Invalid media type for usecase. Media Type ${n}, usecase - ${this._mediaUploadType}`
return t(new F(e,d.UNSUPPORTED_FILE_TYPE,o,null,e))}const i=n.split("image/")[1]
if(!this._spec.supportedFormats.includes(i)){const e=`Unsupported format ${n}. Supported formats - ${this._spec.supportedFormats.join(",")}`
return t(new F(e,d.UNSUPPORTED_FILE_TYPE,o,null,e))}return"image/gif"===this._file.type?this._validateGif().then(e).catch(t):e()}))}_validateGif(){return X(this._file).then((e=>{if(!e)return void this.emit(v,this._trackingData.getIngestionDebugTrackingData(this._media,null,null,"GIF_VALIDATION_SKIPPED. FileReader failed to read the file as array buffer."))
let t
try{t=new ce.N(new Uint8Array(e))}catch(e){this.emit(v,this._trackingData.getIngestionDebugTrackingData(this._media,null,null,`GIF_VALIDATION_SKIPPED. GifReader Error. ${e}`))}if(!t)return
const n=t.numFrames()
if(n>this._spec.maxGifFrameCount){const e=`GIF has ${n} frames. Supported frame count is ${this._spec.maxGifFrameCount}`
throw new F(e,d.FILE_TOO_LONG,o,null,e)}}))}}var ue=n(95707),de=n.n(ue),fe=n(52693)
const pe=["ap4h","ap4x","apch","apcn","apco","apcs"]
class he extends W.TinyEmitter{constructor(e,t){super(),this._media=e,this._file=e.file,this._mediaUploadType=e.mediaUploadType,this._trackingData=t}validateVideo(){return new Promise(((e,t)=>{const n=this._file.type
if(!te(this._file)){const e=`Invalid media type for usecase. Media Type ${n}, usecase - ${this._mediaUploadType}`
return t(new F(e,d.UNSUPPORTED_FILE_TYPE,o,null,e))}const i=n.split("video/")[1]
return"quicktime"!==i&&"mp4"!==i?e():this._validateIsNotProRes().then(e).catch(t)}))}_validateIsNotProRes(){return X(this._file).then((e=>{if(!e)return void this.emit(v,this._trackingData.getIngestionDebugTrackingData(this._media,null,null,"CODEC_VALIDATION_SKIPPED. FileReader failed to read the file as array buffer."))
let t=!1
try{t=!((n=new Uint8Array(e)).length<8||"ftyp"!==de()(n.subarray(4,8))||!(0,fe.tracks)(n).find((e=>pe.includes(e.codec))))}catch(e){return void this.emit(v,this._trackingData.getIngestionDebugTrackingData(this._media,null,null,"PRORES_VALIDATION_SKIPPED. An exception was thrown during box parsing."))}var n
if(t){const e="Apple ProRes is not a supported file type."
throw new F(e,d.UNSUPPORTED_FILE_TYPE,o,null,e)}}))}}class ge extends W.TinyEmitter{constructor(e,t){super(),this._media=e,this._trackingData=t}getProcessingConfigurationForMediaUploadType(e){const{mediaType:t,spec:n={}}={IMAGE_SHARING:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},PUBLISHING_COVER_IMAGE:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},PUBLISHING_INLINE_IMAGE:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},PUBLISHING_SERIES_LOGO:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},PROFILE_ORIGINAL_PHOTO:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},PROFILE_DISPLAY_PHOTO:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},PROFILE_ORIGINAL_BACKGROUND:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},PROFILE_DISPLAY_BACKGROUND:{mediaType:"IMAGE",spec:{"com.linkedin.mediaingestion.ImageSpec":{supportedFormats:["heic","heif","webp","png","jpeg","bmp","tiff","gif"],maxPixels:36152320,maxGifFrameCount:400}}},DOCUMENT_SHARING:{mediaType:"DOCUMENT",spec:{"com.linkedin.mediaingestion.DocumentSpec":{supportedFormats:["pdf","doc","docx","ppt","pptx"],maxFileSize:104857600}}},VIDEO_SHARING:{mediaType:"VIDEO",spec:{"com.linkedin.mediaingestion.VideoSpec":{supportedVideoContainers:["avi","mp4"],supportedVideoCodecs:["h264","hevc"],supportedAudioCodecs:["mp4-latm"],maxDurationInSecs:1800}}},VIDEO_WITHOUT_AUTOCAPTION:{mediaType:"VIDEO",spec:{"com.linkedin.mediaingestion.VideoSpec":{supportedVideoContainers:["avi","mp4"],supportedVideoCodecs:["h264","hevc"],supportedAudioCodecs:["mp4-latm"],maxDurationInSecs:1800}}},VIDEO_SHARING_WITH_CAPTION:{mediaType:"VIDEO",spec:{"com.linkedin.mediaingestion.VideoSpec":{supportedVideoContainers:["avi","mp4"],supportedVideoCodecs:["h264","hevc"],supportedAudioCodecs:["mp4-latm"],maxDurationInSecs:1800}}},VIDEO_PRIVATE_AUTOCAPTION:{mediaType:"VIDEO",spec:{"com.linkedin.mediaingestion.VideoSpec":{supportedVideoContainers:["avi","mp4"],supportedVideoCodecs:["h264","hevc"],supportedAudioCodecs:["mp4-latm"],maxDurationInSecs:1800}}},MESSAGING_VIDEO_ATTACHMENT:{mediaType:"VIDEO",spec:{"com.linkedin.mediaingestion.VideoSpec":{supportedVideoContainers:["avi","mp4"],supportedVideoCodecs:["h264","hevc"],supportedAudioCodecs:["mp4-latm"],maxDurationInSecs:1800}}}}[e]||{}
return{mediaType:t,spec:n[{IMAGE:"com.linkedin.mediaingestion.ImageSpec",DOCUMENT:"com.linkedin.mediaingestion.DocumentSpec",VIDEO:"com.linkedin.mediaingestion.VideoSpec"}[t]]}}validateMedia(){return new Promise(((e,t)=>{var n
const{mediaType:i,spec:r}=this.getProcessingConfigurationForMediaUploadType(null===(n=this._media.mediaUploadType)||void 0===n?void 0:n.toUpperCase())
if(!i||!r)return this.emit(v,this._trackingData.getIngestionDebugTrackingData(this._media,null,null,`MEDIA_VALIDATION_SKIPPED. Media processing configuration does not include ${this._media.mediaUploadType} usecase.`)),e()
if("IMAGE"===i){const n=new le(this._media,r,this._trackingData)
return n.on(v,(e=>{this.emit(v,e)})),n.validateImage().then(e).catch(t)}if("VIDEO"===i){const n=new he(this._media,this._trackingData)
return n.on(v,(e=>{this.emit(v,e)})),n.validateVideo().then(e).catch(t)}return e()}))}}class me{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0
this._ingestionRequest=e,this._featureOptions=t,this._trackingData=n,this._onTrackingUpdateCallback=i}run(e){return e.aborted?Promise.reject(new N(o,e.reason)):this._validateAndDigest(e)}_validateAndDigest(e){return new Promise(((t,n)=>{const i=()=>n(new N(o,e.reason))
e.addEventListener("abort",i)
const r=new se(this._ingestionRequest,this._featureOptions)
if(!r.isValid){const e=r.error
return n(new F("Validation Failed",e,o))}return r.fetchMetadata().then((()=>{const e=new ge(r.media,this._trackingData)
return e.on(v,(e=>this._onTrackingUpdateCallback(e))),e.validateMedia()})).then((()=>{if(!e.aborted)return t(r)})).catch(n).finally((()=>e.removeEventListener("abort",i)))}))}}function ve(e,t,n){var i
return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ye{constructor(){ve(this,"_phase",void 0),ve(this,"_state",u.QUEUED),ve(this,"_phaseProgress",0),ve(this,"_progress",0),ve(this,"_reason",void 0),ve(this,"_validPhases",[o,a,s,c,l]),ve(this,"_validStates",[u.INPROGRESS,u.COMPLETED,u.CANCELLED,u.FAILED])}get phase(){return this._phase}get state(){return this._state}get progress(){return this._progress}get phaseProgress(){return this._phaseProgress}get reason(){return this._reason}updatePhase(e){this._validPhases.includes(e)&&(this._phase=e)}updateState(e){this._validStates.includes(e)&&(this._state=e)}updateReason(e){"string"==typeof e&&(this._reason=e)}_updateProgress(){this._phase===c&&(this._progress=this._phaseProgress)}updatePhaseProgress(e){this._phaseProgress=e,this._updateProgress()}}class be{constructor(e,t,n){this._media=e,this._uploadParams=t,this._ingesterConfig=n}run(e){return e.aborted?Promise.reject(new N(a,e.reason)):this._registerUpload(e)}_registerUpload(e){return new Promise(((t,n)=>{const i=()=>n(new N(a,e.reason))
e.addEventListener("abort",i)
const r=this._ingesterConfig.registerUpload(this._media.file,{mediaUploadType:this._media.mediaUploadType,...this._uploadParams})
return Promise.resolve(r).then(t).catch((e=>{var t
const i=e instanceof H?e.statusCode:null==e||null===(t=e.cause)||void 0===t?void 0:t.status,r=U(i)
return n(new F(e.message,r,a,i,e.stack))})).finally((()=>{e.removeEventListener("abort",i)}))}))}}class Ee extends W.TinyEmitter{constructor(e){super(),this._media=e}run(e){return e.aborted?Promise.reject(new N(s,e.reason)):this._preprocessImage(e)}_preprocessImage(e){const t=this._media.file
return new Promise(((n,i)=>{const r=()=>{i(new N(s,e.reason))}
e.addEventListener("abort",r)
const o=()=>e.removeEventListener("abort",r),a=window.URL.createObjectURL(t),c=document.createElement("img")
c.onload=i=>{if(e.aborted)return void o()
const{naturalHeight:r,naturalWidth:s}=i.target
if(r*s<=E)return o(),window.URL.revokeObjectURL(a),n()
this.emit(v,{uploadState:b})
const{width:c,height:l}=this._getImageDimensionsToResize(s,r)
return this._resizeImage(i.target,c,l,t).then((e=>(o(),this._media.setFileToUpload(e),window.URL.revokeObjectURL(a),n())))},c.onerror=()=>(o(),n()),c.src=a}))}_getImageDimensionsToResize(e,t){const n=Math.sqrt(E/(e*t)),i=Math.floor(1e3*n)/1e3
return{height:Math.floor(t*i),width:Math.floor(e*i)}}_resizeImage(e,t,n,i){return new Promise((r=>{const o=document.createElement("canvas")
o.width=t,o.height=n,o.getContext("2d").drawImage(e,0,0,o.width,o.height),o.toBlob((e=>(e.name=i.name,r(e))),i.type)}))}}class ke{constructor(e,t){this._media=e,this._onTrackingUpdateCallback=t}run(e){return e.aborted?Promise.reject(new N(s,e.reason)):ne(this._media.file)&&(0,oe.isBrowser)()&&!this._media.hasC2PA?(this._imagePreprocessor=new Ee(this._media),this._imagePreprocessor.on(v,(e=>this._onTrackingUpdateCallback(e))),this._imagePreprocessor.run(e)):Promise.resolve()}}function _e(e,t){let n=""
return t&&(n+=`[Headers]: ${t}`),e&&(n+=`${n.length?"\n":""}[Response Text]: ${e}`),n}function Te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
const n=t.find((t=>t.url===e))||{}
return{partUploadId:e,firstByteOffset:"number"==typeof n.firstByte?n.firstByte:null,lastByteOffset:"number"==typeof n.lastByte?n.lastByte:null}}function Se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map
const n=t.get(e)||{}
return n.loaded||0}function Ce(e){switch(e){case p:return"TERMINATED"
case f:return"USER_CANCELLED"
default:return null}}const we=e=>{const{fileName:t,fileSize:n,fileType:i,fileHash:r,hasC2PA:o}=e.metadata
return{fileName:t,size:n,contentType:i,fileHash:r,containsC2PAManifest:o}}
class xe{constructor(){this._sessionId=r()(),this._ingestionStartTime=performance.now()}_buildUploadStatusEvent(e){let{digitalMediaArtifactUrn:t=null,mediaFileInfo:n,useCase:i="UNKNOWN",uploadMechanism:r=null,uploadState:o,errorDetails:a,videoDuration:s=null,statusMessage:c,mediaUrn:l}=e
const u={digitalMediaArtifactUrn:t,durationSinceUploadStarted:Math.round(performance.now()-this._ingestionStartTime),mediaFileInfo:n,mediaContentCreationSessionTrackingObject:{sessionTrackingId:this._sessionId,useCase:i},uploadMechanism:r,uploadSessionTrackingId:this._sessionId,uploadState:o,videoDuration:s}
if(c&&(u.statusMessage=c),l&&(u.assetId=l.split("urn:li:digitalmediaAsset:")[1]),a){const{errorPhase:e,errorType:t,httpErrorCode:n}=a
u.errorPhase=e,u.errorType=t,u.httpErrorCode=n}return u}getIngestionStartedTrackingData(e,t){return{name:y,body:this._buildUploadStatusEvent({mediaFileInfo:e,useCase:t,uploadState:"STARTED"})}}getIngestionCompleteTrackingData(e,t,n,i){return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:we(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"COMPLETED",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getIngestionRefreshedTrackingData(e,t){return{name:y,body:this._buildUploadStatusEvent({mediaFileInfo:e,useCase:t,uploadState:"REFRESHED"})}}getRegistrationStartedTrackingData(e){return{name:y,body:this._buildUploadStatusEvent({mediaFileInfo:we(e),useCase:e.mediaUploadType,uploadState:"REGISTRATION_STARTED",videoDuration:e.metadata.videoDuration})}}getRegistrationCompletedTrackingData(e,t,n,i){return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:we(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"REGISTRATION_COMPLETED",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getPreprocessingStartedTrackingData(e,t,n,i){return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:we(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:b,uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getUploadStartedTrackingData(e,t,n,i){return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:we(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"FILE_UPLOAD_STARTED",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getUploadCancelledTrackingData(e,t,n,i,r,o){var a
return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:null!=e&&e.metadata?{fileName:e.metadata.fileName,size:e.metadata.fileSize,contentType:e.metadata.fileType,fileHash:e.metadata.fileHash,containsC2PAManifest:e.metadata.hasC2PA}:null,mediaUrn:o,useCase:null==e?void 0:e.mediaUploadType,uploadState:"CANCELLED",uploadMechanism:n,errorDetails:i,videoDuration:null==e||null===(a=e.metadata)||void 0===a?void 0:a.videoDuration,statusMessage:r})}}getUploadFailedTrackingData(e,t,n,i,r,o){var a
return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:null!=e&&e.metadata?{fileName:e.metadata.fileName,size:e.metadata.fileSize,contentType:e.metadata.fileType,fileHash:e.metadata.fileHash,containsC2PAManifest:e.metadata.hasC2PA}:null,mediaUrn:o,useCase:null==e?void 0:e.mediaUploadType,uploadState:"FAILED",uploadMechanism:n,errorDetails:i,videoDuration:null==e||null===(a=e.metadata)||void 0===a?void 0:a.videoDuration,statusMessage:r})}}getIngestionInProgressTrackingData(e,t,n,i){return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:we(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"IN_PROGRESS",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getIngestionDebugTrackingData(e,t,n,i){return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:we(e),useCase:e.mediaUploadType,uploadState:"UNKNOWN",uploadMechanism:n,videoDuration:e.metadata.videoDuration,statusMessage:i})}}getUploadRetryTrackingData(e,t,n,i){return{name:y,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:we(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"RETRY",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getPartUploadFailedTrackingData(e,t,n,i,r){const{xhr:o}=e,{responseText:a,status:s}=o,c=o.getAllResponseHeaders()
return{name:"PartUploadFailureEvent",body:{bytesTransferred:Se(e.id,r),digitalMediaArtifactUrn:t,errorType:Ce(e.abortReason)??D(s),partUploadMetadata:Te(e.url,i),responseBody:_e(a,c),statusCode:s,uploadDuration:Math.round(performance.now()-o.partUploadStartTime),uploadMechanism:n,uploadSessionTrackingId:this._sessionId}}}getPartUploadSuccessTrackingData(e,t,n,i){const{xhr:r}=e
return{name:"PartUploadCompletedEvent",body:{digitalMediaArtifactUrn:t,partUploadMetadata:Te(e.url,i),uploadDuration:Math.round(performance.now()-r.partUploadStartTime),uploadMechanism:n,uploadSessionTrackingId:this._sessionId,numberOfRetries:e.attempts-1}}}}function Ie(e){var t
return null==e||null===(t=e.media)||void 0===t?void 0:t.mediaUploadType}function Ae(e){var t
const n=null==e||null===(t=e.media)||void 0===t?void 0:t.file
return n instanceof FormData?n.get("file")||{}:n}class Re{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;(function(e,t,n){var i;(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"_id",r()()),this._method=e,this._url=t,this._body=n,this._headers=i,this._attempts=0,this._aborted=!1,this._abortReason=null,this._beforeSend=o}get id(){return this._id}get attempts(){return this._attempts}get xhr(){return this._xhr}get url(){return this._url}get isAborted(){return this._aborted}get abortReason(){return this._abortReason}setProgressHandler(e){this._progressHandler=e}abort(e){this._xhr&&(this._abortReason=e,this._aborted=!0,this._xhr.abort())}send(){if(this._attempts++,this._xhr&&4!==this._xhr.readyState){const{status:e,responseText:t}=this._xhr
return Promise.reject(new Error("[Request] Invalid attempt to send request",{cause:{status:e,responseText:t}}))}return this._xhr=new XMLHttpRequest,new Promise(((e,t)=>{var n,i,r
this._xhr.open(this._method,this._url),this._xhr.onload=()=>{const{status:n,responseText:i}=this._xhr
n>=200&&n<300||304===n?e(i):t(new Error(`[Request] server responded with status ${n}`,{cause:{status:n,responseText:i}}))},this._xhr.onerror=()=>{const{status:e,responseText:n}=this._xhr
t(new Error("[Request] a network error occurred",{cause:{status:e,responseText:n}}))},this._xhr.onabort=()=>{const{status:e,responseText:n}=this._xhr
t(new Error("[Request] the request was aborted",{cause:{status:e,responseText:n,isAborted:!0}}))},n=this._xhr,i=this._headers,Object.keys(i).forEach((e=>{n.setRequestHeader(e,i[e])})),this._xhr.upload.onprogress=e=>{var t
return null===(t=this._progressHandler)||void 0===t?void 0:t.call(this,e)},this.isAborted||(null===(r=this._beforeSend)||void 0===r||r.call(this,this._xhr),this._xhr.send(this._body))}))}}const Oe=r()()
class je extends(z()){constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}
super(),this._uploadClient=e,this._ingesterConfig=t,this._trackingData=n,this._pendingRequests=new Set,this._results=[],this._uploadProgressMap=new Map,this._initialFailedRequest=null,this._initialExponentialDelay=5,this._backOffFactor=2,this._isExponentialRetryEnabled=i.enableExponentialRetry}run(e){if(e.aborted)return Promise.reject(new N(c,e.reason,{uploadResult:this._results}))
e.addEventListener("abort",(()=>this.abort(e.reason)))
const{media:t,metadata:{mediaArtifactUrn:n,type:i,urn:r}}=this._uploadClient
this.emit(v,this._trackingData.getIngestionInProgressTrackingData(t,n,i,r))
let o=this._uploadClient.totalPartsToUpload
for(;o--;)this._tryNextPartUploadRequest()
return new Promise(((t,n)=>{this.on(Oe,(i=>{return i?e.aborted?n(new N(c,e.reason,{uploadResult:this._results})):n(new F("UPLOAD_FAILED",0===(r=this._initialFailedRequest.statusCode)?d.NETWORK_LOST:r>=400?d.SERVER_PROCESSING_ERROR:d.UNKNOWN,c,this._initialFailedRequest.statusCode,this._initialFailedRequest.statusMessage,{uploadResult:this._results})):t(this._results)
var r}))}))}_tryNextPartUploadRequest(){return this._getNextUploadRequest().then((e=>{if(e)return this._results.push(e),this._pendingRequests.add(e),this._handleUploadRequest(e)
this._pendingRequests.size||this.emit(Oe)}))}_getNextUploadRequest(){return this._uploadClient.getNextPart().then((e=>{const{uploadUrl:t,fragment:n}=e,{blob:i,meta:r}=n,o=new Re("PUT",t,i,function(e,t){if(t!==k)return e
const n={...e}
return delete n["content-type"],delete n["Content-Type"],n}(r.headers,this._uploadClient.uploadMechanism),(e=>{e.partUploadStartTime=performance.now()}))
return this._uploadProgressMap.set(o.id,{loaded:0,total:i.size}),o.setProgressHandler((e=>{let{loaded:t,total:n}=e
if(t/n==1){const{media:e,metadata:{mediaArtifactUrn:t,type:n,urn:i}}=this._uploadClient
this.emit(v,this._trackingData.getIngestionInProgressTrackingData(e,t,n,i))}this._uploadProgressMap.set(o.id,{loaded:t,total:n})
let i=0
this._uploadProgressMap.forEach((e=>{i+=e.loaded/e.total})),this.emit(m,parseFloat((i/this._uploadProgressMap.size).toFixed(2)))})),o}),(()=>{}))}_handleUploadRequest(e){return e.send().then(this._handleUploadSuccess.bind(this,e),this._handleUploadFailure.bind(this,e))}_handleUploadSuccess(e){const{metadata:{mediaArtifactUrn:t,type:n},uploadRequests:i}=this._uploadClient
this.emit(v,this._trackingData.getPartUploadSuccessTrackingData(e,t,n,i)),this._pendingRequests.delete(e),this._tryNextPartUploadRequest()}_handleUploadFailure(e,t){const{metadata:{mediaArtifactUrn:n,type:i},uploadRequests:r}=this._uploadClient
if(this.emit(v,this._trackingData.getPartUploadFailedTrackingData(e,n,i,r,this._uploadProgressMap)),t.cause.isAborted)return
const o=4===Math.floor(e.xhr.status/100)
if(o||e.attempts>this._ingesterConfig.maxRetryAttempts)this._initialFailedRequest||(this._initialFailedRequest={statusCode:e.xhr.status,statusMessage:JSON.stringify({error:t.toString(),is4xx:o,numberOfRetries:e.attempts,maxRetriesPerPart:this._ingesterConfig.maxRetryAttempts})}),this.abort(p)
else{const{media:t,metadata:{mediaArtifactUrn:n,type:i,urn:r}}=this._uploadClient
if(this.emit(v,this._trackingData.getUploadRetryTrackingData(t,n,i,r)),this._isExponentialRetryEnabled){const t=this._initialExponentialDelay*Math.pow(this._backOffFactor,e.attempts-1)
return void setTimeout((()=>{this._handleUploadRequest(e)}),1e3*t)}this._handleUploadRequest(e)}}abort(e){this._pendingRequests.forEach((t=>t.abort(e))),this._pendingRequests.clear(),this.emit(Oe,!0)}}class Me{constructor(e,t){this._blob=e,this._meta=t}get blob(){return this._blob}get meta(){return this._meta}}class Ne{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
this._metadata=e,this._headers=n,this._media=t,this._type=this._metadata.type,this._index=-1,this._uploadRequests=[],this._generatePartUploadRequests()}get totalPartsToUpload(){return this._metadata.partUploadRequests?this._metadata.partUploadRequests.length:1}get uploadMechanism(){return this._type}get isDynamicUpload(){return"DYNAMIC"===this._type}get media(){return this._media}get metadata(){return this._metadata}get uploadRequests(){return this._uploadRequests}_generatePartUploadRequests(){switch(this._type){case"SINGLE":case k:this._uploadRequests.push({url:this._metadata.singleUploadUrl,headers:{...this._metadata.singleUploadHeaders,...this._headers},firstByte:0,lastByte:Z(this._media.file).size-1})
break
case _:this._metadata.partUploadRequests.forEach((e=>{this._uploadRequests.push({url:e.uploadUrl,headers:{...e.headers,...this._headers},firstByte:e.firstByte,lastByte:e.lastByte})}))}}getNextPart(){return new Promise(((e,t)=>{this._index++
const n=this._uploadRequests[this._index]
if(!n)return t()
const i=this.uploadMechanism!==_?this._media.file:this._media.file.slice(n.firstByte,n.lastByte+1,this._media.file.type)
return e({uploadUrl:n.url,fragment:new Me(i,n)})}))}}function Pe(e,t,n){let{phase:i,state:r,reason:o,progress:a}=t
i&&e.updatePhase(i),r&&e.updateState(r),o&&e.updateReason(o),"number"==typeof a&&e.updatePhaseProgress(a),"function"==typeof n&&n()}class De{constructor(e,t,n){this._ingesterConfig=e,this._uploadResult=t,this._registrationResult=n}run(e){return e.aborted?Promise.reject(new N(l,e.reason)):this._finalizeMultipartUpload(e)}_finalizeMultipartUpload(e){return new Promise(((t,n)=>{const i=()=>n(new N(l,e.reason))
e.addEventListener("abort",i)
const r=this._ingesterConfig.finalizeMultipartUpload(this._uploadResult,this._registrationResult)
return Promise.resolve(r).then(t).catch((e=>{var t
const i=e instanceof G?e.statusCode:null==e||null===(t=e.cause)||void 0===t?void 0:t.status,r=U(i)
return n(new F(e.message,r,l,i,e.stack))})).finally((()=>{e.removeEventListener("abort",i)}))}))}}class Ue{constructor(e,t,n,i,r,o,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{}
this._media=e,this._registrationResult=t,this._ingesterConfig=n,this._taskStatus=i,this._trackingData=r,this._onUpdateCallback=o,this._onTrackingUpdateCallback=a,this._featureOptions=s}_updateStatus(e){let{phase:t,state:n,progress:i,reason:r}=e
Pe(this._taskStatus,{phase:t,state:n,progress:i,reason:r},this._onUpdateCallback.bind(this))}run(e){var t
if(e.aborted)return this._updateStatus({phase:c,state:u.CANCELLED,progress:0}),Promise.reject(new N(c,e.reason))
const n=new Ne(this._registrationResult,this._media,null===(t=this._ingesterConfig)||void 0===t?void 0:t.headers)
if(n.isDynamicUpload){this._updateStatus({phase:c,reason:d.UNKNOWN,state:u.FAILED})
const e=`Unsupported upload mechanism ${n.uploadMechanism}`
return Promise.reject(new F(e,d.UNKNOWN,c,null,e))}return this._uploadWithSimpleUploader(e,n)}_uploadWithSimpleUploader(e,t){return Promise.resolve().then((()=>this._updateStatus({phase:c,state:u.INPROGRESS,progress:0}))).then((()=>{const n=new je(t,this._ingesterConfig,this._trackingData,this._featureOptions)
return n.on(v,(e=>this._onTrackingUpdateCallback(e))),n.on(m,(e=>this._updateStatus({progress:e}))),n.run(e).then((n=>this._handleSimpleUploadSuccess(n,t,e))).catch((e=>this._handleSimpleUploadFailure(e)))}))}_handleSimpleUploadSuccess(e,t,n){if(t.uploadMechanism===_)return new De(this._ingesterConfig,e,this._registrationResult).run(n).then((()=>{this._updateStatus({state:u.COMPLETED,progress:1})}))
this._updateStatus({state:u.COMPLETED,progress:1})}_handleSimpleUploadFailure(e){return this._updateStatus({reason:e.reason,state:u.FAILED}),Promise.reject(e)}}class Le{constructor(e){(function(e,t,n){var i;(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"_clientSensor",void 0),this._clientSensor=function(){var e
let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return"function"==typeof(null===(e=t.clientSensor)||void 0===e?void 0:e.incrementMetricCounter)&&t.clientSensor||null}(e)}_incrementCounter(e){var t
null===(t=this._clientSensor)||void 0===t||t.incrementMetricCounter({groupName:"media-infra",metricName:e})}incrementUploadStartCounter(e){switch(e){case x:case I:this._incrementCounter("feed-image-upload-start")
break
case A:case R:case O:this._incrementCounter("feed-video-upload-start")}}incrementUploadSuccessCounter(e){switch(e){case x:case I:this._incrementCounter("feed-image-upload-success")
break
case A:case R:case O:this._incrementCounter("feed-video-upload-success")}}incrementUploadFailureCounter(e){switch(e){case x:case I:this._incrementCounter("feed-image-upload-failure")
break
case A:case R:case O:this._incrementCounter("feed-video-upload-failure")}}}function Fe(e,t,n){var i
return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Be extends(z()){constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
super(),Fe(this,"_id",r()()),Fe(this,"_status",new ye),Fe(this,"_abortController",new AbortController),Fe(this,"_abortSignal",this._abortController.signal),this._ingestionRequest=e,this._ingesterConfig=t,this._featureOptions=n,this._clientSensor=new Le(t),this._trackingData=new xe}get id(){return this._id}get status(){return this._status}get mediaUrn(){return this._mediaUrn}get mediaRecipes(){return this._mediaRecipes}get media(){return this._ingestionRequest.media}isDone(){return[u.CANCELLED,u.FAILED,u.COMPLETED].includes(this._status._state)}_buildStepWithAbort(e){return e.bind(this,this._abortSignal,this._onTaskUpdate.bind(this))}_onTaskUpdate(){this.emit(h)}_onMediaUrnAvailable(){this._onTaskUpdate()}_sendTrackingUpdate(e){this.emit(g,e)}runTask(){var e
const t=function(e){const t=Ae(e)
return t?{fileName:t.name||"",size:t.size,contentType:t.type||""}:null}(this._ingestionRequest),n=Ie(this._ingestionRequest)
return null!==(e=this._ingestionRequest.uploadParams)&&void 0!==e&&e.isRetry&&this._sendTrackingUpdate(this._trackingData.getIngestionRefreshedTrackingData(t,n)),this._sendTrackingUpdate(this._trackingData.getIngestionStartedTrackingData(t,n)),this._clientSensor.incrementUploadStartCounter(n),Promise.resolve().then(this._buildStepWithAbort(this._validateAndDigestStep)).then(this._buildStepWithAbort(this._mediaRegistrationStep)).then(this._buildStepWithAbort(this._mediaPreprocessingStep)).then(this._buildStepWithAbort(this._mediaUploadStep)).then(this._completeIngestion.bind(this)).catch(this._handleIngestionTaskFailure.bind(this))}_validateAndDigestStep(e){return new me(this._ingestionRequest,this._featureOptions,this._trackingData,this._sendTrackingUpdate.bind(this)).run(e).then((e=>{this._media=e.media,this._uploadParams=e.uploadParams}))}_mediaRegistrationStep(e){return this._sendTrackingUpdate(this._trackingData.getRegistrationStartedTrackingData(this._media)),new be(this._media,this._uploadParams,this._ingesterConfig).run(e).then((e=>{var t,n
const{urn:i,recipes:r}=e
this._registrationResult=e,this._mediaUrn=i,this._sendTrackingUpdate(this._trackingData.getRegistrationCompletedTrackingData(this._media,null===(t=this._registrationResult)||void 0===t?void 0:t.mediaArtifactUrn,null===(n=this._registrationResult)||void 0===n?void 0:n.type,this._mediaUrn)),this._mediaRecipes=r,this._onMediaUrnAvailable()}))}_mediaPreprocessingStep(e){return new ke(this._media,(e=>{(null==e?void 0:e.uploadState)===b&&this._sendTrackingUpdate(this._trackingData.getPreprocessingStartedTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type,this._mediaUrn))}).bind(this)).run(e)}_mediaUploadStep(e,t){return this._sendTrackingUpdate(this._trackingData.getUploadStartedTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type,this._mediaUrn)),new Ue(this._media,this._registrationResult,this._ingesterConfig,this._status,this._trackingData,t,this._sendTrackingUpdate.bind(this),this._featureOptions).run(e)}_completeIngestion(){Pe(this._status,{state:u.COMPLETED,progress:1},this._onTaskUpdate.bind(this)),this._sendTrackingUpdate(this._trackingData.getIngestionCompleteTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type,this._mediaUrn)),this._clientSensor.incrementUploadSuccessCounter(this._media.mediaUploadType)}_handleIngestionTaskFailure(e){var t,n
const{errorPhase:i,errorType:r,httpErrorCode:o,reason:a,statusMessage:s}=e,c=e instanceof N,l=c?u.CANCELLED:u.FAILED
var d
c||this._clientSensor.incrementUploadFailureCounter((null===(d=this._media)||void 0===d?void 0:d.mediaUploadType)||Ie(this._ingestionRequest)),Pe(this._status,{phase:i,reason:a,state:l},this._onTaskUpdate.bind(this))
const f=c?"getUploadCancelledTrackingData":"getUploadFailedTrackingData"
throw this._sendTrackingUpdate(this._trackingData[f](this._media||function(e){const t=Ae(e)
return{metadata:{fileName:(null==t?void 0:t.name)||"",fileSize:"number"==typeof(null==t?void 0:t.size)?t.size:-1,fileType:(null==t?void 0:t.type)||"",fileHash:null,videoDuration:null},mediaUploadType:Ie(e)}}(this._ingestionRequest),null===(t=this._registrationResult)||void 0===t?void 0:t.mediaArtifactUrn,null===(n=this._registrationResult)||void 0===n?void 0:n.type,{errorPhase:i,errorType:r,httpErrorCode:o},s,this._mediaUrn)),new B("INGESTION FAILED",{reason:a,isCancelled:c},e)}cancel(){this._abortController.abort(f)}}class qe{constructor(e){this._ingestionListener=e}updateIngestionProgress(e){var t,n
null===(t=this._ingestionListener)||void 0===t||null===(n=t.onProgress)||void 0===n||n.call(t,e)}updateTracking(e){var t,n
null===(t=this._ingestionListener)||void 0===t||null===(n=t.onTracking)||void 0===n||n.call(t,e)}}function He(e,t,n){var i
return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ge{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
He(this,"_ingesterJobMap",new Map),He(this,"_ingesterConfig",{maxRetryAttempts:10}),He(this,"_featureOptions",{}),this._ingesterConfig={...e,...this._ingesterConfig},this._featureOptions=t,this._featureOptions.enableExponentialRetry&&(this._ingesterConfig.maxRetryAttempts=3)}ingest(e,t){var n
if(n=e,!function(e){return e.map((e=>e.media??e)).every((e=>{return function(e){return"string"==typeof e}(t=null==e?void 0:e.mediaUploadType)&&t.length
var t}))}(e=Array.isArray(n)&&n.length>0?e:[e]))throw TypeError("Invalid mediaUploadType")
const i=new qe(t),r=new K
return e.forEach((e=>{const t=new Be(e,this._ingesterConfig,this._featureOptions)
!function(e,t,n){e.on(h,(()=>{t.update(),n.updateIngestionProgress(t)})),e.on(g,(e=>{n.updateTracking(e)}))}(t,r,i),r.addTask(t)})),this._ingesterJobMap.set(r.id,r),r.run(),r}cancel(e){const t=this._ingesterJobMap.get(e)
t&&(t.cancel(),this._ingesterJobMap.delete(e))}cancelAll(){this._ingesterJobMap.forEach((e=>e.cancel())),this._ingesterJobMap.clear()}}},37647:e=>{e.exports={getVideoDuration:function(e){return new Promise((t=>{const n=document.createElement("video")
n.preload="metadata",n.addEventListener("loadedmetadata",(()=>t(Math.round(1e3*n.duration)))),n.addEventListener("error",(()=>t(null))),n.src=window.URL.createObjectURL(e)}))}}},11056:e=>{e.exports={isBrowser:function(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}}},51510:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{ConversationsIterable:()=>St,MDError:()=>Le,Mailbox:()=>fd,MailboxConnection:()=>hd,MailboxConnectionPool:()=>pd,NERFED_PERF:()=>dd,apiErrors:()=>Re,clearStateForTesting:()=>pt,clientErrors:()=>Oe,connectToMailbox:()=>gd,connectToMailboxes:()=>md,conversationStateIdentifierIs:()=>We,conversationStateUrnIs:()=>Ve,getCommonTimeClient:()=>i.getClient,getConvoStateFromMessageUrn:()=>fe,graphQlErrors:()=>je,hasMessageData:()=>Qe,isAString:()=>_e,isClientId:()=>ae,isCommonTimeAPIError:()=>De,isContentUpdateMode:()=>ve,isConversationCategory:()=>Te,isConversationUrn:()=>ce,isConvoActivationOption:()=>me,isDraftConversationUpdateObj:()=>ke,isDraftConversationUrn:()=>se,isError:()=>Ne,isErrorWithStatusCode:()=>Ue,isForwardedMessageContent:()=>be,isHandleUpdateDraftMessageBaseObjWithConvoIdentifier:()=>ee,isHandleUpdateDraftMessageBaseObjWithHostRecipientUrns:()=>te,isIdentifier:()=>ue,isInputMailboxFilter:()=>Ie,isMDError:()=>Pe,isMailboxCategoryFilter:()=>xe,isMailboxCategoryFilterWithQuery:()=>ne,isMarkConvoReadTypes:()=>ge,isMemberParticipant:()=>de,isMessageDraftWithConversation:()=>J,isMessageDraftWithConversationDraft:()=>Z,isNextFunction:()=>pe,isOptionalSendData:()=>Ce,isSavedExistingConvoState:()=>re,isSelectorFilterOption:()=>Se,isServerConvoState:()=>ie,isServerDraftConvoState:()=>oe,isSubscriber:()=>he,isTextFragment:()=>Ee,isTrackingData:()=>we,isUrn:()=>le,isUrnUpdateMap:()=>ye,messageStateClientIdIs:()=>Xe,optionalErrorData:()=>Ae,realtimeErrors:()=>Me})
var i=n(75023)
function r(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e)
t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?r(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(){a=function(){return e}
var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag"
function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new w(r||[])
return i(a,"_invoke",{value:_(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u
var f={}
function p(){}function h(){}function g(){}var m={}
l(m,o,(function(){return this}))
var v=Object.getPrototypeOf,y=v&&v(v(x([])))
y&&y!==t&&n.call(y,o)&&(m=y)
var b=g.prototype=p.prototype=Object.create(m)
function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(i,o,a,s){var c=d(e[i],e,o)
if("throw"!==c.type){var l=c.arg,u=l.value
return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o
i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function _(e,t,n){var i="suspendedStart"
return function(r,o){if("executing"===i)throw new Error("Generator is already running")
if("completed"===i){if("throw"===r)throw o
return{value:void 0,done:!0}}for(n.method=r,n.arg=o;;){var a=n.delegate
if(a){var s=T(a,n)
if(s){if(s===f)continue
return s}}if("next"===n.method)n.sent=n._sent=n.arg
else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg
n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg)
i="executing"
var c=d(e,t,n)
if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===f)continue
return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,i=e.iterator[n]
if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f
var r=d(i,e.iterator,t.arg)
if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f
var o=r.arg
return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]}
1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[o]
if(t)return t.call(e)
if("function"==typeof e.next)return e
if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t
return t.value=void 0,t.done=!0,t}
return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return h.prototype=g,i(b,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:h,configurable:!0}),h.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor
return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,c,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise)
var a=new k(u(t,n,i,r),o)
return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(b),l(b,c,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[]
for(var i in t)n.push(i)
return n.reverse(),function e(){for(;n.length;){var i=n.pop()
if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=x,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0
var e=this.tryEntries[0].completion
if("throw"===e.type)throw e.arg
return this.rval},dispatchException:function(e){if(this.done)throw e
var t=this
function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion
if("root"===o.tryLoc)return i("end")
if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc")
if(s&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)
if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally")
if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i]
if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r
break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null)
var a=o?o.completion:{}
return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg
return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t]
if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t]
if(n.tryLoc===e){var i=n.completion
if("throw"===i.type){var r=i.arg
C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,r)}function l(e){return function(){var t=this,n=arguments
return new Promise((function(i,r){var o=e.apply(t,n)
function a(e){c(o,i,r,a,s,"next",e)}function s(e){c(o,i,r,a,s,"throw",e)}a(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,C(i.key),i)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function v(e,t,n){return v=m()?Reflect.construct.bind():function(e,t,n){var i=[null]
i.push.apply(i,t)
var r=new(Function.bind.apply(e,i))
return n&&g(r,n.prototype),r},v.apply(null,arguments)}function y(e){var t="function"==typeof Map?new Map:void 0
return y=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e
if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function")
if(void 0!==t){if(t.has(e))return t.get(e)
t.set(e,n)}function n(){return v(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},y(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o,a,s=[],c=!0,l=!1
try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"==typeof e)return T(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=_(e))||t&&e&&"number"==typeof e.length){n&&(e=n)
var i=0,r=function(){}
return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function C(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}const w=e=>t=>!1===e.includes(t),x=(e,t)=>n=>n.map(((n,i)=>e(n,i)?t(n):n)),I=(e,t)=>n=>{let i=!1
return n.map(((n,r)=>!i&&e(n,r)?(i=!0,t(n)):n))},A=e=>t=>t.reduce(((t,n)=>(e(n)?t[0].push(n):t[1].push(n),[t[0],t[1]])),[[],[]]),R=e=>Object.keys(e),O=e=>null!=e,j=e=>null==e,M=e=>t=>{const{[e]:n,...i}=t
return void 0===n?t:i},N=e=>Object.values(e)
var P,D=function(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment},U=function(e){return Object.fromEntries(e)},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
return t&&0!==t.length?[].concat(k(e),k(t.filter(w(e)))):e},F=function(e){return!e},B=function(e){return Object.entries(e)},q=function(e,t,n){var i=new Map(e)
return i.set(t,n),i},H=function(e,t){var n=new Map(e)
return n.delete(t)?n:e},G=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},K=function(e,t){if(e.has(t))return e
var n=new Set(e)
return Object.freeze(n.add(t))},W=function(e,t){var n=new Set(e)
return n.delete(t)?Object.freeze(n):e},z=function(e){return"object"===s(e)&&null!==e},X=function(e){return"number"==typeof e},Q=function(e){return"string"==typeof e},Y=function(e,t){return e.every(t)},$=function(e,t){return t.substring(Math.max(t.length-e,0))},J=function(e){return!!e.conversation&&!e.conversationDraft},Z=function(e){return!!e.conversationDraft&&!e.conversation},ee=function(e){return"convoIdentifier"in e},te=function(e){return"hostRecipientUrns"in e},ne=function(e){return void 0!==e.query},ie=function(e){return"entityUrn"in e&&void 0!==e.entityUrn},re=function(e){var t=e.entityUrn
return void 0!==t&&!se(t)},oe=function(e){var t=e.entityUrn
return void 0!==t&&se(t)},ae=function(e){return Q(e)&&/^[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+$/.test(e)},se=function(e){return/^urn:li:msg_conversationDraft:.*$/.test(e)},ce=function(e){return/^urn:li:msg_conversation:.*$/.test(e)},le=function(e){return Q(e)&&e.startsWith("urn:")},ue=function(e){return le(e)||Q(e)&&ae(e)},de=function(e){return"MEMBER"===e.kind},fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState"
return e.find((function(e){return void 0!==e.messages.getByIdentifier(t)}),n)}
function pe(e){return"function"==typeof e}function he(e){var t=e
return!((null===t||"object"!==s(t))&&"function"!=typeof t||"function"!=typeof t.next||void 0!==t.error&&"function"!=typeof t.error||void 0!==t.complete&&"function"!=typeof t.complete)}function ge(e){return"MARK_READ"===e||"MARK_UNREAD"===e||"NO_CHANGE"===e}function me(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&ge(t.markConvoReadTypes)&&("FALLBACK_SYNC"===t.setConvoActiveSyncOption||"ALWAYS_SYNC"===t.setConvoActiveSyncOption)}function ve(e){return"ADD"===e||"REPLACE"===e}function ye(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&Object.entries(t).every((function(e){var t=E(e,2),n=t[0]
return"boolean"==typeof t[1]&&"string"==typeof n}))}function be(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&Ee(t.forwardedBody)&&Ee(t.footerText)&&(null!==t&&"object"===s(t)||"function"==typeof t)&&"number"==typeof t.originalSendAt&&_e(t.originalSenderUrn)}function Ee(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&_e(t.text)&&Array.isArray(t.attributes)&&t.attributes.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.start&&"number"==typeof e.length&&(void 0===e.attributeKind||null===e.attributeKind||(null!==e.attributeKind&&"object"===s(e.attributeKind)||"function"==typeof e.attributeKind)&&(void 0===e.attributeKind.bold||null===e.attributeKind.bold||(null!==e.attributeKind.bold&&"object"===s(e.attributeKind.bold)||"function"==typeof e.attributeKind.bold)&&"pemberly_text_Bold"===e.attributeKind.bold.__typename)&&(void 0===e.attributeKind.italic||null===e.attributeKind.italic||(null!==e.attributeKind.italic&&"object"===s(e.attributeKind.italic)||"function"==typeof e.attributeKind.italic)&&"pemberly_text_Italic"===e.attributeKind.italic.__typename)&&(void 0===e.attributeKind.hyperlink||null===e.attributeKind.hyperlink||(null!==e.attributeKind.hyperlink&&"object"===s(e.attributeKind.hyperlink)||"function"==typeof e.attributeKind.hyperlink)&&"pemberly_text_Hyperlink"===e.attributeKind.hyperlink.__typename&&_e(e.attributeKind.hyperlink.url))&&(void 0===e.attributeKind.paragraph||null===e.attributeKind.paragraph||(null!==e.attributeKind.paragraph&&"object"===s(e.attributeKind.paragraph)||"function"==typeof e.attributeKind.paragraph)&&"pemberly_text_Paragraph"===e.attributeKind.paragraph.__typename)&&(void 0===e.attributeKind.list||null===e.attributeKind.list||(null!==e.attributeKind.list&&"object"===s(e.attributeKind.list)||"function"==typeof e.attributeKind.list)&&"pemberly_text_List"===e.attributeKind.list.__typename&&"boolean"==typeof e.attributeKind.list.ordered)&&(void 0===e.attributeKind.listItem||null===e.attributeKind.listItem||(null!==e.attributeKind.listItem&&"object"===s(e.attributeKind.listItem)||"function"==typeof e.attributeKind.listItem)&&"pemberly_text_ListItem"===e.attributeKind.listItem.__typename)&&(void 0===e.attributeKind.lineBreak||null===e.attributeKind.lineBreak||(null!==e.attributeKind.lineBreak&&"object"===s(e.attributeKind.lineBreak)||"function"==typeof e.attributeKind.lineBreak)&&"pemberly_text_LineBreak"===e.attributeKind.lineBreak.__typename)&&(void 0===e.attributeKind.underline||null===e.attributeKind.underline||(null!==e.attributeKind.underline&&"object"===s(e.attributeKind.underline)||"function"==typeof e.attributeKind.underline)&&"pemberly_text_Underline"===e.attributeKind.underline.__typename)&&(void 0===e.attributeKind.subscript||null===e.attributeKind.subscript||(null!==e.attributeKind.subscript&&"object"===s(e.attributeKind.subscript)||"function"==typeof e.attributeKind.subscript)&&"pemberly_text_Subscript"===e.attributeKind.subscript.__typename)&&(void 0===e.attributeKind.superscript||null===e.attributeKind.superscript||(null!==e.attributeKind.superscript&&"object"===s(e.attributeKind.superscript)||"function"==typeof e.attributeKind.superscript)&&"pemberly_text_Superscript"===e.attributeKind.superscript.__typename)&&(void 0===e.attributeKind.entity||null===e.attributeKind.entity||(null!==e.attributeKind.entity&&"object"===s(e.attributeKind.entity)||"function"==typeof e.attributeKind.entity)&&_e(e.attributeKind.entity.urn)))}))}function ke(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&Object.entries(t).every((function(e){var t=E(e,2),n=t[0],i=t[1]
return((null!==i&&"object"===s(i)||"function"==typeof i)&&Array.isArray(i.recipients)&&i.recipients.every((function(e){return _e(e)}))||(null!==i&&"object"===s(i)||"function"==typeof i)&&_e(i.title))&&"string"==typeof n}))}function _e(e){return"string"==typeof e}function Te(e){return"string"==typeof e}function Se(e){return"FilteredMailboxState"===e||"FullMailboxState"===e}function Ce(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&(void 0===t.conversationState||"ACCEPTED"===t.conversationState||"DECLINED"===t.conversationState||"PENDING"===t.conversationState)&&(void 0===t.conversationTitle||_e(t.conversationTitle))&&(void 0===t.forwardedMessageUrn||_e(t.forwardedMessageUrn))&&(void 0===t.hostMessageCreateContent||(null!==t.hostMessageCreateContent&&"object"===s(t.hostMessageCreateContent)||"function"==typeof t.hostMessageCreateContent)&&Object.entries(t.hostMessageCreateContent).every((function(e){var t=E(e,2),n=t[0]
return t[1],"string"==typeof n})))&&(void 0===t.invitationUrn||_e(t.invitationUrn))&&(void 0===t.messageRequestContextByRecipient||Array.isArray(t.messageRequestContextByRecipient)&&t.messageRequestContextByRecipient.every((function(e){return(null!==e&&"object"===s(e)||"function"==typeof e)&&_e(e.hostRecipientUrn)&&_e(e.contextEntityUrn)})))&&(void 0===t.messageSubject||_e(t.messageSubject))&&(void 0===t.quickActionContextUrn||_e(t.quickActionContextUrn))&&Array.isArray(t.renderContent)&&t.renderContent.every((function(e){return(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.audio||null===e.audio||(null!==e.audio&&"object"===s(e.audio)||"function"==typeof e.audio)&&"number"==typeof e.audio.duration&&_e(e.audio.url))&&(void 0===e.awayMessage||null===e.awayMessage||(null!==e.awayMessage&&"object"===s(e.awayMessage)||"function"==typeof e.awayMessage)&&Ee(e.awayMessage.footerText)&&Ee(e.awayMessage.text))&&(void 0===e.externalMedia||null===e.externalMedia||(null!==e.externalMedia&&"object"===s(e.externalMedia)||"function"==typeof e.externalMedia)&&_e(e.externalMedia.entityUrn)&&(void 0===e.externalMedia.title||null===e.externalMedia.title||_e(e.externalMedia.title))&&(null!==e.externalMedia.media&&"object"===s(e.externalMedia.media)||"function"==typeof e.externalMedia.media)&&"number"==typeof e.externalMedia.media.originalHeight&&"number"==typeof e.externalMedia.media.originalWidth&&_e(e.externalMedia.media.url)&&(void 0===e.externalMedia.previewMedia||null===e.externalMedia.previewMedia||(null!==e.externalMedia.previewMedia&&"object"===s(e.externalMedia.previewMedia)||"function"==typeof e.externalMedia.previewMedia)&&"number"==typeof e.externalMedia.previewMedia.originalHeight&&"number"==typeof e.externalMedia.previewMedia.originalWidth&&_e(e.externalMedia.previewMedia.url)))&&(void 0===e.file||null===e.file||(null!==e.file&&"object"===s(e.file)||"function"==typeof e.file)&&_e(e.file.assetUrn)&&(void 0===e.file.byteSize||null===e.file.byteSize||"number"==typeof e.file.byteSize)&&_e(e.file.mediaType)&&_e(e.file.name)&&_e(e.file.url))&&(void 0===e.messageAdRenderContent||null===e.messageAdRenderContent||(null!==e.messageAdRenderContent&&"object"===s(e.messageAdRenderContent)||"function"==typeof e.messageAdRenderContent)&&(void 0===e.messageAdRenderContent.advertiserLabel||null===e.messageAdRenderContent.advertiserLabel||_e(e.messageAdRenderContent.advertiserLabel))&&(void 0===e.messageAdRenderContent.bodyTracking||null===e.messageAdRenderContent.bodyTracking||_e(e.messageAdRenderContent.bodyTracking))&&(void 0===e.messageAdRenderContent.legalTextTracking||null===e.messageAdRenderContent.legalTextTracking||_e(e.messageAdRenderContent.legalTextTracking))&&(void 0===e.messageAdRenderContent.openTracking||null===e.messageAdRenderContent.openTracking||_e(e.messageAdRenderContent.openTracking))&&(void 0===e.messageAdRenderContent.sponsoredCampaignUrn||null===e.messageAdRenderContent.sponsoredCampaignUrn||_e(e.messageAdRenderContent.sponsoredCampaignUrn))&&("PENDING"===e.messageAdRenderContent.status||"ACTIONED"===e.messageAdRenderContent.status)&&(null!==e.messageAdRenderContent.creativeAdsReportingInfo&&"object"===s(e.messageAdRenderContent.creativeAdsReportingInfo)||"function"==typeof e.messageAdRenderContent.creativeAdsReportingInfo)&&("MESSAGE_AD"===e.messageAdRenderContent.creativeAdsReportingInfo.contentSource||"SPONSORED_MESSAGE"===e.messageAdRenderContent.creativeAdsReportingInfo.contentSource)&&_e(e.messageAdRenderContent.creativeAdsReportingInfo.sponsoredAccountUrn)&&_e(e.messageAdRenderContent.creativeAdsReportingInfo.sponsoredCreativeUrn)&&(void 0===e.messageAdRenderContent.legalText||null===e.messageAdRenderContent.legalText||Ee(e.messageAdRenderContent.legalText))&&(void 0===e.messageAdRenderContent.sponsoredTracking||null===e.messageAdRenderContent.sponsoredTracking||(null!==e.messageAdRenderContent.sponsoredTracking&&"object"===s(e.messageAdRenderContent.sponsoredTracking)||"function"==typeof e.messageAdRenderContent.sponsoredTracking)&&_e(e.messageAdRenderContent.sponsoredTracking.adRequestId)&&("SPONSORED"===e.messageAdRenderContent.sponsoredTracking.activityType||"VIRAL"===e.messageAdRenderContent.sponsoredTracking.activityType)&&(void 0===e.messageAdRenderContent.sponsoredTracking.adTrackingCode||null===e.messageAdRenderContent.sponsoredTracking.adTrackingCode||_e(e.messageAdRenderContent.sponsoredTracking.adTrackingCode))&&(void 0===e.messageAdRenderContent.sponsoredTracking.leadTrackingCode||null===e.messageAdRenderContent.sponsoredTracking.leadTrackingCode||_e(e.messageAdRenderContent.sponsoredTracking.leadTrackingCode))&&(void 0===e.messageAdRenderContent.sponsoredTracking.version||null===e.messageAdRenderContent.sponsoredTracking.version||_e(e.messageAdRenderContent.sponsoredTracking.version))&&(void 0===e.messageAdRenderContent.sponsoredTracking.videoBehavior||null===e.messageAdRenderContent.sponsoredTracking.videoBehavior||"DISPLAY_WITH_LANDING_PAGE"===e.messageAdRenderContent.sponsoredTracking.videoBehavior||"DISPLAY_WITH_LEADGEN_FORM"===e.messageAdRenderContent.sponsoredTracking.videoBehavior||"OPEN_VIDEO_FULLSCREEN"===e.messageAdRenderContent.sponsoredTracking.videoBehavior)&&(void 0===e.messageAdRenderContent.sponsoredTracking.sponsoredCampaignUrn||null===e.messageAdRenderContent.sponsoredTracking.sponsoredCampaignUrn||_e(e.messageAdRenderContent.sponsoredTracking.sponsoredCampaignUrn))&&(void 0===e.messageAdRenderContent.sponsoredTracking.adServingUrn||null===e.messageAdRenderContent.sponsoredTracking.adServingUrn||_e(e.messageAdRenderContent.sponsoredTracking.adServingUrn)))&&(null!==e.messageAdRenderContent.subContent&&"object"===s(e.messageAdRenderContent.subContent)||"function"==typeof e.messageAdRenderContent.subContent)&&(void 0===e.messageAdRenderContent.subContent.action||null===e.messageAdRenderContent.subContent.action||_e(e.messageAdRenderContent.subContent.action))&&_e(e.messageAdRenderContent.subContent.actionText)&&(void 0===e.messageAdRenderContent.subContent.actionTracking||null===e.messageAdRenderContent.subContent.actionTracking||_e(e.messageAdRenderContent.subContent.actionTracking))&&(void 0===e.messageAdRenderContent.subContent.callToActionLabel||null===e.messageAdRenderContent.subContent.callToActionLabel||_e(e.messageAdRenderContent.subContent.callToActionLabel))&&(void 0===e.messageAdRenderContent.subContent.leadGenFormOpenTracking||null===e.messageAdRenderContent.subContent.leadGenFormOpenTracking||_e(e.messageAdRenderContent.subContent.leadGenFormOpenTracking))&&(void 0===e.messageAdRenderContent.subContent.leadGenFormUrn||null===e.messageAdRenderContent.subContent.leadGenFormUrn||_e(e.messageAdRenderContent.subContent.leadGenFormUrn))&&(void 0===e.messageAdRenderContent.subContent.leadTrackingCode||null===e.messageAdRenderContent.subContent.leadTrackingCode||_e(e.messageAdRenderContent.subContent.leadTrackingCode))&&(void 0===e.messageAdRenderContent.subContent.leadTrackingParams||null===e.messageAdRenderContent.subContent.leadTrackingParams||_e(e.messageAdRenderContent.subContent.leadTrackingParams))&&(void 0===e.messageAdRenderContent.subContent.tscpUrl||null===e.messageAdRenderContent.subContent.tscpUrl||_e(e.messageAdRenderContent.subContent.tscpUrl))&&(void 0===e.messageAdRenderContent.subContent.adUnit||null===e.messageAdRenderContent.subContent.adUnit||(null!==e.messageAdRenderContent.subContent.adUnit&&"object"===s(e.messageAdRenderContent.subContent.adUnit)||"function"==typeof e.messageAdRenderContent.subContent.adUnit)&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnitTracking||null===e.messageAdRenderContent.subContent.adUnit.adUnitTracking||_e(e.messageAdRenderContent.subContent.adUnit.adUnitTracking))&&(null!==e.messageAdRenderContent.subContent.adUnit.adUnit&&"object"===s(e.messageAdRenderContent.subContent.adUnit.adUnit)||"function"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit)&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.attribution||null===e.messageAdRenderContent.subContent.adUnit.adUnit.attribution||_e(e.messageAdRenderContent.subContent.adUnit.adUnit.attribution))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl||null===e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl||_e(e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset||null===e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset||_e(e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset))&&Array.isArray(e.messageAdRenderContent.subContent.adUnit.adUnit.artifacts)&&e.messageAdRenderContent.subContent.adUnit.adUnit.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint||null===e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint||(null!==e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint&&"object"===s(e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint)||"function"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint)&&"number"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint.xOffsetPercentage&&"number"==typeof e.messageAdRenderContent.subContent.adUnit.adUnit.focalPoint.yOffsetPercentage)))&&(void 0===e.vectorImage||null===e.vectorImage||(null!==e.vectorImage&&"object"===s(e.vectorImage)||"function"==typeof e.vectorImage)&&(void 0===e.vectorImage.attribution||null===e.vectorImage.attribution||_e(e.vectorImage.attribution))&&(void 0===e.vectorImage.rootUrl||null===e.vectorImage.rootUrl||_e(e.vectorImage.rootUrl))&&(void 0===e.vectorImage.digitalmediaAsset||null===e.vectorImage.digitalmediaAsset||_e(e.vectorImage.digitalmediaAsset))&&Array.isArray(e.vectorImage.artifacts)&&e.vectorImage.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.vectorImage.focalPoint||null===e.vectorImage.focalPoint||(null!==e.vectorImage.focalPoint&&"object"===s(e.vectorImage.focalPoint)||"function"==typeof e.vectorImage.focalPoint)&&"number"==typeof e.vectorImage.focalPoint.xOffsetPercentage&&"number"==typeof e.vectorImage.focalPoint.yOffsetPercentage))&&(void 0===e.video||null===e.video||(null!==e.video&&"object"===s(e.video)||"function"==typeof e.video)&&(void 0===e.video.entityUrn||null===e.video.entityUrn||_e(e.video.entityUrn))&&(void 0===e.video.aspectRatio||null===e.video.aspectRatio||"number"==typeof e.video.aspectRatio)&&(void 0===e.video.duration||null===e.video.duration||"number"==typeof e.video.duration)&&(void 0===e.video.liveStreamCreatedAt||null===e.video.liveStreamCreatedAt||"number"==typeof e.video.liveStreamCreatedAt)&&(void 0===e.video.liveStreamEndedAt||null===e.video.liveStreamEndedAt||"number"==typeof e.video.liveStreamEndedAt)&&_e(e.video.media)&&(void 0===e.video.nextMedia||null===e.video.nextMedia||_e(e.video.nextMedia))&&(void 0===e.video.prevMedia||null===e.video.prevMedia||_e(e.video.prevMedia))&&(void 0===e.video.provider||null===e.video.provider||"ADS"===e.video.provider||"ASSESSMENTS"===e.video.provider||"CAREER_VIDEO"===e.video.provider||"LEARNING"===e.video.provider||"LINKEDIN"===e.video.provider||"LIVE_AUDIO_RECORDING"===e.video.provider||"LIVE_VIDEO"===e.video.provider||"MESSAGING"===e.video.provider||"PROFILE_VIDEO"===e.video.provider||"SLIDESHOW_IMAGE"===e.video.provider||"SLIDESHOW_VIDEO"===e.video.provider||"STORIES"===e.video.provider||"UGC"===e.video.provider)&&_e(e.video.trackingId)&&(void 0===e.video.adaptiveStreams||null===e.video.adaptiveStreams||Array.isArray(e.video.adaptiveStreams)&&e.video.adaptiveStreams.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.initialBitRate||null===e.initialBitRate||"number"==typeof e.initialBitRate)&&(void 0===e.mediaType||null===e.mediaType||_e(e.mediaType))&&("DASH"===e.protocol||"HDS"===e.protocol||"HLS"===e.protocol||"SMOOTH"===e.protocol)&&Array.isArray(e.masterPlaylists)&&e.masterPlaylists.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.expiresAt||null===e.expiresAt||"number"==typeof e.expiresAt)&&_e(e.url)}))})))&&Array.isArray(e.video.progressiveStreams)&&e.video.progressiveStreams.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.bitRate&&"number"==typeof e.height&&(void 0===e.mediaType||null===e.mediaType||_e(e.mediaType))&&(void 0===e.mimeType||null===e.mimeType||"MP3"===e.mimeType||"MP4"===e.mimeType||"WEBM"===e.mimeType)&&"number"==typeof e.size&&"number"==typeof e.width&&Array.isArray(e.streamingLocations)&&e.streamingLocations.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.expiresAt||null===e.expiresAt||"number"==typeof e.expiresAt)&&_e(e.url)}))}))&&(void 0===e.video.thumbnail||null===e.video.thumbnail||(null!==e.video.thumbnail&&"object"===s(e.video.thumbnail)||"function"==typeof e.video.thumbnail)&&(void 0===e.video.thumbnail.attribution||null===e.video.thumbnail.attribution||_e(e.video.thumbnail.attribution))&&(void 0===e.video.thumbnail.rootUrl||null===e.video.thumbnail.rootUrl||_e(e.video.thumbnail.rootUrl))&&(void 0===e.video.thumbnail.digitalmediaAsset||null===e.video.thumbnail.digitalmediaAsset||_e(e.video.thumbnail.digitalmediaAsset))&&Array.isArray(e.video.thumbnail.artifacts)&&e.video.thumbnail.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.video.thumbnail.focalPoint||null===e.video.thumbnail.focalPoint||(null!==e.video.thumbnail.focalPoint&&"object"===s(e.video.thumbnail.focalPoint)||"function"==typeof e.video.thumbnail.focalPoint)&&"number"==typeof e.video.thumbnail.focalPoint.xOffsetPercentage&&"number"==typeof e.video.thumbnail.focalPoint.yOffsetPercentage))&&(void 0===e.video.transcripts||null===e.video.transcripts||Array.isArray(e.video.transcripts)&&e.video.transcripts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.captionFile||null===e.captionFile||_e(e.captionFile))&&(void 0===e.captionFormat||null===e.captionFormat||"SRT"===e.captionFormat||"WEBVTT"===e.captionFormat)&&"boolean"==typeof e.isAutogenerated&&Array.isArray(e.lines)&&e.lines.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&_e(e.caption)&&"number"==typeof e.lineEndAt&&"number"==typeof e.lineStartAt}))&&(null!==e.locale&&"object"===s(e.locale)||"function"==typeof e.locale)&&(void 0===e.locale.country||null===e.locale.country||_e(e.locale.country))&&_e(e.locale.language)&&(void 0===e.locale.script||null===e.locale.script||_e(e.locale.script))&&(void 0===e.locale.variant||null===e.locale.variant||_e(e.locale.variant))&&(void 0===e.locale.extensions||null===e.locale.extensions||(null!==e.locale.extensions&&"object"===s(e.locale.extensions)||"function"==typeof e.locale.extensions)&&(void 0===e.locale.extensions.t||null===e.locale.extensions.t||_e(e.locale.extensions.t))&&(void 0===e.locale.extensions.u||null===e.locale.extensions.u||_e(e.locale.extensions.u))&&(void 0===e.locale.extensions.x||null===e.locale.extensions.x||_e(e.locale.extensions.x)))}))))&&(void 0===e.videoMeeting||null===e.videoMeeting||(null!==e.videoMeeting&&"object"===s(e.videoMeeting)||"function"==typeof e.videoMeeting)&&(void 0===e.videoMeeting.earliestStartAt||null===e.videoMeeting.earliestStartAt||"number"==typeof e.videoMeeting.earliestStartAt)&&(void 0===e.videoMeeting.expiresAt||null===e.videoMeeting.expiresAt||"number"==typeof e.videoMeeting.expiresAt)&&(void 0===e.videoMeeting.videoMeeting||null===e.videoMeeting.videoMeeting||(null!==e.videoMeeting.videoMeeting&&"object"===s(e.videoMeeting.videoMeeting)||"function"==typeof e.videoMeeting.videoMeeting)&&_e(e.videoMeeting.videoMeeting.entityUrn))&&(void 0===e.videoMeeting.timeRange||null===e.videoMeeting.timeRange||(null!==e.videoMeeting.timeRange&&"object"===s(e.videoMeeting.timeRange)||"function"==typeof e.videoMeeting.timeRange)&&(void 0===e.videoMeeting.timeRange.end||null===e.videoMeeting.timeRange.end||"number"==typeof e.videoMeeting.timeRange.end)&&(void 0===e.videoMeeting.timeRange.start||null===e.videoMeeting.timeRange.start||"number"==typeof e.videoMeeting.timeRange.start)))&&(void 0===e.hostUrnData||null===e.hostUrnData||(null!==e.hostUrnData&&"object"===s(e.hostUrnData)||"function"==typeof e.hostUrnData)&&_e(e.hostUrnData.hostUrn)&&_e(e.hostUrnData.type))&&(void 0===e.conversationAdsMessageContent||null===e.conversationAdsMessageContent||(null!==e.conversationAdsMessageContent&&"object"===s(e.conversationAdsMessageContent)||"function"==typeof e.conversationAdsMessageContent)&&_e(e.conversationAdsMessageContent.sponsoredMessageContentUrn)&&(void 0===e.conversationAdsMessageContent.sponsoredMessageTrackingId||null===e.conversationAdsMessageContent.sponsoredMessageTrackingId||"number"==typeof e.conversationAdsMessageContent.sponsoredMessageTrackingId)&&Array.isArray(e.conversationAdsMessageContent.sponsoredMessageOptions)&&e.conversationAdsMessageContent.sponsoredMessageOptions.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&(void 0===e.tscpUrl||null===e.tscpUrl||_e(e.tscpUrl))&&(void 0===e.clickAction||null===e.clickAction||(null!==e.clickAction&&"object"===s(e.clickAction)||"function"==typeof e.clickAction)&&(void 0===e.clickAction.externalWebsiteClickAction||null===e.clickAction.externalWebsiteClickAction||(null!==e.clickAction.externalWebsiteClickAction&&"object"===s(e.clickAction.externalWebsiteClickAction)||"function"==typeof e.clickAction.externalWebsiteClickAction)&&(void 0===e.clickAction.externalWebsiteClickAction.redirectUrl||null===e.clickAction.externalWebsiteClickAction.redirectUrl||_e(e.clickAction.externalWebsiteClickAction.redirectUrl)))&&(void 0===e.clickAction.leadGenClickAction||null===e.clickAction.leadGenClickAction||(null!==e.clickAction.leadGenClickAction&&"object"===s(e.clickAction.leadGenClickAction)||"function"==typeof e.clickAction.leadGenClickAction)&&(void 0===e.clickAction.leadGenClickAction.leadGenFormUrn||null===e.clickAction.leadGenClickAction.leadGenFormUrn||_e(e.clickAction.leadGenClickAction.leadGenFormUrn))&&(void 0===e.clickAction.leadGenClickAction.leadTrackingCode||null===e.clickAction.leadGenClickAction.leadTrackingCode||_e(e.clickAction.leadGenClickAction.leadTrackingCode))&&(void 0===e.clickAction.leadGenClickAction.leadTrackingParams||null===e.clickAction.leadGenClickAction.leadTrackingParams||_e(e.clickAction.leadGenClickAction.leadTrackingParams)))&&(void 0===e.clickAction.humanHandoffClickAction||null===e.clickAction.humanHandoffClickAction||(null!==e.clickAction.humanHandoffClickAction&&"object"===s(e.clickAction.humanHandoffClickAction)||"function"==typeof e.clickAction.humanHandoffClickAction)&&"DESIGNATED_MEMBER"===e.clickAction.humanHandoffClickAction.handoffType)&&(void 0===e.clickAction.notInterestedClickActionV2||null===e.clickAction.notInterestedClickActionV2||(null!==e.clickAction.notInterestedClickActionV2&&"object"===s(e.clickAction.notInterestedClickActionV2)||"function"==typeof e.clickAction.notInterestedClickActionV2)&&"messenger_ConversationAdNotInterestedClickAction"===e.clickAction.notInterestedClickActionV2.__typename))&&Ee(e.optionText)&&(void 0===e.sponsoredMessageOption||null===e.sponsoredMessageOption||(null!==e.sponsoredMessageOption&&"object"===s(e.sponsoredMessageOption)||"function"==typeof e.sponsoredMessageOption)&&_e(e.sponsoredMessageOption.entityUrn))})))&&(void 0===e.forwardedMessageContent||null===e.forwardedMessageContent||(null!==e.forwardedMessageContent&&"object"===s(e.forwardedMessageContent)||"function"==typeof e.forwardedMessageContent)&&"number"==typeof e.forwardedMessageContent.originalSendAt&&(null!==e.forwardedMessageContent.originalSender&&"object"===s(e.forwardedMessageContent.originalSender)||"function"==typeof e.forwardedMessageContent.originalSender)&&_e(e.forwardedMessageContent.originalSender.entityUrn)&&(void 0===e.forwardedMessageContent.originalSender.hostIdentityUrn||null===e.forwardedMessageContent.originalSender.hostIdentityUrn||_e(e.forwardedMessageContent.originalSender.hostIdentityUrn))&&(void 0===e.forwardedMessageContent.originalSender.backendUrn||null===e.forwardedMessageContent.originalSender.backendUrn||_e(e.forwardedMessageContent.originalSender.backendUrn))&&"boolean"==typeof e.forwardedMessageContent.originalSender.showVerificationBadge&&"boolean"==typeof e.forwardedMessageContent.originalSender.showPremiumInBug&&(void 0===e.forwardedMessageContent.originalSender.preview||null===e.forwardedMessageContent.originalSender.preview||(null!==e.forwardedMessageContent.originalSender.preview&&"object"===s(e.forwardedMessageContent.originalSender.preview)||"function"==typeof e.forwardedMessageContent.originalSender.preview)&&Ee(e.forwardedMessageContent.originalSender.preview.previewTitle)&&(void 0===e.forwardedMessageContent.originalSender.preview.descriptionText||null===e.forwardedMessageContent.originalSender.preview.descriptionText||Ee(e.forwardedMessageContent.originalSender.preview.descriptionText)))&&(void 0===e.forwardedMessageContent.originalSender.participantType||null===e.forwardedMessageContent.originalSender.participantType||(null!==e.forwardedMessageContent.originalSender.participantType&&"object"===s(e.forwardedMessageContent.originalSender.participantType)||"function"==typeof e.forwardedMessageContent.originalSender.participantType)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member||null===e.forwardedMessageContent.originalSender.participantType.member||(null!==e.forwardedMessageContent.originalSender.participantType.member&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profileUrl||null===e.forwardedMessageContent.originalSender.participantType.member.profileUrl||_e(e.forwardedMessageContent.originalSender.participantType.member.profileUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.distance||null===e.forwardedMessageContent.originalSender.participantType.member.distance||"DISTANCE_1"===e.forwardedMessageContent.originalSender.participantType.member.distance||"DISTANCE_2"===e.forwardedMessageContent.originalSender.participantType.member.distance||"DISTANCE_3"===e.forwardedMessageContent.originalSender.participantType.member.distance||"OUT_OF_NETWORK"===e.forwardedMessageContent.originalSender.participantType.member.distance||"SELF"===e.forwardedMessageContent.originalSender.participantType.member.distance)&&Ee(e.forwardedMessageContent.originalSender.participantType.member.firstName)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.lastName||null===e.forwardedMessageContent.originalSender.participantType.member.lastName||Ee(e.forwardedMessageContent.originalSender.participantType.member.lastName))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.headline||null===e.forwardedMessageContent.originalSender.participantType.member.headline||Ee(e.forwardedMessageContent.originalSender.participantType.member.headline))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture||(null!==e.forwardedMessageContent.originalSender.participantType.member.profilePicture&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member.profilePicture)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.attribution||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.attribution||_e(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||_e(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||_e(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset))&&Array.isArray(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.artifacts)&&e.forwardedMessageContent.originalSender.participantType.member.profilePicture.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||(null!==e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.xOffsetPercentage&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.yOffsetPercentage))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.pronoun||null===e.forwardedMessageContent.originalSender.participantType.member.pronoun||(null!==e.forwardedMessageContent.originalSender.participantType.member.pronoun&&"object"===s(e.forwardedMessageContent.originalSender.participantType.member.pronoun)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.member.pronoun)&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.pronoun.customPronoun||null===e.forwardedMessageContent.originalSender.participantType.member.pronoun.customPronoun||_e(e.forwardedMessageContent.originalSender.participantType.member.pronoun.customPronoun))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||null===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"HE_HIM"===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"SHE_HER"===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"THEY_THEM"===e.forwardedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun)))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization||null===e.forwardedMessageContent.originalSender.participantType.organization||(null!==e.forwardedMessageContent.originalSender.participantType.organization&&"object"===s(e.forwardedMessageContent.originalSender.participantType.organization)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.organization)&&"boolean"==typeof e.forwardedMessageContent.originalSender.participantType.organization.following&&("COMPANY"===e.forwardedMessageContent.originalSender.participantType.organization.pageType||"SCHOOL"===e.forwardedMessageContent.originalSender.participantType.organization.pageType||"SHOWCASE"===e.forwardedMessageContent.originalSender.participantType.organization.pageType)&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.pageUrl||null===e.forwardedMessageContent.originalSender.participantType.organization.pageUrl||_e(e.forwardedMessageContent.originalSender.participantType.organization.pageUrl))&&Ee(e.forwardedMessageContent.originalSender.participantType.organization.name)&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.tagline||null===e.forwardedMessageContent.originalSender.participantType.organization.tagline||Ee(e.forwardedMessageContent.originalSender.participantType.organization.tagline))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo||null===e.forwardedMessageContent.originalSender.participantType.organization.logo||(null!==e.forwardedMessageContent.originalSender.participantType.organization.logo&&"object"===s(e.forwardedMessageContent.originalSender.participantType.organization.logo)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo)&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.attribution||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.attribution||_e(e.forwardedMessageContent.originalSender.participantType.organization.logo.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl||_e(e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||_e(e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset))&&Array.isArray(e.forwardedMessageContent.originalSender.participantType.organization.logo.artifacts)&&e.forwardedMessageContent.originalSender.participantType.organization.logo.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint||(null!==e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint&&"object"===s(e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint)&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint.xOffsetPercentage&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.organization.logo.focalPoint.yOffsetPercentage))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.industryName||null===e.forwardedMessageContent.originalSender.participantType.organization.industryName||Ee(e.forwardedMessageContent.originalSender.participantType.organization.industryName))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.averageResponseTimeText||null===e.forwardedMessageContent.originalSender.participantType.organization.averageResponseTimeText||Ee(e.forwardedMessageContent.originalSender.participantType.organization.averageResponseTimeText)))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom||null===e.forwardedMessageContent.originalSender.participantType.custom||(null!==e.forwardedMessageContent.originalSender.participantType.custom&&"object"===s(e.forwardedMessageContent.originalSender.participantType.custom)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.custom)&&Ee(e.forwardedMessageContent.originalSender.participantType.custom.name)&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image||null===e.forwardedMessageContent.originalSender.participantType.custom.image||(null!==e.forwardedMessageContent.originalSender.participantType.custom.image&&"object"===s(e.forwardedMessageContent.originalSender.participantType.custom.image)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image)&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.attribution||null===e.forwardedMessageContent.originalSender.participantType.custom.image.attribution||_e(e.forwardedMessageContent.originalSender.participantType.custom.image.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl||_e(e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||_e(e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset))&&Array.isArray(e.forwardedMessageContent.originalSender.participantType.custom.image.artifacts)&&e.forwardedMessageContent.originalSender.participantType.custom.image.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint||null===e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint||(null!==e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint&&"object"===s(e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint)||"function"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint)&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint.xOffsetPercentage&&"number"==typeof e.forwardedMessageContent.originalSender.participantType.custom.image.focalPoint.yOffsetPercentage))))&&Ee(e.forwardedMessageContent.forwardedBody)&&Ee(e.forwardedMessageContent.footerText))&&(void 0===e.repliedMessageContent||null===e.repliedMessageContent||(null!==e.repliedMessageContent&&"object"===s(e.repliedMessageContent)||"function"==typeof e.repliedMessageContent)&&"number"==typeof e.repliedMessageContent.originalSendAt&&(null!==e.repliedMessageContent.originalSender&&"object"===s(e.repliedMessageContent.originalSender)||"function"==typeof e.repliedMessageContent.originalSender)&&_e(e.repliedMessageContent.originalSender.entityUrn)&&(void 0===e.repliedMessageContent.originalSender.hostIdentityUrn||null===e.repliedMessageContent.originalSender.hostIdentityUrn||_e(e.repliedMessageContent.originalSender.hostIdentityUrn))&&(void 0===e.repliedMessageContent.originalSender.backendUrn||null===e.repliedMessageContent.originalSender.backendUrn||_e(e.repliedMessageContent.originalSender.backendUrn))&&"boolean"==typeof e.repliedMessageContent.originalSender.showVerificationBadge&&"boolean"==typeof e.repliedMessageContent.originalSender.showPremiumInBug&&(void 0===e.repliedMessageContent.originalSender.preview||null===e.repliedMessageContent.originalSender.preview||(null!==e.repliedMessageContent.originalSender.preview&&"object"===s(e.repliedMessageContent.originalSender.preview)||"function"==typeof e.repliedMessageContent.originalSender.preview)&&Ee(e.repliedMessageContent.originalSender.preview.previewTitle)&&(void 0===e.repliedMessageContent.originalSender.preview.descriptionText||null===e.repliedMessageContent.originalSender.preview.descriptionText||Ee(e.repliedMessageContent.originalSender.preview.descriptionText)))&&(void 0===e.repliedMessageContent.originalSender.participantType||null===e.repliedMessageContent.originalSender.participantType||(null!==e.repliedMessageContent.originalSender.participantType&&"object"===s(e.repliedMessageContent.originalSender.participantType)||"function"==typeof e.repliedMessageContent.originalSender.participantType)&&(void 0===e.repliedMessageContent.originalSender.participantType.member||null===e.repliedMessageContent.originalSender.participantType.member||(null!==e.repliedMessageContent.originalSender.participantType.member&&"object"===s(e.repliedMessageContent.originalSender.participantType.member)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profileUrl||null===e.repliedMessageContent.originalSender.participantType.member.profileUrl||_e(e.repliedMessageContent.originalSender.participantType.member.profileUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.distance||null===e.repliedMessageContent.originalSender.participantType.member.distance||"DISTANCE_1"===e.repliedMessageContent.originalSender.participantType.member.distance||"DISTANCE_2"===e.repliedMessageContent.originalSender.participantType.member.distance||"DISTANCE_3"===e.repliedMessageContent.originalSender.participantType.member.distance||"OUT_OF_NETWORK"===e.repliedMessageContent.originalSender.participantType.member.distance||"SELF"===e.repliedMessageContent.originalSender.participantType.member.distance)&&Ee(e.repliedMessageContent.originalSender.participantType.member.firstName)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.lastName||null===e.repliedMessageContent.originalSender.participantType.member.lastName||Ee(e.repliedMessageContent.originalSender.participantType.member.lastName))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.headline||null===e.repliedMessageContent.originalSender.participantType.member.headline||Ee(e.repliedMessageContent.originalSender.participantType.member.headline))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture||(null!==e.repliedMessageContent.originalSender.participantType.member.profilePicture&&"object"===s(e.repliedMessageContent.originalSender.participantType.member.profilePicture)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.attribution||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.attribution||_e(e.repliedMessageContent.originalSender.participantType.member.profilePicture.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||_e(e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||_e(e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset))&&Array.isArray(e.repliedMessageContent.originalSender.participantType.member.profilePicture.artifacts)&&e.repliedMessageContent.originalSender.participantType.member.profilePicture.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint||(null!==e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint&&"object"===s(e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint)&&"number"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.xOffsetPercentage&&"number"==typeof e.repliedMessageContent.originalSender.participantType.member.profilePicture.focalPoint.yOffsetPercentage))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.pronoun||null===e.repliedMessageContent.originalSender.participantType.member.pronoun||(null!==e.repliedMessageContent.originalSender.participantType.member.pronoun&&"object"===s(e.repliedMessageContent.originalSender.participantType.member.pronoun)||"function"==typeof e.repliedMessageContent.originalSender.participantType.member.pronoun)&&(void 0===e.repliedMessageContent.originalSender.participantType.member.pronoun.customPronoun||null===e.repliedMessageContent.originalSender.participantType.member.pronoun.customPronoun||_e(e.repliedMessageContent.originalSender.participantType.member.pronoun.customPronoun))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||null===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"HE_HIM"===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"SHE_HER"===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun||"THEY_THEM"===e.repliedMessageContent.originalSender.participantType.member.pronoun.standardizedPronoun)))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization||null===e.repliedMessageContent.originalSender.participantType.organization||(null!==e.repliedMessageContent.originalSender.participantType.organization&&"object"===s(e.repliedMessageContent.originalSender.participantType.organization)||"function"==typeof e.repliedMessageContent.originalSender.participantType.organization)&&"boolean"==typeof e.repliedMessageContent.originalSender.participantType.organization.following&&("COMPANY"===e.repliedMessageContent.originalSender.participantType.organization.pageType||"SCHOOL"===e.repliedMessageContent.originalSender.participantType.organization.pageType||"SHOWCASE"===e.repliedMessageContent.originalSender.participantType.organization.pageType)&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.pageUrl||null===e.repliedMessageContent.originalSender.participantType.organization.pageUrl||_e(e.repliedMessageContent.originalSender.participantType.organization.pageUrl))&&Ee(e.repliedMessageContent.originalSender.participantType.organization.name)&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.tagline||null===e.repliedMessageContent.originalSender.participantType.organization.tagline||Ee(e.repliedMessageContent.originalSender.participantType.organization.tagline))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo||null===e.repliedMessageContent.originalSender.participantType.organization.logo||(null!==e.repliedMessageContent.originalSender.participantType.organization.logo&&"object"===s(e.repliedMessageContent.originalSender.participantType.organization.logo)||"function"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo)&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.attribution||null===e.repliedMessageContent.originalSender.participantType.organization.logo.attribution||_e(e.repliedMessageContent.originalSender.participantType.organization.logo.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl||null===e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl||_e(e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||_e(e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset))&&Array.isArray(e.repliedMessageContent.originalSender.participantType.organization.logo.artifacts)&&e.repliedMessageContent.originalSender.participantType.organization.logo.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint||null===e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint||(null!==e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint&&"object"===s(e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint)||"function"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint)&&"number"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint.xOffsetPercentage&&"number"==typeof e.repliedMessageContent.originalSender.participantType.organization.logo.focalPoint.yOffsetPercentage))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.industryName||null===e.repliedMessageContent.originalSender.participantType.organization.industryName||Ee(e.repliedMessageContent.originalSender.participantType.organization.industryName))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.averageResponseTimeText||null===e.repliedMessageContent.originalSender.participantType.organization.averageResponseTimeText||Ee(e.repliedMessageContent.originalSender.participantType.organization.averageResponseTimeText)))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom||null===e.repliedMessageContent.originalSender.participantType.custom||(null!==e.repliedMessageContent.originalSender.participantType.custom&&"object"===s(e.repliedMessageContent.originalSender.participantType.custom)||"function"==typeof e.repliedMessageContent.originalSender.participantType.custom)&&Ee(e.repliedMessageContent.originalSender.participantType.custom.name)&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image||null===e.repliedMessageContent.originalSender.participantType.custom.image||(null!==e.repliedMessageContent.originalSender.participantType.custom.image&&"object"===s(e.repliedMessageContent.originalSender.participantType.custom.image)||"function"==typeof e.repliedMessageContent.originalSender.participantType.custom.image)&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.attribution||null===e.repliedMessageContent.originalSender.participantType.custom.image.attribution||_e(e.repliedMessageContent.originalSender.participantType.custom.image.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl||null===e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl||_e(e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||_e(e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset))&&Array.isArray(e.repliedMessageContent.originalSender.participantType.custom.image.artifacts)&&e.repliedMessageContent.originalSender.participantType.custom.image.artifacts.every((function(e){return null===e||(null!==e&&"object"===s(e)||"function"==typeof e)&&"number"==typeof e.width&&"number"==typeof e.height&&_e(e.fileIdentifyingUrlPathSegment)}))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint||null===e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint||(null!==e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint&&"object"===s(e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint)||"function"==typeof e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint)&&"number"==typeof e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint.xOffsetPercentage&&"number"==typeof e.repliedMessageContent.originalSender.participantType.custom.image.focalPoint.yOffsetPercentage))))&&(null!==e.repliedMessageContent.originalMessage&&"object"===s(e.repliedMessageContent.originalMessage)||"function"==typeof e.repliedMessageContent.originalMessage)&&_e(e.repliedMessageContent.originalMessage.entityUrn)&&Ee(e.repliedMessageContent.messageBody))&&(void 0===e.unavailableContent||null===e.unavailableContent||(null!==e.unavailableContent&&"object"===s(e.unavailableContent)||"function"==typeof e.unavailableContent)&&("AUDIO"===e.unavailableContent.contentType||"FILE"===e.unavailableContent.contentType||"NON_MULTIMEDIA"===e.unavailableContent.contentType||"OTHER_MULTIMEDIA"===e.unavailableContent.contentType||"UNKNOWN"===e.unavailableContent.contentType||"VIDEO"===e.unavailableContent.contentType)&&(void 0===e.unavailableContent.unavailableReason||null===e.unavailableContent.unavailableReason||Ee(e.unavailableContent.unavailableReason)))}))}function we(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&(void 0===t.aiMessageType||_e(t.aiMessageType))&&(void 0===t.isSystemClipboardUsed||!1===t.isSystemClipboardUsed||!0===t.isSystemClipboardUsed)&&(void 0===t.messageComposeFlowTrackingId||_e(t.messageComposeFlowTrackingId))&&(void 0===t.pageInstance||(null!==t.pageInstance&&"object"===s(t.pageInstance)||"function"==typeof t.pageInstance)&&_e(t.pageInstance.pageUrn)&&_e(t.pageInstance.trackingId)||(null!==t.pageInstance&&"object"===s(t.pageInstance)||"function"==typeof t.pageInstance)&&_e(t.pageInstance.pageUrn)&&_e(t.pageInstance.trackingId))&&(void 0===t.PEMKey||"INMAIL_ACCEPT"===t.PEMKey||"INMAIL_DECLINE"===t.PEMKey||"MESSAGE_REQUEST_ACCEPT"===t.PEMKey||"MESSAGE_REQUEST_DECLINE"===t.PEMKey)&&(void 0===t.sourceType||_e(t.sourceType))&&(void 0===t.trackingId||_e(t.trackingId))}function xe(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&"category"===t.kind&&_e(t.category)&&(void 0===t.query||_e(t.query))}function Ie(e){var t=e
return xe(t)||(null!==t&&"object"===s(t)||"function"==typeof t)&&"search"===t.kind&&Array.isArray(t.categories)&&t.categories.every((function(e){return _e(e)}))&&(void 0===t.keywords||_e(t.keywords))&&(void 0===t.read||!1===t.read||!0===t.read)&&"boolean"==typeof t.firstDegreeConnections||(null!==t&&"object"===s(t)||"function"==typeof t)&&"drafts"===t.kind}var Ae=function(e){return{msg:e,cause:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],originalStatusCodes:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]}},Re={MISSING_DATA_FROM_RESPONSE:{message:"Some data was missing or invalid from the response",code:100},ERRORS_IN_RESPONSE:{message:"Some errors were returned in the response",code:101},RESPONSE_INVALID_JSON:{message:"Failed to parse a JSON response",code:102},NO_RESPONSE_RECEIVED:{message:"No response received",code:103},NETWORK_ERROR:{message:"Network Error",code:104},SERVER_DRAFT_CONVERSATION_DELETE_FAILED:{message:"The draft conversation failed to be deleted",code:105}},Oe={FEATURE_NOT_YET_AVAILABLE:{message:"This feature is not yet available",code:613},MAILBOX_CONNECT_FAILED:{message:"Connecting to the Mailbox failed",code:614},MESSAGE_DECORATE_FAILED:{message:"Decoration of messages failed",code:600},CONVERSATION_DECORATE_FAILED:{message:"Decoration of conversation failed",code:601},MAILBOX_DECORATE_FAILED:{message:"Decoration of mailbox failed",code:602},CONVERSATION_DOES_NOT_EXIST:{message:"The conversation does not exist",code:603},DRAFT_MESSAGE_IS_EMPTY:{message:"The draft message is empty",code:604},MESSAGE_SEND_FAILED:{message:"Could not send the message",code:605},MESSAGE_DELETE_FAILED:{message:"Could not delete the message",code:606},MESSAGE_EDIT_FAILED:{message:"Could not edit the message",code:607},MESSAGE_DOES_NOT_EXIST:{message:"The message does not exist",code:608},PARTICIPANTS_DECORATE_FAILED:{message:"Decoration of participants failed",code:611},TOO_MANY_CATEGORIES:{message:"Too many categories specified and no keywords for find conversations",code:612},CANNOT_CREATE_FILTERED_MAILBOX:{message:"Cannot create a FilteredMailbox from a non-root mailbox",code:616},LOAD_OLDER_MESSAGES_FAILED:{message:"Cannot load older messages",code:617},RETRY_CANCELLED:{message:"The exponential backoff retry was cancelled",code:618},SENDING_QUEUE_IN_PROGRESS:{message:"The sending queue is already in progress. Cannot sendPendingMessages.",code:619},CANNOT_ADD_MESSAGES_IN_CONVERSATION:{message:"The draft conversation is in the process of sending the first message and creating a saved conversation. Cannot add more messages.",code:620},CANNOT_ADD_PARTICIPANTS_IN_CONVERSATION:{message:"Cannot add participants in conversation",code:621},CANNOT_REMOVE_PARTICIPANTS_FROM_CONVERSATION:{message:"Cannot remove participants from conversation",code:622},CANNOT_DISMISS_INLINE_WARNING:{message:"Cannot dismiss inline warning",code:623},MESSAGE_LIST_SYNC_FAILED:{message:"Message list sync failed",code:624},CHAIN_SYNC_FAILED:{message:"Chain sync failed",code:625},GET_REACTORS_FAILED:{message:"Get reactors by message and emoji failed",code:627},REACTION_LIMIT_REACHED:{message:"Cannot react to message because the reaction limit has been reached on this message",code:628},CONTENT_IS_NOT_ATTRIBUTED_TEXT:{message:"Content is not in the proper format of an AttributedTextFragment",code:629},INVALID_URL:{message:"Invalid restli or graphql URL",code:630},CHAIN_SYNC_CANNOT_START:{message:"Chain sync cannot start because missing syncToken",code:631},INVALID_TYPE_ARGUMENT:{message:"Invalid type argument",code:632},COMPOSE_BY_RECIPIENTS_FAILED:{message:"composeByRecipients failed: The conversation found could not be added to the Mailbox State",code:633},MAILBOX_NOT_FOUND:{message:"Mailbox not found: The mailbox URN could not be found in the store",code:634},SERVER_DRAFT_CONVERSATION_NOT_CREATED:{message:"Server Draft Conversation not created",code:635},CANNOT_UPDATE_DRAFT_MESSAGE:{message:"Cannot update draft message",code:636}},je={CANNOT_QUERY_FRAGMENT:{message:"Cannot submit a GraphQL request with a fragment query",code:800},GRAPHQL_ERROR_PAYLOAD:{message:"Error in GraphQL response",code:801},GRAPHQL_INVALID_LOOKUP:{message:"Could not lookup the graphql query - invalid query",code:802}},Me={CANNOT_CONNECT:{message:"Connection to Realtime failed",code:700},PAYLOAD_DATA_DOES_NOT_EXIST:{message:"Realtime response decorated payload data does not exist",code:701},PAYLOAD_DECORATION_DOES_NOT_EXIST:{message:"Realtime response decorated payload decoration does not exist",code:702},PAYLOAD_RESULT_DOES_NOT_EXIST:{message:"Realtime response decorated payload result does not exist",code:703},COMMON_TIME_ERROR:{message:"Error event emitted from common-time",code:704},EVENT_ERROR:{message:"Event data received from Realtime is invalid",code:705},EVENT_RESPONSE_ERROR:{message:"Event data contains GraphQL decoration errors",code:706},PAYLOAD_DATA_IS_NOT_COMPLETE:{message:"Realtime decorated payload does not contain all the fields needed for processing the event",code:707}},Ne=function(e){return e instanceof Error},Pe=function(e){return e instanceof Le},De=function(e){var t=e
return void 0!==t.status&&null!==t.status},Ue=function(e){return void 0!==e.status}
P=Symbol.toPrimitive
var Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(n,y(Error))
var t=function(e){var t=m()
return function(){var n,i=h(e)
if(t){var r=h(this).constructor
n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments)
return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return b(e)}(this,n)}}(n)
function n(e,i,r,o,a){var s
return u(this,n),p(b(s=t.call(this,"<web-messenger-data> [".concat(e,"] ").concat(r," (").concat(i,") ").concat(n.getMessageFromCause(o)).trimEnd())),"namespace",void 0),p(b(s),"code",void 0),p(b(s),"originalStatusCodes",[]),p(b(s),"cause",void 0),s.name="MDError",s.code=i,s.namespace=e,s.cause=o,s.originalStatusCodes=null!=a?a:[],Object.setPrototypeOf(b(s),(this instanceof n?this.constructor:void 0).prototype),s}return f(n,[{key:"id",get:function(){return"".concat(this.namespace,":").concat(this.code)}},{key:P,value:function(e){return"string"===e?this.toString():null}}],[{key:"fromUnknown",value:function(e,t){var i=Oe[e],r=i.code,o=i.message
return Ne(t)?new n("client",r,"".concat(o," - ").concat(t.message)):new n("client",r,o)}},{key:"fromMDResponseError",value:function(e,t){var i=t.message||t.code,r=void 0!==i?"".concat(e," ").concat(i):e
return new n("api",t.status,r)}},{key:"fromClientErrorMemo",value:function(e,t){var i=Oe[e]
return new n("client",i.code,i.message,t)}},{key:"fromClientErrorMemoWithComment",value:function(e,t,i){var r=Oe[e],o=r.code,a=r.message
return new n("client",o,"".concat(a," - ").concat(t),i)}},{key:"fromInvalidType",value:function(e,t,i){var r=Oe.INVALID_TYPE_ARGUMENT,o=r.code,a=r.message,s="".concat(e,"() invalid argument: ").concat(t," is not a valid ").concat(i,"'")
return new n("client",o,"".concat(a," - ").concat(s))}},{key:"fromApiErrorMemo",value:function(e,t){var i=Re[e],r=i.code,o=i.message
return new n("api",r,"".concat(o).concat(null!=t&&t.msg?" - "+t.msg:""),null==t?void 0:t.cause,null==t?void 0:t.originalStatusCodes)}},{key:"fromGraphQLErrorMemo",value:function(e,t){var i=je[e]
return new n("graphql",i.code,i.message,t)}},{key:"fromRealtimeErrorMemo",value:function(e,t){var i=Me[e]
return new n("realtime",i.code,i.message,t)}},{key:"buildCommonTimeError",value:function(e){var t=Me.COMMON_TIME_ERROR.message,i=e.message?"".concat(t," - ").concat(e.message):t,r=E(De(e)?[e.originalEvent,e.status]:[void 0,Me.COMMON_TIME_ERROR.code],2),o=r[0]
return new n("realtime",r[1],i,o)}},{key:"buildGraphQLPayloadError",value:function(e,t){var i,r,o=je.GRAPHQL_ERROR_PAYLOAD.message,a=e.message,s='"'.concat(t,'" ').concat(o," - ").concat(null!=a?a:"")
return new n("graphql",null!==(i=null===(r=e.extensions)||void 0===r?void 0:r.status)&&void 0!==i?i:je.GRAPHQL_ERROR_PAYLOAD.code,s)}},{key:"getMessageFromCause",value:function(e){return!e||Array.isArray(e)&&0===e.length?"":Array.isArray(e)?"- [cause]: ".concat(e.map((function(e){return e.message})).join()):"- [cause]: ".concat(e.message)}}]),n}(),Fe={fullyLoaded:!1,loading:!1,nextCursor:null,syncToken:null,lastRequestId:0},Be={observers:null,realtime:null,store:null}
function qe(e){return e&&null!==e.store&&null!==e.observers&&null!==e.realtime}var He,Ge={},Ve=function(e){return function(t){return!!ie(t)&&t.entityUrn===e}},Ke=function(e){return function(t){return!!ie(t)&&e.includes(t.entityUrn)}},We=function(e){return function(t){return e===(le(e)?t.entityUrn:t.clientId)}},ze=function(e){return function(t){return t.entityUrn===e}},Xe=function(e){return function(t){return t.clientId===e}},Qe=function(e){return function(t){return void 0!==e[t.clientId]&&null!==e[t.clientId]}},Ye=function(e){return void 0!==e.conversationUrn},$e=function(e){return void 0!==e.messageUrn},Je=function(e){return $e(e)||Ye(e)},Ze=function(e){var t,n,i,r,o,a,s,c,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{renderContent:[]}
return{renderContent:"ADD"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ADD")?rt([].concat(k(e.renderContent),k(l.renderContent))):l.renderContent,messageRequestContextByRecipient:null!==(t=l.messageRequestContextByRecipient)&&void 0!==t?t:e.messageRequestContextByRecipient,quickActionContextUrn:null!==(n=l.quickActionContextUrn)&&void 0!==n?n:e.quickActionContextUrn,invitationUrn:null!==(i=l.invitationUrn)&&void 0!==i?i:e.invitationUrn,forwardedMessageUrn:null!==(r=l.forwardedMessageUrn)&&void 0!==r?r:e.forwardedMessageUrn,conversationState:null!==(o=l.conversationState)&&void 0!==o?o:e.conversationState,conversationTitle:null!==(a=l.conversationTitle)&&void 0!==a?a:e.conversationTitle,hostMessageCreateContent:null!==(s=l.hostMessageCreateContent)&&void 0!==s?s:e.hostMessageCreateContent,messageSubject:null!==(c=l.messageSubject)&&void 0!==c?c:e.messageSubject}},et=function(e){return function(t){var n
return t?o(o(o({},t),e),{},{optionalSendData:e.optionalSendData?Ze(t.optionalSendData,e.optionalSendData,"REPLACE"):t.optionalSendData,status:"Delivered"===t.status?"Delivered":null!==(n=e.status)&&void 0!==n?n:t.status,additionalData:e.additionalData||t.additionalData,entityUrn:t.entityUrn||e.entityUrn,clientId:t.clientId}):e}},tt=function(e){return e.connected.api},nt=function(e){return e.slice().sort((function(e,t){return t.lastActivityAt.getTime()-e.lastActivityAt.getTime()}))},it=function e(t,n){if(t===n)return!0
if(null==t||"object"!=s(t)||null==n||"object"!=s(n))return!1
var i=Object.keys(t),r=Object.keys(n)
if(i.length!=r.length)return!1
for(var o=0,a=i;o<a.length;o++){var c=a[o]
if(!r.includes(c)||!e(t[c],n[c]))return!1}return!0},rt=function(e){return e.reduce((function(e,t){return e.some((function(e){return it(e,t)}))||e.push(t),e}),[])},ot=function(e,t){if(e.length!==t.length)return!1
var n=new Set(e)
return t.every((function(e){return n.has(e)}))},at=function(e){return e.reduce((function(e,t){return[].concat(k(e),k(t.messages))}),[])},st=function(e){return void 0===e.messages&&void 0!==e.status},ct=function(e,t){var n,i,r,a,s
if(t.lastActivityAt&&t.lastActivityAt<e.lastActivityAt)return e
var c=ht(null!==(n=e.seenReceiptsMap)&&void 0!==n?n:{},null!==(i=t.seenReceiptsMap)&&void 0!==i?i:{})
return o(o(o({},e),t),{},{participants:t.participants&&t.participants.length>0?t.participants:e.participants,lastActivityAt:null!==(r=t.lastActivityAt)&&void 0!==r?r:e.lastActivityAt,status:o(o({},e.status),t.status),metadata:{prevCursor:null!==(a=t.metadata)&&void 0!==a&&a.prevCursor&&""!==t.metadata.prevCursor?t.metadata.prevCursor:e.metadata.prevCursor,syncToken:null!==(s=t.metadata)&&void 0!==s&&s.syncToken&&""!==t.metadata.syncToken?t.metadata.syncToken:e.metadata.syncToken},seenReceiptsMap:c,quickReplies:t.quickReplies&&t.quickReplies.length>0?t.quickReplies:e.quickReplies})},lt=function(e,t){var n,i,r,a
if(st(t))return o(o({},e),{},{status:o(o({},e.status),t.status)})
var s=t.participants||[],c=k(t.messages||[]),l=t.matchingSearches||[]
return o(o(o({},e),t),{},{participants:s.length>0?L(e.participants,s).filter((function(e){return void 0!==e})).sort():e.participants,messages:c.length>0?e.messages.add(c):e.messages,clientId:e.clientId,draftMessage:t.draftMessage||e.draftMessage,matchingSearches:l.length>0?L(e.matchingSearches,l):e.matchingSearches,metadata:{prevCursor:null!==(n=t.metadata)&&void 0!==n&&n.prevCursor&&""!==(null===(i=t.metadata)||void 0===i?void 0:i.prevCursor)?t.metadata.prevCursor:e.metadata.prevCursor,syncToken:null!==(r=t.metadata)&&void 0!==r&&r.syncToken&&""!==(null===(a=t.metadata)||void 0===a?void 0:a.syncToken)?t.metadata.syncToken:e.metadata.syncToken},quickReplies:t.quickReplies&&t.quickReplies.length>0?t.quickReplies:e.quickReplies})},ut=function(e,t){return function(n){var i=n.entityUrn?e.get(n.entityUrn):void 0,r=t.get(n.clientId)
return void 0!==i||void 0!==r&&(void 0===r.entityUrn||void 0===n.entityUrn)}},dt=function(e,t){return function(n){var i=e.state.draftConversations.get(t)||e.state.conversations.getByIdentifier(t,"FullMailboxState")
if(!i)throw Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Checking is in message list")
return void 0!==i.messages.getByIdentifier(n)}},ft=function(e,t,n){if(0===t.length)return[]
var i=t[0].message,r=e.messages.last()
if(!r)return[]
var o=r.entityUrn
return n&&n.deliveredAt&&(o=r.deliveredAt.getTime()>n.deliveredAt.getTime()?r.entityUrn:n.entityUrn),o===i.entityUrn?t:[]},pt=function(){i.Client.close(!1),function(){try{for(var e in Ge)delete Ge[e]}catch(e){console.error("clearStateTable",e)}}()},ht=function(e,t){var n=t?function(e,t){var n=o({},e)
return R(t).forEach((function(e){var i=t[e]
if(!j(i)){var r,o=n[e]
O(o)?(r=n[e]).push.apply(r,k(i)):n[e]=i.slice().sort((function(e,t){return e.seenAt-t.seenAt}))}})),n}(e,t):e
return function(e){var t=function(e){var t={}
return R(e).forEach((function(n){t[e[n].messageUrn]?t[e[n].messageUrn].push({participantUrn:n,seenAt:e[n].seenAt}):t[e[n].messageUrn]=[{participantUrn:n,seenAt:e[n].seenAt}]})),t}(function(e){var t={}
return R(e).forEach((function(n){e[n].forEach((function(e){var i=e.participantUrn
if(t[i]){var r=t[i].seenAt
new Date(e.seenAt)>new Date(r)&&(t[i]={messageUrn:n,seenAt:e.seenAt})}else t[i]={messageUrn:n,seenAt:e.seenAt}}))})),t}(e))
return t}(n)},gt=function(e){return e.reduce((function(e,t){return e.some((function(e){return e.entityUrn===t.entityUrn||ot(e.recipients,t.recipients)}))||e.push(t),e}),[])},mt=function(e){return e.sort((function(e,t){return t.lastEditedAt-e.lastEditedAt}))},vt=function(e,t){if(ae(t))return e.get(t)
var n,i=S(e.entries())
try{for(i.s();!(n=i.n()).done;){var r=E(n.value,2)[1]
if(r.entityUrn===t)return r}}catch(e){i.e(e)}finally{i.f()}},yt=function(e,t){return e.lastActivityAt.getTime()>=t},bt=function(e,t){var n=e.reduce((function(e,t){return o(o({},e),{},p({},t.hostIdentityUrn,t))}),{}),i=t.reduce((function(e,t){return o(o({},e),{},p({},t.hostIdentityUrn,t))}),n)
return N(i)},Et=function(e){var t=e.participants.find((function(e){return e.includes("UNKNOWN")}))
return t&&V("messenger-data","Realtime ⚡️","New Message conversation update contains invalid participants."),t?o(o({},e),{},{participants:[]}):e},kt=function(e){return[e.filter(Ye).map((function(e){return e.conversationUrn})).sort(),e.filter($e).map((function(e){return e.messageUrn})).sort()]},_t=function(){return St.fromConversationArray([])},Tt=function(e){return!0}
He=Symbol.iterator
var St=function(){function e(t,n){u(this,e),p(this,"_conversations",void 0),p(this,"_filterPredicate",void 0),p(this,"_entityUrnIndex",void 0),p(this,"_clientIdIndex",void 0),p(this,"_idx",0),this._conversations=nt(t),this._filterPredicate=n||Tt,this._entityUrnIndex=new Map(this._conversations.map((function(e){return[e.entityUrn,e]}))),this._clientIdIndex=new Map(this._conversations.map((function(e){return[e.clientId,e]})))}return f(e,[{key:"getByIdentifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState",n=le(e)?this._entityUrnIndex.get(e):this._clientIdIndex.get(e)
return"FullMailboxState"===t||n&&this._filterPredicate(n)?n:void 0}},{key:"filterPredicate",get:function(){return this._filterPredicate}},{key:"filtered",value:function(t){return new e(this._conversations,t)}},{key:He,value:function(){return this}},{key:"next",value:function(){for(;this._idx<this._conversations.length&&!this._filterPredicate(this._conversations[this._idx]);)this._idx++
return this._idx<this._conversations.length?{done:!1,value:this._conversations[this._idx++]}:(this._idx=0,{done:!0,value:void 0})}},{key:"last",value:function(){if(0!==this._conversations.length){for(var e=this._conversations.length-1;e>=0&&!this._filterPredicate(this._conversations[e]);)e--
return e>=0?this._conversations[e]:void 0}}},{key:"first",value:function(){if(0!==this._conversations.length){for(var e=0;e<this._conversations.length&&!this._filterPredicate(this._conversations[e]);)e++
return e<this._conversations.length?this._conversations[e]:void 0}}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return this._conversations.filter("FilteredMailboxState"===t?this._filterPredicate:function(){return!0}).find(e)}},{key:"findMessage",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return null===(t=this._conversations.filter("FilteredMailboxState"===n?this._filterPredicate:function(){return!0}).find((function(t){return void 0!==t.messages.getByIdentifier(e)})))||void 0===t?void 0:t.messages.getByIdentifier(e)}},{key:"filter",value:function(e){return this._conversations.filter(this._filterPredicate).filter(e)}},{key:"updateItem",value:function(t,n){return new e(I(t,n)(this._conversations))}},{key:"updateItemByIdentifier",value:function(t,n){var i
if(!(i=le(t)?this._entityUrnIndex.get(t):this._clientIdIndex.get(t)))throw Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Updating item by identifier")
var r=this._conversations.map((function(e){return e.clientId===i.clientId?ct(e,n):e}))
return new e(r,this._filterPredicate)}},{key:"addItem",value:function(t){var n=!1,i=this._conversations.map((function(e){return e.entityUrn===t.entityUrn?(n=!0,lt(e,t)):e}))
return new e(n?i:[].concat(k(this._conversations),[t]),this._filterPredicate)}},{key:"addItems",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=A(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return function(n){return void 0===e.find((i=n,function(e){return i.entityUrn===e.entityUrn}),t)
var i}}(this._conversations))(t),r=E(i,2),a=r[0],s=r[1],c=n?a:a.map((function(e){return o(o({},e),{},{categories:[]})})),l=this._conversations.map((function(e){var t=s.find(Ve(e.entityUrn))
return t?lt(e,t):e}))
return new e([].concat(k(l),k(c)),this._filterPredicate)}},{key:"updateAny",value:function(t,n){return new e(x(t,n)(this._conversations))}},{key:"deleteItems",value:function(t){var n
return new e((n=t,e=>e.filter(((e,t)=>!n(e,t))))(this._conversations.filter(this._filterPredicate)),this._filterPredicate)}},{key:"map",value:function(e){return this._conversations.filter(this._filterPredicate).map(e)}},{key:"reduce",value:function(e,t){return this._conversations.filter(this._filterPredicate).reduce(e,t)}},{key:"splitCollection",value:function(t){var n=E(A(t)(this._conversations.filter(this._filterPredicate)),2),i=n[0],r=n[1]
return[new e(i),new e(r)]}},{key:"length",get:function(){return this._conversations.filter(this._filterPredicate).length}},{key:"toString",value:function(){return this.map((function(e){return e.toString()})).toString()}}],[{key:"fromConversationArray",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1?arguments[1]:void 0)}},{key:"fromConversationIterable",value:function(t){return new e(t._conversations,t._filterPredicate)}},{key:"merge",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tt
return new e([].concat(k(t),k(n)),i)}}]),e}(),Ct=function(e,t){var n=void 0,i=void 0
return[function(){for(var r=this,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s]
n?i=e:(e.apply(this,a),i=void 0,n=setTimeout((function(){i&&(i.apply(r,a),i=void 0),n=void 0}),t))},function(){n&&(clearTimeout(n),n=void 0)}]}
function wt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var xt,It="function"==typeof Symbol&&Symbol.observable||"@@observable",At=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rt={INIT:"@@redux/INIT"+At(),REPLACE:"@@redux/REPLACE"+At(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+At()}}
function Ot(e,t,n){var i
if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(wt(0))
if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(wt(1))
return n(Ot)(e,t)}if("function"!=typeof e)throw new Error(wt(2))
var r=e,o=t,a=[],s=a,c=!1
function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(wt(3))
return o}function d(e){if("function"!=typeof e)throw new Error(wt(4))
if(c)throw new Error(wt(5))
var t=!0
return l(),s.push(e),function(){if(t){if(c)throw new Error(wt(6))
t=!1,l()
var n=s.indexOf(e)
s.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1
for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t)
return Object.getPrototypeOf(e)===t}(e))throw new Error(wt(7))
if(void 0===e.type)throw new Error(wt(8))
if(c)throw new Error(wt(9))
try{c=!0,o=r(o,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])()
return e}return f({type:Rt.INIT}),(i={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(wt(10))
r=e,f({type:Rt.REPLACE})}})[It]=function(){var e,t=d
return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(wt(11))
function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[It]=function(){return this},e},i}function jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=Pt(e))||t&&e&&"number"==typeof e.length){n&&(e=n)
var i=0,r=function(){}
return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Nt(e){return function(e){if(Array.isArray(e))return Dt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pt(e,t){if(e){if("string"==typeof e)return Dt(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dt(e,t):void 0}}function Dt(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ft(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Bt(e,t,n){return t&&Ft(e.prototype,t),n&&Ft(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht,Gt=new Uint8Array(16)
function Vt(){if(!Ht&&!(Ht="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return Ht(Gt)}var Kt=/^(?:[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 Wt(e){return"string"==typeof e&&Kt.test(e)}for(var zt=[],Xt=0;Xt<256;++Xt)zt.push((Xt+256).toString(16).slice(1))
function Qt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(zt[e[t+0]]+zt[e[t+1]]+zt[e[t+2]]+zt[e[t+3]]+"-"+zt[e[t+4]]+zt[e[t+5]]+"-"+zt[e[t+6]]+zt[e[t+7]]+"-"+zt[e[t+8]]+zt[e[t+9]]+"-"+zt[e[t+10]]+zt[e[t+11]]+zt[e[t+12]]+zt[e[t+13]]+zt[e[t+14]]+zt[e[t+15]]).toLowerCase()}function Yt(e){if(!Wt(e))throw TypeError("Invalid UUID")
var t,n=new Uint8Array(16)
return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function $t(e,t,n){function i(e,i,r,o){var a
if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e))
for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n))
return t}(e)),"string"==typeof i&&(i=Yt(i)),16!==(null===(a=i)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")
var s=new Uint8Array(16+e.length)
if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0
for(var c=0;c<16;++c)r[o+c]=s[c]
return r}return Qt(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Jt(e){return 14+(e+64>>>9<<4)+1}function Zt(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function en(e,t,n,i,r,o){return Zt((a=Zt(Zt(t,e),Zt(i,o)))<<(s=r)|a>>>32-s,n)
var a,s}function tn(e,t,n,i,r,o,a){return en(t&n|~t&i,e,t,r,o,a)}function nn(e,t,n,i,r,o,a){return en(t&i|n&~i,e,t,r,o,a)}function rn(e,t,n,i,r,o,a){return en(t^n^i,e,t,r,o,a)}function on(e,t,n,i,r,o,a){return en(n^(t|~i),e,t,r,o,a)}$t("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e))
e=new Uint8Array(t.length)
for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16)
t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Jt(t)-1]=t
for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=i,l=r,u=o
n=tn(n,i,r,o,e[a],7,-680876936),o=tn(o,n,i,r,e[a+1],12,-389564586),r=tn(r,o,n,i,e[a+2],17,606105819),i=tn(i,r,o,n,e[a+3],22,-1044525330),n=tn(n,i,r,o,e[a+4],7,-176418897),o=tn(o,n,i,r,e[a+5],12,1200080426),r=tn(r,o,n,i,e[a+6],17,-1473231341),i=tn(i,r,o,n,e[a+7],22,-45705983),n=tn(n,i,r,o,e[a+8],7,1770035416),o=tn(o,n,i,r,e[a+9],12,-1958414417),r=tn(r,o,n,i,e[a+10],17,-42063),i=tn(i,r,o,n,e[a+11],22,-1990404162),n=tn(n,i,r,o,e[a+12],7,1804603682),o=tn(o,n,i,r,e[a+13],12,-40341101),r=tn(r,o,n,i,e[a+14],17,-1502002290),n=nn(n,i=tn(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=nn(o,n,i,r,e[a+6],9,-1069501632),r=nn(r,o,n,i,e[a+11],14,643717713),i=nn(i,r,o,n,e[a],20,-373897302),n=nn(n,i,r,o,e[a+5],5,-701558691),o=nn(o,n,i,r,e[a+10],9,38016083),r=nn(r,o,n,i,e[a+15],14,-660478335),i=nn(i,r,o,n,e[a+4],20,-405537848),n=nn(n,i,r,o,e[a+9],5,568446438),o=nn(o,n,i,r,e[a+14],9,-1019803690),r=nn(r,o,n,i,e[a+3],14,-187363961),i=nn(i,r,o,n,e[a+8],20,1163531501),n=nn(n,i,r,o,e[a+13],5,-1444681467),o=nn(o,n,i,r,e[a+2],9,-51403784),r=nn(r,o,n,i,e[a+7],14,1735328473),n=rn(n,i=nn(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=rn(o,n,i,r,e[a+8],11,-2022574463),r=rn(r,o,n,i,e[a+11],16,1839030562),i=rn(i,r,o,n,e[a+14],23,-35309556),n=rn(n,i,r,o,e[a+1],4,-1530992060),o=rn(o,n,i,r,e[a+4],11,1272893353),r=rn(r,o,n,i,e[a+7],16,-155497632),i=rn(i,r,o,n,e[a+10],23,-1094730640),n=rn(n,i,r,o,e[a+13],4,681279174),o=rn(o,n,i,r,e[a],11,-358537222),r=rn(r,o,n,i,e[a+3],16,-722521979),i=rn(i,r,o,n,e[a+6],23,76029189),n=rn(n,i,r,o,e[a+9],4,-640364487),o=rn(o,n,i,r,e[a+12],11,-421815835),r=rn(r,o,n,i,e[a+15],16,530742520),n=on(n,i=rn(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=on(o,n,i,r,e[a+7],10,1126891415),r=on(r,o,n,i,e[a+14],15,-1416354905),i=on(i,r,o,n,e[a+5],21,-57434055),n=on(n,i,r,o,e[a+12],6,1700485571),o=on(o,n,i,r,e[a+3],10,-1894986606),r=on(r,o,n,i,e[a+10],15,-1051523),i=on(i,r,o,n,e[a+1],21,-2054922799),n=on(n,i,r,o,e[a+8],6,1873313359),o=on(o,n,i,r,e[a+15],10,-30611744),r=on(r,o,n,i,e[a+6],15,-1560198380),i=on(i,r,o,n,e[a+13],21,1309151649),n=on(n,i,r,o,e[a+4],6,-145523070),o=on(o,n,i,r,e[a+11],10,-1120210379),r=on(r,o,n,i,e[a+2],15,718787259),i=on(i,r,o,n,e[a+9],21,-343485551),n=Zt(n,s),i=Zt(i,c),r=Zt(r,l),o=Zt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(Jt(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32
return n}(e),8*e.length))}))
var an={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function sn(e,t,n){if(an.randomUUID&&!t&&!e)return an.randomUUID()
var i=(e=e||{}).random||(e.rng||Vt)()
if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0
for(var r=0;r<16;++r)t[n+r]=i[r]
return t}return Qt(i)}function cn(e,t,n,i){switch(e){case 0:return t&n^~t&i
case 1:case 3:return t^n^i
case 2:return t&n^t&i^n&i}}function ln(e,t){return e<<t|e>>>32-t}$t("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520]
if("string"==typeof e){var i=unescape(encodeURIComponent(e))
e=[]
for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e))
e.push(128)
for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3]
s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295
for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p]
for(var h=16;h<80;++h)f[h]=ln(f[h-3]^f[h-8]^f[h-14]^f[h-16],1)
for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var k=Math.floor(E/20),_=ln(g,5)+cn(k,m,v,y)+b+t[k]+f[E]>>>0
b=y,y=v,v=ln(m,30)>>>0,m=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))
var un=Uint8Array,dn=Uint16Array,fn=Uint32Array,pn=new un([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),hn=new un([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gn=new un([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mn=function(e,t){for(var n=new dn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1]
var r=new fn(n[30])
for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i
return[n,r]},vn=mn(pn,2),yn=vn[0],bn=vn[1]
yn[28]=258,bn[258]=28
for(var En=mn(hn,0)[1],kn=new dn(32768),_n=0;_n<32768;++_n){var Tn=(43690&_n)>>>1|(21845&_n)<<1
Tn=(61680&(Tn=(52428&Tn)>>>2|(13107&Tn)<<2))>>>4|(3855&Tn)<<4,kn[_n]=((65280&Tn)>>>8|(255&Tn)<<8)>>>1}var Sn=function(e,t,n){for(var i=e.length,r=0,o=new dn(t);r<i;++r)e[r]&&++o[e[r]-1]
var a,s=new dn(t)
for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1
if(n){a=new dn(1<<t)
var c=15-t
for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=s[e[r]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)a[kn[d]>>>c]=l}else for(a=new dn(i),r=0;r<i;++r)e[r]&&(a[r]=kn[s[e[r]-1]++]>>>15-e[r])
return a},Cn=new un(288)
for(_n=0;_n<144;++_n)Cn[_n]=8
for(_n=144;_n<256;++_n)Cn[_n]=9
for(_n=256;_n<280;++_n)Cn[_n]=7
for(_n=280;_n<288;++_n)Cn[_n]=8
var wn=new un(32)
for(_n=0;_n<32;++_n)wn[_n]=5
var xn=Sn(Cn,9,0),In=Sn(wn,5,0),An=function(e){return(e+7)/8|0},Rn=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8},On=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},jn=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]})
var r=n.length,o=n.slice()
if(!r)return[Fn,0]
if(1==r){var a=new un(n[0].s+1)
return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001})
var s=n[0],c=n[1],l=0,u=1,d=2
for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=r-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c}
var f=o[0].s
for(i=1;i<r;++i)o[i].s>f&&(f=o[i].s)
var p=new dn(f+1),h=Mn(n[u-1],p,0)
if(h>t){i=0
var g=0,m=h-t,v=1<<m
for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s
if(!(p[y]>t))break
g+=v-(1<<h-p[y]),p[y]=t}for(g>>>=m;g>0;){var b=o[i].s
p[b]<t?g-=1<<t-p[b]++-1:++i}for(;i>=0&&g;--i){var E=o[i].s
p[E]==t&&(--p[E],++g)}h=t}return[new un(p),h]},Mn=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},Nn=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new dn(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o
else{if(!r&&o>2){for(;o>138;o-=138)a(32754)
o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304)
o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r)
o=1,r=e[s]}return[n.subarray(0,i),t]},Pn=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i]
return n},Dn=function(e,t,n){var i=n.length,r=An(t+2)
e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1]
for(var o=0;o<i;++o)e[r+o+4]=n[o]
return 8*(r+4+i)},Un=function(e,t,n,i,r,o,a,s,c,l,u){Rn(t,u++,n),++r[256]
for(var d=jn(r,15),f=d[0],p=d[1],h=jn(o,15),g=h[0],m=h[1],v=Nn(f),y=v[0],b=v[1],E=Nn(g),k=E[0],_=E[1],T=new dn(19),S=0;S<y.length;++S)T[31&y[S]]++
for(S=0;S<k.length;++S)T[31&k[S]]++
for(var C=jn(T,7),w=C[0],x=C[1],I=19;I>4&&!w[gn[I-1]];--I);var A,R,O,j,M=l+5<<3,N=Pn(r,Cn)+Pn(o,wn)+a,P=Pn(r,f)+Pn(o,g)+a+14+3*I+Pn(T,w)+(2*T[16]+3*T[17]+7*T[18])
if(M<=N&&M<=P)return Dn(t,u,e.subarray(c,c+l))
if(Rn(t,u,1+(P<N)),u+=2,P<N){A=Sn(f,p,0),R=f,O=Sn(g,m,0),j=g
var D=Sn(w,x,0)
for(Rn(t,u,b-257),Rn(t,u+5,_-1),Rn(t,u+10,I-4),u+=14,S=0;S<I;++S)Rn(t,u+3*S,w[gn[S]])
u+=3*I
for(var U=[y,k],L=0;L<2;++L){var F=U[L]
for(S=0;S<F.length;++S){var B=31&F[S]
Rn(t,u,D[B]),u+=w[B],B>15&&(Rn(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else A=xn,R=Cn,O=In,j=wn
for(S=0;S<s;++S)if(i[S]>255){B=i[S]>>>18&31,On(t,u,A[B+257]),u+=R[B+257],B>7&&(Rn(t,u,i[S]>>>23&31),u+=pn[B])
var q=31&i[S]
On(t,u,O[q]),u+=j[q],q>3&&(On(t,u,i[S]>>>5&8191),u+=hn[q])}else On(t,u,A[i[S]]),u+=R[i[S]]
return On(t,u,A[256]),u+R[256]},Ln=new fn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Fn=new un(0),Bn=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1
e[t]=n}return e}(),qn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Hn="undefined"!=typeof TextDecoder&&new TextDecoder
try{Hn.decode(Fn,{stream:!0})}catch(io){}function Gn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Vn(){try{return Gn()&&"keepalive"in new Request("")}catch(e){return!1}}function Kn(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress
i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8")
var o=t
if(r&&"undefined"!=typeof TextEncoder)try{o=function(e,t){t||(t={})
var n=function(){var e=-1
return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Bn[255&n^t[i]]^n>>>8
e=n},d:function(){return~e}}}(),i=e.length
n.p(e)
var r,o,a,s=(r=e,o=t,a=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),function(e,t,n,i,r,o){var a=e.length,s=new un(i+a+5*(1+Math.ceil(a/7e3))+8),c=s.subarray(i,s.length-8),l=0
if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535
d>=a&&(c[l>>3]=true),l=Dn(c,l+1,e.subarray(u,d))}else{for(var f=Ln[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,m=new dn(32768),v=new dn(g+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},k=new fn(25e3),_=new dn(288),T=new dn(32),S=0,C=0,w=(u=0,0),x=0,I=0;u<a;++u){var A=E(u),R=32767&u,O=v[A]
if(m[R]=O,v[A]=R,x<=u){var j=a-u
if((S>7e3||w>24576)&&j>423){l=Un(e,c,0,k,_,T,C,w,I,u-I,l),w=S=C=0,I=u
for(var M=0;M<286;++M)_[M]=0
for(M=0;M<30;++M)T[M]=0}var N=2,P=0,D=h,U=R-O&32767
if(j>2&&A==E(u-U))for(var L=Math.min(p,j)-1,F=Math.min(32767,u),B=Math.min(258,j);U<=F&&--D&&R!=O;){if(e[u+N]==e[u+N-U]){for(var q=0;q<B&&e[u+q]==e[u+q-U];++q);if(q>N){if(N=q,P=U,q>L)break
var H=Math.min(U,q-2),G=0
for(M=0;M<H;++M){var V=u-U+M+32768&32767,K=V-m[V]+32768&32767
K>G&&(G=K,O=V)}}}U+=(R=O)-(O=m[R])+32768&32767}if(P){k[w++]=268435456|bn[N]<<18|En[P]
var W=31&bn[N],z=31&En[P]
C+=pn[W]+hn[z],++_[257+W],++T[z],x=u+N,++S}else k[w++]=e[u],++_[e[u]]}}l=Un(e,c,true,k,_,T,C,w,I,u-I,l)}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length)
var i=new(2==e.BYTES_PER_ELEMENT?dn:4==e.BYTES_PER_ELEMENT?fn:un)(n-t)
return i.set(e.subarray(t,n)),i}(s,0,i+An(l)+8)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,a)),c=s.length
return function(e,t){var n=t.filename
if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&qn(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8
for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(s,t),qn(s,c-8,n.d()),qn(s,c-4,i),s}((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Wn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var zn,Xn="undefined"!=typeof navigator&&"sendBeacon"in navigator,Qn=Vn()?function(e,t,n,i){return new Promise((function(r){fetch(e,Kn({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Kn({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Wn(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Xn){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Kn({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Wn(e)})}))}))}
function Yn(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e)
r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}}
var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result
t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}))
return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function Jn(){return zn||(zn=$n("idb-queue","default")),zn}function Zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null
return e.openKeyCursor().onsuccess=function(){var r=this.result
r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},Yn(e.transaction)}var ei=!1
function ti(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jn()
return n("readwrite",(function(n){return n.put(e),Yn(n.count()).then((function(e){if(!(e<=t.maxNumber))return Zn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300}
return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jn())("readwrite",(function(t){return Zn(t,e)}))}(t,n)}))}function ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jn()
return ei?Promise.resolve():ti(e,t,n)}function ii(e,t,n){return t("readonly",(function(t){var i=[]
return t.openCursor(null,n).onsuccess=function(){var t=this.result
t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},Yn(t.transaction).then((function(){return i}))}))}function ri(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0
return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function oi(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function ai(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function si(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4}
"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}var ci=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
Lt(this,e),qt(this,"config",void 0),qt(this,"compress",void 0),qt(this,"throttleControl",void 0),qt(this,"withStore",void 0),qt(this,"disablePersistence",!1),this.config=t,this.compress=i
var r=t.measureIDB
r&&performance.mark(r.createStartMark),this.withStore=$n(t.idbName,"beacons","timestamp",{onSuccess:function(){r&&performance.measure(r.createSuccessMeasure,r.createStartMark)},onError:function(){r&&performance.measure(r.createFailMeasure,r.createStartMark),n.disablePersistence=!0}}),this.throttleControl=function(e,t){var n=0
return{throttledFn:function(){var i=Date.now()
i-n>t&&(oi((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}(this.replayEntries.bind(this),t.throttleWait)}return Bt(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){oi((function(){return"Persisting to DB "+e.url})),ni(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),oi((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,ai((function(){return"push failed"}))}))}
this.config.useIdle?si(n):n()}}},{key:"clear",value:function(){var e=this
return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jn()
return ei=!0,e("readwrite",(function(e){return e.clear(),Yn(e.transaction).finally((function(){return ei=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,ai((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return ii(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jn(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,ai((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return ii(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jn(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,ai((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){oi((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var n=[]
return t.openCursor(null,"next").onsuccess=function(){var t=this.result
t&&(n.push(t.value),t.delete(),(e<0||n.length<e)&&t.continue())},Yn(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jn())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount
return oi((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),Qn(o,a,ri(s,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i
null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,a),e.replayEntries()}else{var r,s,d,f,p,h
if(u+1>e.config.attemptLimit)return oi((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(s=e.config).onResult)||void 0===r||r.call(s,t,a))
if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(f=e.config).onResult)||void 0===d||d.call(f,t,a),oi((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),ni({url:o,body:a,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore)
t.drop=!0,null===(p=(h=e.config).onResult)||void 0===p||p.call(h,t,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&ai((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?si(t):t()}}}]),e}(),li=function(){function e(){Lt(this,e)}return Bt(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),ui=function(){function e(t,n){Lt(this,e),qt(this,"queue",void 0),qt(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new ci(t,n.compress):new li}return Bt(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}()
qt(ui,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var di=[502,504],fi=[429,503],pi=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
Lt(this,e),qt(this,"url",void 0),qt(this,"body",void 0),qt(this,"config",void 0),qt(this,"persistenceConfig",void 0),qt(this,"compress",void 0),qt(this,"timestamp",void 0),qt(this,"isClearQueuePending",!1),qt(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Bt(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.persistenceConfig.db.onClear(this.onClearCallback)
var n=this.retryLimit
return this.retry((function(t){return Qn(e.url,e.body,t,e.compress)}),n,t).finally((function(){oi((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,i){var r=this,o=this.getAttemptCount(t)-1
return e(ri(n,this.config.headerName,o,i)).then((function(i){var o,a,s,c
if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),s=i
else if(oi((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),s={type:"persisted",drop:!1,statusCode:i.statusCode}
else{if(t>0&&r.isRetryableError(i)){var l,u
null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body)
var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t)
return oi((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(s=i).drop=!0}return null===(o=(a=r.config).onIntermediateResult)||void 0===o||o.call(a,s,r.body),s}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}()
function hi(e,t,n){var i=e.get(t)
i&&i.push(n)||e.set(t,[n])}function gi(e,t,n){var i=e.get(t)
i&&i.splice(i.indexOf(n)>>>0,1)}var mi,vi,yi=(mi=new Map,vi=new Map,{on:function(e,t){hi(mi,e,t)},before:function(e,t){hi(vi,e,t)},off:function(e,t){gi(mi,e,t)},offBefore:function(e,t){gi(vi,e,t)},emit:function(e,t){(vi.get(e)||[]).concat(mi.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){vi.clear(),mi.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var bi=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||yi.emit("internal:hide",e)}
document.addEventListener("visibilitychange",bi),window.addEventListener("pagehide",bi)}var Ei=null
if("undefined"==typeof crypto||!crypto.getRandomValues){var ki=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(ki){var _i=new Uint8Array(256),Ti=_i.length
Ei={rng:function(){return Ti>_i.length-16&&(ki.randomFillSync(_i),Ti=0),_i.slice(Ti,Ti+=16)}}}}var Si="object"===("undefined"==typeof crypto?"undefined":Ut(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return function(e){var t=Qt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!Wt(t))throw TypeError("Stringified UUID is invalid")
return t}(Ci())}
function Ci(){return sn(Ei,new Array(16),0)}function wi(e){return Nt(e).map((function(e){return String.fromCharCode(e)})).join("")}function xi(){return wi(Ci())}var Ii=/^[a-zA-Z0-9/+]+[=]+$/
function Ai(e){return Yt(e)}function Ri(e,t){return{pageUrn:ji(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r<s;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3
switch(a){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=")
break
case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(Ci())}}function Oi(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function ji(e){return"urn:li:page:".concat(e)}function Mi(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Ni(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()}
0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function Pi(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function Di(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var i="sequenceNumber",r=window.indexedDB.open(i)
return new Promise((function(o,a){r.onupgradeneeded=function(){var e=r.result
e.objectStoreNames.contains(i)||e.createObjectStore(i,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,c=s.transaction(i,"readwrite"),l=c.objectStore(i),u=l.get(1)
u.onsuccess=function(){var i=u.result
if(i){if("read"===e)return o(i)
if("update"!==e)return o(null)
var r,s=Object.assign({},i),c=!1,d=null!==(r=s.sequenceNumber)&&void 0!==r?r:0
if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,i=null!==(t=s[e])&&void 0!==t?t:0,r=n[e]
r>i&&(s[e]=r,c=!0)})),c){var f=l.put(s,1)
f.onsuccess=function(){return o(null)},f.onerror=function(){a(f.error)}}}else{var p={sequenceNumber:0}
n&&Object.keys(n).forEach((function(e){p[e]=0}))
var h=l.add(p)
h.onsuccess=function(){return o(0)},h.onerror=function(){a(h.error)}}},u.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},c.oncomplete=function(){return s.close()}},r.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function Ui(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Gn()||"undefined"==typeof Promise}function Li(e,t){yi.emit("internal:error",{tags:["core-web-tracking:".concat(e)],reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t))})}function Fi(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&Vn()&&t&&n}var Bi=function(){function e(t){Lt(this,e),qt(this,"host",void 0),this.host=t}return Bt(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment()
this.host.retryConfig&&function(e,t,n,i,r){"control"!==i&&e.retryConfig&&Fi()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase("beacons")
return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}()
var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},l=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:di,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry)
if(t.retryDB)e=t.retryDB
else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:fi,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
r.headerName=r.headerName||i.headerName,e=new ui(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s
return Gn()?new pi(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||fi},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),f=d.beacon,p=d.database
return e.retryBeacon={shouldRetry:!0,beacon:f,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body)
if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Li("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Li("retry:setup",e)}))}(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon
if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){Li("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment()
Vn()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){Li("retry:beacon",e)}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&(Ui()?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest
if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var a=o[r]
i.setRequestHeader(a,n.headers[a])}i.send(t)}}(e,JSON.stringify(t),{headers:n}):Qn(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n
if(!this.host.retryConfig)return"control"
var i=this.host.retryConfig.lixKey
return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t
return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&Fi()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),qi="undefined"!=typeof window&&"undefined"!=typeof document,Hi=/JSESSIONID="?([^";]+)"?/,Gi="",Vi=0
function Ki(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?Hi:i
if(!Gi||Date.now()-Vi>n){var o=qi&&document.cookie.match(r)
Gi=o&&o[1]||"",Vi=Date.now()}return Gi}var Wi=function(){function e(t){Lt(this,e),qt(this,"networkTransporter",void 0),qt(this,"inactive",void 0),qt(this,"mpName",void 0),qt(this,"endpoint",void 0),qt(this,"debug",void 0),this.networkTransporter=new Bi(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
switch(e){case"https://www.linkedin.com/li/track":t=Xi
break
case"https://www.linkedin-ei.com/li/track/validate":default:n=!0,t=zi
break
case"https://www.linkedin-ei.com/li/track":t=zi}return{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return Bt(e,[{key:"fireFragment",value:function(e){var t
if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":Ki(),"x-restli-protocol-version":"2.0.0"},i=[],r=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=r.failures,a=r.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,Nt(t.failures)),e}),[]);[].concat(Nt(o),Nt(a)).forEach((function(e){var t=e.reason,n=e.rawError,r=e.eventTopic,o=e.header,a=e.requestHeader
i.push({reason:t,rawError:n,failedTopicName:r,header:o,requestHeader:a})}))
var s={clientTrackingFailures:i,debug:this.debug}
this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}(),zi="https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures",Xi="https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"
function Qi(e){return"string"==typeof e}function Yi(e){return Qi(e)?e:e.topicName||e.eventName}function $i(e){return Qi(e)?e:e.eventName}var Ji,Zi,er,tr=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
Lt(this,e),qt(this,"host",void 0),qt(this,"cmoTransporter",void 0),qt(this,"clientMonitoringInstanceId",xi()),qt(this,"currentContext",{pageKey:"unknown",pageInstance:Ri("unknown")}),qt(this,"appState",{}),qt(this,"estimatedFragmentSize",0),qt(this,"fragmentSizeLimit",void 0),qt(this,"activeFragmentEvent",void 0),qt(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new Wi(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=ir(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Bt(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this
void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring()
var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated
return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId()
t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats
t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,i=Mt(this.activeFragmentEvent.stats.previousInstanceEventStats)
try{for(i.s();!(n=i.n()).done;){var r=n.value
if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]}
t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:$i(t),eventTopic:Yi(t)}
this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0
var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent
i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=ir(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0
this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=rr(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=rr(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:xi(),memberId:0}}}}]),e}()
function nr(e){return Ji||(Ji=new tr(e)),{getCurrentInstanceId:function(){return Ji.getCurrentInstanceId()},logEventGenerated:function(e){return Ji.logEventGenerated(e)},logEventReadyToSend:function(e){Ji.logEventReadyToSend(e)},logEventSent:function(e){Ji.logEventSent(e)},logPersistedEventSent:function(e,t){Ji.logEventSent(t,e)},logNetworkResponseCode:function(e){Ji.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=Ji)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Ji.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Ji.logFailedEvent(t,n,i,r,e)},flush:function(){Ji.flush()},destroy:function(){Ji=void 0},isDestroyed:function(){return void 0===Ji},setCurrentContext:function(e){Ji.setCurrentContext(e)},updateAppState:function(e){Ji.updateAppState(e)}}}function ir(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:r.requestHeader,header:r.header}}function rr(e){return Array.isArray(e)?wi(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Ii)}(e)?atob(e):wi(Ai(e))}(er=Zi||(Zi={})).NONE="NONE",er.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",er.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",er.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",er.RETRIES_EXCEEDED="RETRIES_EXCEEDED",er.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",er.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",er.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"
var or,ar,sr,cr=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],lr="PageViewEvent",ur=function(){function e(t){var n=this
Lt(this,e),qt(this,"host",void 0),qt(this,"queue",void 0),qt(this,"preContextQueue",void 0),qt(this,"debounceTimer",void 0),qt(this,"unloadHandlers",void 0),qt(this,"maxQueueSize",void 0),qt(this,"flushDebounceTime",void 0),qt(this,"trackingEventListeners",[]),qt(this,"onHideHandler",(function(){n.forceFlush()})),qt(this,"networkTransporter",void 0),qt(this,"clientMonitoringConn",void 0),qt(this,"clientGlobalSequenceNumberCounter",void 0),qt(this,"clientTopicLocalSequenceNumberCountersMap",{}),qt(this,"isTimerRunning",void 0),qt(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var i=t.batching
this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,yi.on("internal:hide",this.onHideHandler),this.networkTransporter=new Bi(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=nr(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Bt(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i
if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return
e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logFailedEvent(Zi.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-1)}))}catch(e){}},onBeforeRetry:function(e){var n
if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return
var i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length
t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i
if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return
var r=i[0].eventBody.header.clientMonitoringInstanceId
e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logPersistedFailedEvent(r,Zi.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}})
this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e)
this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(Yi(e.id)))
var n=this.host,i=n.api.Promise,r=n.batching
if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t)
null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1)
var s=Yi(a.id)
if(this.isLixEnabled("pemberly.tracking.generic-event-immediate-fire")&&("GenericActionEvent"===s||"GenericImpressionEvent"===s)){var c=[a]
return this.sendPayload(c),i.resolve(!0)}return this.queue.push(a),r?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))}return this.preContextQueue.push(t),i.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,yi.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(e){var t=this
this.populatePreContextQueue({pageInstance:Ri("unknown"),pageKey:"unknown"}).forEach((function(n){t.isLixEnabled("pemberly.tracking.even-batch")&&Array.isArray(e)?e.push(n):t.queue.push(n)})),this.isLixEnabled("pemberly.tracking.even-batch")&&Array.isArray(e)&&e.length>0?this.sendPayload(e):this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n
return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this
Di("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,cr.forEach((function(n){var i
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){Li("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Di("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Li("sequence-number:idb-update",e)}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this
"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=Mi(e.meta.context,this.host.api)
return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,a={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)}
return n.length>0&&this.host.api.assign(a,{clientBreadcrumbs:n}),a}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,f=function(e){return"string"==typeof e?e===lr:e.eventName===lr}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null
"string"!=typeof r&&null!==this.host.locale||(p=r)
var h={interfaceLocale:p,pageKey:f,path:a.pathname+a.search,referer:s.referrer,isFlushOnCloseBrowserTabEnabled:!Ui()&&(Vn()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},g={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:xi(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(g,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var m=Yi(e.id)
if(cr.includes(m)){var v=this.clientTopicLocalSequenceNumberCountersMap[m]
"number"==typeof v&&c(g,{clientTopicLocalSequenceNumber:v})}var y={header:c(g,e.meta.header||{}),requestHeader:c(h,e.meta.requestHeader||{})},b=e.meta.clientMonitoringInstanceId,E=e.meta.clientMonitoringInstanceEventNumber
return b&&c(y.header,{clientMonitoringInstanceId:b,clientMonitoringInstanceEventNumber:E}),c(e.body,y)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue
return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e,t){var n=this
e((function(){n.forceFlush(t)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this.host.api.requestIdleCallback
e||!n?this.sendPayload():Array.isArray(t)&&t.length>0?this.requestFlush(n,t):this.requestFlush(n)}},{key:"batchFire",value:function(){var e=this
if(this.queue.length>this.maxQueueSize)if(this.isLixEnabled("pemberly.tracking.even-batch")){var t=this.queue
this.queue=[],this.flush(!1,t)}else this.flush()
else this.debounceTimer&&clearTimeout(this.debounceTimer),this.isLixEnabled("pemberly.tracking.even-batch")?this.debounceTimer=setTimeout((function(){return e.flush(!0)}),this.flushDebounceTime):this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime)}},{key:"sendPayload",value:function(e){var t,n=this
if(Array.isArray(e)?t=e:(t=this.queue,this.queue=[]),0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3))
var i,r,o=[],a=[]
t.forEach((function(e){var t=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),r=n.envelop(e.id,t,i)
n.trigger(r,e.meta)
var s=r.eventInfo.eventName
if("LixTreatmentsEvent"===s||"JavaScriptErrorEvent"===s?o.push(r):a.push(r),n.enableSequenceNumberLix){"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var c=Yi(e.id)
cr.includes(c)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[c]&&n.clientTopicLocalSequenceNumberCountersMap[c]++}})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(o.length+a.length),r=this.clientMonitoringConn,i={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ")
null==r||r.logFailedEvent(Zi.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,o,void 0,i),this.networkTransporter.sendPayload(this.host.endpoint,a,void 0,i))}}}]),e}(),dr=function(){function e(t,n){Lt(this,e),this.clientBreadcrumbType=t,this.id=n}return Bt(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.toString()]=n,t}}})
return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}()
function fr(e){if(!e)return{}
var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu)
e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0)
var r,o=e.lipi&&function(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi)
if(o?r={pageInstance:o,pageKey:t}:t&&(r={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page)
r={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0
return s&&((r=r||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:r,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function pr(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(or||(or={})),Bt((function e(t,n){var i,r
if(Lt(this,e),qt(this,"transporter",void 0),qt(this,"delegate",void 0),qt(this,"currentContext",void 0),qt(this,"appState",void 0),qt(this,"previousAppContext",void 0),qt(this,"customTransporters",void 0),qt(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var a=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[o]=new ur(this.transporter.host.api.assign(a,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=nr(t.host))}),[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){pr(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=pr(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Mi(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.navMetaFromSeed(e,fr(t))
if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t
this.currentContext=Mi(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Mi(e,this.host.api))}},{key:"updateAppState",value:function(e){var t
this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=Oi(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t}
return r&&r(o),a}),{context:n})}},{key:"fireEvent",value:function(e,t,n,i){if(!t){var r=Yi(e),o=void 0===t?"undefined":null===t?"null":Ut(t),a='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(o,'"')
if(this.clientMonitoringConn){var s=this.clientMonitoringConn.logEventGenerated(r)
this.clientMonitoringConn.logFailedEvent(Zi.MISSING_REQUIRED_PROPERTIES,e,a,s)}throw new Error(a)}var c=i||[]
if(c.length>0){var l=c.map((function(e){return dr.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n)
return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=this.generateEnvelope(e,t,n)
return i.length>0?this.addBreadcrumbsToEnvelope(r,i):r}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e
return delete t.clientBreadcrumbType,t}))
return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n
if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(Qi(e.id)){var i=e.id
e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0
var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e
if(r){var o=r.meta.transporterKey,a=o?this.customTransporters[o]:this.transporter
if(!a&&o){var s=Yi(r.id),c="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(Zi.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Ri(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{key:"_firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{context:n})
return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy()
this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),yi.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return Oi((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t}
return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from
return{previousPageInstance:i&&i.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent"
this.previousAppContext=t.previousContext
var i=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n
return{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t)
o.meta.requestHeader.pageKey=n.pageKey
var a=i&&i.applicationInstance
return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Mi(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:i}}}]),Bt((function e(t,n){var i,r=this
Lt(this,e),qt(this,"core",void 0),qt(this,"protocol",void 0),qt(this,"throttleKeySet",new Set),qt(this,"config",void 0),qt(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),r.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t
var o=this.core.host.api.location.protocol
this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100},yi.on("internal:error",this.reportTransporterError)}),[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,a=void 0===o?"":o,s=r.responseHeaders,c=void 0===s?{}:s,l=e.message,u=e.name,d=e.stack,f=void 0===d?"":d,p=e.fileName,h=void 0===p?"":p,g=e.lineNumber,m=void 0===g?0:g,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,k=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,C=void 0===S?"":S,w=b.api,x=w.Promise,I=w.location,A=I.host,R=I.pathname,O=I.search,j=I.hash,M=void 0===j?"":j
if(c){t={}
var N=new Map
Object.keys(c).forEach((function(e){N.set(e.toLowerCase(),c[e])})),t.callTreeId=N.get("x-li-uuid"),t.microsoftEdgeReference=N.get("x-msedge-ref"),t.pointOfPresenceId=N.get("x-li-pop"),t.fabric=N.get("x-li-fabric")}var P=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:m,m:l,s:f,t:u,u:h},h:M,l:n.protocol,o:A,p:R,pageKey:e.pageKey,q:O,service:_,serviceInstance:T,serviceVersion:k,t:i,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:a,responseTraceHeaders:t}}))}
if(this.config.throttleTime<0)return P()
var D=function(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}(u+l+f+i.join("")+a)
return this.throttleKeySet.has(D)?x.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),P())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),yi.off("internal:error",this.reportTransporterError)}}]),function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix"}(ar||(ar={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent"}(sr||(sr={}))
var hr,gr,mr,vr,yr,br,Er=(qt(xt={},"web-ui-framework","EMBER"),qt(xt,"app-id","linkedin.rum.tracking"),qt(xt,"app-version","unknown"),qt(xt,"is-single-page-app",!0),qt(xt,"user-timing-mark-enabled",!1),qt(xt,"user-timing-measure-enabled",!0),qt(xt,"beacon-source","apps"),qt(xt,"enable-rs-timing",!0),qt(xt,"enable-cdn-tracking",!1),qt(xt,"async-plugins-timeout",5e3),qt(xt,"beacon-timeout",3e4),qt(xt,"enable-memory-measurement",!1),qt(xt,"pageKeyPrefix",""),xt),kr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],_r={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},Tr={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Sr="rum token passed is invalid",Cr=function(){function e(){Lt(this,e),qt(this,"userTimingEntries",[]),qt(this,"longTasks",[]),qt(this,"resourceTimingEntries",[]),qt(this,"cdnData",void 0)}return Bt(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name)
n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(xr),cdnData:this.cdnData}}}]),e}(),wr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function xr(e){return wr.reduce((function(t,n){var i=e[n]
return void 0!==i&&(t[n]=i),t}),{})}function Ir(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=Pr(function(e){var t=e.getAttribute("id")
return t&&yr.idName(t)?{name:"#"+Wr(t,{isIdentifier:!0}),penalty:0}:null}(o))||Pr.apply(void 0,Nt(function(e){return Array.from(e.attributes).filter((function(e){return yr.attr(e.name,e.value)})).map((function(e){return{name:"["+Wr(e.name,{isIdentifier:!0})+'="'+Wr(e.value)+'"]',penalty:.5}}))}(o)))||Pr.apply(void 0,Nt(function(e){return Array.from(e.classList).filter(yr.className).map((function(e){return{name:"."+Wr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Pr(function(e){var t=e.tagName.toLowerCase()
return yr.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode
if(!t)return null
var n=t.firstChild
if(!n)return null
for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling
return i}(o)
if(t===vr.All)s&&(e=e.concat(e.filter(Nr).map((function(e){return Mr(e,s)}))))
else if(t===vr.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Nr).map((function(e){return Mr(e,s)}))))
else if(t===vr.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o=[],a=!0,s=!1
try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),1!==o.length);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e)||Pt(e,1)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e=e.slice(0,1))[0]
s&&Nr(c)&&(e=[Mr(c,s)])}var l,u=Mt(e)
try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=yr.seedMinLength&&(i=Ar(r,n)))return"break"
o=o.parentElement,a++};o&&o!==yr.root.parentElement&&"break"!==s(););return i||(i=Ar(r,n)),i}function Ar(e,t){var n=Lr(Ur(e))
if(n.length>yr.threshold)return t?t():null
var i,r=Mt(n)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(jr(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Rr(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0
n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function Or(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function jr(e){switch(br.querySelectorAll(Rr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Rr(e)))
case 1:return!0
default:return!1}}function Mr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Nr(e){return"html"!==e.name&&!e.name.startsWith("#")}function Pr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var i=t.filter(Dr)
return i.length>0?i:null}function Dr(e){return null!=e}function Ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,i=[],r=Mt(e[0])
try{for(r.s();!(n=r.n()).done;){var o=n.value
i=i.concat(Ur(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function Lr(e){return Array.from(e).sort((function(e,t){return Or(e)-Or(t)}))}function Fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[]
if(e.length>2&&e.length>yr.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>yr.maxNumberOfTries)return i
n.counter+=1
var o=Nt(e)
o.splice(r,1)
var a=Rr(o)
if(n.visited.has(a))return i
jr(o)&&Br(o,t)&&(i.push(o),n.visited.set(a,!0),i=i.concat(Fr(o,t,n)))}return i}function Br(e,t){return br.querySelector(Rr(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(hr||(hr={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(gr||(gr={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(mr||(mr={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(vr||(vr={}))
var qr,Hr=/[ -,\.\/:-@\[-\^`\{-~]/,Gr=/[ -,\.\/:-@\[\]\^`\{-~]/,Vr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Kr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Kr),t)
"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single")
for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s<c;){var l=e.charAt(s++),u=l.charCodeAt(0),d=void 0
if(u<32||u>126){if(u>=55296&&u<=56319&&s<c){var f=e.charCodeAt(s++)
56320==(64512&f)?u=((1023&u)<<10)+(1023&f)+65536:s--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Hr.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&Gr.test(l)?"\\"+l:l
a+=d}return r&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Vr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}function zr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now()
return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function Xr(e){var t=e||performance
return Math.round(t.now())}function Qr(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.")
if("html"===e.tagName.toLowerCase())return"html"
var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4}
yr=Object.assign(Object.assign({},n),{idName:function(e){return 0!==e.indexOf("ember")}}),br=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(yr.root,n)
var i=Ir(e,vr.All,(function(){return Ir(e,vr.Two,(function(){return Ir(e,vr.One)}))}))
if(i){var r=Lr(Fr(i,e))
return r.length>0&&(i=r[0]),Rr(i)}throw new Error("Selector was not found.")}(e)}catch(e){return"serialization_error"}var t=Qr(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Yr(e,t,n,i){var r=[]
return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
r.push({entryType:"MEASURE",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:o}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
r.push({entryType:"MARK",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),r}function $r(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var Jr=function(){function e(t){Lt(this,e),qt(this,"hostApis",void 0),qt(this,"hostnameProperties",void 0),qt(this,"usedHostnames",void 0),qt(this,"abortController",void 0),qt(this,"pendingPromises",void 0),this.hostApis=t
var n=t.AbortController
this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return Bt(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return Pi(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,i=n.AbortController,r=n.Promise,o=Ni(Pi(this.pendingPromises),r),a=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e)
return o.then((function(){return clearTimeout(a),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this
if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(qr=qr||i.createElement("a")).href=n,qr.hostname)
if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e)
return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}))
this.pendingPromises.add(a)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),Zr=function(){function e(t,n,i,r,o,a,s){Lt(this,e),qt(this,"hostApis",void 0),qt(this,"statics",void 0),qt(this,"options",void 0),qt(this,"allowTimingOrigin",void 0),qt(this,"fireCustomMeasureEvent",void 0),qt(this,"fireResourceLoadEvent",void 0),qt(this,"isTracerLixEnabled",void 0),qt(this,"collectResourceTimings",void 0),qt(this,"collectCdnData",void 0),qt(this,"perfObserver",void 0),qt(this,"renderTimings",new Map),qt(this,"urlToTreeId",new Map),qt(this,"cdnDataProvider",void 0),qt(this,"observables",new Cr),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireCustomMeasureEvent=o,this.fireResourceLoadEvent=a,this.isTracerLixEnabled=s,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Jr(t))}return Bt(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(qr=qr||t.createElement("a")).href=e,qr.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:zr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e)
if(i&&(i.renderEnd=i.renderEnd||zr(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void Li("ViewLoadEvent","pageLoadId does not exist")}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,i=e.renderEnd,r=void 0===i?-1:i,o=e.renderStart,a=void 0===o?-1:o,s=[]
return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:r}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance
this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e
null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,i=e.immediate,r=this.collectSynchronousData(n)
if(i)return r
var o=this.collectAsynchronousData()
return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{key:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,i=Object.create(null)
i.pageKey=n,i.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",i.networkInformationMetrics=this.snapshot.networkInformationMetrics
var r=this.statics,o=r.webUIFramework,a=r.timeSource,s=r.isSinglePageApp,c=r.appRenderMode,l=r.isAppRenderFailed,u=r.isFromServiceWorker,d=r.treeId
return i.treeId=d,i.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},i}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null)
t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null)
var i=e.isInitial,r=e.immediate,o=this.hostApis.assign
if(i){var a=to(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,l=a.navigationType,u=a.workerStart
s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=l),n.workerStart=null!=u?u:0,kr.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!r){var d=this.collectAsynchronousData()
if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var f=this.collectAsynchronousData(!0)
return o(t.cdnData,f.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,i=e.transferSize,r=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c={}
c.resourceKey=n,c.isNetwork=!!i&&0!==i,c.loadType=r||"unknown",c.timeOrigin=t
var l={},u=this.urlToTreeId.get(n)
u&&(l.resourceTreeId=u)
var d=Tr[o]
l.nextHopProtocol=null!=d?d:"UNKNOWN",l.transferSize=i,l.encodedBodySize=a,l.decodedBodySize=s,c.resourceNetworkContext=l
var f=[]
return Object.keys(_r).forEach((function(t){var n
t in mr&&void 0!==e[t]&&f.push({resourceProgressType:_r[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),c.resourceProgressStates=f,c}},{key:"reset",value:function(){var e
this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,i=t.PerformanceObserver,r=Object.create(null)
return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=Yr(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,to(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])}
if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData()
n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[]
return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?Ni(r,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e,t){var n=this
this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var i=e.entryType,r=e.name,o=e.startTime,a=e.duration
"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:r,measurementType:"MARK",measureProgressStates:[{measureProgressName:r,timestamp:o}]})):"measure"===i?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:r,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:r,timestamp:o,duration:a}]})):"longtask"===i&&(n.observables.longTasks.push({duration:a,name:r,startTime:o}),n.fireCustomMeasureEvent({measurementName:r,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:r,timestamp:o,duration:a}]}))}))})),this.observables.userTimingEntries=Yr(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent)
var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this
e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance
"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){if(this.collectResourceTimings){this.observables.resourceTimingEntries.push(e)
var n=-1!==e.name.indexOf("/li/track")
if(this.isTracerLixEnabled&&!n){var i=this.collectResourceLoadEvent(e,t)
this.fireResourceLoadEvent(i)}}this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""}
return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:$r(this.renderTimings),networkInformationMetrics:eo(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function eo(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 to(e){if(!e)return{navigationTimingApi:!1}
var t=Object.create({})
if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0]
n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var i=e.timing,r=e.navigation
return i&&r?(t.navigationTimingApi=!0,kr.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var no=function(){function e(t,n,i){Lt(this,e),qt(this,"featureName",void 0),qt(this,"trackingCore",void 0),qt(this,"rumConfig",void 0),qt(this,"observing",!1),qt(this,"basePageTreeId",void 0),qt(this,"startPageInstance",void 0),qt(this,"startMemory",void 0),qt(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Bt(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory()
i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||Ri("unknown"),this.startMemory=i,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:Xr(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize
return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}()
qt(no,"checkpoints",[1,3,10,30,90,180,300])
var io,ro,oo,ao,so,co=Bt((function e(t,n,i){Lt(this,e),qt(this,"webUIFramework",void 0),qt(this,"timeSource",void 0),qt(this,"isSinglePageApp",void 0),qt(this,"appRenderMode",void 0),qt(this,"isAppRenderFailed",void 0),qt(this,"pageLoadMode","INITIAL"),qt(this,"isSSL",void 0),qt(this,"treeId",void 0),qt(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),lo=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},uo=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return
var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}))
return n.observe({type:e,buffered:!0}),n}}catch(e){}},fo=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))}
addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},po=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},ho=function(e,t,n){var i
return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},go=-1,mo=function(){return"hidden"===document.visibilityState?0:1/0},vo=function(){fo((function(e){var t=e.timeStamp
go=t}),!0)},yo=function(){return go<0&&(go=mo(),vo(),po((function(){setTimeout((function(){go=mo(),vo()}),0)}))),{get firstHiddenTime(){return go}}},bo=!1,Eo=-1,ko=function(e,t){bo||(function(e,t){var n,i=yo(),r=lo("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:uo("paint",o);(a||s)&&(n=ho(e,r,t),a&&o(a),po((function(i){r=lo("FCP"),n=ho(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){Eo=e.value})),bo=!0)
var n,i=function(t){Eo>-1&&e(t)},r=lo("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1]
o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>r.value&&(r.value=o,r.entries=a,n())}},c=uo("layout-shift",s)
c&&(n=ho(i,r,t),fo((function(){c.takeRecords().map(s),n(!0)})),po((function(){o=0,Eo=-1,r=lo("CLS",0),n=ho(i,r,t)})))},_o={passive:!0,capture:!0},To=new Date,So=function(e,t){io||(io=t,ro=e,oo=new Date,xo(removeEventListener),Co())},Co=function(){if(ro>=0&&ro<oo-To){var e={entryType:"first-input",name:io.type,target:io.target,cancelable:io.cancelable,startTime:io.timeStamp,processingStart:io.timeStamp+ro}
ao.forEach((function(t){t(e)})),ao=[]}},wo=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(){So(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,_o),removeEventListener("pointercancel",i,_o)}
addEventListener("pointerup",n,_o),addEventListener("pointercancel",i,_o)}(t,e):So(t,e)}},xo=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,wo,_o)}))},Io=function(e,t){var n,i=yo(),r=lo("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=uo("first-input",o)
n=ho(e,r,t),a&&fo((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&po((function(){var i
r=lo("FID"),n=ho(e,r,t),ao=[],ro=-1,io=null,xo(addEventListener),i=o,ao.push(i),Co()}))},Ao={},Ro=function(e,t){var n,i=yo(),r=lo("LCP"),o=function(e){var t=e.startTime
t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},a=uo("largest-contentful-paint",o)
if(a){n=ho(e,r,t)
var s=function(){Ao[r.id]||(a.takeRecords().map(o),a.disconnect(),Ao[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),fo(s,!0),po((function(i){r=lo("LCP"),n=ho(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Ao[r.id]=!0,n(!0)}))}))}))}},Oo=["LCP","FID","CLS"],jo={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Mo={},No=function(){var e
if(!qi)return""
var t=window.performance,n=void 0
if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Po=!1,Do=new Set,Uo={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function Lo(){var e=!0===window.__test__resetWebVitalsState
if(!Po||e){e&&(Do=new Set),Oo.forEach(Fo)
var t=Symbol()
so=t,[Ro,Io,ko].forEach((function(e){return e(Bo.bind(null,t),!0)})),[Ro,Io,ko].forEach((function(e){return e(qo.bind(null,t))})),Po=!0}}function Fo(e){Mo[e]={name:e,value:-1,updateHistory:[]}
var t=Uo[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Mo[e].value=-2)}function Bo(e,t){if(e===so){var n=Mo[t.name],i=Xr()
n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Do.forEach((function(e){return e(t,i,!1)}))}}function qo(e,t){e===so&&Do.forEach((function(e){return e(t,Xr(),!0)}))}var Ho=function(){function e(t,n){var i=this
Lt(this,e),qt(this,"basePageTreeId",void 0),qt(this,"basePageKey",void 0),qt(this,"observing",!1),qt(this,"appContextMap",new Map),qt(this,"rumConfig",void 0),qt(this,"trackingCore",void 0),qt(this,"onMetricUpdate",(function(e,t,n){var r
i.observing&&(n?i.reportMetric(e.name):i.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=i.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return Bt(e,[{key:"startObserving",value:function(){var e,t,n=this
Lo(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",Oo.forEach((function(e){var t;-2===(null===(t=Mo[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,Do.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,Do.delete(e)}},{key:"reportMetric",value:function(e){var t=Mo[e],n={name:jo[e]||e}
"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value)
var i=Mo[e]
if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:No},a=null
switch(n.name){case"LCP":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],a={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Qr(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)}
return o.url&&(a.url=o.url),a}(n,i)
break
case"FID":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1]
return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Qr(o.target)}}(n,i)
break
case"CLS":a=function(e,t){if(0===e.updateHistory.length)return null
var n=e.updateHistory.map((function(e){return e.data.entries})).flat()
if(0===n.length)return null
var i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null
i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})))
var a,s=t.get(r.time)
return o&&s?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":Qr(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(a){var s={}
return r(s,o,a),s}return o}(this.basePageTreeId,this.basePageKey,i,this.appContextMap,this.trackingCore.host.api.assign)
n.metadata=function(e){var t={}
return Object.keys(e).forEach((function(n){var i=e[n]
t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(r)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}()
Bt((function e(t,n,i){var r,o
Lt(this,e),qt(this,"core",void 0),qt(this,"config",void 0),qt(this,"collector",void 0),qt(this,"boomerangStart",-1),qt(this,"webVitalsObserver",void 0),qt(this,"appMemoryObserver",void 0),qt(this,"pageMemoryObserver",void 0),qt(this,"liveTokens",new Set),qt(this,"stateWM",new WeakMap),qt(this,"activeToken",void 0),qt(this,"isInitial",void 0),qt(this,"shouldTrackCustomMeasureEvent",void 0),qt(this,"pageLoadId",void 0),qt(this,"initialResourcesEvents",[]),qt(this,"initialCustomMeasureEvents",[]),qt(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),qt(this,"fireCustomMeasureEventBound",this.fireCustomMeasureEvent.bind(this)),qt(this,"fireResourceLoadEventBound",this.fireResourceLoadEvent.bind(this)),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n])
return e}(i.host.api.assign({},Er),n)
var a="enabled"===(null===(r=(o=this.core.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time"))
this.collector=new Zr(i.host.api,new co(t,this.config,i.host),this.config,a,this.fireCustomMeasureEventBound,this.fireResourceLoadEventBound,this.isTracerLixEnabled),this.collector.startObserving(),yi.before("internal:hide",this.beforeHideHandlerBound)}),[{key:"isTracerLixEnabled",get:function(){var e,t
return"enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.generic-tracers"))}},{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){var t=this.collector.recordRenderEnd(e,this.isTracerLixEnabled,this.pageLoadId)
t&&this.isTracerLixEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},t)}},{key:"start",value:function(){var e,t
this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset()
var n,i=Object.create(null),r="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"))
return this.activeToken=i,this.liveTokens.add(i),this.stateWM.set(i,{isInitial:this.isInitial,startTime:zr(this.core.host.api.performance,r)}),this.config["enable-memory-measurement"]&&(null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.pageMemoryObserver=new no("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new no("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Ho(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0
if(e&&this.activeToken&&this.activeToken===e){var a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=zr(this.core.host.api.performance,s)
a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o}
var l=this.activeToken
a.fireRumEventTimeout=setTimeout((function(){if(i.isTracerLixEnabled){var e=i.collector.collectPageLoadEndData({isInitial:a.isInitial})
"then"in e?e.then((function(e){i.firePageLoadEndEvent(e,l)})):i.firePageLoadEndEvent(e,l)}var t=i.collector.collect({isInitial:a.isInitial})
"then"in t?t.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(t,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else Li("rum-end",Sr)}},{key:"firePageLoadStartEvent",value:function(e,t){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0
var n=this.stateWM.get(e)
this.pageLoadId=xi()
var i=this.collector.collectPageLoadStartData({isInitial:n.isInitial,rumKey:t})
i.pageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},i)}else Li("PageLoadStartEvent",Sr)}},{key:"destroy",value:function(){var e,t,n
yi.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t
if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid")
if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended")
this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this
this.liveTokens.forEach((function(t){var n=e.stateWM.get(t)
if(n.endProps){if(e.isTracerLixEnabled){var i=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0})
e.firePageLoadEndEvent(i,t)}var r=e.collector.collect({isInitial:n.isInitial,immediate:!0})
e.fireRumEvent(r,t)}}))}},{key:"firePageLoadEndEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps
if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey
if(e.pageLoadId=this.pageLoadId,e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=s),e.navigationTiming){var l,u=null===(l=e.navigationTiming)||void 0===l?void 0:l.navigationStart,d=this.boomerangStart=u||this.boomerangStart,f=u||r,p=a-f
e.navigationTiming.boomerangStart=d,e.navigationTiming.timeDone=p,e.navigationTiming.navigationStart=f,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:c||t.pageKey},e)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this
if(this.isTracerLixEnabled&&this.shouldTrackCustomMeasureEvent){if(!this.pageLoadId)return void this.initialCustomMeasureEvents.push(e)
this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=t.pageLoadId,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{key:"fireResourceLoadEvent",value:function(e){var t=this
if(this.isTracerLixEnabled){if(!this.pageLoadId)return void this.initialResourcesEvents.push(e)
this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=t.pageLoadId,t.core.fireEvent({appId:t.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps
if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=a-u,f=this.config["app-version"]
this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:s,appVersion:f,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:a},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])
var Go="undefined"!=typeof window&&"undefined"!=typeof performance,Vo="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG")
Bt((function e(t,n){Lt(this,e),qt(this,"trackingCore",void 0),qt(this,"endPageInstance",void 0),qt(this,"startPageInstance",void 0),qt(this,"featureIdentifier",void 0),qt(this,"marks",[]),qt(this,"spans",[]),qt(this,"spanStarts",new Map),qt(this,"started",!1),qt(this,"ended",!1),qt(this,"featureKey",void 0),qt(this,"productName",void 0),qt(this,"flushOnEnd",void 0),qt(this,"basePageTreeId",void 0),qt(this,"debounceFlush",void 0),qt(this,"disableAutoFlush",void 0),qt(this,"isCanceled",!1),qt(this,"isClosed",!1),this.trackingCore=t
var i=n.featureKey,r=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd
this.featureKey=i,this.productName=r,this.flushOnEnd=a
var s=r?"::".concat(r):""
this.featureIdentifier="".concat(i).concat(s)
var c=void 0!==o?o:3e3
c>0&&(this.debounceFlush=function(e,t,n){var i,r,o
void 0===t&&(t=50),void 0===n&&(n={})
var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[]
function d(){if(void 0!==c){var e=Date.now()-l
if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),n=this
return new Promise((function(i,r){var c=a&&void 0===o
if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t)
s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var f=e.apply(n,t)
return s&&s(f),i(f)}u.push({resolve:i,reject:r})}))}
return f.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},f}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}),[{key:"start",value:function(e){var t
if(Go){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"))
this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t
if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'))
if(Go){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"))
this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){Go&&(this.marks.push({name:e,startTime:Xr()}),Vo&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))),this.handleNewData())}},{key:"spanStart",value:function(e){Go&&(this.spanStarts.set(e,Xr()),Vo&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Go&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e
this.spans.push({name:i,startTime:n,duration:Xr()-n}),Vo&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end"))),this.handleNewData()}}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return Xr()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}}
this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||Ri("unknown"),i={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans}
return e.productName&&(i.productName=e.productName),e.basePageTreeId&&(i.basePageTreeId=e.basePageTreeId),i}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(Go){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'))
if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'))}}}])
const Ko=new Map
function Wo(e,t,n){if(e)return Object.freeze(Object.create(null))
if("query"===t.kind||"mutation"===t.kind||"subscription"===t.kind){const e=t
if(e.ast)return Object.assign(Object.create(null),e.ast,n)}return Object.freeze(Object.assign(Object.create(null),n))}function zo(e,t){let n
return n=e?Wo(!0,t):"query"===t.kind||"mutation"===t.kind?Wo(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):Wo(!1,t,{$debug:{name:t.name,kind:t.kind}}),Ko.set(n,t),n}function Xo(e){return Ko.get(e)}function Qo(e,t){const n=Xo(e)
if(void 0===n)throw new Error(`No GraphQL query or fragment metadata associated with the given token: ${JSON.stringify(e)}`)
return n.kind===t}function Yo(e){const t=Xo(e)
if(void 0===t||"query"!==t.kind&&"mutation"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
return t.id}const $o="fields",Jo=/^(\/[^?]+)\??(.*)$/
function Zo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=Jo.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}const ea=/[,()':]/g,ta=/[,()':]/
function na(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if(Array.isArray(e)||"object"!=typeof e||null===e)throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")}(t),Object.keys(t).map((e=>e===$o?`${$o}=${t[$o]}`:`${ra(e)}=${ia(t[e],!1)}`)).join("&")}function ia(e,t){return Array.isArray(e)?function(e,t){const n=new Array(e.length)
for(let i=0;i<e.length;i++)n[i]=ia(e[i],t)
return`List(${n.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){return`(${Object.keys(e).map((n=>`${ra(n,t)}:${ia(e[n],t)}`)).join(",")})`}(e,t):ra(e,t)}function ra(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":t&&"string"==typeof e&&ta.test(e)?e.replace(ea,escape):t?e:encodeURIComponent(e).replace(ea,escape)}const oa="application/x-www-form-urlencoded",aa="POST",sa=8e3
function ca(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=("graphql"===e?la:ua)(t,n)
return Object.keys(i).length?"".concat(r,"?").concat(na(i)):r}var la=function(e,t){var n=fa(e.path),i=fa(e.host),r=e.graphQLPrefix?fa(e.graphQLPrefix):""
return"".concat(i).concat(n).concat(r).concat(t)},ua=function(e,t){var n=fa(e.path),i=fa(e.host),r=da(e.restliPrefix,t)
return"".concat(i).concat(n).concat(r)},da=function(e,t){return e?"".concat(e).concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)):t},fa=function(e){var t=e.endsWith("/")?"":"/"
return"".concat(e).concat(t)},pa=function(e){return e.map((function(e){return function(e){return encodeURIComponent(e).replace(/\(/g,"%28").replace(/\)/g,"%29")}(e)})).join(",")},ha=function(e){return{patch:{$set:e}}},ga=zo(!0,{kind:"query",id:"messengerConversations.18240d6a3ac199067a703996eeb4b163",typeName:"com.linkedin.a48779e96d56416b455684d54ca0a605",name:"find-conversations-by-category"}),ma=zo(!0,{kind:"query",id:"messengerConversations.96e683c3efa1e8a708bfa4b078b9f9e8",typeName:"com.linkedin.e8f9114c687e26ae0f6bb2f3aed7022e",name:"find-conversations-by-category-with-draft-messages"}),va=zo(!0,{kind:"query",id:"messengerConversations.e75894f1094ac55cbd53d2482301efdc",typeName:"com.linkedin.d1fb3489010b7b4592896e7b73531a11",name:"find-conversations-by-category-v2"}),ya=zo(!0,{kind:"query",id:"messengerConversations.09995bad1c3b51bdf60c10a49ae874f0",typeName:"com.linkedin.637753efb2e5d51c7275035cac9b4c5f",name:"find-conversations-by-recipients"}),ba=zo(!0,{kind:"query",id:"messengerConversations.ed4d5c0207c43aacf839593ab5ff13bd",typeName:"com.linkedin.acb9c77ea9ee4824540470a52e862cb6",name:"find-conversations-by-recipients-with-draft-messages"}),Ea=zo(!0,{kind:"query",id:"messengerConversations.755b19e066ebdfc4c70db8b2aaae855e",typeName:"com.linkedin.c3d42ec0291728dbe7f3aced6f0826e5",name:"find-conversations-by-search-criteria"}),ka=zo(!0,{kind:"query",id:"messengerConversations.efaabe6331e9716dc6b5f567254dbafc",typeName:"com.linkedin.2ea17ec4179cae6d69aea80ad2907b8e",name:"find-conversations-by-search-criteria-with-draft-messages"}),_a=zo(!0,{kind:"query",id:"messengerConversations.9dcca8beeb2ea48b1bff937044631888",typeName:"com.linkedin.47459727fe9dc4c6dd28af91d35c3bea",name:"get-conversation-by-id"}),Ta=zo(!0,{kind:"query",id:"messengerMessages.86ca573adc64110d94d8bce89c5b2f3b",typeName:"com.linkedin.5ead02a2479291ebdce3f63ac66fbe93",name:"get-messages-by-conversation"}),Sa=zo(!0,{kind:"query",id:"messengerMessages.b52340f92136e74c2aab21dac7cf7ff2",typeName:"com.linkedin.f06a0d9d67201ccfd952b77289ff240e",name:"get-messages-by-timestamp"}),Ca=zo(!0,{kind:"query",id:"messengerConversations.505de15f09a5f6be71ef7c56bb71ba21",typeName:"com.linkedin.2a7f21c8d98d18e3a6c802f0dd8d222d",name:"get-conversations-by-ids"}),wa=zo(!0,{kind:"query",id:"messengerConversationDrafts.d19a3ea50431c01d3df9493fc43eb62a",typeName:"com.linkedin.27e9b28448d52f2ed882cf44acde8e93",name:"get-conversation-drafts-by-id"}),xa=zo(!0,{kind:"query",id:"messengerConversations.8ba26b86da7e0c5f406095d6196eae66",typeName:"com.linkedin.5f8e1fc75eaa830e76c6ee84eb4d68f1",name:"get-conversations-by-ids-with-draft-messages"}),Ia=zo(!0,{kind:"query",id:"messengerMessages.efbf9631bdca42f8c171c32092848c31",typeName:"com.linkedin.9103982cbb84a6713a12118e18d0aede",name:"get-messages"})
zo(!0,{kind:"query",id:"messengerMessageDrafts.8dbc5f0f18aba6d9acac2c0194a58db1",typeName:"com.linkedin.6f29433b666b615cc843d0c53e498d90",name:"get-message-draft"})
var Aa=zo(!0,{kind:"query",id:"messengerMailboxCounts.fc528a5a81a76dff212a4a3d2d48e84b",typeName:"com.linkedin.7455e0e579fcb3a34f96eb0eefe7a411",name:"get-mailbox-unreadcounts"}),Ra=zo(!0,{kind:"query",id:"messengerQuickReplies.4338d226319203b5b08920ab7621fa45",typeName:"com.linkedin.4c7816368899aefc0404a81a21b89aad",name:"get-quick-replies-by-conversation"}),Oa=zo(!0,{kind:"query",id:"messengerMessagingParticipants.3d2e0e93494e9dbf4943dc19da98bdf6",typeName:"com.linkedin.17d2b5b00f250b93fa250e00473c98a2",name:"get-reactors-by-message-and-emoji"}),ja=zo(!0,{kind:"query",id:"messengerSeenReceipts.3da5d9d9417daedffff3cfde60becab4",typeName:"com.linkedin.33851ce67c1a444c09e057014b5c4d81",name:"get-seen-receipts-by-conversation"}),Ma=zo(!0,{kind:"query",id:"messengerConversations.95e0a4b80fbc6bc53550e670d34d05d9",typeName:"com.linkedin.bc13e1b1426cc03e36eab503d342cabe",name:"initial-sync-conversations"}),Na=zo(!0,{kind:"query",id:"messengerConversations.0fd27f53c2a17c81a3c2370c94ab3068",typeName:"com.linkedin.32b55b4f3ec7108778d6b970a11c60bb",name:"initial-sync-conversations-with-draft-messages"}),Pa=zo(!0,{kind:"query",id:"messengerConversations.33c5bfbf15b112da638fee15f77f5e33",typeName:"com.linkedin.2a25dae6962f40be897d5ffe00289c5c",name:"mark-all-conversations-as-read"}),Da=zo(!0,{kind:"query",id:"messengerMessageDrafts.8fea470348f83688b21512cc20d05b3d",typeName:"com.linkedin.0744c9008c1be0c2e872c8b3c1f08b6b",name:"message-draft-by-conversation-batch"}),Ua=zo(!0,{kind:"query",id:"messengerConversations.be2479ed77df3dd407dd90efc8ac41de",typeName:"com.linkedin.13baefbc2d95f2e6498312456b544fc4",name:"sync-conversations"}),La=zo(!0,{kind:"query",id:"messengerMessages.d1b494ac18c24c8be71ea07b5bd1f831",typeName:"com.linkedin.c38c518a13ae3dfabbd000dba2c1323a",name:"sync-messages"}),Fa=zo(!0,{kind:"query",id:"messengerMessages.c39c8e026ce8f44ac80d1fef7f71506b",typeName:"com.linkedin.d517c530e9e9e6efa128b8e0e66d8226",name:"sync-messages-by-convo-id-in-batch"}),Ba=zo(!0,{kind:"query",id:"messengerMailboxRealtimeSubscriptionAuthorizationTokens.1a3b0efc0a0a2c24c23367b5f8a25e62",typeName:"com.linkedin.606462b788cb71b5e1a280f01897a453",name:"realtime-subscription-auth-tokens"})
zo(!0,{kind:"mutation",id:"messengerMessageDrafts.2cf9ab96f9203dcfb41c51cc8a81d024",typeName:"com.linkedin.755dfb6105c9f45ad1ddc0ab8f011f1c",name:"create-message-draft"})
var qa,Ha=zo(!0,{kind:"query",id:"messengerConversationDrafts.36aad1f556e3376af70bbf31e391709b",typeName:"com.linkedin.7fc0da333aea2c9354131839f14b2f90",name:"find-conversation-drafts-by-recipients"}),Ga=zo(!0,{kind:"query",id:"messengerMessageDrafts.19d8902475719ed35c12be6a79708155",typeName:"com.linkedin.f40d5176dd6d2c81ad2a5c8194778353",name:"get-message-drafts-by-mailbox"}),Va=function(){return Si()},Ka=function(e,t){if(!Qo(e,"query")){var n=je.GRAPHQL_INVALID_LOOKUP
throw new Le("graphql",n.code,n.message)}if(function(e){return Qo(e,"fragment")}(e)){var i=je.CANNOT_QUERY_FRAGMENT
throw new Le("graphql",i.code,i.message)}var r={}
try{"full"===t.queryFormat?r.query=function(e){const t=Xo(e)
if(void 0===t||"query"!==t.kind&&"mutation"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
if(!t.source)throw new Error(`No GraphQL source associated with the given token: ${JSON.stringify(e)}`)
return t.source}(e):r.queryId=Yo(e)}catch(t){r.queryId=Yo(e)}for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s]
var c=a[0]
return r.variables=c||{},ca("graphql",t.messengerResource,"graphql",r)},Wa=function(e){return function(t){return Ka(e,t,arguments.length<=1?void 0:arguments[1])}},za=Wa(_a),Xa=Wa(Ma),Qa=Wa(Na),Ya=Wa(Aa),$a=Wa(ga),Ja=Wa(ma),Za=Wa(va),es=Wa(ya),ts=Wa(ba),ns=Wa(Ea),is=Wa(ka),rs=Wa(Ca),os=Wa(wa),as=Wa(xa),ss=Wa(Ia),cs=Wa(Ta),ls=Wa(Sa),us=Wa(ja),ds=Wa(Ua),fs=Wa(La),ps=Wa(Fa),hs=Wa(Pa),gs=Wa(Oa),ms=Wa(Ra),vs=Wa(Ha),ys=Wa(Da),bs=Wa(Ba),Es=Wa(Ga),ks=function(e){return ca("restli",e.messengerResource,"messengerMessages",{action:"createMessage"})},_s=ks
qa=Symbol.iterator
var Ts=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
u(this,e),p(this,"_idx",0),p(this,"_messages",void 0),p(this,"_clientIdIndex",void 0),p(this,"_entityUrnIndex",void 0),this._messages=function(e){return e.slice().sort((function(e,t){return"Delivered"===e.status&&"Delivered"!==t.status?-1:"Delivered"!==e.status&&"Delivered"===t.status?1:e.deliveredAt.getTime()-t.deliveredAt.getTime()}))}(t),this._clientIdIndex=new Map(t.map((function(e){return[e.clientId,e]}))),this._entityUrnIndex=new Map(t.filter(O).map((function(e){return[e.entityUrn,e]})))}return f(e,[{key:"length",get:function(){return this._messages.length}},{key:"at",value:function(e){if(e>=0&&e<this._messages.length)return this._messages[e]
throw new Error("Index out of bounds")}},{key:"getByIdentifier",value:function(e){return le(e)?this._entityUrnIndex.get(e):this._clientIdIndex.get(e)}},{key:"next",value:function(){return this._idx<this._messages.length?{done:!1,value:this._messages[this._idx++]}:(this._idx=0,{done:!0,value:null})}},{key:"first",value:function(){try{return this.at(0)}catch(e){return}}},{key:"last",value:function(){try{return this.at(this.length-1)}catch(e){return}}},{key:qa,value:function(){return this}},{key:"map",value:function(e){return Array.from(this,e)}},{key:"updateAny",value:function(t,n){return new e(x(t,n)(this._messages))}},{key:"updateByUrn",value:function(t,n){return this._entityUrnIndex.has(t)?new e(I(ze(t),et(n))(this._messages)):this}},{key:"updateByClientId",value:function(t,n){return this._clientIdIndex.has(t)?new e(I(Xe(t),et(n))(this._messages)):this}},{key:"add",value:function(t){var n=this,i=t.filter(jt(F,ut(this._entityUrnIndex,this._clientIdIndex))).map((function(e){return n._clientIdIndex.has(e.clientId)?o(o({},e),{},{clientId:Va()}):e})),r=t.filter(ut(this._entityUrnIndex,this._clientIdIndex)).map((function(e){return et(e)(n.getByIdentifier(e.entityUrn||e.clientId))})),a=new Map(r.map((function(e){return[e.clientId,!0]}))),s=this._messages.filter((function(e){return!a.has(e.clientId)}))
return new e([].concat(k(s),k(r),k(i)))}},{key:"removeByClientId",value:function(t){var n=this._messages.filter((function(e){return e.clientId!==t}))
return[this._clientIdIndex.get(t),new e(n)]}},{key:"removeByUrns",value:function(t){var n=this._messages.filter((function(e){return!e.entityUrn||!t.has(e.entityUrn)}))
return new e(n)}}]),e}(),Ss={continueOnFailure:!0,convCount:20,decorators:{},enableParameterTypeChecks:!0,experimental:{},graphQlQueryIds:{},headers:function(){return{}},isPreconnected:!1,mailboxType:"auto",messengerResource:{host:"/",path:"messenger/api/",graphQLPrefix:"",restliPrefix:""},mpName:"web-messenger-data",mpVersion:"1.0.0",msgCount:20,queryFormat:"id",realtimeHost:null,sendRetryTimeoutInSecond:16,syncRetryTimeoutInSecond:80,typingIndicatorDelayInSecond:5,updateDraftDelayInSecond:3,useRealtime:!0,viewerUrn:""},Cs=function(e){return e?e.filter(O):[]},ws=function(e){var t,n,i,r=new Date
return{additionalData:e.additionalData||null,backendConversationUrn:e.backendConversationUrn,backendUrn:e.backendUrn,clientId:e.clientId||Va(),content:e.content,deliveredAt:e.deliveredAt?new Date(e.deliveredAt):r,entityUrn:e.entityUrn,footer:e.footer,actorUrn:e.actorUrn,inlineWarning:null!==(t=e.inlineWarning)&&void 0!==t?t:void 0,incompleteRetriableData:null!==(n=e.incompleteRetriableData)&&void 0!==n&&n,lastActivityAt:r,messageBodyRenderFormat:e.messageBodyRenderFormat||"DEFAULT",optionalSendData:null!==(i=e.optionalSendData)&&void 0!==i?i:{renderContent:[]},reactions:xs(e.reactions),retries:e.retries||0,senderUrn:e.senderUrn,status:e.status||"Pending",subject:e.subject}},xs=function(e){return(e||[]).filter(O).map((function(e){return o(o({},e),{},{reactors:[]})}))},Is=function(e){var t,n,i,r,o,a,s,c,l,u,d,f,p,h,g,m
return{backendUrn:e.backendUrn,categories:e.categories.filter(O),contentMetadata:null!==(t=e.contentMetadata)&&void 0!==t?t:void 0,conversationTypeText:null!==(n=e.conversationTypeText)&&void 0!==n?n:void 0,conversationUrl:e.conversationUrl,conversationVerificationExplanation:null!==(i=e.conversationVerificationExplanation)&&void 0!==i?i:void 0,conversationVerificationLabel:null!==(r=e.conversationVerificationLabel)&&void 0!==r?r:void 0,createdAt:new Date(e.createdAt),creatorHostIdentityUrn:null===(o=e.creator)||void 0===o?void 0:o.hostIdentityUrn,disabledFeatures:null!==(a=null===(s=e.disabledFeatures)||void 0===s?void 0:s.filter(O))&&void 0!==a?a:[],groupChat:null!==(c=e.groupChat)&&void 0!==c&&c,headlineText:null!==(l=e.headlineText)&&void 0!==l?l:void 0,hostConversationActions:e.hostConversationActions.filter(O),incompleteRetriableData:null!==(u=e.incompleteRetriableData)&&void 0!==u&&u,isDraft:!1,lastActivityAt:new Date(e.lastActivityAt),lastReadAt:e.lastReadAt?new Date(e.lastReadAt):void 0,metadata:{},notificationStatus:e.notificationStatus,participants:(null!==(d=e.conversationParticipants)&&void 0!==d?d:[]).filter(O).map((function(e){return e.hostIdentityUrn})).filter(O).sort(),quickReplies:null!==(f=e.quickReplies)&&void 0!==f?f:[],read:e.read,seenReceiptsMap:null!==(p=e.seenReceiptsMap)&&void 0!==p?p:{},shortHeadlineText:null!==(h=e.shortHeadlineText)&&void 0!==h?h:void 0,state:null!==(g=e.state)&&void 0!==g?g:void 0,status:{},title:null!==(m=e.title)&&void 0!==m?m:void 0,unreadCount:e.unreadCount}},As=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Local",n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,l=new Date(Date.now()),u=c?new Date(c):l
return o({clientId:null!=a?a:Va(),content:null!=n?n:{text:"",attributes:[]},lastEditedAt:u,optionalSendData:null!=i?i:{renderContent:[]},senderUrn:e,status:t,subject:r},s&&{entityUrn:s})},Rs=function(e,t){var n=t.optionalSendData?Ze(e.optionalSendData,t.optionalSendData):e.optionalSendData
return o(o(o({},e),t),{},{optionalSendData:n})},Os=function(e){var t,n=new Date
return{clientId:e.clientId,content:e.content,optionalSendData:e.optionalSendData,lastEditedAt:null!==(t=e.lastActivityAt)&&void 0!==t?t:n,senderUrn:e.senderUrn,actorUrn:e.actorUrn,status:"Local"}},js=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:As(e,"Local"),i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Va(),a={lastEditedAt:n.lastEditedAt,clientId:r,draftMessage:n,isDraft:!0,messages:new Ts,recipients:t,sending:"Ready"}
return i&&(a=o(o({},a),{},{entityUrn:i})),a},Ms=function(e){return k(e?e.filter(O).map((function(e){return Ps(e)})):[])},Ns=function(e,t,n){var i,r,o,a,s,c,l,u,d,f,p,h,g,m,v,y,b,E,k
if(!e.entityUrn)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("conversationResponseToState(): convoResponse.entityUrn is null or undefined"))
var _=e.creator&&e.creator.hostIdentityUrn?Ps(e.creator):void 0,T=null!==(i=null===(r=e.messages)||void 0===r||null===(o=r.elements)||void 0===o?void 0:o.filter(O))&&void 0!==i?i:[],S=Ks(T),C=S.messages,w=S.participants,x=e.conversationParticipants.filter(O),I=Ms(x),A=x.map((function(e){return e.hostIdentityUrn})),R=bt(w,I),j=R
I.length!==R.length&&(j=R.filter((function(e){return A.includes(e.hostIdentityUrn)})))
var M,N=null===(a=e.draftMessages)||void 0===a||null===(s=a.elements)||void 0===s?void 0:s.filter(O).filter(Fs)
if(null!=N&&N.length){var P,D=mt(N)[0]
M=As(D.author.hostIdentityUrn,"Server",D.body,void 0,null!==(P=D.subject)&&void 0!==P?P:void 0,D.originToken,D.entityUrn,D.lastEditedAt)}else M=t
var U=null!==(c=null===(l=e.creator)||void 0===l?void 0:l.hostIdentityUrn)&&void 0!==c?c:void 0,L={additionalData:null,backendUrn:e.backendUrn,categories:e.categories.filter(O),clientId:Va(),contentMetadata:null!==(u=e.contentMetadata)&&void 0!==u?u:void 0,conversationTypeText:null!==(d=e.conversationTypeText)&&void 0!==d?d:void 0,conversationUrl:e.conversationUrl,conversationVerificationExplanation:null!==(f=e.conversationVerificationExplanation)&&void 0!==f?f:void 0,conversationVerificationLabel:null!==(p=e.conversationVerificationLabel)&&void 0!==p?p:void 0,createdAt:new Date(e.createdAt),creatorHostIdentityUrn:U,descriptionText:null!==(h=e.descriptionText)&&void 0!==h?h:void 0,disabledFeatures:null!==(g=null===(m=e.disabledFeatures)||void 0===m?void 0:m.filter(O))&&void 0!==g?g:[],draftMessage:M,entityUrn:e.entityUrn,groupChat:null!==(v=e.groupChat)&&void 0!==v&&v,headlineText:null!==(y=e.headlineText)&&void 0!==y?y:void 0,hostConversationActions:e.hostConversationActions.filter(O),incompleteRetriableData:e.incompleteRetriableData,isDraft:!1,lastEditedAt:M.lastEditedAt,lastActivityAt:new Date(e.lastActivityAt),lastReadAt:e.lastReadAt?new Date(e.lastReadAt):void 0,matchingSearches:n?[n]:[],messages:new Ts(C),metadata:{prevCursor:void 0,syncToken:void 0},notificationStatus:e.notificationStatus,participants:j.map((function(e){return e.hostIdentityUrn})).sort(),quickReplies:[],read:e.read,shortHeadlineText:null!==(b=e.shortHeadlineText)&&void 0!==b?b:void 0,state:null!==(E=e.state)&&void 0!==E?E:void 0,status:{fullyLoaded:!1,loading:!1,sending:"Ready"},title:null!==(k=e.title)&&void 0!==k?k:void 0,typingUrns:new Set,unreadCount:e.unreadCount}
return _&&!R.find((function(e){return e.hostIdentityUrn===_.hostIdentityUrn&&"EMPTY"!==e.kind}))&&R.push(_),[L,R]},Ps=function(e){var t,n,i
if(!e.hostIdentityUrn)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("messageParticipantDataToState(): hostIdentityUrn is missing"))
if(null!==(t=e.participantType)&&void 0!==t&&t.member||null!==(n=e.participantType)&&void 0!==n&&n.organization||null!==(i=e.participantType)&&void 0!==i&&i.custom){var r=e.participantType,o=r.member,a=r.organization,s=r.custom
if(s)return{kind:"CUSTOM",additionalData:null,clientId:Va(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn,name:s.name,image:s.image,showVerificationBadge:e.showVerificationBadge,showPremiumInBug:e.showPremiumInBug}
if(a)return{kind:"ORGANIZATION",additionalData:null,clientId:Va(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn,name:a.name,tagline:a.tagline,logo:a.logo,pageType:a.pageType,pageUrl:a.pageUrl,following:a.following,industryName:a.industryName,averageResponseTimeText:a.averageResponseTimeText}
if(o){var c,l,u,d,f,p,h,g,m,v,y,b,E,k={url:null!==(c=o.profileUrl)&&void 0!==c?c:void 0,picture:o.profilePicture&&o.profilePicture.rootUrl?{rootUrl:o.profilePicture.rootUrl,artifacts:o.profilePicture.artifacts.filter(O)}:void 0}
return{kind:"MEMBER",additionalData:null,clientId:Va(),entityUrn:e.entityUrn,firstName:o.firstName.text,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn,lastName:null!==(l=null===(u=o.lastName)||void 0===u?void 0:u.text)&&void 0!==l?l:"",headline:null!==(d=null===(f=o.headline)||void 0===f?void 0:f.text)&&void 0!==d?d:"",pronoun:{customPronoun:null!==(p=null===(h=o.pronoun)||void 0===h?void 0:h.customPronoun)&&void 0!==p?p:"",standardizedPronoun:null!==(g=null===(m=o.pronoun)||void 0===m?void 0:m.standardizedPronoun)&&void 0!==g?g:""},profile:k,showVerificationBadge:e.showVerificationBadge,showPremiumInBug:e.showPremiumInBug,preview:null!==(v=e.preview)&&void 0!==v&&v.previewTitle?{previewTitle:null===(y=e.preview)||void 0===y?void 0:y.previewTitle,descriptionText:null!==(b=null===(E=e.preview)||void 0===E?void 0:E.descriptionText)&&void 0!==b?b:void 0}:void 0}}}return{kind:"EMPTY",additionalData:null,clientId:Va(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn}},Ds=function(e){return null!==e},Us=function(e,t){var n,i=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsByRecipients.elements.filter(Ds)
if(!i)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("recipientConversationsToState(): messengerConversationsByRecipients response does not contain non-null elements"))
return Gs(i,As(t,"Local"))},Ls=function(e){var t=mt(e),n=t.filter(J),i=t.filter(Z),r=function(e){var t={},n=e.map((function(e){var n=e.author.hostIdentityUrn,i=e.conversation,r=e.body,o=e.entityUrn,a=e.renderContent,s=e.originToken,c=e.lastEditedAt,l=e.subject
if(Ds(i)&&n&&r){var u=Xs(Cs(a)).data,d=As(n,"Server",r,u,null!=l?l:void 0,s,o,c),f=E(Ns(i,d),2),p=f[0]
return f[1].forEach((function(e){t[e.hostIdentityUrn]=e})),p}})).filter(O)
return{convoStatesWithMsgDrafts:n,convoParticipants:t}}(n),o=r.convoStatesWithMsgDrafts,a=r.convoParticipants,s=function(e){var t={},n=e.map((function(e){var n=e.author.hostIdentityUrn,i=e.conversationDraft,r=e.body,o=e.entityUrn,a=e.renderContent,s=e.lastEditedAt,c=e.originToken,l=e.subject
if(null!==i&&n&&r){var u=Xs(Cs(a)).data,d=As(n,"Server",r,u,null!=l?l:void 0,c,o,s),f=i.conversationDraftParticipants.filter(O),p=f.map((function(e){return e.hostIdentityUrn})).filter(O).filter((function(e){return e!==n})),h=js(n,p,d,i.entityUrn)
return Ms(f).forEach((function(e){t[e.hostIdentityUrn]=e})),h}})).filter(O)
return{draftConvoStatesWithMsgDrafts:n,draftConvoParticipants:t}}(i)
return{draftConvoStatesWithMsgDrafts:s.draftConvoStatesWithMsgDrafts,draftConvoParticipants:s.draftConvoParticipants,convoStatesWithMsgDrafts:o,convoParticipants:a}},Fs=function(e){var t
return!(null===(t=e.body)||void 0===t||!t.text)},Bs=function(e){var t=e.backendConversationUrn,n=e.backendUrn,i=e.clientId,r=e.content,a=e.footer,s=e.optionalSendData,c=e.renderContentFallbackText,l=e.senderUrn,u=e.subject,d=o(o({},B({backendConversationUrn:t,backendUrn:n,clientId:i,content:r,footer:a,optionalSendData:s,renderContentFallbackText:c,senderUrn:l,subject:u}).reduce((function(e,t){var n=E(t,2),i=n[0],r=n[1]
return r?(e[i]=r,e):e}),{})),{},{content:r})
return ws(d)},qs=function(e,t){var n,i=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsByIds
if(!i)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("getConversationsToState(): messengerConversationsByIds response is missing"))
return o(o({},Gs(i,As(t,"Local"))),{},{requestId:e.requestId})},Hs=function(e){return e&&e.length?e.reduce((function(e,t){return function(e,t){if(t&&t.participantType&&!e[t.entityUrn]){var n=Ps(t)
return o(o({},e),{},p({},n.hostIdentityUrn,n))}return e}(e,t)}),{}):{}},Gs=function(e,t){var n={},i=e.filter(Ds).map((function(e){var i=E(Ns(e,t),2),r=i[0]
return i[1].forEach((function(e){n[e.hostIdentityUrn]=e})),r}))
return{conversations:i,participants:n}},Vs=function(e,t){var n,i,r,o,a,s,c=null===(n=e.metadata)||void 0===n?void 0:n.newSyncToken,l=null!==(i=null===(r=e.metadata)||void 0===r?void 0:r.shouldClearCache)&&void 0!==i&&i,u=null!==(o=null===(a=e.metadata)||void 0===a?void 0:a.deletedUrns)&&void 0!==o?o:[],d=(null!==(s=e.elements)&&void 0!==s?s:[]).filter(O),f=Ks(d)
return{messages:new Ts(f.messages),newSyncToken:c,shouldClearCache:l,deletedUrns:u,participants:f.participants,requestId:t}},Ks=function(e){var t=Hs(e.reduce((function(e,t){return[].concat(k(e),[t.sender])}),[])),n=e.reduce((function(e,t){var n=function(e){var t,n,i,r
if(!e.sender.hostIdentityUrn)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("singleMessageAndParticipantsToState(): sender hostIdentityUrn is missing"))
var o=Ps(e.sender),a=Xs(Cs(e.renderContent)),s=a.data,c=a.participants,l=e.actor?Ps(e.actor):void 0,u=bt([o],c)
return{participants:(l?bt(u,[l]):u).sort(),message:{additionalData:null,clientId:e.originToken||Va(),content:null!==(t=e.body)&&void 0!==t?t:{text:"",attributes:[]},optionalSendData:s,inlineWarning:null!==(n=e.inlineWarning)&&void 0!==n?n:void 0,incompleteRetriableData:e.incompleteRetriableData,deliveredAt:new Date(e.deliveredAt),entityUrn:e.entityUrn,backendConversationUrn:e.backendConversationUrn,backendUrn:e.backendUrn,footer:null!==(i=e.footer)&&void 0!==i?i:void 0,actorUrn:null==l?void 0:l.hostIdentityUrn,subject:null!==(r=e.subject)&&void 0!==r?r:void 0,messageBodyRenderFormat:e.messageBodyRenderFormat,reactions:xs(e.reactionSummaries),retries:0,senderUrn:e.sender.hostIdentityUrn,status:"Delivered"}}}(t),i=n.participants,r=n.message
return{messages:[].concat(k(e.messages),[r]),participants:bt(i,e.participants)}}),{messages:[],participants:[]}),i=bt(n.participants,N(t).filter(O))
return i.sort(),{messages:n.messages,participants:i}},Ws=function(e){return"search"===e.kind},zs=function(e){if(!e.data||!e.data.messengerMailboxCountsByMailbox||!e.data.messengerMailboxCountsByMailbox.elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("mailboxUnreadCountsResponseToUnreadCounts(): messengerMailboxCountsByMailbox response is missing"))
return function(e,t){return{counters:e.reduce((function(e,t){var n
return o(o({},e),{},p({},t.category,(null!==(n=e[t.category])&&void 0!==n?n:0)+t.unreadConversationCount))}),{}),requestId:t}}(e.data.messengerMailboxCountsByMailbox.elements.filter(O),e.requestId)},Xs=function(e){var t={}
return{data:{renderContent:e.filter(O).map((function(e){var n,i,r=e.forwardedMessageContent?(n=e.forwardedMessageContent,i=Ps(n.originalSender),{content:{originalSendAt:n.originalSendAt,originalSenderUrn:n.originalSender.hostIdentityUrn,forwardedBody:n.forwardedBody,footerText:n.footerText},participant:i}):{content:void 0,participant:void 0},a=r.content,s=r.participant
return s&&(t[s.hostIdentityUrn]=s),o(o({},M("forwardedMessageContent")(e)),{},{forwardedMessageContent:a})}))},participants:N(t).filter(O)}},Qs=function(e){return O(e.extensions)&&O(e.extensions.status)},Ys=function(e,t){var n=e.errors
if(n){var i=n.map((function(e){return Le.buildGraphQLPayloadError(e,t)})),r=n.filter(Qs).map((function(e){return e.extensions.status}))
throw Le.fromApiErrorMemo("ERRORS_IN_RESPONSE",Ae("queryName: ".concat(t,"()"),i,r))}},$s=function(e){return e.reduce((function(e,t){return o(o({},e),{},p({},t.hostIdentityUrn,t))}),{})}
function Js(e){return fetch(e)}const Zs=Symbol.for("_DATA_EDEN_TRACKING_INFO_PER_FETCH");(()=>{let e=globalThis,t=e[Zs]
t||(t=e[Zs]=new WeakMap)})()
var ec="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
function tc(e){return nc.apply(this,arguments)}function nc(){return(nc=l(a().mark((function e(t){var n
return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=document.getElementsByTagName("img"),e.abrupt("return",new Promise((function(e){var i,r=S(n)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(o.className.startsWith("datalet-bpr-guid")){var a=o.className,s=document.getElementById(a),c=(null==s?void 0:s.textContent)||"",l=JSON.parse(c),u=document.getElementById(l.body),d=null==u?void 0:u.textContent
if(t.url.endsWith(null==l?void 0:l.request)){var f=null==l?void 0:l.request,p=(null==d?void 0:d.trimEnd().trimStart())||""
e({urlLink:f,headers:l.headers,body:p})}}}}catch(e){r.e(e)}finally{r.f()}e(null)})))
case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ic(e){var t=e.urlLink,n=e.headers,i=e.body
return new Response(JSON.stringify({body:i,url:t}),{headers:n,status:200})}var rc,oc=function(){var e=l(a().mark((function e(t,n){var i
return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null,ec&&"undefined"!=typeof document){e.next=3
break}return e.abrupt("return",n(t))
case 3:return e.next=5,tc(t)
case 5:if(!(i=e.sent)){e.next=8
break}return e.abrupt("return",ic(i))
case 8:return e.abrupt("return",n(t))
case 9:case"end":return e.stop()}}),e)})))
return function(t,n){return e.apply(this,arguments)}}(),ac=0,sc=null,cc=function(){return ac+=1},lc={accept:"application/graphql","x-restli-protocol-version":"2.0.0"},uc=function(e){lc=o(o({},lc),e())},dc=function(){var e=l(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(lc).forEach((function(e){t.headers.set(e,lc[e])})),t.headers.set("accept","application/graphql"),t.headers.set("x-restli-protocol-version","2.0.0"),e.abrupt("return",n(t))
case 4:case"end":return e.stop()}}),e)})))
return function(t,n){return e.apply(this,arguments)}}(),fc=function(e){var t,n=cc(),i=function(e,t){var n={url:t,request:{}},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return function(e){const{path:t,queryString:n}=Zo(e)
if(t.length>sa)throw new Error(`Per AFD limitations, this request url ${e} will not work. Please contact ask_traffic@.`)
return e.length>sa||n.length>4e3}(e)?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=Object.assign({},t)
n.url=e,n.forceQueryTunnel=!0
const i=function(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=Zo(e.url||void 0)
if(n){const i={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(i[t]=e.headers[t]||"")
let r,o
if(i["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
o="multipart/mixed; boundary="+t,r=["--"+t,"Content-Type: "+oa,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=oa,r=n
return i["Content-Type"]=o,{body:r,headers:i,method:aa,url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}(n)
if(t.method=i.method,t.headers=i.headers,t.body=i.body,t.data=i.body,null==i.url)throw new Error("Invalid: URL to be encoded cannot be 'null' or 'undefined' when performing query tunneling")
return{url:i.url,request:t}}(e,t):{url:e,request:t}}("/".concat(t),{method:"GET"})
if(t&&i.url&&"/"===i.url.charAt(0)&&i.url.length>1)return n.url=i.url.substring(1),n.request=i.request,{url:n.url,request:n.request}
throw Le.fromClientErrorMemo("INVALID_URL")}(0,e),r=i.url,o=i.request
return rc&&uc(rc),function(e,t){return sc||(sc=function(e,t){if(typeof fetch>"u")throw new Error("@data-eden/network requires `fetch` to be available on`globalThis`. Did you forget to setup `cross-fetch/polyfill` before calling @data-eden/network's `buildFetch`?")
const n=Js
let i
const r=[...e].reverse().reduce(((e,t)=>async n=>t(n,e,{fetch:i})),n)
i=async(e,t)=>{const n=new Request(e,t)
return r(n)}
{const t=new Error
i.$debug={get creationStack(){return t.stack},get middlewares(){return e}}}return i}([dc,oc])),sc(e,t)}(r,{body:o.body,headers:null!==(t=o.headers)&&void 0!==t?t:{},method:o.method||"GET"}).then((function(e){return{response:e,requestId:n}}))},pc=function(e,t){var n=cc()
return rc&&uc(rc),fetch(e,{headers:o(o({},lc),{},{accept:"application/json"}),body:t,method:"POST"}).then((function(e){return{response:e,requestId:n}}))},hc=function(e){var t=cc()
return fetch(e,{headers:o({"x-restli-protocol-version":"2.0.0"},lc),method:"DELETE"}).then((function(e){return{response:e,requestId:t}}))},gc=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=ca("restli",e.messengerResource,t,n),r=cc()
return fetch(i,{headers:o({"x-restli-protocol-version":"2.0.0"},lc),method:"DELETE"}).then((function(e){return{response:e,requestId:r}}))},mc={exports:{}},vc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(vc){var yc=new Uint8Array(16)
mc.exports=function(){return vc(yc),yc}}else{var bc=new Array(16)
mc.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),bc[t]=e>>>((3&t)<<3)&255
return bc}}for(var Ec=mc.exports,kc=[],_c=0;_c<256;++_c)kc[_c]=(_c+256).toString(16).substr(1)
var Tc,Sc,Cc=function(e,t){var n=t||0,i=kc
return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")},wc=Ec,xc=Cc,Ic=0,Ac=0,Rc=Ec,Oc=Cc,jc=function(e,t,n){var i=t&&n||0
"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null)
var r=(e=e||{}).random||(e.rng||Rc)()
if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var o=0;o<16;++o)t[i+o]=r[o]
return t||Oc(r)},Mc=jc
Mc.v1=function(e,t,n){var i=t&&n||0,r=t||[],o=(e=e||{}).node||Tc,a=void 0!==e.clockseq?e.clockseq:Sc
if(null==o||null==a){var s=wc()
null==o&&(o=Tc=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Sc=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:Ac+1,u=c-Ic+(l-Ac)/1e4
if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>Ic)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
Ic=c,Ac=l,Sc=a
var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296
r[i++]=d>>>24&255,r[i++]=d>>>16&255,r[i++]=d>>>8&255,r[i++]=255&d
var f=c/4294967296*1e4&268435455
r[i++]=f>>>8&255,r[i++]=255&f,r[i++]=f>>>24&15|16,r[i++]=f>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a
for(var p=0;p<6;++p)r[i+p]=o[p]
return t||xc(r)},Mc.v4=jc
var Nc=Mc
const Pc="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions"
class Dc{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class Uc extends Dc{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const n=[]
t.featureCallCounts.forEach((e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const i={header:{},requestHeader:{},time:Date.now(),metrics:n}
this._fireEventCallback("FeatureDegradationMetricEvent",i,t.pageInstance,e)}))}}class Lc{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class Fc{constructor(e){this.featureMetricIdentifier=e}}function Bc(e){return JSON.stringify(e,Object.keys(e).sort())}class qc extends Lc{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const n=Bc(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const i=new Hc(e)
t(i),this.featureCallCounts.set(n,i)}}}class Hc extends Fc{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class Gc{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class Vc extends Gc{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t)
void 0!==n?e.featureCallCounts.forEach(((e,i)=>{var r
let o=n.featureCallCounts.get(i)
void 0!==o?o=o.mergeCallCounts(e):null===(r=this.metrics.get(t))||void 0===r||r.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=Bc(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const i=new qc(e)
t(i),this.metrics.set(n,i)}}}var Kc
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(Kc||(Kc={}))
const Wc=new Set(Object.values(Kc))
class zc extends Error{constructor(e){super(e),Object.setPrototypeOf(this,zc.prototype)}}function Xc(e){return 0===e.length||!e.trim()}function Qc(e){if("string"!=typeof e)throw new zc(`The product name must be a string. ${Pc}.`)
if(Xc(e))throw new zc(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${Pc}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new zc(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${Pc}.`)
return e}function Yc(e){if("string"!=typeof e)throw new zc(`Keys must be strings. ${Pc}.`)
if(Xc(e))throw new zc(`Keys should not be blank. ${Pc}.`)
if(/[^a-z0-9-]/.test(e))throw new zc(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${Pc}.`)
return e}class $c{constructor(e,t,n){var i,r,o
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Yc(e),this._defaultDegradationKey=Yc(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new zc(`DegradationTrackingMetadata options should be an object. ${Pc}.`)
const a=n.productName
a&&(this._productName=Qc(a))
const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes
!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new zc(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${Pc}.`)
var n
if(429===e||999===e)throw new zc(`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 ${t} options.`)
if(t===Kc.NonDegradedResponseCodes&&e>=400&&e<500)throw new zc(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${Kc.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${Kc.NonDegradedResponseCodes} option. ${Pc}.`)}
if(void 0!==e&&!Array.isArray(e))throw new zc(`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 ${Kc.NonDegradedResponseCodes} option. ${Pc}.`)
if(void 0!==t&&!Array.isArray(t))throw new zc(`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 ${Kc.AdditionalDegradedResponseCodes} option. ${Pc}.`)
null==e||e.forEach((e=>n(e,Kc.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,Kc.AdditionalDegradedResponseCodes)))
const i=new Set(t),r=new Set(e)
if([...i].some((e=>r.has(e))))throw new zc(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${Pc}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach((e=>{if(!Wc.has(e))throw new zc(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${Pc}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames($c.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class Jc{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new Vc,this._lastRequestMetricStore=new Vc,this._requestsMade=0,this._trackingId=Nc.v4()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Jc.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}class Zc extends $c{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===Zc.name}}class el{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!Jc.isRetryableDegradationTrackingMetadata(e)&&!$c.isDegradationTrackingMetadata(e)&&!Zc.isFailureTrackingMetadata(e))throw new zc("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new zc("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let n=$c.isDegradationTrackingMetadata(e)?e:void 0
Jc.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}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}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,n=this._nonDegradedResponseCodes.has(e)
return!t&&!n}shouldImpactAvailability(e,t,n){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new zc(`You attempted to specify ${e} as an additional degraded response code for the '${this.featureKey}' feature, however it is also specified in the non-degraded response codes for that feature. Please decide whether you want to consider ${e} responses a degraded state or not. ${Pc}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new zc(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${Pc}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new zc(`A degradation key override was specified for ${t}, 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(t,e.degradationKey)}))}))}}class tl{constructor(e){const t=new Map
null==e||e.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get("x-li-uuid")||null,this._pointOfPresenceId=t.get("x-li-pop")||null,this._msEdgeRef=t.get("x-msedge-ref")||null,this._fabric=t.get("x-li-fabric")||null,this._responseMetadata=t.get("x-li-pem-resp-meta")||null,this._downstreamAvailability=function(e){if(null==e)return null
const t=e.split(",")
for(const e of t){const t=e.split("=",2)
if(2===t.length&&"availability"===t[0]){const e=parseFloat(t[1])
if(e>=0&&e<=1)return e}}return null}(this._responseMetadata)||1}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}class nl{constructor(e,t,n,i){this._responseCode=e||null,this._parsedResponseHeaders=t?new tl(t):new tl,this._responseError=n||null,this._downstreamServiceErrorCode=i}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const il="undefined"==typeof FastBoot
function rl(e){e._metricsInterval&&window.clearInterval(e._metricsInterval),window.removeEventListener("visibilitychange",e._visibilityListener)}class ol{constructor(e,t,n){this._featureMetricStore=new Vc,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new Uc(this._featureMetricStore,t),il&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),6e4),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,i,r){let o,a=null
const s=new Map,c=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),i.then((e=>{a=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),!1===e.ok&&(o=e)})).catch((e=>{throw o=e,e})).finally((()=>{this._trackResponse(e,a,t,c,r,s,o)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,i,r,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 l=o?null:t,u=this._createFailureProcessingMetadata(i)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,u,r,c,l)}startRetryFlow(e){return ol.startRetryFlow(e)}static startRetryFlow(e){return new Jc(e)}completeRetryFlow(e){if(!Jc.isRetryableDegradationTrackingMetadata(e))throw new zc("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,i,r,o,a){const s=new nl(t,o,a),c=s.parsedHeaders,l=function(e){const t=e.responseError,n=e.parsedHeaders,i=e.responseCode
if(i){if(429===i||999===i)return"TOO_MANY_REQUESTS"
if(n&&!n.hasAnyLinkedInHeaders()&&i&&i>=400&&i<600)return"BLOCKED_BY_CLIENT_PROXY"
if((r=i)>=400&&r<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(i)
if(function(e){return e>=500&&e<600}(i))return function(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}(n)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(i,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var r
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}(s),u=function(e,t){if(!e.includes("/"))return e
const n=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),i=n.split("/").filter((e=>e.length))
if(!t.length)return i.join("/")
const r=[]
for(let e=i.length-1;e>=0;e--){const n=i[e],o=t.indexOf(n)
o>=0?t.splice(o,1):r.push(n)}return r.reverse().join("/")}(e,n),d=new Set,f=new Set
if(i.forEach((e=>{d.add(e.productName),f.add(e.featureKey)
const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(l)&&(e.isCountedAgainstAvailability(l,t)?(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:l,responseFabric:c.fabric},r,function(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}(l,c)):(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},r))})),l){this._reportErrorIfUnclassified(a,l,t,d,f)
const e=function(e,t,n,i){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const r=[],o=i.responseCode
return t.forEach((t=>{const a=t.getDegradationKey(o),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,o),c={endpointPath:e,degradationKey:a,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:i.downstreamServiceErrorCode}
o&&(c.responseCode=o)
const l=i.parsedHeaders
l.callTreeId&&(c.responseCallTreeId=l.callTreeId),(null==l?void 0:l.pointOfPresenceId)&&(c.pointOfPresenceId=l.pointOfPresenceId),(null==l?void 0:l.microsoftEdgeReference)&&(c.microsoftEdgeReference=l.microsoftEdgeReference),(null==l?void 0:l.fabric)&&(c.fabric=l.fabric),Jc.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),r.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})})),r}(u,i,l,s)
e.forEach((e=>{this._fireEventCallback("FeatureDegradeEvent",e,r)}))}}_reportErrorIfUnclassified(e,t,n,i,r){var o
if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["noise","pem-unclassified-error"]
let n
i.forEach((e=>t.push(`pem-product-${e}`))),r.forEach((e=>t.push(`pem-feature-${e}`))),n=e instanceof Error?e:new Error(`Could not classify jQuery response: ${JSON.stringify(e)}`),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new zc(`Please specify a non-empty array of degradation tracking metadata. ${Pc}.`)
const t=new Set
return e.map((e=>{if(!$c.isDegradationTrackingMetadata(e)&&!Jc.isRetryableDegradationTrackingMetadata(e))throw new zc(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${Pc}.`)
const n=Qc(e.productName||this._defaultProductName),i=`${n}!!${e.featureKey}`
if(t.has(i))throw new zc("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(i),new el(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new zc(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${Pc}.`)
return e}}var al={getConversationByIdAPI:"GET_CONVERSATION",getConversationsByIdsAPI:"GET_CONVERSATION",getMessagesByIdsAPI:"GET_MESSAGE",getSyncMessagesByConversationIdAPI:"SYNC_MESSAGE",getSyncMessagesByConversationIdInBatchAPI:"SYNC_MESSAGE",getConversationMessagesByConversationAPI:"GET_MESSAGE",getConversationMessagesByTimestampAPI:"GET_MESSAGE",initialSyncConversationsAPI:"SYNC_CONVERSATION",syncConversationsAPI:"SYNC_CONVERSATION",findConversationsByCursorAPI:"SEARCH_CONVERSATION",findConversationsByTimestampAPI:"SEARCH_CONVERSATION",findConversationsByCategoryAPI:"SEARCH_CONVERSATION",findConversationsByRecipientsAPI:"SEARCH_CONVERSATION",findConversationsBySearchCriteriaAPI:"SEARCH_CONVERSATION",markAllConversationsAsReadAPI:"UPDATE_CONVERSATION",updateConversationAPI:"UPDATE_CONVERSATION",updateConversationsAPI:"UPDATE_CONVERSATION",addCategoryToConversationsAPI:"ADD_CATEGORY",removeCategoryFromConversationsAPI:"REMOVE_CATEGORY",sendMessageToConversationAPI:"SEND_MESSAGE_EXISTING_CONVO",sendFirstMessageToRecipientsAPI:"SEND_MESSAGE_NEW_CONVO",editConversationMessageAPI:"EDIT_MESSAGE",reactWithEmojiAPI:"REACT_MESSAGE",unreactWithEmojiAPI:"UNREACT_MESSAGE",addParticipantsToConversationAPI:"ADD_PARTICIPANTS",removeParticipantsFromConversationAPI:"REMOVE_PARTICIPANTS",deleteConversationMessageAPI:"RECALL_MESSAGE",deleteConversationAPI:"DELETE_CONVERSATION",bulkDeleteConversationsAPI:"DELETE_CONVERSATION"},sl=function(e,t,n){},cl=function(){},ll=function(e){return function(t,n,i,r){e(t,n)}},ul=function(){function e(){u(this,e)}return f(e,null,[{key:"getInstance",value:function(e,t,n){return this.instance||(this.instance=new ol(e,ll(t),null!=n?n:sl)),this.instance}},{key:"resetInstance",value:function(){this.instance=null}}]),e}()
p(ul,"instance",null)
var dl=function(e,t,n,i){return function(){var r=e.track
return r?jt(r(t,"READ",n,i),fc)(t):fc(t)}},fl=function(e,t,n,i){return function(){var r=e.track
return r?jt(r(t,"SEARCH",n,i),fc)(t):fc(t)}},pl=function(e,t,n,i){return function(r){var o=e.track
return o?jt(o(t,"WRITE",n,i),pc)(t,r):pc(t,r)}},hl=function(e,t,n,i,r){return function(o){var a,s=e.track
switch(t){case"GET":a=fc
break
case"POST":a=pc
break
case"DELETE":a=hc}return s?o?jt(s(n,i,r),a)(n,o):jt(s(n,i,r),a)(n):o?a(n,o):a(n)}},gl=function(e){return function(t){return Pe(t)?Promise.reject(t):Promise.reject(Le.fromApiErrorMemo("NETWORK_ERROR",{cause:t,msg:e,originalStatusCodes:[]}))}},ml=function(e,t){return t.json().catch((function(t){return Promise.reject(Le.fromApiErrorMemo("RESPONSE_INVALID_JSON",Ae("method: ".concat(e,"()"),t)))})).then(function(e,t){return function(n){var i=Ue(n)?n:{status:500,statusText:"NO_STATUS_OR_STATUS_TEXT"},r="".concat(e,"() failed with statusText: ").concat(i.statusText||"NO_STATUS_TEXT")
return Promise.reject(new Le("api",t.status,r))}}(e,t))},vl=function(e){return function(t){var n=t.requestId,i=t.response
return i?i.ok?i.json().then((function(e){return function(e){return function(e){return null!==e&&"object"===s(e)&&!Array.isArray(e)}(e)&&"value"in e&&1===Object.keys(e).length}(e)?e.value:e})).then(function(e){return function(t){return o(o({},t),{},{requestId:e})}}(n)).catch((function(t){return Promise.reject(Le.fromApiErrorMemo("RESPONSE_INVALID_JSON",Ae("method: ".concat(e,"()"),t)))})):ml(e,i):Promise.reject(Le.fromApiErrorMemo("NO_RESPONSE_RECEIVED",Ae("method: ".concat(e,"()"))))}},yl=function(e){return function(t){var n=t.response,i=t.requestId
return n?n.ok?Promise.resolve({requestId:i}):ml(e,n):Promise.reject(Le.fromApiErrorMemo("NO_RESPONSE_RECEIVED",Ae("method: ".concat(e,"()"))))}},bl=function(e,t,n,i,r){var o="getConversationsByIdsAPI",a=(r?as:rs)(e,{conversationIds:t,count:n}),s=vl(o)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",a,al[o],i):dl(e,a,o,i))().catch(gl(o)).then(s)},El={category:"INBOX",count:20},kl=function(e,t,n,i,r){var o="findConversationsByRecipientsAPI",a=(r?ts:es)(e,{mailboxUrn:t,recipients:n}),s=vl(o)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",a,al[o],i):dl(e,a,o,i))().then(s).catch(gl(o))},_l={count:20,start:0,sortOrder:"DESCENDING"},Tl=function(e,t,n,i){var r="updateConversationAPI",o=yl(r),a=function(e,t){var n="messengerConversations/".concat(encodeURIComponent(t))
return ca("restli",e.messengerResource,n)}(e,t)
if((e.experimental||{}).isCyPemMetricsEnabled){var s=(i||{}).PEMKey
return hl(e,"POST",a,s||al[r],i)(n).then(o).catch(gl(r))}return pc(a,n).catch(gl(r)).then(o)},Sl=function(e,t){var n="activateTypingStatusAPI",i=yl(n),r=function(e){return ca("restli",e.messengerResource,"messengerConversations",{action:"typing"})}(e),o=JSON.stringify({conversationUrn:t})
return pc(r,o).catch(gl(n)).then(i)},Cl=function(e,t,n,i,r,a,s,c){var l,u,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"NOT_DEDUPE",f="sendMessageToConversationAPI",p=null!==(l=null==c?void 0:c.renderContent)&&void 0!==l?l:void 0,h=null!==(u=null==c?void 0:c.messageSubject)&&void 0!==u?u:void 0,g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return e=>t.reduce(((e,t)=>M(t)(e)),e)}("renderContent","messageSubject")(o({},c)),m=o({message:{body:i,subject:h,renderContentUnions:p,conversationUrn:n,originToken:a},mailboxUrn:t,trackingId:r.trackingId,dedupeByClientGeneratedToken:"DEDUPE"===d},g)
s&&(m.messageDraftUrn=s)
var v,y=JSON.stringify(m),b=vl(f),E=ks(e)
if((e.experimental||{}).isCyPemMetricsEnabled){var k=r.PEMKey
v=hl(e,"POST",E,k||al[f],r)}else v=pl(e,E,f,r)
return v(y).catch(gl(f)).then(b)},wl=function(e,t,n,i){var r="reactWithEmojiAPI",o=yl(r),a=function(e){return ca("restli",e.messengerResource,"messengerMessages",{action:"reactWithEmoji"})}(e),s=JSON.stringify({messageUrn:t,emoji:n})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",a,al[r],i)(s).then(o).catch(gl(r)):pc(a,s).catch(gl(r)).then(o)},xl=function(e,t,n,i){var r="unreactWithEmojiAPI",o=yl(r),a=function(e){return ca("restli",e.messengerResource,"messengerMessages",{action:"unreactWithEmoji"})}(e),s=JSON.stringify({messageUrn:t,emoji:n})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",a,al[r],i)(s).then(o).catch(gl(r)):pc(a,s).catch(gl(r)).then(o)},Il=function(e,t,n,i,r,o,a){var s="createServerDraftMessageAPI",c=vl(s),l={body:n,subject:r,originToken:i}
o&&(l.conversationUrn=o)
var u,d=JSON.stringify(l)
return u=a&&a.length?function(e,t,n){var i={mailboxUrn:t,hostRecipientUrns:n}
return ca("restli",e.messengerResource,"messengerMessageDrafts",i)}(e,t,a):function(e,t){var n={mailboxUrn:t}
return ca("restli",e.messengerResource,"messengerMessageDrafts",n)}(e,t),pc(u,d).catch(gl(s)).then(c)},Al={kind:"category",category:"INBOX"},Rl=function(e){var t,n
return null===(t=Ge[e])||void 0===t||null===(n=t.store)||void 0===n?void 0:n.getState()},Ol=function(e,t,n,i,r){var a=o(o({},e.status),{},{fullyLoaded:r,nextCursor:i})
switch(t.kind){case"category":return"INBOX"===t.category?o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return yt(e,n)&&e.categories.includes("INBOX")&&!e.categories.some((function(e){return["SPAM","ARCHIVE"].includes(e)}))}))}):ne(t)?o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return yt(e,n)&&e.categories.includes(t.category)&&e.categories.includes(t.query)}))}):o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return yt(e,n)&&e.categories.includes(t.category)}))})
case"search":return o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return yt(e,n)&&e.matchingSearches.includes(t.id)}))})
case"drafts":return o(o({},e),{},{status:a,conversations:e.conversations.filtered((function(e){return!!e.draftMessage.content.text})),draftConversations:Array.from(e.draftConversations.values()).filter((function(e){return(e.draftMessage.content.text||e.draftMessage.subject)&&1===e.recipients.length})).reduce((function(e,t){return e.set(t.clientId,t),e}),new Map)})}},jl=function(e){var t
return null===(t=Ge[e])||void 0===t?void 0:t.store},Ml=function(e,t){var n=Ge[e]
return qe(n)?(V(t.message),n.observers.forEach((function(e){return e.error(t)})),n.observers.length):0},Nl=function(e,t,n,i,r){return function(e,t,n,i){var r="getConversationByIdAPI",o=za(e,{messengerConversationsId:t,count:20}),a=vl(r)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",o,al[r],i):dl(e,o,r,i))().then(a).catch(gl(r))}(e,n,0,r).then(function(e,t){return function(n){var i,r,o,a=null===(i=n.data)||void 0===i?void 0:i.messengerConversationsById,s=n.requestId
if(!a)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("conversationByIdResponseToState(): messengerConversationsById response is missing"))
var c,l=a.backendUrn,u=a.categories,d=a.contentMetadata,f=a.conversationTypeText,p=a.conversationUrl,h=a.createdAt,g=a.creator,m=a.disabledFeatures,v=a.entityUrn,y=a.groupChat,b=a.incompleteRetriableData,E=a.lastActivityAt,k=a.lastReadAt,_=a.messages,T=a.notificationStatus,S=a.conversationParticipants,C=a.read,w=a.state,x=a.title,I=a.unreadCount,A=a.hostConversationActions,j=_.elements,M=Hs(S),P=Ks(j),D=P.messages,U=P.participants,L=bt(U,N(M).filter(O))
return{conversationState:{additionalData:null,backendUrn:l,categories:u,clientId:t,contentMetadata:d,conversationTypeText:f,conversationUrl:p,createdAt:new Date(h),creatorHostIdentityUrn:null!==(r=null==g?void 0:g.hostIdentityUrn)&&void 0!==r?r:void 0,disabledFeatures:null!==(o=null==m?void 0:m.filter(O))&&void 0!==o?o:[],draftMessage:As(e,"Local"),entityUrn:v,groupChat:null!=y&&y,hostConversationActions:A,incompleteRetriableData:b,isDraft:!1,lastActivityAt:new Date(E),lastReadAt:new Date(k),matchingSearches:[],messages:new Ts(D),metadata:{},notificationStatus:T,participants:(c=M,R(c).sort()),quickReplies:[],read:C,state:w,status:{loading:!1,sending:"Ready",fullyLoaded:!1},title:x,typingUrns:new Set,unreadCount:I},participants:L.sort(),requestId:s}}}(t,i))},Pl=function(e,t){return function(n){var i=t?Le.fromClientErrorMemo(t,n):n
return Ml(e,i),Promise.reject(i)}},Dl=function(e,t){return function(n){var i=t?Le.fromClientErrorMemo(t,n):n
return Ml(e,i),i}},Ul=function(e,t){return function(n){var i=Le.fromUnknown(t,n)
Ml(e,i)}},Ll=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
return function(n){return Ml(e,n),Promise.resolve(t)}},Fl=function(){return new Map},Bl=function(e,t){return e.updateAny(Qe(t),function(e){return function(t){return o(o({},t),{},{additionalData:e[t.clientId]||t.additionalData})}}(t))},ql=function(e,t){if(!t||!R(t).length||!t.emoji||!t.reactors&&void 0===t.viewerReacted||t.reactors&&(!e||!e.length))return e
var n=t.emoji,i=k(e),r=i.findIndex((function(e){return e.emoji===n}))
if(r>-1){var o=i[r]
if(t.reactors)return o.reactors=t.reactors,i.splice(r,1,o),i
if(o.viewerReacted=t.viewerReacted,t.count&&0===t.count)return i.splice(r,1),i
if(t.count&&t.count>0)o.count=t.count
else if(t.viewerReacted)o.count=o.count+1
else{if(1===o.count)return i.splice(r,1),i
o.count=o.count-1}return t.firstReactedAt&&t.firstReactedAt<o.firstReactedAt&&(o.firstReactedAt=t.firstReactedAt),i.splice(r,1,o),i}return 0===t.count?i:[].concat(k(i),[{count:void 0!==t.count?t.count:1,emoji:n,firstReactedAt:t.firstReactedAt?t.firstReactedAt:Date.now(),viewerReacted:t.viewerReacted,reactors:[]}]).sort((function(e,t){return e.firstReactedAt-t.firstReactedAt}))},Hl=function(e,t){var n=E(kt(t),2),i=n[0],r=n[1]
return e.filter((function(e){return Ye(e)?!i.includes(e.conversationUrn):!r.includes(e.messageUrn)}))},Gl=function(e,t,n){var i=[]
return t.length&&(i=function(e,t){var n=function(e,t){var n=E(kt(t),2),i=n[0],r=n[1]
return e.map((function(e){var t=$e(e)&&r.includes(e.messageUrn),n=Ye(e)&&i.includes(e.conversationUrn)
return t||n?o(o({},e),{},{retryCount:e.retryCount+1}):e}))}(e,t),i=function(e,t){return Hl(t,e).map((function(e){return o(o({},e),{},{retryCount:0})}))}(e,t)
return[].concat(k(n),k(i))}(e,t)),n.length&&(i=Hl(i,n)),i},Vl=function(e,t){return t&&t>e?t:e},Kl=function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i]
"function"==typeof e[r]&&(n[r]=e[r])}var o,a=Object.keys(n)
try{!function(e){Object.keys(e).forEach((function(t){var n=e[t]
if(void 0===n(void 0,{type:Rt.INIT}))throw new Error(wt(12))
if(void 0===n(void 0,{type:Rt.PROBE_UNKNOWN_ACTION()}))throw new Error(wt(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o
for(var i=!1,r={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=e[c],d=l(u,t)
if(void 0===d)throw t&&t.type,new Error(wt(14))
r[c]=d,i=i||d!==u}return(i=i||a.length!==Object.keys(e).length)?r:e}}({entityUrn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0
return"UPDATE_MAILBOXURN"===t.type?t.entityUrn:e},lastActivityAt:function(){return new Date},draftConversations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fl(),t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"REMOVE_DRAFT_CONVERSATIONS":return t.payload.draftConvoClientIds.reduce((function(e,t){return H(e,t)}),e)
case"CONVERT_DRAFT_CONVERSATION":return H(e,t.payload.conversationId)
case"ADD_DRAFT_CONVERSATION":return q(e,t.payload.draftConversation.clientId,t.payload.draftConversation)
case"ADD_DRAFT_CONVERSATIONS":return t.payload.draftConversation.reduce((function(e,t){return q(e,t.clientId,t)}),e)
case"ADD_NEW_MESSAGE_BY_ID":var n=e.get(t.payload.conversationId)
return n?q(e,t.payload.conversationId,o(o({},n),{},{messages:n.messages.add([t.payload.message])})):e
case"READY_MESSAGE_BACK_TO_DRAFT":var i=e.get(t.payload.conversationId)
if(!i)return e
var r=E(i.messages.removeByClientId(t.payload.messageClientId),2),a=r[0],s=r[1]
return q(e,t.payload.conversationId,o(o({},i),{},{messages:s,draftMessage:a?Os(a):As(t.payload.mboxUrn,"Local")}))
case"DELETE_MESSAGE":var c=e.get(t.payload.conversationId)
if(!c)return e
var l=E(c.messages.removeByClientId(t.payload.messageClientId),2)[1]
return q(e,t.payload.conversationId,o(o({},c),{},{messages:l}))
case"UPDATE_DRAFT_MESSAGE":var u=e.get(t.payload.conversationId),d=null==u?void 0:u.draftMessage
return d?q(e,t.payload.conversationId,o(o({},u),{},{draftMessage:o(o({},d),t.payload.draftMessageUpdate)})):e
case"UPDATE_NEW_MESSAGE":if(!ae(t.payload.convoIdentifier))return e
var f=e.get(t.payload.convoIdentifier)
return f?q(e,t.payload.convoIdentifier,o(o({},f),{},{messages:f.messages.updateByClientId(t.payload.messageId,t.payload.message)})):e
case"UPDATE_DRAFT_CONVERSATIONS":var p=t.payload.draftConversationUpdateObj
if(p){var h,g=new Map(e),m=S(B(p))
try{for(m.s();!(h=m.n()).done;){var v=E(h.value,2),y=v[0],b=v[1],k=e.get(y)
if(k){var _=o(o({},k),b)
g=q(g,y,_)}}}catch(e){m.e(e)}finally{m.f()}return g}return e
case"UPDATE_DRAFT_CONVERSATION_SENDING_STATUS":var T=e.get(t.payload.conversationId)
return T?q(e,t.payload.conversationId,o(o({},T),{},{sending:t.payload.sendingStatus})):e
default:return e}},participants:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"DECORATE_PARTICIPANTS":var n=t.payload.data,i=U(R(n).map((function(t){return e[t]?[t,o(o({},e[t]),{},{additionalData:n[t]})]:null})).filter(O))
return o(o({},e),i)
case"ADD_MAILBOX_PARTICIPANTS":case"ADD_CONVERSATION":case"ADD_OLDER_CONVERSATIONS":case"ADD_CONVERSATIONS":case"ADD_DRAFT_CONVERSATIONS":case"UPDATE_CONVERSATION_BY_URN":var r=U(t.payload.participants.map((function(e){return[e.hostIdentityUrn,e]}))),a=R(r).reduce((function(t,n){var i=e[n]
return O(i)&&"EMPTY"!==i.kind&&r[n]&&"EMPTY"===r[n].kind?t[n]=o({},i):t[n]=o(o(o({},i),r[n]),{},{clientId:O(i)?i.clientId:r[n].clientId}),t}),{})
return o(o({},e),a)
default:return e}},conversations:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_t(),n=arguments.length>1?arguments[1]:void 0
switch(n.type){case"DECORATE_CONVERSATIONS":return St.fromConversationArray(t.map((function(e){return o(o({},e),{},{additionalData:n.payload.data[e.clientId]||e.additionalData})})))
case"DECORATE_ALL_MESSAGES":return St.fromConversationArray(t.map((function(e){return o(o({},e),{},{messages:Bl(e.messages,n.payload.data)})})))
case"DECORATE_MESSAGES":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){return o(o({},e),{},{messages:Bl(e.messages,n.payload.data)})}))
case"DECORATE_MESSAGE":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){return o(o({},e),{},{messages:e.messages.updateByUrn(n.payload.messageUrn,{additionalData:n.payload.data})})}))
case"UPDATE_DRAFT_MESSAGE":return t.updateItem(We(n.payload.conversationId),(function(e){return o(o({},e),{},{draftMessage:o(o({},e.draftMessage),n.payload.draftMessageUpdate)})}))
case"UPDATE_NEW_MESSAGE":return t.updateItem(We(n.payload.convoIdentifier),(function(e){return o(o({},e),{},{messages:e.messages.updateByClientId(n.payload.messageId,n.payload.message),quickReplies:ft(e,e.quickReplies,n.payload.message)})}))
case"UPDATE_MESSAGES":var i=n.payload.conversationUrn,r=n.payload.messageUpdateMap
if(!i){var a=R(r),s=fe(t,a[0])
if(!s)return t
i=s.entityUrn}return t.updateItem(Ve(i),(function(e){if(ie(e)){var t=R(r)
return o(o({},e),{},{messages:e.messages.updateAny((n=t,function(e){return n.includes(e.entityUrn)}),(function(e){return e.entityUrn?o(o(o({},e),r[e.entityUrn]),{},{clientId:e.clientId}):e})),quickReplies:ft(e,e.quickReplies)})}return e
var n}))
case"UPDATE_REACTIONS_ON_MESSAGE":var c=n.payload,l=c.messageUrn,u=c.reaction,d=fe(t,l)
if(!d)return t
var f=d.entityUrn
return t.updateItem(Ve(f),(function(e){if(re(e)){var t=e.messages.getByIdentifier(l)
return o(o({},e),{},{messages:e.messages.updateAny(ze(l),(function(e){return o(o({},e),{},{reactions:ql(t.reactions,u),clientId:e.clientId})}))})}return e}))
case"READY_MESSAGE_BACK_TO_DRAFT":return t.updateItem(We(n.payload.conversationId),(function(e){var t=E(e.messages.removeByClientId(n.payload.messageClientId),2),i=t[0],r=t[1]
return o(o({},e),{},{messages:r,draftMessage:i?Os(i):As(n.payload.mboxUrn,"Local")})}))
case"DELETE_MESSAGE":return t.updateItem(We(n.payload.conversationId),(function(e){var t=E(e.messages.removeByClientId(n.payload.messageClientId),2)[1]
return o(o({},e),{},{messages:t})}))
case"DELETE_MESSAGES":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){var t=n.payload.clearAll?new Ts(Array.from(e.messages).filter((function(e){return function(e){return"Draft"===e.status||"Pending"===e.status||"Sending"===e.status}(e)}))):e.messages.removeByUrns(n.payload.messageUrns)
return o(o({},e),{},{messages:t})}))
case"DELETE_DRAFT_MESSAGE":return t.updateItem(We(n.payload.conversationUrn),(function(e){var t=e.draftMessage
return o(o({},e),{},{draftMessage:As(t.senderUrn,"Local")})}))
case"REALTIME_TYPING_ON":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){return o(o({},e),{},{typingUrns:K(e.typingUrns,n.payload.typingUrn)})}))
case"REALTIME_TYPING_OFF":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){return o(o({},e),{},{typingUrns:W(e.typingUrns,n.payload.typingUrn)})}))
case"ADD_NEW_MESSAGE_BY_ID":var p=n.payload,h=p.message,g=p.conversationId,m=h.optionalSendData.conversationState
return t.updateItem(We(g),(function(e){return o(o({},e),{},{messages:e.messages.add([h]),typingUrns:W(e.typingUrns,h.senderUrn),quickReplies:ft(e,e.quickReplies,h),state:null!=m?m:void 0})}))
case"ADD_NEW_MESSAGE_BY_CONVO_URN":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){var t=n.payload.message
return o(o({},e),{},{messages:e.messages.add([t]),typingUrns:W(e.typingUrns,t.senderUrn),quickReplies:ft(e,e.quickReplies,t)})}))
case"CONVERSATION_LOADING":return t.updateItem(We(n.payload.conversationId),(function(e){return o(o({},e),{},{status:o(o({},e.status),{},{loading:n.payload.loading})})}))
case"ADD_OLDER_MESSAGES":return t.updateItem(We(n.payload.conversationUrn),(function(e){return o(o({},e),{},{messages:e.messages.add(n.payload.messages),metadata:o(o({},e.metadata),{},{prevCursor:n.payload.prevCursor}),status:o(o({},e.status),{},{fullyLoaded:n.payload.completed,loading:!1})})}))
case"ADD_NEW_MESSAGES":return t.updateItem(We(n.payload.conversationUrn),(function(e){var t=e.messages.add(n.payload.messages)
return o(o({},e),{},{quickReplies:[],messages:t,metadata:o(o({},e.metadata),{},{syncToken:n.payload.syncToken,shouldClearCache:n.payload.shouldClearCache}),status:o(o({},e.status),{},{loading:!1})})}))
case"CONVERT_DRAFT_CONVERSATION":return t.find(Ve(n.payload.conversation.entityUrn),"FullMailboxState")?t.updateItem(Ve(n.payload.conversation.entityUrn),(function(e){var t=n.payload.conversation.participants.filter(w(e.participants)),i=[].concat(k(e.participants),k(t))
return o(o(o({},e),n.payload.conversation),{},{participants:i,messages:e.messages.add(k(n.payload.conversation.messages)),clientId:n.payload.conversation.clientId})})):t.addItem(o(o({},n.payload.conversation),{},{clientId:n.payload.conversationId}))
case"ADD_OLDER_CONVERSATIONS":return t.addItems(n.payload.conversations,n.payload.writeCategories)
case"ADD_CONVERSATIONS":return t.addItems(n.payload.conversations,"ADD_CATEGORIES"===n.payload.categoriesOption)
case"ADD_CONVERSATION":return t.addItem(n.payload.conversation)
case"UPDATE_CONVERSATION_BY_URN":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){return ct(e,n.payload.conversationUpdate)}))
case"UPDATE_CONVERSATIONS_BY_URN":return t.updateAny(Ke(R(n.payload.convoStatusUpdateMap)),(function(e){var t=n.payload.convoStatusUpdateMap[e.entityUrn]
if(!st(t)&&t.seenReceiptsMap&&e.seenReceiptsMap){var i=ht(e.seenReceiptsMap,t.seenReceiptsMap),r=o(o(o({},e),t),{},{seenReceiptsMap:i})
return lt(e,r)}return lt(e,t)}))
case"UPDATE_CONVERSATION_QUICK_REPLIES":return t.updateItem(Ve(n.payload.conversationUrn),(function(e){return o(o({},e),{},{quickReplies:n.payload.quickReplies})}))
case"UPDATE_CONVERSATION_BY_MESSAGE_URN":var v=fe(t,n.payload.messageUrn)
return v?t.updateItem(We(v.entityUrn),(function(e){return n.payload.conversationUpdate.quickReplies?o(o({},e),{},{quickReplies:ft(e,n.payload.conversationUpdate.quickReplies)}):o(o({},e),n.payload.conversationUpdate)})):t
case"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES":return t.updateAny((e=n.payload.categories,function(t){return void 0!==e.find((function(e){return t.categories.includes(e)}))}),(function(e){return lt(e,n.payload.conversationUpdate)}))
case"DELETE_CONVERSATION":return t.deleteItems(Ve(n.payload.conversationUrn))
case"DELETE_CONVERSATIONS":return n.payload.clearAll?_t():t.deleteItems(Ke(n.payload.conversationUrns))
default:return t}},additionalData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0
return"DECORATE_MAILBOX"===t.type?t.payload:e},connected:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{api:!1,realtime:!1},t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"CONNECT":return o(o({},e),{},{api:!0})
case"REALTIME_CONNECT":return o(o({},e),{},{realtime:t.payload})
default:return e}},status:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o({},Fe),i=arguments.length>1?arguments[1]:void 0
switch(i.type){case"MAILBOX_LOADING":return o(o({},n),{},{loading:i.payload.loading,lastRequestId:Vl(n.lastRequestId,i.requestId)})
case"ADD_OLDER_CONVERSATIONS":return o(o({},n),{},{nextCursor:null!==(e=i.payload.nextCursor)&&void 0!==e?e:n.nextCursor,fullyLoaded:i.payload.fullyLoaded,loading:!1,lastRequestId:Vl(n.lastRequestId,i.requestId)})
case"ADD_CONVERSATIONS":return o(o({},n),{},{loading:!1,syncToken:null!==(t=i.payload.syncToken)&&void 0!==t?t:n.syncToken,lastRequestId:Vl(n.lastRequestId,i.requestId)})
case"UPDATE_REQUEST_ID":return o(o({},n),{},{lastRequestId:Vl(n.lastRequestId,i.requestId)})
default:return i.requestId?o(o({},n),{},{lastRequestId:Vl(n.lastRequestId,i.requestId)}):n}},unreadCounts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{requestId:0},t=arguments.length>1?arguments[1]:void 0
return"UPDATE_MAILBOX_UNREAD_COUNT"===t.type?o(o({},e),t.payload):e},incompleteRetriableEntities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"ADD_CONVERSATION":var n=t.payload.conversation
return n.incompleteRetriableData?Gl(e,[{conversationUrn:n.entityUrn}],[]):Gl(e,[],[{conversationUrn:n.entityUrn}])
case"ADD_CONVERSATIONS":case"ADD_OLDER_CONVERSATIONS":var i=t.payload.conversations,r=i.filter((function(e){return e.incompleteRetriableData})).map((function(e){return{conversationUrn:e.entityUrn}})),o=i.filter((function(e){return!e.incompleteRetriableData})).map((function(e){return{conversationUrn:e.entityUrn}}))
return Gl(e,r,o)
case"UPDATE_CONVERSATION_BY_URN":var a=t.payload,s=a.conversationUrn
return a.conversationUpdate.incompleteRetriableData?Gl(e,[{conversationUrn:s}],[]):Gl(e,[],[{conversationUrn:s}])
case"UPDATE_CONVERSATIONS_BY_URN":var c=t.payload.convoStatusUpdateMap,l=[],u=[]
for(var d in c){var f=c[d]
!st(f)&&f.incompleteRetriableData?l.push({conversationUrn:d}):st(f)||j(f.incompleteRetriableData)||u.push({conversationUrn:d})}return Gl(e,l,u)
case"UPDATE_CONVERSATION_BY_MESSAGE_URN":case"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES":var p=t.payload.conversationUpdate
return p.entityUrn?p.incompleteRetriableData?Gl(e,[{conversationUrn:p.entityUrn}],[]):Gl(e,[],[{conversationUrn:p.entityUrn}]):e
case"ADD_NEW_MESSAGE_BY_ID":case"ADD_NEW_MESSAGE_BY_CONVO_URN":case"UPDATE_NEW_MESSAGE":var h=t.payload.message
return h.entityUrn?h.incompleteRetriableData?Gl(e,[{messageUrn:h.entityUrn}],[]):Gl(e,[],[{messageUrn:h.entityUrn}]):e
case"ADD_NEW_MESSAGES":case"ADD_OLDER_MESSAGES":var g=t.payload.messages.filter((function(e){return e.entityUrn})),m=g.filter((function(e){return e.incompleteRetriableData})).map((function(e){return{messageUrn:e.entityUrn}})),v=g.filter((function(e){return!e.incompleteRetriableData})).map((function(e){return{messageUrn:e.entityUrn}}))
return Gl(e,m,v)
case"UPDATE_MESSAGES":var y=t.payload.messageUpdateMap,b=[],E=[]
for(var k in y){var _=y[k]
_.incompleteRetriableData?b.push({messageUrn:k}):j(_.incompleteRetriableData)||E.push({messageUrn:k})}return Gl(e,b,E)
default:return e}}}),Wl=function(e,t){return{type:"ADD_MAILBOX_PARTICIPANTS",payload:{participants:e},requestId:t}},zl=function(e,t){return{type:"REALTIME_TYPING_ON",payload:{conversationUrn:e,typingUrn:t}}},Xl=function(e,t){return{type:"REALTIME_TYPING_OFF",payload:{conversationUrn:e,typingUrn:t}}},Ql=function(e){return{type:"REALTIME_CONNECT",payload:e}},Yl=function(e,t){return{type:"UPDATE_CONVERSATIONS_BY_URN",payload:{convoStatusUpdateMap:e},requestId:t}},$l=function(e,t){return{type:"DELETE_CONVERSATION",payload:{conversationUrn:e},requestId:t}},Jl=function(e){return{type:"DELETE_CONVERSATIONS",payload:{conversationUrns:e,clearAll:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},requestId:arguments.length>2?arguments[2]:void 0}},Zl=function(e,t,n){return{type:"ADD_CONVERSATION",payload:{conversation:e,participants:t},requestId:n}},eu=function(e,t,n){return{type:"UPDATE_CONVERSATION_BY_URN",payload:{conversationUpdate:e,conversationUrn:t,participants:null!=n?n:[]}}},tu=function(e){return{type:"ADD_DRAFT_CONVERSATION",payload:{draftConversation:e}}},nu=function(e,t,n){return{type:"ADD_DRAFT_CONVERSATIONS",payload:{draftConversation:e,participants:t},requestId:n}},iu=function(e){return{type:"UPDATE_DRAFT_CONVERSATIONS",payload:{draftConversationUpdateObj:e}}},ru=function(e){return{type:"REMOVE_DRAFT_CONVERSATIONS",payload:{draftConvoClientIds:e}}},ou=function(e,t){return{type:"ADD_CONVERSATIONS",payload:{syncToken:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,conversations:e,participants:t,categoriesOption:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ADD_CATEGORIES"},requestId:arguments.length>4?arguments[4]:void 0}},au=function(e,t,n){return{type:"ADD_NEW_MESSAGE_BY_ID",payload:{message:e,conversationId:t},requestId:n}},su=function(e,t){return{type:"CONVERSATION_LOADING",payload:{conversationId:e,loading:t}}},cu=function(e){return{type:"MAILBOX_LOADING",payload:{loading:e}}},lu=function(e,t,n,i,r){return{type:"ADD_OLDER_MESSAGES",payload:{messages:e,conversationUrn:t,completed:n,prevCursor:i},requestId:r}},uu=function(e,t,n,i,r){return{type:"ADD_NEW_MESSAGES",payload:{conversationUrn:t,messages:e,syncToken:n,shouldClearCache:i},requestId:r}},du=function(e,t,n,i){return{type:"UPDATE_NEW_MESSAGE",payload:{message:e,messageId:t,convoIdentifier:n},requestId:i}},fu=function(e,t,n){return{type:"UPDATE_MESSAGES",payload:{messageUpdateMap:e,conversationUrn:t},requestId:n}},pu=function(e,t,n){return{type:"UPDATE_REACTIONS_ON_MESSAGE",payload:{messageUrn:e,reaction:t},requestId:n}},hu=function(e,t,n){return{type:"UPDATE_CONVERSATION_BY_MESSAGE_URN",payload:{messageUrn:e,conversationUpdate:t},requestId:n}},gu=function(e,t){return{type:"UPDATE_DRAFT_MESSAGE",payload:{conversationId:e,draftMessageUpdate:t}}},mu=function(e,t){return{type:"UPDATE_DRAFT_CONVERSATION_SENDING_STATUS",payload:{conversationId:e,sendingStatus:t}}},vu=function(e,t,n){return{type:"DELETE_MESSAGE",payload:{conversationId:e,messageClientId:t},requestId:n}},yu=function(e,t){return{type:"DELETE_DRAFT_MESSAGE",payload:{conversationUrn:e},requestId:t}},bu=function(e,t){return{type:"DELETE_MESSAGES",payload:{conversationUrn:e,messageUrns:t,clearAll:arguments.length>2&&void 0!==arguments[2]&&arguments[2]},requestId:arguments.length>3?arguments[3]:void 0}},Eu=function(e,t,n){var i=e.payload.errors
if(!i)return!1
var r=i.map((function(e){return Le.buildGraphQLPayloadError(e,t)}))
return Ll(n)(Le.fromRealtimeErrorMemo("EVENT_RESPONSE_ERROR",r)),!0},ku=function(e,t,n,i){var r,o,a=null!==(r=null===(o=e.payload)||void 0===o?void 0:o.data)&&void 0!==r?r:void 0
if(j(a)||j(a[n])||j(a[n].result)){var s=Me.PAYLOAD_DATA_DOES_NOT_EXIST
return Ll(i)(new Le("realtime",s.code,"".concat(t,": ").concat(s.message))),!0}return!1},_u={quickReplyMap:{},seenReceiptsMap:{}},Tu=function(e,t,n){if(!ku(t,"SeenReceipt","doDecorateSeenReceiptMessengerRealtimeDecoration",e)){var i,r=t.payload.data.doDecorateSeenReceiptMessengerRealtimeDecoration.result,o=r.message.entityUrn
r.seenByParticipant.hostIdentityUrn&&(i=p({},o,[{participantUrn:r.seenByParticipant.hostIdentityUrn,seenAt:r.seenAt}]),_u.seenReceiptsMap=ht(_u.seenReceiptsMap,i),n.dispatch(hu(o,{seenReceiptsMap:_u.seenReceiptsMap})))}},Su=function(e,t,n){if(!ku(t,"QuickReplies","doDecorateQuickRepliesMessengerRealtimeDecoration",e)){var i=t.payload.data.doDecorateQuickRepliesMessengerRealtimeDecoration.result
if(0===i.length||j(i[0])||j(i[0].message)){var r=Me.PAYLOAD_DATA_IS_NOT_COMPLETE
Ll(e)(new Le("realtime",r.code,"QuickReply: ".concat(r.message)))}else{var o,a=i[0].message,s=i.filter(O)
o=p({},a.entityUrn,s),_u.quickReplyMap=o,n.dispatch(hu(a.entityUrn,{quickReplies:s}))}}},Cu=function(e,t,n,i){var r
if(Eu(t,"NewMessage",e))n.triggerChainSync({pageInstance:null===(r=i.getPageInstance)||void 0===r?void 0:r.call(i)})
else if(!ku(t,"NewMessage","doDecorateMessageMessengerRealtimeDecoration",e)){var a=t.payload.data.doDecorateMessageMessengerRealtimeDecoration.result
if(O((s=a).conversation)&&O(s.body)&&O(s.sender)){var s,c,l,u,d=a.backendConversationUrn,f=a.backendUrn,h=a.body,g=a.conversation,m=a.deliveredAt,v=a.entityUrn,y=a.inlineWarning,b=a.messageBodyRenderFormat,E=a.originToken,_=a.reactionSummaries,T=a.renderContent,S=a.sender,C=a.actor,w=a.subject,x=null!==(u=(null!==(c=null===(l=a.previousMessages)||void 0===l?void 0:l.elements)&&void 0!==c?c:[]).filter(O)[0])&&void 0!==u?u:null,I=g.entityUrn,A=Ps(S),R=C?Ps(C):void 0,j=Xs(Cs(T)),M=j.data,N=j.participants
if(I&&h&&function(e,t){return 0==e.text.length&&(null===t||0===t.length)}(h,T))setTimeout((function(){var e
n.triggerMessagesSync(I,{pageInstance:null===(e=i.getPageInstance)||void 0===e?void 0:e.call(i)})}),2e3)
else{var P,D,U=ws({actorUrn:null==R?void 0:R.hostIdentityUrn,senderUrn:A.hostIdentityUrn,content:h,optionalSendData:M,entityUrn:v,inlineWarning:null!=y?y:void 0,messageBodyRenderFormat:b,reactions:xs(_),status:"Delivered",clientId:E,deliveredAt:new Date(m),backendConversationUrn:d,backendUrn:f,subject:null!=w?w:""}),L=function(e,t){var n=_u.quickReplyMap[t]?_u.quickReplyMap[t]:[],i=_u.seenReceiptsMap[t]?p({},t,_u.seenReceiptsMap[t]):{},r=o(o({},e),{},{quickReplies:n,seenReceiptsMap:i})
return delete _u.quickReplyMap[t],delete _u.seenReceiptsMap[t],r}(g,v),F=Is(L),B=R?[].concat(k(N),[R]):N,q=bt(B,Ms(g.conversationParticipants))
n.experimentalValues&&!0!==n.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?(n.dispatch(Wl(q)),n.handleRealtimeNewMessage(I,F,U,x,void 0,{pageInstance:null===(P=i.getPageInstance)||void 0===P?void 0:P.call(i)}).catch((function(t){Ll(e)(Le.fromRealtimeErrorMemo("EVENT_ERROR",t))}))):n.handleRealtimeNewMessage(I,F,U,x,q,{pageInstance:null===(D=i.getPageInstance)||void 0===D?void 0:D.call(i)}).catch((function(t){Ll(e)(Le.fromRealtimeErrorMemo("EVENT_ERROR",t))}))}}else{var H=Me.PAYLOAD_DATA_IS_NOT_COMPLETE
Ll(e)(new Le("realtime",H.code,"NewMessage: ".concat(H.message)))}}},wu=function(e,t,n,i,r,o,a){try{var s,c,l,u,d,f,p,h=E(r.getRealtimeTopics(),2)[1],g=null!==(s=null==h?void 0:h.get("TypingIndicator"))&&void 0!==s?s:"no-topic",m=null!==(c=null==h?void 0:h.get("NewMessage"))&&void 0!==c?c:"no-topic",v=null!==(l=null==h?void 0:h.get("ConversationUpdate"))&&void 0!==l?l:"no-topic",y=null!==(u=null==h?void 0:h.get("ConversationDelete"))&&void 0!==u?u:"no-topic",b=null!==(d=null==h?void 0:h.get("SeenReceipt"))&&void 0!==d?d:"no-topic",k=null!==(f=null==h?void 0:h.get("QuickReplies"))&&void 0!==f?f:"no-topic",_=null!==(p=null==h?void 0:h.get("ReactionSummary"))&&void 0!==p?p:"no-topic"
switch(Array.from(h.values()).includes(t.topic)&&a&&function(e,t,n,i,r){if(r&&r.trackingFireEvent){var o={publisherTrackingId:e.publisherTrackingId||null,realtimeEventId:e.id,realtimeTrackingId:e.trackingId,topicUrn:e.topic,consumedTime:t,contextUrn:n,actorUrn:i}
r.trackingFireEvent("RealtimeEventConsumedEvent",o)}}(t,o,e,r.actorUrn,a),t.topic){case g:!function(e,t,n,i,r){if(!ku(t,"TypingIndicator","doDecorateTypingIndicatorMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateTypingIndicatorMessengerRealtimeDecoration.result,a=o.conversation.entityUrn,s=o.typingParticipant.hostIdentityUrn
n>=0&&function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:5
i(r(e,t))
var s="".concat(e,",").concat(t)
n.has(s)&&clearTimeout(n.get(s))
var c=setTimeout((function(){i(o(e,t))}),1e3*a)
n.set(s,c)}(a,s,i,r.dispatch,zl,Xl,n)}}(e,t,i,n,r)
break
case m:Cu(e,t,r,a)
break
case v:!function(e,t,n,i){var r
if(Eu(t,"ConversationUpdate",e))n.triggerChainSync({pageInstance:null===(r=i.getPageInstance)||void 0===r?void 0:r.call(i)})
else if(!ku(t,"ConversationUpdate","doDecorateConversationMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateConversationMessengerRealtimeDecoration.result,a=Ms(o.conversationParticipants),s=o.entityUrn,c=Is(o)
n.experimentalValues&&!0===n.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?n.dispatch(eu(Et(c),s,a)):(n.dispatch(Wl(a)),n.dispatch(eu(Et(c),s)))}}(e,t,r,a)
break
case y:!function(e,t,n,i){var r
if(Eu(t,"ConversationDelete",e))n.triggerChainSync({pageInstance:null===(r=i.getPageInstance)||void 0===r?void 0:r.call(i)})
else if(!ku(t,"ConversationDelete","doDecorateConversationDeleteMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateConversationDeleteMessengerRealtimeDecoration.result.entityUrn
n.dispatch($l(o))}}(e,t,r,a)
break
case b:Tu(e,t,r)
break
case k:Su(e,t,r)
break
case _:!function(e,t,n){if(!ku(t,"ReactionSummary","doDecorateRealtimeReactionSummaryMessengerRealtimeDecoration",e)){var i=t.payload.data.doDecorateRealtimeReactionSummaryMessengerRealtimeDecoration.result
if(i.reactionSummary){var r=i.message.entityUrn
n.dispatch(pu(r,i.reactionSummary))}else{var o=Me.PAYLOAD_DATA_IS_NOT_COMPLETE
Ll(e)(new Le("realtime",o.code,"ReactionSummaryUpdate: ".concat(o.message)))}}}(e,t,r)
break
default:V("Unhandled realtime event: ",t)}}catch(t){var T=Me.EVENT_ERROR
Ll(e)(new Le("realtime",T.code,T.message,t))}},xu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2
u(this,e),p(this,"_maxRetryCount",void 0),p(this,"_retryTimeoutInSecond",void 0),p(this,"_backoffMultiplier",void 0),p(this,"_attemptCount",0),p(this,"_startTime",Date.now()),p(this,"_currentTask",null),p(this,"_messageId",void 0),p(this,"_tryFn",void 0),p(this,"_cancelCondition",void 0),p(this,"_retryCondition",void 0),p(this,"_internalResolve",void 0),p(this,"_internalReject",void 0),this._messageId=t,this._backoffMultiplier=n,this.reset()}return f(e,[{key:"retryCount",get:function(){return this._attemptCount-1}},{key:"_backoff",get:function(){return Math.min(Math.pow(2,this._attemptCount)*this._backoffMultiplier,640)}},{key:"try",value:function(e){return this._tryFn=e,this}},{key:"times",value:function(e){return this._maxRetryCount=e,this}},{key:"timeoutAfter",value:function(e){return this._retryTimeoutInSecond=e,this}},{key:"cancelIf",value:function(e){return this._cancelCondition=e,this}},{key:"retryIf",value:function(e){return this._retryCondition=e,this}},{key:"start",value:function(){var e=this
this._startTime=Date.now()
var t=new Promise((function(t,n){e._internalResolve=t,e._internalReject=n}))
return this._cycle(),t}},{key:"cancel",value:function(){this._currentTask&&(this._currentTask.cancel(),this._currentTask=null),this._stopRetrying(Le.fromClientErrorMemo("RETRY_CANCELLED"))}},{key:"reset",value:function(){this._attemptCount=0,this._startTime=Date.now()}},{key:"_cycle",value:function(){var e=this
this._currentTask=null,this._attemptCount++,void 0!==this._tryFn?this._tryFn(this._attemptCount).then((function(t){var n
return null===(n=e._internalResolve)||void 0===n||n.call(e,t),t})).catch((function(t){var n
if(null!==(n=e._cancelCondition)&&void 0!==n&&n.call(e,t)||e._exceedMaxRetryCount()||e._exceedRetryTimeout())e._stopRetrying(t)
else if(e._retryCondition&&e._messageId&&!e._retryCondition(e._messageId))e._stopRetrying(t)
else{var r=new i.Task(e._cycle.bind(e))
r.start(1e3*e._backoff),e._currentTask=r}})):this._stopRetrying(new Error("No function supplied to retry"))}},{key:"_stopRetrying",value:function(e){var t
null===(t=this._internalReject)||void 0===t||t.call(this,e)}},{key:"_exceedMaxRetryCount",value:function(){return void 0!==this._maxRetryCount&&this._attemptCount>this._maxRetryCount}},{key:"_exceedRetryTimeout",value:function(){return void 0!==this._retryTimeoutInSecond&&(Date.now()-this._startTime)/1e3+this._backoff>this._retryTimeoutInSecond}}]),e}(),Iu=function(e,t,n,i,r,o,a){if(t&&a){var s,c=e?e.messages:null,l=c&&c.length>1?c.at(c.length-2):null,u={funnelBody:{clientSend:{isFirstMessage:!e||1===e.messages.length,isSelfReply:!!l&&l.senderUrn===r,messagingThreadUrn:null!=i?i:null,messagingMessageUrn:null!=o?o:null,sourceType:null==t?void 0:t.sourceType,previousMessageCreatedTime:l?l.deliveredAt.getTime():null,previousMessagingMessageUrn:l?l.backendUrn:null,draftMessageStorageType:null,isSystemClipboardUsed:null==t?void 0:t.isSystemClipboardUsed,aiMessageType:null!==(s=null==t?void 0:t.aiMessageType)&&void 0!==s?s:null,sentTime:n}},trackingId:t.trackingId,funnelStep:"CLIENT_SEND"}
t.messageComposeFlowTrackingId&&(u.messageComposeFlowTrackingId=t.messageComposeFlowTrackingId),a&&a("MessageSendFunnelTrackingEvent",u)}},Au=function(){return!D()||!window.navigator||window.navigator.onLine},Ru=function(e){var t=e.optionalSendData.renderContent[0]
return null!=t&&t.file?"ATTACHMENT":null!=t&&t.externalMedia?"GIF":null!=t&&t.forwardedMessageContent?"FORWARD":null!=t&&t.vectorImage?"IMAGE":"TEXT_ONLY"},Ou=function(e,t){var n="ONE_ON_ONE"
return t&&(n="GROUP_CHAT"),e.optionalSendData.renderContent.length&&e.optionalSendData.renderContent.forEach((function(e){e.hostUrnData&&e.hostUrnData.type.includes("INMAIL")&&(n="INMAIL")})),n},ju=function(e){var t=e.code,n=e.message
return Au()?n&&(n.indexOf("NetworkError when attempting to fetch resource")>=0||n.indexOf("Failed to fetch")>=0)?"CLIENT_NETWORK_ERROR":t?/^4[0-9][0-9]$/.test(t.toString())?"NETWORK_ERROR":/^5[0-9][0-9]$/.test(t.toString())?"SERVER_ERROR":999===t?"OTHER_NON_FATAL_ERROR":"OTHER_SERVER_ERROR":null:"NO_NETWORK"},Mu=function(e){var t,n=Array.isArray(e.cause)?e.cause.map((function(e){return e.stack})).join():null===(t=e.cause)||void 0===t?void 0:t.stack,i="".concat(e.message).concat(n?"; ".concat(n):"")
return Au()?"Code: ".concat(e.code," | Type: ").concat(e.name," (").concat(e.namespace,") | Details: ").concat(i):"No available connections"},Nu=function(e,t,n,i,r,o,a){a&&a("MessagesSyncConsumedEvent",{syncedMessagingMessageUrns:e.filter((function(e){return!!e})),messagingThreadUrn:t,isBootstrap:!!i,mailboxUrn:null!=r?r:null,actorUrn:null!=o?o:null,consumedTime:null!=n?n:null})},Pu=function(e,t,n,i,r){return!!r&&(r("ConversationsSyncConsumedEvent",{syncedMessagingThreadUrns:e,isBootstrap:t,mailboxUrn:null!=n?n:null,actorUrn:null!=i?i:null}),!0)},Du=function(e,t,n,i,r,o,a){var s={trackingId:xi(),syncType:t,messagingThreadUrns:o?o.map((function(e){return e.backendUrn})):[],failureReason:ju(e),failureDetail:Mu(e),responseCode:e.code,retryCount:n,mailboxUrn:i,actorUrn:r,failureTime:Date.now()}
a&&a("MessagingSyncClientFailureEvent",s)},Uu=function(e,t,n){n&&n("MessagingClientSendEvent",{sentTime:t,messageUrn:e,publisherTrackingId:""})},Lu=function(e){return wi(Array.from(Ai(e)))},Fu=function(e,t,n,i,r,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"FIRST",l=arguments.length>8?arguments[8]:void 0,u=r.messages.getByIdentifier(a)
if(!u)return Promise.reject(Le.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var d=Lu(a),f=o(o({},l),{},{trackingId:d}),p=-1
return i(du({status:"Sending"},a,r.entityUrn)),new xu(a).try((function(i){return p=rd(),Cl(e,t,r.entityUrn,u.content,f,a,s,u.optionalSendData,1!==i||"RETRY"===c?"DEDUPE":"NOT_DEDUPE").then(td(n,i,c)).catch(ed(n,i,c,r,u,f,void 0))})).timeoutAfter(n.options.sendRetryTimeoutInSecond).retryIf(dt(n,r.clientId)).cancelIf($u).start().then((function(e){return function(e,t,n){if(t.originToken&&t.originToken!==n)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("messagePostToState(): MessagePostResponse originToken does not match with the clientId",new Error("Invalid originToken ".concat(t.originToken," - expected ").concat(n))))
return{clientId:n,content:(i=t,s=(null!==(r=i.body.attributes)&&void 0!==r?r:[]).filter(O),c=s.find((function(e){return e.attributeKindUnion})),o(o({},i.body),{},c?{attributes:s.map((function(e){return{start:e.start,length:e.length,attributeKind:e.attributeKindUnion}}))}:{attributes:null!==(a=i.body.attributes)&&void 0!==a?a:[]})),entityUrn:t.entityUrn,backendConversationUrn:t.backendConversationUrn,backendUrn:t.backendUrn,lastActivityAt:new Date(t.deliveredAt),deliveredAt:new Date(t.deliveredAt),senderUrn:e,status:"Sent",subject:t.subject}
var i,r,a,s,c}(u.senderUrn,e,a)})).then((function(e){var t,o
return p&&i(du({lastAttemptAt:new Date(p)},a,r.entityUrn)),Iu(r,f,p,r.backendUrn,e.senderUrn,e.backendUrn,null===(t=n.options.trackingOptions)||void 0===t?void 0:t.trackingFireEvent),e.backendUrn&&Uu(e.backendUrn,p,null===(o=n.options.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),e})).then((function(e){return i(du(o(o({},e),{},{status:"Sent"}),a,r.entityUrn)),r.clientId})).catch((function(e){return i(du({status:"Failed"},a,r.entityUrn)),Promise.reject(e)}))},Bu=function(e,t,n,i,r,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"FIRST",l=arguments.length>8?arguments[8]:void 0,u=r.messages.getByIdentifier(a)
if(!u)return Promise.reject(Le.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var d=r.clientId,f=r.recipients,p=Lu(a),h=o(o({},l),{},{trackingId:p}),g=-1
return i(du({status:"Sending"},a,d)),new xu(a).try((function(i){return g=rd(),function(e,t,n,i,r,a,s,c){var l,u,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"NOT_DEDUPE",f="sendFirstMessageToRecipientsAPI",p=null!==(l=null==c?void 0:c.renderContent)&&void 0!==l?l:void 0,h=null!==(u=null==c?void 0:c.messageSubject)&&void 0!==u?u:void 0,g=o({},c)
delete g.renderContent,delete g.messageSubject
var m=o({message:{body:n,subject:h,originToken:a,renderContentUnions:p},mailboxUrn:t,trackingId:r.trackingId,dedupeByClientGeneratedToken:"DEDUPE"===d,hostRecipientUrns:i},g)
s&&(m.messageDraftUrn=s)
var v=JSON.stringify(m),y=vl(f),b=_s(e)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",b,al[f],r):pl(e,b,f,r))(v).catch(gl(f)).then(y)}(e,t,u.content,f,h,a,s,u.optionalSendData,1!==i||"RETRY"===c?"DEDUPE":"NOT_DEDUPE").then(td(n,i,c)).catch(ed(n,i,c,void 0,u,h,f))})).timeoutAfter(n.options.sendRetryTimeoutInSecond).retryIf(dt(n,d)).cancelIf($u).start().then((function(e){var r,o
return g&&i(du({lastAttemptAt:new Date(g)},a,d)),Iu(void 0,h,g,e.backendConversationUrn,t,e.backendUrn,null===(r=n.options.trackingOptions)||void 0===r?void 0:r.trackingFireEvent),Uu(e.backendUrn,g,null===(o=n.options.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),e})).then((function(n){return Nl(e,t,n.conversationUrn,d,h)})).then((function(e){var t=e.conversationState,n=e.participants,r=e.requestId
return i(Wl(n,r)),i(function(e,t,n){return{type:"CONVERT_DRAFT_CONVERSATION",payload:{conversationId:e,conversation:t},requestId:n}}(d,t,r)),i(du({status:"Sent"},a,t.entityUrn)),t.entityUrn})).catch((function(e){return i(du({status:"Failed"},a,d)),Promise.reject(e)}))},qu=function(e){return"personal"===e.mailboxType},Hu=function(e,t,n,r,o,a){var s=function(e){var t=Ge[e]
if(qe(t))return{urn:e,data:t.store.getState(),realtime:t.realtime}}(e)
return s&&tt(s.data)?Promise.resolve(s):t.useRealtime?function(e,t,n,r){var o=(0,i.getClient)(void 0)
return o.addActorUrn(n.actorUrn),function(e,t,n,r){var o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5?arguments[5]:void 0,l=(o=r.triggerChainSync,a=null==s?void 0:s.getPageInstance,Ct((function(){G("Throttled chain-sync"),o({pageInstance:null==a?void 0:a()})}),6e4)[0])
return(e.connected?Promise.resolve():e.connect("RETRY")).then((function(){G("realtime connected"),function(e,t){var n=(0,i.getClient)(),r=E(e.getRealtimeTopics(),2),o=r[0],a=k(r[1].values()).filter((function(e){return!e.endsWith(":myself")}))
o&&a.length>0&&(G("Subscribing to broadcast topics",'JWT="...'.concat($(20,o),'"'),"Number of topics: ".concat(a.length)),n.addSubscriptions(a,o).then((function(e){7===e.succeeded.length?null==t||t.triggerGeneralMetric("unlimited-mailboxes-subscribe-topics"):G("Broadcast topics subscription failed for these topics:",e.failed.join(", "))})).catch((function(e){G("Broadcast topics subscription failed! ❌",e)})))}(r,c),(0,i.getClient)().addContext(t)
var o=new Map
e.addEventListener("error",(function(n,i){G("error event from common-time - ".concat(i.message," ").concat(e.connected?"💚":"💔")),r.dispatch(Ql(e.connected)),function(e){return void 0!==e.status}(i)&&600===i.status&&Ll(t)(Le.buildCommonTimeError(i))})),e.addEventListener("connect",(function(){G("realtime connect ".concat(e.connected?"💚":"💔")),r.dispatch(Ql(e.connected))})),e.addEventListener("reconnecting",(function(){G("realtime reconnecting ".concat(e.connected?"💚":"💔"))})),e.addEventListener("close",(function(){G("realtime close ".concat(e.connected?"💚":"💔")),r.dispatch(Ql(e.connected))})),e.addEventListener("poorRealtimeConnectionDetected",(function(){G("realtime poor connection ".concat(e.connected?"💛":"💔")),r.dispatch(Ql(e.connected))})),e.addEventListener("authSubscribeFailed",(function(t,n){G("realtime authSubscribeFailed (Auth token likely expired) ".concat(e.connected?"💚":"💔")),function(e,t,n){t.getRealtimeTopics()[0]===e&&t.fetchAndUpdateTopics().then((function(){var e=E(t.getRealtimeTopics(),2),i=e[0],r=e[1]
i&&n.addSubscriptions(Array.from(r.values()),i)}))}(n,r,e)})),"personal"===r.mailboxType?e.addEventListener("reconnected",(function(n,i){G("personal mailbox ".concat(t," re-subscribed - chainSync! gap (sec):"),i/1e3),l(),r.dispatch(Ql(e.connected))})):e.addEventListener("topicsResubscribed",(function(n,i){(function(e,t,n){var i=E(e.getRealtimeTopics(),2)[1].get("NewMessage")
return O(i)&&t.includes(i)})(r,i.topics)&&(G("secondary mailbox ".concat(t," re-subscribed - chainSync! gap (sec):"),i.timeGapMs/1e3),l(),r.dispatch(Ql(e.connected)))})),e.addEventListener("topic",(function(i,a){G("⚡️ Realtime event: ",a.topic),wu(t,a,o,n,r,e.serverClockTime,s)}))})).catch((function(e){var n=Me.CANNOT_CONNECT
return Pl(t)(new Le("realtime",n.code,n.message,e))}))}(o,e,t.typingIndicatorDelayInSecond,n,t.trackingOptions,r).catch((function(){return Promise.resolve()}))}(e,t,r,a).then((function(){return Gu(e,t,n,o)})):s&&s.data.connected.api?Promise.resolve(s):Gu(e,t,n,o)},Gu=function(e,t,n,i){return function(e,t,n,i,r){return function(e,t,n,i){var r="initialSyncConversationsAPI",o=(i?Qa:Xa)(e,{mailboxUrn:t}),a=vl(r)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",o,al[r],n):dl(e,o,r,n))().then(a).catch(gl(r))}(e,t,r,i).then((a=n,function(e){var t,n,i
Ys(e,"messengerConversationsBySyncToken")
var r=null===(t=e.data)||void 0===t?void 0:t.messengerConversationsBySyncToken
if(!r)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("allConversationsToState(): messengerConversationsBySyncToken response is missing"))
var s=e.requestId,c=p({},a.hostIdentityUrn,a),l=null!==(n=null===(i=r.metadata)||void 0===i?void 0:i.newSyncToken)&&void 0!==n?n:null,u=r.elements.filter(Ds).map((function(e){var t=E(Ns(e,As(a.hostIdentityUrn,"Local")),2),n=t[0]
return t[1].forEach((function(e){c[e.hostIdentityUrn]?"EMPTY"!==e.kind&&(c[e.hostIdentityUrn]=o(o({},c[e.hostIdentityUrn]),e)):c[e.hostIdentityUrn]=e})),n})).filter(O)
return{conversations:u,newSyncToken:l,participants:c,requestId:s}})).then((function(e){return(n=t,function(e){var t=new Date,i=e.conversations,r=e.participants,a=e.newSyncToken,s=e.requestId
return{additionalData:null,connected:{api:!1,realtime:!1},conversations:St.fromConversationArray(i),draftConversations:new Map,entityUrn:n,lastActivityAt:t,participants:r,status:o(o({},Fe),{},{syncToken:a,lastRequestId:s}),unreadCounts:{}}})(e)
var n}))
var a}(zu(t),e,n,!!t.experimental.enableServerDraft,i).then((function(t){return{urn:e,data:t}})).catch((function(n){var i,r,o
throw null===(i=t.trackingOptions)||void 0===i||null===(r=i.incrementMetricCounterHandler)||void 0===r||r.call(i,{groupName:"messengerData",metricName:"conversation-list-sync-fail"}),Du(n,"CONVERSATIONS",1,e,t.viewerUrn,void 0,null===(o=t.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),n}))},Vu=function(e){var t
return e.data&&void 0!==e.data.messengerConversationsByCategory?{data:e.data.messengerConversationsByCategory,requestId:e.requestId}:e.data&&function(e){return void 0!==e.messengerConversationsByCategoryQuery}(e.data)?{data:e.data.messengerConversationsByCategoryQuery,requestId:e.requestId}:null!==(t=e.data)&&void 0!==t&&t.messengerConversationsBySearchCriteria&&function(e){return void 0!==e.messengerConversationsBySearchCriteria}(e.data)?{data:e.data.messengerConversationsBySearchCriteria,requestId:e.requestId}:{data:{elements:[],metadata:{nextCursor:null}}}},Ku=function(e,t){return p({},e.entityUrn,{status:{sending:t}})},Wu=function(e,t,n,i){e(t?i?bu(i,new Set,!0):Jl([],!0):i?bu(i,new Set(n.filter((function(e){return e.message})).map((function(e){return e.message.entityUrn})))):Jl(n.filter((function(e){return e.conversation})).map((function(e){return e.conversation.entityUrn}))))},zu=function(e){var t,n=E(null!==(t=function(e){var t,n,i
if(!1===(null===(t=e.trackingOptions)||void 0===t?void 0:t.usePemTracking))return null
var r=(null!==(n=e.experimental)&&void 0!==n?n:{}).isCyPemMetricsEnabled,o=null!==(i=e.trackingOptions)&&void 0!==i?i:{},a=o.pemPrefix,c=o.trackingFireEvent,l=o.degradationMetadataConfig,u=o.jetCallback,d=void 0!==a&&void 0!==c&&D()
return D()&&r&&void 0!==a&&void 0!==c&&"object"===s(l)&&R(l).length>0?function(e,t,n,i){var r,o=ul.getInstance(e,n,i)
return[function(e,n,i){return function(r){var a=t[n]
if(!a)return G("No PEM degradation metadata found for operation: ".concat(n," - skipping PEM tracking")),r
var s=(null!=i?i:{}).pageInstance
if(s){var c=[a],l=new Promise((function(e,t){r.then((function(t){return e(t.response)})).catch(t)}))
return o.trackFeatureDegradationsForFetch(e,[],c,l,s).then((function(){return r}))}return r}},(r=o,function(){rl(r),ul.resetInstance()})]}(a,l,c,u):d?function(e,t,n,i){var r,o=function(e,t,n){return{READ:new ol("".concat(e," - Read"),ll(t),sl),WRITE:new ol("".concat(e," - Send"),ll(t),sl),SEARCH:new ol("".concat(e," - Search"),ll(t),null!=n?n:sl)}}(e,n,i)
return[function(e,n,i,r){return function(a){var s,c=(null!=r?r:{}).pageInstance
if(c){var l=[new $c(t[n],"failed-to-".concat((s=i,s.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})))))],u=new Promise((function(e,t){a.then((function(t){return e(t.response)})).catch(t)}))
return o[n].trackFeatureDegradationsForFetch(e,[],l,u,c).then((function(){return a}))}return a}},(r=o,function(){return N(r).forEach(rl)})]}(a,{READ:"messaging-conversation-load-module",WRITE:"messaging-conversation-send-module",SEARCH:"messaging-conversation-search-module"},c,u):[function(){return function(e){return e}},cl]}(e))&&void 0!==t?t:[],2),i=n[0],r=void 0===i?null:i,o=n[1],a=void 0===o?cl:o
return{experimental:e.experimental,messengerResource:e.messengerResource,mpName:e.mpName,queryFormat:e.queryFormat,teardown:D()?a:cl,track:r}},Xu=function(e,t,n,i,r){n.length&&function(e,t,n,i){var r="acknowledgeMessagesReceivedAPI",o=yl(r),a=function(e){return ca("restli",e.messengerResource,"messengerMessageDeliveryAcknowledgements",{action:"sendDeliveryAcknowledgement"})}(e),s=JSON.stringify({messageUrns:t,clientId:i,deliveryMechanism:n,clientConsumedAt:Date.now()})
return pc(a,s).catch(gl(r)).then(o)}(t,n,i,r).catch(Ll(e))},Qu=function(e,t,n,i){t(function(e,t,n){return{type:"ADD_NEW_MESSAGE_BY_CONVO_URN",payload:{message:e,conversationUrn:t},requestId:void 0}}(i,n)),e.clientSensorTrackers.triggerRecipientMetric("realtime-message-received")},Yu=function(e,t,n){return function(i,r,a,s,c,l){if(a.entityUrn){var u,d=null!==(u=e.experimentalValues)&&void 0!==u&&u.useNewClientId?"".concat(t.mpName,"-").concat(e.actorUrn):t.mpName
Xu(e.id,t,[a.entityUrn],"REALTIME",d)}var f=e.state.conversations.getByIdentifier(i,"FullMailboxState")
if(f){var p=f.messages.first()
return p&&p.deliveredAt.getTime()>a.deliveredAt.getTime()?Promise.resolve():(r.lastActivityAt>f.lastActivityAt&&(e.experimentalValues&&!0===e.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?n(eu(Et(r),i,c)):n(eu(Et(r),i))),Qu(e,n,i,a),a.clientId===f.draftMessage.clientId&&n(gu(i,Rs(f.draftMessage,{clientId:Va()}))),s&&f.messages.getByIdentifier(s.entityUrn)?Promise.resolve():(e.clientSensorTrackers.triggerRecipientMetric("realtime-message-gap-detected"),e.syncConversationMessages(i,"FullMailboxState",l)))}var h=function(e,t,n){var i,r,a
return o(o({},t),{},{additionalData:null,clientId:Va(),entityUrn:e,draftMessage:n,lastEditedAt:n.lastEditedAt,matchingSearches:[],messages:new Ts,status:{fullyLoaded:null!==(i=t.status.fullyLoaded)&&void 0!==i&&i,loading:null!==(r=t.status.loading)&&void 0!==r&&r,sending:null!==(a=t.status.sending)&&void 0!==a?a:"Ready"},typingUrns:new Set})}(i,r,As(e.participant.hostIdentityUrn,"Local"))
return n(Zl(h,[])),Qu(e,n,i,a),Promise.resolve()}},$u=function(e){if(Pe(e)){var t=e.code
return void 0!==t&&t>399&&t<500&&422!==t&&429!==t}return!1},Ju=function(e){if(Pe(e)){var t=e.code
return void 0!==t&&t>399&&t<500}return!1},Zu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now()
return e.reduce((function(e,t){return t.lastActivityAt.getTime()<e?t.lastActivityAt.getTime():e}),t)}
function ed(e,t,n,i,r,o,a){return function(s){var c,l
1===t?e.clientSensorTrackers.triggerSenderMetric("FIRST"===n?"message-send-fail":"message-manual-retry-fail"):e.clientSensorTrackers.triggerSenderMetric("message-auto-retry-fail")
var u=rd()
return Iu(i,o,u,null==i?void 0:i.backendUrn,r.senderUrn,void 0,null===(c=e.options.trackingOptions)||void 0===c?void 0:c.trackingFireEvent),function(e,t,n,i,r,o,a){var s=ju(e),c=Mu(e),l=!1
if(o&&(l=o.length>1),n&&(l=null==n?void 0:n.groupChat),r&&i){var u={isAutoRetry:t>1,clientFailureType:s,clientFailureDetail:c,conversationType:Ou(i,l),messageContentType:Ru(i),messagingThreadUrn:n?n.backendUrn:null,sourceType:r.sourceType,trackingId:r.trackingId,messageComposeFlowTrackingId:r.messageComposeFlowTrackingId,messageSendAttemptedAt:Date.now()}
a&&a("MessageSendClientFailureEvent",u)}}(s,t,i,r,o,a,null===(l=e.options.trackingOptions)||void 0===l?void 0:l.trackingFireEvent),Promise.reject(s)}}function td(e,t,n){return function(i){return 1===t?e.clientSensorTrackers.triggerSenderMetric("FIRST"===n?"message-send-success":"message-manual-retry-success"):e.clientSensorTrackers.triggerSenderMetric("message-auto-retry-success"),i}}var nd,id=function(e,t,n,i){n&&n.length>0&&n.map((function(n){t.findIndex((function(e){return Ye(e)&&e.conversationUrn===n.entityUrn}))>-1&&(n.incompleteRetriableData?e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-failure"):e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-success"))})),i&&i.length>0&&i.map((function(n){n.entityUrn&&t.findIndex((function(e){return $e(e)&&e.messageUrn===n.entityUrn}))>-1&&(n.incompleteRetriableData?e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-failure"):e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-success"))}))},rd=function(){try{return(0,i.getClient)().serverClockTime}catch(e){return G("Failed to retrieve server time from common-time:",e),Date.now()}},od=function(e,t){return{kind:"MEMBER",clientId:e,entityUrn:"urn:li:msg_messagingParticipant:".concat(t),hostIdentityUrn:t,backendUrn:null,firstName:"",lastName:"",headline:"",additionalData:null,pronoun:{customPronoun:"",standardizedPronoun:""},profile:{},showVerificationBadge:!1,showPremiumInBug:!1}},ad=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
u(this,e),p(this,"_queue",void 0),p(this,"_continueOnFailure",void 0),this._queue=[],this._continueOnFailure=t}return f(e,[{key:"length",get:function(){return this._queue.length}},{key:"enqueue",value:function(e,t,n){var i=this
return new Promise((function(r,o){i._queue.push({requestGenerator:e,resolve:r,reject:o,messageId:t}),1===i._queue.length&&i._flush(n)}))}},{key:"start",value:function(e){return this._flush(e)}},{key:"_flush",value:function(e){var t=this
if(this._queue.length){var n=this._queue[0]
if(!e||e&&n.messageId&&e(n.messageId))return n.requestGenerator().then((function(i){return n.resolve(i),t._queue.shift(),t._queue.length>0?t._flush(e).then((function(e){return e+1})):1})).catch((function(i){return n.reject(i),t._continueOnFailure&&(t._queue.shift(),t._queue.length>0)?t._flush(e):Promise.resolve(0)}))
if(this._queue.shift(),this._queue.length>0)return this._flush(e)}return Promise.resolve(0)}}]),e}(),sd="function"==typeof Symbol&&Symbol.observable||"@@observable",cd="messengerData",ld=function(e){return{triggerSenderMetric:function(t){null==e||e({groupName:cd,metricName:t})},triggerRecipientMetric:function(t){null==e||e({groupName:cd,metricName:t})},triggerGeneralMetric:function(t){null==e||e({groupName:cd,metricName:t})}}},ud=function(){},dd={start:ud,end:ud}
nd=Symbol.observable
var fd=function(){function e(t,n,i){var r,a=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Al,c=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0
u(this,e),p(this,"_retrieveNetworkConfig",void 0),p(this,"_stateSubscribers",[]),p(this,"_complete",!1),p(this,"_pendingErrors",[]),p(this,"_id",void 0),p(this,"_options",void 0),p(this,"_throttledTypingFns",{}),p(this,"_callThrottledTypingFnForConvo",(function(e){a.options.typingIndicatorDelayInSecond>=0&&(e in a._throttledTypingFns||(a._throttledTypingFns[e]=Ct((function(){Sl(a.networkConfig,e).catch(Ll(a.id))}),1e3*a.options.typingIndicatorDelayInSecond)),a._throttledTypingFns[e][0]())})),p(this,"_cancelThrottledTypingFnForConvo",(function(e){a._throttledTypingFns[e]&&a._throttledTypingFns[e][1]()})),p(this,"_filter",void 0),p(this,"_oldestConversationTime",0),p(this,"_cursor",null),p(this,"_oldestDraftMessageEditedAt",void 0),p(this,"_fullyLoaded",!1),p(this,"_isLoadingConversations",!1),p(this,"_pendingDraftCreationByClientId",new Set),p(this,"_pendingDraftCreationByRecipientUrns",new Array),p(this,"_updateDraftDebounceFnByMessageDraftClientId",new Map),p(this,"_localParticipant",void 0),p(this,"_actorUrn",void 0),p(this,"_dispatch",void 0),p(this,"_clientSensorTrackers",void 0),p(this,"trackingData",{}),p(this,"_sendMessageInDraftConvoWithQueue",(function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"FIRST"
if(e.messages.length>0)return Pl(a.id)(Le.fromClientErrorMemo("CANNOT_ADD_MESSAGES_IN_CONVERSATION"))
var c=e.draftMessage,l=o(o({},Bs(c)),{},{content:null!=t?t:c.content,optionalSendData:c.optionalSendData&&i?Ze(c.optionalSendData,i):i||c.optionalSendData})
a._dispatch(au(l,e.clientId))
var u=a.state.draftConversations.get(e.clientId)
return u?("Failed"!==u.sending&&a._dispatch(mu(u.clientId,"InProgress")),a._getRequestQueue("messageSend",u.clientId).enqueue((function(){return Bu(a.networkConfig,a.participant.hostIdentityUrn,a,a._dispatch.bind(a),u,c.clientId,n,s,r).then((function(e){var t
return(null===(t=a.state.conversations.getByIdentifier(e,"FullMailboxState"))||void 0===t?void 0:t.clientId)||u.clientId})).catch((function(e){return a.options.continueOnFailure||a._dispatch(mu(u.clientId,"Failed")),Pl(a.id)(Le.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),c.clientId,dt(a,u.clientId)).finally((function(){0===a._getRequestQueue("messageSend",u.clientId).length&&a._dispatch(mu(u.clientId,"Ready"))}))):Pl(a.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Send message in draft conversation"))})),this._id=t,this._options=o({},n),this._filter=s,this._dispatch=c,this._retrieveNetworkConfig=l,this._clientSensorTrackers=ld(null===(r=n.trackingOptions)||void 0===r?void 0:r.incrementMetricCounterHandler),this._localParticipant=od(i,this.id),this._actorUrn=n.viewerUrn,function(e,t){var n=Ge[e]
qe(n)&&n.observers.push(t)}(t,{next:function(e){return function(e,t){e.forEach((function(e){return e.next(t)}))}(a._stateSubscribers,Ol(e,s,a._oldestConversationTime,a._cursor,a._fullyLoaded))},error:function(e){return a._notifyErrorSubscribers(e)},complete:function(){a._complete||(a._complete=!0,a._stateSubscribers.forEach((function(e){var t
return null===(t=e.complete)||void 0===t?void 0:t.call(e)})))}})}return f(e,[{key:"experimentalValues",get:function(){return this._options.experimental}},{key:nd,value:function(){return this}},{key:sd,value:function(){return this}},{key:"observable",get:function(){return this}},{key:"subscribe",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!he(e)&&!pe(e))throw Le.fromInvalidType("subscribe","subscriber"," Subscriber | NextFunction")
var n=e
return pe(e)&&(n={next:e}),this._stateSubscribers.push(n),this._pendingErrors.length>0&&this._pendingErrors.forEach((function(e){return t._notifyErrorSubscribers(e)})),setTimeout((function(){return n.next(t.state)}),0),{unsubscribe:function(){t._stateSubscribers=t._stateSubscribers.filter((function(e){return e!==n}))}}}},{key:"filter",get:function(){return this._filter}},{key:"subscribersCount",get:function(){return this._stateSubscribers.length}},{key:"state",get:function(){var e=Rl(this._id)
if(!e)throw Le.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = get state(), mailboxUrn = ".concat(this._id,", state = ").concat(s(e))))
return Ol(e,this._filter,this._oldestConversationTime,this._cursor,this._fullyLoaded)}},{key:"participant",get:function(){return this._localParticipant}},{key:"actorUrn",get:function(){return this._actorUrn}},{key:"id",get:function(){return this._id}},{key:"options",get:function(){return this._options}},{key:"clientSensorTrackers",get:function(){return this._clientSensorTrackers}},{key:"tracking",get:function(){var e
return null!==(e=this._options.trackingOptions)&&void 0!==e?e:{}}},{key:"performance",get:function(){var e,t
return null!==(e=null===(t=this.tracking)||void 0===t?void 0:t.performance)&&void 0!==e?e:dd}},{key:"getPageInstanceFn",get:function(){var e,t
return null!==(e=this.tracking)&&void 0!==e&&e.getPageInstance?null===(t=this.tracking)||void 0===t?void 0:t.getPageInstance:function(){}}},{key:"getPageKeyFn",get:function(){var e
return null===(e=this.tracking)||void 0===e?void 0:e.getPageKey}},{key:"isLoadingConversations",get:function(){return this._isLoadingConversations}},{key:"getConversations",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2?arguments[2]:void 0
if(this._options.enableParameterTypeChecks){var r="getConversations"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(r,"convoIdentifiers"," URN | UUIDV4[]"))
if(!X(n))return Pl(this.id)(Le.fromInvalidType(r,"count"," number"))
if(!j(i)&&!we(i))return Pl(this.id)(Le.fromInvalidType(r,"trackingData","TrackingData | undefined"))
if(!Y(e,ue))return Pl(this.id)(Le.fromInvalidType(r,"convoIdentifiers[x]"," URN or UUIDV4"))}this.performance.start("msg-sdk:mailbox:getConversations")
var o=E(e.reduce((function(e,n){var i=t.state.conversations.getByIdentifier(n,"FullMailboxState")
return i?[e[0],[].concat(k(e[1]),[i])]:[[].concat(k(e[0]),[n]),e[1]]}),[[],[]]),2),a=o[0],s=o[1]
return a.length?bl(this.networkConfig,a,n,i,!!this.experimentalValues.enableServerDraft).then((function(e){return qs(e,t.participant.hostIdentityUrn)})).then((function(e){var n=e.conversations,i=e.participants,r=e.requestId
return t._dispatch(ou(n,N(i).filter(O),null,"SKIP_CATEGORIES",r)),t._updateLocalParticipant(),nt([].concat(k(s),k(n)))})).catch(Pl(this.id)).finally((function(){return t.performance.end("msg-sdk:mailbox:getConversations")})):Promise.resolve(s)}},{key:"syncConversationMessages",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FullMailboxState",i=arguments.length>2?arguments[2]:void 0
if(this._options.enableParameterTypeChecks){var r="syncConversationMessages"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(r,"conversationUrn","URN"))
if(!Se(n))return Pl(this.id)(Le.fromInvalidType(r,"selectOption","SelectorFilterOption"))
if(!j(i)&&!we(i))return Pl(this.id)(Le.fromInvalidType(r,"trackingData","TrackingData | undefined"))}this.performance.start("msg-sdk:mailbox:syncConversationMessages")
var o=this.state.conversations.getByIdentifier(e,n)
return o?(this._dispatch(su(o.clientId,!0)),new xu(void 0,1.25).try((function(n){return function(e,t,n,i){var r="getSyncMessagesByConversationIdAPI",o={conversationUrn:t,syncToken:n}
n||delete o.syncToken
var a=fs(e,o),s=vl(r)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",a,al[r],i):dl(e,a,r,i))().then(s).catch(gl(r))}(t.networkConfig,e,o.metadata.syncToken,i).catch((function(e){var i
throw t.clientSensorTrackers.triggerRecipientMetric("message-list-sync-fail"),Du(e,"MESSAGES",n,t.id,t.actorUrn,[o],null===(i=t.tracking)||void 0===i?void 0:i.trackingFireEvent),e}))})).timeoutAfter(this.options.syncRetryTimeoutInSecond).cancelIf(Ju).start().then((function(e){return function(e){var t
Ys(e,"messengerMessagesBySyncToken")
var n=null===(t=e.data)||void 0===t?void 0:t.messengerMessagesBySyncToken
if(!n)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("syncMessagesToMessageStates(): messengerMessagesBySyncToken response is missing"))
return Vs(n,e.requestId)}(e)})).then((function(n){var i,r,a,s=n.messages,c=n.newSyncToken,l=n.shouldClearCache,u=n.deletedUrns,d=n.participants,f=n.requestId
t._dispatch(Wl(d,f)),Wu(t._dispatch.bind(t),l,u,e)
var p=o.messages.first();(a=!l&&p?k(s).filter((function(e){return e.deliveredAt.getTime()>=p.deliveredAt.getTime()})):k(s)).length!==s.length&&t.clientSensorTrackers.triggerRecipientMetric("drop-older-sync-messages"),t._dispatch(uu(a,o.entityUrn,c,l,f))
var h,g=null!==(i=t.experimentalValues)&&void 0!==i&&i.useNewClientId?"".concat(t.networkConfig.mpName,"-").concat(t.actorUrn):t.networkConfig.mpName
return Xu(t.id,t.networkConfig,s.map((function(e){return e.entityUrn})),"SYNC",g),h=rd(),Nu(s.map((function(e){return e.backendUrn})),o.backendUrn,h,l,t.id,t.actorUrn,null===(r=t.tracking)||void 0===r?void 0:r.trackingFireEvent),t._updateLocalParticipant(),t._getSeenReceipts(e).catch(Ll(t.id)),t._getQuickReplies(e).catch(Pl(t.id)),t.clientSensorTrackers.triggerRecipientMetric("message-list-sync-success"),Promise.resolve()})).catch((function(e){return t._dispatch(su(o.clientId,!1)),Pl(t.id)(Le.fromClientErrorMemo("MESSAGE_LIST_SYNC_FAILED",e))})).finally((function(){return t.performance.end("msg-sdk:mailbox:syncConversationMessages")}))):Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Syncing conversation messages"))}},{key:"syncConversationsAPI",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!j(e)&&!we(e))return Pl(this.id)(Le.fromInvalidType("syncConversationsAPI","trackingData","TrackingData | undefined"))
this.performance.start("msg-sdk:mailbox:syncConversationsAPI")
var n=this.state.status.syncToken
return this.state.status.loading?(V("Trying to chain-sync while already loading"),Promise.resolve(0)):n?(this._dispatch(cu(!0)),new xu(void 0,1.25).try((function(i){return function(e,t,n,i,r,a,s){return function(e,t,n,i){var r="syncConversationsAPI",o={mailboxUrn:t}
n&&(o.syncToken=n)
var a=ds(e,o),s=vl(r)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",a,al[r],i):dl(e,a,r,i))().then(s).catch(gl(r))}(e,t,i,s).then((function(e){return function(e,t){var n,i,r,a,s,c,l
Ys(e,"messengerConversationsBySyncToken")
var u=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsBySyncToken
if(!u)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("syncConversationsToState(): messengerConversationsBySyncToken response is missing"))
var d=e.requestId,f={},p=null!==(i=null===(r=u.metadata)||void 0===r?void 0:r.newSyncToken)&&void 0!==i?i:null,h=null!==(a=null===(s=u.metadata)||void 0===s?void 0:s.shouldClearCache)&&void 0!==a&&a,g=null!==(c=null===(l=u.metadata)||void 0===l?void 0:l.deletedUrns)&&void 0!==c?c:[],m=u.elements.filter(Ds).map((function(e){var n=E(Ns(e,As(t,"Local")),2),i=n[0]
return n[1].forEach((function(e){f[e.hostIdentityUrn]?f[e.hostIdentityUrn]=o(o({},f[e.hostIdentityUrn]),e):f[e.hostIdentityUrn]=e})),i})).filter(O)
return{conversations:m,newSyncToken:p,shouldClearCache:h,deletedUrns:g,participants:f,requestId:d}}(e,t)})).then((function(e){var n
return Pu(e.conversations.map((function(e){return e.backendUrn})),!!e.shouldClearCache,t,r.actorUrn,null===(n=r.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),r.clientSensorTrackers.triggerRecipientMetric("conversation-list-sync-success"),e})).catch((function(e){var n
throw r.clientSensorTrackers.triggerRecipientMetric("conversation-list-sync-fail"),Du(e,"CONVERSATIONS",a,t,r.actorUrn,void 0,null===(n=r.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),e})).then((function(i){var o=i.conversations.map((function(e){var t,n,i=null===(t=r.state.conversations.getByIdentifier(e.entityUrn))||void 0===t||null===(n=t.metadata)||void 0===n?void 0:n.syncToken
return i?{conversationUrn:e.entityUrn,syncToken:i}:{conversationUrn:e.entityUrn}}))
return function(e,t,n){var i="getSyncMessagesByConversationIdInBatchAPI",r=ps(e,{criteria:t}),o=vl(i)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",r,al[i],n):dl(e,r,i,n))().then(o).catch(gl(i))}(e,o,s).then((function(t){var o
Ys(t,"messengerMessagesBySyncTokensInBatch")
var a=null===(o=t.data)||void 0===o?void 0:o.messengerMessagesBySyncTokensInBatch
if(!a)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("chainSync(): messengerMessagesBySyncTokensInBatch response is missing"))
var s=U(i.conversations.map((function(e){return[e.entityUrn,e]})))
return a.forEach(function(e,t,n,i,r){return function(o){var a,s,c
if(!o)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("chainSync() > handleSingleResponseBatchSync(): messengerMessagesBySyncTokensInBatch response for a single conversation is missing"))
var l=Vs(o,n),u=l.messages,d=l.newSyncToken,f=l.shouldClearCache,p=l.deletedUrns,h=l.participants,g=l.requestId
e(Wl(h,g))
var m=null===(a=(null!==(c=o.elements)&&void 0!==c?c:[])[0])||void 0===a||null===(s=a.conversation)||void 0===s?void 0:s.entityUrn
if(m){var v
Wu(e,f,p,m),void 0===i.state.conversations.getByIdentifier(m)&&e(Zl(t[m],[])),e(uu(k(u),m,d,f,g))
var y=null!==(v=i.experimentalValues)&&void 0!==v&&v.useNewClientId?"".concat(r.mpName,"-").concat(i.actorUrn):r.mpName
Xu(i.id,r,u.map((function(e){return e.entityUrn})),"SYNC",y)
var b=i.state.conversations.getByIdentifier(m,"FullMailboxState")
if(b){var E,_=rd()
Nu(u.map((function(e){return e.backendUrn})),b.backendUrn,_,f,i.id,i.actorUrn,null===(E=i.options.trackingOptions)||void 0===E?void 0:E.trackingFireEvent)}}i._updateLocalParticipant()}}(n,s,t.requestId,r,e)),r.clientSensorTrackers.triggerRecipientMetric("message-list-sync-success"),i})).catch((function(e){var n
throw r.clientSensorTrackers.triggerRecipientMetric("message-list-sync-fail"),Du(e,"MESSAGES",1,t,r.actorUrn,i.conversations,null===(n=r.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),e}))}))}(t.networkConfig,t.id,t._dispatch.bind(t),n,t,i,e)})).timeoutAfter(this.options.syncRetryTimeoutInSecond).cancelIf(Ju).start().then((function(e){var n=e.conversations,i=e.newSyncToken,r=e.shouldClearCache,o=e.deletedUrns,a=e.participants,s=e.requestId
return Wu(t._dispatch.bind(t),null!=r&&r,null!=o?o:[]),t._dispatch(ou(n,N(a).filter(O),i,"ADD_CATEGORIES",s)),t._updateLocalParticipant(),n.length})).catch((function(e){return t._dispatch(cu(!1)),Pl(t.id)(Le.fromClientErrorMemo("CHAIN_SYNC_FAILED",e))})).finally((function(){return t.performance.end("msg-sdk:mailbox:syncConversationsAPI")}))):Pl(this.id)(Le.fromClientErrorMemo("CHAIN_SYNC_CANNOT_START"))}},{key:"composeByRecipients",value:function(e){var t,n,i=this
if(this._options.enableParameterTypeChecks){var r="composeByRecipients"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(r,"recipientUrns","URN[]"))
if(!Y(e,le))return Pl(this.id)(Le.fromInvalidType(r,"recipientUrns[x]","URN"))}return kl(this.networkConfig,this.id,e,{pageInstance:null===(t=this.tracking)||void 0===t||null===(n=t.getPageInstance)||void 0===n?void 0:n.call(t)},!!this.experimentalValues.enableServerDraft).then((function(t){var n,r=null===(n=t.data)||void 0===n?void 0:n.messengerConversationsByRecipients.elements.filter(Ds),o=t.requestId
if(null!=r&&r.length){var a=r[0],s=i.state.conversations.getByIdentifier(a.entityUrn,"FullMailboxState")
if(s)return Promise.resolve(s)
var c=Us(t,i.participant.hostIdentityUrn),l=c.conversations,u=c.participants,d=l.filter((function(e){return!i.state.conversations.getByIdentifier(e.clientId)}))
i._dispatch(ou(d,N(u).filter(O),null,"ADD_CATEGORIES",o))
var f=i.state.conversations.getByIdentifier(l[0].clientId,"FullMailboxState")
return f?Promise.resolve(f):Pl(i.id)(Le.fromClientErrorMemo("COMPOSE_BY_RECIPIENTS_FAILED"))}return i.experimentalValues.enableServerDraft?i.findConversationDraftsByRecipients(e).then((function(t){return t.length?Promise.resolve(t[0]):i.createDraftConversation(e)})):i.createDraftConversation(e)}))}},{key:"getConversationsByRecipients",value:function(e){var t,n,i=this
if(this._options.enableParameterTypeChecks){var r="getConversationsByRecipients"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(r,"recipientUrns","URN[]"))
if(!Y(e,le))return Pl(this.id)(Le.fromInvalidType(r,"recipientUrns[x]","URN"))}return kl(this.networkConfig,this.id,e,{pageInstance:null===(t=this.tracking)||void 0===t||null===(n=t.getPageInstance)||void 0===n?void 0:n.call(t)},!!this.experimentalValues.enableServerDraft).then((function(e){var t=Us(e,i.participant.hostIdentityUrn),n=t.conversations,r=t.participants,o=i._keepExistingClientIdForAllConvoTypes(n)
return i._dispatch(ou(o,N(r).filter(O),null,"SKIP_CATEGORIES",e.requestId)),Promise.resolve(o)}))}},{key:"createDraftConversation",value:function(e){if(this._options.enableParameterTypeChecks){var t="createDraftConversation"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(t,"recipientUrns","URN[]"))
if(!Y(e,le))return Pl(this.id)(Le.fromInvalidType(t,"recipientUrns[x]","URN"))}var n=js(this.participant.entityUrn,e)
return this._dispatch(tu(n)),Promise.resolve(n)}},{key:"deleteDraftConversations",value:function(e){var t=this
if(this._options.enableParameterTypeChecks){var n="deleteDraftConversations"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(n,"draftConvoIdentifiers","(URN | UUIDV4)[]"))
if(!e.every(ue))return Pl(this.id)(Le.fromInvalidType(n,"draftConvoIdentifiers","(URN | UUIDV4)[]"))}var i=[],r=[],o=[]
return e.forEach((function(e){if(le(e)){r.push(e)
var n=vt(t.state.draftConversations,e)
n&&o.push(n.clientId)}else{var a=t.state.draftConversations.get(e)
a&&(a.entityUrn?(r.push(a.entityUrn),o.push(e)):i.push(e))}})),i.length&&this._dispatch(ru(i)),r.length?function(e,t){var n="deleteServerDraftConversationAPI",i=function(e,t){var n={ids:t}
return ca("restli",e.messengerResource,"messengerConversationDrafts",n)}(e,t),r=yl(n)
if((e.experimental||{}).isCyPemMetricsEnabled)return hc(i).catch(gl(n)).then(r)
var o={ids:t},a=yl(n)
return gc(e,"messengerConversationDrafts",o).catch(gl(n)).then(a)}(this.networkConfig,r).then((function(){t._dispatch(ru(o))})).catch((function(e){throw Le.fromApiErrorMemo("SERVER_DRAFT_CONVERSATION_DELETE_FAILED",Ae("method: deleteDraftConversations()",e))})):Promise.resolve()}},{key:"deleteDraftMessage",value:function(e){var t=this,n=this._getConversationByIdentifier(e)
if(!n)return Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Cannot delete draft message from non-existent conversation"))
var i=n.draftMessage.entityUrn
return i?function(e,t){var n="deleteServerDraftMessageAPI",i=function(e,t){var n="messengerMessageDrafts/".concat(encodeURIComponent(t))
return ca("restli",e.messengerResource,n)}(e,t),r=yl(n)
if((e.experimental||{}).isCyPemMetricsEnabled)return hc(i).catch(gl(n)).then(r)
var o="messengerMessageDrafts/".concat(encodeURIComponent(t)),a=yl(n)
return gc(e,o).catch(gl(n)).then(a)}(this.networkConfig,i).then((function(){t._dispatch(yu(e))})).catch(Pl(this.id)):Promise.resolve().then((function(){t._dispatch(yu(e))}))}},{key:"updateDraftConversations",value:function(e){if(this._options.enableParameterTypeChecks&&!ke(e))return Pl(this.id)(Le.fromInvalidType("updateDraftConversations","draftConversationUpdateObj","DraftConversationUpdateObj"))
var t,n={},i=S(B(e))
try{for(i.s();!(t=i.n()).done;){var r=E(t.value,2),o=r[0],a=r[1],s=vt(this.state.draftConversations,o)
null!=s&&s.entityUrn&&void 0!==a.title&&(n[o]=a)}}catch(e){i.e(e)}finally{i.f()}return R(n).length&&function(e,t){var n="updateServerConversationTitleAPI",i=R(t),r={}
i.forEach((function(e){r[e]=ha(t[e])}))
var o=JSON.stringify({entities:r}),a=function(e,t){var n=pa(t),i="messengerConversationDrafts?ids=List(".concat(n,")")
return ca("restli",e.messengerResource,i)}(e,i),s=vl(n)
return pc(a,o).catch(gl(n)).then(s)}(this.networkConfig,n).catch(Pl(this.id)),this._dispatch(iu(e)),Promise.resolve(this.state.draftConversations)}},{key:"getAllDraftConversations",value:function(){var e,t,n,i,r,a,s,c=this
return this.performance.start("msg-sdk:mailbox:getAllDraftConversations"),(e=this.networkConfig,t=this.id,n=this._oldestDraftMessageEditedAt?{timeRange:{end:this._oldestDraftMessageEditedAt}}:{},i="getMessageDraftsByMailboxAPI",r=o(o({mailboxUrn:t},_l),n),a=Es(e,r),s=vl(i),dl(e,a,i,void 0)().then(s).catch(gl(i))).then((function(e){var t,n=null===(t=e.data)||void 0===t?void 0:t.messengerMessageDraftsByMailboxV2.elements
return null!=n&&n.length?c._oldestDraftMessageEditedAt=n[n.length-1].lastEditedAt:c._fullyLoaded=!0,e})).then((function(e){return function(e){if(!e.data||!e.data.messengerMessageDraftsByMailboxV2||!e.data.messengerMessageDraftsByMailboxV2.elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("messageDraftsByMailboxToState(): messengerMessageDraftsByMailboxV2 response is missing"))
var t=e.data.messengerMessageDraftsByMailboxV2.elements.filter(O),n=Ls(t),i=n.draftConvoStatesWithMsgDrafts,r=n.convoStatesWithMsgDrafts,o=n.draftConvoParticipants
return{convoStatesWithMsgDrafts:r,convoParticipants:n.convoParticipants,draftConvoStatesWithMsgDrafts:i,draftConvoParticipants:o,requestId:e.requestId}}(e)})).then((function(e){var t=e.convoStatesWithMsgDrafts,n=e.convoParticipants,i=e.draftConvoStatesWithMsgDrafts,r=e.draftConvoParticipants,o=e.requestId,a=c._keepExistingClientIdForAllConvoTypes(t),s=c._keepExistingClientIdForAllConvoTypes(i),l=a.reduce((function(e,t){return e.some((function(e){return e.entityUrn===t.entityUrn}))||e.push(t),e}),[])
c._dispatch(ou(l,N(n).filter(O),null,"ADD_CATEGORIES",o))
var u=gt(s)
return c._dispatch(nu(u,N(r).filter(O),o)),Promise.resolve({existingConversations:a,draftConversations:s})})).finally((function(){return c.performance.end("msg-sdk:mailbox:getAllDraftConversations")}))}},{key:"findConversationDraftsByRecipients",value:function(e){var t,n,i,r,o,a,s=this
if(this._options.enableParameterTypeChecks){var c="findConversationDraftsByRecipients"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(c,"recipientUrns","URN[]"))
if(!Y(e,le))return Pl(this.id)(Le.fromInvalidType(c,"recipientUrns[x]","URN"))}return this.performance.start("msg-sdk:mailbox:findConversationDraftsByRecipients"),(t=this.networkConfig,n=this.id,i=e,r="findConversationDraftsByRecipientsAPI",o=vs(t,{mailboxUrn:n,recipients:i}),a=vl(r),fl(t,o,r,void 0)().then(a).catch(gl(r))).then((function(e){return function(e){if(Ys(e,"draftConversationsByRecipientsToState()"),!e.data||!e.data.messengerConversationDraftsByRecipients||!e.data.messengerConversationDraftsByRecipients.elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("draftConversationsByRecipientsToState(): messengerConversationDraftsByRecipients response is missing"))
var t=e.data.messengerConversationDraftsByRecipients.elements.filter(O).flatMap((function(e){var t
return null===(t=e.draftMessages)||void 0===t?void 0:t.elements})).filter(Fs),n=Ls(t)
return{draftConvoStatesWithMsgDrafts:n.draftConvoStatesWithMsgDrafts,draftConvoParticipants:n.draftConvoParticipants,requestId:e.requestId}}(e)})).then((function(e){var t=e.draftConvoStatesWithMsgDrafts,n=e.draftConvoParticipants,i=e.requestId,r=s._keepExistingClientIdForAllConvoTypes(t),o=gt(r)
return s._dispatch(nu(o,N(n).filter(O),i)),Promise.resolve(o)})).finally((function(){return s.performance.start("msg-sdk:mailbox:findConversationDraftsByRecipients")}))}},{key:"findLatestMessageDraftByConversation",value:function(e){var t=this
return this._options.enableParameterTypeChecks&&!le(e)?Pl(this.id)(Le.fromInvalidType("findLatestMessageDraftByConversation","conversationUrn","URN")):(this.performance.start("msg-sdk:mailbox:findLatestMessageDraftByConversation"),function(e,t,n){var i="findMessageDraftsByConversationsInBatchAPI",r=ys(e,{criteria:[{conversationUrn:t}]}),o=vl(i)
return dl(e,r,i,void 0)().then(o).catch(gl(i))}(this.networkConfig,e).then((function(e){return function(e){var t
if(!e.data||!e.data.messengerMessageDraftsByConversationsInBatch||null===(t=e.data.messengerMessageDraftsByConversationsInBatch)||void 0===t||!t[0].elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("messageDraftsByConversationToState(): messengerMessageDraftsByConversation response is missing"))
return e.data.messengerMessageDraftsByConversationsInBatch.map((function(e){var t,n=e.elements,i=mt(n.filter(J).filter(Fs))[0]
if(null!=i&&i.author.hostIdentityUrn&&null!=i&&i.body)return As(i.author.hostIdentityUrn,"Server",i.body,void 0,null!==(t=i.subject)&&void 0!==t?t:void 0,i.originToken,i.entityUrn,i.lastEditedAt)})).filter(O)}(e)})).then((function(n){var i=E(n,1)[0]
return i?(t._dispatch(gu(e,i)),Promise.resolve(i)):(t._dispatch(yu(e)),Promise.resolve(void 0))})).finally((function(){return t.performance.end("msg-sdk:mailbox:findLatestMessageDraftByConversation")})))}},{key:"setConversationAsActive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{markConvoReadTypes:"NO_CHANGE",setConvoActiveSyncOption:"FALLBACK_SYNC"},n=arguments.length>2?arguments[2]:void 0
if(this._options.enableParameterTypeChecks){var i="setConversationAsActive"
if(!ue(e))return Pl(this.id)(Le.fromInvalidType(i,"convoIdentifier","URN | UUIDV4"))
if(!me(t))return Pl(this.id)(Le.fromInvalidType(i,"convoActivationOption","ConvoActivationOption"))
if(n&&!we(n))return Pl(this.id)(Le.fromInvalidType(i,"trackingData","TrackingData"))}var r=this._getConversationByIdentifier(e,"FullMailboxState"),o=this.state.connected.realtime
return r?re(r)?("MARK_READ"!==t.markConvoReadTypes&&"MARK_UNREAD"!==t.markConvoReadTypes||this.updateConversationsReadStatus(p({},r.entityUrn,"MARK_READ"===t.markConvoReadTypes)).then((function(){return Promise.resolve()})).catch(Pl(this.id)),"ALWAYS_SYNC"!==t.setConvoActiveSyncOption&&r.metadata.syncToken&&o?Promise.resolve():this.syncConversationMessages(r.entityUrn,"FullMailboxState",n)):Promise.resolve():Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Setting convo as active"))}},{key:"updateConversation",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="updateConversation"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrn","URN"))
if(!z(t)||Array.isArray(t))return Pl(this.id)(Le.fromInvalidType(i,"status","ConversationUpdate<C, M>"))}var r=p({},e,t)
return this._dispatch(Yl(r)),function(e,t,n,i){var r=JSON.stringify({patch:{$set:n}})
return Tl(e,t,r,i)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Pl(this.id))}},{key:"updateConversationsReadStatus",value:function(e,t){if(this._options.enableParameterTypeChecks&&!ye(e))return Pl(this.id)(Le.fromInvalidType("updateConversationsReadStatus","readStatusUpdateMap","UrnUpdateMap"))
var n=U(R(e).map((function(t){return[t,{read:e[t]}]})))
return this._dispatch(Yl(n)),function(e,t,n){var i="updateConversationsAPI",r=yl(i),o=R(t),a=function(e,t){var n=pa(t),i="messengerConversations?ids=List(".concat(n,")")
return ca("restli",e.messengerResource,i)}(e,o),s={}
o.forEach((function(e){s[e]=ha(t[e])}))
var c=JSON.stringify({entities:s})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",a,al[i],n)(c).then(r).catch(gl(i)):pc(a,c).catch(gl(i)).then(r)}(this.networkConfig,n,t).then((function(){return Promise.resolve()})).catch(Pl(this.id))}},{key:"addCategoryToConversations",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="addCategoryToConversations"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrns","URN[]"))
if(!Y(e,le))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrns[x]","URN"))
if(!Te(t))return Pl(this.id)(Le.fromInvalidType(i,"category","ConversationCategory"))}return this._dispatchCategoryUpdate(e,t,"ADD"),function(e,t,n,i){var r="addCategoryToConversationsAPI",o=yl(r),a=function(e){return ca("restli",e.messengerResource,"messengerConversations",{action:"addCategory"})}(e),s=JSON.stringify({conversationUrns:t,category:n})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",a,al[r],i)(s).then(o).catch(gl(r)):pc(a,s).catch(gl(r)).then(o)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Pl(this.id))}},{key:"removeCategoryFromConversations",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="removeCategoryFromConversations"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrns","URN[]"))
if(!Y(e,le))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrns[x]","URN"))
if(!Te(t))return Pl(this.id)(Le.fromInvalidType(i,"category","ConversationCategory"))}return this._dispatchCategoryUpdate(e,t,"REMOVE"),function(e,t,n,i){var r="removeCategoryFromConversationsAPI",o=yl(r),a=function(e){return ca("restli",e.messengerResource,"messengerConversations",{action:"removeCategory"})}(e),s=JSON.stringify({conversationUrns:t,category:n})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",a,al[r],i)(s).then(o).catch(gl(r)):pc(a,s).catch(gl(r)).then(o)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Pl(this.id))}},{key:"updateConversationTitle",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="updateConversationTitle"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrn","URN"))
if(!Q(t))return Pl(this.id)(Le.fromInvalidType(i,"title","string"))}var r=p({},e,{title:t})
return this._dispatch(Yl(r)),function(e,t,n,i){var r=JSON.stringify({patch:{$set:{title:n}}})
return Tl(e,t,r,i)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Pl(this.id))}},{key:"deleteConversation",value:function(e,t){var n=this
return this._options.enableParameterTypeChecks&&!le(e)?Pl(this.id)(Le.fromInvalidType("deleteConversation","conversationUrn","URN")):function(e,t,n){var i="deleteConversationAPI",r=function(e,t){var n="messengerConversations/".concat(encodeURIComponent(t))
return ca("restli",e.messengerResource,n)}(e,t),o=yl(i)
if((e.experimental||{}).isCyPemMetricsEnabled)return hl(e,"DELETE",r,al[i],n)().then(o).catch(gl(i))
var a="messengerConversations/".concat(encodeURIComponent(t))
return gc(e,a).catch(gl(i)).then(o)}(this.networkConfig,e,t).then((function(){n._dispatch($l(e))})).catch(Pl(this.id))}},{key:"deleteConversations",value:function(e,t){var n=this
if(this._options.enableParameterTypeChecks){var i="deleteConversations"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrns","URN[]"))
if(!Y(e,le))return Pl(this.id)(Le.fromInvalidType(i,"conversationUrns[x]","URN"))}return function(e,t,n){var i="bulkDeleteConversationsAPI",r=function(e,t){var n=pa(t),i="messengerConversations?ids=List(".concat(n,")")
return ca("restli",e.messengerResource,i)}(e,t),o=yl(i)
if((e.experimental||{}).isCyPemMetricsEnabled)return hl(e,"DELETE",r,al[i],n)().then(o).catch(gl(i))
var a=pa(t),s="messengerConversations?ids=List(".concat(a,")")
return gc(e,s).catch(gl(i)).then(o)}(this.networkConfig,e,t).then((function(){n._dispatch(Jl(e))})).catch(Pl(this.id))}},{key:"loadOlderConversations",value:function(){var e=this
if(this._isLoadingConversations)return Promise.resolve(0)
if("search"!==this.filter.kind&&this.state.status.fullyLoaded)return Promise.resolve(0)
this.performance.start("msg-sdk:mailbox:loadOlderConversations"),this._isLoadingConversations=!0
var t=this.state.conversations.last()
this._dispatch(cu(!0))
var n=t?t.lastActivityAt.getTime():null,i=this._cursor
return"drafts"===this.filter.kind?this.getAllDraftConversations().then((function(e){var t=e.existingConversations,n=e.draftConversations
return t.length+n.length})).finally((function(){e._isLoadingConversations=!1,e.performance.end("msg-sdk:mailbox:loadOlderConversations")})):function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0
switch(n.kind){case"category":var c,l,u,d,f,p={category:n.category,count:i.convCount,query:null!==(c=n.query)&&void 0!==c?c:void 0}
return o?function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:El,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s="findConversationsByCursorAPI",c=i.count,l=i.category,u=i.query,d=function(e){return{conversationCategoryPredicate:{category:e}}},f=[d(l)]
u&&f.push(d(u))
var p=(a?Za:o?Ja:$a)(e,a?{query:{predicateUnions:f},count:c,mailboxUrn:t,nextCursor:n}:{category:l,count:c,mailboxUrn:t,nextCursor:n}),h=vl(s)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",p,al[s],r):dl(e,p,s,r))().then(h).catch(gl(s))}(e,t,o,p,{pageInstance:null===(l=i.trackingOptions)||void 0===l||null===(u=l.getPageInstance)||void 0===u?void 0:u.call(l)},a,s):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:El,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s="findConversationsByTimestampAPI",c=i.count,l=i.category,u=i.query,d=function(e){return{conversationCategoryPredicate:{category:e}}},f=[d(l)]
u&&f.push(d(u))
var p=a?{query:{predicateUnions:f},count:c,mailboxUrn:t}:{category:l,count:c,mailboxUrn:t}
null!==n&&(p.lastUpdatedBefore=n)
var h=(a?Za:o?Ja:$a)(e,p),g=vl(s)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",h,al[s],r):dl(e,h,s,r))().then(g).catch(gl(s))}(e,t,r,p,{pageInstance:null===(d=i.trackingOptions)||void 0===d||null===(f=d.getPageInstance)||void 0===f?void 0:f.call(d)},a,s)
case"search":var h,g,m=n.categories,v=n.keywords,y=n.read
return function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l="findConversationsBySearchCriteriaAPI",u={categories:n,count:20,firstDegreeConnections:r,mailboxUrn:t}
void 0!==o&&(u.read=o),null!==a&&(u.nextCursor=a),i&&i.trim().length>0&&(u.keywords=i)
var d=(c?is:ns)(e,u),f=vl(l)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",d,al[l],s):fl(e,d,l,s))().then(f).catch(gl(l))}(e,t,m,null!=v?v:null,n.firstDegreeConnections,y,o,{pageInstance:null===(h=i.trackingOptions)||void 0===h||null===(g=h.getPageInstance)||void 0===g?void 0:g.call(h)},a)}}(this.networkConfig,this.id,this.filter,this.options,n,i,!!this.experimentalValues.enableServerDraft,!!this.experimentalValues.enableCategoryUnions).then(Vu).then((function(t){var n=t.data,r=t.requestId,a=function(e,t){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{kind:"category",category:"INBOX"}
if(!e||!e.elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("conversationsResponseDataToState(): data or its elements is missing"))
var a=e.elements.filter(Ds).reduce((function(e,n){var i,a,s=E(Ns(n,As(t,"Local"),Ws(r)?r.id:void 0),2),c=s[0],l=s[1]
return[(i=e[0],a=$s(l),o(o({},i),a)),[].concat(k(e[1]),[c])]}),[{},[]]),s=E(a,2),c=s[0]
return{conversations:s[1],participants:c,nextCursor:null!==(n=null===(i=e.metadata)||void 0===i?void 0:i.nextCursor)&&void 0!==n?n:null}}(n,e.participant.hostIdentityUrn,e.filter),s=a.conversations,c=a.participants,l=a.nextCursor
e._cursor=l,e._fullyLoaded=null===l||l===i,e._oldestConversationTime=Zu(s,e._oldestConversationTime)
var u="search"!==e.filter.kind
return e._dispatch(function(e,t){return{type:"ADD_OLDER_CONVERSATIONS",payload:{nextCursor:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,conversations:e,participants:t,fullyLoaded:arguments.length>3?arguments[3]:void 0,writeCategories:arguments.length>4?arguments[4]:void 0},requestId:arguments.length>5?arguments[5]:void 0}}(s,N(c).filter(O),e._cursor,e._fullyLoaded,u,r)),e.clientSensorTrackers.triggerRecipientMetric("conversation-list-load-more-success"),s.length})).catch((function(t){return e.clientSensorTrackers.triggerRecipientMetric("conversation-list-load-more-fail"),e._dispatch(cu(!1)),Pl(e.id)(t)})).finally((function(){e._isLoadingConversations=!1,e.performance.end("msg-sdk:mailbox:loadOlderConversations")}))}},{key:"sendMessage",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"DRAFT"
if(this._options.enableParameterTypeChecks){var o="sendMessage"
if(!ue(e))return Pl(this.id)(Le.fromInvalidType(o,"convoIdentifier","URN | UUIDV4"))
if(!Ee(t))return Pl(this.id)(Le.fromInvalidType(o,"content","TextFragment"))
if(!j(n)&&!Ce(n))return Pl(this.id)(Le.fromInvalidType(o,"optionalSendData","OptionalSendData"))
if(!j(i)&&!we(i))return Pl(this.id)(Le.fromInvalidType(o,"trackingData","TrackingData | undefined"))}var a,s=this._getConversationByIdentifier(e)
return s?("DRAFT"===r&&(a=s.draftMessage.entityUrn,this._updateDraftDebounceFnByMessageDraftClientId.get(s.draftMessage.clientId)&&this._updateDraftDebounceFnByMessageDraftClientId.delete(s.draftMessage.clientId)),re(s)?(this._cancelThrottledTypingFnForConvo(s.entityUrn),this._sendMessageInSavedConvoWithQueue(s,t,a,n,i)):this._sendMessageInDraftConvoWithQueue(s,t,a,n,i)):Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Sending message"))}},{key:"sendPendingMessages",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!ue(e))return Pl(this.id)(Le.fromInvalidType("sendPendingMessages","conversationId","URN | UUIDV4"))
var n=this._getConversationByIdentifier(e)
if(!n)return Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Send pending messages"))
if(re(n)){var i
if("InProgress"===(null===(i=n.status)||void 0===i?void 0:i.sending))return Pl(this.id)(Le.fromClientErrorMemo("SENDING_QUEUE_IN_PROGRESS"))
this._dispatch(Yl(Ku(n,"InProgress")))}else{if("InProgress"===n.sending)return Pl(this.id)(Le.fromClientErrorMemo("SENDING_QUEUE_IN_PROGRESS"))
this._dispatch(mu(n.clientId,"InProgress"))}return this._getRequestQueue("messageSend",n.clientId).start(dt(this,n.clientId)).then((function(){return n.clientId})).finally((function(){0===t._getRequestQueue("messageSend",n.clientId).length&&(re(n)?t._dispatch(Yl(Ku(n,"Ready"))):t._dispatch(mu(n.clientId,"Ready")))}))}},{key:"retrySendMessage",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="retrySendMessage"
if(!ue(e))return Pl(this.id)(Le.fromInvalidType(i,"convoIdentifier","URN | UUIDV4"))
if(!ae(t))return Pl(this.id)(Le.fromInvalidType(i,"messageId","UUIDV4"))
if(!j(n)&&!we(n))return Pl(this.id)(Le.fromInvalidType(i,"trackingData","TrackingData | undefined"))}var r=this._getConversationByIdentifier(e)
if(!r)return Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Retry send message"))
var o=r.messages.getByIdentifier(t)
if(!o)return Pl(this.id)(Le.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
this._dispatch(vu(r.clientId,t))
var a=this._getConversationByIdentifier(e)
return a?re(a)?this._sendMessageInSavedConvoWithQueue(a,o.content,void 0,o.optionalSendData,n,"RETRY"):this._sendMessageInDraftConvoWithQueue(a,o.content,void 0,o.optionalSendData,n,"RETRY"):Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Retry send message getting updated state"))}},{key:"fetchEntities",value:function(e){var t=this
if(this._options.enableParameterTypeChecks){var n="fetchEntities"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(n,"entities","GenericEntity[]"))
var i,r=S(e)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(!Je(o))return Pl(this.id)(Le.fromInvalidType(n,"entities","GenericEntity[]"))}}catch(e){r.e(e)}finally{r.f()}}this.performance.start("msg-sdk:mailbox:fetchEntities")
var a,s,c=E(kt(e),2),l=c[0],u=c[1],d=this.state.incompleteRetriableEntities
return function(e,t,n){var i=e.state.incompleteRetriableEntities
t&&t.length>0&&t.map((function(t){i.findIndex((function(e){return Ye(e)&&e.conversationUrn===t&&0===e.retryCount}))>-1&&e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-received")})),n&&n.length>0&&n.map((function(t){i.findIndex((function(e){return $e(e)&&e.messageUrn===t&&0===e.retryCount}))>-1&&e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-received")}))}(this,l,u),a=l.length?bl(this.networkConfig,l,1,void 0,!!this.experimentalValues.enableServerDraft).then((function(e){return qs(e,t.participant.hostIdentityUrn)})).then((function(e){var n=e.conversations,i=e.participants,r=e.requestId
return t._dispatch(ou(n,N(i).filter(O),null,"SKIP_CATEGORIES",r)),t._updateLocalParticipant(),id(t,d,n,void 0),Promise.resolve(n)})).catch(Pl(this.id)):Promise.resolve(),s=u.length?function(e,t,n){var i="getMessagesByIdsAPI",r=ss(e,{messengerMessagesIds:t}),o=vl(i)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",r,al[i],n):dl(e,r,i,n))().then(o).catch(gl(i))}(this.networkConfig,u).then((function(e){return function(e){var t,n,i=(null!==(t=null===(n=e.data)||void 0===n?void 0:n.messengerMessagesByIds)&&void 0!==t?t:[]).filter(O)
if(!e||!e.data)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("messagesByIdsResponseToStates(): messengerMessagesByIds response is missing"))
var r=Ks(i)
return{messages:r.messages,participants:r.participants,requestId:e.requestId}}(e)})).then((function(e){var n=e.messages,i=e.participants,r=e.requestId,o=n.filter(O).reduce((function(e,t){return e[t.entityUrn]=t,e}),{})
return t.experimentalValues&&!0===t.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?(t._dispatch(Wl(i)),t._dispatch(fu(o,void 0,r))):(t._dispatch(fu(o,void 0,r)),t._dispatch(Wl(i))),t._updateLocalParticipant(),id(t,d,void 0,n),Promise.resolve(n)})).catch(Pl(this.id)):Promise.resolve(),Promise.allSettled([a,s]).then((function(e){var t={conversations:{status:null},messages:{status:null}}
return e.forEach((function(e,n){var i=0===n?"conversations":"messages"
t[i]={status:e.status},"fulfilled"===e.status?t[i].value=e.value:t[i].reason=e.reason})),t})).finally((function(){return t.performance.end("msg-sdk:mailbox:fetchEntities")}))}},{key:"editMessage",value:function(e,t,n,i){var r,o,a=this
if(this._options.enableParameterTypeChecks){var s="editMessage"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(s,"conversationUrn","URN"))
if(!le(t))return Pl(this.id)(Le.fromInvalidType(s,"messageUrn","URN"))
if(!Ee(n))return Pl(this.id)(Le.fromInvalidType(s,"editedMessage","TextFragment"))}return(null===(r=this.state.conversations.getByIdentifier(e))||void 0===r||null===(o=r.messages)||void 0===o?void 0:o.getByIdentifier(t))?function(e,t,n,i){var r="editConversationMessageAPI",o=yl(r),a=function(e,t){var n="messengerMessages/".concat(encodeURIComponent(t))
return ca("restli",e.messengerResource,n)}(e,t),s=JSON.stringify({patch:{$set:{body:n}}})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",a,al[r],i)(s).then(o).catch(gl(r)):pc(a,s).catch(gl(r)).then(o)}(this.networkConfig,t,n,i).then((function(){a._dispatch(fu(p({},t,{content:n,messageBodyRenderFormat:"EDITED"}),e))})).catch((function(e){return Pl(a.id)(Le.fromClientErrorMemo("MESSAGE_EDIT_FAILED",e))})):Pl(this.id)(Le.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))}},{key:"deleteMessage",value:function(e,t,n){var i=this
if(this._options.enableParameterTypeChecks){var r="deleteMessage"
if(!ue(e))return Pl(this.id)(Le.fromInvalidType(r,"conversationId","URN | UUIDV4"))
if(!ue(t))return Pl(this.id)(Le.fromInvalidType(r,"messageId","UUIDV4 | UUIDV4"))}var o=this._getConversationByIdentifier(e)
if(!o)return Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Delete message"))
var a=o.messages.getByIdentifier(t)
if(!a)return Pl(this.id)(Le.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
if(a.entityUrn&&re(o)){var s=a.entityUrn
return function(e,t,n){var i="deleteConversationMessageAPI",r=JSON.stringify({messageUrn:t}),o=function(e){return ca("restli",e.messengerResource,"messengerMessages",{action:"recall"})}(e),a=yl(i)
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",o,al[i],n)(r).then(a).catch(gl(i)):pc(o,r).catch(gl(i)).then(a)}(this.networkConfig,s,n).then((function(){i._dispatch(fu(p({},s,{messageBodyRenderFormat:"RECALLED"}),o.entityUrn))})).catch((function(e){return Pl(i.id)(Le.fromClientErrorMemo("MESSAGE_DELETE_FAILED",e))}))}return this._dispatch(vu(o.clientId,a.clientId)),this.options.continueOnFailure||this.sendPendingMessages(e),Promise.resolve()}},{key:"react",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",r=arguments.length>3?arguments[3]:void 0
if(this._options.enableParameterTypeChecks){var o="react"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(o,"messageUrn","URN"))
if(!Q(t))return Pl(this.id)(Le.fromInvalidType(o,"emoji","string"))}var a=this.state.conversations.findMessage(e,i)
if(!a)return Pl(this.id)(Le.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var s=fe(this.state.conversations,e,i)
return this._reactAttemptWouldExceedCap(a,t)?Pl(this.id)(Le.fromClientErrorMemo("REACTION_LIMIT_REACHED")):(this._dispatch(pu(e,{emoji:t,viewerReacted:!0})),this._getRequestQueue("reactions",s.clientId).enqueue((function(){return wl(n.networkConfig,e,t,r).then((function(){return Promise.resolve(s.clientId)})).catch((function(){return n._dispatch(pu(e,{emoji:t,viewerReacted:!1})),Promise.resolve(s.clientId)}))})))}},{key:"unreact",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",r=arguments.length>3?arguments[3]:void 0
if(this._options.enableParameterTypeChecks){var o="unreact"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(o,"messageUrn","URN"))
if(!Q(t))return Pl(this.id)(Le.fromInvalidType(o,"emoji","string"))}var a=fe(this.state.conversations,e,i)
return a?(this._dispatch(pu(e,{emoji:t,viewerReacted:!1})),this._getRequestQueue("reactions",a.clientId).enqueue((function(){return xl(n.networkConfig,e,t,r).then((function(){return Promise.resolve(a.clientId)})).catch((function(){return n._dispatch(pu(e,{emoji:t,viewerReacted:!0})),Promise.resolve(a.clientId)}))}))):Pl(this.id)(Le.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))}},{key:"getReactors",value:function(e,t){var n=this
if(this._options.enableParameterTypeChecks){var i="getReactors"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(i,"messageUrn","URN"))
if(!Q(t))return Pl(this.id)(Le.fromInvalidType(i,"emoji","string"))}return function(e,t,n){var i="getReactorsByMessageAndEmojiAPI",r=gs(e,{messageUrn:t,emoji:n}),o=vl(i)
return fc(r).then(o).catch(gl(i))}(this.networkConfig,e,t).then((function(i){var r=function(e){if(!e.data||!e.data.messengerMessagingParticipantsByMessageAndEmoji||!e.data.messengerMessagingParticipantsByMessageAndEmoji.elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("reactorsResponseToReactorsState(): messengerMessagingParticipantsByMessageAndEmoji response is missing"))
var t=e.requestId
return{reactors:e.data.messengerMessagingParticipantsByMessageAndEmoji.elements.reduce((function(e,t){return t&&t.hostIdentityUrn&&e.push(t.hostIdentityUrn),e}),[]),requestId:t}}(i),o=r.reactors,a=r.requestId
return n._dispatch(pu(e,{emoji:t,reactors:o},a)),Promise.resolve({reactors:o})})).catch((function(e){return Pl(n.id)(Le.fromClientErrorMemo("GET_REACTORS_FAILED",e))}))}},{key:"updateDraftMessage",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ADD",r=arguments.length>4?arguments[4]:void 0
if(this._options.enableParameterTypeChecks){var o="updateDraftMessage"
if(!ue(e))throw Dl(this.id)(Le.fromInvalidType(o,"convoIdentifier","URN | UUIDV4"))
if(!j(t)&&!Ee(t))throw Dl(this.id)(Le.fromInvalidType(o,"content","TextFragment | undefined"))
if(!j(n)&&!Ce(n))throw Dl(this.id)(Le.fromInvalidType(o,"optionalSendData","OptionalSendData | undefined"))
if(!ve(i))throw Dl(this.id)(Le.fromInvalidType(o,"renderContentUpdateMode","ContentUpdateMode"))
if(!j(r)&&!Q(r))throw Dl(this.id)(Le.fromInvalidType(o,"subject","string | undefined"))}var a=this._getConversationByIdentifier(e)
if(a)if(!a.entityUrn&&a.messages.length>0)Dl(this.id)(Le.fromClientErrorMemo("CANNOT_ADD_MESSAGES_IN_CONVERSATION"))
else{var s=Rs(a.draftMessage,{content:t,optionalSendData:n,subject:r})
if(re(a)){var c=a.entityUrn
this._callThrottledTypingFnForConvo(c)}this._dispatch(gu(a.clientId,s))}else Dl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Updating draft message"))}},{key:"updateServerDraftMessage",value:function(e){var t=this,n=e.convoIdentifier,i=e.content,r=e.optionalSendData,a=e.renderContentUpdateMode,s=void 0===a?"ADD":a,c=e.subject,l=e.updateImmediately,u=void 0!==l&&l
if(this._options.enableParameterTypeChecks){var d="updateServerDraftMessage"
if(!ue(n))throw Dl(this.id)(Le.fromInvalidType(d,"convoIdentifier","URN | UUIDV4"))
if(!j(i)&&!Ee(i))throw Dl(this.id)(Le.fromInvalidType(d,"content","TextFragment | undefined"))
if(!j(r)&&!Ce(r))throw Dl(this.id)(Le.fromInvalidType(d,"optionalSendData","OptionalSendData | undefined"))
if(!ve(s))throw Dl(this.id)(Le.fromInvalidType(d,"optionalSendData","ContentUpdateMode"))
if(!j(c)&&!Q(c))throw Dl(this.id)(Le.fromInvalidType(d,"subject","string | undefined"))}var f=this._getConversationByIdentifier(n)
if(f)if(!f.entityUrn&&f.messages.length>0)Dl(this.id)(Le.fromClientErrorMemoWithComment("CANNOT_ADD_MESSAGES_IN_CONVERSATION","draft conversation has messages but is not saved on the server yet"))
else if(ie(f)){if(!this._pendingDraftCreationByClientId.has(f.clientId)){var p=f.draftMessage.entityUrn,h=f.draftMessage.clientId,g=Rs(f.draftMessage,{content:i,optionalSendData:r,subject:c,status:"Local"})
if(f.messages.getByIdentifier(f.draftMessage.clientId)&&(g=Rs(g,{clientId:Va()})),this._dispatch(gu(f.clientId,g)),re(f)&&this._callThrottledTypingFnForConvo(f.entityUrn),p){var m=f.draftMessage.clientId,v=this._updateDraftDebounceFnByMessageDraftClientId.get(m)
return v&&v.cancel(),v=function(e,t,n){var i,r,o
void 0===t&&(t=50),void 0===n&&(n={})
var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[]
function d(){if(void 0!==c){var e=Date.now()-l
if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),n=this
return new Promise((function(i,r){var c=a&&void 0===o
if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t)
s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var f=e.apply(n,t)
return s&&s(f),i(f)}u.push({resolve:i,reject:r})}))}
return f.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},f}((function(){if(t._updateDraftDebounceFnByMessageDraftClientId.get(m))return t._updateDraftDebounceFnByMessageDraftClientId.delete(m),function(e,t,n){var i="updateServerDraftMessageAPI",r=yl(i),o=function(e,t){var n="messengerMessageDrafts/".concat(encodeURIComponent(t))
return ca("restli",e.messengerResource,n)}(e,t),a=JSON.stringify(ha({body:n.content,subject:n.subject}))
return pc(o,a).catch(gl(i)).then(r)}(t.networkConfig,p,g).then((function(){var e=Rs(g,{status:"Server",lastEditedAt:new Date(Date.now())})
t._dispatch(gu(f.clientId,e))
var n=o(o({},f),{},{draftMessage:e})
return Promise.resolve(n)}))}),1e3*this.options.updateDraftDelayInSecond,{isImmediate:u}),this._updateDraftDebounceFnByMessageDraftClientId.set(m,v),v().catch((function(){}))}if(0!==i.text.length||c)return this._pendingDraftCreationByClientId.add(f.clientId),Il(this.networkConfig,this.id,i,h,c,f.entityUrn).then((function(e){var n=Rs(g,{clientId:e.originToken,entityUrn:e.entityUrn,lastEditedAt:new Date(e.lastEditedAt),status:"Server"})
t._dispatch(gu(f.clientId,n)),t._pendingDraftCreationByClientId.delete(f.clientId)
var i=o(o({},f),{},{draftMessage:n})
return Promise.resolve(i)}))}}else Dl(this.id)(Le.fromClientErrorMemoWithComment("SERVER_DRAFT_CONVERSATION_NOT_CREATED","cannot use updateServerDraftMessage() on an non-server draft or saved conversation"))
else Dl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","attempting to update message on draft conversation"))}},{key:"handleUpdateDraftMessage",value:function(e){var t=e.content,n=e.optionalSendData,i=e.renderContentUpdateMode,r=void 0===i?"ADD":i,o=e.subject,a=e.updateImmediately,s=ee(e)?e.convoIdentifier:void 0,c=te(e)?e.hostRecipientUrns:void 0
if(this._options.enableParameterTypeChecks){var l="updateServerDraftMessage"
if(!j(t)&&!Ee(t))throw Dl(this.id)(Le.fromInvalidType(l,"content","TextFragment | undefined"))
if(!j(s)&&!ue(s))throw Dl(this.id)(Le.fromInvalidType(l,"convoIdentifier","URN | UUIDV4"))
var u=!Array.isArray(c)||c.length<1||!Y(c,le)
if(!j(c)&&u)throw Dl(this.id)(Le.fromInvalidType(l,"hostRecipientUrns","URN[]"))
if(!j(n)&&!Ce(n))throw Dl(this.id)(Le.fromInvalidType(l,"optionalSendData","OptionalSendData | undefined"))
if(!ve(r))throw Dl(this.id)(Le.fromInvalidType(l,"renderContentUpdateMode","ContentUpdateMode"))
if(!j(o)&&!Q(o))throw Dl(this.id)(Le.fromInvalidType(l,"subject","string | undefined"))}if(s){if(ae(s)){var d=this.state.draftConversations.get(s)
if(!d)throw Dl(this.id)(Le.fromClientErrorMemoWithComment("CANNOT_UPDATE_DRAFT_MESSAGE","Unable to find local draft conversation given the convoIdentifier"))
return this.createDraftMessageInServerDraftConvo({content:t,hostRecipientUrns:d.recipients,existingDraftConvoClientId:s,optionalSendData:n,subject:o})}return this.updateServerDraftMessage({convoIdentifier:s,content:t,optionalSendData:n,renderContentUpdateMode:r,subject:o,updateImmediately:a})}if(c)return this.createDraftMessageInServerDraftConvo({content:t,hostRecipientUrns:c,optionalSendData:n,subject:o})}},{key:"createDraftMessageInServerDraftConvo",value:function(e){var t,n=this,i=e.content,r=e.optionalSendData,o=e.existingDraftConvoClientId,a=e.hostRecipientUrns,s=e.subject
if(this._options.enableParameterTypeChecks){var c="createDraftMessageInServerDraftConvo"
if(!Ee(i))throw Dl(this.id)(Le.fromInvalidType(c,"content","TextFragment"))
if(!Array.isArray(a)||a.length<1)throw Dl(this.id)(Le.fromInvalidType(c,"hostRecipientUrns","URN[]"))
if(!j(r)&&!Ce(r))throw Dl(this.id)(Le.fromInvalidType(c,"optionalSendData","OptionalSendData"))
if(!j(s)&&!Q(s))throw Dl(this.id)(Le.fromInvalidType(c,"subject","string | undefined"))}if((0!==i.text.length||s)&&-1===this._pendingDraftCreationByRecipientUrns.findIndex((function(e){return ot(e,a)}))){this._pendingDraftCreationByRecipientUrns.push(a)
var l,u=o?this.state.draftConversations.get(o):void 0
return u&&(l=u.draftMessage),Il(this.networkConfig,this.id,i,(null===(t=l)||void 0===t?void 0:t.clientId)||Va(),s,void 0,a).then((function(e){var t=e.conversationDraftUrn
if(!t)throw Dl(n.id)(Le.fromClientErrorMemoWithComment("SERVER_DRAFT_CONVERSATION_NOT_CREATED","conversationDraftUrn not returned in response from api-proxy createServerDraftMessageAPI() call"))
return function(e,t,n){var i="getConversationDraftsByIdsAPI",r=os(e,{messengerConversationDraftsId:t}),o=vl(i)
return dl(e,r,i,void 0)().then(o).catch(gl(i))}(n.networkConfig,t).then((function(c){var u,d,f,h=n._pendingDraftCreationByRecipientUrns.findIndex((function(e){return ot(e,a)}))
if(-1!==h&&n._pendingDraftCreationByRecipientUrns.splice(h,1),!c.data||!c.data.messengerConversationDraftsById)throw Dl(n.id)(Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("createDraftMessageInServerDraftConvo(): conversationDraftsById response is missing")))
var g=c.data.messengerConversationDraftsById.conversationDraftParticipants
n._dispatch(Wl(Ms(g)))
var m=As(n.participant.hostIdentityUrn,"Server",i,null!==(u=l)&&void 0!==u&&u.optionalSendData?Ze(null===(d=l)||void 0===d?void 0:d.optionalSendData,r):r,s,null===(f=l)||void 0===f?void 0:f.clientId,e.entityUrn),v=js(n.participant.entityUrn,a,m,t,o)
return o?n._dispatch(iu(p({},o,v))):n._dispatch(tu(v)),Promise.resolve(v)}))}))}}},{key:"loadOlderMessages",value:function(e,t,n){var i=this
if(this._options.enableParameterTypeChecks){var r="loadOlderMessages"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(r,"convoUrn","URN"))
if(!X(t))return Pl(this.id)(Le.fromInvalidType(r,"count","number"))}var o=this.state.conversations.getByIdentifier(e,"FullMailboxState")
if(!o)return Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Getting older messages"))
if(o.status.fullyLoaded||o.status.loading)return Promise.resolve(0)
this.performance.start("msg-sdk:mailbox:loadOlderMessages")
var a=o.metadata.prevCursor
return a?this._getOlderMessagesByCursor(e,o,t,a,n).finally((function(){return i.performance.end("msg-sdk:mailbox:loadOlderMessages")})):this._getOlderMessagesByTimestamp(e,o,t,n).finally((function(){return i.performance.end("msg-sdk:mailbox:loadOlderMessages")}))}},{key:"dismissInlineWarning",value:function(e){var t=this
return this._options.enableParameterTypeChecks&&!le(e)?Pl(this.id)(Le.fromInvalidType("dismissInlineWarning","messageUrn","URN")):function(e,t){var n="dismissInlineWarningAPI",i=function(e){return ca("restli",e.messengerResource,"messengerMessages",{action:"dismissInlineWarning"})}(e),r=yl(n),o=JSON.stringify({messageUrn:t})
return pc(i,o).catch(gl(n)).then(r)}(this.networkConfig,e).then((function(){return Promise.resolve()})).catch((function(e){return Pl(t.id)(Le.fromClientErrorMemo("CANNOT_DISMISS_INLINE_WARNING",e))}))}},{key:"addParticipantsToConversation",value:function(e,t,n,i){var r=this
if(this._options.enableParameterTypeChecks){var o="addParticipantsToConversation"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(o,"convoUrn","URN"))
if(!Array.isArray(t))return Pl(this.id)(Le.fromInvalidType(o,"participantUrns","URN[]"))
if(!Y(t,le))return Pl(this.id)(Le.fromInvalidType(o,"participantUrns[x]","URN"))
if(n&&!Array.isArray(n))return Pl(this.id)(Le.fromInvalidType(o,"messageRequestContextByRecipient","MessageRequestContextByRecipient[]"))}return this._getConversationByIdentifier(e)?function(e,t,n,i,r){var o="addParticipantsToConversationAPI",a=yl(o),s=function(e){return ca("restli",e.messengerResource,"messengerConversations",{action:"addParticipants"})}(e),c=JSON.stringify({participants:t,conversationUrn:n,messageRequestContextByRecipient:i})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",s,al[o],r)(c).then(a).catch(gl(o)):pc(s,c).catch(gl(o)).then(a)}(this.networkConfig,t,e,n,i).then((function(){return Promise.resolve()})).catch((function(e){return Pl(r.id)(Le.fromClientErrorMemo("CANNOT_ADD_PARTICIPANTS_IN_CONVERSATION",e))})):Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Adding participants"))}},{key:"removeParticipantsFromConversation",value:function(e,t,n){var i=this,r="removeParticipantsFromConversation"
return le(e)?Array.isArray(t)?Y(t,le)?this._getConversationByIdentifier(e)?function(e,t,n,i){var r="removeParticipantsFromConversationAPI",o=yl(r),a=function(e){return ca("restli",e.messengerResource,"messengerConversations",{action:"removeParticipants"})}(e),s=JSON.stringify({participants:t,conversationUrn:n})
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"POST",a,al[r],i)(s).then(o).catch(gl(r)):pc(a,s).catch(gl(r)).then(o)}(this.networkConfig,t,e,n).then((function(){return Promise.resolve()})).catch((function(e){return Pl(i.id)(Le.fromClientErrorMemo("CANNOT_REMOVE_PARTICIPANTS_FROM_CONVERSATION",e))})):Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Removing participants")):Pl(this.id)(Le.fromInvalidType(r,"participantUrns[x]","URN")):Pl(this.id)(Le.fromInvalidType(r,"participantUrns","URN[]")):Pl(this.id)(Le.fromInvalidType(r,"convoUrn","URN"))}},{key:"markAllConversationsAsRead",value:function(e,t){var n=this
if(this._options.enableParameterTypeChecks){var i="markAllConversationsAsRead"
if(!Array.isArray(e))return Pl(this.id)(Le.fromInvalidType(i,"categories","ConversationCategory[]"))
if(!Y(e,Te))return Pl(this.id)(Le.fromInvalidType(i,"categories[x]","ConversationCategory"))}var r=e.map((function(e){return e.toUpperCase()}))
return function(e,t,n,i){var r="markAllConversationsAsReadAPI",o=hs(e,{mailboxUrn:t,categories:n}),a=vl(r)
return(e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",o,al[r],i)().then(a).catch(gl(r)):fc(o).catch(gl(r)).then(a)}(this.networkConfig,this.id,e,t).then((function(e){var t=function(e){var t,n
if(void 0===(null===(t=e.data)||void 0===t||null===(n=t.doMarkAllConversationsAsReadMessengerConversations)||void 0===n?void 0:n.result))throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("markAllConversationsAsReadResponseToState(): doMarkAllConversationsAsReadMessengerConversations is missing"))
return{allSynchronouslyProcessed:e.data.doMarkAllConversationsAsReadMessengerConversations.result.allSynchronouslyProcessed,requestId:e.requestId}}(e),i=t.allSynchronouslyProcessed,o=t.requestId
return i&&n._dispatch(function(e,t,n){return{type:"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES",payload:{categories:e,conversationUpdate:{read:!0}},requestId:n}}(r,0,o)),Promise.resolve()}))}},{key:"conversationAccept",value:function(e,t,n,i){if(this._options.enableParameterTypeChecks){var r="conversationAccept"
if(!le(e))return Pl(this.id)(Le.fromInvalidType(r,"convoUrn","URN"))
if(!function(e){return"boolean"==typeof e}(t))return Pl(this.id)(Le.fromInvalidType(r,"state","boolean"))
if(!j(n)&&!Ee(n))return Pl(this.id)(Le.fromInvalidType(r,"message","TextFragment | undefined"))}var o=this._getConversationByIdentifier(e)
return o&&ie(o)?n?this.sendMessage(e,n,{renderContent:[],conversationState:t?"ACCEPTED":"DECLINED"},i,"NON_DRAFT"):this.updateConversation(e,{state:t?"ACCEPTED":"DECLINED"}):Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Conversation accept"))}},{key:"_getSeenReceipts",value:function(e){var t,n,i,r,o,a=this
return(t=this.networkConfig,n=e,i="getSeenReceiptsByConversationAPI",r=us(t,{conversationUrn:n}),o=vl(i),fc(r).then(o).catch(gl(i))).then((function(t){var n=function(e){if(!e.data||!e.data.messengerSeenReceiptsByConversation||!e.data.messengerSeenReceiptsByConversation.elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("seenReceiptsResponseToSeenReceiptsState(): messengerSeenReceiptsByConversation response is missing"))
var t=e.data.messengerSeenReceiptsByConversation.elements,n=e.requestId,i={}
return t.forEach((function(e){var t={participantUrn:e.seenByParticipant.hostIdentityUrn,seenAt:e.seenAt},n=e.message.entityUrn
i[n]?i[n].push(t):i[n]=[t]})),{seenReceiptsMap:i,requestId:n}}(t),i=n.seenReceiptsMap,r=n.requestId
return a._dispatch(Yl(p({},e,{seenReceiptsMap:i}),r)),Promise.resolve(i)}))}},{key:"_getQuickReplies",value:function(e){var t,n,i,r,o,a=this
return this.performance.start("msg-sdk:mailbox:_getQuickReplies"),(t=this.networkConfig,n=e,i="getQuickRepliesByConversationAPI",r=ms(t,{conversationUrn:n}),o=vl(i),fc(r).then(o).catch(gl(i))).then((function(t){var n=function(e){if(!e.data||!e.data.messengerQuickRepliesByConversation||!e.data.messengerQuickRepliesByConversation.elements)throw Le.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",Ae("quickRepliesResponseToQuickRepliesState(): messengerQuickRepliesByConversation response is missing"))
return{quickReplies:e.data.messengerQuickRepliesByConversation.elements,requestId:e.requestId}}(t),i=n.quickReplies,r=n.requestId,o=a._getConversationByIdentifier(e)
if(!o||!re(o))return Promise.resolve(void 0)
var s=ft(o,i)
return a._dispatch(function(e,t,n){return{type:"UPDATE_CONVERSATION_QUICK_REPLIES",payload:{conversationUrn:e,quickReplies:t},requestId:n}}(e,s,r)),Promise.resolve(i)})).finally((function(){return a.performance.end("msg-sdk:mailbox:_getQuickReplies")}))}},{key:"_getConversationByIdentifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FullMailboxState"
return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FullMailboxState"
return ae(t)&&e.draftConversations.has(t)?e.draftConversations.get(t):se(t)?Array.from(e.draftConversations.values()).find((function(e){return e.entityUrn===t})):e.conversations.getByIdentifier(t,n)}(this.state,e,t)}},{key:"networkConfig",get:function(){return this._retrieveNetworkConfig()}},{key:"_notifyErrorSubscribers",value:function(e){this._stateSubscribers.length>0?this._stateSubscribers.forEach((function(t){var n
return null===(n=t.error)||void 0===n?void 0:n.call(t,e)})):this._pendingErrors.push(e)}},{key:"_getOlderMessagesByTimestamp",value:function(e,t,n,i){var r=this
this.performance.start("msg-sdk:mailbox:_getOlderMessagesByTimestamp"),this._dispatch(su(t.clientId,!0))
var o=t.messages.length>0?t.messages.at(0).deliveredAt.getTime():Date.now()
return function(e,t,n,i,r,o){var a="getConversationMessagesByTimestampAPI",s=ls(e,{deliveredAt:n,conversationUrn:t,countBefore:i,countAfter:0}),c=vl(a)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",s,al[a],o):dl(e,s,a,o))().then(c).catch(gl(a))}(this.networkConfig,e,o,n,0,i).then((function(e){var n,i,o,a,s,c,l=null===(n=e.data)||void 0===n||null===(i=n.messengerMessagesByAnchorTimestamp)||void 0===i||null===(o=i.metadata)||void 0===o?void 0:o.prevCursor,u=null!==(a=null===(s=e.data)||void 0===s||null===(c=s.messengerMessagesByAnchorTimestamp)||void 0===c?void 0:c.elements)&&void 0!==a?a:[],d=Ks(u),f=d.messages,p=d.participants,h=null===l
return r._dispatch(su(t.clientId,!1)),r._dispatch(Wl(p,e.requestId)),r._dispatch(lu(f,t.entityUrn,h,l,e.requestId)),r.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-success"),f.length})).catch((function(e){return r._dispatch(su(t.clientId,!1)),r.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-fail"),Pl(r.id)(Le.fromClientErrorMemo("LOAD_OLDER_MESSAGES_FAILED",e))})).finally((function(){return r.performance.end("msg-sdk:mailbox:_getOlderMessagesByTimestamp")}))}},{key:"_getOlderMessagesByCursor",value:function(e,t,n,i,r){var o=this
return this.performance.start("msg-sdk:mailbox:_getOlderMessagesByCursor"),this._dispatch(su(t.clientId,!0)),function(e,t,n,i,r){var o="getConversationMessagesByConversationAPI",a={conversationUrn:t,count:n}
i&&(a.prevCursor=i)
var s=cs(e,a),c=vl(o)
return((e.experimental||{}).isCyPemMetricsEnabled?hl(e,"GET",s,al[o],r):dl(e,s,o,r))().then(c).catch(gl(o))}(this.networkConfig,e,n,i,r).then((function(e){var n,r,a,s,c,l,u=null===(n=e.data)||void 0===n||null===(r=n.messengerMessagesByConversation)||void 0===r||null===(a=r.metadata)||void 0===a?void 0:a.prevCursor,d=null!==(s=null===(c=e.data)||void 0===c||null===(l=c.messengerMessagesByConversation)||void 0===l?void 0:l.elements)&&void 0!==s?s:[],f=Ks(d),p=f.messages,h=f.participants,g=null===u||i===u
return o._dispatch(su(t.clientId,!1)),o._dispatch(Wl(h,e.requestId)),o._dispatch(lu(p,t.entityUrn,g,u,e.requestId)),o.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-success"),p.length})).catch((function(e){return o._dispatch(su(t.clientId,!1)),o.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-fail"),Pl(o.id)(Le.fromClientErrorMemo("LOAD_OLDER_MESSAGES_FAILED",e))})).finally((function(){return o.performance.start("msg-sdk:mailbox:_getOlderMessagesByCursor")}))}},{key:"_getRequestQueue",value:function(t,n){return e._queues[t][n]||(e._queues[t][n]=new ad(this.options.continueOnFailure)),e._queues[t][n]}},{key:"_sendMessageInSavedConvoWithQueue",value:function(e,t,n,i,r){var a,s=this,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"FIRST",l=e.draftMessage,u=o(o({},Bs(l)),{},{content:null!=t?t:l.content,optionalSendData:l.optionalSendData&&i?Ze(l.optionalSendData,i):i||l.optionalSendData})
this._dispatch(au(u,e.clientId))
var d=this.state.conversations.getByIdentifier(e.entityUrn,"FullMailboxState")
return d?("Failed"!==(null===(a=d.status)||void 0===a?void 0:a.sending)&&this._dispatch(Yl(Ku(d,"InProgress"))),this._dispatch(yu(e.entityUrn)),this._getRequestQueue("messageSend",d.clientId).enqueue((function(){return Fu(s.networkConfig,s.id,s,s._dispatch.bind(s),d,l.clientId,n,c,r).catch((function(e){return s.options.continueOnFailure||s._dispatch(Yl(Ku(d,"Failed"))),Pl(s.id)(Le.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),l.clientId,dt(this,d.clientId)).finally((function(){0===s._getRequestQueue("messageSend",d.clientId).length&&s._dispatch(Yl(Ku(d,"Ready")))}))):Pl(this.id)(Le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Send message in existing conversation"))}},{key:"_updateLocalParticipant",value:function(){var e,t=this
this._localParticipant=null!==(e=N(Rl(this._id).participants).filter(O).find((function(e){return e.entityUrn===t._localParticipant.entityUrn})))&&void 0!==e?e:this._localParticipant}},{key:"_dispatchCategoryUpdate",value:function(e,t,n){var i=this,r=e.reduce((function(e,r){var a,s,c=null!==(a=null===(s=i.state.conversations.getByIdentifier(r))||void 0===s?void 0:s.categories)&&void 0!==a?a:[]
return o(o({},e),{},p({},r,"ADD"===n?{categories:[].concat(k(c.filter((function(e){return e!==t}))),[t])}:{categories:c.filter((function(e){return e!==t}))}))}),{})
this._dispatch(Yl(r))}},{key:"_reactAttemptWouldExceedCap",value:function(e,t){return 20===e.reactions.length&&!e.reactions.find((function(e){return e.emoji===t}))}},{key:"_keepExistingClientIdForAllConvoTypes",value:function(e){var t=this,n=[]
return e.forEach((function(e){if(e.entityUrn){var i=re(e)?t.state.conversations.getByIdentifier(e.entityUrn):vt(t.state.draftConversations,e.entityUrn)
if(i){var r=o(o({},e),{},{clientId:i.clientId})
n.push(r)}else n.push(e)}else n.push(e)})),n}}]),e}()
p(fd,"_queues",{messageSend:{},reactions:{}})
var pd=function(){function e(){u(this,e)}return f(e,null,[{key:"prioritySortedListMaxSize",get:function(){return e.poolCap-e.pinnedMailboxList.length}},{key:"prioritySortedListAvailableSpace",get:function(){return e.prioritySortedListMaxSize-e.prioritySortedMailboxList.length}},{key:"sortedPrioritySortedMailboxList",get:function(){return e.prioritySortedMailboxList.sort((function(e,t){var n,i,r=null===(n=Rl(e.urn))||void 0===n?void 0:n.lastActivityAt,o=null===(i=Rl(t.urn))||void 0===i?void 0:i.lastActivityAt
return!r&&o?1:r&&!o?-1:r||o?o.getTime()-r.getTime():0}))}},{key:"sortAndUpdatePrioritySortedMailboxList",value:function(){e.prioritySortedMailboxList=e.sortedPrioritySortedMailboxList}},{key:"clear",value:function(){e.pinnedMailboxList=[],e.prioritySortedMailboxList=[]}},{key:"findConnection",value:function(t){return e.pinnedMailboxList.concat(e.prioritySortedMailboxList).find((function(e){return e.urn===t}))}},{key:"addMailbox",value:function(t,n,i){if(qu(n))e.pinnedMailboxList=e.pinnedMailboxList.concat(t)
else{if(0===e.prioritySortedListAvailableSpace){e.sortAndUpdatePrioritySortedMailboxList()
var r=e.prioritySortedMailboxList[e.prioritySortedMailboxList.length-1]
r&&(r.urn===t.urn?e.removeMailboxFromPool(r.urn):e.disconnectMailbox(r.urn,i))}e.prioritySortedMailboxList=[t].concat(e.prioritySortedMailboxList)}}},{key:"removeMailboxFromPool",value:function(t){e.findConnection(t)&&(e.prioritySortedMailboxList=e.prioritySortedMailboxList.filter((function(e){return e.urn!==t})))}},{key:"disconnectMailbox",value:function(t,n){var r=e.findConnection(t)
r&&(e.removeMailboxFromPool(t),null==n||n.triggerGeneralMetric("unlimited-mailboxes-disconnect-mailbox"),(0,i.getClient)().removeContext(t),r.mailboxHandlers&&function(e,t){var n=(0,i.getClient)(),r=k(E(e.getRealtimeTopics(),2)[1].values()).filter((function(e){return!e.endsWith(":myself")}))
r.length>0&&(G("Unsubscribing from broadcast topics","Number of topics: ".concat(r.length)),n.removeSubscriptions(r).then((function(e){7===e.succeeded.length?null==t||t.triggerGeneralMetric("unlimited-mailboxes-unsubscribe-topics"):G("Removing broadcast topics subscriptions failed for these topics:",e.failed.join(", "))})).catch((function(e){G("Removing broadcast topics subscriptions failed! ❌",e)})))}(r.mailboxHandlers,n),function(e){(function(e){var t=Ge[e]
qe(t)&&t.observers.forEach((function(e){return e.complete()}))})(e),Ge[e]=Be}(t))}}]),e}()
p(pd,"pinnedMailboxList",[]),p(pd,"prioritySortedMailboxList",[]),p(pd,"poolCap",5)
var hd=function(){function e(t,n){var r,o=this
u(this,e),p(this,"_participantClientId",Va()),p(this,"_urn",void 0),p(this,"_options",void 0),p(this,"_realtimeEventsTopics",new Map),p(this,"_realtimeAuthToken",null),p(this,"_networkConfig",null),p(this,"_renewAuthTokenTask",null),p(this,"mailboxHandlers",null),this._urn=t,this._options=n,this._renewAuthTokenTask=new i.Task((function(){o._fetchAndUpdateAuth(o._options)})),e.clientSensorTrackersMap[t]=ld(null===(r=n.trackingOptions)||void 0===r?void 0:r.incrementMetricCounterHandler)}return f(e,[{key:"_retrieveNetworkConfig",value:function(){return j(this._networkConfig)&&(this._networkConfig=zu(this._options)),this._networkConfig}},{key:"networkConfig",get:function(){return this._retrieveNetworkConfig()}},{key:"_dispatch",value:function(e){var t=this,n=this._options.decorators,i=n.mailboxDecorator,r=n.messagesDecorator,o=n.participantsDecorator,a=jl(this._urn)
if(j(a))throw Le.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = _dispatch(), mailboxUrn = ".concat(this._urn,", mailboxStore = ").concat(s(a))))
var c=Rl(this._urn),l=c.status.lastRequestId
switch(e.requestId&&l>e.requestId&&V("Invalid requestId: the store was updated since the request was made. Store lastRequestId: ".concat(l,", action requestId: ").concat(e.requestId)),a.dispatch(e),c=Rl(this._urn),e.type){case"CONNECT":if(i)try{i(c).then((function(e){e&&a.dispatch(function(e){return{type:"DECORATE_MAILBOX",payload:e}}(e))})).catch(Ul(this._urn,"MAILBOX_DECORATE_FAILED"))}catch(e){Ul(this._urn,"MAILBOX_DECORATE_FAILED")(e)}break
case"ADD_MAILBOX_PARTICIPANTS":var u=e.payload.participants
u.length>0&&o&&this._invokeParticipantsDecorator(o,u,a)
break
case"ADD_CONVERSATION":var d=e.payload,f=d.conversation,p=d.participants,h=at([f])
this._invokeDecorators([f],p,h)
break
case"ADD_OLDER_CONVERSATIONS":case"ADD_CONVERSATIONS":var g=e.payload,m=g.conversations,v=g.participants,y=at(m)
this._invokeDecorators(m,v,y)
break
case"ADD_NEW_MESSAGE_BY_CONVO_URN":var b=e.payload,k=b.message,_=b.conversationUrn
r&&this._invokeMessageDecorator(r,_,[k],a)
break
case"ADD_NEW_MESSAGES":case"ADD_OLDER_MESSAGES":var T=e.payload,S=T.messages,C=T.conversationUrn
S.length&&r&&this._invokeMessageDecorator(r,C,S,a)
break
case"UPDATE_MESSAGES":if(r){var w=e.payload.conversationUrn,x=e.payload.messageUpdateMap
if(!w){var I=R(x),A=c.conversations.find((function(e){return void 0!==e.messages.getByIdentifier(I[0])}),"FullMailboxState")
if(!A)return
w=A.entityUrn}B(x).forEach((function(e){var n=E(e,2),i=n[0],o=n[1]
if(w)try{r([o]).then(function(e,t,n){return function(i){e.dispatch(function(e,t,n){return{type:"DECORATE_MESSAGE",payload:{messageUrn:t,conversationUrn:n,data:e}}}(i,n,t))}}(a,w,i)).catch(Ul(t._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){Ul(t._urn,"MESSAGE_DECORATE_FAILED")(e)}}))}}}},{key:"_invokeParticipantsDecorator",value:function(e,t,n){try{e(t).then(function(e,t){return function(n){var i
e.dispatch((i=U(t.map((function(e,t){return[e.entityUrn,n[t]]}))),{type:"DECORATE_PARTICIPANTS",payload:{data:i}}))}}(n,t)).catch(Ul(this._urn,"PARTICIPANTS_DECORATE_FAILED"))}catch(e){var i=Le.fromUnknown("PARTICIPANTS_DECORATE_FAILED",e)
Ll(this._urn)(i)}}},{key:"_invokeAllMessageDecorator",value:function(e,t,n){try{e(t).then((r=n,o=t,function(e){var t
e.length>0&&r.dispatch((t=U(o.map((function(t,n){return[t.clientId,e[n]]}))),{type:"DECORATE_ALL_MESSAGES",payload:{data:t}}))})).catch(Ul(this._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){var i=Le.fromUnknown("MESSAGE_DECORATE_FAILED",e)
Ll(this._urn)(i)}var r,o}},{key:"_invokeMessageDecorator",value:function(e,t,n,i){try{e(n).then(function(e,t,n){return function(i){i.length>0&&e.dispatch(function(e,t){return{type:"DECORATE_MESSAGES",payload:{data:t,conversationUrn:e}}}(t,U(n.map((function(e,t){return[e.clientId,i[t]]})))))}}(i,t,n)).catch(Ul(this._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){var r=Le.fromUnknown("MESSAGE_DECORATE_FAILED",e)
Ll(this._urn)(r)}}},{key:"_invokeDecorators",value:function(e,t,n){var i=this._options.decorators,r=i.messagesDecorator,o=i.conversationsDecorator,a=i.participantsDecorator,c=jl(this._urn)
if(j(c))throw Le.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = _invokeDecorators(), mailboxUrn = ".concat(this._urn,", mailboxStore = ").concat(s(c))))
e.length>0&&o&&this._invokeConversationsDecorator(o,e,c),t.length>0&&a&&this._invokeParticipantsDecorator(a,t,c),n.length>0&&r&&this._invokeAllMessageDecorator(r,n,c)}},{key:"_invokeConversationsDecorator",value:function(e,t,n){try{var i=St.fromConversationArray(t)
e(i).then(function(e,t){return function(n){var i
n.length>0&&e.dispatch((i=U(t.map((function(e,t){return[e.clientId,n[t]]}))),{type:"DECORATE_CONVERSATIONS",payload:{data:i}}))}}(n,i)).catch(Ul(this._urn,"CONVERSATION_DECORATE_FAILED"))}catch(e){var r=Le.fromUnknown("CONVERSATION_DECORATE_FAILED",e)
Ll(this._urn)(r)}}},{key:"_getRealtimeTopics",value:function(){return[this._realtimeAuthToken,this._realtimeEventsTopics]}},{key:"_updateRealtimeAuth",value:function(e){var t,n
this._realtimeEventsTopics=(n=e.realtimeTopics)?new Map([["TypingIndicator",n.typingIndicatorsBroadcastTopicUrn],["NewMessage",n.messagesBroadcastTopicUrn],["ConversationUpdate",n.conversationsBroadcastTopicUrn],["ConversationDelete",n.conversationDeletesBroadcastTopicUrn],["SeenReceipt",n.messageSeenReceiptsBroadcastTopicUrn],["QuickReplies",n.replySuggestionBroadcastTopicUrn],["ReactionSummary",n.messageReactionSummariesBroadcastTopicUrn]]):new Map([["TypingIndicator","urn:li-realtime:typingIndicatorsTopic:urn:li-realtime:myself"],["NewMessage","urn:li-realtime:messagesTopic:urn:li-realtime:myself"],["ConversationUpdate","urn:li-realtime:conversationsTopic:urn:li-realtime:myself"],["ConversationDelete","urn:li-realtime:conversationDeletesTopic:urn:li-realtime:myself"],["SeenReceipt","urn:li-realtime:messageSeenReceiptsTopic:urn:li-realtime:myself"],["QuickReplies","urn:li-realtime:replySuggestionTopicV2:urn:li-realtime:myself"],["ReactionSummary","urn:li-realtime:messageReactionSummariesTopic:urn:li-realtime:myself"]]),this._realtimeAuthToken=null!==(t=e.authToken)&&void 0!==t?t:null}},{key:"_fetchAndUpdateAuth",value:function(e){var t=this
return function(e,t,n){return n?Promise.resolve({}):(G("Retrieving mailbox broadcast topics for ",t),function(e,t){var n="getRealtimeAuthTokenAPI",i=bs(e,{mailboxUrn:t}),r=vl(n)
return fc(i).then(r).catch(gl(n))}(e,t).then((function(e){var n,i
Ys(e,"messengerMailboxRealtimeSubscriptionAuthorizationTokensByMailboxUrnsInBatch")
var r,o=(r=(null!==(n=null===(i=e.data)||void 0===i?void 0:i.messengerMailboxRealtimeSubscriptionAuthorizationTokensByMailboxUrnsInBatch)&&void 0!==n?n:[]).filter(O).map((function(e){var t
return null!==(t=e.elements)&&void 0!==t?t:[]})),r.reduce(((e,t)=>[...e,...t]),[])).filter(O),a=o.find(jt(function(e){return function(t){return e===t}}(t),(function(e){return e.mailboxUrn})))
return a?{realtimeTopics:a,authToken:a.token}:{}})).catch((function(e){var t
if(422===(null===(t=e.originalStatusCodes)||void 0===t?void 0:t[0]))return Promise.resolve({})
throw e})))}(this.networkConfig,this._urn,qu(e)).then((function(n){var r
t._renewAuthTokenTask&&t._renewAuthTokenTask.cancel(),t._realtimeAuthToken&&n.authToken&&(G("updating auth token for ".concat(t.urn," to realtime"),"...".concat($(20,n.authToken))),function(e,t){if(e&&t&&e!==t){var n=(0,i.getClient)()
n&&n.updateAuthToken(e,t)}}(n.authToken,t._realtimeAuthToken),t._realtimeAuthToken=n.authToken),n.authToken&&(G("Start countdown to renew JWT in ".concat(12," minutes")),null===(r=t._renewAuthTokenTask)||void 0===r||r.start(72e4)),t._updateRealtimeAuth(n)
try{var o,a
n.authToken&&(null===(o=e.trackingOptions)||void 0===o||null===(a=o.incrementMetricCounterHandler)||void 0===a||a.call(o,{groupName:"messengerData",metricName:"fetch-jwt-token-success"}))}catch(e){G("Error while firing client sensor for JWT",e)}return n})).catch((function(t){var n,i
throw null===(n=e.trackingOptions)||void 0===n||null===(i=n.incrementMetricCounterHandler)||void 0===i||i.call(n,{groupName:"messengerData",metricName:"fetch-jwt-token-failed"}),G("Error fetching JWT",t),t}))}},{key:"_createMailboxHandlers",value:function(e,t){var n=this
return this.mailboxHandlers={actorUrn:this._options.viewerUrn,dispatch:this._dispatch.bind(this),experimentalValues:this._options.experimental,fetchAndUpdateTopics:function(){return n._fetchAndUpdateAuth(n._options)},getRealtimeTopics:this._getRealtimeTopics.bind(this),handleRealtimeNewMessage:Yu(e,t,this._dispatch.bind(this)),mailboxType:this._options.mailboxType,triggerChainSync:e.syncConversationsAPI.bind(e),triggerMessagesSync:function(t,n){return e.syncConversationMessages(t,"FullMailboxState",n)}},this.mailboxHandlers}},{key:"urn",get:function(){return this._urn}},{key:"preloadMailboxData",value:function(){var e=this
G("Bootstrapping mailbox data for ",this._urn)
var t=Rl(this._urn)
if(j(t))return Promise.reject(new Error("Mailbox state not could not be found"))
if(tt(t))return Promise.resolve()
var n,i,r,o=od(this._participantClientId,this._urn)
return(n=this._urn,i=this._options,r=o,Gu(n,i,r)).then((function(t){var n=t.data,i=n.conversations,r=n.participants,o=n.status,a=i.filter(ie)
return e._dispatch({type:"CONNECT"}),e._dispatch(ou(a,N(r).filter(O),o.syncToken,"ADD_CATEGORIES",o.lastRequestId)),Promise.resolve()}))}},{key:"getMailbox",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Al,n=arguments.length>1?arguments[1]:void 0
if(this._options.enableParameterTypeChecks){if(!Ie(t))return Pl(this.urn)(Le.fromInvalidType("getMailbox","filter","InputMailboxFilter"))
if(n&&(Array.isArray(n)||!we(n)))return Pl(this.urn)(Le.fromInvalidType("getMailbox","trackingData","TrackingData"))}G("Activating a mailbox for: ",this._urn),this.performance.start("msg-sdk:getMailbox")
var i=Ws(t)?o(o({},t),{},{id:Va()}):t,r=new fd(this._urn,this._options,this._participantClientId,i,this._dispatch.bind(this),this._retrieveNetworkConfig.bind(this)),a=Rl(this._urn)
if(j(a))throw Le.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = getMailbox(), mailboxUrn = ".concat(this._urn,", mailboxState = ").concat(s(a))))
return a&&!tt(a)?(this.performance.start("msg-sdk:_fetchAndUpdateAuth"),this._fetchAndUpdateAuth(this._options).then((function(t){return e.performance.end("msg-sdk:_fetchAndUpdateAuth"),t})).then((function(){return e.performance.start("msg-sdk:bootstrapAndActivateMailbox"),Hu(e._urn,e._options,r.participant,e._createMailboxHandlers(r,e.networkConfig),n,r.clientSensorTrackers).finally((function(){e.performance.end("msg-sdk:bootstrapAndActivateMailbox")}))})).then((function(t){var n,i,o,a,s,c,l=t.data,u=l.conversations,d=l.participants,f=l.status,p=u.filter(ie)
return r._oldestConversationTime=u.length>0?Zu(k(u)):0,e._dispatch({type:"CONNECT"}),e._dispatch(ou(p,N(d).filter(O),f.syncToken,"ADD_CATEGORIES",f.lastRequestId)),r._updateLocalParticipant(),Pu(u.map((function(e){return e.backendUrn})),!0,e._urn,r.options.viewerUrn,null===(n=r.options.trackingOptions)||void 0===n?void 0:n.trackingFireEvent),r.clientSensorTrackers.triggerRecipientMetric("conversation-list-sync-success"),f.syncToken||Ml(e.urn,Le.fromApiErrorMemo("ERRORS_IN_RESPONSE",Ae("getMailbox(): SyncToken is null on initial Mailbox bootstrap"))),e.performance.start("msg-sdk:getMailboxUnreadCountsAPI"),(i=e.networkConfig,o=e._urn,a="getMailboxUnreadCountsAPI",s=Ya(i,{mailboxUrn:o}),c=vl(a),fc(s).then(c).catch(gl(a))).then((function(e){return zs(e)})).then((function(t){jl(e._urn)?e._dispatch({type:"UPDATE_MAILBOX_UNREAD_COUNT",payload:t.counters,requestId:t.requestId}):V("Mailbox was destroyed before unread counts were received")})).catch(Pl(e._urn)).finally((function(){e.performance.end("msg-sdk:getMailboxUnreadCountsAPI")})),r})).finally((function(){e.performance.end("msg-sdk:getMailbox")}))):(r.state.conversations.length<20&&(this.performance.start("msg-sdk:mailbox.loadOlderConversations"),r._updateLocalParticipant(),r.loadOlderConversations().finally((function(){return e.performance.start("msg-sdk:mailbox.loadOlderConversations")}))),Promise.resolve(r).finally((function(){e.performance.end("msg-sdk:getMailbox")})))}},{key:"teardown",value:function(){this.networkConfig.teardown()}},{key:"tracking",get:function(){var e
return null!==(e=this._options.trackingOptions)&&void 0!==e?e:{}}},{key:"performance",get:function(){var e,t
return null!==(e=null===(t=this.tracking)||void 0===t?void 0:t.performance)&&void 0!==e?e:dd}}],[{key:"create",value:function(t,n){var i
n.headers&&(i=n.headers,rc=i),function(e,t){if(Ge[e]&&qe(Ge[e]))return!1
var n=function(e,t){return{entityUrn:e,lastActivityAt:new Date,conversations:St.fromConversationArray(),participants:{},draftConversations:Fl(),connected:{api:t.connected,realtime:t.connected},additionalData:null,status:o(o({},Fe),{},{loading:t.loading}),unreadCounts:{},incompleteRetriableEntities:[]}}(e,t),i=Ot(Kl,n)
Ge[e]={store:i,observers:[]},i.subscribe((function(){!function(e){var t=Ge[e]
qe(t)&&(t.observers.forEach((function(e){return e.next(t.store.getState())})),t.observers.length)}(e)}))}(t,{connected:!1,loading:!0})
var r=new e(t,n)
return Promise.resolve(r)}}]),e}()
function gd(e,t){var n
if(G("0.0.0-productSpec","Connecting to",e),j(e)||!le(e))return Promise.reject(Le.fromInvalidType("connectToMailbox","mailboxUrn","URN"))
if(!z(t))return Promise.reject(Le.fromInvalidType("connectToMailbox","options","Partial<MailboxOptions>"))
var i=t.trackingOptions,r=null!==(n=(void 0===i?{}:i).performance)&&void 0!==n?n:dd
r.start("msg-sdk:connect-to-mailbox")
var a=pd.findConnection(e)
if(a)return r.end("msg-sdk:connect-to-mailbox"),Promise.resolve(a)
var s=o(o({},Ss),t),c=hd.create(e,s)
return function(e,t,n){vd.apply(this,arguments)}(c,s,e),qu(t)||(function(e){return!0===e.isPreconnected}(t)?hd.clientSensorTrackersMap[e].triggerGeneralMetric("unlimited-mailboxes-pre-connect-mailbox"):hd.clientSensorTrackersMap[e].triggerGeneralMetric("unlimited-mailboxes-connect-mailbox")),c.finally((function(){return r.end("msg-sdk:connect-to-mailbox")}))}function md(e){if(!Array.isArray(e))return[Promise.reject(Le.fromInvalidType("connectToMailboxes","mailboxesToConnect","MailboxConnectInitialData[]"))]
var t=e
e.length>pd.prioritySortedListMaxSize&&(t=e.slice(0,pd.prioritySortedListMaxSize))
var n=pd.prioritySortedMailboxList
if(pd.prioritySortedMailboxList.length+t.length>pd.prioritySortedListAvailableSpace){pd.sortAndUpdatePrioritySortedMailboxList()
var i=pd.prioritySortedMailboxList.map((function(e){return e.urn}))
t.filter((function(e){return i.includes(e.mailboxUrn)})).forEach((function(e){pd.removeMailboxFromPool(e.mailboxUrn)}))
var r=pd.prioritySortedListMaxSize-t.length,o=pd.prioritySortedMailboxList.length-r
o>0&&pd.prioritySortedMailboxList.slice(-o).forEach((function(e){pd.disconnectMailbox(e.urn)})),n=pd.prioritySortedMailboxList.slice(0,r)}var a=t.map((function(e){return gd(e.mailboxUrn,e.mboxOptions)}))
return Promise.all(a).then((function(e){pd.prioritySortedMailboxList=e.concat(n)})),a}function vd(){return(vd=l(a().mark((function e(t,n,i){var r
return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t
case 2:r=e.sent,pd.addMailbox(r,n,hd.clientSensorTrackersMap[i])
case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}p(hd,"clientSensorTrackersMap",{})},46670:(e,t,n)=>{"use strict"
function i(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e)
t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?i(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,E(i.key),i)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return p=f()?Reflect.construct.bind():function(e,t,n){var i=[null]
i.push.apply(i,t)
var r=new(Function.bind.apply(e,i))
return n&&d(r,n.prototype),r},p.apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0
return h=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e
if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function")
if(void 0!==t){if(t.has(e))return t.get(e)
t.set(e,n)}function n(){return p(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},h(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o,a,s=[],c=!0,l=!1
try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return
c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return b(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function E(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}n.r(t),n.d(t,{Subject:()=>O,conversationDraftMessageObservable:()=>Zo,conversationMessagesObservable:()=>Jo,conversationObservable:()=>$o,distinct:()=>M,distinctUntilChanged:()=>j,incompleteRetriableEntitiesObservable:()=>ea,newMessageFromMailboxObservable:()=>Yo,resetAlertedMessages:()=>Xo,toMessengerObservable:()=>Wo}),n(75023)
var k="function"==typeof Symbol&&Symbol.observable||"@@observable",_=()=>{}
function T(e){var t=[e]
return t.tag=0,t}function S(e){var t=[e]
return t.tag=1,t}function C(e){return t=>n=>{var i=_
t((t=>{0===t?n(0):0===t.tag?(i=t[0],n(t)):e(t[0])?n(t):i(0)}))}}function w(e){return t=>n=>t((t=>{0===t||0===t.tag?n(t):n(S(e(t[0])))}))}var x,I=()=>Symbol.observable||"@@observable"
function A(e){return e=e[I()]?e[I()]():e,t=>{var n=e.subscribe({next(e){t(S(e))},complete(){t(0)},error(){}})
t(T((e=>{1===e&&n.unsubscribe()})))}}function R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
for(var i=t[0],r=1,o=t.length;r<o;r++)i=t[r](i)
return i}x=Symbol.observable
var O=function(){function e(t){a(this,e),l(this,"_subscribers",new Set),l(this,"_lastState",void 0),l(this,"_complete",!1),this._lastState=null!=t?t:null}return c(e,[{key:"subscribe",value:function(e){var t=this,n="function"==typeof e?{next:e}:e
return this._subscribers.add(n),null!==this._lastState&&n.next(this._lastState),{unsubscribe:function(){return t._subscribers.delete(n)}}}},{key:"subscribersCount",get:function(){return this._subscribers.size}},{key:"state",get:function(){return this._lastState}},{key:"observable",get:function(){return this}},{key:x,value:function(){return this}},{key:k,value:function(){return this}},{key:"emit",value:function(e){this._complete||(this._lastState=e,this._subscribers.forEach((function(t){return t.next(e)})))}},{key:"error",value:function(e){this._complete||this._subscribers.forEach((function(t){var n
return null===(n=t.error)||void 0===n?void 0:n.call(t,e)}))}},{key:"complete",value:function(){this._complete||(this._complete=!0,this._subscribers.forEach((function(e){var t
return null===(t=e.complete)||void 0===t?void 0:t.call(e)})))}}]),e}(),j=function(e){return function(t){return R(t,function(e,t){return e=>n=>{var i=t
e((e=>{0===e?n(0):0===e.tag?n(e):n(S(i=function(e,t){return e.prev=e.current,e.current=t,e}(i,e[0])))}))}}(0,{prev:void 0,current:void 0}),C((function(t){return null==t.prev||!e(t.prev,t.current)})),w((function(e){return e.current})))}},M=function(){return j((function(e,t){return e===t}))}
function N(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var P=function(){return Math.random().toString(36).substring(7).split("").join(".")},D={INIT:"@@redux/INIT"+P(),REPLACE:"@@redux/REPLACE"+P(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+P()}}
const U=e=>t=>!1===e.includes(t),L=(e,t)=>n=>n.map(((n,i)=>e(n,i)?t(n):n)),F=(e,t)=>n=>{let i=!1
return n.map(((n,r)=>!i&&e(n,r)?(i=!0,t(n)):n))},B=e=>t=>t.reduce(((t,n)=>(e(n)?t[0].push(n):t[1].push(n),[t[0],t[1]])),[[],[]]),q=e=>Object.keys(e),H=e=>null!=e,G=e=>null==e
var V,K=function(e){return Object.fromEntries(e)},W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
return t&&0!==t.length?[].concat(v(e),v(t.filter(U(e)))):e},z=function(e){return!e},X=function(e,t,n){var i=new Map(e)
return i.set(t,n),i},Q=function(e,t){var n=new Map(e)
return n.delete(t)?n:e},Y=function(e,t){if(e.has(t))return e
var n=new Set(e)
return Object.freeze(n.add(t))},$=function(e,t){var n=new Set(e)
return n.delete(t)?Object.freeze(n):e},J=function(e){return"string"==typeof e},Z=function(e){return"entityUrn"in e&&void 0!==e.entityUrn},ee=function(e){return J(e)&&/^[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+$/.test(e)},te=function(e){return/^urn:li:msg_conversationDraft:.*$/.test(e)},ne=function(e){return J(e)&&e.startsWith("urn:")},ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState"
return e.find((function(e){return void 0!==e.messages.getByIdentifier(t)}),n)},re={MISSING_DATA_FROM_RESPONSE:{message:"Some data was missing or invalid from the response",code:100},ERRORS_IN_RESPONSE:{message:"Some errors were returned in the response",code:101},RESPONSE_INVALID_JSON:{message:"Failed to parse a JSON response",code:102},NO_RESPONSE_RECEIVED:{message:"No response received",code:103},NETWORK_ERROR:{message:"Network Error",code:104},SERVER_DRAFT_CONVERSATION_DELETE_FAILED:{message:"The draft conversation failed to be deleted",code:105}},oe={FEATURE_NOT_YET_AVAILABLE:{message:"This feature is not yet available",code:613},MAILBOX_CONNECT_FAILED:{message:"Connecting to the Mailbox failed",code:614},MESSAGE_DECORATE_FAILED:{message:"Decoration of messages failed",code:600},CONVERSATION_DECORATE_FAILED:{message:"Decoration of conversation failed",code:601},MAILBOX_DECORATE_FAILED:{message:"Decoration of mailbox failed",code:602},CONVERSATION_DOES_NOT_EXIST:{message:"The conversation does not exist",code:603},DRAFT_MESSAGE_IS_EMPTY:{message:"The draft message is empty",code:604},MESSAGE_SEND_FAILED:{message:"Could not send the message",code:605},MESSAGE_DELETE_FAILED:{message:"Could not delete the message",code:606},MESSAGE_EDIT_FAILED:{message:"Could not edit the message",code:607},MESSAGE_DOES_NOT_EXIST:{message:"The message does not exist",code:608},PARTICIPANTS_DECORATE_FAILED:{message:"Decoration of participants failed",code:611},TOO_MANY_CATEGORIES:{message:"Too many categories specified and no keywords for find conversations",code:612},CANNOT_CREATE_FILTERED_MAILBOX:{message:"Cannot create a FilteredMailbox from a non-root mailbox",code:616},LOAD_OLDER_MESSAGES_FAILED:{message:"Cannot load older messages",code:617},RETRY_CANCELLED:{message:"The exponential backoff retry was cancelled",code:618},SENDING_QUEUE_IN_PROGRESS:{message:"The sending queue is already in progress. Cannot sendPendingMessages.",code:619},CANNOT_ADD_MESSAGES_IN_CONVERSATION:{message:"The draft conversation is in the process of sending the first message and creating a saved conversation. Cannot add more messages.",code:620},CANNOT_ADD_PARTICIPANTS_IN_CONVERSATION:{message:"Cannot add participants in conversation",code:621},CANNOT_REMOVE_PARTICIPANTS_FROM_CONVERSATION:{message:"Cannot remove participants from conversation",code:622},CANNOT_DISMISS_INLINE_WARNING:{message:"Cannot dismiss inline warning",code:623},MESSAGE_LIST_SYNC_FAILED:{message:"Message list sync failed",code:624},CHAIN_SYNC_FAILED:{message:"Chain sync failed",code:625},GET_REACTORS_FAILED:{message:"Get reactors by message and emoji failed",code:627},REACTION_LIMIT_REACHED:{message:"Cannot react to message because the reaction limit has been reached on this message",code:628},CONTENT_IS_NOT_ATTRIBUTED_TEXT:{message:"Content is not in the proper format of an AttributedTextFragment",code:629},INVALID_URL:{message:"Invalid restli or graphql URL",code:630},CHAIN_SYNC_CANNOT_START:{message:"Chain sync cannot start because missing syncToken",code:631},INVALID_TYPE_ARGUMENT:{message:"Invalid type argument",code:632},COMPOSE_BY_RECIPIENTS_FAILED:{message:"composeByRecipients failed: The conversation found could not be added to the Mailbox State",code:633},MAILBOX_NOT_FOUND:{message:"Mailbox not found: The mailbox URN could not be found in the store",code:634},SERVER_DRAFT_CONVERSATION_NOT_CREATED:{message:"Server Draft Conversation not created",code:635},CANNOT_UPDATE_DRAFT_MESSAGE:{message:"Cannot update draft message",code:636}},ae={CANNOT_QUERY_FRAGMENT:{message:"Cannot submit a GraphQL request with a fragment query",code:800},GRAPHQL_ERROR_PAYLOAD:{message:"Error in GraphQL response",code:801},GRAPHQL_INVALID_LOOKUP:{message:"Could not lookup the graphql query - invalid query",code:802}},se={CANNOT_CONNECT:{message:"Connection to Realtime failed",code:700},PAYLOAD_DATA_DOES_NOT_EXIST:{message:"Realtime response decorated payload data does not exist",code:701},PAYLOAD_DECORATION_DOES_NOT_EXIST:{message:"Realtime response decorated payload decoration does not exist",code:702},PAYLOAD_RESULT_DOES_NOT_EXIST:{message:"Realtime response decorated payload result does not exist",code:703},COMMON_TIME_ERROR:{message:"Error event emitted from common-time",code:704},EVENT_ERROR:{message:"Event data received from Realtime is invalid",code:705},EVENT_RESPONSE_ERROR:{message:"Event data contains GraphQL decoration errors",code:706},PAYLOAD_DATA_IS_NOT_COMPLETE:{message:"Realtime decorated payload does not contain all the fields needed for processing the event",code:707}}
V=Symbol.toPrimitive
var ce,le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(n,h(Error))
var t=function(e){var t=f()
return function(){var n,i=u(e)
if(t){var r=u(this).constructor
n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments)
return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return g(e)}(this,n)}}(n)
function n(e,i,r,o,s){var c
return a(this,n),l(g(c=t.call(this,"<web-messenger-data> [".concat(e,"] ").concat(r," (").concat(i,") ").concat(n.getMessageFromCause(o)).trimEnd())),"namespace",void 0),l(g(c),"code",void 0),l(g(c),"originalStatusCodes",[]),l(g(c),"cause",void 0),c.name="MDError",c.code=i,c.namespace=e,c.cause=o,c.originalStatusCodes=null!=s?s:[],Object.setPrototypeOf(g(c),(this instanceof n?this.constructor:void 0).prototype),c}return c(n,[{key:"id",get:function(){return"".concat(this.namespace,":").concat(this.code)}},{key:V,value:function(e){return"string"===e?this.toString():null}}],[{key:"fromUnknown",value:function(e,t){var i=oe[e],r=i.code,o=i.message
return t instanceof Error?new n("client",r,"".concat(o," - ").concat(t.message)):new n("client",r,o)}},{key:"fromMDResponseError",value:function(e,t){var i=t.message||t.code,r=void 0!==i?"".concat(e," ").concat(i):e
return new n("api",t.status,r)}},{key:"fromClientErrorMemo",value:function(e,t){var i=oe[e]
return new n("client",i.code,i.message,t)}},{key:"fromClientErrorMemoWithComment",value:function(e,t,i){var r=oe[e],o=r.code,a=r.message
return new n("client",o,"".concat(a," - ").concat(t),i)}},{key:"fromInvalidType",value:function(e,t,i){var r=oe.INVALID_TYPE_ARGUMENT,o=r.code,a=r.message,s="".concat(e,"() invalid argument: ").concat(t," is not a valid ").concat(i,"'")
return new n("client",o,"".concat(a," - ").concat(s))}},{key:"fromApiErrorMemo",value:function(e,t){var i=re[e],r=i.code,o=i.message
return new n("api",r,"".concat(o).concat(null!=t&&t.msg?" - "+t.msg:""),null==t?void 0:t.cause,null==t?void 0:t.originalStatusCodes)}},{key:"fromGraphQLErrorMemo",value:function(e,t){var i=ae[e]
return new n("graphql",i.code,i.message,t)}},{key:"fromRealtimeErrorMemo",value:function(e,t){var i=se[e]
return new n("realtime",i.code,i.message,t)}},{key:"buildCommonTimeError",value:function(e){var t,i=se.COMMON_TIME_ERROR.message,r=e.message?"".concat(i," - ").concat(e.message):i,o=m(void 0!==(t=e).status&&null!==t.status?[e.originalEvent,e.status]:[void 0,se.COMMON_TIME_ERROR.code],2),a=o[0]
return new n("realtime",o[1],r,a)}},{key:"buildGraphQLPayloadError",value:function(e,t){var i,r,o=ae.GRAPHQL_ERROR_PAYLOAD.message,a=e.message,s='"'.concat(t,'" ').concat(o," - ").concat(null!=a?a:"")
return new n("graphql",null!==(i=null===(r=e.extensions)||void 0===r?void 0:r.status)&&void 0!==i?i:ae.GRAPHQL_ERROR_PAYLOAD.code,s)}},{key:"getMessageFromCause",value:function(e){return!e||Array.isArray(e)&&0===e.length?"":Array.isArray(e)?"- [cause]: ".concat(e.map((function(e){return e.message})).join()):"- [cause]: ".concat(e.message)}}]),n}(),ue={fullyLoaded:!1,loading:!1,nextCursor:null,syncToken:null,lastRequestId:0},de=function(e){return function(t){return!!Z(t)&&t.entityUrn===e}},fe=function(e){return function(t){return!!Z(t)&&e.includes(t.entityUrn)}},pe=function(e){return function(t){return e===(ne(e)?t.entityUrn:t.clientId)}},he=function(e){return function(t){return t.entityUrn===e}},ge=function(e){return void 0!==e.conversationUrn},me=function(e){return void 0!==e.messageUrn},ve=function(e){var t,n,i,r,o,a,s,c,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{renderContent:[]}
return{renderContent:"ADD"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ADD")?Ee([].concat(v(e.renderContent),v(l.renderContent))):l.renderContent,messageRequestContextByRecipient:null!==(t=l.messageRequestContextByRecipient)&&void 0!==t?t:e.messageRequestContextByRecipient,quickActionContextUrn:null!==(n=l.quickActionContextUrn)&&void 0!==n?n:e.quickActionContextUrn,invitationUrn:null!==(i=l.invitationUrn)&&void 0!==i?i:e.invitationUrn,forwardedMessageUrn:null!==(r=l.forwardedMessageUrn)&&void 0!==r?r:e.forwardedMessageUrn,conversationState:null!==(o=l.conversationState)&&void 0!==o?o:e.conversationState,conversationTitle:null!==(a=l.conversationTitle)&&void 0!==a?a:e.conversationTitle,hostMessageCreateContent:null!==(s=l.hostMessageCreateContent)&&void 0!==s?s:e.hostMessageCreateContent,messageSubject:null!==(c=l.messageSubject)&&void 0!==c?c:e.messageSubject}},ye=function(e){return function(t){var n
return t?r(r(r({},t),e),{},{optionalSendData:e.optionalSendData?ve(t.optionalSendData,e.optionalSendData,"REPLACE"):t.optionalSendData,status:"Delivered"===t.status?"Delivered":null!==(n=e.status)&&void 0!==n?n:t.status,additionalData:e.additionalData||t.additionalData,entityUrn:t.entityUrn||e.entityUrn,clientId:t.clientId}):e}},be=function e(t,n){if(t===n)return!0
if(null==t||"object"!=o(t)||null==n||"object"!=o(n))return!1
var i=Object.keys(t),r=Object.keys(n)
if(i.length!=r.length)return!1
for(var a=0,s=i;a<s.length;a++){var c=s[a]
if(!r.includes(c)||!e(t[c],n[c]))return!1}return!0},Ee=function(e){return e.reduce((function(e,t){return e.some((function(e){return be(e,t)}))||e.push(t),e}),[])},ke=function(e){return void 0===e.messages&&void 0!==e.status},_e=function(e,t){var n,i,o,a,s
if(t.lastActivityAt&&t.lastActivityAt<e.lastActivityAt)return e
var c=we(null!==(n=e.seenReceiptsMap)&&void 0!==n?n:{},null!==(i=t.seenReceiptsMap)&&void 0!==i?i:{})
return r(r(r({},e),t),{},{participants:t.participants&&t.participants.length>0?t.participants:e.participants,lastActivityAt:null!==(o=t.lastActivityAt)&&void 0!==o?o:e.lastActivityAt,status:r(r({},e.status),t.status),metadata:{prevCursor:null!==(a=t.metadata)&&void 0!==a&&a.prevCursor&&""!==t.metadata.prevCursor?t.metadata.prevCursor:e.metadata.prevCursor,syncToken:null!==(s=t.metadata)&&void 0!==s&&s.syncToken&&""!==t.metadata.syncToken?t.metadata.syncToken:e.metadata.syncToken},seenReceiptsMap:c,quickReplies:t.quickReplies&&t.quickReplies.length>0?t.quickReplies:e.quickReplies})},Te=function(e,t){var n,i,o,a
if(ke(t))return r(r({},e),{},{status:r(r({},e.status),t.status)})
var s=t.participants||[],c=v(t.messages||[]),l=t.matchingSearches||[]
return r(r(r({},e),t),{},{participants:s.length>0?W(e.participants,s).filter((function(e){return void 0!==e})).sort():e.participants,messages:c.length>0?e.messages.add(c):e.messages,clientId:e.clientId,draftMessage:t.draftMessage||e.draftMessage,matchingSearches:l.length>0?W(e.matchingSearches,l):e.matchingSearches,metadata:{prevCursor:null!==(n=t.metadata)&&void 0!==n&&n.prevCursor&&""!==(null===(i=t.metadata)||void 0===i?void 0:i.prevCursor)?t.metadata.prevCursor:e.metadata.prevCursor,syncToken:null!==(o=t.metadata)&&void 0!==o&&o.syncToken&&""!==(null===(a=t.metadata)||void 0===a?void 0:a.syncToken)?t.metadata.syncToken:e.metadata.syncToken},quickReplies:t.quickReplies&&t.quickReplies.length>0?t.quickReplies:e.quickReplies})},Se=function(e,t){return function(n){var i=n.entityUrn?e.get(n.entityUrn):void 0,r=t.get(n.clientId)
return void 0!==i||void 0!==r&&(void 0===r.entityUrn||void 0===n.entityUrn)}},Ce=function(e,t,n){if(0===t.length)return[]
var i=t[0].message,r=e.messages.last()
if(!r)return[]
var o=r.entityUrn
return n&&n.deliveredAt&&(o=r.deliveredAt.getTime()>n.deliveredAt.getTime()?r.entityUrn:n.entityUrn),o===i.entityUrn?t:[]},we=function(e,t){var n=t?function(e,t){var n=r({},e)
return q(t).forEach((function(e){var i=t[e]
if(!G(i)){var r,o=n[e]
H(o)?(r=n[e]).push.apply(r,v(i)):n[e]=i.slice().sort((function(e,t){return e.seenAt-t.seenAt}))}})),n}(e,t):e
return function(e){var t=function(e){var t={}
return q(e).forEach((function(n){t[e[n].messageUrn]?t[e[n].messageUrn].push({participantUrn:n,seenAt:e[n].seenAt}):t[e[n].messageUrn]=[{participantUrn:n,seenAt:e[n].seenAt}]})),t}(function(e){var t={}
return q(e).forEach((function(n){e[n].forEach((function(e){var i=e.participantUrn
if(t[i]){var r=t[i].seenAt
new Date(e.seenAt)>new Date(r)&&(t[i]={messageUrn:n,seenAt:e.seenAt})}else t[i]={messageUrn:n,seenAt:e.seenAt}}))})),t}(e))
return t}(n)},xe=function(e){return[e.filter(ge).map((function(e){return e.conversationUrn})).sort(),e.filter(me).map((function(e){return e.messageUrn})).sort()]},Ie=function(){return Oe.fromConversationArray([])},Ae=function(e){return!0}
ce=Symbol.iterator
var Re,Oe=function(){function e(t,n){a(this,e),l(this,"_conversations",void 0),l(this,"_filterPredicate",void 0),l(this,"_entityUrnIndex",void 0),l(this,"_clientIdIndex",void 0),l(this,"_idx",0),this._conversations=function(e){return e.slice().sort((function(e,t){return t.lastActivityAt.getTime()-e.lastActivityAt.getTime()}))}(t),this._filterPredicate=n||Ae,this._entityUrnIndex=new Map(this._conversations.map((function(e){return[e.entityUrn,e]}))),this._clientIdIndex=new Map(this._conversations.map((function(e){return[e.clientId,e]})))}return c(e,[{key:"getByIdentifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState",n=ne(e)?this._entityUrnIndex.get(e):this._clientIdIndex.get(e)
return"FullMailboxState"===t||n&&this._filterPredicate(n)?n:void 0}},{key:"filterPredicate",get:function(){return this._filterPredicate}},{key:"filtered",value:function(t){return new e(this._conversations,t)}},{key:ce,value:function(){return this}},{key:"next",value:function(){for(;this._idx<this._conversations.length&&!this._filterPredicate(this._conversations[this._idx]);)this._idx++
return this._idx<this._conversations.length?{done:!1,value:this._conversations[this._idx++]}:(this._idx=0,{done:!0,value:void 0})}},{key:"last",value:function(){if(0!==this._conversations.length){for(var e=this._conversations.length-1;e>=0&&!this._filterPredicate(this._conversations[e]);)e--
return e>=0?this._conversations[e]:void 0}}},{key:"first",value:function(){if(0!==this._conversations.length){for(var e=0;e<this._conversations.length&&!this._filterPredicate(this._conversations[e]);)e++
return e<this._conversations.length?this._conversations[e]:void 0}}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return this._conversations.filter("FilteredMailboxState"===t?this._filterPredicate:function(){return!0}).find(e)}},{key:"findMessage",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return null===(t=this._conversations.filter("FilteredMailboxState"===n?this._filterPredicate:function(){return!0}).find((function(t){return void 0!==t.messages.getByIdentifier(e)})))||void 0===t?void 0:t.messages.getByIdentifier(e)}},{key:"filter",value:function(e){return this._conversations.filter(this._filterPredicate).filter(e)}},{key:"updateItem",value:function(t,n){return new e(F(t,n)(this._conversations))}},{key:"updateItemByIdentifier",value:function(t,n){var i
if(!(i=ne(t)?this._entityUrnIndex.get(t):this._clientIdIndex.get(t)))throw le.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Updating item by identifier")
var r=this._conversations.map((function(e){return e.clientId===i.clientId?_e(e,n):e}))
return new e(r,this._filterPredicate)}},{key:"addItem",value:function(t){var n=!1,i=this._conversations.map((function(e){return e.entityUrn===t.entityUrn?(n=!0,Te(e,t)):e}))
return new e(n?i:[].concat(v(this._conversations),[t]),this._filterPredicate)}},{key:"addItems",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=B(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FilteredMailboxState"
return function(n){return void 0===e.find((i=n,function(e){return i.entityUrn===e.entityUrn}),t)
var i}}(this._conversations))(t),o=m(i,2),a=o[0],s=o[1],c=n?a:a.map((function(e){return r(r({},e),{},{categories:[]})})),l=this._conversations.map((function(e){var t=s.find(de(e.entityUrn))
return t?Te(e,t):e}))
return new e([].concat(v(l),v(c)),this._filterPredicate)}},{key:"updateAny",value:function(t,n){return new e(L(t,n)(this._conversations))}},{key:"deleteItems",value:function(t){var n
return new e((n=t,e=>e.filter(((e,t)=>!n(e,t))))(this._conversations.filter(this._filterPredicate)),this._filterPredicate)}},{key:"map",value:function(e){return this._conversations.filter(this._filterPredicate).map(e)}},{key:"reduce",value:function(e,t){return this._conversations.filter(this._filterPredicate).reduce(e,t)}},{key:"splitCollection",value:function(t){var n=m(B(t)(this._conversations.filter(this._filterPredicate)),2),i=n[0],r=n[1]
return[new e(i),new e(r)]}},{key:"length",get:function(){return this._conversations.filter(this._filterPredicate).length}},{key:"toString",value:function(){return this.map((function(e){return e.toString()})).toString()}}],[{key:"fromConversationArray",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1?arguments[1]:void 0)}},{key:"fromConversationIterable",value:function(t){return new e(t._conversations,t._filterPredicate)}},{key:"merge",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ae
return new e([].concat(v(t),v(n)),i)}}]),e}()
function je(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=Ne(e))||t&&e&&"number"==typeof e.length){n&&(e=n)
var i=0,r=function(){}
return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Me(e){return function(e){if(Array.isArray(e))return Pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ne(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ne(e,t){if(e){if("string"==typeof e)return Pe(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}function Pe(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Le(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Fe(e,t,n){return t&&Le(e.prototype,t),n&&Le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qe,He=new Uint8Array(16)
function Ge(){if(!qe&&!(qe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return qe(He)}var Ve=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i
function Ke(e){return"string"==typeof e&&Ve.test(e)}for(var We=[],ze=0;ze<256;++ze)We.push((ze+256).toString(16).slice(1))
function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(We[e[t+0]]+We[e[t+1]]+We[e[t+2]]+We[e[t+3]]+"-"+We[e[t+4]]+We[e[t+5]]+"-"+We[e[t+6]]+We[e[t+7]]+"-"+We[e[t+8]]+We[e[t+9]]+"-"+We[e[t+10]]+We[e[t+11]]+We[e[t+12]]+We[e[t+13]]+We[e[t+14]]+We[e[t+15]]).toLowerCase()}function Qe(e){if(!Ke(e))throw TypeError("Invalid UUID")
var t,n=new Uint8Array(16)
return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Ye(e,t,n){function i(e,i,r,o){var a
if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e))
for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n))
return t}(e)),"string"==typeof i&&(i=Qe(i)),16!==(null===(a=i)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")
var s=new Uint8Array(16+e.length)
if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0
for(var c=0;c<16;++c)r[o+c]=s[c]
return r}return Xe(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function $e(e){return 14+(e+64>>>9<<4)+1}function Je(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ze(e,t,n,i,r,o){return Je((a=Je(Je(t,e),Je(i,o)))<<(s=r)|a>>>32-s,n)
var a,s}function et(e,t,n,i,r,o,a){return Ze(t&n|~t&i,e,t,r,o,a)}function tt(e,t,n,i,r,o,a){return Ze(t&i|n&~i,e,t,r,o,a)}function nt(e,t,n,i,r,o,a){return Ze(t^n^i,e,t,r,o,a)}function it(e,t,n,i,r,o,a){return Ze(n^(t|~i),e,t,r,o,a)}Ye("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e))
e=new Uint8Array(t.length)
for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16)
t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[$e(t)-1]=t
for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=i,l=r,u=o
n=et(n,i,r,o,e[a],7,-680876936),o=et(o,n,i,r,e[a+1],12,-389564586),r=et(r,o,n,i,e[a+2],17,606105819),i=et(i,r,o,n,e[a+3],22,-1044525330),n=et(n,i,r,o,e[a+4],7,-176418897),o=et(o,n,i,r,e[a+5],12,1200080426),r=et(r,o,n,i,e[a+6],17,-1473231341),i=et(i,r,o,n,e[a+7],22,-45705983),n=et(n,i,r,o,e[a+8],7,1770035416),o=et(o,n,i,r,e[a+9],12,-1958414417),r=et(r,o,n,i,e[a+10],17,-42063),i=et(i,r,o,n,e[a+11],22,-1990404162),n=et(n,i,r,o,e[a+12],7,1804603682),o=et(o,n,i,r,e[a+13],12,-40341101),r=et(r,o,n,i,e[a+14],17,-1502002290),n=tt(n,i=et(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=tt(o,n,i,r,e[a+6],9,-1069501632),r=tt(r,o,n,i,e[a+11],14,643717713),i=tt(i,r,o,n,e[a],20,-373897302),n=tt(n,i,r,o,e[a+5],5,-701558691),o=tt(o,n,i,r,e[a+10],9,38016083),r=tt(r,o,n,i,e[a+15],14,-660478335),i=tt(i,r,o,n,e[a+4],20,-405537848),n=tt(n,i,r,o,e[a+9],5,568446438),o=tt(o,n,i,r,e[a+14],9,-1019803690),r=tt(r,o,n,i,e[a+3],14,-187363961),i=tt(i,r,o,n,e[a+8],20,1163531501),n=tt(n,i,r,o,e[a+13],5,-1444681467),o=tt(o,n,i,r,e[a+2],9,-51403784),r=tt(r,o,n,i,e[a+7],14,1735328473),n=nt(n,i=tt(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=nt(o,n,i,r,e[a+8],11,-2022574463),r=nt(r,o,n,i,e[a+11],16,1839030562),i=nt(i,r,o,n,e[a+14],23,-35309556),n=nt(n,i,r,o,e[a+1],4,-1530992060),o=nt(o,n,i,r,e[a+4],11,1272893353),r=nt(r,o,n,i,e[a+7],16,-155497632),i=nt(i,r,o,n,e[a+10],23,-1094730640),n=nt(n,i,r,o,e[a+13],4,681279174),o=nt(o,n,i,r,e[a],11,-358537222),r=nt(r,o,n,i,e[a+3],16,-722521979),i=nt(i,r,o,n,e[a+6],23,76029189),n=nt(n,i,r,o,e[a+9],4,-640364487),o=nt(o,n,i,r,e[a+12],11,-421815835),r=nt(r,o,n,i,e[a+15],16,530742520),n=it(n,i=nt(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=it(o,n,i,r,e[a+7],10,1126891415),r=it(r,o,n,i,e[a+14],15,-1416354905),i=it(i,r,o,n,e[a+5],21,-57434055),n=it(n,i,r,o,e[a+12],6,1700485571),o=it(o,n,i,r,e[a+3],10,-1894986606),r=it(r,o,n,i,e[a+10],15,-1051523),i=it(i,r,o,n,e[a+1],21,-2054922799),n=it(n,i,r,o,e[a+8],6,1873313359),o=it(o,n,i,r,e[a+15],10,-30611744),r=it(r,o,n,i,e[a+6],15,-1560198380),i=it(i,r,o,n,e[a+13],21,1309151649),n=it(n,i,r,o,e[a+4],6,-145523070),o=it(o,n,i,r,e[a+11],10,-1120210379),r=it(r,o,n,i,e[a+2],15,718787259),i=it(i,r,o,n,e[a+9],21,-343485551),n=Je(n,s),i=Je(i,c),r=Je(r,l),o=Je(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array($e(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32
return n}(e),8*e.length))}))
var rt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function ot(e,t,n){if(rt.randomUUID&&!t&&!e)return rt.randomUUID()
var i=(e=e||{}).random||(e.rng||Ge)()
if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0
for(var r=0;r<16;++r)t[n+r]=i[r]
return t}return Xe(i)}function at(e,t,n,i){switch(e){case 0:return t&n^~t&i
case 1:case 3:return t^n^i
case 2:return t&n^t&i^n&i}}function st(e,t){return e<<t|e>>>32-t}Ye("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520]
if("string"==typeof e){var i=unescape(encodeURIComponent(e))
e=[]
for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e))
e.push(128)
for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3]
s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295
for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p]
for(var h=16;h<80;++h)f[h]=st(f[h-3]^f[h-8]^f[h-14]^f[h-16],1)
for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var k=Math.floor(E/20),_=st(g,5)+at(k,m,v,y)+b+t[k]+f[E]>>>0
b=y,y=v,v=st(m,30)>>>0,m=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))
var ct=Uint8Array,lt=Uint16Array,ut=Uint32Array,dt=new ct([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ft=new ct([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),pt=new ct([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ht=function(e,t){for(var n=new lt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1]
var r=new ut(n[30])
for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i
return[n,r]},gt=ht(dt,2),mt=gt[0],vt=gt[1]
mt[28]=258,vt[258]=28
for(var yt=ht(ft,0)[1],bt=new lt(32768),Et=0;Et<32768;++Et){var kt=(43690&Et)>>>1|(21845&Et)<<1
kt=(61680&(kt=(52428&kt)>>>2|(13107&kt)<<2))>>>4|(3855&kt)<<4,bt[Et]=((65280&kt)>>>8|(255&kt)<<8)>>>1}var _t=function(e,t,n){for(var i=e.length,r=0,o=new lt(t);r<i;++r)e[r]&&++o[e[r]-1]
var a,s=new lt(t)
for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1
if(n){a=new lt(1<<t)
var c=15-t
for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=s[e[r]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)a[bt[d]>>>c]=l}else for(a=new lt(i),r=0;r<i;++r)e[r]&&(a[r]=bt[s[e[r]-1]++]>>>15-e[r])
return a},Tt=new ct(288)
for(Et=0;Et<144;++Et)Tt[Et]=8
for(Et=144;Et<256;++Et)Tt[Et]=9
for(Et=256;Et<280;++Et)Tt[Et]=7
for(Et=280;Et<288;++Et)Tt[Et]=8
var St=new ct(32)
for(Et=0;Et<32;++Et)St[Et]=5
var Ct=_t(Tt,9,0),wt=_t(St,5,0),xt=function(e){return(e+7)/8|0},It=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8},At=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},Rt=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]})
var r=n.length,o=n.slice()
if(!r)return[Ut,0]
if(1==r){var a=new ct(n[0].s+1)
return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001})
var s=n[0],c=n[1],l=0,u=1,d=2
for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=r-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c}
var f=o[0].s
for(i=1;i<r;++i)o[i].s>f&&(f=o[i].s)
var p=new lt(f+1),h=Ot(n[u-1],p,0)
if(h>t){i=0
var g=0,m=h-t,v=1<<m
for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s
if(!(p[y]>t))break
g+=v-(1<<h-p[y]),p[y]=t}for(g>>>=m;g>0;){var b=o[i].s
p[b]<t?g-=1<<t-p[b]++-1:++i}for(;i>=0&&g;--i){var E=o[i].s
p[E]==t&&(--p[E],++g)}h=t}return[new ct(p),h]},Ot=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},jt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new lt(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o
else{if(!r&&o>2){for(;o>138;o-=138)a(32754)
o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304)
o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r)
o=1,r=e[s]}return[n.subarray(0,i),t]},Mt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i]
return n},Nt=function(e,t,n){var i=n.length,r=xt(t+2)
e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1]
for(var o=0;o<i;++o)e[r+o+4]=n[o]
return 8*(r+4+i)},Pt=function(e,t,n,i,r,o,a,s,c,l,u){It(t,u++,n),++r[256]
for(var d=Rt(r,15),f=d[0],p=d[1],h=Rt(o,15),g=h[0],m=h[1],v=jt(f),y=v[0],b=v[1],E=jt(g),k=E[0],_=E[1],T=new lt(19),S=0;S<y.length;++S)T[31&y[S]]++
for(S=0;S<k.length;++S)T[31&k[S]]++
for(var C=Rt(T,7),w=C[0],x=C[1],I=19;I>4&&!w[pt[I-1]];--I);var A,R,O,j,M=l+5<<3,N=Mt(r,Tt)+Mt(o,St)+a,P=Mt(r,f)+Mt(o,g)+a+14+3*I+Mt(T,w)+(2*T[16]+3*T[17]+7*T[18])
if(M<=N&&M<=P)return Nt(t,u,e.subarray(c,c+l))
if(It(t,u,1+(P<N)),u+=2,P<N){A=_t(f,p,0),R=f,O=_t(g,m,0),j=g
var D=_t(w,x,0)
for(It(t,u,b-257),It(t,u+5,_-1),It(t,u+10,I-4),u+=14,S=0;S<I;++S)It(t,u+3*S,w[pt[S]])
u+=3*I
for(var U=[y,k],L=0;L<2;++L){var F=U[L]
for(S=0;S<F.length;++S){var B=31&F[S]
It(t,u,D[B]),u+=w[B],B>15&&(It(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else A=Ct,R=Tt,O=wt,j=St
for(S=0;S<s;++S)if(i[S]>255){B=i[S]>>>18&31,At(t,u,A[B+257]),u+=R[B+257],B>7&&(It(t,u,i[S]>>>23&31),u+=dt[B])
var q=31&i[S]
At(t,u,O[q]),u+=j[q],q>3&&(At(t,u,i[S]>>>5&8191),u+=ft[q])}else At(t,u,A[i[S]]),u+=R[i[S]]
return At(t,u,A[256]),u+R[256]},Dt=new ut([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ut=new ct(0),Lt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1
e[t]=n}return e}(),Ft=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Bt="undefined"!=typeof TextDecoder&&new TextDecoder
try{Bt.decode(Ut,{stream:!0})}catch(er){}function qt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Ht(){try{return qt()&&"keepalive"in new Request("")}catch(e){return!1}}function Gt(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress
i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8")
var o=t
if(r&&"undefined"!=typeof TextEncoder)try{o=function(e,t){t||(t={})
var n=function(){var e=-1
return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Lt[255&n^t[i]]^n>>>8
e=n},d:function(){return~e}}}(),i=e.length
n.p(e)
var r,o,a,s=(r=e,o=t,a=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),function(e,t,n,i,r,o){var a=e.length,s=new ct(i+a+5*(1+Math.ceil(a/7e3))+8),c=s.subarray(i,s.length-8),l=0
if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535
d>=a&&(c[l>>3]=true),l=Nt(c,l+1,e.subarray(u,d))}else{for(var f=Dt[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,m=new lt(32768),v=new lt(g+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},k=new ut(25e3),_=new lt(288),T=new lt(32),S=0,C=0,w=(u=0,0),x=0,I=0;u<a;++u){var A=E(u),R=32767&u,O=v[A]
if(m[R]=O,v[A]=R,x<=u){var j=a-u
if((S>7e3||w>24576)&&j>423){l=Pt(e,c,0,k,_,T,C,w,I,u-I,l),w=S=C=0,I=u
for(var M=0;M<286;++M)_[M]=0
for(M=0;M<30;++M)T[M]=0}var N=2,P=0,D=h,U=R-O&32767
if(j>2&&A==E(u-U))for(var L=Math.min(p,j)-1,F=Math.min(32767,u),B=Math.min(258,j);U<=F&&--D&&R!=O;){if(e[u+N]==e[u+N-U]){for(var q=0;q<B&&e[u+q]==e[u+q-U];++q);if(q>N){if(N=q,P=U,q>L)break
var H=Math.min(U,q-2),G=0
for(M=0;M<H;++M){var V=u-U+M+32768&32767,K=V-m[V]+32768&32767
K>G&&(G=K,O=V)}}}U+=(R=O)-(O=m[R])+32768&32767}if(P){k[w++]=268435456|vt[N]<<18|yt[P]
var W=31&vt[N],z=31&yt[P]
C+=dt[W]+ft[z],++_[257+W],++T[z],x=u+N,++S}else k[w++]=e[u],++_[e[u]]}}l=Pt(e,c,true,k,_,T,C,w,I,u-I,l)}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length)
var i=new(2==e.BYTES_PER_ELEMENT?lt:4==e.BYTES_PER_ELEMENT?ut:ct)(n-t)
return i.set(e.subarray(t,n)),i}(s,0,i+xt(l)+8)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,a)),c=s.length
return function(e,t){var n=t.filename
if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Ft(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8
for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(s,t),Ft(s,c-8,n.d()),Ft(s,c-4,i),s}((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Vt(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Kt,Wt="undefined"!=typeof navigator&&"sendBeacon"in navigator,zt=Ht()?function(e,t,n,i){return new Promise((function(r){fetch(e,Gt({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Gt({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Vt(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Wt){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Gt({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Vt(e)})}))}))}
function Xt(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function Qt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e)
r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}}
var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result
t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}))
return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function Yt(){return Kt||(Kt=Qt("idb-queue","default")),Kt}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null
return e.openKeyCursor().onsuccess=function(){var r=this.result
r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},Xt(e.transaction)}var Jt=!1
function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yt()
return n("readwrite",(function(n){return n.put(e),Xt(n.count()).then((function(e){if(!(e<=t.maxNumber))return $t(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300}
return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt())("readwrite",(function(t){return $t(t,e)}))}(t,n)}))}function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yt()
return Jt?Promise.resolve():Zt(e,t,n)}function tn(e,t,n){return t("readonly",(function(t){var i=[]
return t.openCursor(null,n).onsuccess=function(){var t=this.result
t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},Xt(t.transaction).then((function(){return i}))}))}function nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0
return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function rn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function on(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4}
"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}var sn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
Ue(this,e),Be(this,"config",void 0),Be(this,"compress",void 0),Be(this,"throttleControl",void 0),Be(this,"withStore",void 0),Be(this,"disablePersistence",!1),this.config=t,this.compress=i
var r=t.measureIDB
r&&performance.mark(r.createStartMark),this.withStore=Qt(t.idbName,"beacons","timestamp",{onSuccess:function(){r&&performance.measure(r.createSuccessMeasure,r.createStartMark)},onError:function(){r&&performance.measure(r.createFailMeasure,r.createStartMark),n.disablePersistence=!0}}),this.throttleControl=function(e,t){var n=0
return{throttledFn:function(){var i=Date.now()
i-n>t&&(rn((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}(this.replayEntries.bind(this),t.throttleWait)}return Fe(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){rn((function(){return"Persisting to DB "+e.url})),en(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),rn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,on((function(){return"push failed"}))}))}
this.config.useIdle?an(n):n()}}},{key:"clear",value:function(){var e=this
return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yt()
return Jt=!0,e("readwrite",(function(e){return e.clear(),Xt(e.transaction).finally((function(){return Jt=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,on((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return tn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,on((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return tn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,on((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){rn((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var n=[]
return t.openCursor(null,"next").onsuccess=function(){var t=this.result
t&&(n.push(t.value),t.delete(),(e<0||n.length<e)&&t.continue())},Xt(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount
return rn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),zt(o,a,nn(s,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i
null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,a),e.replayEntries()}else{var r,s,d,f,p,h
if(u+1>e.config.attemptLimit)return rn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(s=e.config).onResult)||void 0===r||r.call(s,t,a))
if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(f=e.config).onResult)||void 0===d||d.call(f,t,a),rn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),en({url:o,body:a,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore)
t.drop=!0,null===(p=(h=e.config).onResult)||void 0===p||p.call(h,t,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&on((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?an(t):t()}}}]),e}(),cn=function(){function e(){Ue(this,e)}return Fe(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),ln=function(){function e(t,n){Ue(this,e),Be(this,"queue",void 0),Be(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new sn(t,n.compress):new cn}return Fe(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}()
Be(ln,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var un=[502,504],dn=[429,503],fn=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
Ue(this,e),Be(this,"url",void 0),Be(this,"body",void 0),Be(this,"config",void 0),Be(this,"persistenceConfig",void 0),Be(this,"compress",void 0),Be(this,"timestamp",void 0),Be(this,"isClearQueuePending",!1),Be(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Fe(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.persistenceConfig.db.onClear(this.onClearCallback)
var n=this.retryLimit
return this.retry((function(t){return zt(e.url,e.body,t,e.compress)}),n,t).finally((function(){rn((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,i){var r=this,o=this.getAttemptCount(t)-1
return e(nn(n,this.config.headerName,o,i)).then((function(i){var o,a,s,c
if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),s=i
else if(rn((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),s={type:"persisted",drop:!1,statusCode:i.statusCode}
else{if(t>0&&r.isRetryableError(i)){var l,u
null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body)
var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t)
return rn((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(s=i).drop=!0}return null===(o=(a=r.config).onIntermediateResult)||void 0===o||o.call(a,s,r.body),s}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}()
function pn(e,t,n){var i=e.get(t)
i&&i.push(n)||e.set(t,[n])}function hn(e,t,n){var i=e.get(t)
i&&i.splice(i.indexOf(n)>>>0,1)}var gn,mn,vn=(gn=new Map,mn=new Map,{on:function(e,t){pn(gn,e,t)},before:function(e,t){pn(mn,e,t)},off:function(e,t){hn(gn,e,t)},offBefore:function(e,t){hn(mn,e,t)},emit:function(e,t){(mn.get(e)||[]).concat(gn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){mn.clear(),gn.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var yn=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||vn.emit("internal:hide",e)}
document.addEventListener("visibilitychange",yn),window.addEventListener("pagehide",yn)}var bn=null
if("undefined"==typeof crypto||!crypto.getRandomValues){var En=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(En){var kn=new Uint8Array(256),_n=kn.length
bn={rng:function(){return _n>kn.length-16&&(En.randomFillSync(kn),_n=0),kn.slice(_n,_n+=16)}}}}var Tn="object"===("undefined"==typeof crypto?"undefined":De(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return function(e){return function(e){var t=Xe(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!Ke(t))throw TypeError("Stringified UUID is invalid")
return t}(e)}(Sn())}
function Sn(){return ot(bn,new Array(16),0)}function Cn(e){return Me(e).map((function(e){return String.fromCharCode(e)})).join("")}function wn(){return Cn(Sn())}var xn=/^[a-zA-Z0-9/+]+[=]+$/
function In(e,t){return{pageUrn:Rn(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r<s;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3
switch(a){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=")
break
case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(Sn())}}function An(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Rn(e){return"urn:li:page:".concat(e)}function On(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function jn(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()}
0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function Mn(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function Nn(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var i="sequenceNumber",r=window.indexedDB.open(i)
return new Promise((function(o,a){r.onupgradeneeded=function(){var e=r.result
e.objectStoreNames.contains(i)||e.createObjectStore(i,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,c=s.transaction(i,"readwrite"),l=c.objectStore(i),u=l.get(1)
u.onsuccess=function(){var i=u.result
if(i){if("read"===e)return o(i)
if("update"!==e)return o(null)
var r,s=Object.assign({},i),c=!1,d=null!==(r=s.sequenceNumber)&&void 0!==r?r:0
if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,i=null!==(t=s[e])&&void 0!==t?t:0,r=n[e]
r>i&&(s[e]=r,c=!0)})),c){var f=l.put(s,1)
f.onsuccess=function(){return o(null)},f.onerror=function(){a(f.error)}}}else{var p={sequenceNumber:0}
n&&Object.keys(n).forEach((function(e){p[e]=0}))
var h=l.add(p)
h.onsuccess=function(){return o(0)},h.onerror=function(){a(h.error)}}},u.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},c.oncomplete=function(){return s.close()}},r.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function Pn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!qt()||"undefined"==typeof Promise}function Dn(e,t){vn.emit("internal:error",{tags:["core-web-tracking:".concat(e)],reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t))})}function Un(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&Ht()&&t&&n}var Ln=function(){function e(t){Ue(this,e),Be(this,"host",void 0),this.host=t}return Fe(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment()
this.host.retryConfig&&function(e,t,n,i,r){"control"!==i&&e.retryConfig&&Un()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase("beacons")
return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}()
var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},l=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:un,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry)
if(t.retryDB)e=t.retryDB
else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:dn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
r.headerName=r.headerName||i.headerName,e=new ln(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s
return qt()?new fn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||dn},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),f=d.beacon,p=d.database
return e.retryBeacon={shouldRetry:!0,beacon:f,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body)
if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Dn("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Dn("retry:setup",e)}))}(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon
if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){Dn("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment()
Ht()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){Dn("retry:beacon",e)}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&(Pn()?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest
if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var a=o[r]
i.setRequestHeader(a,n.headers[a])}i.send(t)}}(e,JSON.stringify(t),{headers:n}):zt(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n
if(!this.host.retryConfig)return"control"
var i=this.host.retryConfig.lixKey
return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t
return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&Un()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),Fn="undefined"!=typeof window&&"undefined"!=typeof document,Bn=/JSESSIONID="?([^";]+)"?/,qn="",Hn=0
function Gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?Bn:i
if(!qn||Date.now()-Hn>n){var o=Fn&&document.cookie.match(r)
qn=o&&o[1]||"",Hn=Date.now()}return qn}var Vn=function(){function e(t){Ue(this,e),Be(this,"networkTransporter",void 0),Be(this,"inactive",void 0),Be(this,"mpName",void 0),Be(this,"endpoint",void 0),Be(this,"debug",void 0),this.networkTransporter=new Ln(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
switch(e){case"https://www.linkedin.com/li/track":t=Wn
break
case"https://www.linkedin-ei.com/li/track/validate":default:n=!0,t=Kn
break
case"https://www.linkedin-ei.com/li/track":t=Kn}return{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return Fe(e,[{key:"fireFragment",value:function(e){var t
if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":Gn(),"x-restli-protocol-version":"2.0.0"},i=[],r=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=r.failures,a=r.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,Me(t.failures)),e}),[]);[].concat(Me(o),Me(a)).forEach((function(e){var t=e.reason,n=e.rawError,r=e.eventTopic,o=e.header,a=e.requestHeader
i.push({reason:t,rawError:n,failedTopicName:r,header:o,requestHeader:a})}))
var s={clientTrackingFailures:i,debug:this.debug}
this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}(),Kn="https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures",Wn="https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"
function zn(e){return"string"==typeof e}function Xn(e){return zn(e)?e:e.topicName||e.eventName}function Qn(e){return zn(e)?e:e.eventName}var Yn,$n,Jn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
Ue(this,e),Be(this,"host",void 0),Be(this,"cmoTransporter",void 0),Be(this,"clientMonitoringInstanceId",wn()),Be(this,"currentContext",{pageKey:"unknown",pageInstance:In("unknown")}),Be(this,"appState",{}),Be(this,"estimatedFragmentSize",0),Be(this,"fragmentSizeLimit",void 0),Be(this,"activeFragmentEvent",void 0),Be(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new Vn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=ei(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Fe(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this
void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring()
var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated
return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId()
t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats
t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,i=je(this.activeFragmentEvent.stats.previousInstanceEventStats)
try{for(i.s();!(n=i.n()).done;){var r=n.value
if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]}
t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:Qn(t),eventTopic:Xn(t)}
this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0
var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent
i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=ei(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0
this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=ti(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=ti(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:wn(),memberId:0}}}}]),e}()
function Zn(e){return Yn||(Yn=new Jn(e)),{getCurrentInstanceId:function(){return Yn.getCurrentInstanceId()},logEventGenerated:function(e){return Yn.logEventGenerated(e)},logEventReadyToSend:function(e){Yn.logEventReadyToSend(e)},logEventSent:function(e){Yn.logEventSent(e)},logPersistedEventSent:function(e,t){Yn.logEventSent(t,e)},logNetworkResponseCode:function(e){Yn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=Yn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Yn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Yn.logFailedEvent(t,n,i,r,e)},flush:function(){Yn.flush()},destroy:function(){Yn=void 0},isDestroyed:function(){return void 0===Yn},setCurrentContext:function(e){Yn.setCurrentContext(e)},updateAppState:function(e){Yn.updateAppState(e)}}}function ei(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:r.requestHeader,header:r.header}}function ti(e){return Array.isArray(e)?Cn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(xn)}(e)?atob(e):Cn(function(e){return Qe(e)}(e))}!function(e){e.NONE="NONE",e.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",e.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",e.RETRIES_EXCEEDED="RETRIES_EXCEEDED",e.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",e.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",e.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"}($n||($n={}))
var ni,ii,ri,oi=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],ai="PageViewEvent",si=function(){function e(t){var n=this
Ue(this,e),Be(this,"host",void 0),Be(this,"queue",void 0),Be(this,"preContextQueue",void 0),Be(this,"debounceTimer",void 0),Be(this,"unloadHandlers",void 0),Be(this,"maxQueueSize",void 0),Be(this,"flushDebounceTime",void 0),Be(this,"trackingEventListeners",[]),Be(this,"onHideHandler",(function(){n.forceFlush()})),Be(this,"networkTransporter",void 0),Be(this,"clientMonitoringConn",void 0),Be(this,"clientGlobalSequenceNumberCounter",void 0),Be(this,"clientTopicLocalSequenceNumberCountersMap",{}),Be(this,"isTimerRunning",void 0),Be(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var i=t.batching
this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,vn.on("internal:hide",this.onHideHandler),this.networkTransporter=new Ln(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Zn(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Fe(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i
if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return
e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logFailedEvent($n.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-1)}))}catch(e){}},onBeforeRetry:function(e){var n
if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return
var i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length
t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i
if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return
var r=i[0].eventBody.header.clientMonitoringInstanceId
e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logPersistedFailedEvent(r,$n.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}})
this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e)
this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(Xn(e.id)))
var n=this.host,i=n.api.Promise,r=n.batching
if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t)
null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1)
var s=Xn(a.id)
if(this.isLixEnabled("pemberly.tracking.generic-event-immediate-fire")&&("GenericActionEvent"===s||"GenericImpressionEvent"===s)){var c=[a]
return this.sendPayload(c),i.resolve(!0)}return this.queue.push(a),r?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))}return this.preContextQueue.push(t),i.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,vn.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(e){var t=this
this.populatePreContextQueue({pageInstance:In("unknown"),pageKey:"unknown"}).forEach((function(n){t.isLixEnabled("pemberly.tracking.even-batch")&&Array.isArray(e)?e.push(n):t.queue.push(n)})),this.isLixEnabled("pemberly.tracking.even-batch")&&Array.isArray(e)&&e.length>0?this.sendPayload(e):this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n
return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this
Nn("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,oi.forEach((function(n){var i
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){Dn("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Nn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Dn("sequence-number:idb-update",e)}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this
"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=On(e.meta.context,this.host.api)
return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,a={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)}
return n.length>0&&this.host.api.assign(a,{clientBreadcrumbs:n}),a}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,f=function(e){return"string"==typeof e?e===ai:e.eventName===ai}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null
"string"!=typeof r&&null!==this.host.locale||(p=r)
var h={interfaceLocale:p,pageKey:f,path:a.pathname+a.search,referer:s.referrer,isFlushOnCloseBrowserTabEnabled:!Pn()&&(Ht()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},g={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:wn(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(g,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var m=Xn(e.id)
if(oi.includes(m)){var v=this.clientTopicLocalSequenceNumberCountersMap[m]
"number"==typeof v&&c(g,{clientTopicLocalSequenceNumber:v})}var y={header:c(g,e.meta.header||{}),requestHeader:c(h,e.meta.requestHeader||{})},b=e.meta.clientMonitoringInstanceId,E=e.meta.clientMonitoringInstanceEventNumber
return b&&c(y.header,{clientMonitoringInstanceId:b,clientMonitoringInstanceEventNumber:E}),c(e.body,y)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue
return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e,t){var n=this
e((function(){n.forceFlush(t)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this.host.api.requestIdleCallback
e||!n?this.sendPayload():Array.isArray(t)&&t.length>0?this.requestFlush(n,t):this.requestFlush(n)}},{key:"batchFire",value:function(){var e=this
if(this.queue.length>this.maxQueueSize)if(this.isLixEnabled("pemberly.tracking.even-batch")){var t=this.queue
this.queue=[],this.flush(!1,t)}else this.flush()
else this.debounceTimer&&clearTimeout(this.debounceTimer),this.isLixEnabled("pemberly.tracking.even-batch")?this.debounceTimer=setTimeout((function(){return e.flush(!0)}),this.flushDebounceTime):this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime)}},{key:"sendPayload",value:function(e){var t,n=this
if(Array.isArray(e)?t=e:(t=this.queue,this.queue=[]),0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3))
var i,r,o=[],a=[]
t.forEach((function(e){var t=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),r=n.envelop(e.id,t,i)
n.trigger(r,e.meta)
var s=r.eventInfo.eventName
if("LixTreatmentsEvent"===s||"JavaScriptErrorEvent"===s?o.push(r):a.push(r),n.enableSequenceNumberLix){"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var c=Xn(e.id)
oi.includes(c)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[c]&&n.clientTopicLocalSequenceNumberCountersMap[c]++}})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(o.length+a.length),r=this.clientMonitoringConn,i={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ")
null==r||r.logFailedEvent($n.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,o,void 0,i),this.networkTransporter.sendPayload(this.host.endpoint,a,void 0,i))}}}]),e}(),ci=function(){function e(t,n){Ue(this,e),this.clientBreadcrumbType=t,this.id=n}return Fe(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.toString()]=n,t}}})
return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}()
function li(e){if(!e)return{}
var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu)
e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0)
var r,o=e.lipi&&function(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi)
if(o?r={pageInstance:o,pageKey:t}:t&&(r={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page)
r={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0
return s&&((r=r||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:r,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function ui(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(ni||(ni={})),Fe((function e(t,n){var i,r
if(Ue(this,e),Be(this,"transporter",void 0),Be(this,"delegate",void 0),Be(this,"currentContext",void 0),Be(this,"appState",void 0),Be(this,"previousAppContext",void 0),Be(this,"customTransporters",void 0),Be(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var a=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[o]=new si(this.transporter.host.api.assign(a,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Zn(t.host))}),[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){ui(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=ui(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return On(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.navMetaFromSeed(e,li(t))
if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t
this.currentContext=On(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(On(e,this.host.api))}},{key:"updateAppState",value:function(e){var t
this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=An(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t}
return r&&r(o),a}),{context:n})}},{key:"fireEvent",value:function(e,t,n,i){if(!t){var r=Xn(e),o=void 0===t?"undefined":null===t?"null":De(t),a='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(o,'"')
if(this.clientMonitoringConn){var s=this.clientMonitoringConn.logEventGenerated(r)
this.clientMonitoringConn.logFailedEvent($n.MISSING_REQUIRED_PROPERTIES,e,a,s)}throw new Error(a)}var c=i||[]
if(c.length>0){var l=c.map((function(e){return ci.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n)
return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=this.generateEnvelope(e,t,n)
return i.length>0?this.addBreadcrumbsToEnvelope(r,i):r}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e
return delete t.clientBreadcrumbType,t}))
return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n
if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(zn(e.id)){var i=e.id
e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0
var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e
if(r){var o=r.meta.transporterKey,a=o?this.customTransporters[o]:this.transporter
if(!a&&o){var s=Xn(r.id),c="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent($n.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return In(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{key:"_firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{context:n})
return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy()
this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),vn.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return An((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t}
return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from
return{previousPageInstance:i&&i.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent"
this.previousAppContext=t.previousContext
var i=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n
return{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t)
o.meta.requestHeader.pageKey=n.pageKey
var a=i&&i.applicationInstance
return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={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:i}}}]),Fe((function e(t,n){var i,r=this
Ue(this,e),Be(this,"core",void 0),Be(this,"protocol",void 0),Be(this,"throttleKeySet",new Set),Be(this,"config",void 0),Be(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),r.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t
var o=this.core.host.api.location.protocol
this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100},vn.on("internal:error",this.reportTransporterError)}),[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,a=void 0===o?"":o,s=r.responseHeaders,c=void 0===s?{}:s,l=e.message,u=e.name,d=e.stack,f=void 0===d?"":d,p=e.fileName,h=void 0===p?"":p,g=e.lineNumber,m=void 0===g?0:g,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,k=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,C=void 0===S?"":S,w=b.api,x=w.Promise,I=w.location,A=I.host,R=I.pathname,O=I.search,j=I.hash,M=void 0===j?"":j
if(c){t={}
var N=new Map
Object.keys(c).forEach((function(e){N.set(e.toLowerCase(),c[e])})),t.callTreeId=N.get("x-li-uuid"),t.microsoftEdgeReference=N.get("x-msedge-ref"),t.pointOfPresenceId=N.get("x-li-pop"),t.fabric=N.get("x-li-fabric")}var P=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:m,m:l,s:f,t:u,u:h},h:M,l:n.protocol,o:A,p:R,pageKey:e.pageKey,q:O,service:_,serviceInstance:T,serviceVersion:k,t:i,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:a,responseTraceHeaders:t}}))}
if(this.config.throttleTime<0)return P()
var D=function(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}(u+l+f+i.join("")+a)
return this.throttleKeySet.has(D)?x.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),P())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),vn.off("internal:error",this.reportTransporterError)}}]),function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix"}(ii||(ii={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent"}(ri||(ri={}))
var di,fi,pi,hi,gi,mi,vi=(Be(Re={},"web-ui-framework","EMBER"),Be(Re,"app-id","linkedin.rum.tracking"),Be(Re,"app-version","unknown"),Be(Re,"is-single-page-app",!0),Be(Re,"user-timing-mark-enabled",!1),Be(Re,"user-timing-measure-enabled",!0),Be(Re,"beacon-source","apps"),Be(Re,"enable-rs-timing",!0),Be(Re,"enable-cdn-tracking",!1),Be(Re,"async-plugins-timeout",5e3),Be(Re,"beacon-timeout",3e4),Be(Re,"enable-memory-measurement",!1),Be(Re,"pageKeyPrefix",""),Re),yi=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],bi={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},Ei={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},ki="rum token passed is invalid",_i=function(){function e(){Ue(this,e),Be(this,"userTimingEntries",[]),Be(this,"longTasks",[]),Be(this,"resourceTimingEntries",[]),Be(this,"cdnData",void 0)}return Fe(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name)
n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(Si),cdnData:this.cdnData}}}]),e}(),Ti=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function Si(e){return Ti.reduce((function(t,n){var i=e[n]
return void 0!==i&&(t[n]=i),t}),{})}function Ci(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=ji(function(e){var t=e.getAttribute("id")
return t&&gi.idName(t)?{name:"#"+Gi(t,{isIdentifier:!0}),penalty:0}:null}(o))||ji.apply(void 0,Me(function(e){return Array.from(e.attributes).filter((function(e){return gi.attr(e.name,e.value)})).map((function(e){return{name:"["+Gi(e.name,{isIdentifier:!0})+'="'+Gi(e.value)+'"]',penalty:.5}}))}(o)))||ji.apply(void 0,Me(function(e){return Array.from(e.classList).filter(gi.className).map((function(e){return{name:"."+Gi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||ji(function(e){var t=e.tagName.toLowerCase()
return gi.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode
if(!t)return null
var n=t.firstChild
if(!n)return null
for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling
return i}(o)
if(t===hi.All)s&&(e=e.concat(e.filter(Oi).map((function(e){return Ri(e,s)}))))
else if(t===hi.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Oi).map((function(e){return Ri(e,s)}))))
else if(t===hi.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o=[],a=!0,s=!1
try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),1!==o.length);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e)||Ne(e,1)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e=e.slice(0,1))[0]
s&&Oi(c)&&(e=[Ri(c,s)])}var l,u=je(e)
try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=gi.seedMinLength&&(i=wi(r,n)))return"break"
o=o.parentElement,a++};o&&o!==gi.root.parentElement&&"break"!==s(););return i||(i=wi(r,n)),i}function wi(e,t){var n=Pi(Ni(e))
if(n.length>gi.threshold)return t?t():null
var i,r=je(n)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(Ai(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function xi(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0
n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function Ii(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Ai(e){switch(mi.querySelectorAll(xi(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(xi(e)))
case 1:return!0
default:return!1}}function Ri(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Oi(e){return"html"!==e.name&&!e.name.startsWith("#")}function ji(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var i=t.filter(Mi)
return i.length>0?i:null}function Mi(e){return null!=e}function Ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,i=[],r=je(e[0])
try{for(r.s();!(n=r.n()).done;){var o=n.value
i=i.concat(Ni(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function Pi(e){return Array.from(e).sort((function(e,t){return Ii(e)-Ii(t)}))}function Di(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[]
if(e.length>2&&e.length>gi.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>gi.maxNumberOfTries)return i
n.counter+=1
var o=Me(e)
o.splice(r,1)
var a=xi(o)
if(n.visited.has(a))return i
Ai(o)&&Ui(o,t)&&(i.push(o),n.visited.set(a,!0),i=i.concat(Di(o,t,n)))}return i}function Ui(e,t){return mi.querySelector(xi(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(di||(di={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(fi||(fi={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(pi||(pi={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(hi||(hi={}))
var Li,Fi=/[ -,\.\/:-@\[-\^`\{-~]/,Bi=/[ -,\.\/:-@\[\]\^`\{-~]/,qi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Hi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function Gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Hi),t)
"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single")
for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s<c;){var l=e.charAt(s++),u=l.charCodeAt(0),d=void 0
if(u<32||u>126){if(u>=55296&&u<=56319&&s<c){var f=e.charCodeAt(s++)
56320==(64512&f)?u=((1023&u)<<10)+(1023&f)+65536:s--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Fi.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&Bi.test(l)?"\\"+l:l
a+=d}return r&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(qi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}function Vi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now()
return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function Ki(e){var t=e||performance
return Math.round(t.now())}function Wi(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.")
if("html"===e.tagName.toLowerCase())return"html"
var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4}
gi=Object.assign(Object.assign({},n),{idName:function(e){return 0!==e.indexOf("ember")}}),mi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(gi.root,n)
var i=Ci(e,hi.All,(function(){return Ci(e,hi.Two,(function(){return Ci(e,hi.One)}))}))
if(i){var r=Pi(Di(i,e))
return r.length>0&&(i=r[0]),xi(i)}throw new Error("Selector was not found.")}(e)}catch(e){return"serialization_error"}var t=Wi(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function zi(e,t,n,i){var r=[]
return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
r.push({entryType:"MEASURE",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:o}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
r.push({entryType:"MARK",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Xi(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var Qi=function(){function e(t){Ue(this,e),Be(this,"hostApis",void 0),Be(this,"hostnameProperties",void 0),Be(this,"usedHostnames",void 0),Be(this,"abortController",void 0),Be(this,"pendingPromises",void 0),this.hostApis=t
var n=t.AbortController
this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return Fe(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return Mn(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,i=n.AbortController,r=n.Promise,o=jn(Mn(this.pendingPromises),r),a=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e)
return o.then((function(){return clearTimeout(a),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this
if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(Li=Li||i.createElement("a")).href=n,Li.hostname)
if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e)
return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}))
this.pendingPromises.add(a)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),Yi=function(){function e(t,n,i,r,o,a,s){Ue(this,e),Be(this,"hostApis",void 0),Be(this,"statics",void 0),Be(this,"options",void 0),Be(this,"allowTimingOrigin",void 0),Be(this,"fireCustomMeasureEvent",void 0),Be(this,"fireResourceLoadEvent",void 0),Be(this,"isTracerLixEnabled",void 0),Be(this,"collectResourceTimings",void 0),Be(this,"collectCdnData",void 0),Be(this,"perfObserver",void 0),Be(this,"renderTimings",new Map),Be(this,"urlToTreeId",new Map),Be(this,"cdnDataProvider",void 0),Be(this,"observables",new _i),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireCustomMeasureEvent=o,this.fireResourceLoadEvent=a,this.isTracerLixEnabled=s,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Qi(t))}return Fe(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Li=Li||t.createElement("a")).href=e,Li.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:Vi(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e)
if(i&&(i.renderEnd=i.renderEnd||Vi(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void Dn("ViewLoadEvent","pageLoadId does not exist")}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,i=e.renderEnd,r=void 0===i?-1:i,o=e.renderStart,a=void 0===o?-1:o,s=[]
return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:r}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance
this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e
null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,i=e.immediate,r=this.collectSynchronousData(n)
if(i)return r
var o=this.collectAsynchronousData()
return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{key:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,i=Object.create(null)
i.pageKey=n,i.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",i.networkInformationMetrics=this.snapshot.networkInformationMetrics
var r=this.statics,o=r.webUIFramework,a=r.timeSource,s=r.isSinglePageApp,c=r.appRenderMode,l=r.isAppRenderFailed,u=r.isFromServiceWorker,d=r.treeId
return i.treeId=d,i.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},i}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null)
t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null)
var i=e.isInitial,r=e.immediate,o=this.hostApis.assign
if(i){var a=Ji(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,l=a.navigationType,u=a.workerStart
s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=l),n.workerStart=null!=u?u:0,yi.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!r){var d=this.collectAsynchronousData()
if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var f=this.collectAsynchronousData(!0)
return o(t.cdnData,f.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,i=e.transferSize,r=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c={}
c.resourceKey=n,c.isNetwork=!!i&&0!==i,c.loadType=r||"unknown",c.timeOrigin=t
var l={},u=this.urlToTreeId.get(n)
u&&(l.resourceTreeId=u)
var d=Ei[o]
l.nextHopProtocol=null!=d?d:"UNKNOWN",l.transferSize=i,l.encodedBodySize=a,l.decodedBodySize=s,c.resourceNetworkContext=l
var f=[]
return Object.keys(bi).forEach((function(t){var n
t in pi&&void 0!==e[t]&&f.push({resourceProgressType:bi[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),c.resourceProgressStates=f,c}},{key:"reset",value:function(){var e
this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,i=t.PerformanceObserver,r=Object.create(null)
return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=zi(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,Ji(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])}
if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData()
n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[]
return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?jn(r,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e,t){var n=this
this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var i=e.entryType,r=e.name,o=e.startTime,a=e.duration
"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:r,measurementType:"MARK",measureProgressStates:[{measureProgressName:r,timestamp:o}]})):"measure"===i?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:o,duration:a}),n.fireCustomMeasureEvent({measurementName:r,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:r,timestamp:o,duration:a}]})):"longtask"===i&&(n.observables.longTasks.push({duration:a,name:r,startTime:o}),n.fireCustomMeasureEvent({measurementName:r,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:r,timestamp:o,duration:a}]}))}))})),this.observables.userTimingEntries=zi(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent)
var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this
e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance
"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){if(this.collectResourceTimings){this.observables.resourceTimingEntries.push(e)
var n=-1!==e.name.indexOf("/li/track")
if(this.isTracerLixEnabled&&!n){var i=this.collectResourceLoadEvent(e,t)
this.fireResourceLoadEvent(i)}}this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""}
return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:Xi(this.renderTimings),networkInformationMetrics:$i(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function $i(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 Ji(e){if(!e)return{navigationTimingApi:!1}
var t=Object.create({})
if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0]
n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var i=e.timing,r=e.navigation
return i&&r?(t.navigationTimingApi=!0,yi.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var Zi=function(){function e(t,n,i){Ue(this,e),Be(this,"featureName",void 0),Be(this,"trackingCore",void 0),Be(this,"rumConfig",void 0),Be(this,"observing",!1),Be(this,"basePageTreeId",void 0),Be(this,"startPageInstance",void 0),Be(this,"startMemory",void 0),Be(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Fe(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory()
i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||In("unknown"),this.startMemory=i,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:Ki(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize
return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}()
Be(Zi,"checkpoints",[1,3,10,30,90,180,300])
var er,tr,nr,ir,rr,or=Fe((function e(t,n,i){Ue(this,e),Be(this,"webUIFramework",void 0),Be(this,"timeSource",void 0),Be(this,"isSinglePageApp",void 0),Be(this,"appRenderMode",void 0),Be(this,"isAppRenderFailed",void 0),Be(this,"pageLoadMode","INITIAL"),Be(this,"isSSL",void 0),Be(this,"treeId",void 0),Be(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),ar=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},sr=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return
var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}))
return n.observe({type:e,buffered:!0}),n}}catch(e){}},cr=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))}
addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},lr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},ur=function(e,t,n){var i
return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},dr=-1,fr=function(){return"hidden"===document.visibilityState?0:1/0},pr=function(){cr((function(e){var t=e.timeStamp
dr=t}),!0)},hr=function(){return dr<0&&(dr=fr(),pr(),lr((function(){setTimeout((function(){dr=fr(),pr()}),0)}))),{get firstHiddenTime(){return dr}}},gr=!1,mr=-1,vr=function(e,t){gr||(function(e,t){var n,i=hr(),r=ar("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:sr("paint",o);(a||s)&&(n=ur(e,r,t),a&&o(a),lr((function(i){r=ar("FCP"),n=ur(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){mr=e.value})),gr=!0)
var n,i=function(t){mr>-1&&e(t)},r=ar("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1]
o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>r.value&&(r.value=o,r.entries=a,n())}},c=sr("layout-shift",s)
c&&(n=ur(i,r,t),cr((function(){c.takeRecords().map(s),n(!0)})),lr((function(){o=0,mr=-1,r=ar("CLS",0),n=ur(i,r,t)})))},yr={passive:!0,capture:!0},br=new Date,Er=function(e,t){er||(er=t,tr=e,nr=new Date,Tr(removeEventListener),kr())},kr=function(){if(tr>=0&&tr<nr-br){var e={entryType:"first-input",name:er.type,target:er.target,cancelable:er.cancelable,startTime:er.timeStamp,processingStart:er.timeStamp+tr}
ir.forEach((function(t){t(e)})),ir=[]}},_r=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(){Er(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,yr),removeEventListener("pointercancel",i,yr)}
addEventListener("pointerup",n,yr),addEventListener("pointercancel",i,yr)}(t,e):Er(t,e)}},Tr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,_r,yr)}))},Sr=function(e,t){var n,i=hr(),r=ar("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=sr("first-input",o)
n=ur(e,r,t),a&&cr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&lr((function(){var i
r=ar("FID"),n=ur(e,r,t),ir=[],tr=-1,er=null,Tr(addEventListener),i=o,ir.push(i),kr()}))},Cr={},wr=function(e,t){var n,i=hr(),r=ar("LCP"),o=function(e){var t=e.startTime
t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},a=sr("largest-contentful-paint",o)
if(a){n=ur(e,r,t)
var s=function(){Cr[r.id]||(a.takeRecords().map(o),a.disconnect(),Cr[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),cr(s,!0),lr((function(i){r=ar("LCP"),n=ur(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Cr[r.id]=!0,n(!0)}))}))}))}},xr=["LCP","FID","CLS"],Ir={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Ar={},Rr=function(){var e
if(!Fn)return""
var t=window.performance,n=void 0
if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Or=!1,jr=new Set,Mr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function Nr(){var e=!0===window.__test__resetWebVitalsState
if(!Or||e){e&&(jr=new Set),xr.forEach(Pr)
var t=Symbol()
rr=t,[wr,Sr,vr].forEach((function(e){return e(Dr.bind(null,t),!0)})),[wr,Sr,vr].forEach((function(e){return e(Ur.bind(null,t))})),Or=!0}}function Pr(e){Ar[e]={name:e,value:-1,updateHistory:[]}
var t=Mr[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Ar[e].value=-2)}function Dr(e,t){if(e===rr){var n=Ar[t.name],i=Ki()
n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),jr.forEach((function(e){return e(t,i,!1)}))}}function Ur(e,t){e===rr&&jr.forEach((function(e){return e(t,Ki(),!0)}))}var Lr=function(){function e(t,n){var i=this
Ue(this,e),Be(this,"basePageTreeId",void 0),Be(this,"basePageKey",void 0),Be(this,"observing",!1),Be(this,"appContextMap",new Map),Be(this,"rumConfig",void 0),Be(this,"trackingCore",void 0),Be(this,"onMetricUpdate",(function(e,t,n){var r
i.observing&&(n?i.reportMetric(e.name):i.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=i.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return Fe(e,[{key:"startObserving",value:function(){var e,t,n=this
Nr(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",xr.forEach((function(e){var t;-2===(null===(t=Ar[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,jr.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,jr.delete(e)}},{key:"reportMetric",value:function(e){var t=Ar[e],n={name:Ir[e]||e}
"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value)
var i=Ar[e]
if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Rr},a=null
switch(n.name){case"LCP":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],a={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Wi(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)}
return o.url&&(a.url=o.url),a}(n,i)
break
case"FID":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1]
return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Wi(o.target)}}(n,i)
break
case"CLS":a=function(e,t){if(0===e.updateHistory.length)return null
var n=e.updateHistory.map((function(e){return e.data.entries})).flat()
if(0===n.length)return null
var i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null
i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})))
var a,s=t.get(r.time)
return o&&s?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":Wi(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(a){var s={}
return r(s,o,a),s}return o}(this.basePageTreeId,this.basePageKey,i,this.appContextMap,this.trackingCore.host.api.assign)
n.metadata=function(e){var t={}
return Object.keys(e).forEach((function(n){var i=e[n]
t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(r)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}()
Fe((function e(t,n,i){var r,o
Ue(this,e),Be(this,"core",void 0),Be(this,"config",void 0),Be(this,"collector",void 0),Be(this,"boomerangStart",-1),Be(this,"webVitalsObserver",void 0),Be(this,"appMemoryObserver",void 0),Be(this,"pageMemoryObserver",void 0),Be(this,"liveTokens",new Set),Be(this,"stateWM",new WeakMap),Be(this,"activeToken",void 0),Be(this,"isInitial",void 0),Be(this,"shouldTrackCustomMeasureEvent",void 0),Be(this,"pageLoadId",void 0),Be(this,"initialResourcesEvents",[]),Be(this,"initialCustomMeasureEvents",[]),Be(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),Be(this,"fireCustomMeasureEventBound",this.fireCustomMeasureEvent.bind(this)),Be(this,"fireResourceLoadEventBound",this.fireResourceLoadEvent.bind(this)),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n])
return e}(i.host.api.assign({},vi),n)
var a="enabled"===(null===(r=(o=this.core.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time"))
this.collector=new Yi(i.host.api,new or(t,this.config,i.host),this.config,a,this.fireCustomMeasureEventBound,this.fireResourceLoadEventBound,this.isTracerLixEnabled),this.collector.startObserving(),vn.before("internal:hide",this.beforeHideHandlerBound)}),[{key:"isTracerLixEnabled",get:function(){var e,t
return"enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.generic-tracers"))}},{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){var t=this.collector.recordRenderEnd(e,this.isTracerLixEnabled,this.pageLoadId)
t&&this.isTracerLixEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},t)}},{key:"start",value:function(){var e,t
this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset()
var n,i=Object.create(null),r="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"))
return this.activeToken=i,this.liveTokens.add(i),this.stateWM.set(i,{isInitial:this.isInitial,startTime:Vi(this.core.host.api.performance,r)}),this.config["enable-memory-measurement"]&&(null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.pageMemoryObserver=new Zi("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Zi("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Lr(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0
if(e&&this.activeToken&&this.activeToken===e){var a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=Vi(this.core.host.api.performance,s)
a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o}
var l=this.activeToken
a.fireRumEventTimeout=setTimeout((function(){if(i.isTracerLixEnabled){var e=i.collector.collectPageLoadEndData({isInitial:a.isInitial})
"then"in e?e.then((function(e){i.firePageLoadEndEvent(e,l)})):i.firePageLoadEndEvent(e,l)}var t=i.collector.collect({isInitial:a.isInitial})
"then"in t?t.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(t,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else Dn("rum-end",ki)}},{key:"firePageLoadStartEvent",value:function(e,t){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0
var n=this.stateWM.get(e)
this.pageLoadId=wn()
var i=this.collector.collectPageLoadStartData({isInitial:n.isInitial,rumKey:t})
i.pageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},i)}else Dn("PageLoadStartEvent",ki)}},{key:"destroy",value:function(){var e,t,n
vn.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t
if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid")
if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended")
this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this
this.liveTokens.forEach((function(t){var n=e.stateWM.get(t)
if(n.endProps){if(e.isTracerLixEnabled){var i=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0})
e.firePageLoadEndEvent(i,t)}var r=e.collector.collect({isInitial:n.isInitial,immediate:!0})
e.fireRumEvent(r,t)}}))}},{key:"firePageLoadEndEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps
if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey
if(e.pageLoadId=this.pageLoadId,e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=s),e.navigationTiming){var l,u=null===(l=e.navigationTiming)||void 0===l?void 0:l.navigationStart,d=this.boomerangStart=u||this.boomerangStart,f=u||r,p=a-f
e.navigationTiming.boomerangStart=d,e.navigationTiming.timeDone=p,e.navigationTiming.navigationStart=f,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:c||t.pageKey},e)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this
if(this.isTracerLixEnabled&&this.shouldTrackCustomMeasureEvent){if(!this.pageLoadId)return void this.initialCustomMeasureEvents.push(e)
this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=t.pageLoadId,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{key:"fireResourceLoadEvent",value:function(e){var t=this
if(this.isTracerLixEnabled){if(!this.pageLoadId)return void this.initialResourcesEvents.push(e)
this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=t.pageLoadId,t.core.fireEvent({appId:t.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=this.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps
if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=a-u,f=this.config["app-version"]
this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:s,appVersion:f,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:a},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])
var Fr="undefined"!=typeof window&&"undefined"!=typeof performance,Br="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG")
Fe((function e(t,n){Ue(this,e),Be(this,"trackingCore",void 0),Be(this,"endPageInstance",void 0),Be(this,"startPageInstance",void 0),Be(this,"featureIdentifier",void 0),Be(this,"marks",[]),Be(this,"spans",[]),Be(this,"spanStarts",new Map),Be(this,"started",!1),Be(this,"ended",!1),Be(this,"featureKey",void 0),Be(this,"productName",void 0),Be(this,"flushOnEnd",void 0),Be(this,"basePageTreeId",void 0),Be(this,"debounceFlush",void 0),Be(this,"disableAutoFlush",void 0),Be(this,"isCanceled",!1),Be(this,"isClosed",!1),this.trackingCore=t
var i=n.featureKey,r=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd
this.featureKey=i,this.productName=r,this.flushOnEnd=a
var s=r?"::".concat(r):""
this.featureIdentifier="".concat(i).concat(s)
var c=void 0!==o?o:3e3
c>0&&(this.debounceFlush=function(e,t,n){var i,r,o
void 0===t&&(t=50),void 0===n&&(n={})
var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[]
function d(){if(void 0!==c){var e=Date.now()-l
if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),n=this
return new Promise((function(i,r){var c=a&&void 0===o
if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t)
s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var f=e.apply(n,t)
return s&&s(f),i(f)}u.push({resolve:i,reject:r})}))}
return f.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},f}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}),[{key:"start",value:function(e){var t
if(Fr){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"))
this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t
if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'))
if(Fr){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"))
this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){Fr&&(this.marks.push({name:e,startTime:Ki()}),Br&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))),this.handleNewData())}},{key:"spanStart",value:function(e){Fr&&(this.spanStarts.set(e,Ki()),Br&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Fr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e
this.spans.push({name:i,startTime:n,duration:Ki()-n}),Br&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end"))),this.handleNewData()}}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return Ki()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}}
this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||In("unknown"),i={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans}
return e.productName&&(i.productName=e.productName),e.basePageTreeId&&(i.basePageTreeId=e.basePageTreeId),i}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(Fr){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'))
if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'))}}}])
const qr=new Map
function Hr(e,t,n){if(e)return Object.freeze(Object.create(null))
if("query"===t.kind||"mutation"===t.kind||"subscription"===t.kind){const e=t
if(e.ast)return Object.assign(Object.create(null),e.ast,n)}return Object.freeze(Object.assign(Object.create(null),n))}function Gr(e,t){let n
return n=e?Hr(!0,t):"query"===t.kind||"mutation"===t.kind?Hr(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):Hr(!1,t,{$debug:{name:t.name,kind:t.kind}}),qr.set(n,t),n}Gr(!0,{kind:"query",id:"messengerConversations.18240d6a3ac199067a703996eeb4b163",typeName:"com.linkedin.a48779e96d56416b455684d54ca0a605",name:"find-conversations-by-category"}),Gr(!0,{kind:"query",id:"messengerConversations.96e683c3efa1e8a708bfa4b078b9f9e8",typeName:"com.linkedin.e8f9114c687e26ae0f6bb2f3aed7022e",name:"find-conversations-by-category-with-draft-messages"}),Gr(!0,{kind:"query",id:"messengerConversations.e75894f1094ac55cbd53d2482301efdc",typeName:"com.linkedin.d1fb3489010b7b4592896e7b73531a11",name:"find-conversations-by-category-v2"}),Gr(!0,{kind:"query",id:"messengerConversations.09995bad1c3b51bdf60c10a49ae874f0",typeName:"com.linkedin.637753efb2e5d51c7275035cac9b4c5f",name:"find-conversations-by-recipients"}),Gr(!0,{kind:"query",id:"messengerConversations.ed4d5c0207c43aacf839593ab5ff13bd",typeName:"com.linkedin.acb9c77ea9ee4824540470a52e862cb6",name:"find-conversations-by-recipients-with-draft-messages"}),Gr(!0,{kind:"query",id:"messengerConversations.755b19e066ebdfc4c70db8b2aaae855e",typeName:"com.linkedin.c3d42ec0291728dbe7f3aced6f0826e5",name:"find-conversations-by-search-criteria"}),Gr(!0,{kind:"query",id:"messengerConversations.efaabe6331e9716dc6b5f567254dbafc",typeName:"com.linkedin.2ea17ec4179cae6d69aea80ad2907b8e",name:"find-conversations-by-search-criteria-with-draft-messages"}),Gr(!0,{kind:"query",id:"messengerConversations.9dcca8beeb2ea48b1bff937044631888",typeName:"com.linkedin.47459727fe9dc4c6dd28af91d35c3bea",name:"get-conversation-by-id"}),Gr(!0,{kind:"query",id:"messengerMessages.86ca573adc64110d94d8bce89c5b2f3b",typeName:"com.linkedin.5ead02a2479291ebdce3f63ac66fbe93",name:"get-messages-by-conversation"}),Gr(!0,{kind:"query",id:"messengerMessages.b52340f92136e74c2aab21dac7cf7ff2",typeName:"com.linkedin.f06a0d9d67201ccfd952b77289ff240e",name:"get-messages-by-timestamp"}),Gr(!0,{kind:"query",id:"messengerConversations.505de15f09a5f6be71ef7c56bb71ba21",typeName:"com.linkedin.2a7f21c8d98d18e3a6c802f0dd8d222d",name:"get-conversations-by-ids"}),Gr(!0,{kind:"query",id:"messengerConversationDrafts.d19a3ea50431c01d3df9493fc43eb62a",typeName:"com.linkedin.27e9b28448d52f2ed882cf44acde8e93",name:"get-conversation-drafts-by-id"}),Gr(!0,{kind:"query",id:"messengerConversations.8ba26b86da7e0c5f406095d6196eae66",typeName:"com.linkedin.5f8e1fc75eaa830e76c6ee84eb4d68f1",name:"get-conversations-by-ids-with-draft-messages"}),Gr(!0,{kind:"query",id:"messengerMessages.efbf9631bdca42f8c171c32092848c31",typeName:"com.linkedin.9103982cbb84a6713a12118e18d0aede",name:"get-messages"}),Gr(!0,{kind:"query",id:"messengerMessageDrafts.8dbc5f0f18aba6d9acac2c0194a58db1",typeName:"com.linkedin.6f29433b666b615cc843d0c53e498d90",name:"get-message-draft"}),Gr(!0,{kind:"query",id:"messengerMailboxCounts.fc528a5a81a76dff212a4a3d2d48e84b",typeName:"com.linkedin.7455e0e579fcb3a34f96eb0eefe7a411",name:"get-mailbox-unreadcounts"}),Gr(!0,{kind:"query",id:"messengerQuickReplies.4338d226319203b5b08920ab7621fa45",typeName:"com.linkedin.4c7816368899aefc0404a81a21b89aad",name:"get-quick-replies-by-conversation"}),Gr(!0,{kind:"query",id:"messengerMessagingParticipants.3d2e0e93494e9dbf4943dc19da98bdf6",typeName:"com.linkedin.17d2b5b00f250b93fa250e00473c98a2",name:"get-reactors-by-message-and-emoji"}),Gr(!0,{kind:"query",id:"messengerSeenReceipts.3da5d9d9417daedffff3cfde60becab4",typeName:"com.linkedin.33851ce67c1a444c09e057014b5c4d81",name:"get-seen-receipts-by-conversation"}),Gr(!0,{kind:"query",id:"messengerConversations.95e0a4b80fbc6bc53550e670d34d05d9",typeName:"com.linkedin.bc13e1b1426cc03e36eab503d342cabe",name:"initial-sync-conversations"}),Gr(!0,{kind:"query",id:"messengerConversations.0fd27f53c2a17c81a3c2370c94ab3068",typeName:"com.linkedin.32b55b4f3ec7108778d6b970a11c60bb",name:"initial-sync-conversations-with-draft-messages"}),Gr(!0,{kind:"query",id:"messengerConversations.33c5bfbf15b112da638fee15f77f5e33",typeName:"com.linkedin.2a25dae6962f40be897d5ffe00289c5c",name:"mark-all-conversations-as-read"}),Gr(!0,{kind:"query",id:"messengerMessageDrafts.8fea470348f83688b21512cc20d05b3d",typeName:"com.linkedin.0744c9008c1be0c2e872c8b3c1f08b6b",name:"message-draft-by-conversation-batch"}),Gr(!0,{kind:"query",id:"messengerConversations.be2479ed77df3dd407dd90efc8ac41de",typeName:"com.linkedin.13baefbc2d95f2e6498312456b544fc4",name:"sync-conversations"}),Gr(!0,{kind:"query",id:"messengerMessages.d1b494ac18c24c8be71ea07b5bd1f831",typeName:"com.linkedin.c38c518a13ae3dfabbd000dba2c1323a",name:"sync-messages"}),Gr(!0,{kind:"query",id:"messengerMessages.c39c8e026ce8f44ac80d1fef7f71506b",typeName:"com.linkedin.d517c530e9e9e6efa128b8e0e66d8226",name:"sync-messages-by-convo-id-in-batch"}),Gr(!0,{kind:"query",id:"messengerMailboxRealtimeSubscriptionAuthorizationTokens.1a3b0efc0a0a2c24c23367b5f8a25e62",typeName:"com.linkedin.606462b788cb71b5e1a280f01897a453",name:"realtime-subscription-auth-tokens"}),Gr(!0,{kind:"mutation",id:"messengerMessageDrafts.2cf9ab96f9203dcfb41c51cc8a81d024",typeName:"com.linkedin.755dfb6105c9f45ad1ddc0ab8f011f1c",name:"create-message-draft"}),Gr(!0,{kind:"query",id:"messengerConversationDrafts.36aad1f556e3376af70bbf31e391709b",typeName:"com.linkedin.7fc0da333aea2c9354131839f14b2f90",name:"find-conversation-drafts-by-recipients"}),Gr(!0,{kind:"query",id:"messengerMessageDrafts.19d8902475719ed35c12be6a79708155",typeName:"com.linkedin.f40d5176dd6d2c81ad2a5c8194778353",name:"get-message-drafts-by-mailbox"})
var Vr,Kr=function(){return Tn()}
Vr=Symbol.iterator
var Wr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
a(this,e),l(this,"_idx",0),l(this,"_messages",void 0),l(this,"_clientIdIndex",void 0),l(this,"_entityUrnIndex",void 0),this._messages=function(e){return e.slice().sort((function(e,t){return"Delivered"===e.status&&"Delivered"!==t.status?-1:"Delivered"!==e.status&&"Delivered"===t.status?1:e.deliveredAt.getTime()-t.deliveredAt.getTime()}))}(t),this._clientIdIndex=new Map(t.map((function(e){return[e.clientId,e]}))),this._entityUrnIndex=new Map(t.filter(H).map((function(e){return[e.entityUrn,e]})))}return c(e,[{key:"length",get:function(){return this._messages.length}},{key:"at",value:function(e){if(e>=0&&e<this._messages.length)return this._messages[e]
throw new Error("Index out of bounds")}},{key:"getByIdentifier",value:function(e){return ne(e)?this._entityUrnIndex.get(e):this._clientIdIndex.get(e)}},{key:"next",value:function(){return this._idx<this._messages.length?{done:!1,value:this._messages[this._idx++]}:(this._idx=0,{done:!0,value:null})}},{key:"first",value:function(){try{return this.at(0)}catch(e){return}}},{key:"last",value:function(){try{return this.at(this.length-1)}catch(e){return}}},{key:Vr,value:function(){return this}},{key:"map",value:function(e){return Array.from(this,e)}},{key:"updateAny",value:function(t,n){return new e(L(t,n)(this._messages))}},{key:"updateByUrn",value:function(t,n){return this._entityUrnIndex.has(t)?new e(F(he(t),ye(n))(this._messages)):this}},{key:"updateByClientId",value:function(t,n){if(this._clientIdIndex.has(t)){var i=F((r=t,function(e){return e.clientId===r}),ye(n))(this._messages)
return new e(i)}var r
return this}},{key:"add",value:function(t){var n=this,i=t.filter(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}(z,Se(this._entityUrnIndex,this._clientIdIndex))).map((function(e){return n._clientIdIndex.has(e.clientId)?r(r({},e),{},{clientId:Kr()}):e})),o=t.filter(Se(this._entityUrnIndex,this._clientIdIndex)).map((function(e){return ye(e)(n.getByIdentifier(e.entityUrn||e.clientId))})),a=new Map(o.map((function(e){return[e.clientId,!0]}))),s=this._messages.filter((function(e){return!a.has(e.clientId)}))
return new e([].concat(v(s),v(o),v(i)))}},{key:"removeByClientId",value:function(t){var n=this._messages.filter((function(e){return e.clientId!==t}))
return[this._clientIdIndex.get(t),new e(n)]}},{key:"removeByUrns",value:function(t){var n=this._messages.filter((function(e){return!e.entityUrn||!t.has(e.entityUrn)}))
return new e(n)}}]),e}(),zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Local",n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,l=new Date(Date.now()),u=c?new Date(c):l
return r({clientId:null!=a?a:Kr(),content:null!=n?n:{text:"",attributes:[]},lastEditedAt:u,optionalSendData:null!=i?i:{renderContent:[]},senderUrn:e,status:t,subject:o},s&&{entityUrn:s})},Xr=function(e){var t,n=new Date
return{clientId:e.clientId,content:e.content,optionalSendData:e.optionalSendData,lastEditedAt:null!==(t=e.lastActivityAt)&&void 0!==t?t:n,senderUrn:e.senderUrn,actorUrn:e.actorUrn,status:"Local"}}
const Qr=Symbol.for("_DATA_EDEN_TRACKING_INFO_PER_FETCH");(()=>{let e=globalThis,t=e[Qr]
t||(t=e[Qr]=new WeakMap)})()
var Yr={exports:{}},$r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if($r){var Jr=new Uint8Array(16)
Yr.exports=function(){return $r(Jr),Jr}}else{var Zr=new Array(16)
Yr.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),Zr[t]=e>>>((3&t)<<3)&255
return Zr}}for(var eo=Yr.exports,to=[],no=0;no<256;++no)to[no]=(no+256).toString(16).substr(1)
var io,ro,oo=function(e,t){var n=t||0,i=to
return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")},ao=eo,so=oo,co=0,lo=0,uo=eo,fo=oo,po=function(e,t,n){var i=t&&n||0
"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null)
var r=(e=e||{}).random||(e.rng||uo)()
if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var o=0;o<16;++o)t[i+o]=r[o]
return t||fo(r)},ho=po
ho.v1=function(e,t,n){var i=t&&n||0,r=t||[],o=(e=e||{}).node||io,a=void 0!==e.clockseq?e.clockseq:ro
if(null==o||null==a){var s=ao()
null==o&&(o=io=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=ro=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:lo+1,u=c-co+(l-lo)/1e4
if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>co)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
co=c,lo=l,ro=a
var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296
r[i++]=d>>>24&255,r[i++]=d>>>16&255,r[i++]=d>>>8&255,r[i++]=255&d
var f=c/4294967296*1e4&268435455
r[i++]=f>>>8&255,r[i++]=255&f,r[i++]=f>>>24&15|16,r[i++]=f>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a
for(var p=0;p<6;++p)r[i+p]=o[p]
return t||so(r)},ho.v4=po
var go=ho
const mo="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions"
class vo{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class yo extends vo{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const n=[]
t.featureCallCounts.forEach((e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const i={header:{},requestHeader:{},time:Date.now(),metrics:n}
this._fireEventCallback("FeatureDegradationMetricEvent",i,t.pageInstance,e)}))}}class bo{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class Eo{constructor(e){this.featureMetricIdentifier=e}}function ko(e){return JSON.stringify(e,Object.keys(e).sort())}class _o extends bo{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const n=ko(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const i=new To(e)
t(i),this.featureCallCounts.set(n,i)}}}class To extends Eo{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class So{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class Co extends So{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t)
void 0!==n?e.featureCallCounts.forEach(((e,i)=>{var r
let o=n.featureCallCounts.get(i)
void 0!==o?o=o.mergeCallCounts(e):null===(r=this.metrics.get(t))||void 0===r||r.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=ko(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const i=new _o(e)
t(i),this.metrics.set(n,i)}}}var wo
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(wo||(wo={}))
const xo=new Set(Object.values(wo))
class Io extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Io.prototype)}}function Ao(e){return 0===e.length||!e.trim()}function Ro(e){if("string"!=typeof e)throw new Io(`The product name must be a string. ${mo}.`)
if(Ao(e))throw new Io(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${mo}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new Io(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${mo}.`)
return e}function Oo(e){if("string"!=typeof e)throw new Io(`Keys must be strings. ${mo}.`)
if(Ao(e))throw new Io(`Keys should not be blank. ${mo}.`)
if(/[^a-z0-9-]/.test(e))throw new Io(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${mo}.`)
return e}class jo{constructor(e,t,n){var i,r,o
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Oo(e),this._defaultDegradationKey=Oo(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new Io(`DegradationTrackingMetadata options should be an object. ${mo}.`)
const a=n.productName
a&&(this._productName=Ro(a))
const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes
!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new Io(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${mo}.`)
var n
if(429===e||999===e)throw new Io(`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 ${t} options.`)
if(t===wo.NonDegradedResponseCodes&&e>=400&&e<500)throw new Io(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${wo.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${wo.NonDegradedResponseCodes} option. ${mo}.`)}
if(void 0!==e&&!Array.isArray(e))throw new Io(`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 ${wo.NonDegradedResponseCodes} option. ${mo}.`)
if(void 0!==t&&!Array.isArray(t))throw new Io(`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 ${wo.AdditionalDegradedResponseCodes} option. ${mo}.`)
null==e||e.forEach((e=>n(e,wo.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,wo.AdditionalDegradedResponseCodes)))
const i=new Set(t),r=new Set(e)
if([...i].some((e=>r.has(e))))throw new Io(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${mo}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach((e=>{if(!xo.has(e))throw new Io(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${mo}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(jo.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class Mo{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new Co,this._lastRequestMetricStore=new Co,this._requestsMade=0,this._trackingId=go.v4()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Mo.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}class No extends jo{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===No.name}}class Po{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!Mo.isRetryableDegradationTrackingMetadata(e)&&!jo.isDegradationTrackingMetadata(e)&&!No.isFailureTrackingMetadata(e))throw new Io("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new Io("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let n=jo.isDegradationTrackingMetadata(e)?e:void 0
Mo.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}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}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,n=this._nonDegradedResponseCodes.has(e)
return!t&&!n}shouldImpactAvailability(e,t,n){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new Io(`You attempted to specify ${e} as an additional degraded response code for the '${this.featureKey}' feature, however it is also specified in the non-degraded response codes for that feature. Please decide whether you want to consider ${e} responses a degraded state or not. ${mo}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new Io(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${mo}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new Io(`A degradation key override was specified for ${t}, 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(t,e.degradationKey)}))}))}}class Do{constructor(e){const t=new Map
null==e||e.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get("x-li-uuid")||null,this._pointOfPresenceId=t.get("x-li-pop")||null,this._msEdgeRef=t.get("x-msedge-ref")||null,this._fabric=t.get("x-li-fabric")||null,this._responseMetadata=t.get("x-li-pem-resp-meta")||null,this._downstreamAvailability=function(e){if(null==e)return null
const t=e.split(",")
for(const e of t){const t=e.split("=",2)
if(2===t.length&&"availability"===t[0]){const e=parseFloat(t[1])
if(e>=0&&e<=1)return e}}return null}(this._responseMetadata)||1}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}class Uo{constructor(e,t,n,i){this._responseCode=e||null,this._parsedResponseHeaders=t?new Do(t):new Do,this._responseError=n||null,this._downstreamServiceErrorCode=i}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const Lo="undefined"==typeof FastBoot
class Fo{constructor(e,t,n){this._featureMetricStore=new Co,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new yo(this._featureMetricStore,t),Lo&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),6e4),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,i,r){let o,a=null
const s=new Map,c=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),i.then((e=>{a=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),!1===e.ok&&(o=e)})).catch((e=>{throw o=e,e})).finally((()=>{this._trackResponse(e,a,t,c,r,s,o)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,i,r,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 l=o?null:t,u=this._createFailureProcessingMetadata(i)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,u,r,c,l)}startRetryFlow(e){return Fo.startRetryFlow(e)}static startRetryFlow(e){return new Mo(e)}completeRetryFlow(e){if(!Mo.isRetryableDegradationTrackingMetadata(e))throw new Io("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,i,r,o,a){const s=new Uo(t,o,a),c=s.parsedHeaders,l=function(e){const t=e.responseError,n=e.parsedHeaders,i=e.responseCode
if(i){if(429===i||999===i)return"TOO_MANY_REQUESTS"
if(n&&!n.hasAnyLinkedInHeaders()&&i&&i>=400&&i<600)return"BLOCKED_BY_CLIENT_PROXY"
if((r=i)>=400&&r<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(i)
if(function(e){return e>=500&&e<600}(i))return function(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}(n)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(i,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var r
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}(s),u=function(e,t){if(!e.includes("/"))return e
const n=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),i=n.split("/").filter((e=>e.length))
if(!t.length)return i.join("/")
const r=[]
for(let e=i.length-1;e>=0;e--){const n=i[e],o=t.indexOf(n)
o>=0?t.splice(o,1):r.push(n)}return r.reverse().join("/")}(e,n),d=new Set,f=new Set
if(i.forEach((e=>{d.add(e.productName),f.add(e.featureKey)
const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(l)&&(e.isCountedAgainstAvailability(l,t)?(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:l,responseFabric:c.fabric},r,function(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}(l,c)):(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},r))})),l){this._reportErrorIfUnclassified(a,l,t,d,f)
const e=function(e,t,n,i){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const r=[],o=i.responseCode
return t.forEach((t=>{const a=t.getDegradationKey(o),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,o),c={endpointPath:e,degradationKey:a,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:i.downstreamServiceErrorCode}
o&&(c.responseCode=o)
const l=i.parsedHeaders
l.callTreeId&&(c.responseCallTreeId=l.callTreeId),(null==l?void 0:l.pointOfPresenceId)&&(c.pointOfPresenceId=l.pointOfPresenceId),(null==l?void 0:l.microsoftEdgeReference)&&(c.microsoftEdgeReference=l.microsoftEdgeReference),(null==l?void 0:l.fabric)&&(c.fabric=l.fabric),Mo.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),r.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})})),r}(u,i,l,s)
e.forEach((e=>{this._fireEventCallback("FeatureDegradeEvent",e,r)}))}}_reportErrorIfUnclassified(e,t,n,i,r){var o
if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["noise","pem-unclassified-error"]
let n
i.forEach((e=>t.push(`pem-product-${e}`))),r.forEach((e=>t.push(`pem-feature-${e}`))),n=e instanceof Error?e:new Error(`Could not classify jQuery response: ${JSON.stringify(e)}`),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new Io(`Please specify a non-empty array of degradation tracking metadata. ${mo}.`)
const t=new Set
return e.map((e=>{if(!jo.isDegradationTrackingMetadata(e)&&!Mo.isRetryableDegradationTrackingMetadata(e))throw new Io(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${mo}.`)
const n=Ro(e.productName||this._defaultProductName),i=`${n}!!${e.featureKey}`
if(t.has(i))throw new Io("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(i),new Po(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new Io(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${mo}.`)
return e}}var Bo=function(e,t,n){}
l(function(){function e(){a(this,e)}return c(e,null,[{key:"getInstance",value:function(e,t,n){var i
return this.instance||(this.instance=new Fo(e,(i=t,function(e,t,n,r){i(e,t)}),null!=n?n:Bo)),this.instance}},{key:"resetInstance",value:function(){this.instance=null}}]),e}(),"instance",null)
var qo=function(e,t){return e.updateAny(function(e){return function(t){return void 0!==e[t.clientId]&&null!==e[t.clientId]}}(t),function(e){return function(t){return r(r({},t),{},{additionalData:e[t.clientId]||t.additionalData})}}(t))},Ho=function(e,t){if(!t||!q(t).length||!t.emoji||!t.reactors&&void 0===t.viewerReacted||t.reactors&&(!e||!e.length))return e
var n=t.emoji,i=v(e),r=i.findIndex((function(e){return e.emoji===n}))
if(r>-1){var o=i[r]
if(t.reactors)return o.reactors=t.reactors,i.splice(r,1,o),i
if(o.viewerReacted=t.viewerReacted,t.count&&0===t.count)return i.splice(r,1),i
if(t.count&&t.count>0)o.count=t.count
else if(t.viewerReacted)o.count=o.count+1
else{if(1===o.count)return i.splice(r,1),i
o.count=o.count-1}return t.firstReactedAt&&t.firstReactedAt<o.firstReactedAt&&(o.firstReactedAt=t.firstReactedAt),i.splice(r,1,o),i}return 0===t.count?i:[].concat(v(i),[{count:void 0!==t.count?t.count:1,emoji:n,firstReactedAt:t.firstReactedAt?t.firstReactedAt:Date.now(),viewerReacted:t.viewerReacted,reactors:[]}]).sort((function(e,t){return e.firstReactedAt-t.firstReactedAt}))},Go=function(e,t){var n=m(xe(t),2),i=n[0],r=n[1]
return e.filter((function(e){return ge(e)?!i.includes(e.conversationUrn):!r.includes(e.messageUrn)}))},Vo=function(e,t,n){var i=[]
return t.length&&(i=function(e,t){var n=function(e,t){var n=m(xe(t),2),i=n[0],o=n[1]
return e.map((function(e){var t=me(e)&&o.includes(e.messageUrn),n=ge(e)&&i.includes(e.conversationUrn)
return t||n?r(r({},e),{},{retryCount:e.retryCount+1}):e}))}(e,t),i=function(e,t){return Go(t,e).map((function(e){return r(r({},e),{},{retryCount:0})}))}(e,t)
return[].concat(v(n),v(i))}(e,t)),n.length&&(i=Go(i,n)),i},Ko=function(e,t){return t&&t>e?t:e}
!function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i]
"function"==typeof e[r]&&(n[r]=e[r])}Object.keys(n)
try{!function(e){Object.keys(e).forEach((function(t){var n=e[t]
if(void 0===n(void 0,{type:D.INIT}))throw new Error(N(12))
if(void 0===n(void 0,{type:D.PROBE_UNKNOWN_ACTION()}))throw new Error(N(13))}))}(n)}catch(e){}}({entityUrn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0
return"UPDATE_MAILBOXURN"===t.type?t.entityUrn:e},lastActivityAt:function(){return new Date},draftConversations:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,n=arguments.length>1?arguments[1]:void 0
switch(n.type){case"REMOVE_DRAFT_CONVERSATIONS":return n.payload.draftConvoClientIds.reduce((function(e,t){return Q(e,t)}),t)
case"CONVERT_DRAFT_CONVERSATION":return Q(t,n.payload.conversationId)
case"ADD_DRAFT_CONVERSATION":return X(t,n.payload.draftConversation.clientId,n.payload.draftConversation)
case"ADD_DRAFT_CONVERSATIONS":return n.payload.draftConversation.reduce((function(e,t){return X(e,t.clientId,t)}),t)
case"ADD_NEW_MESSAGE_BY_ID":var i=t.get(n.payload.conversationId)
return i?X(t,n.payload.conversationId,r(r({},i),{},{messages:i.messages.add([n.payload.message])})):t
case"READY_MESSAGE_BACK_TO_DRAFT":var o=t.get(n.payload.conversationId)
if(!o)return t
var a=m(o.messages.removeByClientId(n.payload.messageClientId),2),s=a[0],c=a[1]
return X(t,n.payload.conversationId,r(r({},o),{},{messages:c,draftMessage:s?Xr(s):zr(n.payload.mboxUrn,"Local")}))
case"DELETE_MESSAGE":var l=t.get(n.payload.conversationId)
if(!l)return t
var u=m(l.messages.removeByClientId(n.payload.messageClientId),2)[1]
return X(t,n.payload.conversationId,r(r({},l),{},{messages:u}))
case"UPDATE_DRAFT_MESSAGE":var d=t.get(n.payload.conversationId),f=null==d?void 0:d.draftMessage
return f?X(t,n.payload.conversationId,r(r({},d),{},{draftMessage:r(r({},f),n.payload.draftMessageUpdate)})):t
case"UPDATE_NEW_MESSAGE":if(!ee(n.payload.convoIdentifier))return t
var p=t.get(n.payload.convoIdentifier)
return p?X(t,n.payload.convoIdentifier,r(r({},p),{},{messages:p.messages.updateByClientId(n.payload.messageId,n.payload.message)})):t
case"UPDATE_DRAFT_CONVERSATIONS":var h=n.payload.draftConversationUpdateObj
if(h){var g,v=new Map(t),b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=y(e))){n&&(e=n)
var i=0,r=function(){}
return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}((e=h,Object.entries(e)))
try{for(b.s();!(g=b.n()).done;){var E=m(g.value,2),k=E[0],_=E[1],T=t.get(k)
if(T){var S=r(r({},T),_)
v=X(v,k,S)}}}catch(e){b.e(e)}finally{b.f()}return v}return t
case"UPDATE_DRAFT_CONVERSATION_SENDING_STATUS":var C=t.get(n.payload.conversationId)
return C?X(t,n.payload.conversationId,r(r({},C),{},{sending:n.payload.sendingStatus})):t
default:return t}},participants:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"DECORATE_PARTICIPANTS":var n=t.payload.data,i=K(q(n).map((function(t){return e[t]?[t,r(r({},e[t]),{},{additionalData:n[t]})]:null})).filter(H))
return r(r({},e),i)
case"ADD_MAILBOX_PARTICIPANTS":case"ADD_CONVERSATION":case"ADD_OLDER_CONVERSATIONS":case"ADD_CONVERSATIONS":case"ADD_DRAFT_CONVERSATIONS":case"UPDATE_CONVERSATION_BY_URN":var o=K(t.payload.participants.map((function(e){return[e.hostIdentityUrn,e]}))),a=q(o).reduce((function(t,n){var i=e[n]
return H(i)&&"EMPTY"!==i.kind&&o[n]&&"EMPTY"===o[n].kind?t[n]=r({},i):t[n]=r(r(r({},i),o[n]),{},{clientId:H(i)?i.clientId:o[n].clientId}),t}),{})
return r(r({},e),a)
default:return e}},conversations:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie(),n=arguments.length>1?arguments[1]:void 0
switch(n.type){case"DECORATE_CONVERSATIONS":return Oe.fromConversationArray(t.map((function(e){return r(r({},e),{},{additionalData:n.payload.data[e.clientId]||e.additionalData})})))
case"DECORATE_ALL_MESSAGES":return Oe.fromConversationArray(t.map((function(e){return r(r({},e),{},{messages:qo(e.messages,n.payload.data)})})))
case"DECORATE_MESSAGES":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{messages:qo(e.messages,n.payload.data)})}))
case"DECORATE_MESSAGE":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{messages:e.messages.updateByUrn(n.payload.messageUrn,{additionalData:n.payload.data})})}))
case"UPDATE_DRAFT_MESSAGE":return t.updateItem(pe(n.payload.conversationId),(function(e){return r(r({},e),{},{draftMessage:r(r({},e.draftMessage),n.payload.draftMessageUpdate)})}))
case"UPDATE_NEW_MESSAGE":return t.updateItem(pe(n.payload.convoIdentifier),(function(e){return r(r({},e),{},{messages:e.messages.updateByClientId(n.payload.messageId,n.payload.message),quickReplies:Ce(e,e.quickReplies,n.payload.message)})}))
case"UPDATE_MESSAGES":var i=n.payload.conversationUrn,o=n.payload.messageUpdateMap
if(!i){var a=q(o),s=ie(t,a[0])
if(!s)return t
i=s.entityUrn}return t.updateItem(de(i),(function(e){if(Z(e)){var t=q(o)
return r(r({},e),{},{messages:e.messages.updateAny((n=t,function(e){return n.includes(e.entityUrn)}),(function(e){return e.entityUrn?r(r(r({},e),o[e.entityUrn]),{},{clientId:e.clientId}):e})),quickReplies:Ce(e,e.quickReplies)})}return e
var n}))
case"UPDATE_REACTIONS_ON_MESSAGE":var c=n.payload,l=c.messageUrn,u=c.reaction,d=ie(t,l)
if(!d)return t
var f=d.entityUrn
return t.updateItem(de(f),(function(e){if(function(e){var t=e.entityUrn
return void 0!==t&&!te(t)}(e)){var t=e.messages.getByIdentifier(l)
return r(r({},e),{},{messages:e.messages.updateAny(he(l),(function(e){return r(r({},e),{},{reactions:Ho(t.reactions,u),clientId:e.clientId})}))})}return e}))
case"READY_MESSAGE_BACK_TO_DRAFT":return t.updateItem(pe(n.payload.conversationId),(function(e){var t=m(e.messages.removeByClientId(n.payload.messageClientId),2),i=t[0],o=t[1]
return r(r({},e),{},{messages:o,draftMessage:i?Xr(i):zr(n.payload.mboxUrn,"Local")})}))
case"DELETE_MESSAGE":return t.updateItem(pe(n.payload.conversationId),(function(e){var t=m(e.messages.removeByClientId(n.payload.messageClientId),2)[1]
return r(r({},e),{},{messages:t})}))
case"DELETE_MESSAGES":return t.updateItem(de(n.payload.conversationUrn),(function(e){var t=n.payload.clearAll?new Wr(Array.from(e.messages).filter((function(e){return function(e){return"Draft"===e.status||"Pending"===e.status||"Sending"===e.status}(e)}))):e.messages.removeByUrns(n.payload.messageUrns)
return r(r({},e),{},{messages:t})}))
case"DELETE_DRAFT_MESSAGE":return t.updateItem(pe(n.payload.conversationUrn),(function(e){var t=e.draftMessage
return r(r({},e),{},{draftMessage:zr(t.senderUrn,"Local")})}))
case"REALTIME_TYPING_ON":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{typingUrns:Y(e.typingUrns,n.payload.typingUrn)})}))
case"REALTIME_TYPING_OFF":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{typingUrns:$(e.typingUrns,n.payload.typingUrn)})}))
case"ADD_NEW_MESSAGE_BY_ID":var p=n.payload,h=p.message,g=p.conversationId,y=h.optionalSendData.conversationState
return t.updateItem(pe(g),(function(e){return r(r({},e),{},{messages:e.messages.add([h]),typingUrns:$(e.typingUrns,h.senderUrn),quickReplies:Ce(e,e.quickReplies,h),state:null!=y?y:void 0})}))
case"ADD_NEW_MESSAGE_BY_CONVO_URN":return t.updateItem(de(n.payload.conversationUrn),(function(e){var t=n.payload.message
return r(r({},e),{},{messages:e.messages.add([t]),typingUrns:$(e.typingUrns,t.senderUrn),quickReplies:Ce(e,e.quickReplies,t)})}))
case"CONVERSATION_LOADING":return t.updateItem(pe(n.payload.conversationId),(function(e){return r(r({},e),{},{status:r(r({},e.status),{},{loading:n.payload.loading})})}))
case"ADD_OLDER_MESSAGES":return t.updateItem(pe(n.payload.conversationUrn),(function(e){return r(r({},e),{},{messages:e.messages.add(n.payload.messages),metadata:r(r({},e.metadata),{},{prevCursor:n.payload.prevCursor}),status:r(r({},e.status),{},{fullyLoaded:n.payload.completed,loading:!1})})}))
case"ADD_NEW_MESSAGES":return t.updateItem(pe(n.payload.conversationUrn),(function(e){var t=e.messages.add(n.payload.messages)
return r(r({},e),{},{quickReplies:[],messages:t,metadata:r(r({},e.metadata),{},{syncToken:n.payload.syncToken,shouldClearCache:n.payload.shouldClearCache}),status:r(r({},e.status),{},{loading:!1})})}))
case"CONVERT_DRAFT_CONVERSATION":return t.find(de(n.payload.conversation.entityUrn),"FullMailboxState")?t.updateItem(de(n.payload.conversation.entityUrn),(function(e){var t=n.payload.conversation.participants.filter(U(e.participants)),i=[].concat(v(e.participants),v(t))
return r(r(r({},e),n.payload.conversation),{},{participants:i,messages:e.messages.add(v(n.payload.conversation.messages)),clientId:n.payload.conversation.clientId})})):t.addItem(r(r({},n.payload.conversation),{},{clientId:n.payload.conversationId}))
case"ADD_OLDER_CONVERSATIONS":return t.addItems(n.payload.conversations,n.payload.writeCategories)
case"ADD_CONVERSATIONS":return t.addItems(n.payload.conversations,"ADD_CATEGORIES"===n.payload.categoriesOption)
case"ADD_CONVERSATION":return t.addItem(n.payload.conversation)
case"UPDATE_CONVERSATION_BY_URN":return t.updateItem(de(n.payload.conversationUrn),(function(e){return _e(e,n.payload.conversationUpdate)}))
case"UPDATE_CONVERSATIONS_BY_URN":return t.updateAny(fe(q(n.payload.convoStatusUpdateMap)),(function(e){var t=n.payload.convoStatusUpdateMap[e.entityUrn]
if(!ke(t)&&t.seenReceiptsMap&&e.seenReceiptsMap){var i=we(e.seenReceiptsMap,t.seenReceiptsMap),o=r(r(r({},e),t),{},{seenReceiptsMap:i})
return Te(e,o)}return Te(e,t)}))
case"UPDATE_CONVERSATION_QUICK_REPLIES":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{quickReplies:n.payload.quickReplies})}))
case"UPDATE_CONVERSATION_BY_MESSAGE_URN":var b=ie(t,n.payload.messageUrn)
return b?t.updateItem(pe(b.entityUrn),(function(e){return n.payload.conversationUpdate.quickReplies?r(r({},e),{},{quickReplies:Ce(e,n.payload.conversationUpdate.quickReplies)}):r(r({},e),n.payload.conversationUpdate)})):t
case"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES":return t.updateAny((e=n.payload.categories,function(t){return void 0!==e.find((function(e){return t.categories.includes(e)}))}),(function(e){return Te(e,n.payload.conversationUpdate)}))
case"DELETE_CONVERSATION":return t.deleteItems(de(n.payload.conversationUrn))
case"DELETE_CONVERSATIONS":return n.payload.clearAll?Ie():t.deleteItems(fe(n.payload.conversationUrns))
default:return t}},additionalData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0
return"DECORATE_MAILBOX"===t.type?t.payload:e},connected:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{api:!1,realtime:!1},t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"CONNECT":return r(r({},e),{},{api:!0})
case"REALTIME_CONNECT":return r(r({},e),{},{realtime:t.payload})
default:return e}},status:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r({},ue),i=arguments.length>1?arguments[1]:void 0
switch(i.type){case"MAILBOX_LOADING":return r(r({},n),{},{loading:i.payload.loading,lastRequestId:Ko(n.lastRequestId,i.requestId)})
case"ADD_OLDER_CONVERSATIONS":return r(r({},n),{},{nextCursor:null!==(e=i.payload.nextCursor)&&void 0!==e?e:n.nextCursor,fullyLoaded:i.payload.fullyLoaded,loading:!1,lastRequestId:Ko(n.lastRequestId,i.requestId)})
case"ADD_CONVERSATIONS":return r(r({},n),{},{loading:!1,syncToken:null!==(t=i.payload.syncToken)&&void 0!==t?t:n.syncToken,lastRequestId:Ko(n.lastRequestId,i.requestId)})
case"UPDATE_REQUEST_ID":return r(r({},n),{},{lastRequestId:Ko(n.lastRequestId,i.requestId)})
default:return i.requestId?r(r({},n),{},{lastRequestId:Ko(n.lastRequestId,i.requestId)}):n}},unreadCounts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{requestId:0},t=arguments.length>1?arguments[1]:void 0
return"UPDATE_MAILBOX_UNREAD_COUNT"===t.type?r(r({},e),t.payload):e},incompleteRetriableEntities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0
switch(t.type){case"ADD_CONVERSATION":var n=t.payload.conversation
return n.incompleteRetriableData?Vo(e,[{conversationUrn:n.entityUrn}],[]):Vo(e,[],[{conversationUrn:n.entityUrn}])
case"ADD_CONVERSATIONS":case"ADD_OLDER_CONVERSATIONS":var i=t.payload.conversations,r=i.filter((function(e){return e.incompleteRetriableData})).map((function(e){return{conversationUrn:e.entityUrn}})),o=i.filter((function(e){return!e.incompleteRetriableData})).map((function(e){return{conversationUrn:e.entityUrn}}))
return Vo(e,r,o)
case"UPDATE_CONVERSATION_BY_URN":var a=t.payload,s=a.conversationUrn
return a.conversationUpdate.incompleteRetriableData?Vo(e,[{conversationUrn:s}],[]):Vo(e,[],[{conversationUrn:s}])
case"UPDATE_CONVERSATIONS_BY_URN":var c=t.payload.convoStatusUpdateMap,l=[],u=[]
for(var d in c){var f=c[d]
!ke(f)&&f.incompleteRetriableData?l.push({conversationUrn:d}):ke(f)||G(f.incompleteRetriableData)||u.push({conversationUrn:d})}return Vo(e,l,u)
case"UPDATE_CONVERSATION_BY_MESSAGE_URN":case"UPDATE_ALL_CONVERSATIONS_IN_CATEGORIES":var p=t.payload.conversationUpdate
return p.entityUrn?p.incompleteRetriableData?Vo(e,[{conversationUrn:p.entityUrn}],[]):Vo(e,[],[{conversationUrn:p.entityUrn}]):e
case"ADD_NEW_MESSAGE_BY_ID":case"ADD_NEW_MESSAGE_BY_CONVO_URN":case"UPDATE_NEW_MESSAGE":var h=t.payload.message
return h.entityUrn?h.incompleteRetriableData?Vo(e,[{messageUrn:h.entityUrn}],[]):Vo(e,[],[{messageUrn:h.entityUrn}]):e
case"ADD_NEW_MESSAGES":case"ADD_OLDER_MESSAGES":var g=t.payload.messages.filter((function(e){return e.entityUrn})),m=g.filter((function(e){return e.incompleteRetriableData})).map((function(e){return{messageUrn:e.entityUrn}})),v=g.filter((function(e){return!e.incompleteRetriableData})).map((function(e){return{messageUrn:e.entityUrn}}))
return Vo(e,m,v)
case"UPDATE_MESSAGES":var y=t.payload.messageUpdateMap,b=[],E=[]
for(var k in y){var _=y[k]
_.incompleteRetriableData?b.push({messageUrn:k}):G(_.incompleteRetriableData)||E.push({messageUrn:k})}return Vo(e,b,E)
default:return e}}})
var Wo=function(e){var t=new O
return R(e,function(e){return t=>{var n=_,i=!1
return t((t=>{0===t?i=!0:0===t.tag?(n=t[0])(0):i||(e(t[0]),n(0))})),{unsubscribe(){i||(i=!0,n(1))}}}}((function(e){t.emit(e)}))),t},zo=new Map,Xo=function(){zo.clear()},Qo=function(e,t){return C((function(n){var i,r=null!==(i=zo.get(e))&&void 0!==i?i:new Set
if(n&&n.entityUrn){var o=!r.has(n.entityUrn)&&function(e,t){var n=Date.now()
return e.deliveredAt.getTime()>n-t}(n,t)
return r.add(n.entityUrn),zo.set(e,r),o}return!1}))},Yo=function(e,t,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=w((function(e){var t
return null===(t=e.conversations.first())||void 0===t?void 0:t.messages.last()})),a=(i=n,C((function(e){return void 0!==e&&e.senderUrn!==i}))),s=Qo(t,1e3*r),c=A(e)
return Wo(R(c,o,a,s))},$o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",i=w((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FullMailboxState"
return ee(t)&&e.draftConversations.has(t)?e.draftConversations.get(t):te(t)?Array.from(e.draftConversations.values()).find((function(e){return e.entityUrn===t})):e.conversations.getByIdentifier(t,n)}(e,t,n)})),r=A(e)
return Wo(R(r,i,M()))},Jo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",i=w((function(e){return e.conversations.getByIdentifier(t,n)})),r=A(e)
return Wo(R(r,i,w((function(e){return null==e?void 0:e.messages})),M()))},Zo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",i=w((function(e){return e.conversations.getByIdentifier(t,n)})),r=A(e)
return Wo(R(r,i,w((function(e){return null==e?void 0:e.draftMessage})),M()))},ea=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=A(e),i=w((function(e){return e.incompleteRetriableEntities})),r=C((function(e){return e.length>0}))
return Wo(R(n,i,M(),r,function(e){return t=>n=>{var i=0
t((t=>{0!==t&&0===t.tag?n(t):(i++,setTimeout((()=>{i&&(i--,n(t))}),e))}))}}(t),function(e){return t=>n=>{var i,r=!1
t((t=>{if(0===t)i&&clearTimeout(i),n(0)
else if(0===t.tag){var o=t[0]
n(T((e=>{1===e?(i&&clearTimeout(i),o(1)):o(0)})))}else r||(r=!0,i&&clearTimeout(i),i=setTimeout((()=>{i=void 0,r=!1}),e(t[0])),n(t))}))}}((function(){return t}))))}},17:e=>{var t
self,t=()=>(()=>{"use strict"
var e={150:(e,t)=>{var n
Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0,(n=t.ErrorCode||(t.ErrorCode={})).BadArgument="BadArgument",n.Timeout="Timeout",n.TokenExpired="TokenExpired",n.Throttled="Throttled",n.ServerError="ServerError",n.InvalidSubdomain="InvalidSubdomain"},925:function(e,t,n){var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])
return e},i.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.isValidSubdomain=t.close=t.launchAsync=void 0
var r=n(411),o=n(150),a="ImmersiveReader-Preferences:",s="ImmersiveReader-LaunchResponse:",c={}
c[o.ErrorCode.TokenExpired]="The access token supplied is expired.",c[o.ErrorCode.Throttled]="You have exceeded your quota.",c[o.ErrorCode.ServerError]="An error occurred when calling the server to process the text.",c[o.ErrorCode.InvalidSubdomain]="The subdomain supplied is invalid."
var l=!1
function u(e){return!!e&&new RegExp("^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])$").test(e)}t.launchAsync=function(e,t,n,d){return l?Promise.reject("Immersive Reader is already launching"):new Promise((function(f,p){if(e)if(n)if(n.chunks)if(n.chunks.length)if(u(t)||d&&d.customDomain){l=!0
var h=Date.now();(d=i({uiZIndex:1e3,timeout:15e3,useWebview:!1,allowFullscreen:!0,hideExitButton:!1,cookiePolicy:r.CookiePolicy.Disable},d)).uiZIndex&&"number"==typeof d.uiZIndex||(d.uiZIndex=1e3)
var g=null,m=document.createElement("div"),v=d.useWebview?document.createElement("webview"):document.createElement("iframe")
v.allow="autoplay; microphone",v.title="Immersive Reader Frame",v.setAttribute("aria-modal","true")
var y=document.createElement("style")
y.innerHTML="body{height:100%;overflow:hidden;}"
var b=function(){g&&(window.clearTimeout(g),g=null)},E=d.parent&&document.contains(d.parent)?d.parent:document.body,k=function(){E.contains(m)&&E.removeChild(m),window.removeEventListener("message",T),b(),y.parentNode&&y.parentNode.removeChild(y)},_=function(){if(k(),l=!1,d.onExit)try{d.onExit()}catch(e){}}
k()
var T=function(i){if(i&&i.data&&"string"==typeof i.data)if("ImmersiveReader-ReadyForContent"===i.data){b()
var r={cogSvcsAccessToken:e,cogSvcsSubdomain:t,request:n,launchToPostMessageSentDurationInMs:Date.now()-h,disableFirstRun:d.disableFirstRun,readAloudOptions:d.readAloudOptions,translationOptions:d.translationOptions,displayOptions:d.displayOptions,sendPreferences:!!d.onPreferencesChanged,preferences:d.preferences,disableTranslation:d.disableTranslation,disableGrammar:d.disableGrammar,disableLanguageDetection:d.disableLanguageDetection}
v.contentWindow.postMessage(JSON.stringify({messageType:"Content",messageValue:r}),"*")}else if("ImmersiveReader-Exit"===i.data)_()
else if(i.data.startsWith(s)){var u=null,g=null,y=null
try{y=JSON.parse(i.data.substring(s.length))}catch(e){}y&&y.success?u={container:m,sessionId:y.sessionId,charactersProcessed:y.meteredContentSize}:g=y&&!y.success?{code:y.errorCode,message:c[y.errorCode],sessionId:y.sessionId}:{code:o.ErrorCode.ServerError,message:c[o.ErrorCode.ServerError]},l=!1,u?(b(),f(u)):g&&(_(),p(g))}else if(i.data.startsWith(a)&&d.onPreferencesChanged&&"function"==typeof d.onPreferencesChanged)try{d.onPreferencesChanged(i.data.substring(a.length))}catch(e){}}
window.addEventListener("message",T),g=window.setTimeout((function(){k(),l=!1,p({code:o.ErrorCode.Timeout,message:"Page failed to load after timeout ("+d.timeout+" ms)"})}),d.timeout),d.allowFullscreen&&v.setAttribute("allowfullscreen",""),v.style.cssText=d.parent?"position: static; width: 100%; height: 100%; left: 0; top: 0; border-width: 0":"position: static; width: 100vw; height: 100vh; left: 0; top: 0; border-width: 0",d.useWebview&&v.addEventListener("loadstop",(function(){v.contentWindow.postMessage(JSON.stringify({messageType:"WebviewHost"}),"*")}))
var S=(d.customDomain?d.customDomain:"https://"+t+".cognitiveservices.azure.com/immersivereader/webapp/v1.0/")+"reader?exitCallback=ImmersiveReader-Exit&sdkPlatform=js&sdkVersion=1.3.0"
S+="&cookiePolicy="+(d.cookiePolicy===r.CookiePolicy.Enable?"enable":"disable"),d.hideExitButton&&(S+="&hideExitButton=true"),d.uiLang&&(S+="&omkt="+d.uiLang),v.src=S,m.style.cssText=d.parent?"position: relative; width: 100%; height: 100%; border-width: 0; -webkit-perspective: 1px; z-index: "+d.uiZIndex+"; background: white; overflow: hidden":"position: fixed; width: 100vw; height: 100vh; left: 0; top: 0; border-width: 0; -webkit-perspective: 1px; z-index: "+d.uiZIndex+"; background: white; overflow: hidden",m.appendChild(v),E.appendChild(m),document.head.appendChild(y)}else p({code:o.ErrorCode.InvalidSubdomain,message:c[o.ErrorCode.InvalidSubdomain]})
else p({code:o.ErrorCode.BadArgument,message:"Chunks must not be empty"})
else p({code:o.ErrorCode.BadArgument,message:"Chunks must not be null"})
else p({code:o.ErrorCode.BadArgument,message:"Content must not be null"})
else p({code:o.ErrorCode.BadArgument,message:"Token must not be null"})}))},t.close=function(){window.postMessage("ImmersiveReader-Exit","*")},t.isValidSubdomain=u},411:(e,t)=>{var n,i
Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeOption=t.CookiePolicy=void 0,(i=t.CookiePolicy||(t.CookiePolicy={}))[i.Disable=0]="Disable",i[i.Enable=1]="Enable",(n=t.ThemeOption||(t.ThemeOption={}))[n.Light=0]="Light",n[n.Dark=1]="Dark"},848:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderButtons=void 0
var n="data-locale",i={af:"Indompelende leser",am:"በህያው ስሜት ፈጣሪ ዕይታ አንባቢ",ar:"القارئ الشامل",as:"ইমাৰচিভ ৰিডাৰ",az:"İmmersiv Oxuyucu",be:"Імерсіўны чытальнік",bg:"Концентриран четец",bn:"মনোগ্রাহী পাঠক","bn-bd":"ইমার্সিভ পাঠক",bs:"Koncentrirani čitalac",ca:"Lector immersiu",cs:"Asistivní čtečka","cy-gb":"Darllenydd Ymdrwythol",da:"Forenklet læser",de:"Plastischer Reader",el:"Προηγμένο πρόγραμμα ανάγνωσης",en:"Immersive Reader",es:"Lector inmersivo",et:"Süvaluger",eu:"Irakurgailu murgiltzailea",fa:"خواننده همه‌جانبه",fi:"Syventävä lukuohjelma",fil:"Immersive Reader",fr:"Lecteur immersif","ga-ie":"Léitheoir tumthach",gd:"An leughadair ùr-nòsach",gl:"Lector avanzado",gu:"ઇમર્સિવ રીડર",ha:"Mai karatu Mai barbazawa",he:"תצוגת קריאה מודרנית",hi:"इमर्सिव रीडर",hr:"Stopljeni čitač",hu:"Modern olvasó",hy:"Խորասուզված ընթերցիչ",id:"Pembaca Imersif",ig:"Ọgụụ Kenzipụtara",is:"Aðgengilegt lestrarumhverfi",it:"Strumento di lettura immersiva",ja:"イマーシブ リーダー",ka:"იმერსიული წამკითხველი",kk:"Иммерсивті оқу құралы",km:"កម្មវិធីអានពណ៌រំលេចនៅលើអេក្រង់",kn:"ಇಮ್ಮರ್ಸಿವ್ ಓದುಗ",ko:"몰입형 리더",kok:"तंद्री लागिल्लो वाचक","ku-arab":"خوێنەری پڕ",ky:"Курчаган Окугуч",lb:"Immersive Reader",lo:"ຕົວອ່ານອິມເມີສີບ",lt:"Įtraukianti skaitytuvė",lv:"Tīrskata lasītājs",mi:"Pūpānui Rumaki",mk:"Сеопфатен читач",ml:"ഇമ്മേഴ്‌സീവ് റീഡർ",mn:"Идэвхтэй уншигч",mr:"इमर्सिव्ह वाचक",ms:"Pembaca Imersif",mt:"Qarrej Immersiv",ne:"इमेर्सिभ रिडर",nl:"Insluitende lezer","nn-no":"Engasjerande lesar",no:"Engasjerende leser",nso:"Go Bala ka Mongwalo o Mokoto",or:"ଇମରସିଭ୍ ରିଡର୍",pa:"ਇਮਰਸਿਵ ਰੀਡਰ","pa-arab":"گھیرن آلا مطالعہ کار",pl:"Czytnik immersyjny",prs:"خواننده نمایش",pt:"Leitura Avançada",quc:"Nim ucholajil sik'inel uwach",quz:"Wankisqa Ñawiq",ro:"Immersive Reader",ru:"Иммерсивное средство чтения",rw:"Insakazasoma",sd:"امرسو ريڊر",si:"ගිලෙන සුළු කියවනය",sk:"Imerzná čítačka",sl:"Potopni bralnik",sq:"Lexuesi kredhës","sr-cyrl-ba":"Концентрисани читалац","sr-cyrl-rs":"Концентрисани читалац","sr-latn-rs":"Koncentrisani čitalac",sv:"Avancerad läsare",sw:"Kisomaji cha Kuzamisha",ta:"அற்புதமான ரீடர்",te:"మంత్రముగ్ధులను చేసే పఠన సాధనం","tg-cyrl-tj":"Хонандаи фарогир",th:"โปรแกรมช่วยอ่าน",ti:"ኣንባቢ ሕሉው ስምዒት ፈጣሪ",tk:"Giňişleýin okaýjy",tn:"Sebadi sa Imesife",tr:"Tam Ekran Okuyucu",tt:"Чолгап алучы уку чарасы","ug-cn":"چۆكمە ئوقۇغۇچ",uk:"Занурення в текст",ur:"امرسیو مطالعہ کار",uz:"Immersiv mutolaa vositasi",vi:"Trình đọc Chân thực",wo:"Jàngukaay bu Rafet",xh:"Isifundi Esikhulu",yo:"Ìwò Alámùtán",zh:"沉浸式阅读器","zh-hant":"沈浸式閱讀程式",zu:"Isifundi Sokuzizwisa"}
function r(e){var t=document.createElement("img")
t.src="https://ircdname.azureedge.net/permanent-static-resources/immersive-reader-icon.svg"
var i=e.getAttribute("data-icon-px-size")||"20"
t.style.height=t.style.width=i+"px",t.style.verticalAlign="middle",t.style.marginTop="-2px"
var r=e.getAttribute(n)||"en"
t.alt=s(r),e.appendChild(t)}function o(e){var t=document.createElement("span")
t.style.marginLeft="8px",e.appendChild(t)}function a(e){var t=document.createElement("span"),i=e.getAttribute(n)||"en"
t.textContent=s(i),e.appendChild(t)}function s(e){return e=e.toLowerCase(),i[e]?i[e]:"zh-hk"===e||"zh-mo"===e||"zh-tw"===e?i["zh-hant"]:(e=e.substring(0,e.lastIndexOf("-")),i[e]?i[e]:(e=e.substring(0,e.lastIndexOf("-")),i[e]?i[e]:i.en))}t.renderButtons=function(e){var t=document.createElement("style")
t.innerHTML=".immersive-reader-button{cursor:pointer;display:inline-block;padding:5px;} .immersive-reader-button:hover{background:rgba(0,0,0,.05);border-radius:2px",document.head.appendChild(t)
var i=[].slice.call(document.getElementsByClassName("immersive-reader-button"))
e&&e.elements&&(i=e.elements)
for(var c=0,l=i;c<l.length;c++){var u=l[c]
u.setAttribute("role","button")
var d=u.getAttribute(n)||"en"
switch(u.setAttribute("aria-label",s(d)),u.textContent="",u.getAttribute("data-button-style")||"icon"){case"icon":r(u)
break
case"text":a(u)
break
case"iconAndText":r(u),o(u),a(u)}}}}},t={}
function n(i){var r=t[i]
if(void 0!==r)return r.exports
var o=t[i]={exports:{}}
return e[i].call(o.exports,o,o.exports,n),o.exports}var i={}
return(()=>{var e=i
Object.defineProperty(e,"__esModule",{value:!0}),e.CookiePolicy=e.launchAsync=e.close=e.renderButtons=void 0
var t=n(848)
Object.defineProperty(e,"renderButtons",{enumerable:!0,get:function(){return t.renderButtons}})
var r=n(925)
Object.defineProperty(e,"close",{enumerable:!0,get:function(){return r.close}}),Object.defineProperty(e,"launchAsync",{enumerable:!0,get:function(){return r.launchAsync}})
var o=n(411)
Object.defineProperty(e,"CookiePolicy",{enumerable:!0,get:function(){return o.CookiePolicy}}),"undefined"!=typeof window&&window&&"node"!==window.appEnvironment&&window.addEventListener("load",(function(){var e
window.hasOwnProperty("Promise")||((e=document.createElement("script")).src="https://ircdname.azureedge.net/permanent-static-resources/promise-polyfill.min.js",document.head.appendChild(e)),t.renderButtons()}))})(),i})(),e.exports=t()},7440:(e,t,n)=>{"use strict"
function i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator]
if(!n)return e
var i,r,o=n.call(e),a=[]
try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}var r
n.r(t),n.d(t,{InterpreterStatus:()=>r,assign:()=>s,createMachine:()=>p,interpret:()=>g}),function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(r||(r={}))
var o={type:"xstate.init"}
function a(e){return void 0===e?[]:[].concat(e)}function s(e){return{type:"xstate.assign",assignment:e}}function c(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function l(e){return function(t){return e===t}}function u(e){return"string"==typeof e?{type:e}:e}function d(e,t){return{value:e,context:t,actions:[],changed:!1,matches:l(e)}}function f(e,t,n){var i=t,r=!1
return[e.filter((function(e){if("xstate.assign"===e.type){r=!0
var t=Object.assign({},i)
return"function"==typeof e.assignment?t=e.assignment(i,n):Object.keys(e.assignment).forEach((function(r){t[r]="function"==typeof e.assignment[r]?e.assignment[r](i,n):e.assignment[r]})),i=t,!1}return!0})),i,r]}function p(e,t){void 0===t&&(t={})
var n=i(f(a(e.states[e.initial].entry).map((function(e){return c(e,t.actions)})),e.context,o),2),r=n[0],s=n[1],p={config:e,_options:t,initialState:{value:e.initial,actions:r,context:s,matches:l(e.initial)},transition:function(t,n){var r,o,s="string"==typeof t?{value:t,context:e.context}:t,h=s.value,g=s.context,m=u(n),v=e.states[h]
if(v.on){var y=a(v.on[m.type])
try{for(var b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0
if(n)return n.call(e)
if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),E=b.next();!E.done;E=b.next()){var k=E.value
if(void 0===k)return d(h,g)
var _="string"==typeof k?{target:k}:k,T=_.target,S=_.actions,C=void 0===S?[]:S,w=_.cond,x=void 0===T
if((void 0===w?function(){return!0}:w)(g,m)){var I=e.states[null!=T?T:h],A=i(f((x?a(C):[].concat(v.exit,C,I.entry).filter((function(e){return e}))).map((function(e){return c(e,p._options.actions)})),g,m),3),R=A[0],O=A[1],j=A[2],M=null!=T?T:h
return{value:M,context:O,actions:R,changed:T!==h||R.length>0||j,matches:l(M)}}}}catch(e){r={error:e}}finally{try{E&&!E.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}}return d(h,g)}}
return p}var h=function(e,t){return e.actions.forEach((function(n){var i=n.exec
return i&&i(e.context,t)}))}
function g(e){var t=e.initialState,n=r.NotStarted,i=new Set,a={_machine:e,send:function(o){n===r.Running&&(t=e.transition(t,o),h(t,u(o)),i.forEach((function(e){return e(t)})))},subscribe:function(e){return i.add(e),e(t),{unsubscribe:function(){return i.delete(e)}}},start:function(i){if(i){var s="object"==typeof i?i:{context:e.config.context,value:i}
t={value:s.value,actions:[],context:s.context,matches:l(s.value)}}return n=r.Running,h(t,o),a},stop:function(){return n=r.Stopped,i.clear(),a},get state(){return t},get status(){return n}}
return a}},56131:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.OPEN_BROADCAST_CHANNELS=t.BroadcastChannel=void 0,t.clearNodeFolder=function(e){e=(0,o.fillOptionsWithDefaults)(e)
var t=(0,r.chooseMethod)(e)
return"node"===t.type?t.clearNodeFolder().then((function(){return!0})):i.PROMISE_RESOLVED_FALSE},t.enforceOptions=function(e){s=e}
var i=n(79774),r=n(69678),o=n(67229),a=new Set
t.OPEN_BROADCAST_CHANNELS=a
var s,c=0,l=function(e,t){var n,l
this.id=c++,a.add(this),this.name=e,s&&(t=s),this.options=(0,o.fillOptionsWithDefaults)(t),this.method=(0,r.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,l=(n=this).method.create(n.name,n.options),(0,i.isPromise)(l)?(n._prepP=l,l.then((function(e){n._state=e}))):n._state=l}
function u(e,t,n){var r={time:e.method.microSeconds(),type:t,data:n}
return(e._prepP?e._prepP:i.PROMISE_RESOLVED_VOID).then((function(){var t=e.method.postMessage(e._state,r)
return e._uMP.add(t),t.catch().then((function(){return e._uMP.delete(t)})),t}))}function d(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function f(e,t,n){e._addEL[t].push(n),function(e){if(!e._iL&&d(e)){var t=function(t){e._addEL[t.type].forEach((function(e){var n=e.time-1e5
t.time>=n&&e.fn(t.data)}))},n=e.method.microSeconds()
e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,n)})):(e._iL=!0,e.method.onMessage(e._state,t,n))}}(e)}function p(e,t,n){e._addEL[t]=e._addEL[t].filter((function(e){return e!==n})),function(e){if(e._iL&&!d(e)){e._iL=!1
var t=e.method.microSeconds()
e.method.onMessage(e._state,null,t)}}(e)}t.BroadcastChannel=l,l._pubkey=!0,l.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed")
return u(this,"message",e)},postInternal:function(e){return u(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e}
p(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,f(this,"message",t)):this._onML=null},addEventListener:function(e,t){f(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){p(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this
if(!this.closed){a.delete(this),this.closed=!0
var t=this._prepP?this._prepP:i.PROMISE_RESOLVED_VOID
return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}}},3446:(e,t,n)=>{"use strict"
var i=n(33335)
e.exports={BroadcastChannel:i.BroadcastChannel,createLeaderElection:i.createLeaderElection,clearNodeFolder:i.clearNodeFolder,enforceOptions:i.enforceOptions,beLeader:i.beLeader}},33335:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BroadcastChannel",{enumerable:!0,get:function(){return i.BroadcastChannel}}),Object.defineProperty(t,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return i.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(t,"beLeader",{enumerable:!0,get:function(){return r.beLeader}}),Object.defineProperty(t,"clearNodeFolder",{enumerable:!0,get:function(){return i.clearNodeFolder}}),Object.defineProperty(t,"createLeaderElection",{enumerable:!0,get:function(){return r.createLeaderElection}}),Object.defineProperty(t,"enforceOptions",{enumerable:!0,get:function(){return i.enforceOptions}})
var i=n(56131),r=n(93145)},93145:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.beLeader=s,t.createLeaderElection=function(e,t){if(e._leaderElector)throw new Error("BroadcastChannel already has a leader-elector")
t=function(e,t){return e||(e={}),(e=JSON.parse(JSON.stringify(e))).fallbackInterval||(e.fallbackInterval=3e3),e.responseTime||(e.responseTime=t.method.averageResponseTime(t.options)),e}(t,e)
var n=new o(e,t)
return e._befC.push((function(){return n.die()})),e._leaderElector=n,n}
var i=n(79774),r=n(5365),o=function(e,t){var n=this
this.broadcastChannel=e,this._options=t,this.isLeader=!1,this.hasLeader=!1,this.isDead=!1,this.token=(0,i.randomToken)(),this._aplQ=i.PROMISE_RESOLVED_VOID,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1
var r=function(e){"leader"===e.context&&("death"===e.action&&(n.hasLeader=!1),"tell"===e.action&&(n.hasLeader=!0))}
this.broadcastChannel.addEventListener("internal",r),this._lstns.push(r)}
function a(e,t){var n={context:"leader",action:t,token:e.token}
return e.broadcastChannel.postInternal(n)}function s(e){e.isLeader=!0,e.hasLeader=!0
var t=(0,r.add)((function(){return e.die()}))
e._unl.push(t)
var n=function(t){"leader"===t.context&&"apply"===t.action&&a(e,"tell"),"leader"!==t.context||"tell"!==t.action||e._dpLC||(e._dpLC=!0,e._dpL(),a(e,"tell"))}
return e.broadcastChannel.addEventListener("internal",n),e._lstns.push(n),a(e,"tell")}o.prototype={applyOnce:function(e){var t=this
return this.isLeader?(0,i.sleep)(0,!0):this.isDead?(0,i.sleep)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then((function(){return function(){if(t.isLeader)return i.PROMISE_RESOLVED_TRUE
var n,r=!1,o=new Promise((function(e){n=function(){r=!0,e()}})),c=[],l=function(e){"leader"===e.context&&e.token!=t.token&&(c.push(e),"apply"===e.action&&e.token>t.token&&n(),"tell"===e.action&&(n(),t.hasLeader=!0))}
t.broadcastChannel.addEventListener("internal",l)
var u=e?4*t._options.responseTime:t._options.responseTime
return a(t,"apply").then((function(){return Promise.race([(0,i.sleep)(u),o.then((function(){return Promise.reject(new Error)}))])})).then((function(){return a(t,"apply")})).then((function(){return Promise.race([(0,i.sleep)(u),o.then((function(){return Promise.reject(new Error)}))])})).catch((function(){})).then((function(){return t.broadcastChannel.removeEventListener("internal",l),!r&&s(t).then((function(){return!0}))}))}()})).then((function(){t._aplQC=t._aplQC-1})),this._aplQ.then((function(){return t.isLeader})))},awaitLeadership:function(){return this._aLP||(this._aLP=(e=this).isLeader?i.PROMISE_RESOLVED_VOID:new Promise((function(t){var n=!1
function r(){n||(n=!0,e.broadcastChannel.removeEventListener("internal",o),t(!0))}e.applyOnce().then((function(){e.isLeader&&r()})),function t(){return(0,i.sleep)(e._options.fallbackInterval).then((function(){if(!e.isDead&&!n)return e.isLeader?void r():e.applyOnce(!0).then((function(){e.isLeader?r():t()}))}))}()
var o=function(t){"leader"===t.context&&"death"===t.action&&(e.hasLeader=!1,e.applyOnce().then((function(){e.isLeader&&r()})))}
e.broadcastChannel.addEventListener("internal",o),e._lstns.push(o)}))),this._aLP
var e},set onduplicate(e){this._dpL=e},die:function(){var e=this
return this._lstns.forEach((function(t){return e.broadcastChannel.removeEventListener("internal",t)})),this._lstns=[],this._unl.forEach((function(e){return e.remove()})),this._unl=[],this.isLeader&&(this.hasLeader=!1,this.isLeader=!1),this.isDead=!0,a(this,"death")}}},69678:(e,t,n)=>{"use strict"
var i=n(9154)
n(61264),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMethod=function(e){var t=[].concat(e.methods,l).filter(Boolean)
if(e.type){if("simulate"===e.type)return s.default
var n=t.find((function(t){return t.type===e.type}))
if(n)return n
throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||c.isNode||(t=t.filter((function(e){return"idb"!==e.type})))
var i=t.find((function(e){return e.canBeUsed()}))
if(i)return i
throw new Error("No useable method found in "+JSON.stringify(l.map((function(e){return e.type}))))}
var r=i(n(97594)),o=i(n(76777)),a=i(n(1095)),s=i(n(9981)),c=n(79774),l=[r.default,o.default,a.default]},76777:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=_,t.canBeUsed=k,t.cleanOldMessages=h,t.close=y,t.create=g,t.createDatabase=l,t.default=void 0,t.getAllMessages=function(e){var t=e.transaction(s).objectStore(s),n=[]
return new Promise((function(e){t.openCursor().onsuccess=function(t){var i=t.target.result
i?(n.push(i.value),i.continue()):e(n)}}))},t.getIdb=c,t.getMessagesHigherThan=d,t.getOldMessages=p,t.microSeconds=void 0,t.onMessage=E,t.postMessage=b,t.removeMessageById=f,t.type=void 0,t.writeMessage=u
var i=n(79774),r=n(63583),o=n(67229),a=i.microSeconds
t.microSeconds=a
var s="messages"
function c(){if("undefined"!=typeof indexedDB)return indexedDB
if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB
if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB
if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function l(e){var t="pubkey.broadcast-channel-0-"+e,n=c().open(t,1)
return n.onupgradeneeded=function(e){e.target.result.createObjectStore(s,{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){n.onerror=function(e){return t(e)},n.onsuccess=function(){e(n.result)}}))}function u(e,t,n){var i={uuid:t,time:(new Date).getTime(),data:n},r=e.transaction([s],"readwrite")
return new Promise((function(e,t){r.oncomplete=function(){return e()},r.onerror=function(e){return t(e)},r.objectStore(s).add(i)}))}function d(e,t){var n=e.transaction(s).objectStore(s),i=[]
return new Promise((function(e){(function(){try{var e=IDBKeyRange.bound(t+1,1/0)
return n.openCursor(e)}catch(e){return n.openCursor()}}()).onsuccess=function(n){var r=n.target.result
r?r.value.id<t+1?r.continue(t+1):(i.push(r.value),r.continue()):e(i)}}))}function f(e,t){var n=e.transaction([s],"readwrite").objectStore(s).delete(t)
return new Promise((function(e){n.onsuccess=function(){return e()}}))}function p(e,t){var n=(new Date).getTime()-t,i=e.transaction(s).objectStore(s),r=[]
return new Promise((function(e){i.openCursor().onsuccess=function(t){var i=t.target.result
if(i){var o=i.value
if(!(o.time<n))return void e(r)
r.push(o),i.continue()}else e(r)}}))}function h(e,t){return p(e,t).then((function(t){return Promise.all(t.map((function(t){return f(e,t.id)})))}))}function g(e,t){return t=(0,o.fillOptionsWithDefaults)(t),l(e).then((function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:(0,i.randomToken)(),eMIs:new r.ObliviousSet(2*t.idb.ttl),writeBlockPromise:i.PROMISE_RESOLVED_VOID,messagesCallback:null,readQueuePromises:[],db:n}
return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},m(o),o}))}function m(e){e.closed||v(e).then((function(){return(0,i.sleep)(e.options.idb.fallbackInterval)})).then((function(){return m(e)}))}function v(e){return e.closed?i.PROMISE_RESOLVED_VOID:e.messagesCallback?d(e.db,e.lastCursorId).then((function(t){var n=t.filter((function(e){return!!e})).map((function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}(t,e)})).sort((function(e,t){return e.time-t.time}))
return n.forEach((function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))})),i.PROMISE_RESOLVED_VOID})):i.PROMISE_RESOLVED_VOID}function y(e){e.closed=!0,e.db.close()}function b(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return u(e.db,e.uuid,t)})).then((function(){0===(0,i.randomInt)(0,10)&&h(e.db,e.options.idb.ttl)})),e.writeBlockPromise}function E(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,v(e)}function k(){return!i.isNode&&!!c()}function _(e){return 2*e.idb.fallbackInterval}t.type="idb"
var T={create:g,close:y,onMessage:E,postMessage:b,canBeUsed:k,type:"idb",averageResponseTime:_,microSeconds:a}
t.default=T},1095:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=d,t.averageResponseTime=v,t.canBeUsed=m,t.close=h,t.create=p,t.default=void 0,t.getLocalStorage=c,t.microSeconds=void 0,t.onMessage=g,t.postMessage=u,t.removeStorageEventListener=f,t.storageKey=l,t.type=void 0
var i=n(63583),r=n(67229),o=n(79774),a=o.microSeconds
t.microSeconds=a
var s="localstorage"
function c(){var e
if("undefined"==typeof window)return null
try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function l(e){return"pubkey.broadcastChannel-"+e}function u(e,t){return new Promise((function(n){(0,o.sleep)().then((function(){var i=l(e.channelName),r={token:(0,o.randomToken)(),time:(new Date).getTime(),data:t,uuid:e.uuid},a=JSON.stringify(r)
c().setItem(i,a)
var s=document.createEvent("Event")
s.initEvent("storage",!0,!0),s.key=i,s.newValue=a,window.dispatchEvent(s),n()}))}))}function d(e,t){var n=l(e),i=function(e){e.key===n&&t(JSON.parse(e.newValue))}
return window.addEventListener("storage",i),i}function f(e){window.removeEventListener("storage",e)}function p(e,t){if(t=(0,r.fillOptionsWithDefaults)(t),!m())throw new Error("BroadcastChannel: localstorage cannot be used")
var n=(0,o.randomToken)(),a=new i.ObliviousSet(t.localstorage.removeTimeout),s={channelName:e,uuid:n,eMIs:a}
return s.listener=d(e,(function(e){s.messagesCallback&&e.uuid!==n&&e.token&&!a.has(e.token)&&(e.data.time&&e.data.time<s.messagesCallbackTime||(a.add(e.token),s.messagesCallback(e.data)))})),s}function h(e){f(e.listener)}function g(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function m(){if(o.isNode)return!1
var e=c()
if(!e)return!1
try{var t="__broadcastchannel_check"
e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function v(){var e=navigator.userAgent.toLowerCase()
return e.includes("safari")&&!e.includes("chrome")?240:120}t.type=s
var y={create:p,close:h,onMessage:g,postMessage:u,canBeUsed:m,type:s,averageResponseTime:v,microSeconds:a}
t.default=y},97594:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=u,t.close=s,t.create=a,t.microSeconds=t.default=void 0,t.onMessage=l,t.postMessage=c,t.type=void 0
var i=n(79774),r=i.microSeconds
t.microSeconds=r
var o="native"
function a(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]}
return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function s(e){e.bc.close(),e.subFns=[]}function c(e,t){try{return e.bc.postMessage(t,!1),i.PROMISE_RESOLVED_VOID}catch(e){return Promise.reject(e)}}function l(e,t){e.messagesCallback=t}function u(){if(i.isNode&&"undefined"==typeof window)return!1
if("function"==typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill")
return!0}return!1}function d(){return 150}t.type=o
var f={create:a,close:s,onMessage:l,postMessage:c,canBeUsed:u,type:o,averageResponseTime:d,microSeconds:r}
t.default=f},9981:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=u,t.close=s,t.create=a,t.microSeconds=t.default=void 0,t.onMessage=l,t.postMessage=c,t.type=void 0
var i=n(79774).microSeconds
t.microSeconds=i
var r="simulate"
t.type=r
var o=new Set
function a(e){var t={name:e,messagesCallback:null}
return o.add(t),t}function s(e){o.delete(e)}function c(e,t){return new Promise((function(n){return setTimeout((function(){Array.from(o).filter((function(t){return t.name===e.name})).filter((function(t){return t!==e})).filter((function(e){return!!e.messagesCallback})).forEach((function(e){return e.messagesCallback(t)})),n()}),5)}))}function l(e,t){e.messagesCallback=t}function u(){return!0}function d(){return 5}var f={create:a,close:s,onMessage:l,postMessage:c,canBeUsed:u,type:r,averageResponseTime:d,microSeconds:i}
t.default=f},67229:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.fillOptionsWithDefaults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e))
return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}},79774:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=t.PROMISE_RESOLVED_VOID=t.PROMISE_RESOLVED_TRUE=t.PROMISE_RESOLVED_FALSE=void 0,t.isPromise=function(e){return!(!e||"function"!=typeof e.then)},t.microSeconds=function(){var e=(new Date).getTime()
return e===o?1e3*e+ ++a:(o=e,a=0,1e3*e)},t.randomInt=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},t.randomToken=function(){return Math.random().toString(36).substring(2)},t.sleep=function(e,t){return e||(e=0),new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}
var n=Promise.resolve(!1)
t.PROMISE_RESOLVED_FALSE=n
var i=Promise.resolve(!0)
t.PROMISE_RESOLVED_TRUE=i
var r=Promise.resolve()
t.PROMISE_RESOLVED_VOID=r
var o=0,a=0,s="[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)
t.isNode=s},83924:e=>{"use strict"
var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e)
return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e
var n}function r(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||r,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=i
var l=Array.isArray(n)
return l===Array.isArray(e)?l?c.arrayMerge(e,n,c):function(e,t,n){var r={}
return n.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=i(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return s
var n=t.customMerge(e)
return"function"==typeof n?n:s}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}(e,n,c):i(n,c)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array")
return e.reduce((function(e,n){return s(e,n,t)}),{})}
var c=s
e.exports=c},38612:e=>{e.exports=!1},28413:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>a})
var i=n(58797),r=n.n(i),o=n(58957)
class a extends(r()){compute(e){for(let t=0,n=e.length;t<n;t++)if(!1===(0,o.Z)(e[t]))return e[t]
return e[e.length-1]}}},8192:(e,t,n)=>{"use strict"
function i(e,t){return e===t}n.r(t),n.d(t,{default:()=>i})},49459:(e,t,n)=>{"use strict"
function i(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>t}n.r(t),n.d(t,{default:()=>i})},69566:(e,t,n)=>{"use strict"
function i(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>=t}n.r(t),n.d(t,{default:()=>i})},21788:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>r})
var i=n(28614)
function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return t.every(i.isArray)}},84658:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>i.isEmpty})
var i=n(31866)},51112:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>i.isEqual})
var i=n(31866)},29025:(e,t,n)=>{"use strict"
function i(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<t}n.r(t),n.d(t,{default:()=>i})},29063:(e,t,n)=>{"use strict"
function i(e,t,n){return null!=n&&n.forceNumber&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<=t}n.r(t),n.d(t,{default:()=>i})},51149:(e,t,n)=>{"use strict"
function i(e,t){return e!==t}n.r(t),n.d(t,{default:()=>i})},26491:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>r})
var i=n(58957)
function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return t.every((e=>!(0,i.Z)(e)))}},66018:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>a})
var i=n(58957),r=n(58797),o=n.n(r)
class a extends(o()){compute(e){for(let t=0,n=e.length;t<n;t++)if(!0===(0,i.Z)(e[t]))return e[t]
return e[e.length-1]}}},18096:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>r})
var i=n(58957)
function r(e,t){return(0,i.Z)(e)!==(0,i.Z)(t)}},58957:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(28614)
function r(e){return"object"==typeof e&&e&&"isTruthy"in e&&"boolean"==typeof e.isTruthy?e.isTruthy:(0,i.isArray)(e)?0!==e.length:!!e}},68188:e=>{var t
t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e.exports=t},79435:(e,t)=>{var n,i,r
!function(o){if("undefined"!=typeof window){var a,s=0,c=!1,l=!1,u="message".length,d="[iFrameSizer]",f=d.length,p=null,h=window.requestAnimationFrame,g=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},v=null,y=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){w("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={}
window.jQuery!==o&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){B(n,e)})).end()}):C("","Unable to bind to jQuery, it is not fully loaded.")),i=[],(r="function"==typeof(n=V)?n.apply(t,i):n)===o||(e.exports=r),window.iFrameResize=window.iFrameResize||V()}function E(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function k(e,t,n){e.addEventListener(t,n,!1)}function _(e,t,n){e.removeEventListener(t,n,!1)}function T(e){return m[e]?m[e].log:c}function S(e,t){x("log",e,t,T(e))}function C(e,t){x("info",e,t,T(e))}function w(e,t){x("warn",e,t,!0)}function x(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return d+"["+function(e){var t="Host page: "+e
return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function I(e){function t(){n("Height"),n("Width"),U((function(){D(I),M(R),l("onResized",I)}),I,"init")}function n(e){var t=Number(m[R]["max"+e]),n=Number(m[R]["min"+e]),i=e.toLowerCase(),r=Number(I[i])
S(R,"Checking "+i+" is in range "+n+"-"+t),r<n&&(r=n,S(R,"Set "+i+" to min value")),r>t&&(r=t,S(R,"Set "+i+" to max value")),I[i]=""+r}function i(e){return x.slice(x.indexOf(":")+u+e)}function r(e,t){var n,i
n=function(){var n,i
L("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=I.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},b[i=t]||(b[i]=setTimeout((function(){b[i]=null,n()}),32))}function o(e){var t=e.getBoundingClientRect()
return j(R),{x:Math.floor(Number(t.left)+Number(p.x)),y:Math.floor(Number(t.top)+Number(p.y))}}function a(e){var t=e?o(I.iframe):{x:0,y:0},n={x:Number(I.width)+t.x,y:Number(I.height)+t.y}
S(R,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top===window.self?(p=n,s(),S(R,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):w(R,"Unable to scroll to requested position, window.parentIFrame not found")}function s(){!1===l("onScroll",p)?N():M(R)}function c(e){var t={}
if(0===Number(I.width)&&0===Number(I.height)){var n=i(9).split(":")
t={x:n[1],y:n[0]}}else t={x:I.width,y:I.height}
l(e,{iframe:I.iframe,screenX:Number(t.x),screenY:Number(t.y),type:I.type})}function l(e,t){return A(R,e,t)}var h,g,v,y,E,T,x=e.data,I={},R=null
"[iFrameResizerChild]Ready"===x?function(){for(var e in m)L("iFrame requested init",F(e),m[e].iframe,e)}():d===(""+x).slice(0,f)&&x.slice(f).split(":")[0]in m?(y=(v=x.slice(f).split(":"))[1]?parseInt(v[1],10):0,E=m[v[0]]&&m[v[0]].iframe,T=getComputedStyle(E),I={iframe:E,id:v[0],height:y+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(T)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(T),width:v[2],type:v[3]},R=I.id,m[R]&&(m[R].loaded=!0),(g=I.type in{true:1,false:1,undefined:1})&&S(R,"Ignoring init message from meta parent page"),!g&&function(e){var t=!0
return m[e]||(t=!1,w(I.type+" No settings for "+e+". Message was: "+x)),t}(R)&&(S(R,"Received: "+x),h=!0,null===I.iframe&&(w(R,"IFrame ("+I.id+") not found"),h=!1),h&&function(){var t,n=e.origin,i=m[R]&&m[R].checkOrigin
if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1
for(S(R,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0
break}return t}():(t=m[R]&&m[R].remoteHost,S(R,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+I.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.")
return!0}()&&function(){switch(m[R]&&m[R].firstRun&&m[R]&&(m[R].firstRun=!1),I.type){case"close":O(I.iframe)
break
case"message":e=i(6),S(R,"onMessage passed: {iframe: "+I.iframe.id+", message: "+e+"}"),l("onMessage",{iframe:I.iframe,message:JSON.parse(e)}),S(R,"--")
break
case"mouseenter":c("onMouseEnter")
break
case"mouseleave":c("onMouseLeave")
break
case"autoResize":m[R].autoResize=JSON.parse(i(9))
break
case"scrollTo":a(!1)
break
case"scrollToOffset":a(!0)
break
case"pageInfo":r(m[R]&&m[R].iframe,R),function(){function e(e,i){function o(){m[n]?r(m[n].iframe,n):t()}["scroll","resize"].forEach((function(t){S(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",_)}var n=R
e("Add ",k),m[n]&&(m[n].stopPageInfo=t)}()
break
case"pageInfoStop":m[R]&&m[R].stopPageInfo&&(m[R].stopPageInfo(),delete m[R].stopPageInfo)
break
case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",i=decodeURIComponent(n),r=document.getElementById(i)||document.getElementsByName(i)[0]
r?(t=o(r),S(R,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),p={x:t.x,y:t.y},s(),S(R,"--")):window.top===window.self?S(R,"In page link #"+n+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(n):S(R,"In page link #"+n+" not found and window.parentIFrame not found")}(i(9))
break
case"reset":P(I)
break
case"init":t(),l("onInit",I.iframe)
break
default:0===Number(I.width)&&0===Number(I.height)?w("Unsupported message received ("+I.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e}())):C(R,"Ignored: "+x)}function A(e,t,n){var i=null,r=null
if(m[e]){if("function"!=typeof(i=m[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function")
r=i(n)}return r}function R(e){var t=e.id
delete m[t]}function O(e){var t=e.id
if(!1!==A(t,"onClose",t)){S(t,"Removing iFrame: "+t)
try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){w(e)}A(t,"onClosed",t),S(t,"--"),R(e)}else S(t,"Close iframe cancelled by onClose event")}function j(e){null===p&&S(e,"Get page position: "+(p={x:window.pageXOffset===o?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===o?document.documentElement.scrollTop:window.pageYOffset}).x+","+p.y)}function M(e){null!==p&&(window.scrollTo(p.x,p.y),S(e,"Set page position: "+p.x+","+p.y),N())}function N(){p=null}function P(e){S(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),j(e.id),U((function(){D(e),L("reset","reset",e.iframe,e.id)}),e,"reset")}function D(e){function t(t){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",S(e.id,"IFrame ("+n+") "+t+" set to "+e[t]+"px")):S("undefined","messageData id not set")}(t),function(t){l||"0"!==e[t]||(l=!0,S(n,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function t(t){return"0px"===(m[e]&&m[e].iframe.style[t])}m[e]&&null!==m[e].iframe.offsetParent&&(t("height")||t("width"))&&L("Visibility change","resize",m[e].iframe,e)}(e)}))}var t,n=E()
n&&(t=document.querySelector("body"),new n((function(t){S("window","Mutation observed: "+t[0].target+" "+t[0].type),q(e,16)})).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}(t)}var n=e.iframe.id
m[n]&&(m[n].sizeHeight&&t("height"),m[n].sizeWidth&&t("width"))}function U(e,t,n){n!==t.type&&h&&!window.jasmine?(S(t.id,"Requesting animation frame"),h(e)):e()}function L(e,t,n,i,r){var o,a=!1
i=i||n.id,m[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=m[i]&&m[i].targetOrigin,S(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(d+t,o)):w(i,"["+e+"] IFrame("+i+") not found"),r&&m[i]&&m[i].warningTimeout&&(m[i].msgTimeout=setTimeout((function(){!m[i]||m[i].loaded||a||(a=!0,w(i,"IFrame has not responded within "+m[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[i].warningTimeout)))}function F(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function B(e,t){function n(e){var t=e.split("Callback")
if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1)
this[n]=this[e],delete this[e],w(i,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i=function(n){if("string"!=typeof n)throw new TypeError("Invaild id for iFrame. Expected String")
var i
return""===n&&(e.id=(i=t&&t.id||y.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),c=(t||{}).log,S(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id)
i in m&&"iFrameResizer"in e?w(i,"Ignored iFrame, already setup."):(function(t){var r
t=t||{},m[i]=Object.create(null),m[i].iframe=e,m[i].firstRun=!0,m[i].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(m[i][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),m[i]&&(m[i].targetOrigin=!0===m[i].checkOrigin?""===(r=m[i].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(t),function(){switch(S(i,"IFrame scrolling "+(m[i]&&m[i].scrolling?"enabled":"disabled")+" for "+i),e.style.overflow=!1===(m[i]&&m[i].scrolling)?"hidden":"auto",m[i]&&m[i].scrolling){case"omit":break
case!0:e.scrolling="yes"
break
case!1:e.scrolling="no"
break
default:e.scrolling=m[i]?m[i].scrolling:"no"}}(),function(){function t(t){var n=m[i][t]
1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,S(i,"Set "+t+" = "+e.style[t]))}function n(e){if(m[i]["min"+e]>m[i]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(m[i]&&m[i].bodyMargin)&&"0"!==(m[i]&&m[i].bodyMargin)||(m[i].bodyMarginV1=m[i].bodyMargin,m[i].bodyMargin=m[i].bodyMargin+"px"),function(t){var n=E()
n&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&O(e)}))}))})).observe(e.parentNode,{childList:!0})}(n),k(e,"load",(function(){var n,r
L("iFrame.onload",t,e,o,!0),n=m[i]&&m[i].firstRun,r=m[i]&&m[i].heightCalculationMethod in g,!n&&r&&P({iframe:e,height:0,width:0,type:"init"})})),L("init",t,e,o,!0)}(F(i)),m[i]&&(m[i].iframe.iFrameResizer={close:O.bind(null,m[i].iframe),removeListeners:R.bind(null,m[i].iframe),resize:L.bind(null,"Window resize","resize",m[i].iframe),moveToAnchor:function(e){L("Move to anchor","moveToAnchor:"+e,m[i].iframe,i)},sendMessage:function(e){L("Send Message","message:"+(e=JSON.stringify(e)),m[i].iframe,i)}}))}function q(e,t){null===v&&(v=setTimeout((function(){v=null,e()}),t))}function H(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visibility change"),q((function(){G("Tab Visible","resize")}),16))}function G(e,t){Object.keys(m).forEach((function(n){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(n)&&L(e,t,m[n].iframe,n)}))}function V(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element")
if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),B(n,e),t.push(n))}var t
return function(){var e,t=["moz","webkit","o","ms"]
for(e=0;e<t.length&&!h;e+=1)h=window[t[e]+"RequestAnimationFrame"]
h?h=h.bind(window):S("setup","RequestAnimationFrame not supported")}(),k(window,"message",I),k(window,"resize",(function(){S("window","Trigger event: resize"),q((function(){G("Window resize","resize")}),16)})),k(document,"visibilitychange",H),k(document,"-webkit-visibilitychange",H),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&w("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(o,n))
break
case"object":e(n,i)
break
default:throw new TypeError("Unexpected data type ("+typeof i+")")}return t}}}()},77577:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>u})
var i,r=function(){function e(){this.registry=new WeakMap}return e.prototype.elementExists=function(e){return this.registry.has(e)},e.prototype.getElement=function(e){return this.registry.get(e)},e.prototype.addElement=function(e,t){e&&this.registry.set(e,t||{})},e.prototype.removeElement=function(e){this.registry.delete(e)},e.prototype.destroyRegistry=function(){this.registry=new WeakMap},e}(),o=function(){}
!function(e){e.enter="enter",e.exit="exit"}(i||(i={}))
var a,s=function(){function e(){this.registry=new r}return e.prototype.addCallback=function(e,t,n){var r,o,a
e===i.enter?((r={})[i.enter]=n,a=r):((o={})[i.exit]=n,a=o),this.registry.addElement(t,Object.assign({},this.registry.getElement(t),a))},e.prototype.dispatchCallback=function(e,t,n){if(e===i.enter){var r=this.registry.getElement(t).enter;(void 0===r?o:r)(n)}else{var a=this.registry.getElement(t)
a&&a.exit&&a.exit(n)}},e}(),c=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){return l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])
return e},l.apply(this,arguments)}
const u=function(e){function t(){var t=e.call(this)||this
return t.elementRegistry=new r,t}return c(t,e),t.prototype.observe=function(e,t){void 0===t&&(t={}),e&&(this.elementRegistry.addElement(e,l({},t)),this.setupObserver(e,l({},t)))},t.prototype.unobserve=function(e,t){var n=this.findMatchingRootEntry(t)
n&&n.intersectionObserver.unobserve(e)},t.prototype.addEnterCallback=function(e,t){this.addCallback(i.enter,e,t)},t.prototype.addExitCallback=function(e,t){this.addCallback(i.exit,e,t)},t.prototype.dispatchEnterCallback=function(e,t){this.dispatchCallback(i.enter,e,t)},t.prototype.dispatchExitCallback=function(e,t){this.dispatchCallback(i.exit,e,t)},t.prototype.destroy=function(){this.elementRegistry.destroyRegistry()},t.prototype.setupOnIntersection=function(e){var t=this
return function(n){return t.onIntersection(e,n)}},t.prototype.setupObserver=function(e,t){var n,i,r=t.root,o=void 0===r?window:r,a=this.findRootFromRegistry(o)
if(a&&(i=this.determineMatchingElements(t,a)),i){var s=i.elements,c=i.intersectionObserver
s.push(e),c&&c.observe(e)}else{var l={elements:[e],intersectionObserver:c=this.newObserver(e,t),options:t},u=this.stringifyOptions(t)
a?a[u]=l:this.elementRegistry.addElement(o,((n={})[u]=l,n))}},t.prototype.newObserver=function(e,t){var n=t.root,i=t.rootMargin,r=t.threshold,o=new IntersectionObserver(this.setupOnIntersection(t).bind(this),{root:n,rootMargin:i,threshold:r})
return o.observe(e),o},t.prototype.onIntersection=function(e,t){var n=this
t.forEach((function(t){var i=t.isIntersecting,r=t.intersectionRatio,o=e.threshold||0
Array.isArray(o)&&(o=o[o.length-1])
var a=n.findMatchingRootEntry(e)
i||r>o?a&&a.elements.some((function(e){return!(!e||e!==t.target||(n.dispatchEnterCallback(e,t),0))})):a&&a.elements.some((function(e){return!(!e||e!==t.target||(n.dispatchExitCallback(e,t),0))}))}))},t.prototype.findRootFromRegistry=function(e){if(this.elementRegistry)return this.elementRegistry.getElement(e)},t.prototype.findMatchingRootEntry=function(e){var t=e.root,n=void 0===t?window:t,i=this.findRootFromRegistry(n)
if(i)return i[this.stringifyOptions(e)]},t.prototype.determineMatchingElements=function(e,t){var n=this,i=Object.keys(t).filter((function(i){var r=t[i].options
return n.areOptionsSame(e,r)}))[0]
return t[i]},t.prototype.areOptionsSame=function(e,t){if(e===t)return!0
var n=Object.prototype.toString.call(e),i=Object.prototype.toString.call(t)
if(n!==i)return!1
if("[object Object]"!==n&&"[object Object]"!==i)return e===t
if(e&&t&&"object"==typeof e&&"object"==typeof t)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!1===this.areOptionsSame(e[r],t[r]))return!1
return!0},t.prototype.stringifyOptions=function(e){var t=e.root
return JSON.stringify(e,(function(e,n){if("root"===e&&t){var i=Array.prototype.slice.call(t.classList).reduce((function(e,t){return e+t}),""),r=t.id
return"".concat(r,"-").concat(i)}return n}))},t}(s)},9823:(e,t,n)=>{var i=n(66007).toUnsigned,r=n(95707),o=function(e,t){var n,a,s,c,l,u=[]
if(!t.length)return null
for(n=0;n<e.byteLength;)a=i(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),s=r(e.subarray(n+4,n+8)),c=a>1?n+a:e.byteLength,s===t[0]&&(1===t.length?u.push(e.subarray(n+8,c)):(l=o(e.subarray(n+8,c),t.slice(1))).length&&(u=u.concat(l))),n=c
return u}
e.exports=o},95707:e=>{e.exports=function(e){var t=""
return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])}},52693:(e,t,n)=>{"use strict"
var i,r,o,a,s,c,l=n(66007).toUnsigned,u=n(66007).toHexString,d=n(9823),f=n(95707),p=n(89795),h=n(18059),g=n(23981),m=n(67306).getUint64,v=n(68188)
i=function(e){return d(e,["moov","trak"]).reduce((function(e,t){var n,i,r,o,a
return(n=d(t,["tkhd"])[0])?(i=n[0],o=l(n[r=0===i?12:20]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),(a=d(t,["mdia","mdhd"])[0])?(r=0===(i=a[0])?12:20,e[o]=l(a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3]),e):null):null}),{})},r=function(e,t){var n=d(t,["moof","traf"]).reduce((function(t,n){var i,r=d(n,["tfhd"])[0],o=l(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),a=e[o]||9e4,s=d(n,["tfdt"])[0],c=new DataView(s.buffer,s.byteOffset,s.byteLength)
let u
return"bigint"==typeof(i=1===s[0]?m(s.subarray(4,12)):c.getUint32(4))?u=i/v.BigInt(a):"number"!=typeof i||isNaN(i)||(u=i/a),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t}),1/0)
return"bigint"==typeof n||isFinite(n)?n:0},o=function(e,t){var n,i=d(t,["moof","traf"]),r=0,o=0
if(i&&i.length){var a=d(i[0],["tfhd"])[0],s=d(i[0],["trun"])[0],c=d(i[0],["tfdt"])[0]
if(a&&(n=p(a).trackId),c&&(r=g(c).baseMediaDecodeTime),s){var l=h(s)
l.samples&&l.samples.length&&(o=l.samples[0].compositionTimeOffset||0)}}var u=e[n]||9e4
"bigint"==typeof r&&(o=v.BigInt(o),u=v.BigInt(u))
var f=(r+o)/u
return"bigint"==typeof f&&f<Number.MAX_SAFE_INTEGER&&(f=Number(f)),f},a=function(e){var t=d(e,["moov","trak"]),n=[]
return t.forEach((function(e){var t=d(e,["mdia","hdlr"]),i=d(e,["tkhd"])
t.forEach((function(e,t){var r,o,a=f(e.subarray(8,12)),s=i[t]
"vide"===a&&(o=0===(r=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),n.push(o))}))})),n},c=function(e){var t=0===e[0]?12:20
return l(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},s=function(e){var t=d(e,["moov","trak"]),n=[]
return t.forEach((function(e){var t,i,r={},o=d(e,["tkhd"])[0]
o&&(i=(t=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20))
var a=d(e,["mdia","hdlr"])[0]
if(a){var s=f(a.subarray(8,12))
r.type="vide"===s?"video":"soun"===s?"audio":s}var l=d(e,["mdia","minf","stbl","stsd"])[0]
if(l){var p=l.subarray(8)
r.codec=f(p.subarray(4,8))
var h,g=d(p,[r.codec])[0]
g&&(/^[asm]vc[1-9]$/i.test(r.codec)?(h=g.subarray(78),"avcC"===f(h.subarray(4,8))&&h.length>11?(r.codec+=".",r.codec+=u(h[9]),r.codec+=u(h[10]),r.codec+=u(h[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(h=g.subarray(28),"esds"===f(h.subarray(4,8))&&h.length>20&&0!==h[19]?(r.codec+="."+u(h[19]),r.codec+="."+u(h[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var m=d(e,["mdia","mdhd"])[0]
m&&(r.timescale=c(m)),n.push(r)})),n},e.exports={findBox:d,parseType:f,timescale:i,startTime:r,compositionStartTime:o,videoTrackIds:a,tracks:s,getTimescaleFromMediaHeader:c}},53050:e=>{e.exports=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}}},23981:(e,t,n)=>{var i=n(66007).toUnsigned,r=n(67306).getUint64
e.exports=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))}
return 1===t.version?t.baseMediaDecodeTime=r(e.subarray(4)):t.baseMediaDecodeTime=i(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t}},89795:e=>{e.exports=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],o=2&i.flags[2],a=8&i.flags[2],s=16&i.flags[2],c=32&i.flags[2],l=65536&i.flags[0],u=131072&i.flags[0]
return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),o&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),a&&(i.defaultSampleDuration=n.getUint32(t),t+=4),s&&(i.defaultSampleSize=n.getUint32(t),t+=4),c&&(i.defaultSampleFlags=n.getUint32(t)),l&&(i.durationIsEmpty=!0),!r&&u&&(i.baseDataOffsetIsMoof=!0),i}},18059:(e,t,n)=>{var i=n(53050)
e.exports=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),o=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],c=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],d=r.getUint32(4),f=8
for(o&&(n.dataOffset=r.getInt32(f),f+=4),a&&d&&(t={flags:i(e.subarray(f,f+4))},f+=4,s&&(t.duration=r.getUint32(f),f+=4),c&&(t.size=r.getUint32(f),f+=4),u&&(1===n.version?t.compositionTimeOffset=r.getInt32(f):t.compositionTimeOffset=r.getUint32(f),f+=4),n.samples.push(t),d--);d--;)t={},s&&(t.duration=r.getUint32(f),f+=4),c&&(t.size=r.getUint32(f),f+=4),l&&(t.flags=i(e.subarray(f,f+4)),f+=4),u&&(1===n.version?t.compositionTimeOffset=r.getInt32(f):t.compositionTimeOffset=r.getUint32(f),f+=4),n.samples.push(t)
return n}},66007:e=>{e.exports={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}}},67306:e=>{var t=Math.pow(2,32)
e.exports={getUint64:function(e){var n,i=new DataView(e.buffer,e.byteOffset,e.byteLength)
return i.getBigUint64?(n=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(n):n:i.getUint32(0)*t+i.getUint32(4)},MAX_UINT32:t}},63583:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{ObliviousSet:()=>i,now:()=>o,removeTooOldValues:()=>r})
var i=function(){function e(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return e.prototype.has=function(e){return this.set.has(e)},e.prototype.add=function(e){var t=this
this.timeMap.set(e,o()),this.set.add(e),setTimeout((function(){r(t)}),0)},e.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},e}()
function r(e){for(var t=o()-e.ttl,n=e.set[Symbol.iterator]();;){var i=n.next().value
if(!i)return
if(!(e.timeMap.get(i)<t))return
e.timeMap.delete(i),e.set.delete(i)}}function o(){return(new Date).getTime()}},72371:(e,t)=>{"use strict"
function n(e,t,n,i){for(var r=e[t++],o=1<<r,a=o+1,s=a+1,c=r+1,l=(1<<c)-1,u=0,d=0,f=0,p=e[t++],h=new Int32Array(4096),g=null;;){for(;u<16&&0!==p;)d|=e[t++]<<u,u+=8,1===p?p=e[t++]:--p
if(u<c)break
var m=d&l
if(d>>=c,u-=c,m!==o){if(m===a)break
for(var v=m<s?m:g,y=0,b=v;b>o;)b=h[b]>>8,++y
var E=b
if(f+y+(v!==m?1:0)>i)return void console.log("Warning, gif stream longer than expected.")
n[f++]=E
var k=f+=y
for(v!==m&&(n[f++]=E),b=v;y--;)b=h[b],n[--k]=255&b,b>>=8
null!==g&&s<4096&&(h[s++]=g<<8|E,s>=l+1&&c<12&&(++c,l=l<<1|1)),g=m}else s=a+1,l=(1<<(c=r+1))-1,g=null}return f!==i&&console.log("Warning, gif stream shorter than expected."),n}try{t.N=function(e){var t=0
if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.")
var i=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,o=e[t++],a=o>>7,s=1<<1+(7&o)
e[t++],e[t++]
var c=null,l=null
a&&(c=t,l=s,t+=3*s)
var u=!0,d=[],f=0,p=null,h=0,g=null
for(this.width=i,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,g=e[t++]|e[t++]<<8,t++
else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size")
if(0===I)break
t+=I}break
case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.")
var m=e[t++]
f=e[t++]|e[t++]<<8,p=e[t++],0==(1&m)&&(p=null),h=m>>2&7,t++
break
case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size")
if(0===I)break
t+=I}break
default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break
case 44:var v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,E=e[t++]|e[t++]<<8,k=e[t++],_=k>>6&1,T=1<<1+(7&k),S=c,C=l,w=!1
k>>7&&(w=!0,S=t,C=T,t+=3*T)
var x=t
for(t++;;){var I
if(!((I=e[t++])>=0))throw Error("Invalid block size")
if(0===I)break
t+=I}d.push({x:v,y:y,width:b,height:E,has_local_palette:w,palette_offset:S,palette_size:C,data_offset:x,data_length:t-x,transparent_index:p,interlaced:!!_,delay:f,disposal:h})
break
case 59:u=!1
break
default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return g},this.frameInfo=function(e){if(e<0||e>=d.length)throw new Error("Frame index out of range.")
return d[e]},this.decodeAndBlitFrameBGRA=function(t,r){var o=this.frameInfo(t),a=o.width*o.height,s=new Uint8Array(a)
n(e,o.data_offset,s,a)
var c=o.palette_offset,l=o.transparent_index
null===l&&(l=256)
var u=o.width,d=i-u,f=u,p=4*(o.y*i+o.x),h=4*((o.y+o.height)*i+o.x),g=p,m=4*d
!0===o.interlaced&&(m+=4*i*7)
for(var v=8,y=0,b=s.length;y<b;++y){var E=s[y]
if(0===f&&(f=u,(g+=m)>=h&&(m=4*d+4*i*(v-1),g=p+(u+d)*(v<<1),v>>=1)),E===l)g+=4
else{var k=e[c+3*E],_=e[c+3*E+1],T=e[c+3*E+2]
r[g++]=T,r[g++]=_,r[g++]=k,r[g++]=255}--f}},this.decodeAndBlitFrameRGBA=function(t,r){var o=this.frameInfo(t),a=o.width*o.height,s=new Uint8Array(a)
n(e,o.data_offset,s,a)
var c=o.palette_offset,l=o.transparent_index
null===l&&(l=256)
var u=o.width,d=i-u,f=u,p=4*(o.y*i+o.x),h=4*((o.y+o.height)*i+o.x),g=p,m=4*d
!0===o.interlaced&&(m+=4*i*7)
for(var v=8,y=0,b=s.length;y<b;++y){var E=s[y]
if(0===f&&(f=u,(g+=m)>=h&&(m=4*d+4*i*(v-1),g=p+(u+d)*(v<<1),v>>=1)),E===l)g+=4
else{var k=e[c+3*E],_=e[c+3*E+1],T=e[c+3*E+2]
r[g++]=k,r[g++]=_,r[g++]=T,r[g++]=255}--f}}}}catch(e){}},79103:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>De})
var i=Object.create
function r(){var e=i(null)
return e.__=void 0,delete e.__,e}var o=function(e,t,n){this.path=e,this.matcher=t,this.delegate=n}
o.prototype.to=function(e,t){var n=this.delegate
if(n&&n.willAddRoute&&(e=n.willAddRoute(this.matcher.target,e)),this.matcher.add(this.path,e),t){if(0===t.length)throw new Error("You must have an argument in the function passed to `to`")
this.matcher.addChild(this.path,e,t,this.delegate)}}
var a=function(e){this.routes=r(),this.children=r(),this.target=e}
function s(e,t,n){return function(i,r){var a=e+i
if(!r)return new o(a,t,n)
r(s(a,t,n))}}function c(e,t,n){for(var i=0,r=0;r<e.length;r++)i+=e[r].path.length
var o={path:t=t.substr(i),handler:n}
e.push(o)}function l(e,t,n,i){for(var r=t.routes,o=Object.keys(r),a=0;a<o.length;a++){var s=o[a],u=e.slice()
c(u,s,r[s])
var d=t.children[s]
d?l(u,d,n,i):n.call(i,u)}}function u(e){return e.split("/").map(f).join("/")}a.prototype.add=function(e,t){this.routes[e]=t},a.prototype.addChild=function(e,t,n,i){var r=new a(t)
this.children[e]=r
var o=s(e,r,i)
i&&i.contextEntered&&i.contextEntered(t,o),n(o)}
var d=/%|\//g
function f(e){return e.length<3||-1===e.indexOf("%")?e:decodeURIComponent(e).replace(d,encodeURIComponent)}var p=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g
function h(e){return encodeURIComponent(e).replace(p,decodeURIComponent)}var g=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,m=Array.isArray,v=Object.prototype.hasOwnProperty
function y(e,t){if("object"!=typeof e||null===e)throw new Error("You must pass an object as the second argument to `generate`.")
if(!v.call(e,t))throw new Error("You must provide param `"+t+"` to `generate`.")
var n=e[t],i="string"==typeof n?n:""+n
if(0===i.length)throw new Error("You must provide a param `"+t+"`.")
return i}var b=[]
b[0]=function(e,t){for(var n=t,i=e.value,r=0;r<i.length;r++){var o=i.charCodeAt(r)
n=n.put(o,!1,!1)}return n},b[1]=function(e,t){return t.put(47,!0,!0)},b[2]=function(e,t){return t.put(-1,!1,!0)},b[4]=function(e,t){return t}
var E=[]
E[0]=function(e){return e.value.replace(g,"\\$1")},E[1]=function(){return"([^/]+)"},E[2]=function(){return"(.+)"},E[4]=function(){return""}
var k=[]
k[0]=function(e){return e.value},k[1]=function(e,t){var n=y(t,e.value)
return O.ENCODE_AND_DECODE_PATH_SEGMENTS?h(n):n},k[2]=function(e,t){return y(t,e.value)},k[4]=function(){return""}
var _=Object.freeze({}),T=Object.freeze([])
function S(e,t,n){t.length>0&&47===t.charCodeAt(0)&&(t=t.substr(1))
for(var i=t.split("/"),r=void 0,o=void 0,a=0;a<i.length;a++){var s,c,l=i[a]
12&(s=2<<(c=""===l?4:58===l.charCodeAt(0)?1:42===l.charCodeAt(0)?2:0))&&(l=l.slice(1),(r=r||[]).push(l),(o=o||[]).push(0!=(4&s))),14&s&&n[c]++,e.push({type:c,value:f(l)})}return{names:r||T,shouldDecodes:o||T}}function C(e,t,n){return e.char===t&&e.negate===n}var w=function(e,t,n,i,r){this.states=e,this.id=t,this.char=n,this.negate=i,this.nextStates=r?t:null,this.pattern="",this._regex=void 0,this.handlers=void 0,this.types=void 0}
function x(e,t){return e.negate?e.char!==t&&-1!==e.char:e.char===t||-1===e.char}function I(e,t){for(var n=[],i=0,r=e.length;i<r;i++){var o=e[i]
n=n.concat(o.match(t))}return n}w.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},w.prototype.get=function(e,t){var n=this.nextStates
if(null!==n)if(m(n))for(var i=0;i<n.length;i++){var r=this.states[n[i]]
if(C(r,e,t))return r}else{var o=this.states[n]
if(C(o,e,t))return o}},w.prototype.put=function(e,t,n){var i
if(i=this.get(e,t))return i
var r=this.states
return i=new w(r,r.length,e,t,n),r[r.length]=i,null==this.nextStates?this.nextStates=i.id:m(this.nextStates)?this.nextStates.push(i.id):this.nextStates=[this.nextStates,i.id],i},w.prototype.match=function(e){var t=this.nextStates
if(!t)return[]
var n=[]
if(m(t))for(var i=0;i<t.length;i++){var r=this.states[t[i]]
x(r,e)&&n.push(r)}else{var o=this.states[t]
x(o,e)&&n.push(o)}return n}
var A=function(e){this.length=0,this.queryParams=e||{}}
function R(e){var t
e=e.replace(/\+/gm,"%20")
try{t=decodeURIComponent(e)}catch(e){t=""}return t}A.prototype.splice=Array.prototype.splice,A.prototype.slice=Array.prototype.slice,A.prototype.push=Array.prototype.push
var O=function(){this.names=r()
var e=[],t=new w(e,0,-1,!0,!1)
e[0]=t,this.states=e,this.rootState=t}
O.prototype.add=function(e,t){for(var n,i=this.rootState,r="^",o=[0,0,0],a=new Array(e.length),s=[],c=!0,l=0,u=0;u<e.length;u++){for(var d=e[u],f=S(s,d.path,o),p=f.names,h=f.shouldDecodes;l<s.length;l++){var g=s[l]
4!==g.type&&(c=!1,i=i.put(47,!1,!1),r+="/",i=b[g.type](g,i),r+=E[g.type](g))}a[u]={handler:d.handler,names:p,shouldDecodes:h}}c&&(i=i.put(47,!1,!1),r+="/"),i.handlers=a,i.pattern=r+"$",i.types=o,"object"==typeof t&&null!==t&&t.as&&(n=t.as),n&&(this.names[n]={segments:s,handlers:a})},O.prototype.handlersFor=function(e){var t=this.names[e]
if(!t)throw new Error("There is no route named "+e)
for(var n=new Array(t.handlers.length),i=0;i<t.handlers.length;i++){var r=t.handlers[i]
n[i]=r}return n},O.prototype.hasRoute=function(e){return!!this.names[e]},O.prototype.generate=function(e,t){var n=this.names[e],i=""
if(!n)throw new Error("There is no route named "+e)
for(var r=n.segments,o=0;o<r.length;o++){var a=r[o]
4!==a.type&&(i+="/",i+=k[a.type](a,t))}return"/"!==i.charAt(0)&&(i="/"+i),t&&t.queryParams&&(i+=this.generateQueryString(t.queryParams)),i},O.prototype.generateQueryString=function(e){var t=[],n=Object.keys(e)
n.sort()
for(var i=0;i<n.length;i++){var r=n[i],o=e[r]
if(null!=o){var a=encodeURIComponent(r)
if(m(o))for(var s=0;s<o.length;s++){var c=r+"[]="+encodeURIComponent(o[s])
t.push(c)}else a+="="+encodeURIComponent(o),t.push(a)}}return 0===t.length?"":"?"+t.join("&")},O.prototype.parseQueryString=function(e){for(var t=e.split("&"),n={},i=0;i<t.length;i++){var r=t[i].split("="),o=R(r[0]),a=o.length,s=!1,c=void 0
1===r.length?c="true":(a>2&&"[]"===o.slice(a-2)&&(s=!0,n[o=o.slice(0,a-2)]||(n[o]=[])),c=r[1]?R(r[1]):""),s?n[o].push(c):n[o]=c}return n},O.prototype.recognize=function(e){var t,n=[this.rootState],i={},r=!1,o=e.indexOf("#");-1!==o&&(e=e.substr(0,o))
var a=e.indexOf("?")
if(-1!==a){var s=e.substr(a+1,e.length)
e=e.substr(0,a),i=this.parseQueryString(s)}"/"!==e.charAt(0)&&(e="/"+e)
var c=e
O.ENCODE_AND_DECODE_PATH_SEGMENTS?e=u(e):(e=decodeURI(e),c=decodeURI(c))
var l=e.length
l>1&&"/"===e.charAt(l-1)&&(e=e.substr(0,l-1),c=c.substr(0,c.length-1),r=!0)
for(var d=0;d<e.length&&(n=I(n,e.charCodeAt(d))).length;d++);for(var f=[],p=0;p<n.length;p++)n[p].handlers&&f.push(n[p])
n=function(e){return e.sort((function(e,t){var n=e.types||[0,0,0],i=n[0],r=n[1],o=n[2],a=t.types||[0,0,0],s=a[0],c=a[1],l=a[2]
if(o!==l)return o-l
if(o){if(i!==s)return s-i
if(r!==c)return c-r}return r!==c?r-c:i!==s?s-i:0}))}(f)
var h=f[0]
return h&&h.handlers&&(r&&h.pattern&&"(.+)$"===h.pattern.slice(-5)&&(c+="/"),t=function(e,t,n){var i=e.handlers,r=e.regex()
if(!r||!i)throw new Error("state not initialized")
var o=t.match(r),a=1,s=new A(n)
s.length=i.length
for(var c=0;c<i.length;c++){var l=i[c],u=l.names,d=l.shouldDecodes,f=_,p=!1
if(u!==T&&d!==T)for(var h=0;h<u.length;h++){p=!0
var g=u[h],m=o&&o[a++]
f===_&&(f={}),O.ENCODE_AND_DECODE_PATH_SEGMENTS&&d[h]?f[g]=m&&decodeURIComponent(m):f[g]=m}s[c]={handler:l.handler,params:f,isDynamic:p}}return s}(h,c,i)),t},O.VERSION="0.3.4",O.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,O.Normalizer={normalizeSegment:f,normalizePath:u,encodePathSegment:h},O.prototype.map=function(e,t){var n=new a
e(s("",n,this.delegate)),l([],n,(function(e){t?t(this,e):this.add(e)}),this)}
const j=O
var M=function(e,t,n,i){this.type=e,this.bubbles=t,this.cancelable=n,this.target=i}
M.prototype={stopPropagation:function(){},preventDefault:function(){this.defaultPrevented=!0}}
var N={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},P={"Accept-Charset":!0,"Accept-Encoding":!0,Connection:!0,"Content-Length":!0,Cookie:!0,Cookie2:!0,"Content-Transfer-Encoding":!0,Date:!0,Expect:!0,Host:!0,"Keep-Alive":!0,Referer:!0,TE:!0,Trailer:!0,"Transfer-Encoding":!0,Upgrade:!0,"User-Agent":!0,Via:!0}
function D(e,t){t.addEventListener(e,(function(n){var i=t["on"+e]
i&&"function"==typeof i&&i.call(n.target,n)}))}function U(){this._eventListeners={}
for(var e=["loadstart","progress","load","abort","loadend"],t=e.length-1;t>=0;t--)D(e[t],this)}function L(){U.call(this),this.readyState=L.UNSENT,this.requestHeaders={},this.requestBody=null,this.status=0,this.statusText="",this.upload=new U,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.onreadystatechange=null,this.ontimeout=null}U.prototype={addEventListener:function(e,t){this._eventListeners[e]=this._eventListeners[e]||[],this._eventListeners[e].push(t)},removeEventListener:function(e,t){for(var n=this._eventListeners[e]||[],i=0,r=n.length;i<r;++i)if(n[i]==t)return n.splice(i,1)},dispatchEvent:function(e){for(var t=e.type,n=this._eventListeners[t]||[],i=0;i<n.length;i++)"function"==typeof n[i]?n[i].call(this,e):n[i].handleEvent(e)
return!!e.defaultPrevented},_progress:function(e,t,n){var i=new M("progress")
i.target=this,i.lengthComputable=e,i.loaded=t,i.total=n,this.dispatchEvent(i)}},L.prototype=new U,L.UNSENT=0,L.OPENED=1,L.HEADERS_RECEIVED=2,L.LOADING=3,L.DONE=4
var F={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,async:!0,withCredentials:!1,open:function(e,t,n,i,r){this.method=e,this.url=t,this.async="boolean"!=typeof n||n,this.username=i,this.password=r,this.responseText=null,this.response=this.responseText,this.responseXML=null,this.responseURL=t,this.requestHeaders={},this.sendFlag=!1,this._readyStateChange(L.OPENED)},setRequestHeader:function(e,t){if(q(this),P[e]||/^(Sec-|Proxy-)/.test(e))throw new Error('Refused to set unsafe header "'+e+'"')
this.requestHeaders[e]?this.requestHeaders[e]+=","+t:this.requestHeaders[e]=t},send:function(e){if(q(this),!/^(get|head)$/i.test(this.method)){var t=!1
Object.keys(this.requestHeaders).forEach((function(e){"content-type"===e.toLowerCase()&&(t=!0)})),t||(e||"").toString().match("FormData")||(this.requestHeaders["Content-Type"]="text/plain;charset=UTF-8"),this.requestBody=e}this.errorFlag=!1,this.sendFlag=this.async,this._readyStateChange(L.OPENED),"function"==typeof this.onSend&&this.onSend(this),this.dispatchEvent(new M("loadstart",!1,!1,this))},abort:function(){this.aborted=!0,this.responseText=null,this.response=this.responseText,this.errorFlag=!0,this.requestHeaders={},this.dispatchEvent(new M("abort",!1,!1,this)),this.readyState>L.UNSENT&&this.sendFlag&&(this._readyStateChange(L.UNSENT),this.sendFlag=!1),"function"==typeof this.onerror&&this.onerror()},getResponseHeader:function(e){if(this.readyState<L.HEADERS_RECEIVED)return null
if(/^Set-Cookie2?$/i.test(e))return null
for(var t in e=e.toLowerCase(),this.responseHeaders)if(t.toLowerCase()==e)return this.responseHeaders[t]
return null},getAllResponseHeaders:function(){if(this.readyState<L.HEADERS_RECEIVED)return""
var e=""
for(var t in this.responseHeaders)this.responseHeaders.hasOwnProperty(t)&&!/^Set-Cookie2?$/i.test(t)&&(e+=t+": "+this.responseHeaders[t]+"\r\n")
return e},overrideMimeType:function(e){"string"==typeof e&&(this.forceMimeType=e.toLowerCase())},_readyStateChange:function(e){this.readyState=e,"function"==typeof this.onreadystatechange&&this.onreadystatechange(new M("readystatechange")),this.dispatchEvent(new M("readystatechange")),this.readyState==L.DONE&&this.dispatchEvent(new M("load",!1,!1,this)),this.readyState!=L.UNSENT&&this.readyState!=L.DONE||this.dispatchEvent(new M("loadend",!1,!1,this))},_setResponseHeaders:function(e){for(var t in this.responseHeaders={},e)e.hasOwnProperty(t)&&(this.responseHeaders[t]=e[t])
this.forceMimeType&&(this.responseHeaders["Content-Type"]=this.forceMimeType),this.async?this._readyStateChange(L.HEADERS_RECEIVED):this.readyState=L.HEADERS_RECEIVED},_setResponseBody:function(e){!function(e){if(e.readyState==L.DONE)throw new Error("Request done")}(this),function(e){if(e.async&&e.readyState!=L.HEADERS_RECEIVED)throw new Error("No headers received")}(this),function(e){if("string"!=typeof e){var t=new Error("Attempted to respond to fake XMLHttpRequest with "+e+", which is not a string.")
throw t.name="InvalidBodyException",t}}(e)
var t=this.chunkSize||10,n=0
this.responseText="",this.response=this.responseText
do{this.async&&this._readyStateChange(L.LOADING),this.responseText+=e.substring(n,n+t),this.response=this.responseText,n+=t}while(n<e.length)
var i,r,o=this.getResponseHeader("Content-Type")
if(this.responseText&&(!o||/(text\/xml)|(application\/xml)|(\+xml)/.test(o)))try{this.responseXML=(i=this.responseText,"undefined"!=typeof DOMParser?r=(new DOMParser).parseFromString(i,"text/xml"):((r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(i)),r)}catch(e){}this.async?this._readyStateChange(L.DONE):this.readyState=L.DONE},respond:function(e,t,n){this._setResponseHeaders(t||{}),this.status="number"==typeof e?e:200,this.statusText=N[this.status],this._setResponseBody(n||"")}}
for(var B in F)L.prototype[B]=F[B]
function q(e){if(e.readyState!==L.OPENED)throw new Error("INVALID_STATE_ERR")
if(e.sendFlag)throw new Error("INVALID_STATE_ERR")}const H=L
var G="URLSearchParams"in self,V="Symbol"in self&&"iterator"in Symbol,K="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),W="FormData"in self,z="ArrayBuffer"in self
if(z)var X=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Q=ArrayBuffer.isView||function(e){return e&&X.indexOf(Object.prototype.toString.call(e))>-1}
function Y(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name")
return e.toLowerCase()}function $(e){return"string"!=typeof e&&(e=String(e)),e}function J(e){var t={next:function(){var t=e.shift()
return{done:void 0===t,value:t}}}
return V&&(t[Symbol.iterator]=function(){return t}),t}function Z(e){this.map={},e instanceof Z?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function ee(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"))
e.bodyUsed=!0}function te(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ne(e){var t=new FileReader,n=te(t)
return t.readAsArrayBuffer(e),n}function ie(e){if(e.slice)return e.slice(0)
var t=new Uint8Array(e.byteLength)
return t.set(new Uint8Array(e)),t.buffer}function re(){return this.bodyUsed=!1,this._initBody=function(e){var t
this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:K&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:W&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:G&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():z&&K&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ie(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):z&&(ArrayBuffer.prototype.isPrototypeOf(e)||Q(e))?this._bodyArrayBuffer=ie(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):G&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},K&&(this.blob=function(){var e=ee(this)
if(e)return e
if(this._bodyBlob)return Promise.resolve(this._bodyBlob)
if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]))
if(this._bodyFormData)throw new Error("could not read FormData body as blob")
return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ee(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var e,t,n,i=ee(this)
if(i)return i
if(this._bodyBlob)return e=this._bodyBlob,n=te(t=new FileReader),t.readAsText(e),n
if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i])
return n.join("")}(this._bodyArrayBuffer))
if(this._bodyFormData)throw new Error("could not read FormData body as text")
return Promise.resolve(this._bodyText)},W&&(this.formData=function(){return this.text().then(se)}),this.json=function(){return this.text().then(JSON.parse)},this}Z.prototype.append=function(e,t){e=Y(e),t=$(t)
var n=this.map[e]
this.map[e]=n?n+", "+t:t},Z.prototype.delete=function(e){delete this.map[Y(e)]},Z.prototype.get=function(e){return e=Y(e),this.has(e)?this.map[e]:null},Z.prototype.has=function(e){return this.map.hasOwnProperty(Y(e))},Z.prototype.set=function(e,t){this.map[Y(e)]=$(t)},Z.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Z.prototype.keys=function(){var e=[]
return this.forEach((function(t,n){e.push(n)})),J(e)},Z.prototype.values=function(){var e=[]
return this.forEach((function(t){e.push(t)})),J(e)},Z.prototype.entries=function(){var e=[]
return this.forEach((function(t,n){e.push([n,t])})),J(e)},V&&(Z.prototype[Symbol.iterator]=Z.prototype.entries)
var oe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"]
function ae(e,t){var n,i,r=(t=t||{}).body
if(e instanceof ae){if(e.bodyUsed)throw new TypeError("Already read")
this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Z(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e)
if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Z(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),oe.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests")
this._initBody(r)}function se(e){var t=new FormData
return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ")
t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function ce(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new Z(t.headers),this.url=t.url||"",this._initBody(e)}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})},re.call(ae.prototype),re.call(ce.prototype),ce.prototype.clone=function(){return new ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},ce.error=function(){var e=new ce(null,{status:0,statusText:""})
return e.type="error",e}
var le=[301,302,303,307,308]
ce.redirect=function(e,t){if(-1===le.indexOf(t))throw new RangeError("Invalid status code")
return new ce(null,{status:t,headers:{location:e}})}
var ue=self.DOMException
try{new ue}catch(e){(ue=function(e,t){this.message=e,this.name=t
var n=Error(e)
this.stack=n.stack}).prototype=Object.create(Error.prototype),ue.prototype.constructor=ue}function de(e,t){return new Promise((function(n,i){var r=new ae(e,t)
if(r.signal&&r.signal.aborted)return i(new ue("Aborted","AbortError"))
var o=new XMLHttpRequest
function a(){o.abort()}o.onload=function(){var e,t,i={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Z,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),i=n.shift().trim()
if(i){var r=n.join(":").trim()
t.append(i,r)}})),t)}
i.url="responseURL"in o?o.responseURL:i.headers.get("X-Request-URL")
var r="response"in o?o.response:o.responseText
n(new ce(r,i))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.onabort=function(){i(new ue("Aborted","AbortError"))},o.open(r.method,r.url,!0),"include"===r.credentials?o.withCredentials=!0:"omit"===r.credentials&&(o.withCredentials=!1),"responseType"in o&&K&&(o.responseType="blob"),r.headers.forEach((function(e,t){o.setRequestHeader(t,e)})),r.signal&&(r.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&r.signal.removeEventListener("abort",a)}),o.send(void 0===r._bodyInit?null:r._bodyInit)}))}de.polyfill=!0,self.fetch||(self.fetch=de,self.Headers=Z,self.Request=ae,self.Response=ce)
var fe=Object.freeze({__proto__:null,Headers:Z,Request:ae,Response:ce,get DOMException(){return ue},fetch:de}),pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},he=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1
switch(t){case"http":case"ws":return 80!==e
case"https":case"wss":return 443!==e
case"ftp":return 21!==e
case"gopher":return 70!==e
case"file":return!1}return 0!==e},ge=Object.prototype.hasOwnProperty
function me(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}var ve={stringify:function(e,t){t=t||""
var n,i,r=[]
for(i in"string"!=typeof t&&(t="?"),e)if(ge.call(e,i)){if((n=e[i])||null!=n&&!isNaN(n)||(n=""),i=encodeURIComponent(i),n=encodeURIComponent(n),null===i||null===n)continue
r.push(i+"="+n)}return r.length?t+r.join("&"):""},parse:function(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,i={};t=n.exec(e);){var r=me(t[1]),o=me(t[2])
null===r||null===o||r in i||(i[r]=o)}return i}},ye=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,be=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,Ee=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+")
function ke(e){return(e||"").toString().replace(Ee,"")}var _e=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Te={hash:1,query:1}
function Se(e){var t,n=("undefined"!=typeof window?window:void 0!==pe?pe:"undefined"!=typeof self?self:{}).location||{},i={},r=typeof(e=e||n)
if("blob:"===e.protocol)i=new we(unescape(e.pathname),{})
else if("string"===r)for(t in i=new we(e,{}),Te)delete i[t]
else if("object"===r){for(t in e)t in Te||(i[t]=e[t])
void 0===i.slashes&&(i.slashes=ye.test(e.href))}return i}function Ce(e){e=ke(e)
var t=be.exec(e)
return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function we(e,t,n){if(e=ke(e),!(this instanceof we))return new we(e,t,n)
var i,r,o,a,s,c,l=_e.slice(),u=typeof t,d=this,f=0
for("object"!==u&&"string"!==u&&(n=t,t=null),n&&"function"!=typeof n&&(n=ve.parse),t=Se(t),i=!(r=Ce(e||"")).protocol&&!r.slashes,d.slashes=r.slashes||i&&t.slashes,d.protocol=r.protocol||t.protocol||"",e=r.rest,r.slashes||(l[3]=[/(.*)/,"pathname"]);f<l.length;f++)"function"!=typeof(a=l[f])?(o=a[0],c=a[1],o!=o?d[c]=e:"string"==typeof o?~(s=e.indexOf(o))&&("number"==typeof a[2]?(d[c]=e.slice(0,s),e=e.slice(s+a[2])):(d[c]=e.slice(s),e=e.slice(0,s))):(s=o.exec(e))&&(d[c]=s[1],e=e.slice(0,s.index)),d[c]=d[c]||i&&a[3]&&t[c]||"",a[4]&&(d[c]=d[c].toLowerCase())):e=a(e)
n&&(d.query=n(d.query)),i&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t
for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,r=n[i-1],o=!1,a=0;i--;)"."===n[i]?n.splice(i,1):".."===n[i]?(n.splice(i,1),a++):a&&(0===i&&(o=!0),n.splice(i,1),a--)
return o&&n.unshift(""),"."!==r&&".."!==r||n.push(""),n.join("/")}(d.pathname,t.pathname)),he(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(a=d.auth.split(":"),d.username=a[0]||"",d.password=a[1]||""),d.origin=d.protocol&&d.host&&"file:"!==d.protocol?d.protocol+"//"+d.host:"null",d.href=d.toString()}we.prototype={set:function(e,t,n){var i=this
switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||ve.parse)(t)),i[e]=t
break
case"port":i[e]=t,he(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="")
break
case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t
break
case"host":i[e]=t,/:\d+$/.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="")
break
case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n
break
case"pathname":case"hash":if(t){var r="pathname"===e?"/":"#"
i[e]=t.charAt(0)!==r?r+t:t}else i[e]=t
break
default:i[e]=t}for(var o=0;o<_e.length;o++){var a=_e[o]
a[4]&&(i[a[1]]=i[a[1]].toLowerCase())}return i.origin=i.protocol&&i.host&&"file:"!==i.protocol?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=ve.stringify)
var t,n=this,i=n.protocol
i&&":"!==i.charAt(i.length-1)&&(i+=":")
var r=i+(n.slashes?"//":"")
return n.username&&(r+=n.username,n.password&&(r+=":"+n.password),r+="@"),r+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(r+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(r+=n.hash),r}},we.extractProtocol=Ce,we.location=Se,we.trimLeft=ke,we.qs=ve
var xe=we
function Ie(e){var t=new xe(e)
t.host||(t.href=t.href)
var n=t.pathname
"/"!==n.charAt(0)&&(n="/"+n)
var i=t.host
return"80"!==t.port&&"443"!==t.port||(i=t.hostname),{host:i,protocol:t.protocol,search:t.query,hash:t.hash,href:t.href,pathname:n,fullpath:n+(t.query||"")+(t.hash||"")}}var Ae=function(){this.verbs={GET:new j,PUT:new j,POST:new j,DELETE:new j,PATCH:new j,HEAD:new j,OPTIONS:new j}},Re=function(){function e(){this.registries={}}return e.prototype.forURL=function(e){var t=Ie(e).host,n=this.registries[t]
return void 0===n&&(n=this.registries[t]=new Ae),n.verbs},e}()
function Oe(e){function t(){H.call(this)}return t.prototype=Object.create(H.prototype),t.prototype.constructor=t,t.prototype.send=function(){if(this.sendArguments=arguments,!e.pretender.running)throw new Error("You shut down a Pretender instance while there was a pending request. That request just tried to complete. Check to see if you accidentally shut down a pretender earlier than you intended to")
H.prototype.send.apply(this,arguments),e.pretender.checkPassthrough(this)?this.passthrough():e.pretender.handleRequest(this)},t.prototype.passthrough=function(){if(!this.sendArguments)throw new Error("You attempted to passthrough a FakeRequest that was never sent. Call `.send()` on the original request first")
var t=function(e,t){var n,i=["error","timeout","abort","readystatechange"],r=[],o=["readyState","responseText","response","responseXML","responseURL","status","statusText"],a=e._passthroughRequest=new t
function s(e,t,n){e.dispatchEvent(n),e["on"+t]&&e["on"+t](n)}function c(t){a["on"+t]=function(n){!function(e,t,n){for(var i=0;i<e.length;i++){var r=e[i]
r in t&&(n[r]=t[r])}}(o,a,e),s(e,t,n)}}function l(t){a.upload&&e.upload&&e.upload["on"+t]&&(a.upload["on"+t]=function(n){s(e.upload,t,n)})}a.open(e.method,e.url,e.async,e.username,e.password),"arraybuffer"===e.responseType&&(o=["readyState","response","status","statusText"],a.responseType=e.responseType),"onload"in a&&i.push("load"),e.async&&"arraybuffer"!==e.responseType&&(i.push("progress"),r.push("progress"))
for(n=0;n<i.length;n++)c(i[n])
for(n=0;n<r.length;n++)l(r[n])
for(var u in e.async&&(a.timeout=e.timeout,a.withCredentials=e.withCredentials),e.requestHeaders)a.setRequestHeader(u,e.requestHeaders[u])
return a}(this,e.pretender._nativeXMLHttpRequest)
return t.send.apply(t,this.sendArguments),t},t.prototype._passthroughCheck=function(e,t){return this._passthroughRequest?this._passthroughRequest[e].apply(this._passthroughRequest,t):H.prototype[e].apply(this,t)},t.prototype.abort=function(){return this._passthroughCheck("abort",arguments)},t.prototype.getResponseHeader=function(){return this._passthroughCheck("getResponseHeader",arguments)},t.prototype.getAllResponseHeaders=function(){return this._passthroughCheck("getAllResponseHeaders",arguments)},e.pretender._nativeXMLHttpRequest.prototype._passthroughCheck&&console.warn("You created a second Pretender instance while there was already one running. Running two Pretender servers at once will lead to unexpected results and will be removed entirely in a future major version.Please call .shutdown() on your instances when you no longer need them to respond."),t}function je(){this.hosts=new Re
var e=arguments[arguments.length-1],t="object"==typeof e?e:null,n=t&&!1===t.trackRequests,i={push:function(){},length:0}
this.handlers=[],this.handledRequests=n?i:[],this.passthroughRequests=n?i:[],this.unhandledRequests=n?i:[],this.requestReferences=[],this.forcePassthrough=t&&!0===t.forcePassthrough,this.disableUnhandled=t&&!0===t.disableUnhandled,this._nativeXMLHttpRequest=self.XMLHttpRequest,this.running=!1
var r={pretender:this}
this.ctx=r,self.XMLHttpRequest=Oe(r),this._fetchProps=fe?["fetch","Headers","Request","Response"]:[],this._fetchProps.forEach((function(e){this["_native"+e]=self[e],self[e]=fe[e]}),this),this.running=!0
for(var o=t?arguments.length-1:arguments.length,a=0;a<o;a++)this.map(arguments[a])}function Me(e){return function(t,n,i){return this.register(e,t,n,i)}}function Ne(e,t,n){setTimeout((function(){if(!e.aborted&&!e.status){var i,r=(new Date).getTime()-t.getTime(),o=e.requestBody
i=o&&(o.byteLength||o.size||o.length)||0
var a=n<=0?0:r/n*i
e.upload._progress(!0,a,i),e._progress(!0,a,i),Ne(e,t,n)}}),50)}var Pe={}
je.prototype={get:Me("GET"),post:Me("POST"),put:Me("PUT"),delete:Me("DELETE"),patch:Me("PATCH"),head:Me("HEAD"),options:Me("OPTIONS"),map:function(e){e.call(this)},register:function(e,t,n,i){if(!n)throw new Error("The function you tried passing to Pretender to handle "+e+" "+t+" is undefined or missing.")
return n.numberOfCalls=0,n.async=i,this.handlers.push(n),this.hosts.forURL(t)[e].add([{path:Ie(t).fullpath,handler:n}]),n},passthrough:Pe,checkPassthrough:function(e){var t=e.method.toUpperCase(),n=Ie(e.url).fullpath,i=this.hosts.forURL(e.url)[t].recognize(n),r=i&&i[0]
return!!(r&&r.handler===Pe||this.forcePassthrough)&&(this.passthroughRequests.push(e),this.passthroughRequest(t,n,e),!0)},handleRequest:function(e){var t=e.method.toUpperCase(),n=e.url,i=this._handlerFor(t,n,e)
if(i){i.handler.numberOfCalls++
var r=i.handler.async
this.handledRequests.push(e)
var o=this,a=function(i){if(a=i,"[object Array]"!==Object.prototype.toString.call(a))throw new Error("Nothing returned by handler for "+n+". Remember to `return [status, headers, body];` in your route handler.")
var a,s=i[0],c=o.prepareHeaders(i[1]),l=o.prepareBody(i[2],c)
o.handleResponse(e,r,(function(){e.respond(s,c,l),o.handledRequest(t,n,e)}))}
try{var s=i.handler(e)
s&&"function"==typeof s.then?s.then((function(e){a(e)})):a(s)}catch(i){this.erroredRequest(t,n,e,i),this.resolve(e)}}else this.disableUnhandled||(this.unhandledRequests.push(e),this.unhandledRequest(t,n,e))},handleResponse:function(e,t,n){var i="function"==typeof t?t():t
if(!1===(i="boolean"==typeof i||"number"==typeof i?i:0))n()
else{var r=this
r.requestReferences.push({request:e,callback:n}),!0!==i&&(Ne(e,new Date,i),setTimeout((function(){r.resolve(e)}),i))}},resolve:function(e){for(var t=0,n=this.requestReferences.length;t<n;t++){var i=this.requestReferences[t]
if(i.request===e){i.callback(),this.requestReferences.splice(t,1)
break}}},requiresManualResolution:function(e,t){var n=this._handlerFor(e.toUpperCase(),t,{})
if(!n)return!1
var i=n.handler.async
return"function"==typeof i?!0===i():!0===i},prepareBody:function(e){return e},prepareHeaders:function(e){return e},handledRequest:function(){},passthroughRequest:function(){},unhandledRequest:function(e,t){throw new Error("Pretender intercepted "+e+" "+t+" but no handler was defined for this type of request")},erroredRequest:function(e,t,n,i){throw i.message="Pretender intercepted "+e+" "+t+" but encountered an error: "+i.message,i},_handlerFor:function(e,t,n){var i=this.hosts.forURL(t)[e].recognize(Ie(t).fullpath),r=i?i[0]:null
return r&&(n.params=r.params,n.queryParams=i.queryParams),r},shutdown:function(){self.XMLHttpRequest=this._nativeXMLHttpRequest,this._fetchProps.forEach((function(e){self[e]=this["_native"+e]}),this),this.ctx.pretender=void 0,this.running=!1}},je.parseURL=Ie,je.Hosts=Re,je.Registry=Ae
const De=je},9516:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{decode:()=>v,default:()=>k,encode:()=>y,toASCII:()=>E,toUnicode:()=>b,ucs2decode:()=>p,ucs2encode:()=>h})
const i=2147483647,r=36,o=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode
function d(e){throw new RangeError(c[e])}function f(e,t){const n=e.split("@")
let i=""
n.length>1&&(i=n[0]+"@",e=n[1])
const r=function(e,t){const n=[]
let i=e.length
for(;i--;)n[i]=t(e[i])
return n}((e=e.replace(s,".")).split("."),t).join(".")
return i+r}function p(e){const t=[]
let n=0
const i=e.length
for(;n<i;){const r=e.charCodeAt(n++)
if(r>=55296&&r<=56319&&n<i){const i=e.charCodeAt(n++)
56320==(64512&i)?t.push(((1023&r)<<10)+(1023&i)+65536):(t.push(r),n--)}else t.push(r)}return t}const h=e=>String.fromCodePoint(...e),g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},m=function(e,t,n){let i=0
for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;i+=r)e=l(e/35)
return l(i+36*e/(e+38))},v=function(e){const t=[],n=e.length
let o=0,a=128,s=72,c=e.lastIndexOf("-")
c<0&&(c=0)
for(let n=0;n<c;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n))
for(let f=c>0?c+1:0;f<n;){let c=o
for(let t=1,a=r;;a+=r){f>=n&&d("invalid-input")
const c=(u=e.charCodeAt(f++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:r;(c>=r||c>l((i-o)/t))&&d("overflow"),o+=c*t
const p=a<=s?1:a>=s+26?26:a-s
if(c<p)break
const h=r-p
t>l(i/h)&&d("overflow"),t*=h}const p=t.length+1
s=m(o-c,p,0==c),l(o/p)>i-a&&d("overflow"),a+=l(o/p),o%=p,t.splice(o++,0,a)}var u
return String.fromCodePoint(...t)},y=function(e){const t=[]
let n=(e=p(e)).length,o=128,a=0,s=72
for(const n of e)n<128&&t.push(u(n))
let c=t.length,f=c
for(c&&t.push("-");f<n;){let n=i
for(const t of e)t>=o&&t<n&&(n=t)
const p=f+1
n-o>l((i-a)/p)&&d("overflow"),a+=(n-o)*p,o=n
for(const n of e)if(n<o&&++a>i&&d("overflow"),n==o){let e=a
for(let n=r;;n+=r){const i=n<=s?1:n>=s+26?26:n-s
if(e<i)break
const o=e-i,a=r-i
t.push(u(g(i+o%a,0))),e=l(o/a)}t.push(u(g(e,0))),s=m(a,p,f==c),a=0,++f}++a,++o}return t.join("")},b=function(e){return f(e,(function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e}))},E=function(e){return f(e,(function(e){return a.test(e)?"xn--"+y(e):e}))},k={version:"2.1.0",ucs2:{decode:p,encode:h},decode:v,encode:y,toASCII:E,toUnicode:b}},93095:e=>{var t
self,t=()=>(()=>{var e={582:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>s})
var i=n(81),r=n.n(i),o=n(645),a=n.n(o)()(r())
a.push([e.id,".ql-container{position:relative;overflow:hidden}@media(pointer: coarse){.ql-cursor-caret-container{z-index:-1}}.ql-cursor.hidden{display:none}.ql-cursor .ql-cursor-caret-container,.ql-cursor .ql-cursor-flag{position:absolute}.ql-cursor .ql-cursor-flag{z-index:1;transform:translate3d(-1px, -100%, 0);opacity:0;visibility:hidden;color:#fff;padding-bottom:2px;border-radius:0 3px 3px 0}.ql-cursor .ql-cursor-flag.flag-flipped{border-radius:3px 0 0 3px;transform:translate3d(calc(-100% + 1px ), -100%, 0)}@media screen{.ql-cursor .ql-cursor-flag{transition:opacity 0ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms,visibility 0ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms}}.ql-cursor .ql-cursor-flag .ql-cursor-name{margin-left:5px;margin-right:5px;display:inline-block;margin-top:-2px;white-space:nowrap}.ql-cursor .ql-cursor-flag.no-delay[style]{transition-delay:unset !important}.ql-cursor .ql-cursor-caret-container{cursor:text;margin-left:-9px;padding:0 9px}.ql-cursor .ql-cursor-caret-container.hover+.ql-cursor-flag{opacity:1;visibility:visible;transition:none}.ql-cursor .ql-cursor-caret-container.no-pointer{pointer-events:none}.ql-cursor .ql-cursor-caret-container .ql-cursor-caret{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background-color:attr(data-color)}.ql-cursor .ql-cursor-selection-block{position:absolute;pointer-events:none}",""])
const s=a},645:e=>{"use strict"
e.exports=function(e){var t=[]
return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5]
return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]])
var a={}
if(i)for(var s=0;s<this.length;s++){var c=this[s][0]
null!=c&&(a[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l])
i&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},81:e=>{"use strict"
e.exports=function(e){return e[1]}},529:e=>{var t=-1
function n(e,s,c,l){if(e===s)return e?[[0,e]]:[]
if(null!=c){var u=function(e,t,n){var i="number"==typeof n?{index:n,length:0}:n.oldRange,r="number"==typeof n?null:n.newRange,o=e.length,a=t.length
if(0===i.length&&(null===r||0===r.length)){var s=i.index,c=e.slice(0,s),l=e.slice(s),u=r?r.index:null,f=s+a-o
if((null===u||u===f)&&!(f<0||f>a)){var p=t.slice(0,f)
if((m=t.slice(f))===l){var h=Math.min(s,f)
if((y=c.slice(0,h))===(E=p.slice(0,h)))return d(y,c.slice(h),p.slice(h),l)}}if(null===u||u===s){var g=s,m=(p=t.slice(0,g),t.slice(g))
if(p===c){var v=Math.min(o-g,a-g)
if((b=l.slice(l.length-v))===(k=m.slice(m.length-v)))return d(c,l.slice(0,l.length-v),m.slice(0,m.length-v),b)}}}if(i.length>0&&r&&0===r.length){var y=e.slice(0,i.index),b=e.slice(i.index+i.length)
if(!(a<(h=y.length)+(v=b.length))){var E=t.slice(0,h),k=t.slice(a-v)
if(y===E&&b===k)return d(y,e.slice(h,o-v),t.slice(h,a-v),b)}}return null}(e,s,c)
if(u)return u}var f=r(e,s),p=e.substring(0,f)
f=o(e=e.substring(f),s=s.substring(f))
var h=e.substring(e.length-f),g=function(e,a){var s
if(!e)return[[1,a]]
if(!a)return[[t,e]]
var c=e.length>a.length?e:a,l=e.length>a.length?a:e,u=c.indexOf(l)
if(-1!==u)return s=[[1,c.substring(0,u)],[0,l],[1,c.substring(u+l.length)]],e.length>a.length&&(s[0][0]=s[2][0]=t),s
if(1===l.length)return[[t,e],[1,a]]
var d=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e
if(n.length<4||2*i.length<n.length)return null
function a(e,t,n){for(var i,a,s,c,l=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!==(u=t.indexOf(l,u+1));){var f=r(e.substring(n),t.substring(u)),p=o(e.substring(0,n),t.substring(0,u))
d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),i=e.substring(0,n-p),a=e.substring(n+f),s=t.substring(0,u-p),c=t.substring(u+f))}return 2*d.length>=e.length?[i,a,s,c,d]:null}var s,c,l,u,d,f=a(n,i,Math.ceil(n.length/4)),p=a(n,i,Math.ceil(n.length/2))
return f||p?(s=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(c=s[0],l=s[1],u=s[2],d=s[3]):(u=s[0],d=s[1],c=s[2],l=s[3]),[c,l,u,d,s[4]]):null}(e,a)
if(d){var f=d[0],p=d[1],h=d[2],g=d[3],m=d[4],v=n(f,h),y=n(p,g)
return v.concat([[0,m]],y)}return function(e,n){for(var r=e.length,o=n.length,a=Math.ceil((r+o)/2),s=a,c=2*a,l=new Array(c),u=new Array(c),d=0;d<c;d++)l[d]=-1,u[d]=-1
l[s+1]=0,u[s+1]=0
for(var f=r-o,p=f%2!=0,h=0,g=0,m=0,v=0,y=0;y<a;y++){for(var b=-y+h;b<=y-g;b+=2){for(var E=s+b,k=(w=b===-y||b!==y&&l[E-1]<l[E+1]?l[E+1]:l[E-1]+1)-b;w<r&&k<o&&e.charAt(w)===n.charAt(k);)w++,k++
if(l[E]=w,w>r)g+=2
else if(k>o)h+=2
else if(p&&(S=s+f-b)>=0&&S<c&&-1!==u[S]&&w>=(T=r-u[S]))return i(e,n,w,k)}for(var _=-y+m;_<=y-v;_+=2){for(var T,S=s+_,C=(T=_===-y||_!==y&&u[S-1]<u[S+1]?u[S+1]:u[S-1]+1)-_;T<r&&C<o&&e.charAt(r-T-1)===n.charAt(o-C-1);)T++,C++
if(u[S]=T,T>r)v+=2
else if(C>o)m+=2
else if(!p){var w
if((E=s+f-_)>=0&&E<c&&-1!==l[E]&&(k=s+(w=l[E])-E,w>=(T=r-T)))return i(e,n,w,k)}}}return[[t,e],[1,n]]}(e,a)}(e=e.substring(0,e.length-f),s=s.substring(0,s.length-f))
return p&&g.unshift([0,p]),h&&g.push([0,h]),a(g,l),g}function i(e,t,i,r){var o=e.substring(0,i),a=t.substring(0,r),s=e.substring(i),c=t.substring(r),l=n(o,a),u=n(s,c)
return l.concat(u)}function r(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0
for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(o,r)==t.substring(o,r)?o=n=r:i=r,r=Math.floor((i-n)/2+n)
return s(e.charCodeAt(r-1))&&r--,r}function o(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0
for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(e.length-r,e.length-o)==t.substring(t.length-r,t.length-o)?o=n=r:i=r,r=Math.floor((i-n)/2+n)
return c(e.charCodeAt(e.length-r))&&r--,r}function a(e,n){e.push([0,""])
for(var i,s=0,c=0,d=0,f="",p="";s<e.length;)if(s<e.length-1&&!e[s][1])e.splice(s,1)
else switch(e[s][0]){case 1:d++,p+=e[s][1],s++
break
case t:c++,f+=e[s][1],s++
break
case 0:var h=s-d-c-1
if(n){if(h>=0&&u(e[h][1])){var g=e[h][1].slice(-1)
if(e[h][1]=e[h][1].slice(0,-1),f=g+f,p=g+p,!e[h][1]){e.splice(h,1),s--
var m=h-1
e[m]&&1===e[m][0]&&(d++,p=e[m][1]+p,m--),e[m]&&e[m][0]===t&&(c++,f=e[m][1]+f,m--),h=m}}l(e[s][1])&&(g=e[s][1].charAt(0),e[s][1]=e[s][1].slice(1),f+=g,p+=g)}if(s<e.length-1&&!e[s][1]){e.splice(s,1)
break}if(f.length>0||p.length>0){f.length>0&&p.length>0&&(0!==(i=r(p,f))&&(h>=0?e[h][1]+=p.substring(0,i):(e.splice(0,0,[0,p.substring(0,i)]),s++),p=p.substring(i),f=f.substring(i)),0!==(i=o(p,f))&&(e[s][1]=p.substring(p.length-i)+e[s][1],p=p.substring(0,p.length-i),f=f.substring(0,f.length-i)))
var v=d+c
0===f.length&&0===p.length?(e.splice(s-v,v),s-=v):0===f.length?(e.splice(s-v,v,[1,p]),s=s-v+1):0===p.length?(e.splice(s-v,v,[t,f]),s=s-v+1):(e.splice(s-v,v,[t,f],[1,p]),s=s-v+2)}0!==s&&0===e[s-1][0]?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,d=0,c=0,f="",p=""}""===e[e.length-1][1]&&e.pop()
var y=!1
for(s=1;s<e.length-1;)0===e[s-1][0]&&0===e[s+1][0]&&(e[s][1].substring(e[s][1].length-e[s-1][1].length)===e[s-1][1]?(e[s][1]=e[s-1][1]+e[s][1].substring(0,e[s][1].length-e[s-1][1].length),e[s+1][1]=e[s-1][1]+e[s+1][1],e.splice(s-1,1),y=!0):e[s][1].substring(0,e[s+1][1].length)==e[s+1][1]&&(e[s-1][1]+=e[s+1][1],e[s][1]=e[s][1].substring(e[s+1][1].length)+e[s+1][1],e.splice(s+1,1),y=!0)),s++
y&&a(e,n)}function s(e){return e>=55296&&e<=56319}function c(e){return e>=56320&&e<=57343}function l(e){return c(e.charCodeAt(0))}function u(e){return s(e.charCodeAt(e.length-1))}function d(e,n,i,r){return u(e)||l(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n])
return t}([[0,e],[t,n],[1,i],[0,r]])}function f(e,t,i){return n(e,t,i,!0)}f.INSERT=1,f.DELETE=t,f.EQUAL=0,e.exports=f},465:(e,t,n)=>{e=n.nmd(e)
var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",c="[object Function]",l="[object GeneratorFunction]",u="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",k="[object Float32Array]",_="[object Float64Array]",T="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",w="[object Uint8Array]",x="[object Uint8ClampedArray]",I="[object Uint16Array]",A="[object Uint32Array]",R=/\w*$/,O=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,M={}
M[o]=M["[object Array]"]=M[b]=M[E]=M[a]=M[s]=M[k]=M[_]=M[T]=M[S]=M[C]=M[u]=M[d]=M[f]=M[h]=M[g]=M[m]=M[v]=M[w]=M[x]=M[I]=M[A]=!0,M["[object Error]"]=M[c]=M[y]=!1
var N="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,P="object"==typeof self&&self&&self.Object===Object&&self,D=N||P||Function("return this")(),U=t&&!t.nodeType&&t,L=U&&e&&!e.nodeType&&e,F=L&&L.exports===U
function B(e,t){return e.set(t[0],t[1]),e}function q(e,t){return e.add(t),e}function H(e,t,n,i){var r=-1,o=e?e.length:0
for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e)
return n}function G(e){var t=!1
if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size)
return e.forEach((function(e,i){n[++t]=[i,e]})),n}function K(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size)
return e.forEach((function(e){n[++t]=e})),n}var z,X=Array.prototype,Q=Function.prototype,Y=Object.prototype,$=D["__core-js_shared__"],J=(z=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",Z=Q.toString,ee=Y.hasOwnProperty,te=Y.toString,ne=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=F?D.Buffer:void 0,re=D.Symbol,oe=D.Uint8Array,ae=K(Object.getPrototypeOf,Object),se=Object.create,ce=Y.propertyIsEnumerable,le=X.splice,ue=Object.getOwnPropertySymbols,de=ie?ie.isBuffer:void 0,fe=K(Object.keys,Object),pe=De(D,"DataView"),he=De(D,"Map"),ge=De(D,"Promise"),me=De(D,"Set"),ve=De(D,"WeakMap"),ye=De(Object,"create"),be=qe(pe),Ee=qe(he),ke=qe(ge),_e=qe(me),Te=qe(ve),Se=re?re.prototype:void 0,Ce=Se?Se.valueOf:void 0
function we(e){var t=-1,n=e?e.length:0
for(this.clear();++t<n;){var i=e[t]
this.set(i[0],i[1])}}function xe(e){var t=-1,n=e?e.length:0
for(this.clear();++t<n;){var i=e[t]
this.set(i[0],i[1])}}function Ie(e){var t=-1,n=e?e.length:0
for(this.clear();++t<n;){var i=e[t]
this.set(i[0],i[1])}}function Ae(e){this.__data__=new xe(e)}function Re(e,t,n){var i=e[t]
ee.call(e,t)&&He(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function Oe(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n
return-1}function je(e,t,n,i,r,p,y){var O
if(i&&(O=p?i(e,r,p,y):i(e)),void 0!==O)return O
if(!ze(e))return e
var j=Ge(e)
if(j){if(O=function(e){var t=e.length,n=e.constructor(t)
return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,i=e.length
for(t||(t=Array(i));++n<i;)t[n]=e[n]
return t}(e,O)}else{var N=Le(e),P=N==c||N==l
if(Ke(e))return function(e,t){if(t)return e.slice()
var n=new e.constructor(e.length)
return e.copy(n),n}(e,t)
if(N==f||N==o||P&&!p){if(G(e))return p?e:{}
if(O=function(e){return"function"!=typeof e.constructor||Be(e)?{}:ze(t=ae(e))?se(t):{}
var t}(P?{}:e),!t)return function(e,t){return Ne(e,Ue(e),t)}(e,function(e,t){return e&&Ne(t,Xe(t),e)}(O,e))}else{if(!M[N])return p?e:{}
O=function(e,t,n,i){var r,o=e.constructor
switch(t){case b:return Me(e)
case a:case s:return new o(+e)
case E:return function(e,t){var n=t?Me(e.buffer):e.buffer
return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i)
case k:case _:case T:case S:case C:case w:case x:case I:case A:return function(e,t){var n=t?Me(e.buffer):e.buffer
return new e.constructor(n,e.byteOffset,e.length)}(e,i)
case u:return function(e,t,n){return H(t?n(V(e),!0):V(e),B,new e.constructor)}(e,i,n)
case d:case m:return new o(e)
case h:return function(e){var t=new e.constructor(e.source,R.exec(e))
return t.lastIndex=e.lastIndex,t}(e)
case g:return function(e,t,n){return H(t?n(W(e),!0):W(e),q,new e.constructor)}(e,i,n)
case v:return r=e,Ce?Object(Ce.call(r)):{}}}(e,N,je,t)}}y||(y=new Ae)
var D=y.get(e)
if(D)return D
if(y.set(e,O),!j)var U=n?function(e){return function(e,t,n){var i=t(e)
return Ge(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n]
return e}(i,n(e))}(e,Xe,Ue)}(e):Xe(e)
return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n););}(U||e,(function(r,o){U&&(r=e[o=r]),Re(O,o,je(r,t,n,i,o,e,y))})),O}function Me(e){var t=new e.constructor(e.byteLength)
return new oe(t).set(new oe(e)),t}function Ne(e,t,n,i){n||(n={})
for(var r=-1,o=t.length;++r<o;){var a=t[r],s=i?i(n[a],e[a],a,n,e):void 0
Re(n,a,void 0===s?e[a]:s)}return n}function Pe(e,t){var n,i,r=e.__data__
return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function De(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t)
return function(e){return!(!ze(e)||(t=e,J&&J in t))&&(We(e)||G(e)?ne:O).test(qe(e))
var t}(n)?n:void 0}we.prototype.clear=function(){this.__data__=ye?ye(null):{}},we.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},we.prototype.get=function(e){var t=this.__data__
if(ye){var n=t[e]
return n===i?void 0:n}return ee.call(t,e)?t[e]:void 0},we.prototype.has=function(e){var t=this.__data__
return ye?void 0!==t[e]:ee.call(t,e)},we.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?i:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=Oe(t,e)
return!(n<0||(n==t.length-1?t.pop():le.call(t,n,1),0))},xe.prototype.get=function(e){var t=this.__data__,n=Oe(t,e)
return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return Oe(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,i=Oe(n,e)
return i<0?n.push([e,t]):n[i][1]=t,this},Ie.prototype.clear=function(){this.__data__={hash:new we,map:new(he||xe),string:new we}},Ie.prototype.delete=function(e){return Pe(this,e).delete(e)},Ie.prototype.get=function(e){return Pe(this,e).get(e)},Ie.prototype.has=function(e){return Pe(this,e).has(e)},Ie.prototype.set=function(e,t){return Pe(this,e).set(e,t),this},Ae.prototype.clear=function(){this.__data__=new xe},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var n=this.__data__
if(n instanceof xe){var i=n.__data__
if(!he||i.length<199)return i.push([e,t]),this
n=this.__data__=new Ie(i)}return n.set(e,t),this}
var Ue=ue?K(ue,Object):function(){return[]},Le=function(e){return te.call(e)}
function Fe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){var t=e&&e.constructor
return e===("function"==typeof t&&t.prototype||Y)}function qe(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(pe&&Le(new pe(new ArrayBuffer(1)))!=E||he&&Le(new he)!=u||ge&&Le(ge.resolve())!=p||me&&Le(new me)!=g||ve&&Le(new ve)!=y)&&(Le=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,i=n?qe(n):void 0
if(i)switch(i){case be:return E
case Ee:return u
case ke:return p
case _e:return g
case Te:return y}return t})
var Ge=Array.isArray
function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!We(e)}var Ke=de||function(){return!1}
function We(e){var t=ze(e)?te.call(e):""
return t==c||t==l}function ze(e){var t=typeof e
return!!e&&("object"==t||"function"==t)}function Xe(e){return Ve(e)?function(e,t){var n=Ge(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&ee.call(e,"callee")&&(!ce.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n)
return i}(e.length,String):[],i=n.length,r=!!i
for(var a in e)!ee.call(e,a)||r&&("length"==a||Fe(a,i))||n.push(a)
return n}(e):function(e){if(!Be(e))return fe(e)
var t=[]
for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n)
return t}(e)}e.exports=function(e){return je(e,!0,!0)}},307:(e,t,n)=>{e=n.nmd(e)
var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",k=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,T={}
T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[o]=T[a]=T[b]=T[s]=T[E]=T[c]=T[l]=T[u]=T[d]=T[f]=T[p]=T[g]=T[m]=T[v]=T[y]=!1
var S="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,C="object"==typeof self&&self&&self.Object===Object&&self,w=S||C||Function("return this")(),x=t&&!t.nodeType&&t,I=x&&e&&!e.nodeType&&e,A=I&&I.exports===x,R=A&&S.process,O=function(){try{return R&&R.binding&&R.binding("util")}catch(e){}}(),j=O&&O.isTypedArray
function M(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0
return!1}function N(e){var t=-1,n=Array(e.size)
return e.forEach((function(e,i){n[++t]=[i,e]})),n}function P(e){var t=-1,n=Array(e.size)
return e.forEach((function(e){n[++t]=e})),n}var D,U,L,F=Array.prototype,B=Function.prototype,q=Object.prototype,H=w["__core-js_shared__"],G=B.toString,V=q.hasOwnProperty,K=(D=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",W=q.toString,z=RegExp("^"+G.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=A?w.Buffer:void 0,Q=w.Symbol,Y=w.Uint8Array,$=q.propertyIsEnumerable,J=F.splice,Z=Q?Q.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=X?X.isBuffer:void 0,ne=(U=Object.keys,L=Object,function(e){return U(L(e))}),ie=Ie(w,"DataView"),re=Ie(w,"Map"),oe=Ie(w,"Promise"),ae=Ie(w,"Set"),se=Ie(w,"WeakMap"),ce=Ie(Object,"create"),le=je(ie),ue=je(re),de=je(oe),fe=je(ae),pe=je(se),he=Q?Q.prototype:void 0,ge=he?he.valueOf:void 0
function me(e){var t=-1,n=null==e?0:e.length
for(this.clear();++t<n;){var i=e[t]
this.set(i[0],i[1])}}function ve(e){var t=-1,n=null==e?0:e.length
for(this.clear();++t<n;){var i=e[t]
this.set(i[0],i[1])}}function ye(e){var t=-1,n=null==e?0:e.length
for(this.clear();++t<n;){var i=e[t]
this.set(i[0],i[1])}}function be(e){var t=-1,n=null==e?0:e.length
for(this.__data__=new ye;++t<n;)this.add(e[t])}function Ee(e){var t=this.__data__=new ve(e)
this.size=t.size}function ke(e,t){for(var n=e.length;n--;)if(Me(e[n][0],t))return n
return-1}function _e(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=V.call(e,Z),n=e[Z]
try{e[Z]=void 0
var i=!0}catch(e){}var r=W.call(e)
return i&&(t?e[Z]=n:delete e[Z]),r}(e):function(e){return W.call(e)}(e)}function Te(e){return Be(e)&&_e(e)==o}function Se(e,t,n,i,r){return e===t||(null==e||null==t||!Be(e)&&!Be(t)?e!=e&&t!=t:function(e,t,n,i,r,u){var h=Pe(e),y=Pe(t),k=h?a:Re(e),_=y?a:Re(t),T=(k=k==o?p:k)==p,S=(_=_==o?p:_)==p,C=k==_
if(C&&De(e)){if(!De(t))return!1
h=!0,T=!1}if(C&&!T)return u||(u=new Ee),h||qe(e)?Ce(e,t,n,i,r,u):function(e,t,n,i,r,o,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1
e=e.buffer,t=t.buffer
case b:return!(e.byteLength!=t.byteLength||!o(new Y(e),new Y(t)))
case s:case c:case f:return Me(+e,+t)
case l:return e.name==t.name&&e.message==t.message
case g:case v:return e==t+""
case d:var u=N
case m:var p=1&i
if(u||(u=P),e.size!=t.size&&!p)return!1
var h=a.get(e)
if(h)return h==t
i|=2,a.set(e,t)
var y=Ce(u(e),u(t),i,r,o,a)
return a.delete(e),y
case"[object Symbol]":if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,k,n,i,r,u)
if(!(1&n)){var w=T&&V.call(e,"__wrapped__"),x=S&&V.call(t,"__wrapped__")
if(w||x){var I=w?e.value():e,A=x?t.value():t
return u||(u=new Ee),r(I,A,n,i,u)}}return!!C&&(u||(u=new Ee),function(e,t,n,i,r,o){var a=1&n,s=we(e),c=s.length
if(c!=we(t).length&&!a)return!1
for(var l=c;l--;){var u=s[l]
if(!(a?u in t:V.call(t,u)))return!1}var d=o.get(e)
if(d&&o.get(t))return d==t
var f=!0
o.set(e,t),o.set(t,e)
for(var p=a;++l<c;){var h=e[u=s[l]],g=t[u]
if(i)var m=a?i(g,h,u,t,e,o):i(h,g,u,e,t,o)
if(!(void 0===m?h===g||r(h,g,n,i,o):m)){f=!1
break}p||(p="constructor"==u)}if(f&&!p){var v=e.constructor,y=t.constructor
v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,i,r,u))}(e,t,n,i,Se,r))}function Ce(e,t,n,i,r,o){var a=1&n,s=e.length,c=t.length
if(s!=c&&!(a&&c>s))return!1
var l=o.get(e)
if(l&&o.get(t))return l==t
var u=-1,d=!0,f=2&n?new be:void 0
for(o.set(e,t),o.set(t,e);++u<s;){var p=e[u],h=t[u]
if(i)var g=a?i(h,p,u,t,e,o):i(p,h,u,e,t,o)
if(void 0!==g){if(g)continue
d=!1
break}if(f){if(!M(t,(function(e,t){if(a=t,!f.has(a)&&(p===e||r(p,e,n,i,o)))return f.push(t)
var a}))){d=!1
break}}else if(p!==h&&!r(p,h,n,i,o)){d=!1
break}}return o.delete(e),o.delete(t),d}function we(e){return function(e,t,n){var i=t(e)
return Pe(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n]
return e}(i,n(e))}(e,He,Ae)}function xe(e,t){var n,i,r=e.__data__
return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t)
return function(e){return!(!Fe(e)||function(e){return!!K&&K in e}(e))&&(Ue(e)?z:k).test(je(e))}(n)?n:void 0}me.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},me.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e]
return this.size-=t?1:0,t},me.prototype.get=function(e){var t=this.__data__
if(ce){var n=t[e]
return n===i?void 0:n}return V.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__
return ce?void 0!==t[e]:V.call(t,e)},me.prototype.set=function(e,t){var n=this.__data__
return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?i:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=ke(t,e)
return!(n<0||(n==t.length-1?t.pop():J.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=ke(t,e)
return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return ke(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,i=ke(n,e)
return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(re||ve),string:new me}},ye.prototype.delete=function(e){var t=xe(this,e).delete(e)
return this.size-=t?1:0,t},ye.prototype.get=function(e){return xe(this,e).get(e)},ye.prototype.has=function(e){return xe(this,e).has(e)},ye.prototype.set=function(e,t){var n=xe(this,e),i=n.size
return n.set(e,t),this.size+=n.size==i?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,i),this},be.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.clear=function(){this.__data__=new ve,this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=t.delete(e)
return this.size=t.size,n},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__
if(n instanceof ve){var i=n.__data__
if(!re||i.length<199)return i.push([e,t]),this.size=++n.size,this
n=this.__data__=new ye(i)}return n.set(e,t),this.size=n.size,this}
var Ae=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var i=-1,r=null==t?0:t.length,o=0,a=[];++i<r;){var s=t[i]
c=s,$.call(e,c)&&(a[o++]=s)}var c
return a}(ee(e)))}:function(){return[]},Re=_e
function Oe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function je(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Me(e,t){return e===t||e!=e&&t!=t}(ie&&Re(new ie(new ArrayBuffer(1)))!=E||re&&Re(new re)!=d||oe&&Re(oe.resolve())!=h||ae&&Re(new ae)!=m||se&&Re(new se)!=y)&&(Re=function(e){var t=_e(e),n=t==p?e.constructor:void 0,i=n?je(n):""
if(i)switch(i){case le:return E
case ue:return d
case de:return h
case fe:return m
case pe:return y}return t})
var Ne=Te(function(){return arguments}())?Te:function(e){return Be(e)&&V.call(e,"callee")&&!$.call(e,"callee")},Pe=Array.isArray,De=te||function(){return!1}
function Ue(e){if(!Fe(e))return!1
var t=_e(e)
return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Fe(e){var t=typeof e
return null!=e&&("object"==t||"function"==t)}function Be(e){return null!=e&&"object"==typeof e}var qe=j?function(e){return function(t){return e(t)}}(j):function(e){return Be(e)&&Le(e.length)&&!!T[_e(e)]}
function He(e){return null!=(t=e)&&Le(t.length)&&!Ue(t)?function(e,t){var n=Pe(e),i=!n&&Ne(e),r=!n&&!i&&De(e),o=!n&&!i&&!r&&qe(e),a=n||i||r||o,s=a?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n)
return i}(e.length,String):[],c=s.length
for(var l in e)!V.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Oe(l,c))||s.push(l)
return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||q))return ne(e)
var t,n,i=[]
for(var r in Object(e))V.call(e,r)&&"constructor"!=r&&i.push(r)
return i}(e)
var t}e.exports=function(e,t){return Se(e,t)}},210:function(e,t,n){"use strict"
var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var r,o=i(n(465)),a=i(n(307))
!function(e){e.compose=function(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={})
var i=o.default(t)
for(var r in n||(i=Object.keys(i).reduce((function(e,t){return null!=i[t]&&(e[t]=i[t]),e}),{})),e)void 0!==e[r]&&void 0===t[r]&&(i[r]=e[r])
return Object.keys(i).length>0?i:void 0},e.diff=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={})
var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return a.default(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{})
return Object.keys(n).length>0?n:void 0},e.invert=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),e=e||{}
var n=Object.keys(t).reduce((function(n,i){return t[i]!==e[i]&&void 0!==e[i]&&(n[i]=t[i]),n}),{})
return Object.keys(e).reduce((function(n,i){return e[i]!==t[i]&&void 0===t[i]&&(n[i]=null),n}),n)},e.transform=function(e,t,n){if(void 0===n&&(n=!1),"object"!=typeof e)return t
if("object"==typeof t){if(!n)return t
var i=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{})
return Object.keys(i).length>0?i:void 0}}}(r||(r={})),t.default=r},895:function(e,t,n){"use strict"
var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=i(n(529)),o=i(n(465)),a=i(n(307)),s=i(n(210)),c=i(n(430)),l=String.fromCharCode(0),u=function(){function e(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}return e.prototype.insert=function(e,t){var n={}
return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},e.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},e.prototype.retain=function(e,t){if(e<=0)return this
var n={retain:e}
return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},e.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1]
if(e=o.default(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this
if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this
if(a.default(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this
if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},e.prototype.chop=function(){var e=this.ops[this.ops.length-1]
return e&&e.retain&&!e.attributes&&this.ops.pop(),this},e.prototype.filter=function(e){return this.ops.filter(e)},e.prototype.forEach=function(e){this.ops.forEach(e)},e.prototype.map=function(e){return this.ops.map(e)},e.prototype.partition=function(e){var t=[],n=[]
return this.forEach((function(i){(e(i)?t:n).push(i)})),[t,n]},e.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},e.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+c.default.length(t):t.delete?e-t.delete:e}),0)},e.prototype.length=function(){return this.reduce((function(e,t){return e+c.default.length(t)}),0)},e.prototype.slice=function(t,n){void 0===t&&(t=0),void 0===n&&(n=1/0)
for(var i=[],r=c.default.iterator(this.ops),o=0;o<n&&r.hasNext();){var a=void 0
o<t?a=r.next(t-o):(a=r.next(n-o),i.push(a)),o+=c.default.length(a)}return new e(i)},e.prototype.compose=function(t){var n=c.default.iterator(this.ops),i=c.default.iterator(t.ops),r=[],o=i.peek()
if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var l=o.retain;"insert"===n.peekType()&&n.peekLength()<=l;)l-=n.peekLength(),r.push(n.next())
o.retain-l>0&&i.next(o.retain-l)}for(var u=new e(r);n.hasNext()||i.hasNext();)if("insert"===i.peekType())u.push(i.next())
else if("delete"===n.peekType())u.push(n.next())
else{var d=Math.min(n.peekLength(),i.peekLength()),f=n.next(d),p=i.next(d)
if("number"==typeof p.retain){var h={}
"number"==typeof f.retain?h.retain=d:h.insert=f.insert
var g=s.default.compose(f.attributes,p.attributes,"number"==typeof f.retain)
if(g&&(h.attributes=g),u.push(h),!i.hasNext()&&a.default(u.ops[u.ops.length-1],h)){var m=new e(n.rest())
return u.concat(m).chop()}}else"number"==typeof p.delete&&"number"==typeof f.retain&&u.push(p)}return u.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice())
return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e
var i=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l
throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new e,u=r.default(i[0],i[1],n),d=c.default.iterator(this.ops),f=c.default.iterator(t.ops)
return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0
switch(e[0]){case r.default.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n))
break
case r.default.DELETE:n=Math.min(t,d.peekLength()),d.next(n),o.delete(n)
break
case r.default.EQUAL:n=Math.min(d.peekLength(),f.peekLength(),t)
var i=d.next(n),c=f.next(n)
a.default(i.insert,c.insert)?o.retain(n,s.default.diff(i.attributes,c.attributes)):o.push(c).delete(n)}t-=n}})),o.chop()},e.prototype.eachLine=function(t,n){void 0===n&&(n="\n")
for(var i=c.default.iterator(this.ops),r=new e,o=0;i.hasNext();){if("insert"!==i.peekType())return
var a=i.peek(),s=c.default.length(a)-i.peekLength(),l="string"==typeof a.insert?a.insert.indexOf(n,s)-s:-1
if(l<0)r.push(i.next())
else if(l>0)r.push(i.next(l))
else{if(!1===t(r,i.next(1).attributes||{},o))return
o+=1,r=new e}}r.length()>0&&t(r,{},o)},e.prototype.invert=function(t){var n=new e
return this.reduce((function(e,i){if(i.insert)n.delete(c.default.length(i))
else{if(i.retain&&null==i.attributes)return n.retain(i.retain),e+i.retain
if(i.delete||i.retain&&i.attributes){var r=i.delete||i.retain
return t.slice(e,e+r).forEach((function(e){i.delete?n.push(e):i.retain&&i.attributes&&n.retain(c.default.length(e),s.default.invert(i.attributes,e.attributes))})),e+r}}return e}),0),n.chop()},e.prototype.transform=function(t,n){if(void 0===n&&(n=!1),n=!!n,"number"==typeof t)return this.transformPosition(t,n)
for(var i=t,r=c.default.iterator(this.ops),o=c.default.iterator(i.ops),a=new e;r.hasNext()||o.hasNext();)if("insert"!==r.peekType()||!n&&"insert"===o.peekType())if("insert"===o.peekType())a.push(o.next())
else{var l=Math.min(r.peekLength(),o.peekLength()),u=r.next(l),d=o.next(l)
if(u.delete)continue
d.delete?a.push(d):a.retain(l,s.default.transform(u.attributes,d.attributes,n))}else a.retain(c.default.length(r.next()))
return a.chop()},e.prototype.transformPosition=function(e,t){void 0===t&&(t=!1),t=!!t
for(var n=c.default.iterator(this.ops),i=0;n.hasNext()&&i<=e;){var r=n.peekLength(),o=n.peekType()
n.next(),"delete"!==o?("insert"===o&&(i<e||!t)&&(e+=r),i+=r):e-=Math.min(r,e-i)}return e},e.Op=c.default,e.AttributeMap=s.default,e}()
e.exports=u},977:function(e,t,n){"use strict"
var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var r=i(n(430)),o=function(){function e(e){this.ops=e,this.index=0,this.offset=0}return e.prototype.hasNext=function(){return this.peekLength()<1/0},e.prototype.next=function(e){e||(e=1/0)
var t=this.ops[this.index]
if(t){var n=this.offset,i=r.default.length(t)
if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e}
var o={}
return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},e.prototype.peek=function(){return this.ops[this.index]},e.prototype.peekLength=function(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0},e.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index)
var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index)
return this.offset=e,this.index=t,[n].concat(i)}return[]},e}()
t.default=o},430:function(e,t,n){"use strict"
var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var r,o=i(n(977))
!function(e){e.iterator=function(e){return new o.default(e)},e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}}(r||(r={})),t.default=r},165:function(e,t,n){var i,r
void 0===(r="function"==typeof(i=function(){var e,t={}
function n(e,t,n){var i=e.getClientRects()
if(2===i.length){var r=e.getBoundingClientRect()
return i[t][n]<r[n]}return!1}function i(e){if(!e)return e
if(screen.deviceXDPI===screen.logicalXDPI)return e
if("length"in e)return Array.prototype.map.call(e,i)
var t=screen.deviceXDPI/screen.logicalXDPI
return{top:e.top/t,bottom:e.bottom/t,left:e.left/t,right:e.right/t,width:e.width/t,height:e.height/t}}function r(e,t){var n,i=0,r=1024
if(r>=t.length)return Array.prototype.push.apply(e,t)
for(;i<t.length;)n=Array.prototype.push.apply(e,Array.prototype.slice.call(t,i,i+r)),i+=r
return n}return t.isBroken=function(){if(void 0===e){var t=document.createElement("p"),i=document.createElement("span"),r=document.createTextNode("aa"),o=document.createTextNode("aa"),a=document.createElement("img")
a.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=")
var s=document.createRange()
if(e={},t.appendChild(r),t.appendChild(i),i.appendChild(a),i.appendChild(o),document.body.appendChild(t),s.setStart(r,1),s.setEnd(i,0),e.getClientRects=e.getBoundingClientRect=s.getClientRects().length>1,e.getClientRects||(s.setEnd(o,1),e.getClientRects=e.getBoundingClientRect=2===s.getClientRects().length),!e.getBoundingClientRect){s.setEnd(s.startContainer,s.startOffset)
var c=s.getBoundingClientRect()
e.getBoundingClientRect=0===c.top&&0===c.left}if(document.body.removeChild(t),!e.getBoundingClientRect){var l=document.createElement("p")
l.style.width="0px",l.style.fontSize="20px",l.style.whiteSpace="normal",l.style.wordBreak="normal"
var u=document.createTextNode("m mm")
l.appendChild(u),document.body.appendChild(l),s.setStart(u,1),s.setEnd(u,2),n(s,1,"left")?e.getBoundingClientRect=!0:(s.setStart(u,1),s.setEnd(u,3),n(s,0,"top")&&(e.getBoundingClientRect=!0)),document.body.removeChild(l)}var d=window.ActiveXObject&&new Function("/*@cc_on return @_jscript_version; @*/")()
e.ieZoom=!!d&&d<=10}return e},t.getClientRects=function(e){var t=this.isBroken()
if(t.ieZoom)return i(e.getClientRects())
if(!t.getClientRects)return e.getClientRects()
var n=[],o=[],a=e.endContainer,s=e.endOffset,c=document.createRange()
function l(e){for(var t=0;e=e.previousSibling;)t++
return t}for(;a!==e.commonAncestorContainer;)c.setStart(a,0),c.setEnd(a,s),r(o,c.getClientRects()),s=l(a),a=a.parentNode
return(c=e.cloneRange()).setEnd(a,s),r(n,c.getClientRects()),r(n,o),n},t.getBoundingClientRect=function(e){var t=this.getClientRects(e)
if(0===t.length)return null
var n,r=e.getBoundingClientRect(),o=this.isBroken()
if(o.ieZoom)return i(r)
if(!o.getBoundingClientRect)return r
if(0===r.width&&0===r.height)return t[0]
for(var a=0,s=t.length;a<s;a++){var c=t[a]
n?(n.left=Math.min(n.left,c.left),n.top=Math.min(n.top,c.top),n.right=Math.max(n.right,c.right),n.bottom=Math.max(n.bottom,c.bottom)):n={left:c.left,top:c.top,right:c.right,bottom:c.bottom}}return n&&(n.width=n.right-n.left,n.height=n.bottom-n.top),n},t})?i.call(t,n,t,e):i)||(e.exports=r)},33:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>_})
var i=function(){if("undefined"!=typeof Map)return Map
function e(e,t){var n=-1
return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n]
return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t)
~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t)
~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null)
for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n]
e.call(t,r[1],r[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0
function o(){n&&(n=!1,e()),i&&c()}function s(){a(o)}function c(){var e=Date.now()
if(n){if(e-r<2)return
i=!0}else n=!0,i=!1,setTimeout(s,20)
r=e}return c}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e)
~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}))
return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t
s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n]
Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=m(0,0,0,0)
function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox}
function m(e,t,n,i){return{x:e,y:t,width:n,height:i}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){return r?g(e)?function(e){var t=e.getBBox()
return m(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight
if(!t&&!n)return f
var i=d(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=e["padding-"+r]
t[r]=p(o)}return t}(i),o=r.left+r.right,a=r.top+r.bottom,s=p(i.width),c=p(i.height)
if("border-box"===i.boxSizing&&(Math.round(s+o)!==t&&(s-=h(i,"left","right")+o),Math.round(c+a)!==n&&(c-=h(i,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var l=Math.round(s+o)-t,u=Math.round(c+a)-n
1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return m(r.left,r.top,s,c)}(e):f}(this.target)
return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_
return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,i,r,o,a,s,c,l=(i=(n=t).x,r=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),u(c,{x:i,y:r,width:o,height:a,top:r,right:i+o,bottom:a+r,left:i}),c)
u(this,{target:e,contentRect:l})},b=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new i,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.")
this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.")
if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".')
var t=this.observations_
t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.")
if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".')
var t=this.observations_
t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this
this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}))
this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new i,k=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.")
if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.")
var n=l.getInstance(),i=new b(t,n,this)
E.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){var t
return(t=E.get(this))[e].apply(t,arguments)}}))
const _=void 0!==o.ResizeObserver?o.ResizeObserver:k},413:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>v})
var i=n(379),r=n.n(i),o=n(795),a=n.n(o),s=n(569),c=n.n(s),l=n(565),u=n.n(l),d=n(216),f=n.n(d),p=n(589),h=n.n(p),g=n(582),m={}
m.styleTagTransform=h(),m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f(),r()(g.Z,m)
const v=g.Z&&g.Z.locals?g.Z.locals:void 0},379:e=>{"use strict"
var t=[]
function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i
break}return n}function i(e,i){for(var o={},a=[],s=0;s<e.length;s++){var c=e[s],l=i.base?c[0]+i.base:c[0],u=o[l]||0,d="".concat(l," ").concat(u)
o[l]=u+1
var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]}
if(-1!==f)t[f].references++,t[f].updater(p)
else{var h=r(p,i)
i.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function r(e,t){var n=t.domAPI(t)
return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return
n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{})
return function(e){e=e||[]
for(var a=0;a<o.length;a++){var s=n(o[a])
t[s].references--}for(var c=i(e,r),l=0;l<o.length;l++){var u=n(o[l])
0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=c}}},569:e=>{"use strict"
var t={}
e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e)
if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e)
if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.")
i.appendChild(n)}},216:e=>{"use strict"
e.exports=function(e){var t=document.createElement("style")
return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict"
e.exports=function(e){var t=n.nc
t&&e.setAttribute("nonce",t)}},795:e=>{"use strict"
e.exports=function(e){var t=e.insertStyleElement(e)
return{update:function(n){!function(e,t,n){var i=""
n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"))
var r=void 0!==n.layer
r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}")
var o=n.sourceMap
o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1
e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict"
e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e
else{for(;t.firstChild;)t.removeChild(t.firstChild)
t.appendChild(document.createTextNode(e))}}},607:function(e,t,n){"use strict"
var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0}),t.Cursor=t.default=void 0
var r=i(n(678))
t.default=r.default
var o=i(n(353))
t.Cursor=o.default,n(413)},353:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var i=n(207),r=function(){function e(e,t,n){this.id=e,this.name=t,this.color=n,this.toggleNearCursor=this.toggleNearCursor.bind(this),this._toggleOpenedCursor=this._toggleOpenedCursor.bind(this),this._setHoverState=this._setHoverState.bind(this)}return e.prototype.build=function(t){var n=document.createElement(e.CONTAINER_ELEMENT_TAG)
n.classList.add(e.CURSOR_CLASS),n.id="ql-cursor-".concat(this.id),n.innerHTML=t.template
var i=n.getElementsByClassName(e.SELECTION_CLASS)[0],r=n.getElementsByClassName(e.CARET_CONTAINER_CLASS)[0],o=r.getElementsByClassName(e.CARET_CLASS)[0],a=n.getElementsByClassName(e.FLAG_CLASS)[0]
return a.style.backgroundColor=this.color,o.style.backgroundColor=this.color,n.getElementsByClassName(e.NAME_CLASS)[0].textContent=this.name,this._hideDelay="".concat(t.hideDelayMs,"ms"),this._hideSpeedMs=t.hideSpeedMs,this._positionFlag=t.positionFlag,a.style.transitionDelay=this._hideDelay,a.style.transitionDuration="".concat(this._hideSpeedMs,"ms"),this._el=n,this._selectionEl=i,this._caretEl=r,this._flagEl=a,r.addEventListener("mouseover",this._setHoverState),this._el},e.prototype.show=function(){this._el.classList.remove(e.HIDDEN_CLASS)},e.prototype.hide=function(){this._el.classList.add(e.HIDDEN_CLASS)},e.prototype.remove=function(){this._el.parentNode.removeChild(this._el)},e.prototype.toggleNearCursor=function(t,n){var i=this._getCoordinates(),r=i.left,o=i.right,a=i.top,s=i.bottom,c=t>=r&&t<=o&&n>=a&&n<=s
return this._caretEl.classList.toggle(e.CONTAINER_HOVER_CLASS,c),c},e.prototype.toggleFlag=function(t){var n=this
this._caretEl.classList.toggle(e.CONTAINER_HOVER_CLASS,t)||(this._flagEl.classList.add(e.NO_DELAY_CLASS),setTimeout((function(){return n._flagEl.classList.remove(e.NO_DELAY_CLASS)}),this._hideSpeedMs))},e.prototype.updateCaret=function(e,t){this._caretEl.style.top="".concat(e.top,"px"),this._caretEl.style.left="".concat(e.left,"px"),this._caretEl.style.height="".concat(e.height,"px"),this._positionFlag?this._positionFlag(this._flagEl,e,t):this._updateCaretFlag(e,t)},e.prototype.updateSelection=function(e,t){var n=this
this._clearSelection(),e=e||[],e=Array.from(e),e=this._sanitize(e),(e=this._sortByDomPosition(e)).forEach((function(e){return n._addSelection(e,t)}))},e.prototype._setHoverState=function(){document.addEventListener("mousemove",this._toggleOpenedCursor)},e.prototype._toggleOpenedCursor=function(t){var n=this.toggleNearCursor(t.clientX,t.clientY)
this._caretEl.classList.toggle(e.CONTAINER_NO_POINTER_CLASS,n),n||document.removeEventListener("mousemove",this._toggleOpenedCursor)},e.prototype._getCoordinates=function(){return this._caretEl.getBoundingClientRect()},e.prototype._updateCaretFlag=function(t,n){this._flagEl.style.width=""
var i=this._flagEl.getBoundingClientRect()
this._flagEl.classList.remove(e.FLAG_FLIPPED_CLASS),t.left>n.width-i.width&&this._flagEl.classList.add(e.FLAG_FLIPPED_CLASS),this._flagEl.style.left="".concat(t.left,"px"),this._flagEl.style.top="".concat(t.top,"px"),this._flagEl.style.width="".concat(Math.ceil(i.width),"px")},e.prototype._clearSelection=function(){this._selectionEl.innerHTML=""},e.prototype._addSelection=function(e,t){var n=this._selectionBlock(e,t)
this._selectionEl.appendChild(n)},e.prototype._selectionBlock=function(t,n){var r=document.createElement(e.SELECTION_ELEMENT_TAG)
return r.classList.add(e.SELECTION_BLOCK_CLASS),r.style.top="".concat(t.top-n.top,"px"),r.style.left="".concat(t.left-n.left,"px"),r.style.width="".concat(t.width,"px"),r.style.height="".concat(t.height,"px"),r.style.backgroundColor=i(this.color).setAlpha(.3).toString(),r},e.prototype._sortByDomPosition=function(e){return e.sort((function(e,t){return e.top===t.top?e.left-t.left:e.top-t.top}))},e.prototype._sanitize=function(e){var t=this,n=new Set
return e.filter((function(e){if(!e.width||!e.height)return!1
var i=t._serialize(e)
return!n.has(i)&&(n.add(i),!0)}))},e.prototype._serialize=function(e){return["top:".concat(e.top),"right:".concat(e.right),"bottom:".concat(e.bottom),"left:".concat(e.left)].join(";")},e.CONTAINER_ELEMENT_TAG="SPAN",e.SELECTION_ELEMENT_TAG="SPAN",e.CURSOR_CLASS="ql-cursor",e.SELECTION_CLASS="ql-cursor-selections",e.SELECTION_BLOCK_CLASS="ql-cursor-selection-block",e.CARET_CLASS="ql-cursor-caret",e.CARET_CONTAINER_CLASS="ql-cursor-caret-container",e.CONTAINER_HOVER_CLASS="hover",e.CONTAINER_NO_POINTER_CLASS="no-pointer",e.FLAG_CLASS="ql-cursor-flag",e.FLAG_FLIPPED_CLASS="flag-flipped",e.NAME_CLASS="ql-cursor-name",e.HIDDEN_CLASS="hidden",e.NO_DELAY_CLASS="no-delay",e}()
t.default=r},678:function(e,t,n){"use strict"
var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n)
var r=Object.getOwnPropertyDescriptor(t,n)
r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n)
return r(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var s=a(n(353)),c=o(n(165)),l=a(n(338)),u=a(n(33)),d=n(895),f=function(){function e(e,t){void 0===t&&(t={}),this._cursors={},this._isObserving=!1,this._handleCursorTouch=this._handleCursorTouch.bind(this),this.quill=e,this.options=this._setDefaults(t),this._container=this.quill.addContainer(this.options.containerClass),this._boundsContainer=this.options.boundsContainer||this.quill.container,this._currentSelection=this.quill.getSelection(),this._registerSelectionChangeListeners(),this._registerTextChangeListener(),this._registerDomListeners()}return e.prototype.createCursor=function(e,t,n){var i=this._cursors[e]
if(!i){i=new s.default(e,t,n),this._cursors[e]=i
var r=i.build(this.options)
this._container.appendChild(r)}return i},e.prototype.moveCursor=function(e,t){var n=this._cursors[e]
n&&(n.range=t,this._updateCursor(n))},e.prototype.removeCursor=function(e){var t=this._cursors[e]
t&&(t.remove(),delete this._cursors[e])},e.prototype.update=function(){var e=this
this.cursors().forEach((function(t){return e._updateCursor(t)}))},e.prototype.clearCursors=function(){var e=this
this.cursors().forEach((function(t){return e.removeCursor(t.id)}))},e.prototype.toggleFlag=function(e,t){var n=this._cursors[e]
n&&n.toggleFlag(t)},e.prototype.cursors=function(){var e=this
return Object.keys(this._cursors).map((function(t){return e._cursors[t]}))},e.prototype._registerSelectionChangeListeners=function(){var e=this
this.quill.on(this.quill.constructor.events.SELECTION_CHANGE,(function(t){e._currentSelection=t}))},e.prototype._registerTextChangeListener=function(){var e=this
this.quill.on(this.quill.constructor.events.TEXT_CHANGE,(function(t){return e._handleTextChange(t)}))},e.prototype._registerDomListeners=function(){var e=this,t=this.quill.container.getElementsByClassName("ql-editor")[0]
t.addEventListener("scroll",(function(){return e.update()})),t.addEventListener("touchstart",this._handleCursorTouch)},e.prototype._handleCursorTouch=function(e){var t=this
this.cursors().forEach((function(n){n.toggleNearCursor(e.pageX,e.pageY),setTimeout((function(){return n.toggleFlag(!1)}),t.options.hideDelayMs)}))},e.prototype._registerResizeObserver=function(){var e=this
if(!this._isObserving){var t=this.quill.container.getElementsByClassName("ql-editor")[0],n=new u.default((function(t){if(!t[0].target.isConnected)return n.disconnect(),void(e._isObserving=!1)
e.update()}))
n.observe(t),this._isObserving=!0}},e.prototype._updateCursor=function(e){if(this._registerResizeObserver(),!e.range)return e.hide()
var t=this._indexWithinQuillBounds(e.range.index),n=this._indexWithinQuillBounds(e.range.index+e.range.length),i=this.quill.getLeaf(t),r=this.quill.getLeaf(n)
if(!this._leafIsValid(i)||!this._leafIsValid(r))return e.hide()
e.show()
var o=this._boundsContainer.getBoundingClientRect(),a=this.quill.getBounds(n)
e.updateCaret(a,o)
var s=this._lineRanges(e,i,r).reduce((function(e,t){return e.concat(Array.from(c.getClientRects(t)))}),[])
e.updateSelection(s,o)},e.prototype._indexWithinQuillBounds=function(e){var t=this.quill.getLength(),n=t?t-1:0
return e=Math.max(e,0),Math.min(e,n)},e.prototype._leafIsValid=function(e){return e&&e[0]&&e[0].domNode&&e[1]>=0},e.prototype._handleTextChange=function(e){var t=this
window.setTimeout((function(){t.options.transformOnTextChange&&t._transformCursors(e),t.options.selectionChangeSource&&(t._emitSelection(),t.update())}))},e.prototype._emitSelection=function(){this.quill.emitter.emit(this.quill.constructor.events.SELECTION_CHANGE,this.quill.getSelection(),this._currentSelection,this.options.selectionChangeSource)},e.prototype._setDefaults=function(t){return(t=Object.assign({},t)).template||(t.template=e.DEFAULTS.template),t.containerClass||(t.containerClass=e.DEFAULTS.containerClass),null!==t.selectionChangeSource&&(t.selectionChangeSource||(t.selectionChangeSource=e.DEFAULTS.selectionChangeSource)),t.hideDelayMs=Number.isInteger(t.hideDelayMs)?t.hideDelayMs:e.DEFAULTS.hideDelayMs,t.hideSpeedMs=Number.isInteger(t.hideSpeedMs)?t.hideSpeedMs:e.DEFAULTS.hideSpeedMs,t.transformOnTextChange=!!t.transformOnTextChange,t},e.prototype._lineRanges=function(e,t,n){var i=this.quill.getLines(e.range)
return i.reduce((function(e,r,o){if(!r.children){var a=document.createRange()
return a.selectNode(r.domNode),e.concat(a)}var s=0===o?t:r.path(0).pop(),c=s[0],l=s[1],u=o===i.length-1?n:r.path(r.length()-1).pop(),d=u[0],f=u[1],p=document.createRange()
return c.domNode.nodeType===Node.TEXT_NODE?p.setStart(c.domNode,l):p.setStartBefore(c.domNode),d.domNode.nodeType===Node.TEXT_NODE?p.setEnd(d.domNode,f):p.setEndAfter(d.domNode),e.concat(p)}),[])},e.prototype._transformCursors=function(e){var t=this
e=new d(e),this.cursors().filter((function(e){return e.range})).forEach((function(n){n.range.index=e.transformPosition(n.range.index),t._updateCursor(n)}))},e.DEFAULTS={template:l.default,containerClass:"ql-cursors",selectionChangeSource:"api",hideDelayMs:3e3,hideSpeedMs:400},e}()
t.default=f},338:function(e,t,n){"use strict"
var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
Object.defineProperty(t,"__esModule",{value:!0})
var r=i(n(353)),o='\n  <span class="'.concat(r.default.SELECTION_CLASS,'"></span>\n  <span class="').concat(r.default.CARET_CONTAINER_CLASS,'">\n    <span class="').concat(r.default.CARET_CLASS,'"></span>\n  </span>\n  <div class="').concat(r.default.FLAG_CLASS,'">\n    <small class="').concat(r.default.NAME_CLASS,'"></small>\n  </div>\n')
t.default=o},207:function(e){e.exports=function(){"use strict"
const e=/^\s+/,t=/\s+$/
function n(i,r){if(r=r||{},(i=i||"")instanceof n)return i
if(!(this instanceof n))return new n(i,r)
var o=function(n){var i,r,o,a={r:0,g:0,b:0},s=1,c=null,l=null,u=null,d=!1,f=!1
return"string"==typeof n&&(n=function(n){n=n.replace(e,"").replace(t,"").toLowerCase()
var i,r=!1
if(b[n])n=b[n],r=!0
else if("transparent"==n)return{r:0,g:0,b:0,a:0,format:"name"}
return(i=j.rgb.exec(n))?{r:i[1],g:i[2],b:i[3]}:(i=j.rgba.exec(n))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=j.hsl.exec(n))?{h:i[1],s:i[2],l:i[3]}:(i=j.hsla.exec(n))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=j.hsv.exec(n))?{h:i[1],s:i[2],v:i[3]}:(i=j.hsva.exec(n))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=j.hex8.exec(n))?{r:S(i[1]),g:S(i[2]),b:S(i[3]),a:I(i[4]),format:r?"name":"hex8"}:(i=j.hex6.exec(n))?{r:S(i[1]),g:S(i[2]),b:S(i[3]),format:r?"name":"hex"}:(i=j.hex4.exec(n))?{r:S(i[1]+""+i[1]),g:S(i[2]+""+i[2]),b:S(i[3]+""+i[3]),a:I(i[4]+""+i[4]),format:r?"name":"hex8"}:!!(i=j.hex3.exec(n))&&{r:S(i[1]+""+i[1]),g:S(i[2]+""+i[2]),b:S(i[3]+""+i[3]),format:r?"name":"hex"}}(n)),"object"==typeof n&&(M(n.r)&&M(n.g)&&M(n.b)?(i=n.r,r=n.g,o=n.b,a={r:255*_(i,255),g:255*_(r,255),b:255*_(o,255)},d=!0,f="%"===String(n.r).substr(-1)?"prgb":"rgb"):M(n.h)&&M(n.s)&&M(n.v)?(c=w(n.s),l=w(n.v),a=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100)
var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),c=i%6
return{r:255*[n,a,o,o,s,n][c],g:255*[s,n,n,a,o,o][c],b:255*[o,o,s,n,n,a][c]}}(n.h,c,l),d=!0,f="hsv"):M(n.h)&&M(n.s)&&M(n.l)&&(c=w(n.s),u=w(n.l),a=function(e,t,n){var i,r,o
function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)i=r=o=n
else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s
i=a(c,s,e+1/3),r=a(c,s,e),o=a(c,s,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(n.h,c,u),d=!0,f="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=k(s),{ok:d,format:n.format||f,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:s}}(i)
this._originalInput=i,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||o.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function i(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255)
var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2
if(o==a)i=r=0
else{var c=o-a
switch(r=s>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t<n?6:0)
break
case t:i=(n-e)/c+2
break
case n:i=(e-t)/c+4}i/=6}return{h:i,s:r,l:s}}function r(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255)
var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,c=o-a
if(r=0===o?0:c/o,o==a)i=0
else{switch(o){case e:i=(t-n)/c+(t<n?6:0)
break
case t:i=(n-e)/c+2
break
case n:i=(e-t)/c+4}i/=6}return{h:i,s:r,v:s}}function o(e,t,n,i){var r=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(n).toString(16))]
return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function a(e,t,n,i){return[C(x(i)),C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(n).toString(16))].join("")}function s(e,t){t=0===t?0:t||10
var i=n(e).toHsl()
return i.s-=t/100,i.s=T(i.s),n(i)}function c(e,t){t=0===t?0:t||10
var i=n(e).toHsl()
return i.s+=t/100,i.s=T(i.s),n(i)}function l(e){return n(e).desaturate(100)}function u(e,t){t=0===t?0:t||10
var i=n(e).toHsl()
return i.l+=t/100,i.l=T(i.l),n(i)}function d(e,t){t=0===t?0:t||10
var i=n(e).toRgb()
return i.r=Math.max(0,Math.min(255,i.r-Math.round(-t/100*255))),i.g=Math.max(0,Math.min(255,i.g-Math.round(-t/100*255))),i.b=Math.max(0,Math.min(255,i.b-Math.round(-t/100*255))),n(i)}function f(e,t){t=0===t?0:t||10
var i=n(e).toHsl()
return i.l-=t/100,i.l=T(i.l),n(i)}function p(e,t){var i=n(e).toHsl(),r=(i.h+t)%360
return i.h=r<0?360+r:r,n(i)}function h(e){var t=n(e).toHsl()
return t.h=(t.h+180)%360,n(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number")
for(var i=n(e).toHsl(),r=[n(e)],o=360/t,a=1;a<t;a++)r.push(n({h:(i.h+a*o)%360,s:i.s,l:i.l}))
return r}function m(e){var t=n(e).toHsl(),i=t.h
return[n(e),n({h:(i+72)%360,s:t.s,l:t.l}),n({h:(i+216)%360,s:t.s,l:t.l})]}function v(e,t,i){t=t||6,i=i||30
var r=n(e).toHsl(),o=360/i,a=[n(e)]
for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(n(r))
return a}function y(e,t){t=t||6
for(var i=n(e).toHsv(),r=i.h,o=i.s,a=i.v,s=[],c=1/t;t--;)s.push(n({h:r,s:o,v:a})),a=(a+c)%1
return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb()
return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb()
return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=k(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b)
return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v)
return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=i(this._r,this._g,this._b)
return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l)
return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return o(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(n).toString(16)),C(x(i))]
return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+a(this._r,this._g,this._b,this._a),i=t,r=this._gradientType?"GradientType = 1, ":""
if(e){var o=n(e)
i="#"+a(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+i+")"},toString:function(e){var t=!!e
e=e||this._format
var n=!1,i=this._a<1&&this._a>=0
return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)))
return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(f,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(l,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},n.fromRatio=function(e,t){if("object"==typeof e){var i={}
for(var r in e)e.hasOwnProperty(r)&&(i[r]="a"===r?e[r]:w(e[r]))
e=i}return n(e,t)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,i){i=0===i?0:i||50
var r=n(e).toRgb(),o=n(t).toRgb(),a=i/100
return n({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},n.readability=function(e,t){var i=n(e),r=n(t)
return(Math.max(i.getLuminance(),r.getLuminance())+.05)/(Math.min(i.getLuminance(),r.getLuminance())+.05)},n.isReadable=function(e,t,i){var r,o,a,s,c,l=n.readability(e,t)
switch(o=!1,(a=i,"AA"!==(s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(a.size||"small").toLowerCase())&&"large"!==c&&(c="small"),r={level:s,size:c}).level+r.size){case"AAsmall":case"AAAlarge":o=l>=4.5
break
case"AAlarge":o=l>=3
break
case"AAAsmall":o=l>=7}return o},n.mostReadable=function(e,t,i){var r,o,a,s,c=null,l=0
o=(i=i||{}).includeFallbackColors,a=i.level,s=i.size
for(var u=0;u<t.length;u++)(r=n.readability(e,t[u]))>l&&(l=r,c=n(t[u]))
return n.isReadable(e,c,{level:a,size:s})||!o?c:(i.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],i))}
var b=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=n.hexNames=function(e){var t={}
for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n)
return t}(b)
function k(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%")
var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e)
return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function T(e){return Math.min(1,Math.max(0,e))}function S(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function w(e){return e<=1&&(e=100*e+"%"),e}function x(e){return Math.round(255*parseFloat(e)).toString(16)}function I(e){return S(e)/255}var A,R,O,j=(R="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",O="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+O),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+O),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+O),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/})
function M(e){return!!j.CSS_UNIT.exec(e)}return n}()}},t={}
function n(i){var r=t[i]
if(void 0!==r)return r.exports
var o=t[i]={id:i,loaded:!1,exports:{}}
return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e
return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis
try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,n(607).default})(),e.exports=t()},5239:function(e){e.exports=function(){"use strict"
var e={9306:function(e,t,n){var i=n(4901),r=n(6823),o=TypeError
e.exports=function(e){if(i(e))return e
throw new o(r(e)+" is not a function")}},5548:function(e,t,n){var i=n(3517),r=n(6823),o=TypeError
e.exports=function(e){if(i(e))return e
throw new o(r(e)+" is not a constructor")}},3506:function(e,t,n){var i=n(3925),r=String,o=TypeError
e.exports=function(e){if(i(e))return e
throw new o("Can't set "+r(e)+" as a prototype")}},6469:function(e,t,n){var i=n(8227),r=n(2360),o=n(4913).f,a=i("unscopables"),s=Array.prototype
void 0===s[a]&&o(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},7829:function(e,t,n){var i=n(8183).charAt
e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},8551:function(e,t,n){var i=n(34),r=String,o=TypeError
e.exports=function(e){if(i(e))return e
throw new o(r(e)+" is not an object")}},235:function(e,t,n){var i=n(9213).forEach,r=n(4598)("forEach")
e.exports=r?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},7916:function(e,t,n){var i=n(6080),r=n(9565),o=n(8981),a=n(6319),s=n(4209),c=n(3517),l=n(6198),u=n(4659),d=n(81),f=n(851),p=Array
e.exports=function(e){var t=o(e),n=c(this),h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g
m&&(g=i(g,h>2?arguments[2]:void 0))
var v,y,b,E,k,_,T=f(t),S=0
if(!T||this===p&&s(T))for(v=l(t),y=n?new this(v):p(v);v>S;S++)_=m?g(t[S],S):t[S],u(y,S,_)
else for(y=n?new this:[],k=(E=d(t,T)).next;!(b=r(k,E)).done;S++)_=m?a(E,g,[b.value,S],!0):b.value,u(y,S,_)
return y.length=S,y}},9617:function(e,t,n){var i=n(5397),r=n(5610),o=n(6198),a=function(e){return function(t,n,a){var s=i(t),c=o(s)
if(0===c)return!e&&-1
var l,u=r(a,c)
if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0
return!e&&-1}}
e.exports={includes:a(!0),indexOf:a(!1)}},9213:function(e,t,n){var i=n(6080),r=n(9504),o=n(7055),a=n(8981),s=n(6198),c=n(1469),l=r([].push),u=function(e){var t=1===e,n=2===e,r=3===e,u=4===e,d=6===e,f=7===e,p=5===e||d
return function(h,g,m,v){for(var y,b,E=a(h),k=o(E),_=s(k),T=i(g,m),S=0,C=v||c,w=t?C(h,_):n||f?C(h,0):void 0;_>S;S++)if((p||S in k)&&(b=T(y=k[S],S,E),e))if(t)w[S]=b
else if(b)switch(e){case 3:return!0
case 5:return y
case 6:return S
case 2:l(w,y)}else switch(e){case 4:return!1
case 7:l(w,y)}return d?-1:r||u?u:w}}
e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},597:function(e,t,n){var i=n(9039),r=n(8227),o=n(7388),a=r("species")
e.exports=function(e){return o>=51||!i((function(){var t=[]
return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},4598:function(e,t,n){var i=n(9039)
e.exports=function(e,t){var n=[][e]
return!!n&&i((function(){n.call(null,t||function(){return 1},1)}))}},926:function(e,t,n){var i=n(9306),r=n(8981),o=n(7055),a=n(6198),s=TypeError,c="Reduce of empty array with no initial value",l=function(e){return function(t,n,l,u){var d=r(t),f=o(d),p=a(d)
if(i(n),0===p&&l<2)throw new s(c)
var h=e?p-1:0,g=e?-1:1
if(l<2)for(;;){if(h in f){u=f[h],h+=g
break}if(h+=g,e?h<0:p<=h)throw new s(c)}for(;e?h>=0:p>h;h+=g)h in f&&(u=n(u,f[h],h,d))
return u}}
e.exports={left:l(!1),right:l(!0)}},4527:function(e,t,n){var i=n(3724),r=n(4376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0
try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()
e.exports=s?function(e,t){if(r(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length")
return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,n){var i=n(9504)
e.exports=i([].slice)},4488:function(e,t,n){var i=n(7680),r=Math.floor,o=function(e,t){var n=e.length
if(n<8)for(var a,s,c=1;c<n;){for(s=c,a=e[c];s&&t(e[s-1],a)>0;)e[s]=e[--s]
s!==c++&&(e[s]=a)}else for(var l=r(n/2),u=o(i(e,0,l),t),d=o(i(e,l),t),f=u.length,p=d.length,h=0,g=0;h<f||g<p;)e[h+g]=h<f&&g<p?t(u[h],d[g])<=0?u[h++]:d[g++]:h<f?u[h++]:d[g++]
return e}
e.exports=o},7433:function(e,t,n){var i=n(4376),r=n(3517),o=n(34),a=n(8227)("species"),s=Array
e.exports=function(e){var t
return i(e)&&(t=e.constructor,(r(t)&&(t===s||i(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},1469:function(e,t,n){var i=n(7433)
e.exports=function(e,t){return new(i(e))(0===t?0:t)}},6319:function(e,t,n){var i=n(8551),r=n(9539)
e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},4428:function(e,t,n){var i=n(8227)("iterator"),r=!1
try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}}
a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1
try{var o={}
o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4576:function(e,t,n){var i=n(9504),r=i({}.toString),o=i("".slice)
e.exports=function(e){return o(r(e),8,-1)}},6955:function(e,t,n){var i=n(2140),r=n(4901),o=n(4576),a=n(8227)("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}())
e.exports=i?o:function(e){var t,n,i
return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:c?o(t):"Object"===(i=o(t))&&r(t.callee)?"Arguments":i}},7740:function(e,t,n){var i=n(9297),r=n(5031),o=n(7347),a=n(4913)
e.exports=function(e,t,n){for(var s=r(t),c=a.f,l=o.f,u=0;u<s.length;u++){var d=s[u]
i(e,d)||n&&i(n,d)||c(e,d,l(t,d))}}},1436:function(e,t,n){var i=n(8227)("match")
e.exports=function(e){var t=/./
try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(e){}}return!1}},2211:function(e,t,n){var i=n(9039)
e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2529:function(e){e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,n){var i=n(3724),r=n(4913),o=n(6980)
e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,n){var i=n(3724),r=n(4913),o=n(6980)
e.exports=function(e,t,n){i?r.f(e,t,o(0,n)):e[t]=n}},3640:function(e,t,n){var i=n(8551),r=n(4270),o=TypeError
e.exports=function(e){if(i(this),"string"===e||"default"===e)e="string"
else if("number"!==e)throw new o("Incorrect hint")
return r(this,e)}},2106:function(e,t,n){var i=n(283),r=n(4913)
e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},6840:function(e,t,n){var i=n(4901),r=n(4913),o=n(283),a=n(9433)
e.exports=function(e,t,n,s){s||(s={})
var c=s.enumerable,l=void 0!==s.name?s.name:t
if(i(n)&&o(n,l,s),s.global)c?e[t]=n:a(t,n)
else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},9433:function(e,t,n){var i=n(4475),r=Object.defineProperty
e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},4606:function(e,t,n){var i=n(6823),r=TypeError
e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+i(t)+" of "+i(e))}},3724:function(e,t,n){var i=n(9039)
e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(e,t,n){var i=n(4475),r=n(34),o=i.document,a=r(o)&&r(o.createElement)
e.exports=function(e){return a?o.createElement(e):{}}},6837:function(e){var t=TypeError
e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded")
return e}},7400:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(e,t,n){var i=n(4055)("span").classList,r=i&&i.constructor&&i.constructor.prototype
e.exports=r===Object.prototype?void 0:r},8834:function(e,t,n){var i=n(9392).match(/firefox\/(\d+)/i)
e.exports=!!i&&+i[1]},3202:function(e,t,n){var i=n(9392)
e.exports=/MSIE|Trident/.test(i)},9088:function(e,t,n){var i=n(4475),r=n(4576)
e.exports="process"===r(i.process)},9392:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(e,t,n){var i,r,o=n(4475),a=n(9392),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8
u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},9160:function(e,t,n){var i=n(9392).match(/AppleWebKit\/(\d+)\./)
e.exports=!!i&&+i[1]},8727:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(e,t,n){var i=n(4475),r=n(7347).f,o=n(6699),a=n(6840),s=n(9433),c=n(7740),l=n(2796)
e.exports=function(e,t){var n,u,d,f,p,h=e.target,g=e.global,m=e.stat
if(n=g?i:m?i[h]||s(h,{}):i[h]&&i[h].prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(p=r(n,u))&&p.value:n[u],!l(g?u:h+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue
c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},9039:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9228:function(e,t,n){n(7495)
var i=n(9565),r=n(6840),o=n(7323),a=n(9039),s=n(8227),c=n(6699),l=s("species"),u=RegExp.prototype
e.exports=function(e,t,n,d){var f=s(e),p=!a((function(){var t={}
return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,n=/a/
return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}))
if(!p||!h||n){var g=/./[f],m=t(f,""[e],(function(e,t,n,r,a){var s=t.exec
return s===o||s===u.exec?p&&!a?{done:!0,value:i(g,t,n,r)}:{done:!0,value:i(e,n,t,r)}:{done:!1}}))
r(String.prototype,e,m[0]),r(u,f,m[1])}d&&c(u[f],"sham",!0)}},8745:function(e,t,n){var i=n(616),r=Function.prototype,o=r.apply,a=r.call
e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},6080:function(e,t,n){var i=n(7476),r=n(9306),o=n(616),a=i(i.bind)
e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,n){var i=n(9039)
e.exports=!i((function(){var e=function(){}.bind()
return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9565:function(e,t,n){var i=n(616),r=Function.prototype.call
e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},350:function(e,t,n){var i=n(3724),r=n(9297),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&a(o,"name").configurable)
e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},6706:function(e,t,n){var i=n(9504),r=n(9306)
e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},7476:function(e,t,n){var i=n(4576),r=n(9504)
e.exports=function(e){if("Function"===i(e))return r(e)}},9504:function(e,t,n){var i=n(616),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o)
e.exports=i?a:function(e){return function(){return o.apply(e,arguments)}}},7751:function(e,t,n){var i=n(4475),r=n(4901)
e.exports=function(e,t){return arguments.length<2?(n=i[e],r(n)?n:void 0):i[e]&&i[e][t]
var n}},851:function(e,t,n){var i=n(6955),r=n(5966),o=n(4117),a=n(6269),s=n(8227)("iterator")
e.exports=function(e){if(!o(e))return r(e,s)||r(e,"@@iterator")||a[i(e)]}},81:function(e,t,n){var i=n(9565),r=n(9306),o=n(8551),a=n(6823),s=n(851),c=TypeError
e.exports=function(e,t){var n=arguments.length<2?s(e):t
if(r(n))return o(i(n,e))
throw new c(a(e)+" is not iterable")}},6933:function(e,t,n){var i=n(9504),r=n(4376),o=n(4901),a=n(4576),s=n(655),c=i([].push)
e.exports=function(e){if(o(e))return e
if(r(e)){for(var t=e.length,n=[],i=0;i<t;i++){var l=e[i]
"string"==typeof l?c(n,l):"number"!=typeof l&&"Number"!==a(l)&&"String"!==a(l)||c(n,s(l))}var u=n.length,d=!0
return function(e,t){if(d)return d=!1,t
if(r(this))return t
for(var i=0;i<u;i++)if(n[i]===e)return t}}}},5966:function(e,t,n){var i=n(9306),r=n(4117)
e.exports=function(e,t){var n=e[t]
return r(n)?void 0:i(n)}},2478:function(e,t,n){var i=n(9504),r=n(8981),o=Math.floor,a=i("".charAt),s=i("".replace),c=i("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g
e.exports=function(e,t,n,i,d,f){var p=n+e.length,h=i.length,g=u
return void 0!==d&&(d=r(d),g=l),s(f,g,(function(r,s){var l
switch(a(s,0)){case"$":return"$"
case"&":return e
case"`":return c(t,0,n)
case"'":return c(t,p)
case"<":l=d[c(s,1,-1)]
break
default:var u=+s
if(0===u)return r
if(u>h){var f=o(u/10)
return 0===f?r:f<=h?void 0===i[f-1]?a(s,1):i[f-1]+a(s,1):r}l=i[u-1]}return void 0===l?"":l}))}},4475:function(e,t,n){var i=function(e){return e&&e.Math===Math&&e}
e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){var i=n(9504),r=n(8981),o=i({}.hasOwnProperty)
e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},421:function(e){e.exports={}},397:function(e,t,n){var i=n(7751)
e.exports=i("document","documentElement")},5917:function(e,t,n){var i=n(3724),r=n(9039),o=n(4055)
e.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7055:function(e,t,n){var i=n(9504),r=n(9039),o=n(4576),a=Object,s=i("".split)
e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},3167:function(e,t,n){var i=n(4901),r=n(34),o=n(2967)
e.exports=function(e,t,n){var a,s
return o&&i(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},3706:function(e,t,n){var i=n(9504),r=n(4901),o=n(7629),a=i(Function.toString)
r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},1181:function(e,t,n){var i,r,o,a=n(8622),s=n(4475),c=n(34),l=n(6699),u=n(9297),d=n(7629),f=n(6119),p=n(421),h="Object already initialized",g=s.TypeError,m=s.WeakMap
if(a||d.state){var v=d.state||(d.state=new m)
v.get=v.get,v.has=v.has,v.set=v.set,i=function(e,t){if(v.has(e))throw new g(h)
return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=f("state")
p[y]=!0,i=function(e,t){if(u(e,y))throw new g(h)
return t.facade=e,l(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n
if(!c(t)||(n=r(t)).type!==e)throw new g("Incompatible receiver, "+e+" required")
return n}}}},4209:function(e,t,n){var i=n(8227),r=n(6269),o=i("iterator"),a=Array.prototype
e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},4376:function(e,t,n){var i=n(4576)
e.exports=Array.isArray||function(e){return"Array"===i(e)}},4901:function(e){var t="object"==typeof document&&document.all
e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},3517:function(e,t,n){var i=n(9504),r=n(9039),o=n(4901),a=n(6955),s=n(7751),c=n(3706),l=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=i(d.exec),p=!d.test(l),h=function(e){if(!o(e))return!1
try{return u(l,[],e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1
switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,c(e))}catch(e){return!0}}
g.sham=!0,e.exports=!u||r((function(){var e
return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?g:h},2796:function(e,t,n){var i=n(9039),r=n(4901),o=/#|\.prototype\./,a=function(e,t){var n=c[s(e)]
return n===u||n!==l&&(r(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P"
e.exports=a},2087:function(e,t,n){var i=n(34),r=Math.floor
e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},4117:function(e){e.exports=function(e){return null==e}},34:function(e,t,n){var i=n(4901)
e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},3925:function(e,t,n){var i=n(34)
e.exports=function(e){return i(e)||null===e}},6395:function(e){e.exports=!1},788:function(e,t,n){var i=n(34),r=n(4576),o=n(8227)("match")
e.exports=function(e){var t
return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===r(e))}},757:function(e,t,n){var i=n(7751),r=n(4901),o=n(1625),a=n(7040),s=Object
e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol")
return r(t)&&o(t.prototype,s(e))}},9539:function(e,t,n){var i=n(9565),r=n(8551),o=n(5966)
e.exports=function(e,t,n){var a,s
r(e)
try{if(!(a=o(e,"return"))){if("throw"===t)throw n
return n}a=i(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n
if(s)throw a
return r(a),n}},3994:function(e,t,n){var i=n(7657).IteratorPrototype,r=n(2360),o=n(6980),a=n(687),s=n(6269),c=function(){return this}
e.exports=function(e,t,n,l){var u=t+" Iterator"
return e.prototype=r(i,{next:o(+!l,n)}),a(e,u,!1,!0),s[u]=c,e}},1088:function(e,t,n){var i=n(6518),r=n(9565),o=n(6395),a=n(350),s=n(4901),c=n(3994),l=n(2787),u=n(2967),d=n(687),f=n(6699),p=n(6840),h=n(8227),g=n(6269),m=n(7657),v=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,E=m.BUGGY_SAFARI_ITERATORS,k=h("iterator"),_="keys",T="values",S="entries",C=function(){return this}
e.exports=function(e,t,n,a,h,m,w){c(n,t,a)
var x,I,A,R=function(e){if(e===h&&P)return P
if(!E&&e&&e in M)return M[e]
switch(e){case _:case T:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",j=!1,M=e.prototype,N=M[k]||M["@@iterator"]||h&&M[h],P=!E&&N||R(h),D="Array"===t&&M.entries||N
if(D&&(x=l(D.call(new e)))!==Object.prototype&&x.next&&(o||l(x)===b||(u?u(x,b):s(x[k])||p(x,k,C)),d(x,O,!0,!0),o&&(g[O]=C)),v&&h===T&&N&&N.name!==T&&(!o&&y?f(M,"name",T):(j=!0,P=function(){return r(N,this)})),h)if(I={values:R(T),keys:m?P:R(_),entries:R(S)},w)for(A in I)(E||j||!(A in M))&&p(M,A,I[A])
else i({target:t,proto:!0,forced:E||j},I)
return o&&!w||M[k]===P||p(M,k,P,{name:h}),g[t]=P,I}},7657:function(e,t,n){var i,r,o,a=n(9039),s=n(4901),c=n(34),l=n(2360),u=n(2787),d=n(6840),f=n(8227),p=n(6395),h=f("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(r=u(u(o)))!==Object.prototype&&(i=r):g=!0),!c(i)||a((function(){var e={}
return i[h].call(e)!==e}))?i={}:p&&(i=l(i)),s(i[h])||d(i,h,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},6269:function(e){e.exports={}},6198:function(e,t,n){var i=n(8014)
e.exports=function(e){return i(e.length)}},283:function(e,t,n){var i=n(9504),r=n(9039),o=n(4901),a=n(9297),s=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),d=u.enforce,f=u.get,p=String,h=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),y=s&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),E=e.exports=function(e,t,n){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity})
try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=d(e)
return a(i,"source")||(i.source=v(b,"string"==typeof t?t:"")),e}
Function.prototype.toString=E((function(){return o(this)&&f(this).source||l(this)}),"toString")},741:function(e){var t=Math.ceil,n=Math.floor
e.exports=Math.trunc||function(e){var i=+e
return(i>0?n:t)(i)}},5749:function(e,t,n){var i=n(788),r=TypeError
e.exports=function(e){if(i(e))throw new r("The method doesn't accept regular expressions")
return e}},4213:function(e,t,n){var i=n(3724),r=n(9504),o=n(9565),a=n(9039),s=n(1072),c=n(3717),l=n(8773),u=n(8981),d=n(7055),f=Object.assign,p=Object.defineProperty,h=r([].concat)
e.exports=!f||a((function(){if(i&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0
var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst"
return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==r}))?function(e,t){for(var n=u(e),r=arguments.length,a=1,f=c.f,p=l.f;r>a;)for(var g,m=d(arguments[a++]),v=f?h(s(m),f(m)):s(m),y=v.length,b=0;y>b;)g=v[b++],i&&!o(p,m,g)||(n[g]=m[g])
return n}:f},2360:function(e,t,n){var i,r=n(8551),o=n(6801),a=n(8727),s=n(421),c=n(397),l=n(4055),u=n(6119),d="prototype",f="script",p=u("IE_PROTO"),h=function(){},g=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(g("")),e.close()
var t=e.parentWindow.Object
return e=null,t},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n
v="undefined"!=typeof document?document.domain&&i?m(i):(t=l("iframe"),n="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(i)
for(var r=a.length;r--;)delete v[d][a[r]]
return v()}
s[p]=!0,e.exports=Object.create||function(e,t){var n
return null!==e?(h[d]=r(e),n=new h,h[d]=null,n[p]=e):n=v(),void 0===t?n:o.f(n,t)}},6801:function(e,t,n){var i=n(3724),r=n(8686),o=n(4913),a=n(8551),s=n(5397),c=n(1072)
t.f=i&&!r?Object.defineProperties:function(e,t){a(e)
for(var n,i=s(t),r=c(t),l=r.length,u=0;l>u;)o.f(e,n=r[u++],i[n])
return e}},4913:function(e,t,n){var i=n(3724),r=n(5917),o=n(8686),a=n(8551),s=n(6969),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable"
t.f=i?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=u(e,t)
i&&i[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:d in n?n[d]:i[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported")
return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){var i=n(3724),r=n(9565),o=n(8773),a=n(6980),s=n(5397),c=n(6969),l=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor
t.f=i?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return a(!r(o.f,e,t),e[t])}},298:function(e,t,n){var i=n(4576),r=n(5397),o=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[]
e.exports.f=function(e){return s&&"Window"===i(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(r(e))}},8480:function(e,t,n){var i=n(1828),r=n(8727).concat("length","prototype")
t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},3717:function(e,t){t.f=Object.getOwnPropertySymbols},2787:function(e,t,n){var i=n(9297),r=n(4901),o=n(8981),a=n(6119),s=n(2211),c=a("IE_PROTO"),l=Object,u=l.prototype
e.exports=s?l.getPrototypeOf:function(e){var t=o(e)
if(i(t,c))return t[c]
var n=t.constructor
return r(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},1625:function(e,t,n){var i=n(9504)
e.exports=i({}.isPrototypeOf)},1828:function(e,t,n){var i=n(9504),r=n(9297),o=n(5397),a=n(9617).indexOf,s=n(421),c=i([].push)
e.exports=function(e,t){var n,i=o(e),l=0,u=[]
for(n in i)!r(s,n)&&r(i,n)&&c(u,n)
for(;t.length>l;)r(i,n=t[l++])&&(~a(u,n)||c(u,n))
return u}},1072:function(e,t,n){var i=n(1828),r=n(8727)
e.exports=Object.keys||function(e){return i(e,r)}},8773:function(e,t){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1)
t.f=r?function(e){var t=i(this,e)
return!!t&&t.enumerable}:n},2551:function(e,t,n){var i=n(6395),r=n(4475),o=n(9039),a=n(9160)
e.exports=i||!o((function(){if(!(a&&a<535)){var e=Math.random()
__defineSetter__.call(null,e,(function(){})),delete r[e]}}))},2967:function(e,t,n){var i=n(6706),r=n(34),o=n(7750),a=n(3506)
e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={}
try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return o(n),a(i),r(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0)},3179:function(e,t,n){var i=n(2140),r=n(6955)
e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},4270:function(e,t,n){var i=n(9565),r=n(4901),o=n(34),a=TypeError
e.exports=function(e,t){var n,s
if("string"===t&&r(n=e.toString)&&!o(s=i(n,e)))return s
if(r(n=e.valueOf)&&!o(s=i(n,e)))return s
if("string"!==t&&r(n=e.toString)&&!o(s=i(n,e)))return s
throw new a("Can't convert object to primitive value")}},5031:function(e,t,n){var i=n(7751),r=n(9504),o=n(8480),a=n(3717),s=n(8551),c=r([].concat)
e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f
return n?c(t,n(e)):t}},9167:function(e,t,n){var i=n(4475)
e.exports=i},1056:function(e,t,n){var i=n(4913).f
e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},6682:function(e,t,n){var i=n(9565),r=n(8551),o=n(4901),a=n(4576),s=n(7323),c=TypeError
e.exports=function(e,t){var n=e.exec
if(o(n)){var l=i(n,e,t)
return null!==l&&r(l),l}if("RegExp"===a(e))return i(s,e,t)
throw new c("RegExp#exec called on incompatible receiver")}},7323:function(e,t,n){var i,r,o=n(9565),a=n(9504),s=n(655),c=n(7979),l=n(8429),u=n(5745),d=n(2360),f=n(1181).get,p=n(3635),h=n(8814),g=u("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,y=a("".charAt),b=a("".indexOf),E=a("".replace),k=a("".slice),_=(r=/b*/g,o(m,i=/a/,"a"),o(m,r,"a"),0!==i.lastIndex||0!==r.lastIndex),T=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(_||S||T||p||h)&&(v=function(e){var t,n,i,r,a,l,u,p=this,h=f(p),C=s(e),w=h.raw
if(w)return w.lastIndex=p.lastIndex,t=o(v,w,C),p.lastIndex=w.lastIndex,t
var x=h.groups,I=T&&p.sticky,A=o(c,p),R=p.source,O=0,j=C
if(I&&(A=E(A,"y",""),-1===b(A,"g")&&(A+="g"),j=k(C,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(C,p.lastIndex-1))&&(R="(?: "+R+")",j=" "+j,O++),n=new RegExp("^(?:"+R+")",A)),S&&(n=new RegExp("^"+R+"$(?!\\s)",A)),_&&(i=p.lastIndex),r=o(m,I?n:p,j),I?r?(r.input=k(r.input,O),r[0]=k(r[0],O),r.index=p.lastIndex,p.lastIndex+=r[0].length):p.lastIndex=0:_&&r&&(p.lastIndex=p.global?r.index+r[0].length:i),S&&r&&r.length>1&&o(g,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&x)for(r.groups=l=d(null),a=0;a<x.length;a++)l[(u=x[a])[0]]=r[u[1]]
return r}),e.exports=v},7979:function(e,t,n){var i=n(8551)
e.exports=function(){var e=i(this),t=""
return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1034:function(e,t,n){var i=n(9565),r=n(9297),o=n(1625),a=n(7979),s=RegExp.prototype
e.exports=function(e){var t=e.flags
return void 0!==t||"flags"in s||r(e,"flags")||!o(s,e)?t:i(a,e)}},8429:function(e,t,n){var i=n(9039),r=n(4475).RegExp,o=i((function(){var e=r("a","y")
return e.lastIndex=2,null!==e.exec("abcd")})),a=o||i((function(){return!r("a","y").sticky})),s=o||i((function(){var e=r("^r","gy")
return e.lastIndex=2,null!==e.exec("str")}))
e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},3635:function(e,t,n){var i=n(9039),r=n(4475).RegExp
e.exports=i((function(){var e=r(".","s")
return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},8814:function(e,t,n){var i=n(9039),r=n(4475).RegExp
e.exports=i((function(){var e=r("(?<a>b)","g")
return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},7750:function(e,t,n){var i=n(4117),r=TypeError
e.exports=function(e){if(i(e))throw new r("Can't call method on "+e)
return e}},7633:function(e,t,n){var i=n(7751),r=n(2106),o=n(8227),a=n(3724),s=o("species")
e.exports=function(e){var t=i(e)
a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},687:function(e,t,n){var i=n(4913).f,r=n(9297),o=n(8227)("toStringTag")
e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,o)&&i(e,o,{configurable:!0,value:t})}},6119:function(e,t,n){var i=n(5745),r=n(3392),o=i("keys")
e.exports=function(e){return o[e]||(o[e]=r(e))}},7629:function(e,t,n){var i=n(6395),r=n(4475),o=n(9433),a="__core-js_shared__",s=e.exports=r[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){var i=n(7629)
e.exports=function(e,t){return i[e]||(i[e]=t||{})}},2293:function(e,t,n){var i=n(8551),r=n(5548),o=n(4117),a=n(8227)("species")
e.exports=function(e,t){var n,s=i(e).constructor
return void 0===s||o(n=i(s)[a])?t:r(n)}},8183:function(e,t,n){var i=n(9504),r=n(1291),o=n(655),a=n(7750),s=i("".charAt),c=i("".charCodeAt),l=i("".slice),u=function(e){return function(t,n){var i,u,d=o(a(t)),f=r(n),p=d.length
return f<0||f>=p?e?"":void 0:(i=c(d,f))<55296||i>56319||f+1===p||(u=c(d,f+1))<56320||u>57343?e?s(d,f):i:e?l(d,f,f+2):u-56320+(i-55296<<10)+65536}}
e.exports={codeAt:u(!1),charAt:u(!0)}},706:function(e,t,n){var i=n(350).PROPER,r=n(9039),o=n(7452)
e.exports=function(e){return r((function(){return!!o[e]()||"​᠎"!=="​᠎"[e]()||i&&o[e].name!==e}))}},3802:function(e,t,n){var i=n(9504),r=n(7750),o=n(655),a=n(7452),s=i("".replace),c=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(t){var n=o(r(t))
return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"$1")),n}}
e.exports={start:u(1),end:u(2),trim:u(3)}},4495:function(e,t,n){var i=n(7388),r=n(9039),o=n(4475).String
e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection")
return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},8242:function(e,t,n){var i=n(9565),r=n(7751),o=n(8227),a=n(6840)
e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive")
t&&!t[s]&&a(t,s,(function(e){return i(n,this)}),{arity:1})}},1296:function(e,t,n){var i=n(4495)
e.exports=i&&!!Symbol.for&&!!Symbol.keyFor},1240:function(e,t,n){var i=n(9504)
e.exports=i(1..valueOf)},5610:function(e,t,n){var i=n(1291),r=Math.max,o=Math.min
e.exports=function(e,t){var n=i(e)
return n<0?r(n+t,0):o(n,t)}},5397:function(e,t,n){var i=n(7055),r=n(7750)
e.exports=function(e){return i(r(e))}},1291:function(e,t,n){var i=n(741)
e.exports=function(e){var t=+e
return t!=t||0===t?0:i(t)}},8014:function(e,t,n){var i=n(1291),r=Math.min
e.exports=function(e){var t=i(e)
return t>0?r(t,9007199254740991):0}},8981:function(e,t,n){var i=n(7750),r=Object
e.exports=function(e){return r(i(e))}},2777:function(e,t,n){var i=n(9565),r=n(34),o=n(757),a=n(5966),s=n(4270),c=n(8227),l=TypeError,u=c("toPrimitive")
e.exports=function(e,t){if(!r(e)||o(e))return e
var n,c=a(e,u)
if(c){if(void 0===t&&(t="default"),n=i(c,e,t),!r(n)||o(n))return n
throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,n){var i=n(2777),r=n(757)
e.exports=function(e){var t=i(e,"string")
return r(t)?t:t+""}},2140:function(e,t,n){var i={}
i[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(i)},655:function(e,t,n){var i=n(6955),r=String
e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string")
return r(e)}},6823:function(e){var t=String
e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:function(e,t,n){var i=n(9504),r=0,o=Math.random(),a=i(1..toString)
e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},7040:function(e,t,n){var i=n(4495)
e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){var i=n(3724),r=n(9039)
e.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(e,t,n){var i=n(4475),r=n(4901),o=i.WeakMap
e.exports=r(o)&&/native code/.test(String(o))},511:function(e,t,n){var i=n(9167),r=n(9297),o=n(1951),a=n(4913).f
e.exports=function(e){var t=i.Symbol||(i.Symbol={})
r(t,e)||a(t,e,{value:o.f(e)})}},1951:function(e,t,n){var i=n(8227)
t.f=i},8227:function(e,t,n){var i=n(4475),r=n(5745),o=n(9297),a=n(3392),s=n(4495),c=n(7040),l=i.Symbol,u=r("wks"),d=c?l.for||l:l&&l.withoutSetter||a
e.exports=function(e){return o(u,e)||(u[e]=s&&o(l,e)?l[e]:d("Symbol."+e)),u[e]}},7452:function(e){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},8706:function(e,t,n){var i=n(6518),r=n(9039),o=n(4376),a=n(34),s=n(8981),c=n(6198),l=n(6837),u=n(4659),d=n(1469),f=n(597),p=n(8227),h=n(7388),g=p("isConcatSpreadable"),m=h>=51||!r((function(){var e=[]
return e[g]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1
var t=e[g]
return void 0!==t?!!t:o(e)}
i({target:"Array",proto:!0,arity:1,forced:!m||!f("concat")},{concat:function(e){var t,n,i,r,o,a=s(this),f=d(a,0),p=0
for(t=-1,i=arguments.length;t<i;t++)if(v(o=-1===t?a:arguments[t]))for(r=c(o),l(p+r),n=0;n<r;n++,p++)n in o&&u(f,p,o[n])
else l(p+1),u(f,p++,o)
return f.length=p,f}})},2008:function(e,t,n){var i=n(6518),r=n(9213).filter
i({target:"Array",proto:!0,forced:!n(597)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},3418:function(e,t,n){var i=n(6518),r=n(7916)
i({target:"Array",stat:!0,forced:!n(4428)((function(e){Array.from(e)}))},{from:r})},4423:function(e,t,n){var i=n(6518),r=n(9617).includes,o=n(9039),a=n(6469)
i({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},5276:function(e,t,n){var i=n(6518),r=n(7476),o=n(9617).indexOf,a=n(4598),s=r([].indexOf),c=!!s&&1/s([1],1,-0)<0
i({target:"Array",proto:!0,forced:c||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0
return c?s(this,e,t)||0:o(this,e,t)}})},3792:function(e,t,n){var i=n(5397),r=n(6469),o=n(6269),a=n(1181),s=n(4913).f,c=n(1088),l=n(2529),u=n(6395),d=n(3724),f="Array Iterator",p=a.set,h=a.getterFor(f)
e.exports=c(Array,"Array",(function(e,t){p(this,{type:f,target:i(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++
if(!t||n>=t.length)return e.target=void 0,l(void 0,!0)
switch(e.kind){case"keys":return l(n,!1)
case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values")
var g=o.Arguments=o.Array
if(r("keys"),r("values"),r("entries"),!u&&d&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(e){}},8598:function(e,t,n){var i=n(6518),r=n(9504),o=n(7055),a=n(5397),s=n(4598),c=r([].join)
i({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(e){return c(a(this),void 0===e?",":e)}})},2062:function(e,t,n){var i=n(6518),r=n(9213).map
i({target:"Array",proto:!0,forced:!n(597)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},2712:function(e,t,n){var i=n(6518),r=n(926).left,o=n(4598),a=n(7388)
i({target:"Array",proto:!0,forced:!n(9088)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length
return r(this,e,t,t>1?arguments[1]:void 0)}})},4782:function(e,t,n){var i=n(6518),r=n(4376),o=n(3517),a=n(34),s=n(5610),c=n(6198),l=n(5397),u=n(4659),d=n(8227),f=n(597),p=n(7680),h=f("slice"),g=d("species"),m=Array,v=Math.max
i({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,i,d,f=l(this),h=c(f),y=s(e,h),b=s(void 0===t?h:t,h)
if(r(f)&&(n=f.constructor,(o(n)&&(n===m||r(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return p(f,y,b)
for(i=new(void 0===n?m:n)(v(b-y,0)),d=0;y<b;y++,d++)y in f&&u(i,d,f[y])
return i.length=d,i}})},6910:function(e,t,n){var i=n(6518),r=n(9504),o=n(9306),a=n(8981),s=n(6198),c=n(4606),l=n(655),u=n(9039),d=n(4488),f=n(4598),p=n(8834),h=n(3202),g=n(7388),m=n(9160),v=[],y=r(v.sort),b=r(v.push),E=u((function(){v.sort(void 0)})),k=u((function(){v.sort(null)})),_=f("sort"),T=!u((function(){if(g)return g<70
if(!(p&&p>3)){if(h)return!0
if(m)return m<603
var e,t,n,i,r=""
for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3
break
case 68:case 71:n=4
break
default:n=2}for(i=0;i<47;i++)v.push({k:t+i,v:n})}for(v.sort((function(e,t){return t.v-e.v})),i=0;i<v.length;i++)t=v[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t)
return"DGBEFHACIJK"!==r}}))
i({target:"Array",proto:!0,forced:E||!k||!_||!T},{sort:function(e){void 0!==e&&o(e)
var t=a(this)
if(T)return void 0===e?y(t):y(t,e)
var n,i,r=[],u=s(t)
for(i=0;i<u;i++)i in t&&b(r,t[i])
for(d(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:l(t)>l(n)?1:-1}}(e)),n=s(r),i=0;i<n;)t[i]=r[i++]
for(;i<u;)c(t,i++)
return t}})},4554:function(e,t,n){var i=n(6518),r=n(8981),o=n(5610),a=n(1291),s=n(6198),c=n(4527),l=n(6837),u=n(1469),d=n(4659),f=n(4606),p=n(597)("splice"),h=Math.max,g=Math.min
i({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,i,p,m,v,y,b=r(this),E=s(b),k=o(e,E),_=arguments.length
for(0===_?n=i=0:1===_?(n=0,i=E-k):(n=_-2,i=g(h(a(t),0),E-k)),l(E+n-i),p=u(b,i),m=0;m<i;m++)(v=k+m)in b&&d(p,m,b[v])
if(p.length=i,n<i){for(m=k;m<E-i;m++)y=m+n,(v=m+i)in b?b[y]=b[v]:f(b,y)
for(m=E;m>E-i+n;m--)f(b,m-1)}else if(n>i)for(m=E-i;m>k;m--)y=m+n-1,(v=m+i-1)in b?b[y]=b[v]:f(b,y)
for(m=0;m<n;m++)b[m+k]=arguments[m+2]
return c(b,E-i+n),p}})},739:function(e,t,n){var i=n(6518),r=n(9039),o=n(8981),a=n(2777)
i({target:"Date",proto:!0,arity:1,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=o(this),n=a(t,"number")
return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},9572:function(e,t,n){var i=n(9297),r=n(6840),o=n(3640),a=n(8227)("toPrimitive"),s=Date.prototype
i(s,a)||r(s,a,o)},2010:function(e,t,n){var i=n(3724),r=n(350).EXISTS,o=n(9504),a=n(2106),s=Function.prototype,c=o(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(l.exec)
i&&!r&&a(s,"name",{configurable:!0,get:function(){try{return u(l,c(this))[1]}catch(e){return""}}})},3110:function(e,t,n){var i=n(6518),r=n(7751),o=n(8745),a=n(9565),s=n(9504),c=n(9039),l=n(4901),u=n(757),d=n(7680),f=n(6933),p=n(4495),h=String,g=r("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),b=s("".replace),E=s(1..toString),k=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,S=!p||c((function(){var e=r("Symbol")("stringify detection")
return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),C=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),w=function(e,t){var n=d(arguments),i=f(t)
if(l(i)||void 0!==e&&!u(e))return n[1]=function(e,t){if(l(i)&&(t=a(i,this,h(e),t)),!u(t))return t},o(g,null,n)},x=function(e,t,n){var i=v(n,t-1),r=v(n,t+1)
return m(_,e)&&!m(T,r)||m(T,e)&&!m(_,i)?"\\u"+E(y(e,0),16):e}
g&&i({target:"JSON",stat:!0,arity:3,forced:S||C},{stringify:function(e,t,n){var i=d(arguments),r=o(S?w:g,null,i)
return C&&"string"==typeof r?b(r,k,x):r}})},2892:function(e,t,n){var i=n(6518),r=n(6395),o=n(3724),a=n(4475),s=n(9167),c=n(9504),l=n(2796),u=n(9297),d=n(3167),f=n(1625),p=n(757),h=n(2777),g=n(9039),m=n(8480).f,v=n(7347).f,y=n(4913).f,b=n(1240),E=n(3802).trim,k="Number",_=a[k],T=s[k],S=_.prototype,C=a.TypeError,w=c("".slice),x=c("".charCodeAt),I=function(e){var t,n,i,r,o,a,s,c,l=h(e,"number")
if(p(l))throw new C("Cannot convert a Symbol value to a number")
if("string"==typeof l&&l.length>2)if(l=E(l),43===(t=x(l,0))||45===t){if(88===(n=x(l,2))||120===n)return NaN}else if(48===t){switch(x(l,1)){case 66:case 98:i=2,r=49
break
case 79:case 111:i=8,r=55
break
default:return+l}for(a=(o=w(l,2)).length,s=0;s<a;s++)if((c=x(o,s))<48||c>r)return NaN
return parseInt(o,i)}return+l},A=l(k,!_(" 0o1")||!_("0b1")||_("+0x1")),R=function(e){var t,n=arguments.length<1?0:_(function(e){var t=h(e,"number")
return"bigint"==typeof t?t:I(t)}(e))
return f(S,t=this)&&g((function(){b(t)}))?d(Object(n),this,R):n}
R.prototype=S,A&&!r&&(S.constructor=R),i({global:!0,constructor:!0,wrap:!0,forced:A},{Number:R})
var O=function(e,t){for(var n,i=o?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)u(t,n=i[r])&&!u(e,n)&&y(e,n,v(t,n))}
r&&T&&O(s[k],T),(A||r)&&O(s[k],_)},2637:function(e,t,n){n(6518)({target:"Number",stat:!0},{isInteger:n(2087)})},9085:function(e,t,n){var i=n(6518),r=n(4213)
i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},7427:function(e,t,n){var i=n(6518),r=n(3724),o=n(2551),a=n(9306),s=n(8981),c=n(4913)
r&&i({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){c.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},3851:function(e,t,n){var i=n(6518),r=n(9039),o=n(5397),a=n(7347).f,s=n(3724)
i({target:"Object",stat:!0,forced:!s||r((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},1278:function(e,t,n){var i=n(6518),r=n(3724),o=n(5031),a=n(5397),s=n(7347),c=n(4659)
i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,i=a(e),r=s.f,l=o(i),u={},d=0;l.length>d;)void 0!==(n=r(i,t=l[d++]))&&c(u,t,n)
return u}})},1480:function(e,t,n){var i=n(6518),r=n(9039),o=n(298).f
i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},9773:function(e,t,n){var i=n(6518),r=n(4495),o=n(9039),a=n(3717),s=n(8981)
i({target:"Object",stat:!0,forced:!r||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f
return t?t(s(e)):[]}})},9432:function(e,t,n){var i=n(6518),r=n(8981),o=n(1072)
i({target:"Object",stat:!0,forced:n(9039)((function(){o(1)}))},{keys:function(e){return o(r(e))}})},6099:function(e,t,n){var i=n(2140),r=n(6840),o=n(3179)
i||r(Object.prototype,"toString",o,{unsafe:!0})},4864:function(e,t,n){var i=n(3724),r=n(4475),o=n(9504),a=n(2796),s=n(3167),c=n(6699),l=n(2360),u=n(8480).f,d=n(1625),f=n(788),p=n(655),h=n(1034),g=n(8429),m=n(1056),v=n(6840),y=n(9039),b=n(9297),E=n(1181).enforce,k=n(7633),_=n(8227),T=n(3635),S=n(8814),C=_("match"),w=r.RegExp,x=w.prototype,I=r.SyntaxError,A=o(x.exec),R=o("".charAt),O=o("".replace),j=o("".indexOf),M=o("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,D=/a/g,U=new w(P)!==P,L=g.MISSED_STICKY,F=g.UNSUPPORTED_Y
if(a("RegExp",i&&(!U||L||T||S||y((function(){return D[C]=!1,w(P)!==P||w(D)===D||"/a/i"!==String(w(P,"i"))}))))){for(var B=function(e,t){var n,i,r,o,a,u,g=d(x,this),m=f(e),v=void 0===t,y=[],k=e
if(!g&&m&&v&&e.constructor===B)return e
if((m||d(x,e))&&(e=e.source,v&&(t=h(k))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),k=e,T&&"dotAll"in P&&(i=!!t&&j(t,"s")>-1)&&(t=O(t,/s/g,"")),n=t,L&&"sticky"in P&&(r=!!t&&j(t,"y")>-1)&&F&&(t=O(t,/y/g,"")),S&&(o=function(e){for(var t,n=e.length,i=0,r="",o=[],a=l(null),s=!1,c=!1,u=0,d="";i<=n;i++){if("\\"===(t=R(e,i)))t+=R(e,++i)
else if("]"===t)s=!1
else if(!s)switch(!0){case"["===t:s=!0
break
case"("===t:A(N,M(e,i+1))&&(i+=2,c=!0),r+=t,u++
continue
case">"===t&&c:if(""===d||b(a,d))throw new I("Invalid capture group name")
a[d]=!0,o[o.length]=[d,u],c=!1,d=""
continue}c?d+=t:r+=t}return[r,o]}(e),e=o[0],y=o[1]),a=s(w(e,t),g?this:x,B),(i||r||y.length)&&(u=E(a),i&&(u.dotAll=!0,u.raw=B(function(e){for(var t,n=e.length,i=0,r="",o=!1;i<=n;i++)"\\"!==(t=R(e,i))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),r+=t):r+="[\\s\\S]":r+=t+R(e,++i)
return r}(e),n)),r&&(u.sticky=!0),y.length&&(u.groups=y)),e!==k)try{c(a,"source",""===k?"(?:)":k)}catch(e){}return a},q=u(w),H=0;q.length>H;)m(B,w,q[H++])
x.constructor=B,B.prototype=x,v(r,"RegExp",B,{constructor:!0})}k("RegExp")},7495:function(e,t,n){var i=n(6518),r=n(7323)
i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},8781:function(e,t,n){var i=n(350).PROPER,r=n(6840),o=n(8551),a=n(655),s=n(9039),c=n(1034),l="toString",u=RegExp.prototype,d=u[l],f=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),p=i&&d.name!==l;(f||p)&&r(u,l,(function(){var e=o(this)
return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},1699:function(e,t,n){var i=n(6518),r=n(9504),o=n(5749),a=n(7750),s=n(655),c=n(1436),l=r("".indexOf)
i({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},7764:function(e,t,n){var i=n(8183).charAt,r=n(655),o=n(1181),a=n(1088),s=n(2529),c="String Iterator",l=o.set,u=o.getterFor(c)
a(String,"String",(function(e){l(this,{type:c,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index
return r>=n.length?s(void 0,!0):(e=i(n,r),t.index+=e.length,s(e,!1))}))},8543:function(e,t,n){var i=n(6518),r=n(9565),o=n(7476),a=n(3994),s=n(2529),c=n(7750),l=n(8014),u=n(655),d=n(8551),f=n(4117),p=n(4576),h=n(788),g=n(1034),m=n(5966),v=n(6840),y=n(9039),b=n(8227),E=n(2293),k=n(7829),_=n(6682),T=n(1181),S=n(6395),C=b("matchAll"),w="RegExp String",x=w+" Iterator",I=T.set,A=T.getterFor(x),R=RegExp.prototype,O=TypeError,j=o("".indexOf),M=o("".matchAll),N=!!M&&!y((function(){M("a",/./)})),P=a((function(e,t,n,i){I(this,{type:x,regexp:e,string:t,global:n,unicode:i,done:!1})}),w,(function(){var e=A(this)
if(e.done)return s(void 0,!0)
var t=e.regexp,n=e.string,i=_(t,n)
return null===i?(e.done=!0,s(void 0,!0)):e.global?(""===u(i[0])&&(t.lastIndex=k(n,l(t.lastIndex),e.unicode)),s(i,!1)):(e.done=!0,s(i,!1))})),D=function(e){var t,n,i,r=d(this),o=u(e),a=E(r,RegExp),s=u(g(r))
return t=new a(a===RegExp?r.source:r,s),n=!!~j(s,"g"),i=!!~j(s,"u"),t.lastIndex=l(r.lastIndex),new P(t,o,n,i)}
i({target:"String",proto:!0,forced:N},{matchAll:function(e){var t,n,i,o,a=c(this)
if(f(e)){if(N)return M(a,e)}else{if(h(e)&&(t=u(c(g(e))),!~j(t,"g")))throw new O("`.matchAll` does not allow non-global regexes")
if(N)return M(a,e)
if(void 0===(i=m(e,C))&&S&&"RegExp"===p(e)&&(i=D),i)return r(i,e,a)}return n=u(a),o=new RegExp(e,"g"),S?r(D,o,n):o[C](n)}}),S||C in R||v(R,C,D)},1761:function(e,t,n){var i=n(9565),r=n(9228),o=n(8551),a=n(4117),s=n(8014),c=n(655),l=n(7750),u=n(5966),d=n(7829),f=n(6682)
r("match",(function(e,t,n){return[function(t){var n=l(this),r=a(t)?void 0:u(t,e)
return r?i(r,t,n):new RegExp(t)[e](c(n))},function(e){var i=o(this),r=c(e),a=n(t,i,r)
if(a.done)return a.value
if(!i.global)return f(i,r)
var l=i.unicode
i.lastIndex=0
for(var u,p=[],h=0;null!==(u=f(i,r));){var g=c(u[0])
p[h]=g,""===g&&(i.lastIndex=d(r,s(i.lastIndex),l)),h++}return 0===h?null:p}]}))},5440:function(e,t,n){var i=n(8745),r=n(9565),o=n(9504),a=n(9228),s=n(9039),c=n(8551),l=n(4901),u=n(4117),d=n(1291),f=n(8014),p=n(655),h=n(7750),g=n(7829),m=n(5966),v=n(2478),y=n(6682),b=n(8227)("replace"),E=Math.max,k=Math.min,_=o([].concat),T=o([].push),S=o("".indexOf),C=o("".slice),w="$0"==="a".replace(/./,"$0"),x=!!/./[b]&&""===/./[b]("a","$0")
a("replace",(function(e,t,n){var o=x?"$":"$0"
return[function(e,n){var i=h(this),o=u(e)?void 0:m(e,b)
return o?r(o,e,i,n):r(t,p(i),e,n)},function(e,r){var a=c(this),s=p(e)
if("string"==typeof r&&-1===S(r,o)&&-1===S(r,"$<")){var u=n(t,a,s,r)
if(u.done)return u.value}var h=l(r)
h||(r=p(r))
var m,b=a.global
b&&(m=a.unicode,a.lastIndex=0)
for(var w,x=[];null!==(w=y(a,s))&&(T(x,w),b);)""===p(w[0])&&(a.lastIndex=g(s,f(a.lastIndex),m))
for(var I,A="",R=0,O=0;O<x.length;O++){for(var j,M=p((w=x[O])[0]),N=E(k(d(w.index),s.length),0),P=[],D=1;D<w.length;D++)T(P,void 0===(I=w[D])?I:String(I))
var U=w.groups
if(h){var L=_([M],P,N,s)
void 0!==U&&T(L,U),j=p(i(r,void 0,L))}else j=v(M,s,N,P,U,r)
N>=R&&(A+=C(s,R,N)+j,R=N+M.length)}return A+C(s,R)}]}),!!s((function(){var e=/./
return e.exec=function(){var e=[]
return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!w||x)},744:function(e,t,n){var i=n(9565),r=n(9504),o=n(9228),a=n(8551),s=n(4117),c=n(7750),l=n(2293),u=n(7829),d=n(8014),f=n(655),p=n(5966),h=n(6682),g=n(8429),m=n(9039),v=g.UNSUPPORTED_Y,y=Math.min,b=r([].push),E=r("".slice),k=!m((function(){var e=/(?:)/,t=e.exec
e.exec=function(){return t.apply(this,arguments)}
var n="ab".split(e)
return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),_="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length
o("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t
return[function(t,n){var o=c(this),a=s(t)?void 0:p(t,e)
return a?i(a,t,o,n):i(r,f(o),t,n)},function(e,i){var o=a(this),s=f(e)
if(!_){var c=n(r,o,s,i,r!==t)
if(c.done)return c.value}var p=l(o,RegExp),g=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),k=new p(v?"^(?:"+o.source+")":o,m),T=void 0===i?4294967295:i>>>0
if(0===T)return[]
if(0===s.length)return null===h(k,s)?[s]:[]
for(var S=0,C=0,w=[];C<s.length;){k.lastIndex=v?0:C
var x,I=h(k,v?E(s,C):s)
if(null===I||(x=y(d(k.lastIndex+(v?C:0)),s.length))===S)C=u(s,C,g)
else{if(b(w,E(s,S,C)),w.length===T)return w
for(var A=1;A<=I.length-1;A++)if(b(w,I[A]),w.length===T)return w
C=S=x}}return b(w,E(s,S)),w}]}),_||!k,v)},2762:function(e,t,n){var i=n(6518),r=n(3802).trim
i({target:"String",proto:!0,forced:n(706)("trim")},{trim:function(){return r(this)}})},6761:function(e,t,n){var i=n(6518),r=n(4475),o=n(9565),a=n(9504),s=n(6395),c=n(3724),l=n(4495),u=n(9039),d=n(9297),f=n(1625),p=n(8551),h=n(5397),g=n(6969),m=n(655),v=n(6980),y=n(2360),b=n(1072),E=n(8480),k=n(298),_=n(3717),T=n(7347),S=n(4913),C=n(6801),w=n(8773),x=n(6840),I=n(2106),A=n(5745),R=n(6119),O=n(421),j=n(3392),M=n(8227),N=n(1951),P=n(511),D=n(8242),U=n(687),L=n(1181),F=n(9213).forEach,B=R("hidden"),q="Symbol",H="prototype",G=L.set,V=L.getterFor(q),K=Object[H],W=r.Symbol,z=W&&W[H],X=r.RangeError,Q=r.TypeError,Y=r.QObject,$=T.f,J=S.f,Z=k.f,ee=w.f,te=a([].push),ne=A("symbols"),ie=A("op-symbols"),re=A("wks"),oe=!Y||!Y[H]||!Y[H].findChild,ae=function(e,t,n){var i=$(K,t)
i&&delete K[t],J(e,t,n),i&&e!==K&&J(K,t,i)},se=c&&u((function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?ae:J,ce=function(e,t){var n=ne[e]=y(z)
return G(n,{type:q,tag:e,description:t}),c||(n.description=t),n},le=function(e,t,n){e===K&&le(ie,t,n),p(e)
var i=g(t)
return p(n),d(ne,i)?(n.enumerable?(d(e,B)&&e[B][i]&&(e[B][i]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,B)||J(e,B,v(1,y(null))),e[B][i]=!0),se(e,i,n)):J(e,i,n)},ue=function(e,t){p(e)
var n=h(t),i=b(n).concat(he(n))
return F(i,(function(t){c&&!o(de,n,t)||le(e,t,n[t])})),e},de=function(e){var t=g(e),n=o(ee,this,t)
return!(this===K&&d(ne,t)&&!d(ie,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,B)&&this[B][t])||n)},fe=function(e,t){var n=h(e),i=g(t)
if(n!==K||!d(ne,i)||d(ie,i)){var r=$(n,i)
return!r||!d(ne,i)||d(n,B)&&n[B][i]||(r.enumerable=!0),r}},pe=function(e){var t=Z(h(e)),n=[]
return F(t,(function(e){d(ne,e)||d(O,e)||te(n,e)})),n},he=function(e){var t=e===K,n=Z(t?ie:h(e)),i=[]
return F(n,(function(e){!d(ne,e)||t&&!d(K,e)||te(i,ne[e])})),i}
l||(W=function(){if(f(z,this))throw new Q("Symbol is not a constructor")
var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=j(e),n=function(e){var i=void 0===this?r:this
i===K&&o(n,ie,e),d(i,B)&&d(i[B],t)&&(i[B][t]=!1)
var a=v(1,e)
try{se(i,t,a)}catch(e){if(!(e instanceof X))throw e
ae(i,t,a)}}
return c&&oe&&se(K,t,{configurable:!0,set:n}),ce(t,e)},x(z=W[H],"toString",(function(){return V(this).tag})),x(W,"withoutSetter",(function(e){return ce(j(e),e)})),w.f=de,S.f=le,C.f=ue,T.f=fe,E.f=k.f=pe,_.f=he,N.f=function(e){return ce(M(e),e)},c&&(I(z,"description",{configurable:!0,get:function(){return V(this).description}}),s||x(K,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),F(b(re),(function(e){P(e)})),i({target:q,stat:!0,forced:!l},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:fe}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),D(),U(W,q),O[B]=!0},9463:function(e,t,n){var i=n(6518),r=n(3724),o=n(4475),a=n(9504),s=n(9297),c=n(4901),l=n(1625),u=n(655),d=n(2106),f=n(7740),p=o.Symbol,h=p&&p.prototype
if(r&&c(p)&&(!("description"in h)||void 0!==p().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=l(h,this)?new p(e):void 0===e?p():p(e)
return""===e&&(g[t]=!0),t}
f(m,p),m.prototype=h,h.constructor=m
var v="Symbol(description detection)"===String(p("description detection")),y=a(h.valueOf),b=a(h.toString),E=/^Symbol\((.*)\)[^)]+$/,k=a("".replace),_=a("".slice)
d(h,"description",{configurable:!0,get:function(){var e=y(this)
if(s(g,e))return""
var t=b(e),n=v?_(t,7,-1):k(t,E,"$1")
return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:m})}},1510:function(e,t,n){var i=n(6518),r=n(7751),o=n(9297),a=n(655),s=n(5745),c=n(1296),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry")
i({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e)
if(o(l,t))return l[t]
var n=r("Symbol")(t)
return l[t]=n,u[n]=t,n}})},2259:function(e,t,n){n(511)("iterator")},2675:function(e,t,n){n(6761),n(1510),n(7812),n(3110),n(9773)},7812:function(e,t,n){var i=n(6518),r=n(9297),o=n(757),a=n(6823),s=n(5745),c=n(1296),l=s("symbol-to-string-registry")
i({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol")
if(r(l,e))return l[e]}})},5700:function(e,t,n){var i=n(511),r=n(8242)
i("toPrimitive"),r()},8344:function(e,t,n){n(8543)},3500:function(e,t,n){var i=n(4475),r=n(7400),o=n(9296),a=n(235),s=n(6699),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}}
for(var l in r)r[l]&&c(i[l]&&i[l].prototype)
c(o)},2953:function(e,t,n){var i=n(4475),r=n(7400),o=n(9296),a=n(3792),s=n(6699),c=n(687),l=n(8227)("iterator"),u=a.values,d=function(e,t){if(e){if(e[l]!==u)try{s(e,l,u)}catch(t){e[l]=u}if(c(e,t,!0),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}}
for(var f in r)d(i[f]&&i[f].prototype,f)
d(o,"DOMTokenList")}},t={}
function n(i){var r=t[i]
if(void 0!==r)return r.exports
var o=t[i]={exports:{}}
return e[i].call(o.exports,o,o.exports,n),o.exports}n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis
try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}
var i={}
function r(e,t){if(e){if("string"==typeof e)return o(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,l(i.key),i)}}function c(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=a(i))return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==a(t)?t:t+""}n.r(i),n.d(i,{SimpleKeyboard:function(){return I},default:function(){return A}}),n(5276),n(8598),n(4782),n(4554),n(2010),n(7427),n(6099),n(7495),n(8781),n(5440),n(744),n(2762),"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){if("Element"in e){var t="classList",n="prototype",i=e.Element[n],r=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t
return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},c=function(e,t){if(""===t)throw new s("SYNTAX_ERR","The token must not be empty.")
if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.")
return a.call(e,t)},l=function(e){for(var t=o.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],i=0,r=n.length;i<r;i++)this.push(n[i])
this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=l[n]=[],d=function(){return new l(this)}
if(s[n]=Error[n],u.item=function(e){return this[e]||null},u.contains=function(e){return~c(this,e+"")},u.add=function(){var e,t=arguments,n=0,i=t.length,r=!1
do{~c(this,e=t[n]+"")||(this.push(e),r=!0)}while(++n<i)
r&&this._updateClassName()},u.remove=function(){var e,t,n=arguments,i=0,r=n.length,o=!1
do{for(t=c(this,e=n[i]+"");~t;)this.splice(t,1),o=!0,t=c(this,e)}while(++i<r)
o&&this._updateClassName()},u.toggle=function(e,t){var n=this.contains(e),i=n?!0!==t&&"remove":!1!==t&&"add"
return i&&this[i](e),!0===t||!1===t?t:!n},u.replace=function(e,t){var n=c(e+"")
~n&&(this.splice(n,1,t),this._updateClassName())},u.toString=function(){return this.join(" ")},r.defineProperty){var f={get:d,enumerable:!0,configurable:!0}
try{r.defineProperty(i,t,f)}catch(e){void 0!==e.number&&-2146823252!==e.number||(f.enumerable=!1,r.defineProperty(i,t,f))}}else r[n].__defineGetter__&&i.__defineGetter__(t,d)}}(self),function(){var e=document.createElement("_")
if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e]
DOMTokenList.prototype[e]=function(e){var n,i=arguments.length
for(n=0;n<i;n++)e=arguments[n],t.call(this,e)}}
t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle
DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,t){var n=this.toString().split(" "),i=n.indexOf(e+"")
~i&&(n=n.slice(i),this.remove.apply(this,n),this.add(t),this.add.apply(this,n.slice(1)))}),e=null}()),n(2675),n(9463),n(2259),n(5700),n(8706),n(2008),n(3418),n(4423),n(3792),n(2062),n(6910),n(739),n(9572),n(2892),n(9085),n(3851),n(1278),n(9432),n(4864),n(1699),n(7764),n(8344),n(3500),n(2953),n(2712),n(2637),n(1480),n(1761)
var u=function(){return e=function e(t){var n=t.getOptions,i=t.getCaretPosition,r=t.getCaretPositionEnd,o=t.dispatch
!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"getOptions",void 0),c(this,"getCaretPosition",void 0),c(this,"getCaretPositionEnd",void 0),c(this,"dispatch",void 0),c(this,"maxLengthReached",void 0),c(this,"isStandardButton",(function(e){return e&&!("{"===e[0]&&"}"===e[e.length-1])})),this.getOptions=n,this.getCaretPosition=i,this.getCaretPositionEnd=r,this.dispatch=o,e.bindMethods(e,this)},t=[{key:"getButtonType",value:function(e){return e.includes("{")&&e.includes("}")&&"{//}"!==e?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(e){var t=this.getButtonType(e),n=e.replace("{","").replace("}",""),i=""
return"standardBtn"!==t&&(i=" hg-button-".concat(n)),"hg-".concat(t).concat(i)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(e,t){return(t=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),t):t||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.getOptions(),a=[n,i,r],s=t
return("{bksp}"===e||"{backspace}"===e)&&s.length>0?s=this.removeAt.apply(this,[s].concat(a)):("{delete}"===e||"{forwarddelete}"===e)&&s.length>0?s=this.removeForwardsAt.apply(this,[s].concat(a)):"{space}"===e?s=this.addStringAt.apply(this,[s," "].concat(a)):"{tab}"!==e||"boolean"==typeof o.tabCharOnTab&&!1===o.tabCharOnTab?"{enter}"!==e&&"{numpadenter}"!==e||!o.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?s=this.addStringAt.apply(this,[s,e[e.length-2]].concat(a)):"{numpaddivide}"===e?s=this.addStringAt.apply(this,[s,"/"].concat(a)):"{numpadmultiply}"===e?s=this.addStringAt.apply(this,[s,"*"].concat(a)):"{numpadsubtract}"===e?s=this.addStringAt.apply(this,[s,"-"].concat(a)):"{numpadadd}"===e?s=this.addStringAt.apply(this,[s,"+"].concat(a)):"{numpaddecimal}"===e?s=this.addStringAt.apply(this,[s,"."].concat(a)):"{"===e||"}"===e?s=this.addStringAt.apply(this,[s,e].concat(a)):e.includes("{")||e.includes("}")||(s=this.addStringAt.apply(this,[s,e].concat(a))):s=this.addStringAt.apply(this,[s,"\n"].concat(a)):s=this.addStringAt.apply(this,[s,"\t"].concat(a)),o.debug&&console.log("Input will be: "+s),s}},{key:"updateCaretPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(e,t)
this.dispatch((function(e){e.setCaretPosition(n)}))}},{key:"updateCaretPosAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),i=this.getCaretPosition()
return null!=i&&(t?i>0&&(i-=e):i+=e),n.debug&&console.log("Caret at:",i),i}},{key:"addStringAt",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
return i||0===i?(n=[e.slice(0,i),t,e.slice(r)].join(""),this.isMaxLengthReached()||o&&this.updateCaretPos(t.length)):n=e+t,n}},{key:"removeAt",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3]
if(0===n&&0===i)return e
if(n===i){var o=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g
n&&n>=0?e.substring(n-2,n).match(o)?(t=e.substr(0,n-2)+e.substr(n),r&&this.updateCaretPos(2,!0)):(t=e.substr(0,n-1)+e.substr(n),r&&this.updateCaretPos(1,!0)):e.slice(-2).match(o)?(t=e.slice(0,-2),r&&this.updateCaretPos(2,!0)):(t=e.slice(0,-1),r&&this.updateCaretPos(1,!0))}else t=e.slice(0,n)+e.slice(i),r&&this.dispatch((function(e){e.setCaretPosition(n)}))
return t}},{key:"removeForwardsAt",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3]
return null!=e&&e.length&&null!==n?(n===i?t=e.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?e.substr(0,n)+e.substr(n+2):e.substr(0,n)+e.substr(n+1):(t=e.slice(0,n)+e.slice(i),r&&this.dispatch((function(e){e.setCaretPosition(n)}))),t):e}},{key:"handleMaxLength",value:function(e,t){var n=this.getOptions(),i=n.maxLength,r=e[n.inputName||"default"],o=t.length-1>=i
if(t.length<=r.length)return!1
if(Number.isInteger(i))return n.debug&&console.log("maxLength (num) reached:",o),o?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)
if("object"===a(i)){var s=t.length-1>=i[n.inputName||"default"]
return n.debug&&console.log("maxLength (obj) reached:",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(e){return e?e.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(e,t){return t.length?e+t[0].toUpperCase()+t.slice(1):e})):""}},{key:"chunkArray",value:function(e,t){return function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array(Math.ceil(e.length/t))).map((function(n,i){return e.slice(t*i,t+t*i)}))}},{key:"escapeRegex",value:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(e,t){var n=e,i=t.indexOf("‫")
return i<e&&-1!=i&&n--,t.indexOf("‬")<e&&-1!=i&&n--,n<0?0:n}}],n=[{key:"bindMethods",value:function(e,t){var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=r(e))){n&&(e=n)
var i=0,o=function(){}
return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}(Object.getOwnPropertyNames(e.prototype))
try{for(i.s();!(n=i.n()).done;){var o=n.value
"constructor"===o||"bindMethods"===o||(t[o]=t[o].bind(t))}}catch(e){i.e(e)}finally{i.f()}}}],t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e
var e,t,n}()
c(u,"noop",(function(){}))
var d=u
function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=f(e)||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=f(i))return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==f(t)?t:t+""}var g=function(){return e=function e(t){var n=this,i=t.dispatch,r=t.getOptions
!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"getOptions",void 0),p(this,"dispatch",void 0),p(this,"isModifierKey",(function(e){return e.altKey||e.ctrlKey||e.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.code||e.key||n.keyCodeToKey(null==e?void 0:e.keyCode))})),this.dispatch=i,this.getOptions=r,d.bindMethods(e,this)},(t=[{key:"handleHighlightKeyDown",value:function(e){var t=this.getOptions()
t.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation())
var n=this.getSimpleKeyboardLayoutKey(e)
this.dispatch((function(i){var r,o,a=i.getButtonElement(n),s=i.getButtonElement("{".concat(n,"}"))
if(a)r=a,o=n
else{if(!s)return
r=s,o="{".concat(n,"}")}var c,l,u,d,f=function(e){e.style.background=t.physicalKeyboardHighlightBgColor||"#dadce4",e.style.color=t.physicalKeyboardHighlightTextColor||"black"}
if(r)if(Array.isArray(r)){if(r.forEach((function(e){return f(e)})),t.physicalKeyboardHighlightPress)if(t.physicalKeyboardHighlightPressUsePointerEvents)null===(c=r[0])||void 0===c||null===(l=c.onpointerdown)||void 0===l||l.call(c,e)
else if(t.physicalKeyboardHighlightPressUseClick){var p
null===(p=r[0])||void 0===p||p.click()}else i.handleButtonClicked(o,e)}else f(r),t.physicalKeyboardHighlightPress&&(t.physicalKeyboardHighlightPressUsePointerEvents?null===(u=r)||void 0===u||null===(d=u.onpointerdown)||void 0===d||d.call(u,e):t.physicalKeyboardHighlightPressUseClick?r.click():i.handleButtonClicked(o,e))}))}},{key:"handleHighlightKeyUp",value:function(e){var t=this.getOptions()
t.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation())
var n=this.getSimpleKeyboardLayoutKey(e)
this.dispatch((function(i){var r,o,a,s=i.getButtonElement(n)||i.getButtonElement("{".concat(n,"}")),c=function(e){e.removeAttribute&&e.removeAttribute("style")}
s&&(Array.isArray(s)?(s.forEach((function(e){return c(e)})),t.physicalKeyboardHighlightPressUsePointerEvents&&(null===(r=s[0])||void 0===r||null===(o=r.onpointerup)||void 0===o||o.call(r,e))):(c(s),t.physicalKeyboardHighlightPressUsePointerEvents&&(null==s||null===(a=s.onpointerup)||void 0===a||a.call(s,e))))}))}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var t,n,i=e.code||e.key||this.keyCodeToKey(null==e?void 0:e.keyCode)
return(n=null!=i&&i.includes("Numpad")||null!=i&&i.includes("Shift")||null!=i&&i.includes("Space")||null!=i&&i.includes("Backspace")||null!=i&&i.includes("Control")||null!=i&&i.includes("Alt")||null!=i&&i.includes("Meta")?e.code||"":e.key||this.keyCodeToKey(null==e?void 0:e.keyCode)||"").length>1?null===(t=n)||void 0===t?void 0:t.toLowerCase():n}},{key:"keyCodeToKey",value:function(e){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[e]||""}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e
var e,t}()
function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=m(e)||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=m(i))return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==m(t)?t:t+""}var b=function(){return e=function e(t){var n=t.utilities,i=t.options
!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"utilities",void 0),v(this,"options",void 0),v(this,"candidateBoxElement",void 0),v(this,"pageIndex",0),v(this,"pageSize",void 0),this.utilities=n,this.options=i,d.bindMethods(e,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},t=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(e){var t=this,n=e.candidateValue,i=e.targetElement,r=e.onSelect
if(n&&n.length){var o=this.utilities.chunkArray(n.split(" "),this.pageSize)
this.renderPage({candidateListPages:o,targetElement:i,pageIndex:this.pageIndex,nbPages:o.length,onItemSelected:function(e,n){r(e,n),t.destroy()}})}}},{key:"renderPage",value:function(e){var t,n=this,i=e.candidateListPages,r=e.targetElement,o=e.pageIndex,a=e.nbPages,s=e.onItemSelected
null===(t=this.candidateBoxElement)||void 0===t||t.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box"
var c=document.createElement("ul")
c.className="hg-candidate-box-list",i[o].forEach((function(e){var t,i=document.createElement("li"),r=function(){var e=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click")
return Object.defineProperty(e,"target",{value:i}),e}
i.className="hg-candidate-box-list-item",i.innerHTML=(null===(t=n.options.display)||void 0===t?void 0:t[e])||e,n.options.useTouchEvents?i.ontouchstart=function(t){return s(e,t||r())}:i.onclick=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r()
return s(e,t)},c.appendChild(i)}))
var l=o>0,u=document.createElement("div")
u.classList.add("hg-candidate-box-prev"),l&&u.classList.add("hg-candidate-box-btn-active")
var d=function(){l&&n.renderPage({candidateListPages:i,targetElement:r,pageIndex:o-1,nbPages:a,onItemSelected:s})}
this.options.useTouchEvents?u.ontouchstart=d:u.onclick=d,this.candidateBoxElement.appendChild(u),this.candidateBoxElement.appendChild(c)
var f=o<a-1,p=document.createElement("div")
p.classList.add("hg-candidate-box-next"),f&&p.classList.add("hg-candidate-box-btn-active")
var h=function(){f&&n.renderPage({candidateListPages:i,targetElement:r,pageIndex:o+1,nbPages:a,onItemSelected:s})}
this.options.useTouchEvents?p.ontouchstart=h:p.onclick=h,this.candidateBoxElement.appendChild(p),r.prepend(this.candidateBoxElement)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,y(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e
var e,t}(),E=b
function k(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function S(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e)
t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function C(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=function(e,t){if("object"!=T(e)||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=T(i))return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==T(t)?t:t+""}var x=function(){return e=function e(t,n){var i=this
if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),C(this,"input",void 0),C(this,"options",void 0),C(this,"utilities",void 0),C(this,"caretPosition",void 0),C(this,"caretPositionEnd",void 0),C(this,"keyboardDOM",void 0),C(this,"keyboardPluginClasses",void 0),C(this,"keyboardDOMClass",void 0),C(this,"buttonElements",void 0),C(this,"currentInstanceName",void 0),C(this,"allKeyboardInstances",void 0),C(this,"keyboardInstanceNames",void 0),C(this,"isFirstKeyboardInstance",void 0),C(this,"physicalKeyboard",void 0),C(this,"modules",void 0),C(this,"activeButtonClass",void 0),C(this,"holdInteractionTimeout",void 0),C(this,"holdTimeout",void 0),C(this,"isMouseHold",void 0),C(this,"initialized",void 0),C(this,"candidateBox",void 0),C(this,"keyboardRowsDOM",void 0),C(this,"defaultName","default"),C(this,"activeInputElement",null),C(this,"handleParams",(function(e,t){var n,i,r
if("string"==typeof e)n=e.split(".").join(""),i=document.querySelector(".".concat(n)),r=t
else if(e instanceof HTMLDivElement){if(!e.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR")
n=e.className.split(" ")[0],i=e,r=t}else n="simple-keyboard",i=document.querySelector(".".concat(n)),r=e
return{keyboardDOMClass:n,keyboardDOM:i,options:r}})),C(this,"getOptions",(function(){return i.options})),C(this,"getCaretPosition",(function(){return i.caretPosition})),C(this,"getCaretPositionEnd",(function(){return i.caretPositionEnd})),C(this,"registerModule",(function(e,t){i.modules[e]||(i.modules[e]={}),t(i.modules[e])})),C(this,"getKeyboardClassString",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return[i.keyboardDOMClass].concat(t).filter((function(e){return!!e})).join(" ")})),"undefined"!=typeof window){var r=this.handleParams(t,n),o=r.keyboardDOMClass,a=r.keyboardDOM,s=r.options,c=void 0===s?{}:s
this.utilities=new d({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=a,this.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?S(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},c),this.keyboardPluginClasses="",d.bindMethods(e,this)
var l=this.options.inputName,u=void 0===l?this.defaultName:l
if(this.input={},this.input[u]="",this.keyboardDOMClass=o,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new g({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new E({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(o,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR")
this.render(),this.modules={},this.loadModules()}},t=[{key:"setCaretPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e
this.caretPosition=e,this.caretPositionEnd=t}},{key:"getInputCandidates",value:function(e){var t=this,n=this.options,i=n.layoutCandidates,r=n.layoutCandidatesCaseSensitiveMatch
if(!i||"object"!==T(i))return{}
var o=Object.keys(i).filter((function(n){var i=e.substring(0,t.getCaretPositionEnd()||0)||e,o=new RegExp("".concat(t.utilities.escapeRegex(n),"$"),r?"g":"gi")
return!!k(i.matchAll(o)).length}))
if(o.length>1){var a=o.sort((function(e,t){return t.length-e.length}))[0]
return{candidateKey:a,candidateValue:i[a]}}if(o.length){var s=o[0]
return{candidateKey:s,candidateValue:i[s]}}return{}}},{key:"showCandidatesBox",value:function(e,t,n){var i=this
this.candidateBox&&this.candidateBox.show({candidateValue:t,targetElement:n,onSelect:function(t,n){var r=i.options,o=r.layoutCandidatesCaseSensitiveMatch,a=r.disableCandidateNormalization,s=r.enableLayoutCandidatesKeyPress,c=t
a||(c=t.normalize("NFD")),"function"==typeof i.options.beforeInputUpdate&&i.options.beforeInputUpdate(i)
var l=i.getInput(i.options.inputName,!0),u=i.getCaretPositionEnd()||0,d=l.substring(0,u||0)||l,f=new RegExp("".concat(i.utilities.escapeRegex(e),"$"),o?"g":"gi"),p=d.replace(f,c),h=l.replace(d,p),g=p.length-d.length,m=(u||l.length)+g
m<0&&(m=0),i.setInput(h,i.options.inputName,!0),i.setCaretPosition(m),s&&"function"==typeof i.options.onKeyPress&&i.options.onKeyPress(t,n),"function"==typeof i.options.onChange&&i.options.onChange(i.getInput(i.options.inputName,!0),n),"function"==typeof i.options.onChangeAll&&i.options.onChangeAll(i.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(e,t){var n=this.options,i=n.inputName,r=void 0===i?this.defaultName:i,o=n.debug
if("{//}"!==e){this.input[r]||(this.input[r]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this)
var a=this.utilities.getUpdatedInput(e,this.input[r],this.caretPosition,this.caretPositionEnd)
if(this.utilities.isStandardButton(e)&&this.activeInputElement&&this.input[r]&&this.input[r]===a&&0===this.caretPosition&&this.caretPositionEnd===a.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(e,t)
if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(e,t),this.input[r]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return
var s=this.utilities.getUpdatedInput(e,this.input[r],this.caretPosition,this.caretPositionEnd,!0)
if(this.setInput(s,this.options.inputName,!0),o&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),null==t?void 0:t.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0),t),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),t),null!=t&&t.target&&this.options.enableLayoutCandidates){var c,l=this.getInputCandidates(a),u=l.candidateKey,d=l.candidateValue
u&&d?this.showCandidatesBox(u,d,this.keyboardDOM):null===(c=this.candidateBox)||void 0===c||c.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),o&&console.log("Key pressed:",e)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch((function(t){t.isMouseHold=e})):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,t){var n=this
t&&(this.options.preventMouseDownDefault&&t.preventDefault(),this.options.stopMouseDownPropagation&&t.stopPropagation(),t.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(n.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||"{delete}"===e||"{backspace}"===e||"{bksp}"===e||"{space}"===e||"{tab}"===e)||"{arrowright}"===e||"{arrowleft}"===e||"{arrowup}"===e||"{arrowdown}"===e)&&(n.options.debug&&console.log("Button held:",e),n.handleButtonHold(e)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(e,t){var n=this
t&&(this.options.preventMouseUpDefault&&t.preventDefault&&t.preventDefault(),this.options.stopMouseUpPropagation&&t.stopPropagation&&t.stopPropagation(),!(t.target===this.keyboardDOM||t.target&&this.keyboardDOM.contains(t.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(t.target===this.candidateBox.candidateBoxElement||t.target&&this.candidateBox.candidateBoxElement.contains(t.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(e){e.classList.remove(n.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(e,t)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var t=this
this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){t.getMouseHold()?(t.handleButtonClicked(e),t.handleButtonHold(e)):clearTimeout(t.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var e=this
this.dispatch((function(t){t.replaceInput(e.input),t.setCaretPosition(e.caretPosition,e.caretPositionEnd)}))}},{key:"clearInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName
this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return this.options.syncInstanceInputs&&!t&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[e].replace("‫","").replace("‬","")+"‬":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,t={}
return Object.keys(this.input).forEach((function(n){t[n]=e.getInput(n,!0)})),t}},{key:"setInput",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0
this.input[t]=e,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.changedOptions(e)
this.options=Object.assign(this.options,e),t.length&&(this.options.debug&&console.log("changedOptions",t),this.onSetOptions(t),this.render())}},{key:"changedOptions",value:function(e){var t=this
return Object.keys(e).filter((function(n){return JSON.stringify(e[n])!==JSON.stringify(t.options[n])}))}},{key:"onSetOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
e.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(e.includes("layoutCandidatesPageSize")||e.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new E({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR")
return Object.keys(window.SimpleKeyboardInstances).forEach((function(t){e(window.SimpleKeyboardInstances[t],t)}))}},{key:"addButtonTheme",value:function(e,t){var n=this
t&&e&&(e.split(" ").forEach((function(i){t.split(" ").forEach((function(t){n.options.buttonTheme||(n.options.buttonTheme=[])
var r=!1
n.options.buttonTheme.map((function(e){if(null!=e&&e.class.split(" ").includes(t)){r=!0
var n=e.buttons.split(" ")
n.includes(i)||(r=!0,n.push(i),e.buttons=n.join(" "))}return e})),r||n.options.buttonTheme.push({class:t,buttons:e})}))})),this.render())}},{key:"removeButtonTheme",value:function(e,t){var n=this
if(!e&&!t)return this.options.buttonTheme=[],void this.render()
e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach((function(e){var i
null===(i=n.options)||void 0===i||null===(i=i.buttonTheme)||void 0===i||i.map((function(i,r){if(i&&t&&t.includes(i.class)||!t){var o,a,s=null===(o=i)||void 0===o?void 0:o.buttons.split(" ").filter((function(t){return t!==e}))
i&&null!=s&&s.length?i.buttons=s.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(r,1),i=null)}return i}))})),this.render())}},{key:"getButtonElement",value:function(e){var t,n=this.buttonElements[e]
return n&&(t=n.length>1?n:n[0]),t}},{key:"inputPatternIsValid",value:function(e){var t,n=this.options.inputPattern
if((t=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&e){var i=t.test(e)
return this.options.debug&&console.log('inputPattern ("'.concat(t,'"): ').concat(i?"passed":"did not pass!")),i}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"))
var e=this.options.physicalKeyboardHighlightPreventDefault,t=void 0!==e&&e
document.addEventListener("keyup",this.handleKeyUp,t),document.addEventListener("keydown",this.handleKeyDown,t),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"handleSelect",value:function(e){this.caretEventHandler(e)}},{key:"handleSelectionChange",value:function(e){navigator.userAgent.includes("Firefox")||this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var t,n=this
e.target.tagName&&(t=e.target.tagName.toLowerCase()),this.dispatch((function(i){var r=e.target===i.keyboardDOM||e.target&&i.keyboardDOM.contains(e.target)
if(n.options.syncInstanceInputs&&Array.isArray(e.path)&&(r=e.path.some((function(e){var t
return null==e||null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"data-skInstance")}))),("textarea"===t||"input"===t&&["text","search","url","tel","password"].includes(e.target.type))&&!i.options.disableCaretPositioning){var o=e.target.selectionStart,a=e.target.selectionEnd
i.options.rtl&&(o=i.utilities.getRtlOffset(o,i.getInput()),a=i.utilities.getRtlOffset(a,i.getInput())),i.setCaretPosition(o,a),n.activeInputElement=e.target,i.options.debug&&console.log("Caret at: ",i.getCaretPosition(),i.getCaretPositionEnd(),e&&e.target.tagName.toLowerCase(),"(".concat(i.keyboardDOMClass,")"),null==e?void 0:e.type)}else!i.options.disableCaretPositioning&&r||"selectionchange"===(null==e?void 0:e.type)||(i.setCaretPosition(null),n.activeInputElement=null,i.options.debug&&console.log('Caret position reset due to "'.concat(null==e?void 0:e.type,'" event'),e))}))}},{key:"recurseButtons",value:function(e){var t=this
e&&Object.keys(this.buttonElements).forEach((function(n){return t.buttonElements[n].forEach(e)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName))
var e=this.options.physicalKeyboardHighlightPreventDefault,t=void 0!==e&&e
document.removeEventListener("keyup",this.handleKeyUp,t),document.removeEventListener("keydown",this.handleKeyDown,t),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(e){e&&(e.onpointerdown=null,e.onpointerup=null,e.onpointercancel=null,e.ontouchstart=null,e.ontouchend=null,e.ontouchcancel=null,e.onclick=null,e.onmousedown=null,e.onmouseup=null,e.remove(),e=null)})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var t=this.options.buttonTheme,n=[]
return Array.isArray(t)&&t.forEach((function(t){if(t&&t.class&&"string"==typeof t.class&&t.buttons&&"string"==typeof t.buttons){var i=t.class.split(" ")
t.buttons.split(" ").includes(e)&&(n=[].concat(k(n),k(i)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',t)})),n}},{key:"setDOMButtonAttributes",value:function(e,t){var n=this.options.buttonAttributes
Array.isArray(n)&&n.forEach((function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value&&n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(e)&&t(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n)}))}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){if(e.target.classList.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this)}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this
Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(t){var n=new t(e)
n.init&&n.init(e)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,t){return!!this.modules[e]&&this.modules[e][t]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,t,n,i){var r=this,o=Array.from(e.children),a=0
return o.length&&n.forEach((function(n,s){var c=i[s]
if(!(c&&c>n))return!1
var l=n-a,u=c-a,d=document.createElement("div")
d.className+="hg-button-container"
var f="".concat(r.options.layoutName,"-r").concat(t,"c").concat(s)
d.setAttribute("data-skUID",f)
var p=o.splice(l,u-l+1)
a=u-l,p.forEach((function(e){return d.appendChild(e)})),o.splice(l,0,d),e.innerHTML="",o.forEach((function(t){return e.appendChild(t)})),r.options.debug&&console.log("rowDOMContainer",p,l,u,a+1)})),e}},{key:"render",value:function(){var e=this
this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender()
var t="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},i=this.options.useTouchEvents||!1,r=i?"hg-touch-events":"",o=this.options.useMouseEvents||!1,a=this.options.disableRowButtonContainers
this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,t,this.keyboardPluginClasses,r),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(t,n){var r=t.split(" ")
e.options.excludeFromLayout&&e.options.excludeFromLayout[e.options.layoutName||e.defaultName]&&(r=r.filter((function(t){return e.options.excludeFromLayout&&!e.options.excludeFromLayout[e.options.layoutName||e.defaultName].includes(t)})))
var s=document.createElement("div")
s.className+="hg-row"
var c=[],l=[]
r.forEach((function(t,r){var u,d=!a&&"string"==typeof t&&t.length>1&&0===t.indexOf("["),f=!a&&"string"==typeof t&&t.length>1&&t.indexOf("]")===t.length-1
d&&(c.push(r),t=t.replace(/\[/g,"")),f&&(l.push(r),t=t.replace(/\]/g,""))
var p=e.utilities.getButtonClass(t),h=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),g=e.options.useButtonTag?"button":"div",m=document.createElement(g)
m.className+="hg-button ".concat(p),(u=m.classList).add.apply(u,k(e.getButtonThemeClasses(t))),e.setDOMButtonAttributes(t,(function(e,t){m.setAttribute(e,t)})),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||i||o?i?(m.ontouchstart=function(n){e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},m.ontouchend=function(n){e.handleButtonMouseUp(t,n)},m.ontouchcancel=function(n){e.handleButtonMouseUp(t,n)}):(m.onclick=function(n){e.setMouseHold(!1),"function"!=typeof e.options.onKeyReleased&&e.handleButtonClicked(t,n)},m.onmousedown=function(n){"function"!=typeof e.options.onKeyReleased||e.isMouseHold||e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},m.onmouseup=function(n){e.handleButtonMouseUp(t,n)}):(m.onpointerdown=function(n){e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},m.onpointerup=function(n){e.handleButtonMouseUp(t,n)},m.onpointercancel=function(n){e.handleButtonMouseUp(t,n)}),m.setAttribute("data-skBtn",t)
var v="".concat(e.options.layoutName,"-r").concat(n,"b").concat(r)
m.setAttribute("data-skBtnUID",v)
var y=document.createElement("span")
y.innerHTML=h,m.appendChild(y),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(m),s.appendChild(m)})),s=e.parseRowDOMContainers(s,n,c,l),e.keyboardRowsDOM.appendChild(s)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||i||o?i?(document.ontouchend=function(t){return e.handleButtonMouseUp(void 0,t)},document.ontouchcancel=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.ontouchstart=function(t){return e.handleKeyboardContainerMouseDown(t)}):i||(document.onmouseup=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.onmousedown=function(t){return e.handleKeyboardContainerMouseDown(t)}):(document.onpointerup=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.onpointerdown=function(t){return e.handleKeyboardContainerMouseDown(t)}),this.onInit())}}],t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,w(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e
var e,t}(),I=x,A=I
return i}()},26641:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.parser=t.validator=void 0
var i=n(71906),r=n(6930),o=n(29495)
function a(e){var t,n,a,s=[]
try{t=i.default.parse(e)}catch(e){s.push(e)}return s.length?s:(s.push.apply(s,(n=[o.default,r.default],a=t,n.map((function(e){return new e(a).validate()})).reduce((function(e,t){return e.push.apply(e,t),e}),[]))),s.sort((function(e,t){return e.lineNumber-t.lineNumber})))}t.validator=a,t.parser=i.default,t.default=a},60639:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default={hour:36e5,minute:6e4,second:1e3}},71906:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var i=n(79041),r=n(82128)
t.default={parse:i.default,serialize:r.default}},79041:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.parseTimeStamp=void 0
var i=n(65305),r=n(49023),o=n(60639),a=/\r?\n/,s=/\s$/,c=/^(\d{2}):(\d{2}):(\d{2}),(\d{3})$/
function l(e,t){if(!e)throw new r.default("Missing sequence number",t,i.default.PARSER_ERROR_MISSING_SEQUENCE_NUMBER)
var n=Number(e)
if(!Number.isInteger(n)||s.test(e))throw new r.default("Expected Integer for sequence number: ".concat(e),t,i.default.PARSER_ERROR_INVALID_SEQUENCE_NUMBER)
return n}function u(e,t){var n=c.exec(e)
if(!n)throw new r.default("Invalid time stamp: ".concat(e),t,i.default.PARSER_ERROR_INVALID_TIME_STAMP)
var a=n.slice(1).map(Number),s=a[0],l=a[1],u=a[2],d=a[3]
return s*o.default.hour+l*o.default.minute+u*o.default.second+d}function d(e,t){if(!e)throw new r.default("Missing time span",t,i.default.PARSER_ERROR_MISSING_TIME_SPAN)
var n=e.split(" --\x3e "),o=n[0],a=n[1]
if(!o||!a||s.test(e))throw new r.default("Invalid time span: ".concat(e),t,i.default.PARSER_ERROR_INVALID_TIME_SPAN)
return{start:u(o,t),end:u(a,t)}}t.parseTimeStamp=u,t.default=function(e){for(var t=e.trimEnd().split(a),n=[],o=0;o<t.length;o+=1){var s={chunkStart:o,timeSpan:o,text:o,chunkEnd:o},c=l(t[o],o)
o+=1,s.timeSpan=o
var u=d(t[o],o)
o+=1,s.text=o
for(var f=[];t[o]&&t[o].trim();)f.push(t[o]),o+=1
var p=f.join("\n")
if(!p)throw new r.default("Missing caption text",o,i.default.PARSER_ERROR_MISSING_TEXT)
s.chunkEnd=o-1,n.push({lineNumbers:s,sequenceNumber:c,time:u,text:p})}return n}},82128:function(e,t,n){"use strict"
var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])
return e},i.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0})
var r=n(60639),o="\n"
function a(e,t){var n=e,i=e/r.default.hour,o=(n%=r.default.hour)/r.default.minute,a=(n%=r.default.minute)/r.default.second
n%=r.default.second
var s=[2,2,2,3],c=[i,o,a,n].map((function(e,t){return"".concat(Math.floor(e)).padStart(s[t],"0")})),l=c[0],u=c[1],d=c[2],f=c[3]
return"".concat(l,":").concat(u,":").concat(d).concat(t).concat(f)}t.default=function(e,t){void 0===t&&(t="SRT")
var n={FILE_HEADER:"",MS_SEPERATOR:",",FORMAT_TEXT:function(e){return e},CHUNK_SEPARATOR:"".concat(o).concat(o)}
switch(t.toLowerCase()){case"webvtt":n=i(i({},n),{FILE_HEADER:"WEBVTT".concat(o).concat(o),MS_SEPERATOR:"."})
break
case"srt":break
default:throw new Error("Unrecognized format: ".concat(t))}return n.FILE_HEADER+e.map((function(e){return"".concat(e.sequenceNumber,"\n").concat((t=e.time,i=n.MS_SEPERATOR,"".concat(a(t.start,i)," --\x3e ").concat(a(t.end,i))),"\n").concat(n.FORMAT_TEXT(e.text))
var t,i})).join(n.CHUNK_SEPARATOR)}},65305:(e,t)=>{"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.PARSER_ERROR_MISSING_TEXT="parserErrorMissingText",e.PARSER_ERROR_MISSING_SEQUENCE_NUMBER="parserErrorMissingSequenceNumber",e.PARSER_ERROR_INVALID_SEQUENCE_NUMBER="parserErrorInvalidSequenceNumber",e.PARSER_ERROR_MISSING_TIME_SPAN="parserErrorMissingTimeSpan",e.PARSER_ERROR_INVALID_TIME_SPAN="parserErrorInvalidTimeSpan",e.PARSER_ERROR_INVALID_TIME_STAMP="parserErrorInvalidTimeStamp",e.VALIDATOR_ERROR_START_TIME="validatorErrorStartTime",e.VALIDATOR_ERROR_END_TIME="validatorErrorEndTime",e.VALIDATOR_ERROR_SEQUENCE_NUMBER_START="validatorErrorSequenceNumberStart",e.VALIDATOR_ERROR_SEQUENCE_NUMBER_INCREMENT="validatorErrorSequenceNumberIncrement"}(n||(n={})),t.default=n},49023:function(e,t){"use strict"
var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)})
Object.defineProperty(t,"__esModule",{value:!0})
var r=function(e){function t(t,n,i){var r=e.call(this,t)||this
return r.lineNumber=n,r.errorCode=i,r.lineNumber=n+1,r.errorCode=i,r}return i(t,e),t}(Error)
t.default=r},71074:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=function(){function e(e){this.parsedJSON=e,this.result=[],this.parsedJSON=e}return e.prototype.addToResult=function(e){this.result.push(e)},e}()
t.default=n},6930:function(e,t,n){"use strict"
var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})
Object.defineProperty(t,"__esModule",{value:!0})
var o=n(71074),a=n(65305),s=function(e){function t(t){var n=e.call(this,t)||this
return n.parsedJSON=t,n.validator="CaptionTimeSpanValidator",n}return r(t,e),t.prototype.validate=function(){var e=this
if(!this.parsedJSON.length)return this.result
var t=0
return this.parsedJSON.map((function(t){var n=t.time,i=n.start,r=n.end,o=t.lineNumbers
return i>=r&&e.addToResult({errorCode:a.default.VALIDATOR_ERROR_START_TIME,message:"start time should be less than end time",lineNumber:o.timeSpan+1,validator:e.validator}),{start:i,end:r,lineNumbers:o}})).forEach((function(n,i){var r=n.start,o=n.end,s=n.lineNumbers
0!==i?(t>r&&e.addToResult({errorCode:a.default.VALIDATOR_ERROR_END_TIME,message:"start time should be less than previous end time",lineNumber:s.timeSpan+1,validator:e.validator}),t=o):t=o})),this.result},t}(o.default)
t.default=s},29495:function(e,t,n){"use strict"
var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})
Object.defineProperty(t,"__esModule",{value:!0})
var o=n(71074),a=n(65305),s=function(e){function t(t){var n=e.call(this,t)||this
return n.parsedJSON=t,n.validator="LineNumberValidator",n}return r(t,e),t.prototype.validate=function(){if(!this.parsedJSON.length)return this.result
1!==this.parsedJSON[0].sequenceNumber&&this.addToResult({errorCode:a.default.VALIDATOR_ERROR_SEQUENCE_NUMBER_START,message:"number of sequence need to start with 1",lineNumber:this.parsedJSON[0].lineNumbers.chunkStart+1,validator:this.validator})
for(var e=1;e<this.parsedJSON.length;e+=1){var t=this.parsedJSON[e],n=t.sequenceNumber,i=t.lineNumbers
n!==e+1&&this.addToResult({errorCode:a.default.VALIDATOR_ERROR_SEQUENCE_NUMBER_INCREMENT,message:"number of sequence need to increment by 1",lineNumber:i.chunkStart+1,validator:this.validator})}return this.result},t}(o.default)
t.default=s},39705:e=>{function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={})
return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this
function r(){i.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t)
return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[]
if(i&&t)for(var o=0,a=i.length;o<a;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o])
return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},5365:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{add:()=>d,getSize:()=>h,removeAll:()=>p,runAll:()=>f})
var i=n(38612),r=n.n(i)
const o={add:function(e){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);else{if("function"!=typeof window.addEventListener)return
window.addEventListener("beforeunload",(function(){e()}),!0),window.addEventListener("unload",(function(){e()}),!0)}}}
var a=n(99707),s=n.n(a),c=r()?s():o,l=new Set,u=!1
function d(e){if(u||(u=!0,c.add(f)),"function"!=typeof e)throw new Error("Listener is no function")
return l.add(e),{remove:function(){return l.delete(e)},run:function(){return l.delete(e),e()}}}function f(){var e=[]
return l.forEach((function(t){e.push(t()),l.delete(t)})),Promise.all(e)}function p(){l.clear()}function h(){return l.size}},79860:(e,t)=>{"use strict"
const n="X-Li-Challenge-Url"
function i(e){try{return Boolean(new URL(e))}catch(e){return!1}}t.isValidUrl=i,t.trustResponseHandler=function({headers:e,rum:t}){if(globalThis&&globalThis.location){const t=e[n]||e[n.toLowerCase()]
if(t&&i(t))return globalThis.location.replace(t)}t&&t._rum&&t._rum.collector&&t._rum.collector.triggerDeviceSignalCollection&&t._rum.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!0})}},76196:e=>{"use strict"
function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return u=l()?Reflect.construct.bind():function(e,t,n){var i=[null]
i.push.apply(i,t)
var r=new(Function.bind.apply(e,i))
return n&&c(r,n.prototype),r},u.apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0
return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e
var n
if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function")
if(void 0!==t){if(t.has(e))return t.get(e)
t.set(e,i)}function i(){return u(e,arguments,s(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,e)},d(e)}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e)}function p(e){var t=l()
return function(){var n,i=s(e)
if(t){var r=s(this).constructor
n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments)
return f(this,n)}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o=[],a=!0,s=!1
try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log",n="undefined"!=typeof window
if(n&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}var b,E,k,_="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",T=["b","del","em","i","s","strong","sub","sup"],S=T.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),C=[_,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding|attributionsrc"].join("|"),w=o((function e(){i(this,e)})),x="[ \t\r\n]*"
function I(e){e=Array.isArray(e)?e:[e]
var t,n,i,r=0,o="<(?!/?"
return o+="(?:",e.forEach((function(e,a){t=e.tags||S,n=e.attrs||C,i=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=x,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++r,")?"),i&&(o+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++r)),o+=")"+x+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function A(e){return I({tags:e=e||S,checkUrlAttrs:!0})}function R(e,t){if(!function(e){return/</.test(e)}(e))return!0
var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup
return n&&n.length>0?!A(n).test(e):i?!R.R_UNSAFE_CUSTOM_ELEMENT.test(e):!R.R_UNSAFE_HTML.test(e)}function O(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function j(e,t){var n=String(null!=e?e:""),i=n
return R(n,t)||(i=O(i),y("Content contains tags or attributes that are not allowed:\nContent: "+n,"error")),i}R.R_UNSAFE_HTML=A(),R.R_UNSAFE_CUSTOM_ELEMENT=I([{tags:S,checkUrlAttrs:!0},{tags:[(b={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[_,b.attrs].join("|"),checkUrlAttrs:!1}])
var M,N,P=function(){if("undefined"!=typeof window){var e=window.trustedTypes
if(e&&e.createPolicy&&e.isHTML)return e}}()
if(P){var D=P.createPolicy("jSecure",{createHTML:function(e){return e}})
E=function(e){return D.createHTML(e)},k=function(e){return P.isHTML(e)}}else{var U=function(e){a(n,e)
var t=p(n)
function n(){return i(this,n),t.apply(this,arguments)}return o(n,[{key:"toHTML",value:function(){return this.toString()}}]),n}(d(String))
E=function(e){return new U(e)},k=function(e){return null!==e&&"object"===n(e)&&"toHTML"in e&&"function"==typeof e.toHTML}}function L(e){return E(String(e))}function F(e,t){return Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"raw")&&Object.isFrozen(e)&&e.length===t.length+1}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return String(null!=e?e:"").replace(/(^[\0- ]*j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t\s*):/i,"$1​:")}function q(e){return e.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"")
return k(e)&&(t=$(t)),X(B(t))}))}function H(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return L(t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"")
return k(e)?t:j(t)})).join(""))}function G(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i]
return F(e,n)?String.raw.apply(String,[{raw:e}].concat(g(q(n)))):H.apply(void 0,[e].concat(n))}function V(){return(M=M||document.implementation.createHTMLDocument("")).createElement("template")}function K(e){var t
return(N=N||V()).innerHTML=L(e),null!==(t=N.content.textContent)&&void 0!==t?t:""}var W=/[&<>"'\u0000\\=]/g,z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"}
function X(e){return null===(null!=e?e:null)?null:String(e).replace(W,(function(e){return z[e]}))}var Q=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,Y={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"',apos:"'"}
function $(e){return null===(null!=e?e:null)?null:String(e).replace(Q,(function(e,n,i,r){return n?function(e){if(t(Y,e))return Y[e]
if("undefined"==typeof document)return e
var n=K("&".concat(e,";"))
return Y[e]=n,n}(n):i||r?String.fromCodePoint(parseInt(i||r,i?16:10)||65533):"�"}))}var J={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]},Z=/<([\w:]+)/
function ee(e){return e in J}function te(e,t){var n,i,r,o,a,s=t.createDocumentFragment(),c=[]
for(r=0,a=e.length;r<a;r++)if(i=e[r])if("string"==typeof i){n=n||s.appendChild(t.createElement("div"))
var l=h(Z.exec(i)||["",""],2)[1]
if(void 0!==l){var u=l.toLowerCase(),d=ee(u)&&J[u]||J._default
for(re(n,d[1]+i+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild)
c.push.apply(c,g(Array.from(n.childNodes))),(n=s.firstChild)&&(n.textContent="")}}else i instanceof Node&&c.push(i)
for(s.textContent="",i=c[r=0];i;)s.appendChild(i),i=c[++r]
return s}function ne(e,n,i){e=e.toString()
var r=n?function(e,n){var i={}
return e.replace(/\{([^}]+)\}/g,(function(e,r){if(t(i,r))return i[r]
if(t(n,r)){var o,a=n[r],s="string"==typeof a
if(!(s||a instanceof w||"number"==typeof a))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return a?(a=s?"".concat(X(String(null!==(o=a)&&void 0!==o?o:""))):a.toString(),i[r]=a,a):e}return e}))}(e,n):e
return j(r,i)}var ie=ne
function re(e,t,n){var i=ne(t,n)
return i&&/[<&]/.test(i)?e.innerHTML=L(i):i&&(e.textContent=i),i}var oe=function(e){a(n,e)
var t=p(n)
function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return i(this,n),(r=t.call(this)).options=o,r.tags=r.options.allowTags?r.options.allowTags.flat():[],r.str=e,r}return o(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e
return void 0!==t?t:(R(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=O(e),y("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(w),ae=/ /g,se=/[\s\u0000<>"]|%00/,ce=/\\/,le=/([/\\]|^)([.]|%2e){2}([/\\]|$)/i,ue=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 de(e){var t,n="invalid://"
if("string"!=typeof e)return y("jSecure Warning: url must be a string","error"),n
if((t=e.trim()).indexOf(" ")>-1&&(y("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(ae,"+")),!ue.test(t))return y("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n
if(se.test(t))return y("jSecure Error: not valid url character found in url: "+e,"error"),n
var i,r=t.split("?")[0],o=!1
if(r){try{if(i=decodeURI(r),le.test(i))return y("jSecure Error: malicious data found in url path: "+r,"error"),n}catch(e){o=!0}if(o)return y("jSecure Error: malformed url path detected: "+r),n
if(ce.test(r)||le.test(r))return y("jSecure Error: malicious data found in url path: "+r,"error"),n}return e}var fe={redirect:function(e){window&&(window.location.href=e)}},pe={ALLOWED_TAGS:S,FORMATTING_TAGS:T,getTrustedHTML:function(){for(var e,t=V(),n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r]
return(e=t.content).append.apply(e,g(i.map((function(e){return e.cloneNode(!0)})))),L(t.innerHTML)},parse:function(e,t){var n="string"==typeof e&&t?L(t(e)):H(e),i=V()
return i.innerHTML=n,i.content},html:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i]
return H(G.apply(void 0,[e].concat(n)))},unsanitizedHTML:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i]
return L(G.apply(void 0,[e].concat(n)))},getText:function(e){var t
return"undefined"==typeof document?null!==(t=$(function(e){return e.replace(/<[^>]*>|<|>/g,"")}(String(e))))&&void 0!==t?t:"":K(e)},htmlEncode:X,htmlUnencode:$,reEncode:function(e){return X($(e))},sanitizeHTML:j,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i]
var r,o="",a=n.length
return e&&e.forEach((function(e,t){var i
o+=e,t<a&&((r=n[t])instanceof oe?o+=r:o+=X(String(null!==(i=r)&&void 0!==i?i:"")))})),"".concat(j(o))},_redirector:fe,redirect:function(e){var t=de(e)
t===e&&fe.redirect(t)},sanitizeUrl:de,log:y,parseHTML:function(e,t){var n
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=te([e],t)
else{if(!Array.isArray(e))return e
n=te(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ie,setElementContent:re,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new oe(t,n)}}
e.exports=pe},28371:(e,t)=>{"use strict"
t.voyagerAndroidSetup={abi:{email:"voyager-abi-feedback",displayName:"Address Book Import"},appreciation:{email:"ask_props",displayName:"Appreciations"},jobs:{email:"voyager-careers-feedback",displayName:"Careers (Job)"},creatorMode:{email:"ask-creator-mode",displayName:"Creator Core"},creatorGrowth:{email:"ask-creator-growth",displayName:"Creators Growth"},events:{email:"ask_events_core",displayName:"Events",jiraComponent:"Events-core"},feed:{email:"ask_ce_feed",displayName:"Feed & Content Experience"},infra:{email:"ask_fi_android",displayName:"Infra - Flagship"},games:{email:"ask_games",displayName:"Games - Project Play",labels:["game-play"]},groups:{email:"voyager-groups-feedback",displayName:"Groups"},hiring:{email:"ask_online_jobs",displayName:"Hiring (LTS/Jobs team: job creation and management)"},"infra-ux":{email:"ask_infra_ux",displayName:"Infra - UX",jiraComponent:"ux"},learning:{email:"ask_lil",displayName:"Learning: ask_lil"},liveAudio:{email:"ask_live_audio",displayName:"Live Audio"},lmsAds:{email:"lms-feedback",displayName:"LMS Ads"},skills:{email:"ask-lts-skills",displayName:"LTS Skills"},serviceMarketplace:{email:"pages-feedback",displayName:"Marketplaces"},messaging:{email:"voyager-messenger-android-feedback",displayName:"Voyager Messenger (Android)"},nile:{email:"nilebugs",displayName:"Nile"},notifications:{email:"voyager-notifications-feedback",displayName:"Notifications"},nurture:{email:"nurturesubtab",displayName:"Nurture"},onboarding:{email:"voyager-onboarding-feedback",displayName:"Onboarding"},company:{email:"pages-feedback",displayName:"Pages (Company, School)"},people:{email:"voyager-people-android-feedback",displayName:"People"},premium:{email:"voyager-premium-feedback",displayName:"Premium"},profileCreator:{email:"creator-profile-eng",displayName:"Profile Creator"},profile:{email:"voyager-profile-feedback",displayName:"Profile"},promoGalapagos:{email:"ask_promo",displayName:"Promo / Galapagos"},props:{email:"ask_props",displayName:"Props"},reporting:{email:"ask_transparency",displayName:"Reporting"},registration:{email:"voyager-reg-feedback",displayName:"Registration/Login"},search:{email:"voyager-search-feedback",displayName:"Search",subteams:{coach:{email:"ask_coach",displayName:"Coach",titlePrefix:"[Coach]",jiraComponent:"voyager-web",labels:["coach_feedback_web"]},coachInSearch:{email:"coach-in-search",titlePrefix:"[Coach in search]",jiraComponent:"voyager-web",labels:["coach_in_search_feedback_web"]},searchPostsVerticalOnly:{email:"ask_content_search",displayName:"Posts Verticals (Content Card, Content Relevance)"},searchOtherVerticalsPlatformAndPremium:{email:"ask_search_m2-p2",displayName:"Premium Search (Upsells, Premium Filters, Paywall)"},searchRelevance:{email:"flagship-search-quality-feedback",displayName:"Search Relevance and Quality"},searchAnotherVertical:{email:"ask_search_m2-p2",displayName:"Verticals - People, Products, Companies, Services"},searchBserp:{email:"ask_search_bserp",displayName:"Blended Search Results Page"},searchPlatform:{email:"ask_search_m2-p2",displayName:"Search Platform (UX Templates, Filters)"},searchHomeAndTypeahead:{email:"ask_search_qform",displayName:"Search Home/Global Typeahead Search History"},searchOther:{email:"ask_search_qform",displayName:"Other"}}},settings:{email:"voyager-settings-feedback",displayName:"Settings"},shaky:{email:"ask-shake-to-send",displayName:"Shaky (Shake for Feedback)"},localization:{email:"ask-translation-feedback",displayName:"Translations & Localization"},trustedGraph:{email:"ask_trustedgraph",displayName:"Trusted Graph"},nba:{email:"ask_retention",displayName:"NBA (Launchpad, CLP, Insights Hub)"},lss:{email:"ask_lss",displayName:"LSS (Sales Navigator)"},seekerCoach:{email:"ask_seeker_coach",displayName:"Seeker Coach"}},t.voyagerIOSSetup={abi:{email:"voyager-abi-feedback",displayName:"Address Book Import"},appreciation:{email:"ask_props",displayName:"Appreciations"},jobs:{email:"voyager-careers-feedback",displayName:"Careers (Job)"},creatorMode:{email:"ask-creator-mode",displayName:"Creator Core"},creatorGrowth:{email:"ask-creator-growth",displayName:"Creators Growth"},events:{email:"ask_events_core",displayName:"Events",jiraComponent:"Events-core"},feed:{email:"ask_ce_feed",displayName:"Feed & Content Experience"},infra:{email:"ask_fi_ios",displayName:"Infra - Flagship"},games:{email:"ask_games",displayName:"Games - Project Play",labels:["game-play"]},groups:{email:"voyager-groups-feedback",displayName:"Groups"},hiring:{email:"ask_online_jobs",displayName:"Hiring (LTS/Jobs team: job creation and management)"},"infra-ux":{email:"ask_infra_ux",displayName:"Infra - UX",jiraComponent:"ux"},learning:{email:"ask_lil",displayName:"Learning: ask_lil"},liveAudio:{email:"ask_live_audio",displayName:"Live Audio"},lmsAds:{email:"lms-feedback",displayName:"LMS Ads"},skills:{email:"ask-lts-skills",displayName:"LTS Skills"},serviceMarketplace:{email:"pages-feedback",displayName:"Marketplaces"},messaging:{email:"voyager-messenger-android-feedback",displayName:"Voyager Messenger (Android)"},nile:{email:"nilebugs",displayName:"Nile"},notifications:{email:"voyager-notifications-feedback",displayName:"Notifications"},nurture:{email:"nurturesubtab",displayName:"Nurture"},onboarding:{email:"voyager-onboarding-feedback",displayName:"Onboarding"},company:{email:"pages-feedback",displayName:"Pages (Company, School)"},people:{email:"voyager-people-android-feedback",displayName:"People"},premium:{email:"voyager-premium-feedback",displayName:"Premium"},profileCreator:{email:"creator-profile-eng",displayName:"Profile Creator"},profile:{email:"voyager-profile-feedback",displayName:"Profile"},promoGalapagos:{email:"ask_promo",displayName:"Promo / Galapagos"},props:{email:"ask_props",displayName:"Props"},reporting:{email:"ask_transparency",displayName:"Reporting"},registration:{email:"voyager-reg-feedback",displayName:"Registration/Login"},search:{email:"voyager-search-feedback",displayName:"Search",subteams:{coach:{email:"ask_coach",displayName:"Coach",titlePrefix:"[Coach]",jiraComponent:"voyager-web",labels:["coach_feedback_web"]},coachInSearch:{email:"coach-in-search",titlePrefix:"[Coach in search]",jiraComponent:"voyager-web",labels:["coach_in_search_feedback_web"]},searchPostsVerticalOnly:{email:"ask_content_search",displayName:"Posts Verticals (Content Card, Content Relevance)"},searchOtherVerticalsPlatformAndPremium:{email:"ask_search_m2-p2",displayName:"Premium Search (Upsells, Premium Filters, Paywall)"},searchRelevance:{email:"flagship-search-quality-feedback",displayName:"Search Relevance and Quality"},searchAnotherVertical:{email:"ask_search_m2-p2",displayName:"Verticals - People, Products, Companies, Services"},searchBserp:{email:"ask_search_bserp",displayName:"Blended Search Results Page"},searchPlatform:{email:"ask_search_m2-p2",displayName:"Search Platform (UX Templates, Filters)"},searchHomeAndTypeahead:{email:"ask_search_qform",displayName:"Search Home/Global Typeahead Search History"},searchOther:{email:"ask_search_qform",displayName:"Other"}}},settings:{email:"voyager-settings-feedback",displayName:"Settings"},shaky:{email:"ask-shake-to-send",displayName:"Shaky (Shake for Feedback)"},localization:{email:"ask-translation-feedback",displayName:"Translations & Localization"},trustedGraph:{email:"ask_trustedgraph",displayName:"Trusted Graph"},nba:{email:"ask_retention",displayName:"NBA (Launchpad, CLP, Insights Hub)"},lss:{email:"ask_lss",displayName:"LSS (Sales Navigator)"},seekerCoach:{email:"ask_seeker_coach",displayName:"Seeker Coach"}},t.voyagerWebSetup={assessments:{email:"ask_lil",displayName:"Assessments"},company:{email:"pages-feedback",displayName:"Pages (companies, schools): Create, discover, view, admin"},feed:{email:"ask_ce_feed",displayName:"Feed: View or react to content in the feed"},coach:{email:"ask_coach",displayName:"Coach: Discover, overlay, messaging",titlePrefix:"[Coach]",jiraComponent:"voyager-web",labels:["coach_feedback_web"]},coachInSearch:{email:"coach-in-search",displayName:"Coach in Search",titlePrefix:"[Coach in search]",jiraComponent:"voyager-web",labels:["coach_in_search_feedback_web"]},collaborativeArticle:{email:"ask_x_articles",displayName:"Collaborative Articles (Project X)"},conversations:{email:"ask_conversations",displayName:"Conversations: Comments, contributions"},creatorAnalytics:{email:"ask_creator_analytics",displayName:"Analytics: Posts, audience"},creatorMode:{email:"ask-creator-mode",displayName:"Creator(mode): Dashboard, creator hub"},dma:{email:"ask_dma",displayName:"DMA (Digital Markets Act)"},events:{email:"ask_events_core",displayName:"Events: Create, discover, view, admin",jiraComponent:"Events-core"},feedRelevance:{email:"ask_feed_relevance",displayName:"Feed: Relevance"},games:{email:"ask_games",displayName:"Games (Project Play)",labels:["game-play"]},groups:{email:"voyager-groups-feedback",displayName:"Groups: Create, discover, view, admin"},hiring:{email:"ask_online_jobs",displayName:"Hiring: Job posting, job management, claim job"},infra:{email:"ask_pai_web",displayName:"Infra (Performance): Speed, data integrity"},"infra-ux":{email:"ask_infra_ux",displayName:"Infra UX: Components, layout, consistency",jiraComponent:"ux"},internal:{email:"ask_infra_ux",displayName:"Internal feedback: report bug, share feedback",jiraComponent:"ux"},invitations:{email:"neptune-invitations-feedback",displayName:"Invitations: People, groups, events, newsletters"},jobs:{email:"voyager-careers-feedback",displayName:"Jobs: Search, view, apply, track"},launchpad:{email:"ask_launchpad",displayName:"Launchpad: Onboarding module"},live:{email:"ask_live",displayName:"Live: Video, audio, events",jiraComponent:"Live"},lmsAds:{email:"lms-feedback",displayName:"Ads: Display, text, sponsored content"},localization:{email:"ask-translation-feedback",displayName:"Translation and localization"},magicwand:{email:"ask_magicwand",displayName:"Project Magic Wand"},media:{email:"ask_media",displayName:"Media: Images, video"},messaging:{email:"neptune-messaging-feedback",displayName:"Messaging"},myItems:{email:"ask_search_m2-p2",displayName:"My Items: Saved jobs, learning, posts, and projects"},myNetwork:{email:"neptune-mynetwork-feedback",displayName:"My Network: Connections, follows, suggestions"},nav:{email:" ask_ce_feed",displayName:"Navigation"},nba:{email:"ask_retention",displayName:"NBA (Launchpad, Contextual Landing Page, Insights Hub)"},news:{email:"ask_news",displayName:"News: Daily Rundown, Wrap Up, storylines"},notifications:{email:"neptune-notifications-feedback",displayName:"Notifications: View, relevance"},nurture:{email:"nurturesubtab",displayName:"Nurture: Catch up tab on My Network"},premium:{email:"neptune-premium-feedback",displayName:"Premium: InMails, Who Viewed My Profile, insights"},profile:{email:"voyager-profile-feedback",displayName:"Profile: View, admin"},props:{email:"ask_props",displayName:"Celebrations: Create, view, notifications"},publishing:{email:"ask_publishing",displayName:"Articles: Create, view, newsletters"},promoGalapagos:{email:"ask_promo",displayName:"Feature promos (Inline): Feed, jobs, groups"},searchBserp:{email:"ask_search_bserp",displayName:"Search: Blended Search Homepage"},searchHomeAndTypeahead:{email:"ask_search_qform",displayName:"Search: Search Home, Global Typeahead - Search History"},searchOtherVerticalsPlatformAndPremium:{email:"ask_search_m2-p2",displayName:"Search: Verticals (People, Products, Companies, Services, UX templates, Filters, Premium Search"},searchPostsVerticalOnly:{email:"ask_content_search",displayName:"Search: Posts Vertical (Content card, Content relevance)"},seekerCoach:{email:"ask_seeker_coach",displayName:"Seeker Coach"},sendToSelf:{email:"",displayName:"Send to self"},serviceMarketplace:{email:"pages-feedback",displayName:"Service marketplace"},settings:{email:"neptune-settings-feedback",displayName:"Settings"},shaky:{email:"ask_shaky",displayName:"Shaky (Shake for Feedback)"},sharing:{email:"ask_sharing_team",displayName:"Posts: Create content using the share box"},topicality:{email:"topicality-feedback",displayName:"Topicality"}}},61825:(e,t)=>{"use strict"
const n="List(",i="(",r="fields",o=/^(\/[^?]+)\??(.*)$/
function a(e=""){const t=o.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}function s(e=""){let t=e.indexOf("//")
return t=t>0?t+2:t+1,t=e.indexOf("/",t),t<0&&(t=e.indexOf("?",t)),t=t<0?0:t,{origin:e.substring(0,t),rest:e.substring(t)}}const c=/(%2C|%28|%29|%27|%3A)/g,l=/(%2C|%28|%29|%27|%3A)/
function u(e,t,n=0){return e.indexOf(t,n)===n}function d(e,t){if(e[e.length-1]!==t)throw new Error(`Input has unbalanced prefix and suffix: ${e}`)}function f(e,t=0){let n=0,i=!1
for(;t<e.length;){const r=e[t]
if("("===r&&(n++,i=!0),")"===r&&n--,0===n&&i)break
t++}return t}function p(e,t){return t?l.test(e)&&(e=e.replace(c,unescape)):e=decodeURIComponent(e),void 0===e||"''"===e?"":e}function h(e){return g(e,!1)}function g(e,t){return void 0!==e&&"''"!==e||(e=""),u(e,n)?(d(e,")"),m(e.substring(5,e.length-1),t)):u(e,i)?(d(e,")"),v(e.substring(1,e.length-1),t)):p(e,t)}function m(e,t=!1){const r=[]
let o=0
for(;o<e.length;){if(u(e,n,o)||u(e,i,o)){const n=f(e,o)
r.push(g(e.substring(o,n+1),t)),o=n+2
continue}let a=e.indexOf(",",o)
a<0&&(a=e.length),r.push(p(e.substring(o,a),t)),o=a+1}return r}function v(e,t=!1){const r={}
let o=0
for(;o<e.length;){const a=e.indexOf(":",o),s=p(e.substring(o,a),t)
if(o=a+1,e.startsWith(n,o)||e.startsWith(i,o)){const n=f(e,o)
r[s]=g(e.substring(o,n+1),t),o=n+2
continue}let c=e.indexOf(",",o)
c<0&&(c=e.length)
const l=p(e.substring(o,c),t)
r[s]=l,o=c+1}return r}const y=/[,()':]/g,b=/[,()':]/
function E(e,t){if("object"!=typeof e)throw new Error(t)}function k(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if(Array.isArray(e)||"object"!=typeof e||null===e)throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")}(t),Object.keys(t).map((e=>e===r?`${r}=${t[r]}`:`${S(e)}=${T(t[e],!1)}`)).join("&")}function _(e){if(e=JSON.parse(JSON.stringify(e)),!Array.isArray(e))throw new Error("You must pass an array to the arrayParamEncode function.")
return e.reduce((function(e,t){if(!t||!t.hasOwnProperty("name")||!t.hasOwnProperty("value"))throw new Error("Objects passed to the arrayParamEncode function must have name and value properties.")
if("object"==typeof t.value&&null!==t.value)throw new Error("Only primitives may be passed to arrayParamEncode as item values.")
const n=t.name,i=e.hasOwnProperty(n),r=e[n]
return i?Array.isArray(r)?r.push(t.value):e[n]=[r,t.value]:e[n]=t.value,e}),{})}function T(e,t){return Array.isArray(e)?function(e,t){const i=new Array(e.length)
for(let n=0;n<e.length;n++)i[n]=T(e[n],t)
return`${n}${i.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){const n=Object.keys(e).map((n=>`${S(n,t)}:${T(e[n],t)}`))
return`${i}${n.join(",")})`}(e,t):S(e,t)}function S(e,t=!1){return""===e?"''":t&&"string"==typeof e&&b.test(e)?e.replace(y,escape):t?e:encodeURIComponent(e).replace(y,escape)}var C=Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const w="application/x-www-form-urlencoded"
function x(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=a(e.url||void 0)
if(n){const i={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(i[t]=e.headers[t]||"")
let r,o
if(i["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
o="multipart/mixed; boundary="+t,r=["--"+t,"Content-Type: "+w,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=w,r=n
return i["Content-Type"]=o,{body:r,headers:i,method:"POST",url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}function I(e,t={}){return A(e)?R(e,t):{url:e,request:t}}function A(e){const{path:t,queryString:n}=a(e)
if(t.length>8e3)throw new Error(`Per AFD limitations, this request url ${e} will not work. Please contact ask_traffic@.`)
return e.length>8e3||n.length>4e3}function R(e,t={}){const n=Object.assign({},t)
n.url=e,n.forceQueryTunnel=!0
const i=x(n)
if(t.method=i.method,t.headers=i.headers,t.body=i.body,t.data=i.body,null==i.url)throw new Error("Invalid: URL to be encoded cannot be 'null' or 'undefined' when performing query tunneling")
return{url:i.url,request:t}}t.FIELDS_PARAM=r,t.LIST_PREFIX=n,t.LIST_SUFFIX=")",t.OBJ_PREFIX=i,t.OBJ_SUFFIX=")",t.arrayParamEncode=function(e){return k(_(e))},t.arrayParamToQueryStringObject=_,t.checkAndEncodeLongUrl=I,t.decode=h,t.decodeList=m,t.decodeObject=v,t.encode=function(e){const t=JSON.parse(JSON.stringify(e))
return E(t,"You must pass either an array or an object to the encode function."),T(t,!1)},t.encodeRequest=x,t.extractOriginAndRestFromUrl=s,t.extractPathAndQueryStringFromUrl=a,t.httpStatus=C,t.paramDecode=function(e){return e.split("&").reduce((function(e,t){if(!t.length)return e
if(0===t.indexOf("="))return e
let[n="",i]=t.split("=")
return"''"===n&&(n=""),void 0!==i&&""!==i||(i="''"),e[decodeURIComponent(n)]=h(i),e}),{})},t.paramEncode=k,t.queryTunnel=function(e){const{origin:t,rest:n}=s(e.url)
if(A(n)){const i=e.headers,r={}
i?.forEach(((e,t)=>r[t]=e))
let{method:o,body:a}=e
const{url:s,request:c}=R(n,{url:n,body:a,headers:r,method:o})
for(const e in i)i.delete(e)
for(const e in c.headers)i.set(e,c.headers[e]||"")
return({method:o="GET",body:a=""}=c),{url:t+s,method:o,body:a,headers:i}}return null},t.queryTunnelRequest=function(e,t={}){return function(){const e=document.querySelector('meta[name="isQueryTunnelRequestSupported"]')
return e&&"true"===e.getAttribute("content")||!1}()?I(e,t):{url:e,request:t}},t.reducedDecode=function(e){return g(e,!0)},t.reducedEncode=function(e){const t=JSON.parse(JSON.stringify(e))
return E(t,"You must pass either an array or an object to the reducedEncode function."),T(t,!0)},t.urlRequiresQueryTunneling=A},9154:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},61264:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},39068:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{Leaf:()=>i,RadixTrie:()=>r,eventToHotkeyString:()=>a,install:()=>m,uninstall:()=>v})
class i{constructor(e){this.children=[],this.parent=e}delete(e){const t=this.children.indexOf(e)
return-1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}}class r{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let t=this
for(let n=0;n<e.length;n+=1){const o=e[n]
let a=t.get(o)
if(n===e.length-1)return a instanceof r&&(t.delete(a),a=null),a||(a=new i(t),t.children[o]=a),a
a instanceof i&&(a=null),a||(a=new r(t),t.children[o]=a),t=a}return t}delete(e){for(const t in this.children)if(this.children[t]===e){const e=delete this.children[t]
return 0===Object.keys(this.children).length&&this.parent&&this.parent.delete(this),e}return!1}}function o(e){if(!(e instanceof HTMLElement))return!1
const t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase()
return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||e.isContentEditable}function a(e){const{ctrlKey:t,altKey:n,metaKey:i,key:r}=e,o=[],a=[t,n,i,c(e)]
for(const[e,t]of a.entries())t&&o.push(s[e])
return s.includes(r)||o.push(r),o.join("+")}const s=["Control","Alt","Meta","Shift"]
function c(e){const{shiftKey:t,code:n,key:i}=e
return t&&!(n.startsWith("Key")&&i.toUpperCase()===i)}const l=new r,u=new WeakMap
let d=l,f=null,p=[]
function h(){p=[],f=null,d=l}function g(e){if(e.defaultPrevented)return
if(!(e.target instanceof Node))return
if(o(e.target)){const t=e.target
if(!t.id)return
if(!t.ownerDocument.querySelector(`[data-hotkey-scope="${t.id}"]`))return}null!=f&&window.clearTimeout(f),f=window.setTimeout(h,1500)
const t=d.get(a(e))
if(t){if(p.push(a(e)),d=t,t instanceof i){const n=e.target
let i,r=!1
const a=o(n)
for(let e=t.children.length-1;e>=0;e-=1){i=t.children[e]
const o=i.getAttribute("data-hotkey-scope")
if(!a&&!o||a&&n.id===o){r=!0
break}}i&&r&&(function(e,t){const n=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:t}})
!e.dispatchEvent(n)||(o(e)?e.focus():e.click())}(i,p),e.preventDefault()),h()}}else h()}function m(e,t){0===Object.keys(l.children).length&&document.addEventListener("keydown",g)
const n=function(e){const t=[]
let n=[""],i=!1
for(let r=0;r<e.length;r++)i&&","===e[r]?(t.push(n),n=[""],i=!1):" "!==e[r]?(i="+"!==e[r],n[n.length-1]+=e[r]):(n.push(""),i=!1)
return t.push(n),t.map((e=>e.filter((e=>""!==e)))).filter((e=>e.length>0))}(t||e.getAttribute("data-hotkey")||""),i=n.map((t=>l.insert(t).add(e)))
u.set(e,i)}function v(e){const t=u.get(e)
if(t&&t.length)for(const n of t)n&&n.delete(e)
0===Object.keys(l.children).length&&document.removeEventListener("keydown",g)}},29424:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{AbuseFeaturesCollectionCoordinator:()=>c,CommonFeaturesAccessor:()=>s,EXTENSION_PREFIX:()=>k,fetchExtensions:()=>v,fireExtensionDetectedEvents:()=>b,fireSpectroscopyEvent:()=>C,getDocument:()=>_,isBrowser:()=>g,isUserAgentChrome:()=>m,parseFoundString:()=>T,scanDOMForPrefix:()=>S})
var i,r,o=["string","ec1","getRandomValues","AES-CBC","generateKey","encrypt","decrypt","resolve","encryptWithKeyIds","Error: ec2","isNaN","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB","publicKey","publicKeyVersion","uuidv4","digest","SHA-256","from","DNA","HUMAN","getCookieString","_cookieRegEx","bcookie","substring","getDomain","; path=","; secure=true","domain=","toUTCString","cookie","apfcDf","flash/compiled/FontList.swf","https://ponf.linkedin.com/pixel/tracking.png","/platform-telemetry/li/apfcDf","n/a","excluded","enabled","globalIntegration","readyState","checkConfigAndInitializeAllIntegration","load","setting-headline","initialize","settings-iframe","addEventListener","samplingTimeWindowInMillis","df_ts","pauseApfc","checkConfigAndInitializeGlobalIntegration","checkConfigAndInitializeThirdPartyIntegration","deleteItem","li_apfcdc","deleteDfCookieIfRequired","addDfCookieIfRequired","enableOnDemandMode","fpDataCookie","includes","dnaIntegrationEnabled","dnaIntegrationCompleted","apfcTypes","humanIntegrationEnabled","humanIntegrationCompleted","initializeHumanIntegration","dfpIntegrationEnabled","intializeDfpIntegration","getItem","setTime","apfcDfPK","triggerApfc","reentry","placePonfBeacon","reqid","pageInstance","isProd","fullFeatureCollection","apfcDfPKV","https://www.linkedin-ei.com","POST","setRequestHeader","Content-Type","send","telemetryCollectPath","intializeGlobalIntegration","populateFpDataCookie","getBcookie","fb6bbd47-fa7c-4264-b4e9-b25948407586","^[\\w-]*$","&instanceId=","script","src","dfp","head","PXdOjV695v","PXgoH0hfKu","&r_id=","&uc=scraping","&d_id=","humanThirdPartyIframe","sandbox","allow-same-origin allow-scripts","aria-hidden","0px","border","-9999px","extractDataCookie",":::","trackingId","memberId","sessionUrn","collectionType","object","FPDataCookie","host",".linkedin.com","startsWith","pemberly","isEmpty","getUrlFromNoscriptBeacon","div_bc","noscript","parseFromString","text/html","class","display:none;","searchParams","get","parentNode","charAt","bc_context",".linkedin-ei.com","img","undefined","triggerDnaApfcEvent","reentryGlobalIntegration","reentryGlobalIntegrationOnDemand","x64Add","x64Multiply","x64Rotl","x64LeftShift","x64Xor","x64Fmix","x64hash128","length","charCodeAt","00000000","toString","slice","each","prototype","forEach","hasOwnProperty","map","push","getIPs","RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","msRTCPeerConnection","stun:stun.l.google.com:19302","exec","localDescription","split","a=candidate:","indexOf","c=IN","keys","candidate","complete","iceGatheringState","createOffer","then","setLocalDescription","automationKey","getHasLiedBrowser","undetected, fake browser","getBrowserNameAndVersion","Chrome","webdriver","Firefox","documentElement","getAttribute","_Selenium_IDE_Recorder","Selenium","PhantomJS","NOT_AVAILABLE","webRtcKey","name","message","enumerateDevicesKey","isEnumerateDevicesSupported","mediaDevices","enumerateDevices","deviceId","gid","groupId","kind","label","catch","audioKey","audio","userAgent","match","EXCLUDED","OfflineAudioContext","createOscillator","type","triangle","setValueAtTime","currentTime","threshold","knee","ratio","reduction","release","connect","destination","start","startRendering","oncomplete","renderedBuffer","reduce","abs","disconnect","UserAgent","language","userLanguage","deviceMemoryKey","deviceMemory"," GB","pixelDepthKey","pixelDepth","pixelRatioKey","devicePixelRatio","screenResolutionKey","screenOrientationKey","screen","detectScreenOrientation","Enabled","orientation","Orientation","msOrientation","mozOrientation","getScreenResolution","width","height","availableScreenResolutionKey","getAvailableScreenResolution","availWidth","availHeight","getTimezoneOffset","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","sessionStorageKey","hasSessionStorage","localStorageKey","hasLocalStorage","hasIndexedDB","body","openDatabaseKey","openDatabase","cpuClassKey","getNavigatorCpuClass","oscpuKey","oscpu","appNameKey","appName","appVersionKey","appCodeNameKey","appCodeName","seedKey","now","getNavigatorPlatform","productSubKey","vendorKey","vendor","vendorSubKey","vendorSub","doNotTrackKey","RequestFileSystem","webkitRequestFileSystem","TEMPORARY","storage","estimate","quota","Safari","safariIncognito","localStorage","setItem","test","removeItem","open","onerror","onsuccess","EDGE","indexedDB","PointerEvent","MSPointerEvent","IE ","join","replace","OPR","Opera","appVersion","canvasKey","webglKey","isWebGlSupported","getWebglFp","javascriptsKey","scripts","locationKey","hostname","origin","pathname","getSignals","getAdBlock","getHasLiedLanguages","getHasLiedResolution","hasSwfObjectLoaded","hasMinFlashInstalled","fonts","loadSwfAndDetectFonts","missing options.fonts.swfPath","flash not installed","jsFontsKey","monospace","serif","Andale Mono","Arial","Arial Black","Arial MT","Arial Narrow","Arial Rounded MT Bold","Bitstream Vera Sans Mono","Bookman Old Style","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Unicode","Monaco","Monotype Corsiva","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe UI","Segoe UI Light","Segoe UI Symbol","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 3","extendedJsFonts","concat","userDefinedFonts","filter","getElementsByTagName","createElement","div","span","style","position","absolute","left","fontSize","72px","fontWeight","normal","letterSpacing","lineBreak","auto","lineHeight","textTransform","textAlign","none","whiteSpace","wordBreak","wordSpacing","textContent","mmmmmmmmmmlli","offsetWidth","offsetHeight","fontFamily","appendChild","removeChild","fontsHash","hashOnly","mimeTypes","suffixes","description","pluginsComponent","isIE","plugins","getIEPlugins","getRegularPlugins","pluginsShouldBeSorted","sort","getOwnPropertyDescriptor","ActiveXObject","AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","batteryKey","getBattery","level","charging","chargingTime","dischargingTime","downlinkMax","rtt","saveData","getTouchSupport","hardwareConcurrencyKey","getHardwareConcurrency","sessionStorage","ERROR","cpuClass","platform","getDoNotTrack","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","createEvent","TouchEvent","ontouchstart","canvas","display","inline","getContext","isPointInPath","evenodd","yes","textBaseline","fillStyle","#f60","fillRect","#069","dontUseFakeFontInCanvas","font","11pt Arial","11pt no-real-font-123","fillText","Cwm fjordbank glyphs vext quiz, 😃","rgba(102, 204, 0, 0.2)","18pt Arial","multiply","rgb(255,0,255)","beginPath","arc","closePath","fill","canvasHash","toDataURL","clearColor","DEPTH_TEST","LEQUAL","clear","COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","getWebglCanvas","createBuffer","bindBuffer","bufferData","ARRAY_BUFFER","VERTEX_SHADER","shaderSource","attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}","compileShader","createShader","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","attachShader","linkProgram","useProgram","vertexPosAttrib","getAttribLocation","attrVertex","offsetUniform","getUniformLocation","uniformOffset","enableVertexAttribArray","itemSize","drawArrays","numItems","webglHash","webgl","vendorAndRenderer","getWebglVendorAndRenderer","getSupportedExtensions","webgl aliased line width range","getParameter","ALIASED_LINE_WIDTH_RANGE","webgl aliased point size range","ALIASED_POINT_SIZE_RANGE","webgl alpha bits","webgl antialiasing","getContextAttributes","antialias","webgl blue bits","webgl depth bits","DEPTH_BITS","webgl green bits","GREEN_BITS","webgl max anisotropy","getExtension","WEBKIT_EXT_texture_filter_anisotropic","MAX_TEXTURE_MAX_ANISOTROPY_EXT","webgl max combined texture image units","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","webgl max fragment uniform vectors","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture image units","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_SIZE","webgl max varying vectors","webgl max vertex attribs","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","webgl max vertex uniform vectors","webgl max viewport dims","MAX_VIEWPORT_DIMS","webgl red bits","RED_BITS","webgl renderer","RENDERER","SHADING_LANGUAGE_VERSION","webgl stencil bits","STENCIL_BITS","VENDOR","webgl version","VERSION","WEBGL_debug_renderer_info","webgl unmasked vendor","webgl unmasked renderer","UNMASKED_RENDERER_WEBGL","getShaderPrecisionFormat","INT","FRAGMENT","HIGH","MEDIUM","LOW","rangeMin","rangeMax","_SHADER","precision","webgl ","toLowerCase"," shader ","UNMASKED_VENDOR_WEBGL","innerHTML","&nbsp;","className","adsbox","getElementsByClassName","languages","substr","getHasLiedOs","windows phone","win","Windows","android","linux","cros","Linux","iphone","ipad","iOS","Mac","Windows Phone","Android","mac","Other","productSub","firefox","opera","opr","safari","trident","Internet Explorer","20030107","toSource","isCanvasSupported","WebGLRenderingContext","Microsoft Internet Explorer","Netscape","swfobject","hasFlashPlayerVersion","addFlashDivNode","setAttribute","swfContainerId","___fp_swf_loaded","embedSWF","9.0.0","always","false","webrtc","tsSeed","location","javascripts","product","productKey","hardwareConcurrency","numOfCores","languageKey","timezoneOffset","incognitoKey","colorDepth","pixelRatio","screenResolution","availableScreenResolution","indexedDbKey","addBehaviorKey","signals","signalsKey","touchSupport","touchSupportKey","networkInfo","networkInfoKey","mimetyps","fontsFlash","flashFontsKey","getFeatures","function","Options not provided","components","key","alias","getData","dataLimit","number","stringify","data","Exceeded current data limit:"," was found to be:","latency","acq_time","allFeatures","errors","useRequestIdleCallBack","querySelector","getElementById","firstChild","nodeValue","parse","str2ab","fromCharCode","importPk","atob","importKey","RSA-OAEP","spki","wrapKey","crypto","subtle","raw","encode","error","encryptWithKey"]
i=o,r=136,function(e){for(;--e;)i.push(i.shift())}(++r)
var a=function(e,t){return o[e-=0]}
!function(){class e{static[a("0x0")](e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]]
const n=[0,0,0,0]
return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}static[a("0x1")](e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]]
const n=[0,0,0,0]
return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}static[a("0x2")](e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}static[a("0x3")](e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}static[a("0x4")](e,t){return[e[0]^t[0],e[1]^t[1]]}static[a("0x5")](t){return t=e[a("0x4")](t,[0,t[0]>>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e[a("0x4")](t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e[a("0x4")](t,[0,t[0]>>>1])}static[a("0x6")](t,n){n=n||0
const i=(t=t||"")[a("0x7")]%16,r=t.length-i
let o=[0,n],s=[0,n],c=[0,0],l=[0,0]
const u=[2277735313,289559509],d=[1291169091,658871167]
let f
for(f=0;f<r;f+=16)c=[255&t[a("0x8")](f+4)|(255&t[a("0x8")](f+5))<<8|(255&t.charCodeAt(f+6))<<16|(255&t.charCodeAt(f+7))<<24,255&t[a("0x8")](f)|(255&t.charCodeAt(f+1))<<8|(255&t[a("0x8")](f+2))<<16|(255&t[a("0x8")](f+3))<<24],l=[255&t[a("0x8")](f+12)|(255&t[a("0x8")](f+13))<<8|(255&t[a("0x8")](f+14))<<16|(255&t[a("0x8")](f+15))<<24,255&t[a("0x8")](f+8)|(255&t[a("0x8")](f+9))<<8|(255&t.charCodeAt(f+10))<<16|(255&t[a("0x8")](f+11))<<24],c=e[a("0x1")](c,u),c=e[a("0x2")](c,31),c=e[a("0x1")](c,d),o=e[a("0x4")](o,c),o=e[a("0x2")](o,27),o=e.x64Add(o,s),o=e[a("0x0")](e[a("0x1")](o,[0,5]),[0,1390208809]),l=e.x64Multiply(l,d),l=e[a("0x2")](l,33),l=e[a("0x1")](l,u),s=e[a("0x4")](s,l),s=e[a("0x2")](s,31),s=e[a("0x0")](s,o),s=e[a("0x0")](e.x64Multiply(s,[0,5]),[0,944331445])
switch(c=[0,0],l=[0,0],i){case 15:l=e[a("0x4")](l,e[a("0x3")]([0,t[a("0x8")](f+14)],48))
case 14:l=e[a("0x4")](l,e[a("0x3")]([0,t.charCodeAt(f+13)],40))
case 13:l=e[a("0x4")](l,e[a("0x3")]([0,t[a("0x8")](f+12)],32))
case 12:l=e.x64Xor(l,e.x64LeftShift([0,t[a("0x8")](f+11)],24))
case 11:l=e[a("0x4")](l,e[a("0x3")]([0,t[a("0x8")](f+10)],16))
case 10:l=e[a("0x4")](l,e[a("0x3")]([0,t.charCodeAt(f+9)],8))
case 9:l=e.x64Xor(l,[0,t[a("0x8")](f+8)]),l=e[a("0x1")](l,d),l=e[a("0x2")](l,33),l=e.x64Multiply(l,u),s=e[a("0x4")](s,l)
case 8:c=e[a("0x4")](c,e[a("0x3")]([0,t[a("0x8")](f+7)],56))
case 7:c=e[a("0x4")](c,e[a("0x3")]([0,t[a("0x8")](f+6)],48))
case 6:c=e[a("0x4")](c,e[a("0x3")]([0,t.charCodeAt(f+5)],40))
case 5:c=e[a("0x4")](c,e.x64LeftShift([0,t.charCodeAt(f+4)],32))
case 4:c=e[a("0x4")](c,e[a("0x3")]([0,t[a("0x8")](f+3)],24))
case 3:c=e[a("0x4")](c,e[a("0x3")]([0,t[a("0x8")](f+2)],16))
case 2:c=e[a("0x4")](c,e[a("0x3")]([0,t[a("0x8")](f+1)],8))
case 1:c=e.x64Xor(c,[0,t[a("0x8")](f)]),c=e[a("0x1")](c,u),c=e[a("0x2")](c,31),c=e.x64Multiply(c,d),o=e.x64Xor(o,c)}return o=e.x64Xor(o,[0,t[a("0x7")]]),s=e.x64Xor(s,[0,t[a("0x7")]]),o=e[a("0x0")](o,s),s=e.x64Add(s,o),o=e.x64Fmix(o),s=e[a("0x5")](s),o=e[a("0x0")](o,s),s=e[a("0x0")](s,o),(a("0x9")+(o[0]>>>0)[a("0xa")](16))[a("0xb")](-8)+(a("0x9")+(o[1]>>>0).toString(16))[a("0xb")](-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16))[a("0xb")](-8)}}class t{static[a("0xc")](e,t){if(Array[a("0xd")].forEach&&e[a("0xe")]===Array[a("0xd")][a("0xe")])e[a("0xe")](t)
else if(e[a("0x7")]===+e.length)for(let n=0,i=e[a("0x7")];n<i;n++)t(e[n],n,e)
else for(let n in e)e[a("0xf")](n)&&t(e[n],n,e)}static[a("0x10")](e,n){let i=[]
return null==e?i:Array[a("0xd")][a("0x10")]&&e[a("0x10")]===Array[a("0xd")][a("0x10")]?e[a("0x10")](n):(t.each(e,(function(e,t,r){i[a("0x11")](n(e,t,r))})),i)}static[a("0x12")](e,t){let n={},i=new(window[a("0x13")]||window[a("0x14")]||window[a("0x15")]||window[a("0x16")])({iceServers:[{urls:a("0x17")}]},{optional:[{RtpDataChannels:!0}]})
const r=function(e){if(null!==e)try{const t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/[a("0x18")](e)[1]
n[t]=!0}catch(e){}}
let o=!1
const s=function(){if(!0===o)return
o=!0
const e=i[a("0x19")]
null!==e&&e.sdp[a("0x1a")]("\n").forEach((function(e){0!==e.indexOf(a("0x1b"))&&0!==e[a("0x1c")](a("0x1d"))||r(e)})),t(Object[a("0x1e")](n))}
i.onicecandidate=function(e){e.candidate&&r(e[a("0x1f")][a("0x1f")])},i.onicegatheringstatechange=function(e){a("0x20")===i[a("0x21")]&&s()},i.createDataChannel("bl")
try{i[a("0x22")]()[a("0x23")]((function(e){i.setLocalDescription(e)}))}catch(e){i[a("0x22")]((function(e){i[a("0x24")](e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){s()}),2e3)}static[a("0x25")](e,n){if(t[a("0x26")]())return void e(a("0x27"))
const i=t[a("0x28")]()[a("0x1a")](" ")[0]
a("0x29")!==i||!0!==navigator[a("0x2a")]?a("0x2b")===i&&window.document[a("0x2c")][a("0x2d")](a("0x2a"))||a("0x2e")in window||"__webdriver_script_fn"in document?e(a("0x2f")):window.callPhantom||window._phantom?e(a("0x30")):e(n[a("0x31")]):e("Selenium")}static[a("0x32")](e,n){try{t.getIPs(n,(t=>{e({ips:t})}))}catch(t){e({exception:{name:t[a("0x33")],message:t[a("0x34")]}})}}static[a("0x35")](e,n){if(!t[a("0x36")]())return e(n[a("0x31")])
navigator[a("0x37")][a("0x38")]()[a("0x23")]((function(t){e(t[a("0x10")]((function(e){let t={}
return t.id=e[a("0x39")],t[a("0x3a")]=e[a("0x3b")],t[a("0x3c")]=e[a("0x3c")],t.label=e[a("0x3d")],t})))}))[a("0x3e")]((function(t){e(t)}))}static[a("0x36")](){return navigator.mediaDevices&&navigator[a("0x37")][a("0x38")]}static[a("0x3f")](e,n){let i=n[a("0x40")]
if(i.excludeIOS11&&navigator[a("0x41")][a("0x42")](/OS 11.+Version\/11.+Safari/))return e(n[a("0x43")])
const r=window[a("0x44")]||window.webkitOfflineAudioContext
if(null==r)return e(n[a("0x31")])
let o=new r(1,44100,44100),s=o[a("0x45")]()
s[a("0x46")]=a("0x47"),s.frequency[a("0x48")](1e4,o[a("0x49")])
let c=o.createDynamicsCompressor()
t[a("0xc")]([[a("0x4a"),-50],[a("0x4b"),40],[a("0x4c"),12],[a("0x4d"),-20],["attack",0],[a("0x4e"),.25]],(function(e){void 0!==c[e[0]]&&"function"==typeof c[e[0]][a("0x48")]&&c[e[0]].setValueAtTime(e[1],o[a("0x49")])})),s[a("0x4f")](c),c[a("0x4f")](o[a("0x50")]),s[a("0x51")](0),o[a("0x52")]()
let l=setTimeout((function(){return o[a("0x53")]=function(){},o=null,e("audioTimeout")}),i.timeout)
o.oncomplete=function(t){let n
try{clearTimeout(l),n=t[a("0x54")].getChannelData(0)[a("0xb")](4500,5e3)[a("0x55")]((function(e,t){return e+Math[a("0x56")](t)}),0)[a("0xa")](),s[a("0x57")](),c.disconnect()}catch(t){return void e(t)}e(n)}}static[a("0x58")](e){e(navigator[a("0x41")])}static webdriver(e,t){e(void 0===navigator[a("0x2a")]||null===navigator[a("0x2a")]?t[a("0x31")]:navigator[a("0x2a")])}static languageKey(e,t){e(navigator[a("0x59")]||navigator[a("0x5a")]||navigator.browserLanguage||navigator.systemLanguage||t[a("0x31")])}static colorDepthKey(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}static[a("0x5b")](e,t){let n=navigator[a("0x5c")]||t.NOT_AVAILABLE
n!==t[a("0x31")]&&(n+=a("0x5d")),e(n)}static[a("0x5e")](e,t){e(window.screen[a("0x5f")]||t.NOT_AVAILABLE)}static[a("0x60")](e,t){e(window[a("0x61")]||t[a("0x31")])}static[a("0x62")](e,n){e(t.getScreenResolution(n))}static[a("0x63")](e,t){if(!t[a("0x64")][a("0x65")])return void e(t[a("0x43")])
let n={}
n[a("0x66")]=void 0!==screen[a("0x67")],n[a("0x68")]=screen[a("0x69")]||screen[a("0x6a")]||(screen[a("0x67")]||{}).type,e(n)}static[a("0x6b")](){return{w:window[a("0x64")][a("0x6c")],h:window[a("0x64")][a("0x6d")]}}static[a("0x6e")](e,n){e(t[a("0x6f")](n))}static[a("0x6f")](e){return window[a("0x64")][a("0x70")]&&window[a("0x64")][a("0x71")]?{w:window[a("0x64")][a("0x70")],h:window[a("0x64")][a("0x71")]}:e[a("0x31")]}static timezoneOffset(e){e((new Date)[a("0x72")]()/60)}static[a("0x73")](e,t){window[a("0x74")]&&window[a("0x74")].DateTimeFormat?e((new(window[a("0x74")][a("0x75")]))[a("0x76")]()[a("0x77")]):e(t.NOT_AVAILABLE)}static[a("0x78")](e,n){e(t[a("0x79")](n))}static[a("0x7a")](e,n){e(t[a("0x7b")](n))}static indexedDbKey(e,n){e(t[a("0x7c")](n))}static addBehaviorKey(e){e(!(!document[a("0x7d")]||!document.body.addBehavior))}static[a("0x7e")](e){e(!!window[a("0x7f")])}static[a("0x80")](e,n){e(t[a("0x81")](n))}static[a("0x82")](e,t){e(navigator[a("0x83")]||t[a("0x31")])}static[a("0x84")](e,t){e(navigator[a("0x85")]||t[a("0x31")])}static[a("0x86")](e,t){e(navigator.appVersion||t[a("0x31")])}static[a("0x87")](e,t){e(navigator[a("0x88")]||t[a("0x31")])}static[a("0x89")](e,t){e(Date[a("0x8a")]())}static platformKey(e,n){e(t[a("0x8b")](n))}static productKey(e,t){e(navigator.product||t[a("0x31")])}static[a("0x8c")](e,t){e(navigator.productSub||t[a("0x31")])}static[a("0x8d")](e,t){e(navigator[a("0x8e")]||t[a("0x31")])}static[a("0x8f")](e,t){e(navigator[a("0x90")]||t[a("0x31")])}static[a("0x91")](e,n){e(t.getDoNotTrack(n))}static incognitoKey(e,n){const i=t[a("0x28")]().split(" "),r=i[0],o=i[1]
let s=n[a("0x31")]
if(a("0x29")===r)if(parseInt(o)<=74){const t=window[a("0x92")]||window[a("0x93")]
t?t(window[a("0x94")],100,(function(t){e(!1)}),(function(t){e(!0)})):e(s)}else a("0x95")in navigator&&a("0x96")in navigator.storage?navigator[a("0x95")][a("0x96")]()[a("0x23")]((function(t){const n=t[a("0x97")]
s=n<125829120,e(s)})):e(s)
else if(a("0x98")===r){if(s=!1,window[a("0x99")])s=!0
else{try{window.openDatabase(null,null,null,null)}catch(e){s=!0}try{window[a("0x9a")][a("0x9b")](a("0x9c"),1)}catch(e){s=!0}}void 0===s&&(s=!1,window[a("0x9a")][a("0x9d")](a("0x9c"))),e(s)}else if(a("0x2b")===r){let t=indexedDB[a("0x9e")](a("0x9c"))
t[a("0x9f")]=function(){e(!0)},t[a("0xa0")]=function(){e(!1)}}else e("IE"===r||a("0xa1")===r?!window[a("0xa2")]&&(window[a("0xa3")]||window[a("0xa4")]):s)}static[a("0x28")](){let e,t=navigator[a("0x41")],n=t[a("0x42")](/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i[a("0x9c")](n[1])?(e=/\brv[ :]+(\d+)/g[a("0x18")](t)||[],a("0xa5")+(e[1]||"")):a("0x29")===n[1]&&(e=t.match(/\b(OPR|Edge)\/(\d+)/),null!=e)?e[a("0xb")](1)[a("0xa6")](" ")[a("0xa7")](a("0xa8"),a("0xa9")):(n=n[2]?[n[1],n[2]]:[navigator[a("0x85")],navigator[a("0xaa")],"-?"],e=t[a("0x42")](/version\/(\d+)/i),null!=e&&n.splice(1,1,e[1]),n[a("0xa6")](" "))}static[a("0xab")](e,n){t.isCanvasSupported()?e(t.getCanvasFp(n)):e(n[a("0x31")])}static[a("0xac")](e,n){t[a("0xad")]()?e(t[a("0xae")](n)):e(n[a("0x31")])}static[a("0xaf")](e,t){if(void 0===document[a("0xb0")]||null===document[a("0xb0")])return e(t[a("0x31")])
e([])}static[a("0xb1")](e,t){e({hash:location.hash||t[a("0x31")],host:location.host||t[a("0x31")],hostname:location[a("0xb2")]||t.NOT_AVAILABLE,href:location.href||t[a("0x31")],origin:location[a("0xb3")]||t[a("0x31")],pathname:location[a("0xb4")]||t[a("0x31")],port:location.port||t[a("0x31")],protocol:location.protocol||t[a("0x31")]})}static signalsKey(e){e(t.getSignals())}static[a("0xb5")](){const e={adBlockInstalled:function(){return t[a("0xb6")]()},liedLanguages:function(){return t[a("0xb7")]()},liedResolution:function(){return t[a("0xb8")]()},liedOS:function(){return t.getHasLiedOs()},liedBrowser:function(){return t[a("0x26")]()}},n={}
for(const t in e)if(e[a("0xf")](t)){const i=e[t]
n[t]=i(t)}return n}static flashFontsKey(e,n){return t[a("0xb9")]()?t[a("0xba")]()?n[a("0xbb")].swfPath?void t[a("0xbc")]((function(t){e(t)}),n):e(a("0xbd")):e(a("0xbe")):e("swf object not loaded")}static[a("0xbf")](t,n){const i=[a("0xc0"),"sans-serif",a("0xc1")]
let r=[a("0xc2"),a("0xc3"),a("0xc4"),"Arial Hebrew",a("0xc5"),a("0xc6"),a("0xc7"),"Arial Unicode MS",a("0xc8"),"Book Antiqua",a("0xc9"),"Calibri",a("0xca"),a("0xcb"),a("0xcc"),a("0xcd"),a("0xce"),a("0xcf"),a("0xd0"),"Consolas",a("0xd1"),a("0xd2"),a("0xd3"),a("0xd4"),a("0xd5"),a("0xd6"),a("0xd7"),a("0xd8"),a("0xd9"),a("0xda"),a("0xdb"),a("0xdc"),a("0xdd"),a("0xde"),"Lucida Sans Typewriter",a("0xdf"),"Microsoft Sans Serif",a("0xe0"),a("0xe1"),"MS Gothic","MS Outlook",a("0xe2"),a("0xe3"),a("0xe4"),a("0xe5"),a("0xe6"),a("0xe7"),a("0xe8"),a("0xe9"),a("0xea"),"Segoe Script",a("0xeb"),a("0xec"),"Segoe UI Semibold",a("0xed"),"Tahoma","Times",a("0xee"),a("0xef"),a("0xf0"),a("0xf1"),a("0xf2"),"Wingdings 2",a("0xf3")]
void 0!==n[a("0xbb")]&&void 0!==n[a("0xbb")][a("0xf4")]&&(r=r[a("0xf5")](n.fonts.extendedJsFonts)),void 0!==n[a("0xbb")]&&void 0!==n[a("0xbb")].userDefinedFonts&&(r=r.concat(n[a("0xbb")][a("0xf6")])),r=r[a("0xf7")]((function(e,t){return r.indexOf(e)===t}))
const o=document[a("0xf8")](a("0x7d"))[0],s=document[a("0xf9")](a("0xfa")),c=document[a("0xf9")](a("0xfa")),l={},u={},d=function(){const e=document[a("0xf9")](a("0xfb"))
return e[a("0xfc")][a("0xfd")]=a("0xfe"),e[a("0xfc")][a("0xff")]="-9999px",e[a("0xfc")][a("0x100")]=a("0x101"),e[a("0xfc")].fontStyle="normal",e[a("0xfc")][a("0x102")]=a("0x103"),e[a("0xfc")][a("0x104")]=a("0x103"),e.style[a("0x105")]=a("0x106"),e[a("0xfc")][a("0x107")]=a("0x103"),e.style[a("0x108")]="none",e[a("0xfc")][a("0x109")]=a("0xff"),e[a("0xfc")].textDecoration=a("0x10a"),e[a("0xfc")].textShadow=a("0x10a"),e.style[a("0x10b")]=a("0x103"),e[a("0xfc")][a("0x10c")]=a("0x103"),e[a("0xfc")][a("0x10d")]=a("0x103"),e[a("0x10e")]=a("0x10f"),e},f=function(e,t){const n=d()
return n[a("0xfc")].fontFamily="'"+e+"',"+t,n},p=function(e){let t=!1
for(let n=0;n<i[a("0x7")];n++)if(t=e[n][a("0x110")]!==l[i[n]]||e[n][a("0x111")]!==u[i[n]],t)return t
return t},h=function(){const e=[]
for(let t=0,n=i[a("0x7")];t<n;t++){const n=d()
n[a("0xfc")][a("0x112")]=i[t],s[a("0x113")](n),e[a("0x11")](n)}return e}()
o.appendChild(s)
for(let e=0,t=i[a("0x7")];e<t;e++)l[i[e]]=h[e][a("0x110")],u[i[e]]=h[e].offsetHeight
const g=function(){const e={}
for(let t=0,n=r.length;t<n;t++){const n=[]
for(let e=0,o=i[a("0x7")];e<o;e++){const o=f(r[t],i[e])
c.appendChild(o),n.push(o)}e[r[t]]=n}return e}()
o[a("0x113")](c)
const m=[]
for(let e=0,t=r[a("0x7")];e<t;e++)p(g[r[e]])&&m.push(r[e])
o[a("0x114")](c),o.removeChild(s)
const v={}
v[a("0x115")]=e.x64hash128(m[a("0xa6")](),23),n[a("0xbb")][a("0x116")]||(v.lists=m),t(v)}static mimetypesComponent(e,t){if(void 0===navigator.mimeTypes||null===navigator[a("0x117")])return void e(t.NOT_AVAILABLE)
const n=navigator[a("0x117")],i=[]
for(let e=0;e<n.length;e++){const t={}
t[a("0x46")]=n[e][a("0x46")],t[a("0x118")]=n[e][a("0x118")],t[a("0x119")]=n[e][a("0x119")],i[a("0x11")](t)}e(i)}static[a("0x11a")](e,n){t[a("0x11b")]()?n[a("0x11c")].excludeIE?e(n[a("0x43")]):e(t[a("0x11d")](n)):e(t.getRegularPlugins(n))}static[a("0x11e")](e){if(void 0===navigator.plugins||null===navigator[a("0x11c")])return e[a("0x31")]
let n=[]
for(let e=0,t=navigator.plugins[a("0x7")];e<t;e++)navigator[a("0x11c")][e]&&n[a("0x11")](navigator[a("0x11c")][e])
return n.length>0&&t[a("0x11f")](e)&&(n=n[a("0x120")]((function(e,t){return e[a("0x33")]>t.name?1:e[a("0x33")]<t[a("0x33")]?-1:0}))),t[a("0x10")](n,(function(e){const n=t[a("0x10")](e,(function(e){return[e.type,e[a("0x118")]]}))
return[e[a("0x33")],e[a("0x119")],n]}))}static[a("0x11d")](e){let n=[]
if(Object[a("0x121")]&&Object[a("0x121")](window,a("0x122"))||a("0x122")in window){const i=[a("0x123"),a("0x124"),a("0x125"),a("0x126"),"MacromediaFlashPaper.MacromediaFlashPaper",a("0x127"),a("0x128"),a("0x129"),a("0x12a"),a("0x12b"),a("0x12c"),a("0x12d"),a("0x12e"),a("0x12f"),a("0x130"),"Shell.UIHelper","ShockwaveFlash.ShockwaveFlash",a("0x131"),a("0x132"),a("0x133"),"rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"]
n=t[a("0x10")](i,(function(t){try{return new(window[a("0x122")])(t),t}catch(t){return e.ERROR}}))}else n[a("0x11")](e[a("0x31")])
return navigator[a("0x11c")]&&(n=n.concat(t[a("0x11e")](e))),n}static[a("0x11f")](e){let t=!1
for(let n=0,i=e.plugins.sortPluginsFor[a("0x7")];n<i;n++){const i=e[a("0x11c")].sortPluginsFor[n]
if(navigator[a("0x41")][a("0x42")](i)){t=!0
break}}return t}static[a("0x134")](e,t){void 0!==navigator[a("0x135")]?navigator[a("0x135")]()[a("0x23")]((function(t){const n={}
n[a("0x136")]=t[a("0x136")],n[a("0x137")]=t[a("0x137")],n[a("0x138")]=t[a("0x138")],n[a("0x139")]=t[a("0x139")],e(n)})):e(t[a("0x31")])}static networkInfoKey(e,t){const n=navigator.connection
e(void 0!==n?{downlink:n.downlink,downlinkMax:n[a("0x13a")],type:n[a("0x46")],effectiveType:n.effectiveType,rtt:n[a("0x13b")],saveData:n[a("0x13c")]}:t.NOT_AVAILABLE)}static touchSupportKey(e){e(t[a("0x13d")]())}static[a("0x13e")](e,n){e(t[a("0x13f")](n))}static[a("0x79")](e){try{return!!window[a("0x140")]}catch(t){return e[a("0x141")]}}static[a("0x7b")](e){try{return!!window.localStorage}catch(t){return e[a("0x141")]}}static[a("0x7c")](e){try{return!!window[a("0xa2")]}catch(t){return e[a("0x141")]}}static[a("0x13f")](e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e[a("0x31")]}static[a("0x81")](e){return navigator[a("0x142")]||e[a("0x31")]}static[a("0x8b")](e){return navigator.platform?navigator[a("0x143")]:e[a("0x31")]}static[a("0x144")](e){return navigator[a("0x145")]?navigator[a("0x145")]:navigator[a("0x146")]?navigator[a("0x146")]:window[a("0x145")]?window[a("0x145")]:e[a("0x31")]}static[a("0x13d")](){let e,t=0
void 0!==navigator.maxTouchPoints?t=navigator[a("0x147")]:void 0!==navigator[a("0x148")]&&(t=navigator[a("0x148")])
try{document[a("0x149")](a("0x14a")),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:a("0x14b")in window}}static getCanvasFp(t){const n={},i=document[a("0xf9")](a("0x14c"))
i[a("0x6c")]=2e3,i[a("0x6d")]=200,i[a("0xfc")][a("0x14d")]=a("0x14e")
const r=i[a("0x14f")]("2d")
return r.rect(0,0,10,10),r.rect(2,2,6,6),n.canvasWinding=!1===r[a("0x150")](5,5,a("0x151"))?a("0x152"):"no",r[a("0x153")]="alphabetic",r[a("0x154")]=a("0x155"),r[a("0x156")](125,1,62,20),r[a("0x154")]=a("0x157"),t[a("0x158")]?r[a("0x159")]=a("0x15a"):r[a("0x159")]=a("0x15b"),r[a("0x15c")](a("0x15d"),2,15),r[a("0x154")]=a("0x15e"),r[a("0x159")]=a("0x15f"),r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation=a("0x160"),r.fillStyle=a("0x161"),r[a("0x162")](),r[a("0x163")](50,50,50,0,2*Math.PI,!0),r[a("0x164")](),r[a("0x165")](),r.fillStyle="rgb(0,255,255)",r[a("0x162")](),r[a("0x163")](100,50,50,0,2*Math.PI,!0),r[a("0x164")](),r[a("0x165")](),r[a("0x154")]="rgb(255,255,0)",r.beginPath(),r[a("0x163")](75,100,50,0,2*Math.PI,!0),r[a("0x164")](),r.fill(),r[a("0x154")]=a("0x161"),r[a("0x163")](75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill(a("0x151")),i.toDataURL&&(n[a("0x166")]=e[a("0x6")](i[a("0x167")](),23)),n}static getWebglFp(n){let i
const r=function(e){return i[a("0x168")](0,0,0,1),i.enable(i[a("0x169")]),i.depthFunc(i[a("0x16a")]),i[a("0x16b")](i[a("0x16c")]|i[a("0x16d")]),"["+e[0]+", "+e[1]+"]"}
if(i=t[a("0x16e")](),!i)return null
const o={},s=i[a("0x16f")]()
i[a("0x170")](i.ARRAY_BUFFER,s)
const c=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
i[a("0x171")](i[a("0x172")],c,i.STATIC_DRAW),s.itemSize=3,s.numItems=3
const l=i.createProgram(),u=i.createShader(i[a("0x173")])
i[a("0x174")](u,a("0x175")),i[a("0x176")](u)
const d=i[a("0x177")](i.FRAGMENT_SHADER)
i.shaderSource(d,a("0x178")),i[a("0x176")](d),i.attachShader(l,u),i[a("0x179")](l,d),i[a("0x17a")](l),i[a("0x17b")](l),l[a("0x17c")]=i[a("0x17d")](l,a("0x17e")),l[a("0x17f")]=i[a("0x180")](l,a("0x181")),i[a("0x182")](l.vertexPosArray),i.vertexAttribPointer(l.vertexPosAttrib,s[a("0x183")],i.FLOAT,!1,0,0),i.uniform2f(l.offsetUniform,1,1),i[a("0x184")](i.TRIANGLE_STRIP,0,s[a("0x185")])
try{o[a("0x186")]=e.x64hash128(i.canvas[a("0x167")](),23)}catch(e){}if(n[a("0x187")][a("0x116")])return o
o[a("0x188")]=t[a("0x189")](),o.extensions=i[a("0x18a")]()||[],o[a("0x18b")]=r(i[a("0x18c")](i[a("0x18d")])),o[a("0x18e")]=r(i[a("0x18c")](i[a("0x18f")])),o[a("0x190")]=i[a("0x18c")](i.ALPHA_BITS),o[a("0x191")]=i[a("0x192")]()[a("0x193")]?"yes":"no",o[a("0x194")]=i[a("0x18c")](i.BLUE_BITS),o[a("0x195")]=i[a("0x18c")](i[a("0x196")]),o[a("0x197")]=i.getParameter(i[a("0x198")]),o[a("0x199")]=function(e){const t=e[a("0x19a")]("EXT_texture_filter_anisotropic")||e.getExtension(a("0x19b"))||e[a("0x19a")]("MOZ_EXT_texture_filter_anisotropic")
if(t){let n=e[a("0x18c")](t[a("0x19c")])
return 0===n&&(n=2),n}return null}(i),o[a("0x19d")]=i.getParameter(i[a("0x19e")]),o["webgl max cube map texture size"]=i[a("0x18c")](i[a("0x19f")]),o[a("0x1a0")]=i[a("0x18c")](i[a("0x1a1")]),o[a("0x1a2")]=i[a("0x18c")](i[a("0x1a3")]),o[a("0x1a4")]=i[a("0x18c")](i[a("0x1a5")]),o["webgl max texture size"]=i[a("0x18c")](i[a("0x1a6")]),o[a("0x1a7")]=i.getParameter(i.MAX_VARYING_VECTORS),o[a("0x1a8")]=i[a("0x18c")](i[a("0x1a9")]),o["webgl max vertex texture image units"]=i[a("0x18c")](i[a("0x1aa")]),o[a("0x1ab")]=i[a("0x18c")](i.MAX_VERTEX_UNIFORM_VECTORS),o[a("0x1ac")]=r(i[a("0x18c")](i[a("0x1ad")])),o[a("0x1ae")]=i[a("0x18c")](i[a("0x1af")]),o[a("0x1b0")]=i[a("0x18c")](i[a("0x1b1")]),o["webgl shading language version"]=i[a("0x18c")](i[a("0x1b2")]),o[a("0x1b3")]=i[a("0x18c")](i[a("0x1b4")]),o["webgl vendor"]=i[a("0x18c")](i[a("0x1b5")]),o[a("0x1b6")]=i.getParameter(i[a("0x1b7")])
try{const e=i[a("0x19a")](a("0x1b8"))
e&&(o[a("0x1b9")]=i.getParameter(e.UNMASKED_VENDOR_WEBGL),o[a("0x1ba")]=i[a("0x18c")](e[a("0x1bb")]))}catch(e){}return i[a("0x1bc")]?(t[a("0xc")](["FLOAT",a("0x1bd")],(function(e){t.each(["VERTEX",a("0x1be")],(function(n){t.each([a("0x1bf"),a("0x1c0"),a("0x1c1")],(function(r){t[a("0xc")](["precision",a("0x1c2"),a("0x1c3")],(function(t){const s=i[a("0x1bc")](i[n+a("0x1c4")],i[r+"_"+e])[t]
a("0x1c5")!==t&&(t="precision "+t)
const c=[a("0x1c6"),n[a("0x1c7")](),a("0x1c8"),r[a("0x1c7")]()," ",e.toLowerCase()," ",t][a("0xa6")]("")
o[c]=s}))}))}))})),o):o}static[a("0x189")](){try{const e=t[a("0x16e")](),n=e.getExtension(a("0x1b8"))
return e[a("0x18c")](n[a("0x1c9")])+"~"+e[a("0x18c")](n[a("0x1bb")])}catch(e){return null}}static getAdBlock(){const e=document[a("0xf9")](a("0xfa"))
e[a("0x1ca")]=a("0x1cb"),e[a("0x1cc")]=a("0x1cd")
let t=!1
try{document[a("0x7d")].appendChild(e),t=0===document[a("0x1ce")]("adsbox")[0].offsetHeight,document.body[a("0x114")](e)}catch(e){t=!1}return t}static[a("0xb7")](){if(void 0!==navigator[a("0x1cf")])try{if(navigator.languages[0][a("0x1d0")](0,2)!==navigator[a("0x59")][a("0x1d0")](0,2))return!0}catch(e){return!0}return!1}static[a("0xb8")](){return window[a("0x64")][a("0x6c")]<window.screen.availWidth||window[a("0x64")].height<window.screen[a("0x71")]}static[a("0x1d1")](){const e=navigator[a("0x41")][a("0x1c7")]()
let t=navigator[a("0x83")]
const n=navigator.platform[a("0x1c7")]()
let i
if(i=e.indexOf(a("0x1d2"))>=0?"Windows Phone":e[a("0x1c")](a("0x1d3"))>=0?a("0x1d4"):e.indexOf(a("0x1d5"))>=0?"Android":e[a("0x1c")](a("0x1d6"))>=0||e[a("0x1c")](a("0x1d7"))>=0?a("0x1d8"):e[a("0x1c")](a("0x1d9"))>=0||e.indexOf(a("0x1da"))>=0?a("0x1db"):e.indexOf("mac")>=0?a("0x1dc"):"Other",(a("0x14b")in window||navigator[a("0x147")]>0||navigator[a("0x148")]>0)&&a("0x1dd")!==i&&a("0x1de")!==i&&a("0x1db")!==i&&"Other"!==i)return!0
if(void 0!==t){if(t=t[a("0x1c7")](),t[a("0x1c")]("win")>=0&&"Windows"!==i&&"Windows Phone"!==i)return!0
if(t[a("0x1c")](a("0x1d6"))>=0&&a("0x1d8")!==i&&"Android"!==i)return!0
if(t[a("0x1c")](a("0x1df"))>=0&&a("0x1dc")!==i&&a("0x1db")!==i)return!0
if((-1===t[a("0x1c")](a("0x1d3"))&&-1===t[a("0x1c")](a("0x1d6"))&&-1===t.indexOf(a("0x1df")))!=("Other"===i))return!0}return n[a("0x1c")]("win")>=0&&a("0x1d4")!==i&&a("0x1dd")!==i||(n[a("0x1c")](a("0x1d6"))>=0||n[a("0x1c")](a("0x1d5"))>=0||n[a("0x1c")]("pike")>=0)&&a("0x1d8")!==i&&a("0x1de")!==i||(n[a("0x1c")](a("0x1df"))>=0||n[a("0x1c")](a("0x1da"))>=0||n[a("0x1c")]("ipod")>=0||n[a("0x1c")](a("0x1d9"))>=0)&&a("0x1dc")!==i&&a("0x1db")!==i||(n.indexOf(a("0x1d3"))<0&&n[a("0x1c")](a("0x1d6"))<0&&n[a("0x1c")](a("0x1df"))<0&&n.indexOf(a("0x1d9"))<0&&n[a("0x1c")](a("0x1da"))<0)!=(a("0x1e0")===i)||void 0===navigator[a("0x11c")]&&a("0x1d4")!==i&&a("0x1dd")!==i}static[a("0x26")](){const e=navigator[a("0x41")].toLowerCase(),t=navigator[a("0x1e1")]
let n
if(n=e.indexOf(a("0x1e2"))>=0?"Firefox":e[a("0x1c")](a("0x1e3"))>=0||e.indexOf(a("0x1e4"))>=0?a("0xa9"):e[a("0x1c")]("chrome")>=0?"Chrome":e[a("0x1c")](a("0x1e5"))>=0?"Safari":e[a("0x1c")](a("0x1e6"))>=0?a("0x1e7"):"Other",(a("0x29")===n||a("0x98")===n||a("0xa9")===n)&&a("0x1e8")!==t)return!0
const i=eval[a("0xa")]()[a("0x7")]
if(37===i&&a("0x98")!==n&&"Firefox"!==n&&"Other"!==n)return!0
if(39===i&&a("0x1e7")!==n&&"Other"!==n)return!0
if(33===i&&a("0x29")!==n&&"Opera"!==n&&"Other"!==n)return!0
let r
try{throw"a"}catch(e){try{e[a("0x1e9")](),r=!0}catch(e){r=!1}}return r&&a("0x2b")!==n&&a("0x1e0")!==n}static[a("0x1ea")](){const e=document[a("0xf9")](a("0x14c"))
return!(!e.getContext||!e[a("0x14f")]("2d"))}static[a("0xad")](){if(!t.isCanvasSupported())return!1
const e=t[a("0x16e")]()
return!!window[a("0x1eb")]&&!!e}static isIE(){return a("0x1ec")===navigator.appName||!(a("0x1ed")!==navigator[a("0x85")]||!/Trident/[a("0x9c")](navigator[a("0x41")]))}static[a("0xb9")](){return void 0!==window[a("0x1ee")]}static[a("0xba")](){return window[a("0x1ee")][a("0x1ef")]("9.0.0")}static[a("0x1f0")](e){const t=document[a("0xf9")](a("0xfa"))
t[a("0x1f1")]("id",e[a("0xbb")][a("0x1f2")]),document[a("0x7d")].appendChild(t)}static[a("0xbc")](e,n){window[a("0x1f3")]=function(t){e(t)}
const i=n[a("0xbb")][a("0x1f2")]
t.addFlashDivNode()
const r={onReady:a("0x1f3")}
window.swfobject[a("0x1f4")](n[a("0xbb")].swfPath,i,"1","1",a("0x1f5"),!1,r,{allowScriptAccess:a("0x1f6"),menu:a("0x1f7")},{})}static[a("0x16e")](){const e=document[a("0xf9")]("canvas")
let t=null
try{t=e[a("0x14f")](a("0x187"))||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t}constructor(){this.components=[{key:a("0x1f8"),getData:t.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:a("0x38"),getData:t[a("0x35")],shouldEnforceDataLimit:!0,dataLimit:22e3},{key:a("0x85"),getData:t[a("0x84")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x1f9"),getData:t.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0xaa"),getData:t[a("0x86")],shouldEnforceDataLimit:!0,dataLimit:300},{key:a("0x88"),getData:t.appCodeNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x1fa"),getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:a("0x1fb"),getData:t.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:t.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x1fc"),getData:t[a("0x1fd")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x1e1"),getData:t[a("0x8c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x142"),getData:t.cpuClassKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x83"),getData:t[a("0x82")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x1fe"),getData:t[a("0x13e")],alias:a("0x1ff"),shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:t.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:t.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x90"),getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t[a("0x200")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x201"),getData:t[a("0x201")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x73"),getData:t[a("0x73")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x41"),getData:t[a("0x58")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:a("0x2a"),getData:t[a("0x2a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x145"),getData:t[a("0x91")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t[a("0x202")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x203"),getData:t.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x5f"),getData:t[a("0x5e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x204"),getData:t[a("0x60")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x205"),getData:t.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenOrientation",getData:t[a("0x63")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x206"),getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"sessionStorage",getData:t[a("0x78")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x9a"),getData:t[a("0x7a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"indexedDb",getData:t[a("0x207")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"addBehavior",getData:t[a("0x208")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:t[a("0x7e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x14c"),getData:t[a("0xab")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x187"),getData:t[a("0xac")],shouldEnforceDataLimit:!0,dataLimit:6e3},{key:a("0x209"),getData:t[a("0x20a")],shouldEnforceDataLimit:!0,dataLimit:150},{key:a("0x20b"),getData:t[a("0x20c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x20d"),getData:t[a("0x20e")],shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:t[a("0x134")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x40"),getData:t[a("0x3f")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"automation",getData:t[a("0x25")],shouldEnforceDataLimit:!0,dataLimit:100},{key:a("0x11c"),getData:t[a("0x11a")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:a("0x20f"),getData:t.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:t[a("0xbf")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:a("0x210"),getData:t[a("0x211")],shouldEnforceDataLimit:!0,dataLimit:100}]}[a("0x212")](e,t){if(a("0x213")!=typeof e)return
if(!t)return e({error:a("0x214")})
let n={data:{latency:{acq_time:{}},errors:{}}},i=Date[a("0x8a")](),r={},o=0,s=0
this[a("0x215")][a("0xe")]((function(c){if(t.excludes[c.key])return
let l=c[a("0x216")]
void 0!==c.alias&&null!==c.alias&&c[a("0x217")].length>0&&(l=c[a("0x217")]),o++
const u=()=>{r[l]=Date.now()
try{c[a("0x218")]((function(t){if(!1!==c.shouldEnforceDataLimit){let e=c[a("0xf")](a("0x219"))&&a("0x21a")==typeof c[a("0x219")]?c[a("0x219")]:1e3
const i=JSON[a("0x21b")](t).length
i>e&&(n[a("0x21c")].errors[l]=a("0x21d")+e+" Data length for:"+l+a("0x21e")+i,t={})}n[a("0x21c")][l]=t,n[a("0x21c")][a("0x21f")][a("0x220")][l]=Date[a("0x8a")]()-r[l],s++,s>=o&&(n[a("0x21c")][a("0x21f")][a("0x220")][a("0x221")]=Date[a("0x8a")]()-i,n[a("0x21c")].allFeaturesCollectionAt=Date[a("0x8a")](),e(n[a("0x21c")],!0))}),t)}catch(e){n[a("0x21c")][a("0x222")][l]=String(e)}}
a("0x213")==typeof window.requestIdleCallback&&!1!==t[a("0x223")]?window.requestIdleCallback(u):u()})),n[a("0x21c")][a("0x21f")].acq_time[a("0x221")]=Date.now()-i,e(n.data,!1)}}function n(e){let t=arguments[a("0x7")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2]
const i=n?n[a("0x224")]("#"+e):document[a("0x225")](e)
if(i){const n=i[a("0x226")][a("0x227")]
if(t&&i.parentNode[a("0x114")](i),n)try{return JSON[a("0x228")](n)}catch(e){return}}}function i(e){let t=document.getElementsByClassName(e)
return void 0!==t&&t[a("0x7")]>=1}class r{static[a("0x229")](e){const t=new ArrayBuffer(e.length),n=new Uint8Array(t)
for(let t=0,i=e[a("0x7")];t<i;t++)n[t]=e[a("0x8")](t)
return t}static encode(e){return window.btoa(String[a("0x22a")].apply(null,e))}static[a("0x22b")](e,t,n){const i=window[a("0x22c")](t),o=r[a("0x229")](i)
return window.crypto.subtle[a("0x22d")](e,o,{name:a("0x22e"),hash:"SHA-256"},!0,n)}static wrap(e,t){return r[a("0x22b")](a("0x22f"),t,[a("0x230")])[a("0x23")]((t=>window[a("0x231")][a("0x232")][a("0x230")](a("0x233"),e,t,{name:"RSA-OAEP"})))[a("0x23")]((e=>r[a("0x234")](new Uint8Array(e))))}static wrapErrorResult(e){const t={a:null,b:null,c:null}
return t[a("0x235")]=e,t}static[a("0x236")](e,t,n){const i={a:null,b:null,c:null}
try{let o=Date[a("0x8a")]()
if(a("0x237")!=typeof t||a("0x21a")!=typeof n)throw new Error(a("0x238"))
const s=window[a("0x231")][a("0x239")](new Uint8Array(16))
i.a=r[a("0x234")](s)
const c=(new TextEncoder).encode(e),l=a("0x23a")
return window.crypto[a("0x232")][a("0x23b")]({name:l,length:256},!0,[a("0x23c"),a("0x23d")]).then((e=>window[a("0x231")][a("0x232")][a("0x23c")]({name:l,iv:s},e,c).then((s=>r.wrap(e,t)[a("0x23")]((e=>(i.b=e,i.c=r[a("0x234")](new Uint8Array(s)),i.d=Date.now()-o,i.e=n,i)))))))[a("0x3e")]((e=>(i[a("0x235")]=String(e),i)))}catch(e){return i[a("0x235")]=String(e),Promise[a("0x23e")](i)}}static[a("0x23f")](e,t,i,o){if(a("0x237")!=typeof t||"string"!=typeof i)return Promise[a("0x23e")](r.wrapErrorResult(a("0x240")))
let s=n(t),c=parseInt(n(i))
return(""===s||a("0x237")!=typeof s||a("0x21a")!=typeof c||Number[a("0x241")](c))&&(s=a(o?"0x242":"0x243"),c=o?2:1),r[a("0x236")](e,s,c)}static encryptWithKeyFromDifferentSources(e,t,n,i,o){return null!=i&&a("0x237")==typeof i[a("0x244")]&&"number"==typeof i[a("0x245")]?r.encryptWithKey(e,i[a("0x244")],i[a("0x245")]):r[a("0x23f")](e,t,n,o)}static[a("0x246")](){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^window[a("0x231")][a("0x239")](new Uint8Array(1))[0]&15>>e/4)[a("0xa")](16)))}static generateSha256HashOrDefault(e){const t=(new TextEncoder).encode(e)
return crypto[a("0x232")][a("0x247")](a("0x248"),t)[a("0x23")]((e=>Array[a("0x249")](new Uint8Array(e)).map((e=>("00"+e[a("0xa")](16))[a("0xb")](-2)))[a("0xa6")]("")))[a("0x3e")]((()=>""))}}const o=a("0x24a"),s=a("0x24b"),c="DFP_WEB"
var l={getItem(e){const t=this[a("0x24c")]().match(this[a("0x24d")](e))
return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie(){try{let e=document.cookie[a("0x1a")](/\s*;\s*/)
for(let t=0;t<e[a("0x7")];t++){const n=e[t].split("=")
if(n[a("0x7")]>1&&a("0x24e")===n[0]){const e=n[n[a("0x7")]-1]
return e[a("0x24f")](2,e[a("0x7")]-1)}}}catch(e){return""}return""},setItem(e,t,n){let i=arguments[a("0x7")]>3&&void 0!==arguments[3]?arguments[3]:this[a("0x250")]()
if(n){let r=[e+"="+t+a("0x251")+(arguments[a("0x7")]>4&&void 0!==arguments[4]?arguments[4]:"/")+a("0x252")]
a("0x237")==typeof i&&i[a("0x7")]>0&&r[a("0x11")](a("0x253")+i),r[a("0x11")]("expires="+(n instanceof Date?n[a("0x254")]():n)),document.cookie=r[a("0xa6")]("; ")}},deleteItem(e){this[a("0x9b")](e,"",new Date(0))},_cookieRegEx:e=>new RegExp(e+"=([^;]*)"),getCookieString:()=>document[a("0x255")],getDomain:()=>window[a("0x1fa")]?window[a("0x1fa")][a("0xb2")]:""}
const u={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:a("0x256"),swfPath:a("0x257"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:a("0x258"),telemetryCollectPath:a("0x259"),extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:a("0x25a"),ERROR:"err",EXCLUDED:a("0x25b"),useRequestIdleCallBack:!0}
class d{constructor(e,t,n){if(void 0!==t&&void 0!==e&&a("0x25c")===e[a("0x25d")])a("0x20")===document[a("0x25e")]?this[a("0x25f")](t,n):window.addEventListener(a("0x260"),(()=>{this[a("0x25f")](t,n)}))
else if(void 0!==e){const t=JSON[a("0x228")](JSON.stringify(u))
i("settings-iframe")||i(a("0x261"))||(t[a("0x223")]=!1),this[a("0x262")](t,e)}else{const e=JSON[a("0x228")](JSON[a("0x21b")](u))
i(a("0x263"))||i(a("0x261"))||(e[a("0x223")]=!1),a("0x20")===document.readyState?this[a("0x262")](e):window[a("0x264")](a("0x260"),(()=>{this[a("0x262")](e)}))}}isDfCollectionRequired(e){return a("0x21a")!=typeof e[a("0x265")]||e[a("0x265")]<=0||""===l.getItem(a("0x266"))}[a("0x25f")](e,t){!0===t.enableOnDemandMode&&!0!==globalThis.pauseApfc?(globalThis[a("0x267")]=!0,setTimeout((function(){globalThis[a("0x267")]=!1}),3e4),this[a("0x268")](e,t),this[a("0x269")](e,t),l[a("0x26a")](a("0x26b"))):(this[a("0x26c")](t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this[a("0x269")](e,t),this[a("0x26d")](t)))}checkConfigAndInitializeGlobalIntegration(e,t){(!0===t[a("0x26e")]&&t[a("0x26f")].apfcTypes[a("0x270")](o)||!0===t[a("0x271")]&&!0!==globalThis[a("0x272")])&&this.intializeGlobalIntegration(u,e,t)}[a("0x269")](e,t){(!0===t[a("0x26e")]&&t[a("0x26f")][a("0x273")][a("0x270")](s)||!0===t[a("0x274")]&&!0!==globalThis[a("0x275")])&&this[a("0x276")](e,t),(!0===t[a("0x26e")]&&t[a("0x26f")].apfcTypes.includes(c)||!0===t[a("0x277")]&&!0!==globalThis.dfpIntegrationCompleted)&&this[a("0x278")](e,t)}[a("0x26c")](e){const t=a("0x21a")!=typeof e.samplingTimeWindowInMillis?0:e.samplingTimeWindowInMillis
""!==l[a("0x279")]("df_ts")&&Date[a("0x8a")]()-Number(l.getItem(a("0x266")))>t&&l[a("0x26a")]("df_ts")}[a("0x26d")](e){if(a("0x21a")==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){const t=Date[a("0x8a")](),n=new Date
n[a("0x27a")](t+e[a("0x265")]),l[a("0x9b")](a("0x266"),t,n)}}[a("0x262")](e,i){if(null!=i||null!=n(a("0x27b"))){this[a("0x27e")](e,i)
var o=this[a("0x27f")],s=this[a("0x280")],c=this[a("0x281")]()
return(new t)[a("0x212")]((function(t,n){t[a("0x27f")]=o,t[a("0x280")]=s,t[a("0x282")]=n,r.encryptWithKeyFromDifferentSources(JSON.stringify(t),a("0x27b"),a("0x283"),i,c)[a("0x23")]((t=>{globalThis[a("0x256")]=t,!0===n&&function(e,t,n){let i=new XMLHttpRequest,r=n?"https://www.linkedin.com":a("0x284")
r+=String(t),i.open(a("0x285"),r),i[a("0x286")](a("0x287"),"application/json"),i[a("0x288")](e)}(JSON[a("0x21b")](t),e[a("0x289")],c)}))}),e)}globalThis[a("0x27c")]=this[a("0x27d")]}[a("0x28a")](e,n,i){return(new t).getFeatures((function(e,t){!0===t&&(d.prototype[a("0x28b")](e,i),r.encryptWithKeyIds(JSON[a("0x21b")](e),a("0x27b"),"apfcDfPKV").then((e=>{n(o,JSON[a("0x21b")](e))})),globalThis[a("0x272")]=!0)}),e)}intializeDfpIntegration(e,t){let n=l[a("0x28c")](),i=this[a("0x281")]()?a("0x28d"):"ee078acd-0704-4344-9e5b-6b84b480c30a"
try{if(RegExp(a("0x28e"))[a("0x9c")](n)){const r="https://merchantpool1.linkedin.com/mdt.js?session_id="+n+a("0x28f")+i
let o=document[a("0xf9")](a("0x290"))
o[a("0x1f1")](a("0x291"),r),o[a("0x1f1")]("id","dfpIframeScript"),o[a("0x264")](a("0x260"),(()=>window[a("0x292")].doFpt(document))),document.getElementsByTagName(a("0x293"))[0][a("0x113")](o)
const s={sessionId:n,instanceId:i}
d[a("0xd")].populateFpDataCookie(s,t),e(c,JSON[a("0x21b")](s))}else{const t={error:"Invalid session_id: "+n}
e(c,JSON[a("0x21b")](t))}}catch(t){const n={error:t}
e(c,JSON.stringify(n))}globalThis.dfpIntegrationCompleted=!0}initializeHumanIntegration(e,t){let n=t.treeId,i=Date[a("0x8a")](),o=this[a("0x281")]()?a("0x294"):a("0x295"),c=l[a("0x28c")](),u="https://li.protechts.net/index.html?ts="+i+a("0x296")+encodeURIComponent(n)+"&app_id="+o+a("0x297")
r.generateSha256HashOrDefault(c)[a("0x23")]((r=>{c=r,""!==c&&(u+=a("0x298")+c)
try{let r=document.createElement("iframe")
r[a("0x1f1")]("id",a("0x299")),r[a("0x1f1")](a("0x291"),u),r[a("0x1f1")](a("0x29a"),a("0x29b")),r[a("0x1f1")](a("0x29c"),"true"),r[a("0xfc")][a("0x6d")]=a("0x29d"),r[a("0xfc")][a("0x6c")]="0px",r.style[a("0x29e")]=a("0x10a"),r[a("0xfc")][a("0xfd")]=a("0xfe"),r[a("0xfc")][a("0xff")]=a("0x29f"),document[a("0x7d")][a("0x113")](r)
const l={app_id:o,ts:i,d_id:c,r_id:n,uc:"scraping"}
d[a("0xd")][a("0x28b")](l,t),e(s,JSON[a("0x21b")](l))}catch(t){const n={error:t}
e(s,JSON.stringify(n))}})),globalThis[a("0x275")]=!0}}d.prototype.reentry=function(e){globalThis[a("0x27c")]=null,new d(e)},d[a("0xd")].reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new d({globalIntegration:a("0x25c")},e,t)},d[a("0xd")].reentryGlobalIntegrationOnDemand=function(e,t){if(void 0===t||void 0===e)return
let n=d[a("0xd")][a("0x2a0")]()
!0===t.onlyOnDemandFlow&&null===n||(t[a("0x26f")]=n,null!==n&&(t[a("0x26e")]=!0),d[a("0xd")].reentryGlobalIntegration(e,t))},d[a("0xd")][a("0x2a0")]=function(){let e=l.getItem(a("0x26b"))
if(!e||""===e)return null
e=atob(e)
let t=e[a("0x1a")](a("0x2a1"))
if(t.length<5)return null
const n={}
return n[a("0x2a2")]=t[0],n[a("0x2a3")]=t[1],n[a("0x2a4")]=t[2],n[a("0x2a5")]=t[3],n[a("0x273")]=t[4].split(","),n},d[a("0xd")][a("0x28b")]=function(e,t){a("0x2a6")==typeof e&&a("0x2a6")==typeof t&&(e[a("0x2a7")]=t[a("0x26f")])},d[a("0xd")][a("0x281")]=function(){const e=location&&location[a("0x2a8")]
return e&&e[a("0x1c")](a("0x2a9"))>-1&&!e[a("0x2aa")](a("0x2ab"))},d[a("0xd")][a("0x2ac")]=function(e){return e&&0===Object.keys(e)[a("0x7")]},d.prototype[a("0x2ad")]=function(){var e=[]
return[...document[a("0x1ce")](a("0x2ae"))][a("0xe")]((t=>{[...t.getElementsByTagName(a("0x2af"))][a("0xe")]((t=>{let n=t[a("0x1ca")]
if(n){var i=(new DOMParser)[a("0x2b0")](n,a("0x2b1"))
i&&[...i[a("0x1ce")]("bc")][a("0xe")]((t=>{e[a("0x11")]({src:t[a("0x2d")](a("0x291")),style:t[a("0x2d")]("style"),class:t[a("0x2d")](a("0x2b2")),width:t[a("0x2d")]("width"),height:t.getAttribute(a("0x6d"))})}))}}))})),0===e[a("0x7")]?null:e[0]},d[a("0xd")][a("0x27e")]=function(e,t){if(null==e)return
var n,i,o="bc",s=a("0x2b3"),c="1",l="1",u=e.ponfUrl
if(this[a("0x27f")]=null,this[a("0x280")]=null,null!==(n=this[a("0x2ad")]())){o=n.class,s=n.style,c=n.width,l=n[a("0x6d")]
let e=new URL(n[a("0x291")])
u=e.protocol+"//"+e[a("0x2a8")]+e.pathname,this[a("0x27f")]=e[a("0x2b4")][a("0x2b5")]("reqid"),this[a("0x280")]=e[a("0x2b4")][a("0x2b5")](a("0x280"))}else if(void 0!==(i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2]
const i=n?n[a("0x224")]("#"+e):document.getElementById(e)
if(i){const n=i[a("0x226")][a("0x227")]
if(t&&i[a("0x2b6")][a("0x114")](i),n)try{let e=n
return"'"!==e[a("0x2b7")](0)&&'"'!==e[a("0x2b7")](0)||(e=e.substring(1,e[a("0x7")]-1)),JSON.parse(e)}catch(e){return}}}(a("0x2b8"))))this.reqid=void 0===i[a("0x27f")]?null:i.reqid,this[a("0x280")]=i[a("0x280")]
else{if(void 0===t)return
this[a("0x280")]=t[a("0x280")]}this[a("0x281")]()||(u=u[a("0xa7")](/\.linkedin\.com/,a("0x2b9"))),null===this[a("0x27f")]&&(this[a("0x27f")]=r[a("0x246")]())
let d=u+"?"+new URLSearchParams({reqid:this.reqid,pageInstance:this.pageInstance,js:a("0x25c")})[a("0xa")](),f=document[a("0x1ce")]("div_bc")[0]
null==f&&(f=document.createElement(a("0xfa")),f[a("0x1f1")]("id",this.reqid),document[a("0x7d")][a("0x113")](f))
let p=document[a("0xf9")](a("0x2ba"))
p.src=d,p[a("0xfc")]=s,p.className=o,p.width=c,p[a("0x6d")]=l,f.appendChild(p)},a("0x2bb")!=typeof globalThis&&a("0x2bb")!=typeof document&&a("0x2bb")!=typeof window&&(globalThis[a("0x2bc")]=d[a("0xd")][a("0x2bd")],globalThis.triggerDnaApfcEventOnDemand=d[a("0xd")][a("0x2be")],new d)}()
class s{static isInitialized(){return Boolean("undefined"!=typeof globalThis&&void 0!==globalThis.triggerApfc&&null!==globalThis.triggerApfc)}static setDf(e){globalThis.triggerApfc(e)}}class c{static collectFeatures(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemand&&globalThis.triggerDnaApfcEventOnDemand(t,e)}catch(e){}}}function l(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e)
t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?l(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,r)}function f(e){return function(){var t=this,n=arguments
return new Promise((function(i,r){var o=e.apply(t,n)
function a(e){d(o,i,r,a,s,"next",e)}function s(e){d(o,i,r,a,s,"throw",e)}a(void 0)}))}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=[{id:"aaidboaeckiboobjhialkmehjganhbgk",file:"mmt-srcwl-dznlv-surdqixjeg/images/ios-arrow-down.svg"},{id:"aaiicdofoildjkenjdeoenfhdmajchlm",file:"css/popup.css"},{id:"aajeioaakaifilihejpjaohomikfinhj",file:"assets/icons/close.svg"},{id:"aaklholmlihjgaamiolhapadfdbbpoep",file:"assets/endpoints-648827be.js"},{id:"abdalefggkmddnicfhgngmdoggcbopai",file:"images/logo.png"},{id:"abekedpmkgndeflcidpkkddapnjnocjp",file:"logo.png"},{id:"abfehdblmlodmieppijjflnfbjhedcde",file:"static/twitter_lib.js"},{id:"ablfgphjibcgmjcflkflckpoeojilojg",file:"images/flowq-icon-white.png"},{id:"abmmhliaihcohbhbnonjdemkiinbplki",file:"icon64.plasmo.40ede470.png"},{id:"abnlpffeopccdjacjnjbpokhphbncfoo",file:"img/add_new_plus.svg"},{id:"acackkdpiddedeionboakefkpfflkcfc",file:"assets/bg-dots.svg"},{id:"acahdkapjdnbbljnfpgdmlgmlbihlffh",file:"css/main.css"},{id:"acajjofblcpdnfgofcmhgnpcbfhmfldc",file:"html/sandbox.html"},{id:"acgbggfkaphffpbcljiibhfipmmpboep",file:"icons/close_blue.png"},{id:"ackaoollelfpemlphemonchbdflegfan",file:"assets/logo-16.png"},{id:"aclgcfmciekojimhckimdcapkejceili",file:"index.html"},{id:"acmbfggokaabfndehodmoekhccfnphel",file:"dist/bundle-background.js"},{id:"acoghllfancelnlokfebfojbkoeblann",file:"options.html"},{id:"adgnjhngogijkkppficiiepmjebijinl",file:"page.js"},{id:"adkamkdaglbaejnfobbahegfiinjonme",file:"content-scripts/messageBox.html"},{id:"adknclagpadmdnjepbfddpplgmfginnb",file:"js/tinymce/models/dom/index.js"},{id:"adlljmlbangmeenndganepfkilcdihnm",file:"img/google_signin_disabled.png"},{id:"admhojmcphjknfpifjchkpbbhphnndgo",file:"green_circle_small.png"},{id:"aecjjmldidhgndpccgokjgbkmcipfdmj",file:"assets/inject.css"},{id:"aeeccphegbhmemmjncggcjlieanbkcmg",file:"sidebar.html"},{id:"aeidadjdhppdffggfgjpanbafaedankd",file:"inject.js"},{id:"afemibdfbljmhkcbdppaibiipnbkioom",file:"mmt-srcwl-yltllrrerbcpze-z/images/ios-arrow-down.svg"},{id:"afgjokfmplfblobgdmddbmoflaajljjf",file:"assets/png/logo.png"},{id:"afgkobjcdllpijcjchikjamjipbnjjgn",file:"contentStyle.css"},{id:"afiiebkndlkhnpbekkheibhfjfnbcnem",file:"content.css"},{id:"agbbbanmddhembghpamggfdjknafcbka",file:"popup.html"},{id:"agdddnmdjmljkjeglnidfpmpenbimmmn",file:"imgs/final.png"},{id:"agdiliklplmnemefmlglajpdaimembli",file:"src/popup.html"},{id:"agghbaheofcoecndkbflbnggdjcmiaml",file:"images/hide-button-icon.svg"},{id:"agiilkigodfhimkdcjgbjdlajpjdhaig",file:"assets/img/checked_2.png"},{id:"ahbaomfclkbgaadpmlcmlchhcgfibfld",file:"mmt-srcwl-convhk-x-ucwgi-s/images/ios-arrow-down.svg"},{id:"aheakoghjhpbianljiemepkpklndnogn",file:"white-bg.png"},{id:"ahfgeclknnjfgbefcblahelikidbgehh",file:"camera.min.css"},{id:"ahgjbbnglgnladgimapeecjmhlhmacgg",file:"pearmill.png"},{id:"ahkdkfejeplinhgmclegkhopdiiedeji",file:"icons/header-logo.png"},{id:"ahkmpgpdcneppdhhdgmmmcgicgfcfmka",file:"src/icons/arrow-down.svg"},{id:"ahlmkaafohhhbocahhjlcgofddbhcaef",file:"src/assets/icons/close.svg"},{id:"aicgfjkeikpppglfdhmdgncaiemeenon",file:"assets/button.png"},{id:"aicinfjgiebaoekhdgcgnjdkdhhmmkeb",file:"iconwhitelarge.png"},{id:"aielpkmgjjaddochapclgdhakecjloih",file:"assets/images/candidate-list/present_white.svg"},{id:"aihgkhchhecmambgbonicffgneidgclh",file:"icons/share.png"},{id:"aijkbfcgfacnbgaladlemlbonnddphdf",file:"utils/select-arrow.svg"},{id:"aijnakmdgcopgeldfcolbikeckpbhkcg",file:"icon16.plasmo.6c567d50.png"},{id:"ajceemkmbgjolpocnkfccjmplcbbppel",file:"index.html"},{id:"ajcfhmjfhpbeefcnfmbheidefdodhcfa",file:"img/caret-up.png"},{id:"ajddacgankfijplgnfdoknldbidfnaba",file:"icon.png"},{id:"ajmlcdlcagmkcfbomfchikkkkabomeda",file:"assets/inject"},{id:"ajoickdlofadbaooambnlnlbcpdnkkck",file:"assets/index-a7bce0dd.js"},{id:"akeepikolhaikilagiekmegfhefcbohd",file:"src/iframe.html"},{id:"akemecbhkcopeeicihindnjgfihkkgdi",file:"modules/webhook_response.json"},{id:"aklejaaicklpmejgidjjmjpecadhhojd",file:"app/immutable/chunks/misc-c76fc394.js"},{id:"alanhknkkgbmjcifaecnihemjmcofaid",file:"html/_modal.html"},{id:"albldfiohnhdonffjdbiohejiofaahpe",file:"frame.html"},{id:"aleoomdhnjddjlmfocibikjdpkdpadko",file:"content.styles.css"},{id:"alfpbpbopicnfllpimeniedbhdinhnla",file:"css/global.css"},{id:"algadbfmljcppohmcckpdemkjklapibd",file:"assets/tokenParser.js.2948d213.js"},{id:"alhgpfoeiimagjlnfekdhkjlkiomcapa",file:"loading.html"},{id:"alicgiickdepegihbonmofbeicfpleca",file:"3d1819e7-4594-4707-b887-7a184e4f4474.html"},{id:"amapllhcnbchdgmokdpepldjnahakkhp",file:"check.js"},{id:"amcdijdgmckgkkahhcobikllddfbfidi",file:"contentSrc/forLinkedin/XMLHttpWatcher.js"},{id:"amegdihgpgkempfnaijolncbklcabjno",file:"images/icon16.png"},{id:"amfgppaiaaledghabgegkikijjkckeea",file:"assets/toolbar.tsx-C7eF35Xm.js"},{id:"amfklcoihehamimgfemijdpmapoamlak",file:"fonts/GalanoGrotesqueMedium/GalanoGrotesque-Medium.woff2"},{id:"ancbpbjhhcnaaommbadhfnaplbokllnb",file:"popup.html"},{id:"anjlpdlcijnnddbiklpoadphfmckhhdf",file:"content.styles.css"},{id:"anmpfbhhckimckheaaahgholpjlopjbf",file:"app/index.html"},{id:"anpgmjakfkghpfejjkekfcjhbcganfkl",file:"doge.png"},{id:"aohjbibomoccognbgheakjcbabmiflfg",file:"assets/icon48.png"},{id:"aohkfefghmpadlbpodbhapfgcliiejch",file:"close.svg"},{id:"aoieokedbecedmpafmimaabhcpmefjdk",file:"js/content.js"},{id:"apamnnifigcfheiajekbkekajbchlbcc",file:"views/login.html"},{id:"apdlpieiebgmgkkhimlbkliccnkimgem",file:"images/elvatix-webapp-icon-256.png"},{id:"apmacgoajagifnflancoaenfcgmjnifc",file:"sentry.content.css"},{id:"apppjobnbahbomhgmcgolplkpigjlofl",file:"assets/button-logo.svg"},{id:"bacbphhfcjjgoeeabjnijgnmglooaigh",file:"content.js"},{id:"baecjmoceaobpnffgnlkloccenkoibbb",file:"logo.png"},{id:"baemjgbkbdldejgjceijnbkigkgkppoa",file:"assets/img/dropdown.svg"},{id:"bagapgnffhmfccajdbbjcgalkphdjccn",file:"images/pp_icon48.png"},{id:"bahdhdbpmfjgaibpbhecghjalioepncg",file:"assets/Images/plus.svg"},{id:"bahdmeamifckdmdpaclbpkijamkddnje",file:"src/assets/highlight.css"},{id:"bakndeimacanehmkddjhnjjmigngcjem",file:"images/dad.png"},{id:"bakpgcfeijiedgkdoppkjflmkhhipnec",file:"images/right-arrow.svg"},{id:"bakpglgljlidccopnnpcdnfbijaelbfc",file:"Image/arrowDown copy.svg"},{id:"bamhjalcljafbmifkcdjhlgellecndfb",file:"images/add.svg"},{id:"baocnjdknemddengejjojkbjdndlgdoj",file:"assets/javascript/main.js"},{id:"bapjpamdjkdcpklcaajfjeidcloikogc",file:"content.styles.css"},{id:"bbbooaofbdfeplnellpeddbodjfpajfn",file:"static/linkedin.js"},{id:"bbcflpielkpbkfnhadlgaanfkoakdeai",file:"popup.html"},{id:"bbgjmcbpenollnklpomhippmagincohb",file:"data/config.json"},{id:"bbioibipebcopenpbhfceogfjknmjbpl",file:"assets/images/icon-16x16.png"},{id:"bbjnendcjnnbojahdlnmombobcnfjmml",file:"images/6.jpg"},{id:"bbkgkhfmppahedmkbilnjkelfgbmhbjd",file:"index.html"},{id:"bbkonaekgbbmfkpemnecmnbkjlkmedpb",file:"images/arrow-back.svg"},{id:"bblennjdmmdfjdmpcbalaiabelnjfdfc",file:"assets/img/ghost_company.png"},{id:"bbmbepalejkomioianpcbgdppbmphjjc",file:"icons/16.png"},{id:"bboobhaeifmkebdnagpdjdhbdjacabag",file:"index.html"},{id:"bcaclmklbiocjohhooaaldkbelkaogod",file:"popup.js"},{id:"bcjfmlopjjfknkcdebfeacmfmpndjkad",file:"image/blank.png"},{id:"bdfgdkfdldpohakbalfbolkhacncaodn",file:"contentscript_style.css"},{id:"bdhnjcphicbeinfhflojlmichehflmhd",file:"src/css/connection.css"},{id:"bdiohckpogchppdldbckcdjlklanhkfc",file:"static/media/qr-code.181c8eeb065bb04f416d.png"},{id:"becfinhbfclcgokjlobojlnldbfillpf",file:"assets/images/arrow-forward.png"},{id:"beddhfglegaaiemmjbmhclhnbpoicicc",file:"contentScript.js"},{id:"beemdfkfplebccejjcmjfngjjnmhnkae",file:"scripts/style.css"},{id:"befngoippmpmobkkpkdoblkmofpjihnk",file:"prospector/images/prospector-widget-icon.svg"},{id:"beghjaadnlgdjblgimcnidhipangdlob",file:"requestPermissions.html"},{id:"begilfboibeiingmandhfeebipngobaa",file:"images/delfi-logo.png"},{id:"bekneflnoddpbfddnibalhcclcpeppim",file:"popup.html"},{id:"belhombhbdodpmoadjgljnndhhafbkkf",file:"assets/fontawesome/svgs/regular/face-grin-tongue-wink.svg"},{id:"bepabeobdmmefhhhkonppcppgodhjdno",file:"icon16.png"},{id:"bfanalaldfhlcadlkmjpbiaieophgpgn",file:"core/SideBar/SideBar.html"},{id:"bfflbfpjfhicaboicheecmgkjcgmngai",file:"dist/Snackbar.html"},{id:"bfgkgjjcgcfdjdcdcicnekhhldinkkhk",file:"dist/_locales/en/messages.json"},{id:"bfoibfacnnabealdgagkkmdbkinbjoem",file:"js/inject.js"},{id:"bgaiinkldeidiiphcbipeomcajmndomh",file:"nonews.html"},{id:"bgdjlbjaemhokfkkjiplclhjjbmlhlof",file:"dist/contentScripts/style.css"},{id:"bgkalnkemmojlglhakebbpjecigamgii",file:"images/logo.svg"},{id:"bgniimmgelhhbmnfoklafdfhdogadlhm",file:"gmailGlobals.js"},{id:"bgpdabnppijhmmgpnnooghpglmjkmnbl",file:"click.mp3"},{id:"bhbcbkonalnjkflmdkdodieehnmmeknp",file:"_locales/en/messages.json"},{id:"bheokphafjambacdhielfpiobmibjofi",file:"asset/lea.png"},{id:"bhhdblckjkgijhjajngmjdijpmhoeobp",file:"src/assets/bookmark.png"},{id:"bhnpbgfnodkiohanbolcdkibeibncobf",file:"styles.css"},{id:"biaoiacajmgmfnjdgpcclnebfbbfccll",file:"assets/icons/favicon-16.png"},{id:"bicnffockmobpljegbpbjllcdnlfeepn",file:"popup.html"},{id:"biejinfobcnfmjjgggmldodnbjppplod",file:"arrow-right.svg"},{id:"biicfpflnfpfdiahfekdanbgihkkibem",file:"images/logo.png"},{id:"biihmgacgicpcofihcijpffndeehmdga",file:"popup.html"},{id:"bijpaomiojnjdklgbomeoenfegpjljfk",file:"icon16.png"},{id:"bimgikcfhcjibdaaamjlogpndceajhii",file:"sidepanel.html"},{id:"bimmbgomanhpkfodmiomjgfakleojpia",file:"static/js/main.js"},{id:"binfkcmklghbjkbiaknecnheepdiagfl",file:"popup.html"},{id:"bjaegbkiponlhjibpdbjhdfjehijmdca",file:"static/css/main.e6c13ad2.css"},{id:"bjahjijchjnokbgbahdmfcjoblkicank",file:"content.js"},{id:"bjckcfdgnmppdohidoknphenoflgdapd",file:"favicon-16x16.png"},{id:"bjdlhnaghjcjihjiojhpnimlmfnehbga",file:"images/tag-remove-light.png"},{id:"bjflephcegdkcngbcakfgoeejcmkocep",file:"popup.html"},{id:"bjginahbhcpmjhjmfgebfpneegkdcobe",file:"injected.js"},{id:"bjibimlhliikdlklncdgkpdmgkpieplj",file:"static/media/divider.svg"},{id:"bkbipadjogdmmnajfplbllmglobaiapc",file:"fonts/GalanoGrotesqueMedium/GalanoGrotesque-Medium.woff2"},{id:"bkcibcjcbhgjoddeldfmgkbaipjkidpf",file:"assets/32x32.png"},{id:"bkkbcggnhapdmkeljlodobbkopceiche",file:"message.html"},{id:"bkljmpppcfepdfokbjlocdhipammabkm",file:"fonts/proxima-nova/proxima-nova.css"},{id:"bkomhhlgldmokcopilckjiggodoehkco",file:"prospect.png"},{id:"bkpkgidmenpdlkoklchjijhmkjfjpaae",file:"popup.js"},{id:"blbkhhmhnbnlmbnloahekpdngbondmog",file:"shortcuts.html"},{id:"blcckdeodojeihpjahngbabalhiiofjk",file:"images/icon-128.png"},{id:"blcddfbfkinmhmokhpjiiljjfafjpgom",file:"vendor/jquery/jquery-3.6.0.min.js.LICENSE.txt"},{id:"bleihlnmbokeimikncokphpgdobmkhfa",file:"img/warn.png"},{id:"blimjkpadkhcpmkeboeknjcmiaogbkph",file:"assets/icon-loader.svg"},{id:"bljigloeikaihodehchnpcnpgbhplcdp",file:"settings/js/foundation/foundation.js"},{id:"blndoopcfepmdfbbajpbldigolihligc",file:"cancel.html"},{id:"blngdibglkefnkigjmfhnfineimdhpdk",file:"assets/images/check_0.png"},{id:"bmaobmmbobbmddkdjilonehnhopdgbkj",file:"images/icon-16.png"},{id:"bmcooeoofkmnbmlbnkhlfiepoekipkcj",file:"content_scripts/inject_style.js"},{id:"bmdjphpepbkfmgaphblghfocmoiglagd",file:"images/icon-16.png"},{id:"bmfdbienklancpahjiadlnpnhedipnok",file:"assets/index.tsx-5OsqAtk0.js"},{id:"bmilkimafelnhekidknkamkhkbeciijg",file:"js/langs.json"},{id:"bmklepaoljnidmfnkomdfkmjoimcokbl",file:"index.html"},{id:"bmnfmbjhdcinpkebpajgenehkppfpgil",file:"bmnfmbjhdcinpkebpajgenehkppfpgil.crx"},{id:"bmogjfbodjidgljmfeoeiolcolagflfa",file:"assets/content_script.tsx-d0d91d06.js"},{id:"bmppbndbfpegajdcdngndbfpifpbeckd",file:"assets/img/minus-gray.svg"},{id:"bnaaeaknilbkdaaiagejncgoecddgcde",file:"options.js"},{id:"bneepngbmdnjodaceeffcodionfphgcb",file:"css/main.css"},{id:"bnlcobcpckcnloogpmkleoleffononil",file:"sweetalert2.css"},{id:"bnmojkbbkkonlmlfgejehefjldooiedp",file:"assets/img/svg-icons/display-settings-close.svg"},{id:"bnpppmcjamkdoideocdicgbjhdhcgcnk",file:"assets/css/Popup.chunk.css"},{id:"bodcackmmefldjpmeefapllhcpdlhfhp",file:"kanbox.css"},{id:"boknmfoahankiggkeobbdgjjcmgbflma",file:"src/js/pages/setup.js"},{id:"bomddfcanochfdhopndjibndlgpakdlg",file:"ext/index.html"},{id:"bpdglghjfejdbgpnimibgacmgadmdfoi",file:"icons/info.png"},{id:"bpepnldejpbbhooofgclkhghkgkjflpi",file:"shortcutView.html"},{id:"bplfjdcehflmipacbghiaknhadlnlpfj",file:"dist/contentScripts/style.css"},{id:"caadopicojbkljdpeafepckmnjikaolb",file:"images/button.png"},{id:"cabldpgmkejdhjbgmeooocablkljdbcg",file:"icon/16.png"},{id:"cabmegcjjbchdfajieeadighenaliocf",file:"fonts/Inter-Regular.ttf"},{id:"cadapjildilfaacohgaimaoibhhlognp",file:"index.html"},{id:"caiafpkbdcfbbdbmbhfkdhogmfjppfal",file:"m128.png"},{id:"cajimanapllloaihefjocmiadkpiongj",file:"assets/css/contentStyle1711016384296.chunk.css"},{id:"camppjleccjaphfdbohjdohecfnoikec",file:"assets/index-f2fde678.js"},{id:"canpneabbfipaelecfibpmmjbdkiaolf",file:"inject/js/location.js"},{id:"caoebkpcoieoneniagdligghacpekdgo",file:"icon-342.png"},{id:"cbabbnggammjejonbdjkckgejknmdhng",file:"content.styles.css"},{id:"cbeoaifhldmaldbakgpgbhdiekhjonfb",file:"src/embed/embed.html"},{id:"cbfchibhpgejkjjgbmibehnkimompmgc",file:"floater/images/1x1.png"},{id:"cbhilkcodigmigfbnphipnnmamjfkipp",file:"module_async_cleanup.js"},{id:"cbkmdhgnkppdjfklkekngofhedeollmh",file:"assets/logo.2cd9ed0d.svg"},{id:"cblepcoiecnbipofhldchjldhoipifja",file:"img/edit.svg"},{id:"cbphmmiacdapdjkdimoehkllfmgadgdj",file:"assets/css/contentStyle1725557821594.chunk.css"},{id:"ccabkgkocobdhpnlofbdonmdnpnnjaga",file:"myscript.js"},{id:"ccadakhkcohjjbnlicnknnhihifhcmoo",file:"assets/content-script.tsx-Uvhr6ByV.js"},{id:"ccdmhhbpdngohbollmgmplbbdjlphddb",file:"signup.html"},{id:"cckmicmjmlfdiomjjmalcejhnpcgojen",file:"static/css/content.css"},{id:"cclflaamhoakaigjmkdefabkcgjheogh",file:"img/icons/NewDesign/secondTab/line.svg"},{id:"ccpcojggodkhjbjahddhcaobkhlaaanl",file:"content-script.css"},{id:"cdbhbadfpeckodkjefohagjajdggmcpn",file:"dist/contentScripts/style.css"},{id:"cdfjbkbddpfnoplfhceolpopfoepleco",file:"icon_48.png"},{id:"cdjncbceanblcefebknhkmhgkhfoofmm",file:"icon.c766bb78.png"},{id:"cdlngbighhgakdhnikmfndhojnmcfebm",file:"content_scripts/shared.js"},{id:"cdmmpngppebpilcajoikplkjbelbimim",file:"javascripts/jquery-3.2.1.min.js.LICENSE.txt"},{id:"ceaieellonhoiaielfdbelnpblojpecd",file:"css/sidebar.css"},{id:"cebjkdeabhiafpmbhjlbnpkpclomjgko",file:"assets/icons/logout.svg"},{id:"cebmnlammjhancocbbnfcglifgdpfejc",file:"js/tbremap.js"},{id:"cedckdcmlfabmjkangihdbimghccobhp",file:"icons/button-icon.png"},{id:"ceflmhjepdngdfhboedephbaohnpglde",file:"ToggleBottomReachIQ.png"},{id:"ceflmpdagpfcipehlhmdeldlclnpakih",file:"dist/contentScripts/style.css"},{id:"cegiemofbmpkifgfoghelginojgldfce",file:"www/assets/LeadDialogPage.0248f1b3.css"},{id:"ceimaefhpalocpakiogbembdpjpdlabg",file:"images/icon-16.png"},{id:"cenlnghioejfjidkaigndnhaalfbofad",file:"assets/img/background.png"},{id:"ceplokfhfeekddamgoaojabdhkggafnk",file:"assets/bizbarframe.js"},{id:"cfeapkdondjeoahbecaapmbipkjagabj",file:"static/linkedin.js"},{id:"cfjdbjoghkckljhpmehahoingaokbdfk",file:"www/assets/MainLayout.b488c9a8.css"},{id:"cgficojlgbcfggfonjojmckiilgijeha",file:"assets/index.js.65857ac1.js"},{id:"cgfpdaekohadjagbpmolmjdbgdchodjd",file:"options.html"},{id:"cghdjcdmopohjlogglcbocjldjhjlddg",file:"assets/js/loadFonts.js"},{id:"cgikbmpjlipafepacaajlmgdjffgikig",file:"icon/icon.png"},{id:"cglplfcdmgmkfeolcpgondiihmhlfmpp",file:"assets/icons/Hintella-icon16.png"},{id:"cgmkehcjkfcnlkmaddhdkbmeepcjmigg",file:"img/ext-checker.gif"},{id:"chbphidecmndldfgbknkbkekbhojicem",file:"query-id.js"},{id:"chcaamkhmgmbmdkiddnchiolkfbonokf",file:"icons/24.png"},{id:"chhgomfjadniehakfodegblpbkfancgk",file:"dist/assets/32.png"},{id:"cidpfpmlbbgijnebifbmgangefjbhfed",file:"logos/128.svg"},{id:"ciiaaeopfhhhghglhdfbphciifbgcmeh",file:"css/village-paths.css"},{id:"cjafanjojiojlmedfjmdmkbgeekigmcc",file:"assets/img/link-bg.png"},{id:"cjhohccbpbkcealndpfanpclfgcekell",file:"fonts/SlatePro-MediumCondensed.woff2"},{id:"cjkcfphfjfplmlppnpdlcodnfikjldap",file:"js/ignore_jd_numbers.js"},{id:"ckdplebejgnoiilfmabhpjlhmhgmhgdg",file:"images/icon16.png"},{id:"ckgfapcnbapncgdjbhneanpbjcegigin",file:"settings.json"},{id:"ckgpicdidnjcheaacnadgefpbgmclgll",file:"popup/index.html"},{id:"ckheedjclgkpfccemlljhcepjjflfbfd",file:"countdown.html"},{id:"ckkfaobbhgehdldcbdnnidninlcelajf",file:"images/icon-16.png"},{id:"ckpjfjiebhabcggefamfdpiooknocdac",file:"static/js/main.js"},{id:"clbgjbelhimbljjcmndgbjbngbgclboa",file:"assets/browser-polyfill-f41d11e7.js"},{id:"clfeejjmcegnmnhoaaffboddkajhenep",file:"utils/annotated-canvas.js"},{id:"clgapelegemnbpnaomnfoniccfdnofgm",file:"app.html"},{id:"clgficggccelgifppbcaepjdkklfcefd",file:"assets/icons/icon16.png"},{id:"clhjalfedcigiomjfmmjhgadnlmegobb",file:"pages/help.html"},{id:"clhmnbpdboilpogpmojknkopklkfggpa",file:"components/modal.html"},{id:"cmapiaejeihjngekanombmnhbfggdali",file:"popup.html"},{id:"cmdcmljghmolhiphapkhgodlgebfgefb",file:"images/icon.png"},{id:"cmdlhjmdbnkfjepmmmcbapmgmpckdnkm",file:"images/icon-128.png"},{id:"cmlngncglcblbobiehdpjcgbpoemidho",file:"cmlngncglcblbobiehdpjcgbpoemidho.crx"},{id:"cmmmhbianacbeffhdimooggkpjkbfjoh",file:"icon.png"},{id:"cmmobbgebjbhjieiflhlcgfpibdfkgjn",file:"icons/share.png"},{id:"cnafldpjebmpkibjdogkhifhnljdifae",file:"content/inject.html"},{id:"cnjgocodmpidbhdgihjnfgbcbeikkkcn",file:"img/input_empty_icon.svg"},{id:"cnkodomhnmnbmiehakpmaabjjbjifhel",file:"script.js"},{id:"cnmmnokeenlffmhalcgpmoiagfjnohfa",file:"assets/coffeeIcon.svg"},{id:"cnnffgdlkepdhppahlfeojbpjlbbpgep",file:"style.css"},{id:"cnnnkpnblilikdolagdchcjjnkcijned",file:"css/reward-guard-overlay.css"},{id:"cnoopnlkkfpifcpakdifmpknciegdijj",file:"assets/images/menu.png"},{id:"cnpjdmbmbkhkmaclapgjckcoopoeeihb",file:"img/LinkedIn_icon.svg"},{id:"cofdbpoegempjloogbagkncekinflcnj",file:"images/arrow-down-black.svg"},{id:"cogiehadooncngdmjlceikcgfamojicd",file:"index.html"},{id:"cohagamiiclecdeenhdgiboilolflgln",file:"assets/bookmark.png"},{id:"cohfgmlnacehhpgjbcinepknihlenjbb",file:"fonts/glyphicons-halflings-regular.woff"},{id:"cokmophcenlaoacgnanhfjoihjcpkibm",file:"manifest.json"},{id:"colilcdakldcalhbfokfkimagmkfmpdb",file:"images/cc_logo_clearbg_16.png"},{id:"comhknhgkhbecfolehchaemllofaeppb",file:"dist/assets/webcam-B5FfdVe6.css"},{id:"comlhlhadkibegigjnfebklaalpbphni",file:"noBS.png"},{id:"coojeglmpbefodeopdopljhghbbjlbge",file:"refresh.png"},{id:"cpcjjojbnmjaioodineaagmbhabhcmfe",file:"img/close.png"},{id:"dacecibbecnjflfnpllalccamjojpbem",file:"popup/popup.html"},{id:"dadmbjbmlpngbppckmnjilkjnambjdpm",file:"embedded.html"},{id:"dafblbbedmdhonaikmhgilaadhcbhcdl",file:"contentStyle.css"},{id:"dalodhpgfikbnjnjngcmpnadommepfja",file:"popup.js"},{id:"dankmejnhbejpoogggdomhapckhpdjml",file:"popup.html"},{id:"dbbnklfnnlgpdepiepmbddippahnlofo",file:"html/audio/audio.css"},{id:"dbcllnegglfpapjcfhfndakmajhhbdfd",file:"icons/icon128.png"},{id:"dbepenphjfofmnjmlacfcdehikakmaap",file:"flyout.html"},{id:"dbhldcdbjidmagngffpohjobclekgjng",file:"assets/inject.css"},{id:"dbidcampmdmehcelnafncjnbcpobdajl",file:"assets/content.tsx.191558af.js"},{id:"dcdpkefhmpgpnogeddkpjjmioaeopche",file:"frame/frame.html"},{id:"dclggbdhjehnnlkpdnaoldlhpehpgjlc",file:"assets/contentdrips-logo-48.png"},{id:"dddpkdpmdfdphmjnbpmnjaajedhjddpf",file:"images/images/logo_32x32.png"},{id:"ddgjkhpdbpeiifciiijfbcfcodmiicfi",file:"pages/markup.html"},{id:"ddiljkpieefnblkkkehigdfjhjgbfnbf",file:"src/resources/popup_iframe_html.html"},{id:"ddndchbffgdgedjaehmipolebhoaacmk",file:"content-script.js"},{id:"decehdgnikepnangkendclmiomkcnpjh",file:"icon-logo-handle.svg"},{id:"dejnnmbpnbcblfhkomdkmldiajpfhngl",file:"js/jquery/jquery.min.js"},{id:"delakdmnpanaclafnplfomddhlhlcloe",file:"img/bg-home.svg"},{id:"denfchfjdgfekgapbjmpmkgaiapfjbep",file:"css/main.css"},{id:"deofojifdhnbpkhfpjpnjdplfallmnbf",file:"logo-progress-xs.png"},{id:"deoolbnamlbffcceodhghnljbncffpio",file:"public/grabber/grab_likes_count.js"},{id:"dfcfifdniniafdhnblehebkcnkoncdpj",file:"injected/define/define.css"},{id:"dfghcacipmajmklekdkbiihllpfdjnpl",file:"html/login.html"},{id:"dfkifgphcnihlpdndohichmfjpobmked",file:"img/ds-send.svg"},{id:"dflaihboigogikfpkgkoniicfoojcfbc",file:"client/build/index.html"},{id:"dflcdbibjghipieemcligeelbmackgco",file:"assets/client-109e060b.js"},{id:"dfokiabcgalihnedbbjbkdfhjeokdpne",file:"content.css"},{id:"dfpbcakpogbfaohnnjlgghdjkgaoiaik",file:"logo_taplio_500.png"},{id:"dgafcidlgmbcehokgdeghmfnbpbfhihh",file:"styles/styles.css"},{id:"dggmapjanngfjjakfgeoegfmgpmcamfh",file:"index.html"},{id:"dgjmddhfbnpglcapblagdlgnehjnmlpn",file:"assets/main.ts-DQ-BUf9Y.js"},{id:"dgllhmcgnfaiemgnjmbdgfeapohjnkop",file:"assets/opener-b78ae03f.svg"},{id:"dhdkiojkefbmghfckhklfnlajbmadkbh",file:"index.html"},{id:"dhhfgcgahkeogalndpamojpnelapegom",file:"assets/vendor/bootstrap/scss/utilities/_clearfix.scss"},{id:"dhhpghgfencmfkcmdjjjdinbaiapabbd",file:"assets/logos/next.png"},{id:"dhikhoidbejcgjohpbicofehjfkbhpan",file:"Zaplead-Logo.1c0ecd7b.png"},{id:"dhjljpenmfiobmpgihfdjgngigegggkf",file:"popup.html"},{id:"dhjmppadianhldlphobplaonacldgakp",file:"genius-ai-logo.png"},{id:"dhmeacbamnkenejkmdneghjndaihdhdc",file:"comment_button.svg"},{id:"dibfbemhegmnkjbpgdemgobiknmdhhpj",file:"css/search/content/bottom-block/bottom-block.scss"},{id:"difoiogjjojoaoomphldepapgpbgkhkb",file:"assets/dots-KMKI4LTE.png"},{id:"dijdeadaecngogndknpilicgekanioho",file:"env.json"},{id:"dijhcpbkalfgkcebgoncjmfpbamihgaf",file:"mixpanel.min.js"},{id:"dilehbkmjigbpdjlpaglemebmheoilnm",file:"popup.html"},{id:"dilncohfamcdmpindiekhibhdilfjnnb",file:"index.html"},{id:"dimfhhnadapnnbcgkdmbcdafndjblcfa",file:"scripts/credentials.js"},{id:"djpeecijcbigpoijldkimmkilekocdao",file:"js/word365PrintView.js"},{id:"dkfgebgfmdiljakjlliddfpoiaehceah",file:"dist/contentScripts/style.css"},{id:"dkfmadebibibgfogainfmieipbgffomp",file:"icons/stop.svg"},{id:"dkkmpkpjimkollpfgbbglcikcmgmdlhn",file:"js/guest_script.js"},{id:"dlcnbdemimiedcapkncdfmmnidobcpmi",file:"logo.png"},{id:"dldadkjlkldanpbaicclkikgkgpgpflj",file:"lib/trigger.js"},{id:"dliepjhilkeflchmcmkkjkcnjfedfjfe",file:"assets/js/loader.js"},{id:"dlimgbmckofibmpkodcebmojebgbmbkm",file:"content.styles.css"},{id:"dlpjlpfllppnmogmpfmhlekaoaipdoia",file:"background.js"},{id:"dmbccjgljjkfhmdcahcbgmkebhdbifjg",file:"src/content/sidebar.html"},{id:"dmclljmblkjlecmllmebaoidbkdnejbn",file:"options.html"},{id:"dmfjonjeonmaoehpjaonkjgfdjanapbe",file:"js/iframe/iframe.html"},{id:"dmgkiikdlhmpikkhpiplldicbnicmboc",file:"js/word365PrintView.js"},{id:"dmibboeahipddbmdipdhfegijemhbmek",file:"icons/light/icon32.png"},{id:"dmkcllnjhiiaoiemkmnipapekhlooghb",file:"js/someWindow.js"},{id:"dmnafimdebajmablkioikddakjpldfae",file:"assets-ui/media/javascript,__webpack_public_path__ = __webpack_base_uri__ = htmlWebpackPluginPublicPath;.1feff74f.bin"},{id:"dmonpchcmpmiehffgbkoimkmlfomgmbc",file:"libs/analytics.js"},{id:"dnaodjplhbebpfjdkbieelgfgpdcbcph",file:"content.styles.css"},{id:"dnaoffkkppkkjjfampbnnkhibjineenj",file:"comment.html"},{id:"dnfhnfpngcdclcofckaailggoaomcecl",file:"content.styles.css"},{id:"dngeeinjngdpdpbglhnpaiegnedijmda",file:"libs/load-typekit.js"},{id:"dngochbmnapgigpkokeeilhbigmghcgi",file:"images/logo.png"},{id:"dnlkpnnglcjooohhgpjhmbcfgahcjbap",file:"showpadJS.js"},{id:"dobielmofoebpnaijanlimppdhjbfpcp",file:"16x16.png"},{id:"dodghoacmcolcigjioiapehcmpdadgmi",file:"manifest.json"},{id:"domfkeoiogehhokjcniohjnegjonabcl",file:"assets/css/panel.chunk.css"},{id:"donepnmknbdokidbmjmigbjeoefnfjol",file:"giaothy.html"},{id:"donhgkmejidpmaaaegcncggmplnpfcob",file:"stats.png"},{id:"dpbbbjcogocehfjmeggcfncdmijbaimg",file:"icons/loading.gif"},{id:"dpbhcmkmgkcnifdjempfpbbjfiomifch",file:"linkedin-content.min.js"},{id:"dpoidadgglgelbbfhnpecpldbodmidpc",file:"projects.html"},{id:"eaancnanphggbfliooildilcnjocggjm",file:"src/assets/index.css"},{id:"eafadncoenbcmghdgbooflkolmoaejed",file:"image/blank.png"},{id:"eafohddoagcglckeddlgldchfmjlldkj",file:"static/css/main.2e267c87.css"},{id:"eahibbaaiofgelaphhnhhbcodmoffabb",file:"dist/contentScripts/style.css"},{id:"eaiaifikpnmoafjlljhgakelanadngnk",file:"public/images/shoden-export.svg"},{id:"eanggfilgoajaocelnaflolkadkeghjp",file:"img/commands/rate-f.svg"},{id:"eapcedpgnlmgkigiieacngkpdjikfgci",file:"src/css/inDoors-tippy.css"},{id:"ebaikcmadbhckgkehkfnpbagpfjnidml",file:"extension/images/icon16.png"},{id:"ebbmfdpjhighfdljkakcpbjpcekmfpeg",file:"index.html"},{id:"ebkhdmdkadbjecipaoocokoboianbpom",file:"icons/linkedin.png"},{id:"eccmikiogpenfpichmihomhjjgdfcank",file:"background.bundle.js"},{id:"ecdjnnnodhapkhgginpicggbmhmkjjbc",file:"popup.html"},{id:"ecjimoljgoibcphjbfheghdinifipbdh",file:"manifest.json"},{id:"eckgincbbakehpolnndoighkiaofjolp",file:"src/images/icon128.png"},{id:"eclnikmacpcandpbfjkjgnoicmlpkkdj",file:"images/quix-minus-icon.png"},{id:"ecnepininffodhhimnlocaehgpmcnnlk",file:"popup.js"},{id:"edfgdiieipdlhkmmanhakhibhomfdjip",file:"index.html"},{id:"edgmppgmaklmaggkamddmgpphellcmhf",file:"bg.png"},{id:"edkibgpollgbhnjalcdlpmbjmdgohjko",file:"css/content-injected.css"},{id:"edkjiliccpdememipbkcngdajfpcimij",file:"popup.html"},{id:"eeamleimapjehkomedbhminckkldpkke",file:"options/js/initInAppPayment.js"},{id:"eeaoemhlndempejchkcdapgdhfledkcn",file:"css/popup-post-preview.css"},{id:"eecahjoflaihdfdncmhelcapeelidecn",file:"csLauncher.html"},{id:"eedcaocobpadfgojoidhhnbaapljmpfm",file:"dist/contentScripts/style.css"},{id:"eeedhncneejmgokflckdfjagaidichbb",file:"assets/bookmark.png"},{id:"eeibpfgnekehoogipmbkaaibcobhdmkc",file:"tabs/oauth.html"},{id:"eekjlaadjflehfpomihbkhldphpnkbag",file:"index.html"},{id:"eelojdbiagbabehiijgghfmdgnggdfna",file:"contentScriptContainer.html"},{id:"efajnkcfjjkcodbhkhaigkffdleomnag",file:"addsiteframe.html"},{id:"efddnnnikgkbfilkoldcbgpaiknfbgol",file:"images/superagi_no_bg.png"},{id:"efinedpmbfjpmdkjnghhakkhhdipdbig",file:"popup.html"},{id:"efjkgaiaeenkkjpionegdpmieacopilg",file:"dist/contentScripts/style.css"},{id:"eflhgammlcofelhagioegonghdmhabmk",file:"assets/css/style.css"},{id:"efmnkiklpnaekhleodlncoembopfmjca",file:"content.css"},{id:"efppejgeolihmhmmjdiabeanjcpmocfc",file:"static/linkedin.js"},{id:"eghahgiddjgocmehngcmdghojooiaakl",file:"views/inject.html"},{id:"eghccglgncfngboeiieppackdmdllijj",file:"style.17960098.css"},{id:"ehalejlfkpgndmgibdmnclnleaeaiilf",file:"content.styles.css"},{id:"ehbpdfgafjfbfmgcienlepnaglkjngnc",file:"index.html"},{id:"ehcjpaappffeggdljdcbechgiaopiomh",file:"static/media/arrow_left_gray.7a4154b3.svg"},{id:"ehghldfhokocddhldnionfhmegfljlcm",file:"scripts/login-popup.js"},{id:"ehinojkdamkjmikpooempeibejdgalnk",file:"assets/icons/icon-16.png"},{id:"ehmpdpklpeligejpdglnhkceeccfhdkd",file:"sidebar.css"},{id:"ehonbahmapggcdiedkpkbmcaadlfgjpg",file:"assets/index.ts-0cc91e93.js"},{id:"eikefihipcgbhjbgmiinlipolgoehfci",file:"img/icon16.png"},{id:"einfacogeelpbhdlmiglhpbkicknhpla",file:"popup.html"},{id:"ejcibmoopiblhpjkjfpdopfdnlaoolfc",file:"icons/favicon_128.png"},{id:"ejdadbpkolbdgjifejidccmoaonegnlm",file:"src/common/fonts/icons.woff"},{id:"ejdjlomiegempegfmaliginicgaanabm",file:"frame.html"},{id:"ejleagldfkfleoeodaccdoglnhollcde",file:"assets/index.ts-Nkp5s7sy.js"},{id:"ekbmkecmfjahfomoafomalldaihhfjnh",file:"css/content.css"},{id:"ekcemckibekkdkdffjkhpdgkgjkbcfdf",file:"index.css"},{id:"ekhengbpbnchfnbollklngfhcjlhhcop",file:"assets/play.png"},{id:"ekolibgoaoffbjaggmgfkmbopmlmkfcp",file:"xhr.js"},{id:"elaobedgdmbhchnbjcfpkcgdjhfnemdk",file:"css/news.css"},{id:"elfpefdipgelefmoagdhgjcdfhfkljpb",file:"logo16.png"},{id:"elgfcjbemdchphggeegglnmjoagoeial",file:"content.js"},{id:"elhkfmcodhgaoodhemkeempcihlcbpia",file:"files/sidebar.html"},{id:"eljnihppgmkopnpbbcnbobbkjoomdaje",file:"icons/rplyailogo_purple.png"},{id:"emdgdppbafhfembkbpokbbedmjpcbime",file:"css/contentScript.css"},{id:"emjmhnkkiinkeccaefoalpakghddjncg",file:"index.html"},{id:"emjoanbpnfpodmcmjlchkogclpkkhodb",file:"contentStyle.css"},{id:"encdnggcljehecoihhkmcpogdhhllkjg",file:"scripts/leonarContentScript.js"},{id:"enliacdgianieomegijopbecafnapnha",file:"options.html"},{id:"enmddkghflcnpedhjjpfmidmdhlglncj",file:"braggingElement.html"},{id:"ennpkannelepddoomheofppcbnnlnoop",file:"img/up-arrow.png"},{id:"eoeepkbhiholnepbhbedcpacginafkec",file:"128.png"},{id:"eofhionhfmjbhjjhobdhaiimjedliggg",file:"inject.html"},{id:"eofoblinhpjfhkjlfckmeidagfogclib",file:"images/tick_one_seen_g.svg"},{id:"eomkpialejeibiedopjileijpaemembn",file:"assets/background-QwCPc6Ju.js"},{id:"eooepmafledkhdclppdiblbaldeakiii",file:"i/logo.png"},{id:"epjadbhicnoefbjaahkmeaookakkpgnh",file:"html/toast.html"},{id:"epoocblhpbnjpbdadcgcfbhbllepflnk",file:"contentStyle.css"},{id:"faaelikmijabbjanbeijlpflgadepdoa",file:"css/help.css"},{id:"fagakfichgmibajmbgbpgakliemjhljh",file:"img/icon_32.png"},{id:"faijbkbhlnconmeidaljhlmobmdgnfih",file:"public/icon128.png"},{id:"faikakhgnonckfnghfjhhcaamndofpao",file:"styles.css"},{id:"fbbjijdngocdplimineplmdllhjkaece",file:"_locales/he/messages.json"},{id:"fbccnclbchlcnpdlhdjfhbhdehoaafeg",file:"logo.png"},{id:"fbholmgghhfhbbigpcolkfmegpojfpei",file:"assets/icon16.png"},{id:"fbkoclehfhcogknaocejgijdhfidgklm",file:"assets/all.png"},{id:"fbnpmcpajifmidcabmlpimbkadodjeao",file:"assets/icons/favicon-16.png"},{id:"fbpkffmhbppefhogokhaglmkalfcmaai",file:"assets/_commonjsHelpers-725317a4.js"},{id:"fcbcmoamiepjicllddbajeadkidecbki",file:"images/scrape_logo.png"},{id:"fcbngbmghedmacgbbkjpkoedcneboofc",file:"src/extension/popup/index.tsx"},{id:"fceibemhbfdalddpenabjkcfdgheeaij",file:"images/iClickats.gif"},{id:"fcejegonkndhkfeblcbopohbpfhejikd",file:"images/icon.svg"},{id:"fcejihdhcioldopgcnbhjbmpmaigdpep",file:"contentStyle.css"},{id:"fcfbdnejkoelajenklbcndfokempkclk",file:"icons/16.png"},{id:"fcffekbnfcfdemeekijbbmgmkognnmkd",file:"content-scripts/reply.css"},{id:"fckcmalnpnopeccbdcmdnejdlfigamai",file:"icon-32.png"},{id:"fdjminldlpednddoeokglgpjiibncfpe",file:"images/icons/no_info_found.svg"},{id:"fdkhjbgdknepkmlpodfkalikgljnikkj",file:"assets/icons/icon48.png"},{id:"fdknpmcnhpadngcijjmcmlocagggkfia",file:"images/icon-staging-16.png"},{id:"fdnbifmpaokgocokppikcooakclbnchg",file:"icons/wizardBlack.svg"},{id:"fecgbkpogfcghjebjhpggnkmchofiolh",file:"settings.html"},{id:"fegckeofibpfccjdkolbondoogbdnici",file:"assets/content.jsx-8be313f5.js"},{id:"fehmkpmmadibhpdjhnhocpckcboanegd",file:"content/basket-shopping.svg"},{id:"femoeghdmbbiempmambjbfjaenaanklg",file:"index.html"},{id:"fenjfkfmoocofnlehendoahbndmdapkf",file:"popup.js"},{id:"ffaknejkadiiiaclocgfingceidgcbdh",file:"dist/contentScripts/style.css"},{id:"ffebfjkgjgbpmnoogjjdgfkmiobngdnf",file:"comment.html"},{id:"fffkjdapcgkdhlhbdbkgpcjbnhkmhmlf",file:"popup.html"},{id:"ffhabdnecmdlehnpnkdgcjkgohlhakjb",file:"assets/content.ts.cf01049f.js"},{id:"ffhobflhofhjlanffhndbgfjjhgnhhgp",file:"assets/reload-icon.png"},{id:"fflipfoephmnhbdoofakcpllommpijdn",file:"background.js"},{id:"ffmallpmnjkabhcdiphboclnmipgeemh",file:"assets/img/icon.png_Zone.Identifier"},{id:"fgeaeaohhhilmhmnnhiakoejocajcnnf",file:"images/logox16.png"},{id:"fgebgilnpibjfmjnfjfgcjoomdkecgob",file:"content/browserextension.config.json"},{id:"fghbfikeodjkbajmokiekipabfckcpgc",file:"popup.html"},{id:"fghidpcdlpnibijgebhbeconeclinjih",file:"content.styles.css"},{id:"fgkgomjogidilmegoonklmdkdehhjgjj",file:"img/nc_logo_talentswiper.png"},{id:"fgknakhoebmapgknmhmgnkfjckbdkcnm",file:"assets/icn-menu.png"},{id:"fglfichcambfnfmcjmppcnojneccedne",file:"assets/constants-5276826f.js"},{id:"fgmphmbpgdneljdhnojmohehhpeeghaj",file:"assets/icons/role.svg"},{id:"fgoeeopmikkmigjmiocgpjgihpfhbick",file:"images/logo.png"},{id:"fgphdfpojaigmmgmbomnnfbdlfogjjnd",file:"assets/background-QwCPc6Ju.js"},{id:"fhkgmddbaoefbcacbgmdcbfboefpbbdn",file:"icon128.png"},{id:"fhofneeegphbcpfdepceejjekejkhlki",file:"assets/state.dc686e6c.js"},{id:"fidkljmlkienooganebclbiaoghopdaj",file:"assets/content.js-943afc87.js"},{id:"fihfngnmmibcagplglhnfjioelcmheeh",file:"src/scripts/constants.js"},{id:"fijekigbmminoddgfpakkphelmnabdpa",file:"resources/favicon.png"},{id:"fikcpjkdkmmbmpahfkiodjnhnngfkghf",file:"potionDevicePermissionIframe.html"},{id:"finkajjgokfefcnpbpimedfidoopbdil",file:"sidePanel.html"},{id:"fjhkaepnddjhebachlonooioaiomfdel",file:"images/edit.png"},{id:"fjhnpnojmkagocpmdpjpdjfipfcljfib",file:"inline2.ee717fd5.css"},{id:"fkajbcdnmbhlgdgbhcbppkipbgepopcj",file:"image/blank.png"},{id:"fkdncooeaoioahpjinnoackjafhajpgf",file:"mmt-srcwl-sdglavgntstctuuc/images/ios-arrow-down.svg"},{id:"fkhmoaolabaoddphndcpnkcemgaeoldb",file:"assets/chunk-4117adb8.js"},{id:"fkkpeaipjpjcokkoencfnkkflemodgpl",file:"assets/stynch.png"},{id:"fklcomfaadeokmjojeoaejbhkgigklhg",file:"assets/globe.svg"},{id:"fklpnmgmbmbbclnkhamepifgoejghfhf",file:"icons/icon16.png"},{id:"fkmbgbgddogjgljfpiahdmhnchghlhhf",file:"content/browserextension.config.json"},{id:"fkpjpnkmnfiijljlfnokdcplllngoici",file:"assets/js/storeRefreshToken.65c1dc6d.js"},{id:"fldfmjmhihoapjoomlbgfpjbkhfipnhg",file:"background.js"},{id:"fleloaemgeopkjancpbiiflagoiihaak",file:"assets/favicon.png"},{id:"flhabflppadhfbfhhdldooihfkbkaaci",file:"background.js.LICENSE.txt"},{id:"fljeaddfbchajbkjcjfflngmdfhpedae",file:"index.html"},{id:"fljmbeoepcgelhoofclbcapdehejknik",file:"js/button.js"},{id:"floofkpjijhgipeklkmpocopjjimfebm",file:"css/common.css"},{id:"fmadgcnjmfffcfihalbnfjdokbepipen",file:"icon16.png"},{id:"fmanjoeogdemcgapfmadpgcmigkefkkc",file:"templates/int_addcontactModal.html"},{id:"fmcaajfefcndfcnlbecaiapijbjpjfge",file:"mistral.webp"},{id:"fmklchbkglfcamflgdhlclalanjkhpai",file:"css/textures/leather2.png"},{id:"fmmphlnbknhmphaghoajnoebhedaffec",file:"datenly_white.png"},{id:"fnbobniaggkdclhfekhoajnpnbdaldbf",file:"emailButton.js"},{id:"fndgllkjbjkfnkjfcpnajbmgaedokmdo",file:"action.html"},{id:"fndnhbhipldpbhpnjmnadkeengnckdik",file:"icons/512.png"},{id:"fnhpgocfaajkkmhpmkklgddldacjeklm",file:"index.html"},{id:"fniibmiigfdndeahlcpgalaobeoempgg",file:"index.html"},{id:"fnilfbonoiecjddikflnfncnboinphcm",file:"public/icons/icims-16.png"},{id:"fnljdefckdcbajlfkdlacckibdgfbaof",file:"icon.png"},{id:"fobgfljhelbfncehcgkdpnefdklhoipf",file:"assets/new-logo-16.png"},{id:"focmnenmjhckllnenffcchbjdfpkbpie",file:"gmail/gmail_injection.js"},{id:"fofjcndophjadilglgimelemjkjblgpf",file:"index.html"},{id:"foieeiacfgeomhhkpbjneilnnlmngcpg",file:"images/whatsapp_logo.png"},{id:"foldhjjbffagkddlpoepdjfclcokmcdi",file:"bulkupload.html"},{id:"fomgcolbgdjbmnabgijnbmmmoimhlidi",file:"styles/inject.css"},{id:"fpadpaifohjpgnmbefepobokdopjdbid",file:"icon-16.png"},{id:"fphmjhfemegbkklgbppokjckckngcmoc",file:"icon-34.png"},{id:"fpieanbcbflkkhljicblgbmndgblndgh",file:"assets/loading.gif"},{id:"fpjjdikjoldjlildbfifbbjbecedoopn",file:"content.css"},{id:"fpmfnhlniafpabplcacficlgmnnckggm",file:"dist/sidebar.html"},{id:"fpmhfgogalamnijkkcddamnobhdioedn",file:"images/pixel.png"},{id:"gaebambociaenblgbnljbimfeghelgjb",file:"icons/plus-solid.svg"},{id:"gaflhpfkjpfkkhefnddlpdceiibonehh",file:"_locales/de/messages.json"},{id:"gahcfmlnmednhnbkifdoffblfffpeljf",file:"components/form/ui/form.html"},{id:"gbaeeknnjahomglejofmnkanndihoccn",file:"icons/icon48.png"},{id:"gbcfdjgipmpinkahpiambcikjkijimhi",file:"generated/clipboard-bundle.js.LICENSE.txt"},{id:"gbeiphffnlkmgoclacceflphonplpigi",file:"contentStyle.css"},{id:"gbiokpgbipklfamljmahhmlldgdffikk",file:"content/index.js"},{id:"gbleadepbklogeaabdocokhgpfemkmdp",file:"content.styles.css"},{id:"gcecnlnmpidkanpnhpdcgfagpekjaihe",file:"lib/network.js"},{id:"gcjclcplhbhofcmchonaeajjkcieeieh",file:"U2TDTBMY.d4e452cd.js"},{id:"gcmemiedfkhgibnmdljhojmgnoimjpcd",file:"options/options.html"},{id:"gdedjkkdniodndkclfkfhedlphajldog",file:"dist/contentScripts/style.css"},{id:"gdhhcapaofinjmlambmbfhkicbpmidbn",file:"components/modal.html"},{id:"gdldfceehpabhcehoglbnfgkdpgnnelo",file:"assets/contentscript.ts-ByCi3VZj.js"},{id:"gdoalfpalhcakecmmgcbfkligndcleff",file:"assets/index.tsx-cf24d91b.js"},{id:"gdohjpeeeiofdkomgklhpiademkaaajk",file:"popup.html"},{id:"gdoloobnfachpmddhhkdhgiggknddhgo",file:"styles.css"},{id:"geibognnhplplidflnhpdbanjkekganc",file:"manifest.json"},{id:"geiifogbppillhakmonhkkihkghflodk",file:"stripeFrame.html"},{id:"gelgoaopfcabbigaimoeojnhbcijoalk",file:"content.css"},{id:"gemcgnkghpnfbmlfimdbdgfepcgenphf",file:"images/close-x.png"},{id:"gempcojpejfhobcccooiifdoddlmokgj",file:"icons/episopass-96.png"},{id:"gepanmdpmihmehobgpmjfipmglgnihkg",file:"content.styles.css"},{id:"gfcmbjmjadhcijjpbpoelmejbkhnbhia",file:"popup_error.html"},{id:"gfecljmddkaiphnmhgaeekgkadnooafb",file:"logo.png"},{id:"gffdjilagmdhamklghiabjiamneclhbp",file:"icon128.plasmo.3c1ed2d2.png"},{id:"gfiknpbgncejbppghbhmdhcgjdoojamb",file:"dist/contentScripts/style.css"},{id:"gfkjbjplehnonknlkbolekeijihfkoaf",file:"static/templates/cb_intel.html"},{id:"gfpkmnhcghpkddadjpomekllmdjcokjf",file:"popups.html"},{id:"ggikeajofoaammldobamdfmcmieipebc",file:"icon-16x16.png"},{id:"ggkmpcannjbcepigghgdkbpmnglnpfjp",file:"images/LoadingCowGif.gif"},{id:"ggnikicjfklimmffbkhknndafpdlabib",file:"css/social-image-preview.css"},{id:"ggpfkaknfckpihiphiilfhkpoocijgei",file:"images/cluster_white_1.png"},{id:"ghbgceefnblijahnocfoddbdphjnindp",file:"dist/contentScripts/style.css"},{id:"ghgckghfpoemagikajhodjiefcnbmmek",file:"dist/contentScripts/style.css"},{id:"gieodcfdokijnjhpajbeffgbpfjddnhm",file:"images/icon-16.png"},{id:"giidlnpcdhcldhfccdhkaicefhpokghc",file:"css/themes/dark-theme.css"},{id:"gijjkdcndbfldihmidochcfjpoalmifi",file:"pages/stripe_redirect/index.html"},{id:"gjfehlcidibkbachipbggopmmphholkg",file:"index.html"},{id:"gjpdbigebbbdciapaflndjkbhapgpkpa",file:"errorModal.html"},{id:"gkcdjgjhmpmjdikeokefahhecpbecldb",file:"manifest.json"},{id:"gkgjifhmaalomlfljikkncdkmhljajdg",file:"assets/css/panel.chunk.css"},{id:"gkhennmnjegbkbohlaehajpdmmjgbggb",file:"icon-32.png"},{id:"gkkfmgeekiipgbldjnbggmkhleeknnng",file:"static/js/linkedin_overlay_element.js"},{id:"gkkhkniggakfgioeeclbllpihmipkcmn",file:"assets/collapse-close.png"},{id:"gkmbefmceinncpamijjdheeiikaeehdn",file:"assets/logo-app.png"},{id:"gkmhbokfoedjgopeobgefpphfibepcjn",file:"assets/icon.png"},{id:"glcgkgjgcnflejnmkiilpemcojeclbej",file:"index.html"},{id:"gllbocgdcaigapeaedjinbkgjdjcghoj",file:"share-image.png"},{id:"glojmiionklojffhpdpeiadebepjbhoe",file:"mmt-srcwl-lbqhkocgcummvbmy/images/ios-arrow-down.svg"},{id:"gmahhmpnjfpmjchcgfecclakcmbbbjpg",file:"images/arrow.svg"},{id:"gmcehfailpfakmipokpdbibjceppjeej",file:"assets/favicon-16x16.png"},{id:"gmfcioclpgapkckehifnidmomfcmocdh",file:"index.html"},{id:"gmjpligloeoamkgodhblocnbkmalgmpj",file:"menu/menu.css"},{id:"gmkdbhgoamopaogpaocnehcomajbkmkj",file:"images/active/icon_48-on.png"},{id:"gmlafenklffcmegjhklbpdkmglelbobb",file:"settings.html"},{id:"gnbbnmpkcojpiapjfchcjepnjgfonhna",file:"assets/preact-DR0znHdf.js"},{id:"gncdeciaplnakdjjkcbmlbbbnlpochik",file:"hiresweet-for-linkedin.html"},{id:"gnfkfajglnnkaaiaaeheiinmcmniecni",file:"img/icon.png"},{id:"gnhoimmdfeclleccljjflgngepoicidi",file:"libs/load-typekit.js"},{id:"gnkbmaifcbniminbmbmiabamggncacag",file:"src/assets/logo_16x16.png"},{id:"gnnjegdgbplhcoadniflbacadnmlepoa",file:"content.css"},{id:"gnnnbgkmbljmjghbhjhbfiiffndpnjij",file:"index.html"},{id:"gobbhahdkkhjkboipabjjoaejakcdjhe",file:"img/icon16.png"},{id:"gocbijlcbkhboobblabponmcchjlhhfb",file:"js/linkedIn_logo.svg"},{id:"gocpnpahhmbhecolcgjjicdipopiglba",file:"assets/client-58ea80d7.js"},{id:"gojdbimennlpdoagkgongbdecafpccim",file:"images/icon.png"},{id:"gojmmkhaiojimnnjhhilmhjmhdbdagod",file:"script.js"},{id:"gokkgekggjoaehmegbcajkngkedmjjnm",file:"assets/_commonjsHelpers.f037b798.js"},{id:"gpaiobkfhnonedkhhfjpmhdalgeoebfa",file:"magicWindow.html"},{id:"gpaoonmjikbnoedbnnmihhichnjlojji",file:"drawer-iframe.html"},{id:"gpbhhjnhdfmdjephhladopnjpelhmplc",file:"fonts/FontAwesome.otf"},{id:"gpbocgnhdopagefbfgohcjpmdnceidkd",file:"oauth2/oauth2.html"},{id:"gpdbkojfnalodigchpdbhgokdcffghii",file:"gpdbkojfnalodigchpdbhgokdcffghii.crx"},{id:"gpdcibinjnbkbocdlgeidbgblecljmnp",file:"images/logo.png"},{id:"gpeeahfkpkinldndkiihnjgpegiccgcc",file:"content.styles.css"},{id:"gpiknbocmcgnemehpeoefgkmemjeogkp",file:"mmt-srcwl-yiubdoqepbvmmq-z/images/ios-arrow-down.svg"},{id:"gplimcomjkejccjoafekbjedgmlclpag",file:"icons/move.png"},{id:"gpmcahkaejaehjhalogpakgcnoholepc",file:"assets/add.svg"},{id:"gpmcdaocjaodfgpniloimojpldldihfn",file:"assets/icon.png"},{id:"gpnedmdihdgigkifnjmoemogmkcdegin",file:"privacy_policy.html"},{id:"habieibnkjbdpejgjgmcfmcllgkjggmd",file:"images/cross-icon.png"},{id:"hahkojdegblcccihngmgndhdfheheofe",file:"injectionDev.js"},{id:"haimnmmocillmcpbbdphhjnenigglknj",file:"img/logo-16.png"},{id:"haiofogejpjmphinemcanjidbaibkebc",file:"components/find-button.html"},{id:"halhjoedleecobiodolkdhfpjhoealhf",file:"js/comeback.js"},{id:"haofdhibainigklcpcpcfkaigklnialk",file:"src/html/track_limit_reached_modal.html"},{id:"hapeajalaadipmfmkhokdpalcafbnope",file:"icons/loading.svg"},{id:"hbcdhdfokpdbnhfggebeeiokjjlfnffk",file:"icons/icon16.png"},{id:"hbiilncfjnlmeconpkcdibjkjpjaibmk",file:"assets/content.js-2782ad37.js"},{id:"hbljfhndaonplbgjbcdinloomapidmod",file:"img/logo-16.png"},{id:"hbnechkcmnoeknlidkglipiggbdcnnbj",file:"content-scripts/content.css"},{id:"hcghganppfkplebfebpdnnihcjmjefep",file:"assets/add-group-white.svg"},{id:"hclhpnhohpmlbadmeieecaandnglfodm",file:"images/compare.svg"},{id:"hdappgahcgpifoabanfifjicfllpokgo",file:"assets/icon.png"},{id:"hdopabkhobppbaaajnanhadcamfopobc",file:"assets/common/languages/es.svg"},{id:"hecahlechbioioimcmbhmkdiefecmmdi",file:"scrapePage.js"},{id:"hefhjoddehdhdgfjhpnffhopoijdfnak",file:"full-screen-modal/index.html"},{id:"hegppmjkecopkbicfkecnlemdincdnfj",file:"images/card/info.svg"},{id:"hehebhmhfadjangoccifmegnfacnbeff",file:"lib/client/dist/robots.txt"},{id:"hehfhidehohapbgiflnbkkhpgjnaeepf",file:"assets/icons/48.png"},{id:"hfadalcgppcbffdnichplalnmhjbabbm",file:"images/icons/flu-finish-rc.png"},{id:"hfcbppmifjfaobchcpmoeinjdfdpgonh",file:"single.html"},{id:"hfdilejiecmablifdkololalnbbmdcdb",file:"js/in-page-script.js"},{id:"hfgoiloiogleeameljadaelidkcoieoh",file:"assets/New Tab.png"},{id:"hfidaegbdmikfkpckfbdhccgnohibhcm",file:"assets/logo.b1a88a03.png"},{id:"hfimfjackejkinihmjhfckgcgcjadhab",file:"html/innerframe.html"},{id:"hfjimamacnmcakocjkkabpmfkaomadja",file:"icons/episopass-48.png"},{id:"hfjnppljknigdnnpocjjgdcfmnodoafe",file:"assets/logo.svg"},{id:"hflhofhnkdimiinhhcdicdhdioddanha",file:"assets/chunk-B1wJ3bgU.js"},{id:"hfmfgjlnfcleegadbkpeeogklaabpcjp",file:"chrome/chrome-info.json"},{id:"hgfjaoeaeojnfgjiddombbmphaajdmga",file:"assets/svg/user-profile.svg"},{id:"hgilmfmphmkjcjckecpifkgichfjdccc",file:"img/logo-16.png"},{id:"hgjbjiajkmjmaekmoopfmmnphpdfejcb",file:"adImg.png"},{id:"hhbjgbogflofaoaniimemnlimmbdnlii",file:"OpenSans-SemiBold.ffd9dcc1.ttf"},{id:"hhbnckjhjihjangdepdebbnooibiphge",file:"styles.css"},{id:"hhddcmpnadjmcfokollldgfcmfemckof",file:"img/pay-secure.jpg"},{id:"hhdffcchnkhbhlppcnaomfonehjkaghm",file:"css/datatables.min.css"},{id:"hhkjmfiibaiefknhdilcjmhdhiphlpgc",file:"index.html"},{id:"hhnbfppcjpaacnjecideabahjbdgppaf",file:"audioPreview.html"},{id:"hhpkhdnchcdjiblbacngkiemjokmelcb",file:"assets/sentry-6d0a80de.js"},{id:"hiahhbhmchdkkbahlpfephhbekklgbog",file:"share-image.png"},{id:"hiplomkbpcjkecngbffdbgcikeajpied",file:"js/salesforce_aura.js"},{id:"hippmkmooedoignndhhkcbbonekbaade",file:"assets/index.ts-68158702.js"},{id:"hjebfjjlollikihnildcmomfkpiejoip",file:"css/sra_linkedin.css"},{id:"hjeklbboodibophfkibjeddlfolmhbkk",file:"img/workland_logo.png"},{id:"hjfjkioheffddeeeddgmpmbonkgibjia",file:"images/icons/icon.png"},{id:"hjhjemkilimffbdndgbbpgedehnncpbd",file:"index.html"},{id:"hjhpmemgiecpogjpmofnnaghdokkfcpp",file:"content.styles.css"},{id:"hjkhpfdoiikleoogpcjmbgajeeknfbed",file:"images/table_header_bg.png"},{id:"hkeoaocndggjfdeamhhjfcmdmcooifpf",file:"icon.png"},{id:"hkjalfipeofnkbogmfpkngpodcpjeebi",file:"mmt-srcwl--vecfoasbuh-hy-i/images/ios-arrow-down.svg"},{id:"hkjpcgmahjcboogncjlmdfhleccolghf",file:"images/icon16.png"},{id:"hlbfeoofdhffajlfcdnpohfbbelfeglm",file:"images/logo.png"},{id:"hlbjniodlfameclpjodmamnpppnppobk",file:"icons/mentions.svg"},{id:"hlkiignknimkfafapmgpbnbnmkajgljh",file:"injections/popup/robots.txt"},{id:"hmacaaocopciajocilmdjgalalafobho",file:"assets/tiktok.fetch.ts-aTgWkgHp.js"},{id:"hmepfjafgikbgfjofmeboldokjgiodgd",file:"popup.html"},{id:"hmfdjlcpjdkbebjlkpmammmcipfdgpjh",file:"simplytrends.js"},{id:"hmfkdmcfdpiebpjjeeenbhdoheakipkf",file:"read_page.html"},{id:"hmfnikambmjoifaflckidponfgheceim",file:"assets/fonts/dvfL0PQWcCvR-NKPSswI4A.woff2"},{id:"hmiikedpdefbcnfhodkopkmkhfkeonjo",file:"fonts/HeliosAntique-HeavyItalic.ttf"},{id:"hmpfdofadldbdljibacoicljekdmbpog",file:"ask-modal.html"},{id:"hnbhomedmmodadnpfgnckedgecedlalk",file:"edit.png"},{id:"hnbhooccgamdakoopojgkimmojcpdgco",file:"assets/logo-png-green128.png"},{id:"hnbnkioepackpgmdppegkkjkebdoaeil",file:"matomo.js"},{id:"hnfaoknidihlaefdeogopolookigppec",file:"results.html"},{id:"hnfijcggbbnhciandggikibemjjjpoaf",file:"engagio_frame.html"},{id:"hnmhchbaimjlmckjphofeilojekjihcc",file:"dimensions.js"},{id:"hnmhfechpdgoanciheneafjldopelbep",file:"script.js"},{id:"hnponmaomjmekojeloiidmepefopdhod",file:"content-script-instagram.js"},{id:"hobbmgchccnpegodldfeneblopefppig",file:"contentStyle.css"},{id:"hobhidjecjjgknjpnclnmfgkajdjlaml",file:"assets/js/library/Infos.js"},{id:"hobioajolocliaghmpcbkeenmeffilgl",file:"assets/images/green_circle.svg"},{id:"hohjiogaaddpcpakfaegfacbaggphald",file:"disabled.html"},{id:"hohnofgiopagfojkjalkjkgogpkjghpe",file:"smartreach.html"},{id:"hombkmjjoapdaclgaaioldnljmhhliai",file:"icons/SlikWhiteIcon.png"},{id:"honjbkobemifjkoagifihmdapbmpjifk",file:"public/modal.html"},{id:"hpdonlnaehfbmhaeajlppcfkngapiofj",file:"popover/popover.css"},{id:"hpemjeicfeimkpjnbldmenlcepjjibod",file:"src/html/menu.html"},{id:"hpfndbeelpjpdgeaoknoeggagglgelhp",file:"17r4m3.html"},{id:"hphemlkiblibajapikfnjnoebaepeckp",file:"views/assets/plus.svg"},{id:"hpjloodfjfnoeekpikfdedoaiklofcgl",file:"assets/css/Index.chunk.css"},{id:"hpmgffjoemfiioplaalgbipfigadkejf",file:"iframe.html"},{id:"hpmofmhcflopelbdkalanmdbaifbmaek",file:"icon.png"},{id:"hpncohefniamkphainmdcghaljbiaiol",file:"settings/settings.html"},{id:"hpnndmohekbioibaicainnncgjihieak",file:"content/html/progress.html"},{id:"iaanlollhchoikocdhpcbijkpeonghch",file:"assets/index.ts-36e04c6e.js"},{id:"iadokddofjgcgjpjlfhngclhpmaelnli",file:"src/assets/img/readydoc.svg"},{id:"iajelgmcdcajdfoidhgligdilfnemnho",file:"static/css/content.css"},{id:"iapadgeadolhadpkokpcdincllkgagmh",file:"pages/popup_google.html"},{id:"iappacfejcfelnlnjfafgcinkfgnhkdm",file:"assets/auth.tsx.js"},{id:"ibalopmjfifikmkhimcbicfngnbbcimg",file:"static/linkedin.js"},{id:"ibceigdphgnafpcfcdieboohlikfglag",file:"images/16.png"},{id:"ibdhnmogbcjdikcenihpmhkdgjejbcpf",file:"icon16.png"},{id:"ibjfdjcfhdgglpbdpegccaemlimpolef",file:"src/linkedin/style.css"},{id:"iblablhmfcdmlndolbcjdlkehfffpifi",file:"assets/css/Nurture-card-bg.chunk.css"},{id:"iblbbdgjelgbifffdijkboabbkoiokjn",file:"index.html"},{id:"ichmnigkjinmjedillldopaolidofben",file:"salesnav_inject.js"},{id:"icinilhaogflbakipichgacjjaknklfn",file:"contentScripts/content.js"},{id:"idcdkjpekpkllkjecfaiibaigfhgedpc",file:"content.html"},{id:"iddnbalhmdkipfcopclcnchagfbmcgjb",file:"html/sign-in.html"},{id:"idfblidcbbfkggckamnibfbngnbgjocf",file:"index.html"},{id:"idgadaccgipmpannjkmfddolnnhmeklj",file:"js/tbremap.js"},{id:"ieclmcodiiodchgppgmdponbgpbfnbkj",file:"xhr.js"},{id:"iejedmednmnhjcllbndohfhfaonmihfk",file:"assets/index.tsx-5cd51a22.js"},{id:"iemknghbobacfkoamadfpofkdjahadoh",file:"assets/logo.png"},{id:"ifhideekehejdbmjpcpobcbkfohmjejf",file:"content.js"},{id:"ifojdkmbcldnibhgomkbdfnflfchkekd",file:"popup.js"},{id:"igkkojjaikfmiibedalhgmfnjohlhmaj",file:"icons/dark/linkedin.png"},{id:"igkpcodhieompeloncfnbekccinhapdb",file:"html/tab/devtools.html"},{id:"igmlifilbgnlaijamohaakgoacoeoidk",file:"pages/button.html"},{id:"ihbejplhkeifejcpijadinaicidddbde",file:"css/hn.css"},{id:"ihclelbigemkpdnbjkenimnbgkepieka",file:"assets/logo.png"},{id:"ihengjjgcckialjckkdialogponljlpf",file:"index.html"},{id:"ihfgbbbkdkcnkkfcalfpigkbdeedmngo",file:"style.css"},{id:"ihhkmalpkhkoedlmcnilbbhhbhnicjga",file:"boot-prompt.html"},{id:"ihhnkmnppmbhfaekemlmpnkjdllbdcfo",file:"app.css"},{id:"ihigppbedaljfdbjhpfnaoboajgkkjnl",file:"content-import.js"},{id:"ihlbailjldnbpajldeoeefcclocfolpd",file:"common/img/co-16-gray.png"},{id:"ihmajbbgeaghifjhckfaopcpghfnjpjf",file:"js/font/iconfont.woff"},{id:"ihnkomcdpdadencefknaapmlakkiimll",file:"css/overlay.css"},{id:"iibninhmiggehlcdolcilmhacighjamp",file:"assets/all-icon.svg"},{id:"iicacnkipifonocigfaehlncdmjdgene",file:"assets/shared/facebook.css"},{id:"iidnbdjijdkbmajdffnidomddglmieko",file:"quillClassic.js"},{id:"iiekkcjhgfinlkigcpkhfbndnomegaif",file:"img/icon16.png"},{id:"iieomcnmomejdefhjfdljckabjldeenb",file:"script.js"},{id:"iifbccjddikdmllicogfkanmdgckjckl",file:"icon32.plasmo.22c33d5b.png"},{id:"iihamopomflffiecicbgelncanmfionp",file:"chat.html"},{id:"iipcmlhlgeijkbcnoeengjononohcajp",file:"content.styles.css"},{id:"ijfmjempkpegmlhcacclfckeimbfgabp",file:"listIcon.png"},{id:"ijjpcllafkdhjkfenmkgnkklbnphalpj",file:"assets/logo.png"},{id:"ikdbjappaaapdcncoollhmbjokbgdadd",file:"src/content-script/index.js"},{id:"ikedjelmhfkckjfigpkciefamibkniad",file:"mmt-srcwl-qidspy-pln-flz-p/images/ios-arrow-down.svg"},{id:"ikjkjpfklhgapiohochmacfoicpjkepc",file:"tabs/content-show-page.html"},{id:"iklikkgplppchknjhfkmkjnnopomaifc",file:"js/script_cs.js"},{id:"ikmnkdjcoonchmakgejlapfjgdehoefe",file:"assets/logo.3f0c4682.js"},{id:"ilcboogoodfapcpcmajffjlpadjgfppf",file:"images/icon.svg"},{id:"ilfckacnmnjlcboodahhojdnllfailhl",file:"assets/settings-fa859063.js"},{id:"ilocdbladnokjbbfnoigbjfboophlkda",file:"manifest.json"},{id:"ilojmippebcjlidjafibjflcpbcpffcb",file:"css/options.css"},{id:"ilpgiemienkecbgdhdbgdjkafodgfojl",file:"popup.html"},{id:"imafbmggflmbfhpehafcnekaoochndfp",file:"video/vaetas.video.html"},{id:"imckcambjembkbogkipmbeiaakdojbnc",file:"iframe_stripe.html"},{id:"imdnndbagihjbfkeockcmcgdnnhjofim",file:"dist/contentScripts/style.css"},{id:"imhapccmnelmiedljhnbncokemegngca",file:"main.css"},{id:"imhlnhlbiencamnbpigopiibddajimep",file:"Lexend-Regular.ttf"},{id:"imklnjmnoabnopdonkpakaghodoeolld",file:"images/star.svg"},{id:"imkmjfajnjfpfkdojdmabcphojonjjjf",file:"chevron_left.svg"},{id:"imljlajamkpjlmepmmpijpbnpeemeaol",file:"utils.js"},{id:"imlliljfgjlgeabjcnphopfmaakapabl",file:"content.css"},{id:"impnmifgolipeiojdbicjelaflggabhp",file:"scripts/jquery-3.6.0.min.js"},{id:"ingbobkdhjknekjbokcdilfjbkcgfedi",file:"html/sources.html"},{id:"inloipbahbmhelpokmejailbmcegccal",file:"new_icons/plus-icon.png"},{id:"inmobcjjmmgmgnifapocjnojamigfhml",file:"options.html"},{id:"inpefkfjedjpkakiaiphlbdhobebocbh",file:"images/success.gif"},{id:"iodbiefeiiififbdcdckdbigakehaemb",file:"images/template.png"},{id:"iogffmglhkiajlbnlkfmfobhdhlfadkj",file:"img/obj-16x16.png"},{id:"iogkpjdnnjflpadjjgglebpekelgflfd",file:"background.js"},{id:"ioidlpnjclohlmjkkgedffcokmdcngdd",file:"manifest.json"},{id:"ionnbdlogiaapopodiglgaakhiifihcl",file:"window-provider.js"},{id:"iopdafdcollfgaoffingmahpffckmjni",file:"logo-white.svg"},{id:"iphdmkpjdmpccppgdejahkidlnekmnad",file:"extension.css"},{id:"ipinhelbmkmbjfpnoakfjillakpjdipe",file:"gmail-loader.js"},{id:"jabnaledogdghdbckajlnbipcdicinom",file:"assets/icon-16.png"},{id:"jaenghlnkaecgifeahciboglnpkcedme",file:"svg/billingExpired.svg"},{id:"jaijncdnkdmebcpgihfdmpibhkffddgi",file:"src/icon32.png"},{id:"jakhcoeodnblkcpbeoikikibfclknnlc",file:"assets/fc-icon-48.png"},{id:"jaoijkafodppgfegfihfdcecbibnbkbo",file:"assets/plugin.js"},{id:"jbaikjecejohcgijmephbblimcijboak",file:"assets/mouse.png"},{id:"jbbanajdakjmholbhekdkcfekhibilhg",file:"iframe.html"},{id:"jblhimgmioplnklmlegfmkkodfncbdec",file:"content.js"},{id:"jbmgeokjjidieoppjegcdmmhpflmeijm",file:"assets/style/instagram.css"},{id:"jbpfennkobjhakiafpbohcchaocfgcho",file:"static/css/main.7c1dae30.chunk.css"},{id:"jbpknifdkdiiaehhlefnglkjimhjgbkm",file:"content.css"},{id:"jcgholhpbpcnglbilaflciokdnhjlfgl",file:"assets/bookmark.png"},{id:"jcjoaknghkciioldhohcibcgekimfphb",file:"extras/github-markdown-light.css"},{id:"jcnkojfhcdojpfffoddbnceadkngaond",file:"icon-34.png"},{id:"jcpkgjfbhhglonendnnmicgicebbemjd",file:"assets/images/share-icon.png"},{id:"jdanmmkadklcdnmmhodecjodjljkekja",file:"notes.txt"},{id:"jdbdgcibmddkccanncenaahimbfcgglj",file:"img/edit.svg"},{id:"jdedmecbcembcmlddbchlmmoglcldghe",file:"options.html"},{id:"jdemfbjhbcbhgpklhefanhhijiipioho",file:"jecho.png"},{id:"jdkdafpciaomelghgnhfpjjgjdnjljin",file:"assets/css/popup.css"},{id:"jdljloonnicomdafhnljcjblkghndpcp",file:"all-users-coffeee.html"},{id:"jdppdnnmobmmpegaoacpopfaoabeladn",file:"fonts/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2"},{id:"jeablngoapekimaeoeclgcefdcpjhjcg",file:"iframe/index.html"},{id:"jecenghfiajbncbijdgehbannhamgplb",file:"assets/images/arrow.svg"},{id:"jefhkjnnfaiicaaonfjkibcipeabocck",file:"popup/index.html"},{id:"jeipohkkheolokppfejmcilickemnico",file:"options.html"},{id:"jejkgijkhbdnekbbdonkikkfdmlfmdol",file:"images/icons/icon_16_dark.png"},{id:"jfhnfgfgbnbhcdiohboonlmoajklmijh",file:"src/popup/index.html"},{id:"jfjbcckhglfamaagobaibpjmnibmooko",file:"webcomponents-bundle.js"},{id:"jfmakahmfclplndeekkpolafgllnnnkk",file:"images/icon16.png"},{id:"jfmfcimcjckbdhbbbbdemfaaphhgljgo",file:"js/fps-block.js"},{id:"jgbnbeibkdooefdklbkcnfooggcoeifk",file:"assets/icons/stopPlaying.svg"},{id:"jgcndlaikgkhpbcekabcmnfeiaelgaon",file:"content.styles.css"},{id:"jgiapobaigghdocinfndjifhkcnmbcan",file:"images/assets/ae-right-arrow.svg"},{id:"jgnajdgfiglbklecgloopjkdmhplnibg",file:"assets/like_icon.png"},{id:"jgodagonmjikmgkoppdlhnbmaajgaack",file:"popup.html"},{id:"jgoncjpgeegjhdecejnfnpjnfmhohgdf",file:"style.css"},{id:"jhdolbngdejbkjoneefkfhblechofbfo",file:"mmt-srcwl-jfgwawfqpbaxeens/images/ios-arrow-down.svg"},{id:"jhmlphenakpfjkieogpinommlgjdjnhb",file:"libs/analytics.js"},{id:"jhpfjalgbbceohoiaahegpbibdelpaga",file:"img/logo-16.png"},{id:"jiagbhjgocclknkbjnlpgbenpnfldoii",file:"images/icon16.png"},{id:"jialfdhnklplgcdbjccgijagijpbbjgb",file:"src/browser_action/browser_action.html"},{id:"jihallkndhjkkadalkipbhodlcencbpl",file:"proxy/proxyIframe.html"},{id:"jiihcciniecimeajcniapbngjjbonjan",file:"ckeInsertThumbnailLink.min.css"},{id:"jilkhjfakcninakdpdaphnljmkibpmki",file:"injectScript.js"},{id:"jjdlecgjgcejnobmljdmjolnadeplapb",file:"logo.png"},{id:"jjdobdnmjfjndlblfkcnbcjocdjihadf",file:"index.html"},{id:"jjghhkepijgakdammjldcbnjehfkfmha",file:"salesforce/onboarding.html"},{id:"jjhegjemibopoofknlmmffciolieodcj",file:"css/options.css"},{id:"jjmlbbndggneogioknejomjbdeebijmb",file:"index.html"},{id:"jjnbbklfpecnjcfehhebmfmibicklgdo",file:"sounds/License.txt"},{id:"jjngbiflnfmknkoafjahplcmcpjnheog",file:"options.html"},{id:"jjpokdpccbbilgekgdhooopbfheldbfh",file:"config.js"},{id:"jkefaopmikfappkiohamgddppldifkcn",file:"templates/prattl-dialog/article-contribution.html"},{id:"jkfgkknkapkccllbjfjmaehcnjochnjc",file:"icons/16.png"},{id:"jkhamojjpmilociepcdogfdiopjgefoe",file:"assets/images/full_logo.png"},{id:"jkhkdbfkjiipnhlpianbimoopafelden",file:"index.html"},{id:"jkidnillkgechnippedmmjdaifdindjk",file:"assets/ValidateCookieContentScript.js-5d6642a6.js"},{id:"jkijjdaepkmiankjeadanhphoceojkpa",file:"xhr.js"},{id:"jkoakdgjjpjjpcaeggokiklmafdihdck",file:"templates/int_addcontactModal.html"},{id:"jlbkfkcopgimfccacnelllnkohhpdpgo",file:"src/component/head.html"},{id:"jlbojkjeknlcidaafkcgnpepdehnccaj",file:"src/content-script/iframe/index.html"},{id:"jldbdlmljpigglecmeclifcdhgbjbakk",file:"assets/icons/icon-16.png"},{id:"jlicghpfihghaaaoljnknkdcanjipoio",file:"assets/proverb.svg"},{id:"jllhlcfbocidmmnflpokgemkgfefpmpi",file:"views/dashboard/settings/settings.html"},{id:"jlnbkamgambebndfodgebpgpbeibbdpi",file:"check.html"},{id:"jmapgdmcamlapgpedipfadnjbjofffle",file:"image/close.png"},{id:"jmbjdkpfkhmfnbcpmegmiacnlbjkgfoc",file:"_metadata/verified_contents.json"},{id:"jmblkkkabhcfmhmhineokhffaleggoak",file:"static/background/index.js"},{id:"jmenhpddemdjghllfmicohijdiamneci",file:"assets/interfaces-CpxkZXqS.js"},{id:"jmgaijifelabedfhfnpgnkcneakpgcho",file:"contentStyle.css"},{id:"jmonjogognihepodmecmokfioppehnmd",file:"content.css"},{id:"jmpabohainmlcggjgopefldkijaifngp",file:"assets/env-fa2a0308.js"},{id:"jnbmekkgllcampcfjkobpffkfglolekn",file:"dist/index.html"},{id:"jncipjngcbgolcmipohjjhepphdedigk",file:"images/logo.png"},{id:"jnffiijebiflabpekpfphicmifknpgep",file:"index.html"},{id:"jnkmbfdaiaaannjdfippgbkmdebkeojc",file:"assets/img/no_img.svg"},{id:"jnkmlfplkohhnccpjnlbaachnnbpldbg",file:"icons/48online.png"},{id:"joflojehbdajphljkcggpmajnoibdaio",file:"icons/check.svg"},{id:"jogfamcfmpjhgmcdefgbkgddfmbofmpe",file:"h1b_cap_exempt.json"},{id:"jonammnemacbodpkngolbinlhiicniog",file:"assets/images/arrow.svg"},{id:"joohnpcnnjbgbnlkidhkcjejbidapgkj",file:"js/jquery-2.0.3.min.js"},{id:"jpnappbebbldpfefhgfphjpjfcdkonac",file:"assets/logo16.png"},{id:"kadobjiobmpmfpdflhnijfcocoddehll",file:"img/up_arrow.svg"},{id:"kahoebmmfnjmjcbclecdkhiapmefpaed",file:"data/shared/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png"},{id:"kaojaomikpeddgjoggcmdcohhaphkpae",file:"companies.json"},{id:"kaoldoegfkjkihpfmnlijajofdpbeklp",file:"assets/css/Style.chunk.css"},{id:"kbbdibmbjngifdgbmlleelghocpeimhe",file:"pencil.svg"},{id:"kbdhmibgmfndcbpfgfoadpbnfbcccpgn",file:"forms/options.html"},{id:"kbfnbcaeplbcioakkpcpgfkobkghlhen",file:"src/css/gOS-sandbox.styles.css"},{id:"kbgdnekpkdbagiccakldjfmhmncdnphc",file:"src/embed/embed.html"},{id:"kbgfcgikcfofjfbfpndnlkgmecadhngd",file:"modal.js"},{id:"kbhgdbfkbgkokgkkdhnnlmkhnokjmfib",file:"icons/leftIcon.svg"},{id:"kbjmpkgkojbddhogjacidbibmomdengm",file:"assets/content.tsx-DT3pxXki.js"},{id:"kbnclglbilajgngicamjdmgmlpgfeiik",file:"assets/content.js.49413623.js"},{id:"kcgepaimjgkfioiepdjghaaieoihndkp",file:"prospectdaddy.html"},{id:"kchaponcodemjigejilffhfchecpgdpf",file:"css/content_wordpress.css"},{id:"kddodlkddhhhooabgkmjjhgfpemmcahi",file:"flag-assets/eye-open.svg"},{id:"kdfieneakcjfaiglcfcgkidlkmlijjnh",file:"content/popups/contentPopup/index.html"},{id:"kdgdohgdbempjoicceeaaglaioadgfhe",file:"html/chat.html"},{id:"kdmcdkanhnbdcmadgljmhdimdlfpgple",file:"build/views/link_account_button/root.html"},{id:"kdopjbndoijfnnfijfkfponmllfomibn",file:"dist/contentScripts/style.css"},{id:"kdpbamlhffmfbgglmaedhopenkpgkfdg",file:"css/script.css"},{id:"keageehkkajaaplkobeamcbnojeaippl",file:"content.styles.css"},{id:"kecadfolelkekbfmmfoifpfalfedeljo",file:"content.styles.css"},{id:"kejinlddafeicppcohfbjkpagoipapgg",file:"error-image.3f3cd679.svg"},{id:"kejpbbehabekboaiagdmljaclbiafdpi",file:"assets/electron-917d39d0.js"},{id:"kekchpijkaijdcppfehiplaghiokpcld",file:"contentScript.bundle.js"},{id:"kencjkgapindpgehbgolojoocgpcepfk",file:"icons/arrow.svg"},{id:"kfecdommldaijnlifjpcgadeolaimhob",file:"assets/icon/work.png"},{id:"kfenlfbjdpdgblnoabpdehlabodakbmp",file:"content/recorder_inject.js"},{id:"kfihpeckbnofhbnaeeoilcokaaphpcfa",file:"injected.js"},{id:"kflhgfodmnljbkknojojmgipcbnlkilm",file:"index.html"},{id:"kfpdickkjkkjpdjejlhhkjmjlhibclbd",file:"edit.29fb15ef.svg"},{id:"kgcafegfbpedfggfhjjajmkaefamdlnl",file:"layout/app.html"},{id:"kgnpbmdpjegcmoldomeongliiphbahak",file:"content_entry.js"},{id:"kgojhlllchdepinmopmlhihnipicpoah",file:"icons/关闭.svg"},{id:"kgpckhbdfdhbkfkepcoebpabkmnbhoke",file:"icons/icon128.png"},{id:"khgfclfejdekdjmmdbhhjjbdngipnkda",file:"btnLogo.png"},{id:"khggnjoomjjihbjjkpbhmpelgcdodjpj",file:"index.html"},{id:"khipicgpjplgcfnkcahnfkpbkoamigpc",file:"public/nerd48.png"},{id:"khnbclggeggefodgimdekejhipkeobnc",file:"src/app-iframe.html"},{id:"kialmgneflnabmjopnjadlildnlegklk",file:"templates/pexels-integration.css"},{id:"kifkfalljkcdikeobdhhbcfahaghpeci",file:"inject.html"},{id:"kifmbalmiephemignphdmcjdlhpbgpdi",file:"assets/css/style.css"},{id:"kigfnbfbpfpgphbocdkmeablbgdbpfke",file:"hider/hider-main.css"},{id:"kiiagbbnplfcigoanejmdfoahipnkfil",file:"img/logo-16.png"},{id:"kiidbbloiomikeedemgcgdelecalehkk",file:"icons/16.png"},{id:"kijengemjcefglfhbkjhfnilepigfcop",file:"css/collections.css"},{id:"kioojceaphgplblnmcfdcfmgbehanioj",file:"js/background.js"},{id:"kipfgkabgagcobpamjimklkonfepeejp",file:"assets/img/logo-wpp-16.png"},{id:"kiplfgepmbblkllmcgmldecccbgkdlnf",file:"b1e7b46cd32506038d4b48b8ab9e912f.svg"},{id:"kjkkiebajmbddjamjlbkfmdihiffpdca",file:"icons/aura_pink.json"},{id:"kjlhnflincmlpkgahnidgebbngieobod",file:"assets/chunk-034465bd.js"},{id:"kjnmikifjcnnelfdhejijdceggpocoea",file:"assets/blue_leadzen_bot.png"},{id:"kkdfahnaohddaenhpefgbmkgkpnakamo",file:"main.js"},{id:"kkdkgjedbiakpncijhjokcnojedlcnko",file:"shared/img/icon-logo-exact-16.png"},{id:"kkfgenjfpmoegefcckjklfjieepogfhg",file:"assets/images/arrow.svg"},{id:"klamogllemkjoeehnppgondkandnmlpc",file:"icons/green-check.svg"},{id:"klfcbkagebjjiafdcbjopncmhlhaopkn",file:"res/close.png"},{id:"kljjoeapehcmaphfcjkmbhkinoaopdnd",file:"content/gDocsAnnotatedCanvas.js"},{id:"kmchjegahcidgahijkjoaheobkjjgkfj",file:"icons/logo.png"},{id:"kmdcoegkocdjoahepejdopdijfgfpfem",file:"src/inject/loading/loading.html"},{id:"kmijndmdcmdfhajeagolfiepokkdoilg",file:"images/icons/left-arrow-icon-white.svg"},{id:"knihglciefjkodiaohdjldakgpnlphlf",file:"devtools/assets/index-DS18QoDU.js"},{id:"knlidfjjemelddmpbcapghcajlkemkcj",file:"icons/logo.png"},{id:"knnijejlhfdhdodhmannmgefocpcabem",file:"src/assets/leads-garden-icon-48.png"},{id:"koaldbonfcigkbdcbpmeepkddbiamhle",file:"js/settings.js"},{id:"kojagojdkgcgehdcdpkbidmhcedjdoio",file:"tick.svg"},{id:"kojhcdejfimplnokhhhekhiapceggamn",file:"assets/scripts/boot.js"},{id:"kojhnafkiednagnljfgakalcbfbklbdk",file:"iframe.html"},{id:"komgobpflpejlpikjbcppdaicdpjeapl",file:"assets/icons/chat_gpt_right_icon_light.svg"},{id:"kpejmmgnnhlaolplbbpdnmmpfbjgkmfp",file:"assets/bg-bottom.svg"},{id:"kpijffcodpolapmmlifhipnnnodbcgaj",file:"panel.html"},{id:"kpjflgccfgdakjfijakkeofkigkegiff",file:"images/cup16.png"},{id:"kpkbaddjcgagljebenbjccdgoicpmbbm",file:"content/contentScript.js"},{id:"kpkpmhddkhdnajjlkbkilakdobnfgopl",file:"assets/img/right-arrow.svg"},{id:"kpngepcadkhhakcbemdmmfminbjaphed",file:"assets/css/chosen-sprite.png"},{id:"labhbpdhoflhelijiihnjbjadlkgdfdo",file:"css/lib/tipsy.css"},{id:"lagclghgckajeoincabkhkajfdpnjnaa",file:"assets/logger-13790085.js"},{id:"lakceobapabjoojjkcmopfjdbcakooha",file:"assets/css/options.chunk.css"},{id:"lamfphejfohdnnkhfcmhholhkffkeblb",file:"dist/contentScripts/style.css"},{id:"lanlmmgcjjmlbfbooodedgblillmnafb",file:"assets/chunk-BEtwhr0H.js"},{id:"lbaabbehhkjeoepfaenkfoljidjdghoa",file:"img/logo-16.png"},{id:"lbbikclloekpgbllggfbechgolanelaj",file:"extension-logo.png"},{id:"lbdhaihbicbfdpklckolabhkhiiajjdd",file:"allyParent.css"},{id:"lbimaakgddhmngbndebgpfbjbjppebpg",file:"img/white-logo-128.png"},{id:"lboeblhlbmaefeiehpifgiceemiledcg",file:"content.styles.css"},{id:"ldaebepnkfockfedaloedoelkjlmpnnl",file:"toastify.css"},{id:"ldmmifpegigmeammaeckplhnjbbpccmm",file:"modal/modal.html"},{id:"ldmoiegjhmdnlkfempmgogekheocimdc",file:"copy.svg"},{id:"lecnmlkphcbfkeipbhjpkafndfpnkham",file:"icon.png"},{id:"legacbojjmajoedfolbjlekjjkepadph",file:"sidebar-harness-iframe.html"},{id:"lejhdnpgccgidknkedecghdkamgmempj",file:"img/chevron-left.svg"},{id:"lenklbgimijbdjlffdebkepcgmdokdla",file:"page/getCookie.html"},{id:"lfbajboiahaecepobmkcpadfeojchmmf",file:"dynamic/production.js"},{id:"lfepbhhhpfohfckldbjoohmplpebdmnd",file:"popup.html"},{id:"lfkfmfkndiknkfbggpldaijcifekgdgh",file:"icons/icon16.png"},{id:"lfliodmmpbihnbbjeibkgmnijcgoeojh",file:"assets/content-script.tsx-5591298b.js"},{id:"lfnidahlcpjiabeocjdiigbhbjfjodfb",file:"content.1f671790.svg"},{id:"lgaajoacmibdfdjklimiamkbjaafekhb",file:"popup.html"},{id:"lgblnfidahcdcjddiepkckcfdhpknnjh",file:"views/web_accessible/common/font.css"},{id:"lgengifdcccjpgepdkpbgndjminjbhfl",file:"app/main.html"},{id:"lgkipoadghdedmdaheacnjcfabmheeck",file:"index.html"},{id:"lhdjbkefigglffnjnkcjfecbmmaejgbn",file:"color.js"},{id:"lhdjjndpipjcmlbkglbaphamfpjiiipo",file:"loader.svg"},{id:"lheehdbcfgapcfcnhncidpmcmdodiidd",file:"assets/images/cross.png"},{id:"lhehchebjnjcaeklbpoanpogkggnhadk",file:"img/pause.svg"},{id:"lhlemfhphjlnmcaenofflkbpklpnpipd",file:"assets/JobPadIcon16.png"},{id:"liapnfcdldggdhjdabfeocgnkccmmidi",file:"scripts/model.css"},{id:"libdlpglppigfkjnodgalifaeadfimlj",file:"jobapply guide.txt"},{id:"licbmjoeghamnnfmijbmeigilklhkhkg",file:"assets/styles/tailwind-without-preflight.css"},{id:"liecbddmkiiihnedobmlmillhodjkdmb",file:"html/bubble.html"},{id:"liembfglbhoaacklkmapenocnhckgcdk",file:"content.styles.css"},{id:"liioapdljdpeoakcpblhdnbmhkkjoohg",file:"pages/unauth.html"},{id:"lijchjgefodlogdmbglgfgelnceipkpm",file:"index.html"},{id:"lijdbieejfmoifapddolljfclangkeld",file:"icons/arrow-right.png"},{id:"limlkpokapnpaonmhibkcafnklpcmnpi",file:"contentStyle.css"},{id:"ljbhjiphihljbohlafdlhpagknidhifj",file:"content.styles.css"},{id:"ljbnmcpgoakfbggfgmgidmimpdeolhaa",file:"content.styles.css"},{id:"ljdhjggpgnkjlfpbkodmafnomalmomnc",file:"static/css/content.css"},{id:"ljflkpelclefpamfbjlddphlmlnogdoe",file:"popup/index.html"},{id:"ljganmjpdpdhihlanmnioaldnbgpokep",file:"content.styles.css"},{id:"ljojfdakhenlgemojpcpicaklobeamhp",file:"svgs/close.svg"},{id:"lkcddhbpnghbonhlgcokbbdlmmcepjpk",file:"favicon-48x48.png"},{id:"lkjblpoingopdeaofcaapmeoojjjnhnc",file:"assets/popup.html"},{id:"lkkihbadfiiojeknaipapjkhkpnomngm",file:"dashboard.html"},{id:"lkpekgkhmldknbcgjicjkomphkhhdkjj",file:"images/logo.svg"},{id:"lleclccmikobeebblacfhlghpinaidlm",file:"enigma-icon-m.png"},{id:"llfjfaebjkmmieoglnnkaomicadfnhjm",file:"warning-image.607965dd.png"},{id:"llhckdebcemcafjmkegmdbnokaogcgmj",file:"content.styles.css"},{id:"lljahghapjhdpnbehgloiajmgmimglab",file:"icon.png"},{id:"lmcngpkjkplipamgflhioabnhnopeabf",file:"popup/popup.html"},{id:"lmgfdodldkopciffngpgckgefcjgpefp",file:"content.styles.css"},{id:"lmhaelcnmkkagpcaajhkgpikcdbemkia",file:"img/icon16.png"},{id:"lmhlnemdfjhahljbnmhjfobmdmanlfgd",file:"loader.gif"},{id:"lmihmgapjifakinphfpmhaaiidcfpjbh",file:"poppins-latin-100.d1e95974.woff2"},{id:"lmkfnhppofjfmjmiplljafpgapcpacdd",file:"assets/magicWand.ts.9a7ac5ca.js"},{id:"lmpkgnlloljdflfehhkckendfhpihjlj",file:"icon.png"},{id:"lnofijhaaengkjpkldihfkjjddconokd",file:"images/revu-logo-16.png"},{id:"lnpfjkleopcaojhabdaemndloghpbdnd",file:"icon.png"},{id:"lodchmjigmbiibplfmagekadbpomglad",file:"assets/_sentry-release-injection-file-2598993f.js"},{id:"lodmcaladcjfgbgnfgfpkfmmedgfcjpc",file:"salesloft_interop.js"},{id:"lofcfikpfibojaakadanpdhcfjjgdfde",file:"logo.png"},{id:"lohijenobpgmglgnpegoiaepjklnmfon",file:"payment.html"},{id:"loihebmobflffnlngaahcgplghhcheae",file:"drag.svg"},{id:"lojgckjlhpmcefkhdcdjlgmjflpaeeph",file:"assets/icons/icon48.png"},{id:"longjjhknfiahkcmoohjhlekcjplfpkg",file:"assets/summary.svg"},{id:"loojajlhdpckoegalihmfcfdigcdkjil",file:"logos/close.svg"},{id:"lpimmmaeigdcdjnficjondnknamdajli",file:"icon-34.png"},{id:"lpoeicnilddmbkbbfdjmldcgafnpgfhi",file:"icon-128.png"},{id:"maanaljajdhhnllllmhmiiboodmoffon",file:"icons/forbidden.svg"},{id:"macmkhpidamcjhclhdfaighfbikehipi",file:"content-script.css"},{id:"maeledjnimgpjecfhjchkdcecmboebjb",file:"mmt-srcwl-gshctckk-jvdmabp/images/ios-arrow-down.svg"},{id:"maggaiefhdildaklhjlgnahnfhbmjegk",file:"static/youtube_lib.js"},{id:"malloejfbmjgjahabjakgicekcgejhkg",file:"index.html"},{id:"mankdelieejldehcehkmnngbfnmialki",file:"html/popup.html"},{id:"mbclkgocofhagldefeogoionalbpckoo",file:"dashboard.html"},{id:"mbcpbomfebacllmjjefeifejbbibbope",file:"content.css"},{id:"mbdaegkegbiehfcmodfhcljbffahjphg",file:"src/content.html"},{id:"mbgojgblcihihojkcfhgoiidejgabmoa",file:"js/sdk/platform.js"},{id:"mbjfnhoogachkgekbbdpfphelgkhocif",file:"icon-34.png"},{id:"mbjgbabnndiapebkfoenicelmacgabep",file:"assets/content.js"},{id:"mbnjnemapiheibpchdcgjkmkbcckkikp",file:"assets/dog.gif"},{id:"mcebeofpilippmndlpcghpmghcljajna",file:"frame.html"},{id:"mchgknoejadalbehjfcjpbnliogcdeep",file:"src/pages/popup/index.html"},{id:"mcjbbpmgemoflclonjnmhjgnioaealop",file:"assets/common.css"},{id:"mcnjnnkpahkmohlocmkfmkndnlcakfio",file:"monday.css"},{id:"mcnljenmincmifienefinhkgkbiicccp",file:"modules/popup/html/loading.html"},{id:"mcodpkpaplhoejneodgclniibeaieged",file:"overlay-app.build.js"},{id:"mcplkbacfdjapifgiidjidmnfilipnep",file:"popup.html"},{id:"mdanidgdpmkimeiiojknlnekblgmpdll",file:"login_dialog.html"},{id:"mdcgloagodjhgjobkflggmokmhhodcjo",file:"images/collapse.png"},{id:"mddafpajdjojjdilglgnhhkiglcackcj",file:"main/dashboard.html"},{id:"mdekjlicnolboojigclnechdhndohpkf",file:"assets/ampfl-logo.png"},{id:"mdfjplgeknamfodpoghbmhhlcjoacnbp",file:"iframe-wrapper/iframe-wrapper.html"},{id:"mdhehldoibhbenfcnonmhfghbnfgbkpn",file:"jquery/redirect.html"},{id:"mdkealgdmlepifhemklmfmdniakiikgp",file:"js/contentscript/gmail/event_monitor.js"},{id:"mdklkilghglpihondfmedeefgfnpecbb",file:"content_script/interceptor.js"},{id:"mdkoiolofkfcojehlmcmaoophcbnjmec",file:"botsheart_script.js"},{id:"mdlnjfcpdiaclglfbdkbleiamdafilil",file:"assets/buster-icon-16.png"},{id:"mdmcdbgcbamafkggllhiflibdcmnniei",file:"images/contact_tab.gif"},{id:"mecefkgphoclbiadaannooafhgnmmmhl",file:"content.css"},{id:"mechmfoiihmkiokjejfhemjdhganaafm",file:"assets/content-script.tsx-73d2e242.js"},{id:"megjnkaghfnmcoogjleiahoemiklobob",file:"assets/content-D_H7Lc5v.js"},{id:"mejfakenbjgoehahlajmpclfpanjaegp",file:"fingerprint2.min.js"},{id:"mekpojdmdfchpokdinnplhlbbdbebiph",file:"dist/banner/index.html"},{id:"meobcmabdannfoehmaplpdjmimmjlcod",file:"assets/gpt.998e279b.js"},{id:"mfaebabjnmfecijlghbeojfmploihgkd",file:"warning-circle.ae7f7424.svg"},{id:"mfeckmgekfglinpgjmbbjmfgoofgehle",file:"assets/css/contentStyle1720131235462.chunk.css"},{id:"mffeajkkfkeflkefiicmmmlkmcefhkef",file:"logo.png"},{id:"mfkiheojdlkamhimblpljacaeoncjock",file:"dist/assets/icon48.png"},{id:"mfmcakkhgmcedieeoahcnomefgigcnhm",file:"public/circle_exclamation_solid.png"},{id:"mfnihmhpikbpioclaalnljadjbmbcppo",file:"embed.html"},{id:"mgahppggpiobaplkbcpejfdaghdcbpmm",file:"content.styles.css"},{id:"mgbfnndcklehejknkddjfjjhobkllinj",file:"assets/js/_commonjsHelpers.smMw3OHr.js"},{id:"mgbhppohcmkbaejamkpfcofjnechpjie",file:"css/main.css"},{id:"mgbijplmiommnaannjomlaiinkhhjblb",file:"drag-icon.6b439853.png"},{id:"mgcegdllfegmapbfgdhiadhcleoealma",file:"mmt-srcwl-yghhcocikmh-nuya/images/ios-arrow-down.svg"},{id:"mgdgfgmbkooegjdkbgnnplfcpgcekbjc",file:"offscreen.html"},{id:"mgfamkbdapacamnnmdnjpileonmgebpj",file:"content-script.css"},{id:"mgnkdppbhhknjlnielapfjamkmpoleoe",file:"sidepanel/sidepanel.js"},{id:"mgodnpglndjnfpddlamphecaheodnafc",file:"css/popup.css"},{id:"mgpbmhgfcphghdidhkamlbofnddbeflj",file:"icon16.png"},{id:"mhjgihnfhbkiplcbnoldjmjnfdemeaig",file:"svg/close.svg"},{id:"mhnlakgilnojmhinhkckjpncpbhabphi",file:"chunks/RSO45DR6.js"},{id:"mhohnenkbgmndjgdccjmelopdaceibfk",file:"icons/icon_128_v2.png"},{id:"migccpmhelllfhljmfkphehdemnemnld",file:"img/progress/progress-circle-lg-master-static.svg"},{id:"mihdfbecejheednfigjpdacgeilhlmnf",file:"assets/huntr-logo-purple.png"},{id:"miigaongkchcjnfjghahegbmcjlmmddp",file:"styles.css"},{id:"miiifofoponphccppehalcmeogfemibf",file:"scripts/xhr.js"},{id:"miionnbpcoinccnhekjjjloiknalhhfh",file:"content-scripts/gmailJsLoader.js"},{id:"mikcekmbahpbehdpakenaknkkedeonhf",file:"settings.html"},{id:"miocikcbamfpmapkdpahkabbihfdhicc",file:"assets/_commonjsHelpers-725317a4.js"},{id:"mjbjdgajnigneaoankmolkojdbbnmjpm",file:"js/suggest.js"},{id:"mjcffemmfdpcjekgonelgmphacdhhbod",file:"inline-scripts/sandbox.js"},{id:"mjlfhbaadonmaeodaigiopkkdgdjemdn",file:"chevron-input-down.07b5a378.svg"},{id:"mjllncbijgeccmolnikpkbkpbjggcgij",file:"img/logo-128.png"},{id:"mjomlehmecgaojkpfaoihgikbkgjjcgj",file:"empty-avatar.png"},{id:"mkbdcbbpjljildicdmkmabknfbopghbg",file:"icon-34.png"},{id:"mkbffgipobpkmhbhappjodngcbopopmm",file:"js/content.js"},{id:"mkbiijndlaclmmaniflgfcogjhdgdjkc",file:"chrome/css/style.css"},{id:"mkckaghkaoiefkkldfkclbiknkiloiip",file:"views/html/button.html"},{id:"mkglodjadhkjjedlbeaiigfpokmimffb",file:"static/media/Triangle_with_Ratings.74d58197.svg"},{id:"mkjedhephckpdnpadogmilejdbgbbdfm",file:"indeedInjectContentScript.bundle.js"},{id:"mkkicnlinnjfgjkegiomemdeleniiojl",file:"src/assets/app.css"},{id:"mkpacpaiefefpcpipahlhlpoiibdjbjm",file:"mmt-srcwl-iripvunicxxnvfbf/images/ios-arrow-down.svg"},{id:"mkpoonlmiaknmcdcmdhbnehhglndcolf",file:"index.html"},{id:"mlabmppebjmfidgamhmnfjlglcobldha",file:"mmicon.a7316dfe.png"},{id:"mleienhkidcnflbldphiddoejcchhbng",file:"src/assets/extension-icons/logo-32.png"},{id:"mlholfadgbpidekmhdibonbjhdmpmafd",file:"index.html"},{id:"mliipdijmfmbnemagicfibpffnejhcki",file:"icons/icon128.png"},{id:"mlknnmdepgmefemphhdombdflfgceejg",file:"popup.html"},{id:"mlmcojnhampgmekphakabmbfopchagng",file:"images/bullets.svg"},{id:"mmengphjalefkdbbgfdeleaiibihhieo",file:"index.html"},{id:"mmfhhfjhpadoefoaahomoakamjcfcoil",file:"contentLoaded.js"},{id:"mmgldgoceeafijaaibadmifjpjpckile",file:"pages/tab/tab.js"},{id:"mmipjajlmpalgjnacggkghcplgbimkop",file:"images/icon16.png"},{id:"mmkkjaifffjaokhmblafanmejemochlk",file:"images/icon.svg"},{id:"mmlgiokimjomfllggomcondfhimncoma",file:"icon-16.png"},{id:"mmpcifjgjjphpmpcjghechdegidedhbj",file:"extension-assets/button.html"},{id:"mndkmbnkepbhdlkhlofdfcmgflbjggnl",file:"icon/128yun.png"},{id:"mnefanhigbjeejlkhhmmnmbngimlmphc",file:"extension-assets/button.html"},{id:"mnfkepfkbemjhmpijcepabfhkldegbga",file:"pageWorld.js"},{id:"mnkimbjlnjcggcdbhkfpadghelibbfkj",file:"public/modal.html"},{id:"mnkpjcgdlhenamhcbempiogjamdkbbgi",file:"inpage.js"},{id:"mnnkpffndmickbiakofclnpoiajlegmg",file:"inject.js"},{id:"mnnmkkjnpnmbfohnpbddndcmiioicpjl",file:"offscreen.html"},{id:"mnpfmcfgdahpdcdbaebpjlnhkanbphlk",file:"popups.html"},{id:"moeceekkkimhielmmomohdlllmjmjhda",file:"assets/css/panel.chunk.css"},{id:"mokjljgbijcpmckbjcnkkpcjcifbgbpi",file:"ClearMashChromeClient.txt"},{id:"monkpojpfmfgoiannfbafooajiobbkfk",file:"assets/css/Index.chunk.css"},{id:"mooiecoaeebopkiknkokhhcifbnbhihk",file:"images/star.svg"},{id:"mpapjhbenpenekbmlddecaibekmfdeji",file:"images/close.png"},{id:"mpcaainmfjjigeicjnlkdfajbioopjko",file:"icons/app_icon_normal_16.png"},{id:"mpdjhieodgnmhmhdemdccnamgjllogdj",file:"src/widget.html"},{id:"mpgifldcehdaecljlhiifnljeeganpmg",file:"pages/sidebar.html"},{id:"mphkinhcenmlkpfddjojkoncjjpdjeal",file:"config.js"},{id:"mpiajcmbcnfbcaogpjbiopmfgpehpefh",file:"Netpaylogo2.png"},{id:"mpkfgkeapfgoamnbdopmdlgilhjhiini",file:"styles/snappify.css"},{id:"nacafojhpmfdnibnabiklmjocdgpgjin",file:"content-script.js"},{id:"nacdkgbbdlamaoipkejkefpijgnadbcc",file:"images/logo-16.png"},{id:"nacfleabhfnfojpopdidcdhdmmcioana",file:"css/no-coupon-overlay.css"},{id:"nadpkddijmhcefhebcccjemfbakjaela",file:"assets/content.js.1a64522f.js"},{id:"nafbodbndkefmeklhkefodebhpgllegd",file:"assets/css/panelIndex.chunk.css"},{id:"nafkdopjabijmpmfnogbnccgipnocljm",file:"content-style.css"},{id:"nahbifboflgafobhlnhndkigfgfjpijl",file:"assets/css/optionsIndex.chunk.css"},{id:"namibaeakmnknolcnomfdhklhkabkchl",file:"scripts/query-pdf.js"},{id:"naooopefdfeangnkgmjpklgblnfmbaea",file:"images/green-logo.png"},{id:"napoalfjgkpknedmcopcelgcpgkbohcm",file:"template.html"},{id:"nbbpignfbfknigiafgacjnlbddfhlcjn",file:"assets/MaterialThemeProvider.js"},{id:"nbliocdcjjlidgpcndenjiljnlbapbkc",file:"assets/icons/chatterworks/icon-16.png"},{id:"ncginfbmpejkfgoeckngpgkneggakpjo",file:"content.styles.css"},{id:"nchcdmfgfphdghdalbhfamjohnijaknj",file:"images/icon48.png"},{id:"nchhjipgdakdcojcobokafdolipjkmph",file:"assets/communication-pPad_h5w.js"},{id:"nchnjpdedckhhfkoafckloolnfliocnd",file:"pageWorld.js"},{id:"nclkjindalbbkeipandkioglmcppdfmp",file:"src/app/app.html"},{id:"ncmegehmmipjannnmleaojhmhmfelkje",file:"embedded-app/assets/blank-company-logo.svg"},{id:"ncmkhdipigpgfnponnnghhelehbfdggb",file:"src/counter.html"},{id:"ncommjceghfmmcioaofnflklomgpcfmb",file:"src/res/main.css"},{id:"ncpcffpojlbfedkgcbdgbhlecjmanfkg",file:"content.styles.css"},{id:"ndbhchkcdkjgofifkjgnloefgedhihmf",file:"style.css"},{id:"ndfbfegjcohejllfjococichokofhigi",file:"mmt-srcwl-mm-jgwyhjlzhjnzo/images/ios-arrow-down.svg"},{id:"neabdmkliomokekhgnogbeonopbjmajc",file:"recording-panel/vendor.js"},{id:"neamplaeghaioimdanffppbikdfcimko",file:"app.html"},{id:"nedaclhgmnpefbdepagkknapbgdalcej",file:"src/overlay.html"},{id:"nedkfhhobnkefoonolhpdhagagkilkbi",file:"icons/icon16.png"},{id:"negbhahodnbcdefabngfhdegbemmffhe",file:"sidebar.html"},{id:"nejdeohbihmiaamplfbgdoeaoikcanjm",file:"images/logo.png"},{id:"nelhhkchoapcbpcgpmmiahfkcdhgecaf",file:"icons/engage.svg"},{id:"neneipdmalejnpalhnmmkcbipgojmoop",file:"assets/icons/Hintella-icon16.png"},{id:"nenjfdjpmgeoollancmilgebdhbibine",file:"modules/globalVars.js"},{id:"nenpfcppjapnadplgpeldoafnfccbjoh",file:"src/utils/dom.ts"},{id:"nfcldgholonecfckicgfmekkecmnopbi",file:"agent.js"},{id:"nfeambcgnidfipbkbiceclegdedccgeo",file:"assets/arrow_logo_v1_16.png"},{id:"nffnpjfoalbhkebcmcckghhkcafjbaml",file:"assets/images/logo-32x32.png"},{id:"nfjbjlpkfimhobegkcoekpkdlokjkcfj",file:"assets/RepositoryIcons/close_modal_icon.svg"},{id:"nfjemjifleiijedpmipbgbpefcopdkci",file:"content.styles.css"},{id:"nfjkfohjlfahjbejllcldpfokjclhcdn",file:"content.css"},{id:"nfjphoomdjjhflagjccnfejpgnjeiild",file:"images/logo.png"},{id:"nfkbblgbfkmbidomjccaejkaohlppbhp",file:"icons/logo.png"},{id:"nfknefikdcbhbadofgdhpplchhmfgmcd",file:"static/google_lib.js"},{id:"ngaoohdgcaeojdngpdhaafnccgcbhlgl",file:"cai128.png"},{id:"ngdjlkacliphopkcgcffflancnlbebnc",file:"assets/images/sidebar-logo.png"},{id:"ngeodglgpmplepchhghijjncnikifaed",file:"popup/index.html"},{id:"nggfafecghkamhbcpcnoblcildgkjlnj",file:"js/sc_main.js"},{id:"ngincgodgniloepaokdljdadbanjjdab",file:"images/icon-38.png"},{id:"ngkfcpjmjfppkhefdbbmephnohgnnfgf",file:"images/readme.txt"},{id:"ngkkfkfmnclhjlaofbhifgepiogfkkll",file:"shared/constants.js"},{id:"ngndiifcikgmoddfknfcbpjbemffdpdo",file:"content.styles.css"},{id:"nhbolkcdnoldbgolafnkejmcdmdcnahg",file:"assets/layout/styles/theme/theme-base/components/misc/_blockui.scss"},{id:"nhekipmihkpmekdnhnchchjancdjkcnk",file:"content.styles.css"},{id:"nhfededlooagdmcpamafanjolhkekbbl",file:"assets/icon.png"},{id:"nhhldecdfagpbfggphklkaeiocfnaafm",file:"selectAccountFrame.html"},{id:"nhipgdfgjapmnokceglaldeoiibjhemi",file:"config.json"},{id:"nhnedpphfpflcmhopnhfhhfhecchponh",file:"devices.html"},{id:"nildpglegcnkchcbkodanhihkgikaldi",file:"static/css/content.css"},{id:"niokdclgdbnokoiobbidcolokmelokig",file:"injectFeed.bundle.js"},{id:"nipdnkliplgkhjhplcklniaejcgcniej",file:"assets/close-icon.svg"},{id:"njigdneanllhkcpilcggkhoojldfolcn",file:"linkD.svg"},{id:"njlbkibahkompkmkkibinagceioogold",file:"assets/other/img/icon-16.png"},{id:"njlfglfdlifbodojfooeajdlfldggihb",file:"content-scripts/main.js"},{id:"nkckdjgcgphemcnhenhgengdphfbjabm",file:"frame/index.js"},{id:"nkedbgifgajhhicbmabjgkkjifecajla",file:"css/all.css"},{id:"nkipnpoebmbpljbmiijjnmkolichinpi",file:"app.html"},{id:"nkkchjgbhhgbmochpphoohfebbcifehj",file:"css/Metro/slider-v.gif"},{id:"nkmbdmlbfpmfabdhlbbiknhiojondakp",file:"images/log.png"},{id:"nkogfdnicckljpapaknjjngonddcihoc",file:"css/loader.css"},{id:"nlbbjnjgfohngcocnalkalokolihbnck",file:"dist/contentScripts/style.css"},{id:"nlembdickpbdnnipdfohchongdbnpodi",file:"public/prd/icon128x128.png"},{id:"nljnogdbefgdiejolejlajbghojopcpb",file:"assets/js/_extractor.js"},{id:"nlkajmkjhmohoabjjjjelfipdgbdnnpf",file:"contentscripts/ractivecomponents/picker-form.ractive"},{id:"nlkdjiiffalhmoaconegckknmebklpfa",file:"content-script.css"},{id:"nloekplnngjkjohmbfhmhjegijlnjfjk",file:"assets/jv-outlook.js-BWL0LLyG.js"},{id:"nlofjaolgiolnmpiekakhhdoflmijphj",file:"js/background.js"},{id:"nmaonghoefpmlfgaknnboiekjhfpmajh",file:"sidebar.html"},{id:"nmcepmjolcpckhpjgbmlaekpohfepnlk",file:"icons/icon16.png"},{id:"nmdenlkgkkgncmibclhckkhclilpfjap",file:"beameryExtensionWrapper.html"},{id:"nmfngggbgdplnjfaofmfpkcehjnmokep",file:"mmt-srcwl-connpctcvyoaucvl/images/ios-arrow-down.svg"},{id:"nmijjdncbjddjjnebaanchfnjmhcfinj",file:"icons/postie-16.png"},{id:"nmlbdaeboelgpgcibkcpmijidglijfdd",file:"assets/config.51403d18.js"},{id:"nnbjdempfaipgaaipadfgfpnjnnflakl",file:"popup.html"},{id:"nndbennabmfpkofomdhobjbcfdagcmfc",file:"index.html"},{id:"nnhmgfbldlcfbokbppkhcopffpjlhnfe",file:"assets/storage-d089f752.js"},{id:"nofnjjmmplhlanoilgimbmlggpmcbhnd",file:"images/icon-128.png"},{id:"nogdppkjhdnlpkbbdbgpmekmbfpkkogb",file:"images/icon16.png"},{id:"noglbipnalamijcpdffjihmepadieajn",file:"assets/css/tabs-BV9302hA.css"},{id:"npcfccjbkefemjkfogefnhojohpdjflg",file:"Views/elements/emptyTableDiv.js"},{id:"npekhmlmillbfcbohangleomoblkckih",file:"manifest.json"},{id:"npofkafeajldomiogiiglkfebpnnaagn",file:"images/icon-extension.png"},{id:"oaanfnfogfibghojgandbkaemplgolhg",file:"js/simplicantIframe.js"},{id:"oacmmmjedhheaijfjidilonpngccnhdl",file:"icons/rec-pause.svg"},{id:"oahjfinghkkolgfkbfanpmhpiafmnepn",file:"frame.html"},{id:"oaohpcolgdghlibnhcodikejaebniamh",file:"img/logo-48.png"},{id:"oapcfehdepgmglmilpeebdlkmnomikif",file:"mmt-srcwl-nyvhsrsnpqtxqmv-/images/ios-arrow-down.svg"},{id:"oapemmgkpemiijidhjngkhglcogfafna",file:"assets/chunk-5aaaebcf.js"},{id:"obcjlbhpiidmfcohobdeemabmkchjbib",file:"config.json"},{id:"obkjfcijfdhcnjhbomcfgaloojcphlla",file:"app.js"},{id:"obmkdnnpbekmdbcbmkchhpfiphoglnoe",file:"tc_popup.html"},{id:"obolfpifkeiojdaeogeikmojgpkhikji",file:"content.styles.css"},{id:"obpcenkclppghkfpielmefegceegofeh",file:"assets/app-icon@16.png"},{id:"ocbnemplbdhaiamccedkmbgdlpjnlebk",file:"assets/js/modulepreload-polyfill.0c213636.js"},{id:"occmhhljphpdnjhpllcdamgcamnlbhoe",file:"assets/ContactContentScript.jsx-099ea6fd.js"},{id:"ocfbdigfloenanlhapodlbeappedipog",file:"assets/bookmark.png"},{id:"ocgihmepobcgbfibaopggddieigbopja",file:"images/tick.svg"},{id:"ochleehcckobncbecepoccjhpjfgepae",file:"assets/arkose/index.html"},{id:"ocjimmpclopkeggnbpjhehmdphfcibfe",file:"views/main.html"},{id:"ocopgnklkdgjomofiklloofpognlhgic",file:"dashboard.html"},{id:"ocpljaamllnldhepankaeljmeeeghnid",file:"loadable/5.2.0/styles-non-gmail-inbox.js"},{id:"odfhegllgcagejmjbanonlofmllejfea",file:"templates/container.html"},{id:"odfkeponbonopbfofpgcpijpkfkoobce",file:"css/no-coupon-overlay.css"},{id:"odnlhpgfojmkjbpbhgbmkohlbeincomi",file:"images/icon-16.png"},{id:"oeagafnbbddniopccnkgpojniljnpmmm",file:"popup.html"},{id:"oebdenheihiadgjalfijeclhjgoglpeh",file:"assets/icons/copy-icon.svg"},{id:"oedechpcnjolalnpghbibmadgfjgaopm",file:"images/check.svg"},{id:"oegciijckkacggdneooebokjflglhbap",file:"icons/logo128_1.png"},{id:"oeggnnpjdldnlcblnadgbbojicofmdfh",file:"icon32.plasmo.76b92899.png"},{id:"oenahigafdpmlmaenjgiedobgooekkmp",file:"css/lib/ng-sortable.style.min.css"},{id:"oenbcmincgcghjccfmamdfaliakeofnj",file:"rocket.css"},{id:"ofeanjpmjdifbpdcjakglfiphhdibokg",file:"static/content/addon.js"},{id:"ofhkmogndcokchjnplcffgaibhlckomd",file:"assets/MainConsole.tsx.0b521ac4.js"},{id:"ofhlminijomemliahkjjbgcbfoimjiaj",file:"src/offscreen.html"},{id:"ofjpapfmglfjdhmadpegoeifocomaeje",file:"content.styles.css"},{id:"oflolfahklajghjkoidbgejfppemoglg",file:"fix.css"},{id:"ogaoafnkmioibffoejjhojlgdbnbhbkn",file:"src/popup/popup.html"},{id:"ogkjbhnliddbciinokocmhaknnjijeph",file:"icons/dp-ext-rectangle.svg"},{id:"ogooomoloidibgaefnkejnhamdcckcaj",file:"js/widget.js"},{id:"ohafhojmjifocnichgidgmijbfkdpfce",file:"assets/browser-a04f2a00.js"},{id:"ohhlfnhiilpcplkhdgbennkobodabcad",file:"indeedInjectContentScript.bundle.js"},{id:"ohimkaeljphdbphhpdigkmgmnihoipfo",file:"sidebar/sidebar.js.LICENSE.txt"},{id:"ohjcpfgehefbhieohfmllokpklckplie",file:"_locales/en/messages.json"},{id:"ohjgcieckcgnjpbbmfojepagllbomnoa",file:"assets/loading.gif"},{id:"ohjlfnhjabflkiocjhchhogighnpbelg",file:"src/assets/icons/caret-right.png"},{id:"ohmpcdmgbjhkhnljkaeeahndchboiici",file:"images/logo16.png"},{id:"ohogbolcbnnmagamkjffiadkagfoghph",file:"_metadata/verified_contents.json"},{id:"oiecklaabeielolbliiddlbokpfnmhba",file:"assets/images/tab-icons/user-with-tie.svg"},{id:"oifhlabcikkagomckldggmbfignkpnhn",file:"content.styles.css"},{id:"oifhpkdmngmgaemkbjalbbgnminihhai",file:"tooltip.html"},{id:"oinggjlocmfgmpfcbilglbadminjogbj",file:"scripts/content.js"},{id:"ojcgkfpcbmikankjidlcmepjjjeecpfo",file:"dist/contentScripts/style.css"},{id:"ojcpemkflmgdghcdgccdhljokgnoghko",file:"icon-128.png"},{id:"ojencakindbmjhaehghemlfblglmajbi",file:"assets/flags/de.svg"},{id:"ojfkenmmieminleikclgocedgpggeecp",file:"hider/favicon-no-messages.png"},{id:"ojlbhpadmdgmnlbcjadbnaikogeegnce",file:"src/assets/extension-icons/logo-32.png"},{id:"ojnikmlgjpfiogeijjkpeakbedjhjcch",file:"permission.html"},{id:"okccjjhicmmkpllipkjbgdkbnpcamoob",file:"_locales/en/messages.json"},{id:"okdocmoamfmoeiifjhmgklgndmhaeaio",file:"ui/copy-to-clipboard-layer.html"},{id:"okfkdaglfjjjfefdcppliegebpoegaii",file:"assets/selectors-047c4a08.js"},{id:"okljidbiljmlhmlpmaefgaegnobfjgib",file:"assets/fonts/fa-brands-400.eot"},{id:"olcmcenphilegegccbbcjmjjbinbdkac",file:"media/linkedIn-buddy-icon-16.png"},{id:"oldceeleldhonbafppcapldpdifcinji",file:"content/languagetool/injector.js"},{id:"olddfhipinhhfbhhfodcnaalbcgmbida",file:"iframe.html"},{id:"olfdaaodhngodpnnoahamgfnndipjopi",file:"iframe/screen-camera.html"},{id:"olhmojhjiffmkbjagbcamdpjpbfhedjl",file:"content/unsafe.js"},{id:"olikhkphnfenjcgliidepgflkfdmondi",file:"content-scripts/gdocs-early.js"},{id:"omabkfajllnmllnmkiiamfomifpcgdfn",file:"index.html"},{id:"omehanmapldmkfhkcpiigghpikigegol",file:"js/bootstrap.js"},{id:"omgcnaaimcjjnaiipgffdhgpdhbfhdjm",file:"about.html"},{id:"ongdflobmedlkdbngbdfgeidpgllonce",file:"js/logic.js"},{id:"onilmncigdmmmanicghdoppnbgdoajkm",file:"js/backgroundPage.js.LICENSE.txt"},{id:"onipnmhgeammkmdpbbfpelcbdmdlpdeh",file:"tab/index.html"},{id:"onjifbpemkphnaibpiibbdcginjaeokn",file:"icons/icon128.png"},{id:"ooinebijdjljcgdkjpamogohcjpneodk",file:"img/logo-16.png"},{id:"oojabgademjndedjpcnagfgiglcpolgd",file:"content/web/images/toolbarButton-zoomOut.png"},{id:"oolmdenpaebkcokkccakmlmhcpnogalc",file:"img/l.svg"},{id:"oomalehpnncbpaehdmiminkckiibcdpn",file:"lib/jquery.ui.shake.min.js"},{id:"opafjjlpbiaicbbgifbejoochmmeikep",file:"images/menu.svg"},{id:"opcgffjclpcoeiajgachmeecapgldmcl",file:"images/assets/le-eclipse-tick.svg"},{id:"opdeoodggbccmpenpleeenkbhckopmpk",file:"img/icons/system-user.svg"},{id:"opeiecdnpgdmonckglnlkgelmicjohei",file:"amz-review-to-order-matching-enterprise-account-management.html"},{id:"opkeighmgcdkekpjdmcidgcpobhdopcc",file:"content.styles.css"},{id:"oplolbghaddhfckbgbnjeadnflmbahca",file:"images/d1f7a63448e3df.png"},{id:"opnkjppfhfgeigncclcfphoodaildlcd",file:"img/logo-16.png"},{id:"pacifckpofegbiddjcinckfidgankbel",file:"Asset 1.png"},{id:"paeleikfhjllfcdmkgnjmmkikchonnih",file:"img/loading.gif"},{id:"paihdpncghiaifanpfaddgaphjdaijbo",file:"assets/images/namira.png"},{id:"papnacbieidncdfbpabfchnlfcbdigjo",file:"resources/won-icon.svg"},{id:"pcambcbbejngpalfbdnlkgeaickjankc",file:"content_scripts/salesnav.js"},{id:"pcbmdiggonmiolmlnmnldclfnninaaci",file:"images/icon-16-gray.png"},{id:"pceedigolbgaoblpnekfeodfcpohhamn",file:"css/content.css"},{id:"pcobbcdoanadagdelmmjklpbjlgbgnna",file:"popup/index.html"},{id:"pcpopepajoicgemeoopcgkdafmcjkeid",file:"images/bootstrap-icons/circle-fill.svg"},{id:"pdciaimcnfkdbboodbpfpmhimkdlbaja",file:"assets/scripts/ember/sales_nav/current_company.js"},{id:"pdjlmgoncbmhinkijcklgdbjhfalddpl",file:"dist/contentScripts/style.css"},{id:"pdlcomibcikhgmoeemalafpdddlicapn",file:"assets/app-f9e06a4c.js"},{id:"pdlkpphleaimjjpnfgbhmjfbnpghknjl",file:"icons/delete.png"},{id:"peeecebkcdlibcfllbpmmkhggflcppem",file:"Content Script/Replacement Buttons/Facebook.svg"},{id:"pegifokgkfjelfkojpbonhnaobpljfci",file:"index.html"},{id:"peimgkadcinffebndofhpegopgdfgjda",file:"91fd0799c769cbfe451d.png"},{id:"pelpaakgpkphmafchifeaigefamllpam",file:"popup/index.html"},{id:"peoleidjbfidmgbhgjkfemaeonckankp",file:"images/star.svg"},{id:"pfgcpffbebicalfmjajbmacnfopgobom",file:"content.styles.css"},{id:"pfgdmbcgjhcnhegdbpnfcambagenamea",file:"styles.css"},{id:"pfjldacceamjoodnidfognkfnpdkfenb",file:"datakudo-icon.png"},{id:"pfmbhdbhllglinbdgfckkajcfcabeknl",file:"content.styles.css"},{id:"pgbnlealelcfkcefjdndafdhkilnkndo",file:"dist/contentScripts/style.css"},{id:"pgeifkcfahapopbfclaljmnfmohhpgmd",file:"entry.js"},{id:"pgenicongmjoccdhkdclfoimdnecpikb",file:"libs/analytics.js"},{id:"pgijefijihpjioibahpfadkabebenoel",file:"icons/logo.png"},{id:"pgkbilhblcclmglgocjmoahimlhfgadh",file:"js/details-contentscripts-injected-script.js"},{id:"pglgkbbnncfddpclbgomegdnjihljkdp",file:"src/options/index.html"},{id:"pgnfaifdbfoiehcndkoeemaifhhbgkmm",file:"images/panda1.png"},{id:"pgpighnkcmaoidkmnagniaaoomfcjdib",file:"panel/panel.html"},{id:"phealodnoblgkcfbhpdebpihdbfmggpi",file:"js/js.js"},{id:"phnpbbhhpgcinodkajklaiedjdppdakj",file:"fonts/Poppins-Black.ttf"},{id:"phoialdjmhokaphaijlaaghdafbbgadk",file:"js/scripts.js"},{id:"phpabngjffcmjlceoeefjnmjllnbfake",file:"scrape-xing.344cd8a2.js"},{id:"pieampkohkblkihmpejkmibaadambknj",file:"dist/contentScripts/style.css"},{id:"pijpdgfelkpobngnjholleebdlbkiood",file:"fonts/Graphik-Regular-Web.woff2"},{id:"pikicdbgibedakbonekcjbidijgkibkf",file:"cleanslate.css"},{id:"pikoeaffphpgbiffmfdofgkcjjlhgagb",file:"content.styles.css"},{id:"pjbogjhlgnmeihajjkmbgcfileaapdld",file:"interceptor.js"},{id:"pjjkjaoojgmglgafnmkkckggbnabdpko",file:"content.styles.css"},{id:"pjkkoggjblglckljjmofcdeanebdaimd",file:"assets/chunk-0f48469d.js"},{id:"pjlnajjbbpjgimaidaoinoeebehkcboj",file:"icon-34.png"},{id:"pjmlkdacmaejhkdcflncbpcpidkggoio",file:"assets/utils-245545a5.js"},{id:"pjojbbffkpdnffdbdficagjnpmjflifk",file:"manifest.json"},{id:"pkbmlamidkenakbhhialhdmmkijkhdee",file:"assets/css/custom.css"},{id:"pkhpccaeagckbkkenngbgijkkhcaejaa",file:"handlebars/gmail/inline/not-identified-icon.html"},{id:"pkioaceoacodhihonfjckpcldkgkdljb",file:"content.styles.css"},{id:"pkjjphhiebkbcalbmkjnhjbkkpenehoj",file:"content.js"},{id:"pkndhoamcmnpoeglhmfidkaffldmndmn",file:"static/media/icons.9b505585f6375fb99c33.woff2"},{id:"plbflflgpmbjkkjpecbblpdeiaobmklk",file:"contentStyle.css"},{id:"plcbjgieaambgedikohlhidpodkhkfnj",file:"images/icon_leaf_off.png"},{id:"pljfammmafemfgaobofijockjpkcfnfo",file:"feedbird_logo_48.png"},{id:"plkpaiigajjlegbjfllgenlglejfclfi",file:"leadzen-logo.png"},{id:"plmgcpmncieehlchnoknloacckpdoncc",file:"read_data.js"},{id:"plmojkojombikkdglcdbeffhpengbclg",file:"assets/src/contentScripts/linkedin-3e1b6cd2.js"},{id:"pmabdmjdbmhckdfbogjjlldcnpnlldbo",file:"lib/background.js"},{id:"pmbamgffllefnbjbaajelkbgbbkkomgj",file:"handle.html"},{id:"pmilieofkcmpfkjfcghfjblbhdmncgba",file:"img/logo_80.png"},{id:"pmjdahplhbdapepangpblklhcbicdlja",file:"dist/runtime.js"},{id:"pmnhcgfcafcnkbengdcanjablaabjplo",file:"sidebar.html"},{id:"pnbffadghcgnggdmpefiodonaiolfjgm",file:"images/briefcase128.png"},{id:"pndgalpgljgnechbmgcjjbkahijedgej",file:"Images/boss-logo.png"},{id:"pndokjccmhcdjopecnefdnhddhjpomif",file:"browser.b9f68bc3.js"},{id:"pnelhjpkcdoajkfnpfdijbjofjejmicc",file:"assets/logo.png"},{id:"pnndeikagpndnokododcjjmmaahmjlhb",file:"icons/16.png"},{id:"pnnlfndlmiholegbmmjigofdljaonhaj",file:"icons/logo/icon16.png"},{id:"pnpoodnmjibopedllgnageimndedamdd",file:"profile.html"},{id:"pobknfocgoijjmokmhimkfhemcnigdji",file:"src/pages/popup/index.html"},{id:"poehgcejkhpjjlppjnlbjbgckjfdpkpp",file:"img/logo-16.png"},{id:"pohgkjpkocbkjieefnicmbkjdhmololp",file:"audio/complete.mp3"},{id:"poijglaeepekpmfdjohmodmjobpmonke",file:"assets/_sentry-release-injection-file-CeLTwx_z.js.map"},{id:"ponhlabgdkidkhpgoljakmdmimjeiigc",file:"next/static/cAP7VHrqFGTva7KT0Wknh/_ssgManifest.js"},{id:"ppbfhhgcdehhbjigifndnfmcihegokbb",file:"dist/static/popupV2.html"},{id:"ppbjfmdejofomgglmammnchkaabnklfe",file:"image/blank.png"},{id:"ppdakpfeaodfophjplfdedpcodkdkbal",file:"fetchforwarder.js"},{id:"ppgndohgacfggdpbcdlgibdkdknimfmn",file:"assets/16x16.png"},{id:"ppikcbhmbpfjahnbkkhahngadfaianbn",file:"assets/other/img/icon-16.png"},{id:"ppjnhpngeejgohhilojfilpindffcgdc",file:"src/assets/right.png"},{id:"pplkiigdcpbacikbalacopmaklichaod",file:"logo16.png"}]
function g(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function m(){var e,t,n
return(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.indexOf("Chrome"))>-1}let v=(y=f(regeneratorRuntime.mark((function e(){var t,n
return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],n=h.map((function(e){let t=e.id,n=e.file
return fetch(`chrome-extension://${t}/${n}`)})),e.next=4,Promise.allSettled(n)
case 4:return e.sent.forEach((function(e,n){if("fulfilled"===e.status){const e=h[n]
e&&t.push(e.id)}})),e.abrupt("return",t)
case 7:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})
var y
let b=(E=f(regeneratorRuntime.mark((function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
var i
return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g()&&m()){e.next=2
break}return e.abrupt("return")
case 2:return e.next=4,v()
case 4:i=e.sent,Array.isArray(i)&&i.length>0&&t.fireTrackingPayload("AedEvent",u({browserExtensionIds:i},n))
case 6:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})
var E
const k="chrome-extension://"
function _(){return window.document}function T(e){const t=e.indexOf(k)
return-1===t?"":e.substring(t+k.length).split("/")[0]}function S(e,t,n){if(e.nodeType===Node.TEXT_NODE&&void 0!==e.textContent&&e.textContent.includes(t)&&n.push(T(e.textContent)),e.nodeType===Node.ELEMENT_NODE)for(let i=0;i<e.attributes.length;i++){const r=e.attributes.item(i)
void 0!==r.value&&r.value.includes(t)&&n.push(T(r.value))}for(let i=0;i<e.childNodes.length;i++)S(e.childNodes[i],t,n)}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(!g()||!m())return
const n=[]
S(_(),k,n),Array.isArray(n)&&n.length>0&&e.fireTrackingPayload("SpectroscopyEvent",u({browserExtensionIds:n},t))}},75023:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{Client:()=>se,EXTENSION_FIELDS:()=>ue,Task:()=>Q,closeClient:()=>le,getClient:()=>ce})
const i=(r=()=>!0,e=>e.then(r).catch(r))
var r
const o=e=>Object.keys(e),a=e=>null==e,s=e=>t=>o(t).reduce(((n,i)=>e(t,i)?n:{...n,[i]:t[i]}),{}),c=(s(((e,t)=>a(e[t]))),s(((e,t)=>void 0===e[t]))),l=e=>Object.fromEntries(e)
var u=n(73265)
function d(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e)
t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=typeof i)return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h="0.0.0-productSpec",g=function(){new Date
for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},m=()=>"undefined"!=typeof window&&window&&"node"!==window.appEnvironment,v=(e,t)=>{throw t},y="com.linkedin.realtimefrontend.Invalid"
function b(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter")
if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it")
return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}"function"==typeof SuppressedError&&SuppressedError
const E="fields",k=/^(\/[^?]+)\??(.*)$/,_=/[,()':]/g,T=/[,()':]/
function S(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if("object"!=typeof e)throw new Error("You must pass either an array or an object to the encode function.")}(t),w(t,!1)}function C(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if(Array.isArray(e)||"object"!=typeof e||null===e)throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")}(t),Object.keys(t).map((e=>e===E?`${E}=${t[E]}`:`${x(e)}=${w(t[e],!1)}`)).join("&")}function w(e,t){return Array.isArray(e)?function(e,t){const n=new Array(e.length)
for(let i=0;i<e.length;i++)n[i]=w(e[i],t)
return`List(${n.join(",")})`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){return`(${Object.keys(e).map((n=>`${x(n,t)}:${w(e[n],t)}`)).join(",")})`}(e,t):x(e,t)}function x(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":t&&"string"==typeof e&&T.test(e)?e.replace(_,escape):t?e:encodeURIComponent(e).replace(_,escape)}const I="application/x-www-form-urlencoded"
function A(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=k.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}(e.url||void 0)
if(n){const i={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(i[t]=e.headers[t]||"")
let r,o
if(i["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
o="multipart/mixed; boundary="+t,r=["--"+t,"Content-Type: "+I,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=I,r=n
return i["Content-Type"]=o,{body:r,headers:i,method:"POST",url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}const R=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),O=/^fs_/
function j(e){if("string"!=typeof e)throw new TypeError(`URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type ${typeof e}.`)
const t=R.exec(e)
if(t)return{type:t[1].replace(O,""),id:t[2]}}function M(e){return(e=>null!=e)(e.error)}const N=(e,t,n)=>n.indexOf(e)===t,P=e=>t=>!e.includes(t),D=(e,t,n)=>a(e)?t:Math.max(n,e),U=(e,t)=>`${e}${e.endsWith("/")||t.startsWith("/")?"":"/"}${t}`,L=e=>5===Math.floor(e/100),F=e=>U(e,"realtime/realtimeFrontendSubscriptions"),B=(e,t,n,i,r,o)=>{let a,s
return r?(a=i.map((t=>({clientConnectionId:e,topic:t}))),s=l(a.map((e=>[S(e),null!=o&&o[e.topic]?{authToken:r,graphQLQueryParams:{queryId:o[e.topic]}}:{authToken:r}])))):(a=i.map((t=>({clientConnectionId:e,topic:t}))),s=l(a.map((e=>[S(e),{}])))),{method:"PUT",url:`${F(t)}?${C({ids:a})}`,body:{entities:s},headers:n}},q=(e,t,n,i)=>{const r=[],o={}
return i.forEach((t=>{const n={clientConnectionId:e,topic:t.topicUrn}
r.push(n)
const i=S(n)
o[i]={authToken:t.authToken,graphQLQueryParams:t.graphQLQueryParams}})),{method:"PUT",url:`${F(t)}?${C({ids:r})}`,body:{entities:o},headers:n}},H=(e,t,n,i,r,o,a)=>{let s={isFirstHeartbeat:"FIRST_BEAT"===i,isLastHeartbeat:"FINAL_BEAT"===i,realtimeSessionId:e,mpName:r.name,mpVersion:r.version,clientId:r.clientId}
if(a&&o){const e={actorUrn:a,contextUrns:o}
s=f(f({},s),e)}var c
return{method:"POST",url:`${c=t,U(c,"realtime/realtimeFrontendClientConnectivityTracking")}?${C({action:"sendHeartbeat"})}`,body:s,headers:n}}
var G,V,K,W,z
class X{constructor(e,t,n){var i=this
G.add(this),this._serverClockTimeDiff=0,this._lastTimeClockSynced=0,this._recentServerClockTimeDiffs=[],V.set(this,(e=>this.connectionId?b(this,G,"m",W).call(this,q(this.connectionId,this._endpoint,this._requestHeaders,e)):Promise.reject({status:900,message:"API: subscribe cannot be performed because of missing connectionID"}))),K.set(this,(e=>null===this.connectionId?Promise.reject({status:900,message:"API: unsubscribe cannot be performed because of missing connectionID"}):b(this,G,"m",W).call(this,((e,t,n,i)=>f(f({},q(e,t,n,i)),{},{method:"DELETE"}))(this.connectionId,this._endpoint,this._requestHeaders,e)))),z.set(this,((e,t)=>{const n=e.errors??{},i=o(n).filter((t=>!L(e.errors[t].status))),r=o(n).filter((t=>L(e.errors[t].status)))
return[t.filter((e=>!i.includes(e.topicUrn)&&!r.includes(e.topicUrn))).map((e=>e.topicUrn)),i,r,e.errors]})),this.parseResponse=(e,t)=>{const n=e.errors??{},i=o(n).filter((t=>!L(e.errors[t].status))),r=o(n).filter((t=>L(e.errors[t].status)))
return[t.filter((e=>!i.includes(e)&&!r.includes(e))),i,r,e.errors]},this.apiCallSubscribe=(e,t,n)=>this.connectionId?this.sendRequest(B(this.connectionId,this._endpoint,this._requestHeaders,e,t,n)):Promise.reject({status:900,message:"API: subscribe cannot be performed because of missing connectionID"}),this.apiCallUnsubscribe=e=>null===this.connectionId?Promise.reject({status:900,message:"API: unsubscribe cannot be performed because of missing connectionID"}):this.sendRequest(((e,t,n,i)=>f(f({},B(e,t,n,i)),{},{method:"DELETE"}))(this.connectionId,this._endpoint,this._requestHeaders,e)),this.apiCallClockSync=()=>this.sendRequest(((e,t)=>{return{method:"GET",url:`${n=e,U(n,"realtime/realtimeFrontendTimestamp")}`,body:[],headers:t}
var n})(this._endpoint,this._requestHeaders)),this.apiCallConnectivityTrack=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0
return i.sendRequest(H(e,i._endpoint,i._requestHeaders,t,{name:i._mpName,version:i._mpVersion,clientId:i._clientId},n,r))},this._endpoint=e,this._connectionId=null,this._requestHeaders=t,this._mpName=n.name,this._mpVersion=n.version,this._clientId=n.id}get connectionId(){return this._connectionId}setConnectionId(e){e&&e.length>0&&(this._connectionId=e)}setSessionId(e){this._requestHeaders["x-li-realtime-session"]=e}setMpInfo(e){this._mpName=e.name,this._mpVersion=e.version,this._clientId=e.id}disconnect(){this._connectionId=null}subscribeV5(e,t){const n=t??0
return new Promise(((t,i)=>{null!==this.connectionId?b(this,V,"f").call(this,e).then((n=>{t(b(this,z,"f").call(this,n,e))})).catch((r=>{const{status:o}=r
412!==o&&L(o)&&n<2?this.subscribeV5(e,n+1).then(t).catch(i):i(r)})):i(new Error("RealtimeAPI: error - missing connectionID"))}))}unsubscribeV5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return new Promise(((n,i)=>{null!==this.connectionId?b(this,K,"f").call(this,e).then((t=>{const i=b(this,z,"f").call(this,t,e)
n(i)})).catch((r=>{const{status:o}=r
412!==o&&L(o)&&t<2?this.unsubscribeV5(e,t+1).then(n).catch(i):i(r)})):i(new Error("RealtimeAPI: error - missing connectionID"))}))}subscribe(e,t,n,i){const r=n??0
return new Promise(((n,o)=>{null!==this.connectionId?this.apiCallSubscribe(e,t,i).then((t=>{n(this.parseResponse(t,e))})).catch((a=>{const{status:s}=a
412!==s&&L(s)&&r<2?this.subscribe(e,t,r+1,i).then(n):o(a)})):o(new Error("RealtimeAPI: error - missing connectionID"))}))}unsubscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return new Promise(((n,i)=>{null!==this.connectionId?this.apiCallUnsubscribe(e).then((t=>{const i=this.parseResponse(t,e)
n(i)})).catch((r=>{const{status:o}=r
412!==o&&L(o)&&t<2?this.unsubscribe(e,t+1).then(n).catch(i):i(r)})):i(new Error("RealtimeAPI: error - missing connectionID"))}))}getTimestamp(){return this.apiCallClockSync()}trackActiveConnection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ALIVE",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0
return this.apiCallConnectivityTrack(e,t,n,i).catch((e=>{if("FINAL_BEAT"!==t)return console.warn("Realtime: session heartbeat failed",e),{type:"WARNING_INFO",message:"Realtime: session heartbeat failed"}}))}syncRealtimeServerClockTime(){const e=Date.now()
if(!(e-this._lastTimeClockSynced<86e4))return this._lastTimeClockSynced=e,this.getTimestamp().then((t=>{const n=Date.now()
this._recentServerClockTimeDiffs=this._recentServerClockTimeDiffs.filter((e=>n-e.syncedAt<36e5))
let i=n-e
0===i&&(i=1),this._recentServerClockTimeDiffs.push({syncedAt:n,clockDiff:t.timestamp-(e+n)/2,weight:1/i}),this._serverClockTimeDiff=this._computeWeightedAverageOfServerClockTimeDiff(this._recentServerClockTimeDiffs)}))}getServerClockTime(){return this._serverClockTimeDiff?Date.now()+this._serverClockTimeDiff:-1}_computeWeightedAverageOfServerClockTimeDiff(e){let t=0,n=0
for(const i of e){const{clockDiff:e,weight:r}=i
t+=r*e,n+=r}return Math.round(t/n)}sendRequest(e){return new Promise(((t,n)=>{let i=f({},e)
const r=i.url.split("?")[0],o=f({},e.headers)
i.body&&(i.body=JSON.stringify(i.body))
const a=new XMLHttpRequest
a.open(i.method,i.url),Object.entries(o).forEach((e=>{let[t,n]=e
return a.setRequestHeader(t,n)})),a.onerror=e=>{n({status:a.status,message:e.message||`Realtime: request failed - ${r}`})},i.url.length>1e3&&(i.forceQueryTunnel=!0,i=A(i)),a.onreadystatechange=()=>{const{status:e}=a
if(a.readyState===a.DONE)if(e>=200&&e<300)try{t(a.responseText?JSON.parse(a.responseText):null)}catch(t){n({status:e,message:`Realtime: Invalid JSON in API response - ${r}`})}else n({status:e??500,message:`Realtime: API Server Error ${r}`})},a.withCredentials=!0,a.send(i.body)}))}}V=new WeakMap,K=new WeakMap,z=new WeakMap,G=new WeakSet,W=function(e){return new Promise(((t,n)=>{let i=f({},e)
const r=i.url.split("?")[0],o=f({},e.headers)
i.body&&(i.body=JSON.stringify(i.body))
const a=new XMLHttpRequest
a.open(i.method,i.url),Object.entries(o).forEach((e=>{let[t,n]=e
return a.setRequestHeader(t,n)})),a.onerror=e=>{n({status:a.status,message:e.message||`Realtime: request failed - ${r}`})},i.url.length>1e3&&(i.forceQueryTunnel=!0,i=A(i)),a.onreadystatechange=()=>{const{status:e}=a
if(a.readyState===a.DONE)if(e>=200&&e<300)try{t(a.responseText?JSON.parse(a.responseText):null)}catch(t){n({status:e,message:`Realtime: Invalid JSON in API response - ${r}`})}else n({status:e??500,message:`Realtime: API Server Error ${r}`})},a.withCredentials=!0,a.send(i.body)}))}
class Q{constructor(e){this._timer=0,this._taskFunction=e}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
this._timer&&this.cancel(),this.schedule(this._taskFunction,e)}cancel(){this._timer&&(clearTimeout(this._timer),this._timer=0)}schedule(e,t){this._timer=setTimeout((()=>{e((n=>this.schedule(e,n||t)))}),t)}}const Y=()=>(0,u.generateRfc4122UUID)()
class ${constructor(e){this.fireEventTracking=e}fireRealtimeTracking(e,t){const{topic:n,publisherTrackingId:i,trackingId:r,id:o,receivedTime:a}=t,s={publisherTrackingId:i,realtimeEventId:o,realtimeTrackingId:r,topicUrn:n,receivedTime:a}
this.fireEventTracking(e,s)}}var J,Z,ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},te={exports:{}}
J=te,Z=te.exports,function(e){var t=e.setTimeout,n=e.clearTimeout,i=e.XMLHttpRequest,r=e.XDomainRequest,o=e.ActiveXObject,a=e.EventSource,s=e.document,c=e.Promise,l=e.fetch,u=e.Response,d=e.TextDecoder,f=e.TextEncoder,p=e.AbortController
if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(e){s.readyState="complete"}),!1)),null==i&&null!=o&&(i=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var h=l
l=function(e,t){var n=t.signal
return h(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader()
return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function g(){this.bitsNeeded=0,this.codePoint=0}g.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047
if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535
if(3===n)return e>=65536>>t&&e<<t<=1114111
throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1
if(12===e)return t>15?3:2
if(18===e)return 3
throw new Error}for(var i=65533,r="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var c=e[s]
0!==o&&(c<128||c>191||!t(a<<6|63&c,o-6,n(o,a)))&&(o=0,a=i,r+=String.fromCharCode(a)),0===o?(c>=0&&c<=127?(o=0,a=c):c>=192&&c<=223?(o=6,a=31&c):c>=224&&c<=239?(o=12,a=15&c):c>=240&&c<=247?(o=18,a=7&c):(o=0,a=i),0===o||t(a,o,n(o,a))||(o=0,a=i)):(o-=6,a=a<<6|63&c),0===o&&(a<=65535?r+=String.fromCharCode(a):(r+=String.fromCharCode(55296+(a-65535-1>>10)),r+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,r},null!=d&&null!=f&&function(){try{return"test"===(new d).decode((new f).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(d=g)
var m=function(){}
function v(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function y(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function b(e){for(var t=Object.create(null),n=e.split("\r\n"),i=0;i<n.length;i+=1){var r=n[i].split(": "),o=r.shift(),a=r.join(": ")
t[y(o)]=a}this._map=t}function E(){}function k(e){this._headers=e}function _(){}function T(){this._listeners=Object.create(null)}function S(e){t((function(){throw e}),0)}function C(e){this.type=e,this.target=void 0}function w(e,t){C.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function x(e,t){C.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){C.call(this,e),this.error=t.error}v.prototype.open=function(e,r){this._abort(!0)
var o=this,a=this._xhr,s=1,c=0
this._abort=function(e){0!==o._sendTimeout&&(n(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=m,a.onerror=m,a.onabort=m,a.onprogress=m,a.onreadystatechange=m,a.abort(),0!==c&&(n(c),c=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0}
var l=function(){if(1===s){var e=0,t="",n=void 0
if("contentType"in a)e=200,t="OK",n=a.contentType
else try{e=a.status,t=a.statusText,n=a.getResponseHeader("Content-Type")}catch(i){e=0,t="",n=void 0}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=t,o._contentType=n,o.onreadystatechange())}},u=function(){if(l(),2===s||3===s){s=3
var e=""
try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),u(),1===s||2===s||3===s){if(s=4,0!==c&&(n(c),c=0),o.readyState=4,"load"===e)o.onload(t)
else if("error"===e)o.onerror(t)
else{if("abort"!==e)throw new TypeError
o.onabort(t)}o.onreadystatechange()}},f=function(){c=t((function(){f()}),500),3===a.readyState&&u()}
"onload"in a&&(a.onload=function(e){d("load",e)}),"onerror"in a&&(a.onerror=function(e){d("error",e)}),"onabort"in a&&(a.onabort=function(e){d("abort",e)}),"onprogress"in a&&(a.onprogress=u),"onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||d(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||u():2===a.readyState&&l())}(e)}),!("contentType"in a)&&"ontimeout"in i.prototype||(r+=(-1===r.indexOf("?")?"?":"&")+"padding=true"),a.open(e,r,!0),"readyState"in a&&(c=t((function(){f()}),0))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(e){return this._contentType},v.prototype.setRequestHeader=function(e,t){var n=this._xhr
"setRequestHeader"in n&&n.setRequestHeader(e,t)},v.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},v.prototype.send=function(){if("ontimeout"in i.prototype&&("sendAsBinary"in i.prototype||"mozAnon"in i.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr
"withCredentials"in e&&(e.withCredentials=this.withCredentials)
try{e.send(void 0)}catch(e){throw e}}else{var n=this
n._sendTimeout=t((function(){n._sendTimeout=0,n.send()}),4)}},b.prototype.get=function(e){return this._map[y(e)]},null!=i&&null==i.HEADERS_RECEIVED&&(i.HEADERS_RECEIVED=2),E.prototype.open=function(e,t,n,r,o,a,s){e.open("GET",o)
var c=0
for(var l in e.onprogress=function(){var t=e.responseText.slice(c)
c+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===i.HEADERS_RECEIVED){var n=e.status,r=e.statusText,o=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders()
t(n,r,o,new b(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,l)&&e.setRequestHeader(l,s[l])
return e.send(),e},k.prototype.get=function(e){return this._headers.get(e)},_.prototype.open=function(e,t,n,i,r,o,a){var s=null,u=new p,f=u.signal,h=new d
return l(r,{headers:a,credentials:o?"include":"same-origin",signal:f,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new k(e.headers)),new c((function(e,t){var i=function(){s.read().then((function(t){if(t.done)e(void 0)
else{var r=h.decode(t.value,{stream:!0})
n(r),i()}})).catch((function(e){t(e)}))}
i()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){i(e)})),{abort:function(){null!=s&&s.cancel(),u.abort()}}},T.prototype.dispatchEvent=function(e){e.target=this
var t=this._listeners[e.type]
if(null!=t)for(var n=t.length,i=0;i<n;i+=1){var r=t[i]
try{"function"==typeof r.handleEvent?r.handleEvent(e):r.call(this,e)}catch(e){S(e)}}},T.prototype.addEventListener=function(e,t){e=String(e)
var n=this._listeners,i=n[e]
null==i&&(i=[],n[e]=i)
for(var r=!1,o=0;o<i.length;o+=1)i[o]===t&&(r=!0)
r||i.push(t)},T.prototype.removeEventListener=function(e,t){e=String(e)
var n=this._listeners,i=n[e]
if(null!=i){for(var r=[],o=0;o<i.length;o+=1)i[o]!==t&&r.push(i[o])
0===r.length?delete n[e]:n[e]=r}},w.prototype=Object.create(C.prototype),x.prototype=Object.create(C.prototype),I.prototype=Object.create(C.prototype)
var A=/^text\/event\-stream(;.*)?$/i,R=function(e,t){var n=null==e?t:parseInt(e,10)
return n!=n&&(n=t),O(n)},O=function(e){return Math.min(Math.max(e,1e3),18e6)},j=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){S(e)}}
function M(e,o){T.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,o,a){o=String(o)
var s=Boolean(a.withCredentials),c=a.lastEventIdQueryParameterName||"lastEventId",l=O(1e3),u=R(a.heartbeatTimeout,45e3),d="",f=l,p=!1,h=0,g=a.headers||{},m=a.Transport,y=N&&null==m?void 0:new v(null!=m?new m:null!=i&&"withCredentials"in i.prototype||null==r?new i:new r),b=null!=m&&"string"!=typeof m?new m:null==y?new _:new E,k=void 0,T=0,S=-1,C="",M="",P="",D="",U=0,L=0,F=0,B=function(t,n,i,r){if(0===S)if(200===t&&null!=i&&A.test(i)){S=1,p=Date.now(),f=l,e.readyState=1
var o=new x("open",{status:t,statusText:n,headers:r})
e.dispatchEvent(o),j(e,e.onopen,o)}else{var a=""
200!==t?(n&&(n=n.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==i?"-":i.replace(/\s+/g," "))+". Aborting the connection.",G(),o=new x("error",{status:t,statusText:n,headers:r}),e.dispatchEvent(o),j(e,e.onerror,o),console.error(a)}},q=function(i){if(1===S){for(var r=-1,o=0;o<i.length;o+=1)(c=i.charCodeAt(o))!=="\n".charCodeAt(0)&&c!=="\r".charCodeAt(0)||(r=o)
var a=(-1!==r?D:"")+i.slice(0,r+1)
D=(-1===r?D:"")+i.slice(r+1),""!==i&&(p=Date.now(),h+=i.length)
for(var s=0;s<a.length;s+=1){var c=a.charCodeAt(s)
if(-1===U&&c==="\n".charCodeAt(0))U=0
else if(-1===U&&(U=0),c==="\r".charCodeAt(0)||c==="\n".charCodeAt(0)){if(0!==U){1===U&&(F=s+1)
var g=a.slice(L,F-1),m=a.slice(F+(F<s&&a.charCodeAt(F)===" ".charCodeAt(0)?1:0),s)
"data"===g?(C+="\n",C+=m):"id"===g?M=m:"event"===g?P=m:"retry"===g?(l=R(m,l),f=l):"heartbeatTimeout"===g&&(u=R(m,u),0!==T&&(n(T),T=t((function(){V()}),u)))}if(0===U){if(""!==C){d=M,""===P&&(P="message")
var v=new w(P,{data:C.slice(1),lastEventId:M})
if(e.dispatchEvent(v),"open"===P?j(e,e.onopen,v):"message"===P?j(e,e.onmessage,v):"error"===P&&j(e,e.onerror,v),2===S)return}C="",P=""}U=c==="\r".charCodeAt(0)?-1:0}else 0===U&&(L=s,U=1),1===U?c===":".charCodeAt(0)&&(F=s+1,U=2):2===U&&(U=3)}}},H=function(i){if(1===S||0===S){S=-1,0!==T&&(n(T),T=0),T=t((function(){V()}),f),f=O(Math.min(16*l,2*f)),e.readyState=0
var r=new I("error",{error:i})
e.dispatchEvent(r),j(e,e.onerror,r),null!=i&&console.error(i)}},G=function(){S=2,null!=k&&(k.abort(),k=void 0),0!==T&&(n(T),T=0),e.readyState=2},V=function(){if(T=0,-1===S){p=!1,h=0,T=t((function(){V()}),u),S=0,C="",P="",M=d,D="",L=0,F=0,U=0
var n=o
if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==d){var i=o.indexOf("?")
n=-1===i?o:o.slice(0,i+1)+o.slice(i+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===c?"":e})),n+=(-1===o.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(d)}var r=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers
if(null!=s)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a[l]=s[l])
try{k=b.open(y,B,q,H,n,r,a)}catch(e){throw G(),e}}else if(p||null==k){var f=Math.max((p||Date.now())+u-Date.now(),1)
p=!1,T=t((function(){V()}),f)}else H(new Error("No activity within "+u+" milliseconds. "+(0===S?"No response received.":h+" chars received.")+" Reconnecting.")),null!=k&&(k.abort(),k=void 0)}
e.url=o,e.readyState=0,e.withCredentials=s,e.headers=g,e._close=G,V()}(this,e,o)}var N=null!=l&&null!=u&&"body"in u.prototype
M.prototype=Object.create(T.prototype),M.prototype.CONNECTING=0,M.prototype.OPEN=1,M.prototype.CLOSED=2,M.prototype.close=function(){this._close()},M.CONNECTING=0,M.OPEN=1,M.CLOSED=2,M.prototype.withCredentials=void 0
var P,D=a
null==i||null!=a&&"withCredentials"in a.prototype||(D=M),P=function(e){e.EventSourcePolyfill=M,e.NativeEventSource=a,e.EventSource=D}(Z),void 0!==P&&(J.exports=P)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ee:globalThis)
var ne,ie=(ne=te.exports)&&ne.__esModule&&Object.prototype.hasOwnProperty.call(ne,"default")?ne.default:ne
const re={domain:"",mpInfo:{name:"common-time",version:h,id:"common-time"},detectMissedHeartbeat:!0,heartbeatPollInterval:15e3,heartbeatGapThreshold:3e4,reconnectGapThreshold:3e4,sessionHeartbeat:6e4,coverageGap:18e4,acceptableErrorCount:2,alertChannelErrors:!1,maxRetryCount:2,connectHeaders:{},urlQueryParams:"?rc=1",enableCustomRetry:!1,contextUrns:[]},oe=m()?window.EventSource:void 0
function ae(e){"undefined"!=typeof globalThis?globalThis.EventSource=e:window.EventSource=e}class se{static getOrUpdateClient(e){return se.singleton?se.singleton.updateOptions(e):se.create(e),se.singleton}static create(e){if(g("Version",h),!m())throw new Error("common-time client can only be used in a browser environment\n\nFor more information please reference https://go/github%20multiproduct/common-time#user-content-node-compatibility")
if(ae(e.eventSource??ie.EventSourcePolyfill),!(o(e).length>0&&e.mpInfo))throw new Error(`Unable to create common-time client - mailbox 'options' is empty or missing required data: ${JSON.stringify({options:e})}`)
return function(e){const t=[]
if(!e||!o(e).length)throw new Error(`Required header ${e} not supplied: }`)
if("x-li-track"in e||t.push("x-li-track"),"x-li-query-map"in e&&!("x-li-query-accept"in e)&&t.push("x-li-query-accept"),"x-li-recipe-map"in e&&!("x-li-recipe-accept"in e)&&t.push("x-li-recipe-accept"),"x-li-query-map"in e&&"x-li-recipe-map"in e){const n=JSON.parse(e["x-li-query-map"]).topicToGraphQLQueryParams,i=((e,t)=>{const n=o(e),i=o(t),r=new Set(n),a=new Set(i)
return[...r].filter((e=>a.has(e)))})(JSON.parse(e["x-li-recipe-map"]),n)
i.length>0&&t.push(`x-li-query and x-li-recipe map headers are supplied with the same topic: ${i.join(", ")}`)}if(t.length>0)throw new Error(`Required headers not supplied: ${t.join(", ")}`)
g("Headers validation pass: ",o(e).join(", "))}(e.connectHeaders),se.singleton=new se(e),se.singleton}static close(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
if(!se.singleton||!m())return Promise.resolve(!1)
let t=Promise.resolve()
const n=se.singleton
return se._connectivityTrackingTimer&&n&&(clearInterval(se._connectivityTrackingTimer),se._connectivityTrackingTimer=0,e&&(t=n._api.trackActiveConnection(n.sessionId,"FINAL_BEAT"))),n._boundUnloadHandler&&window.removeEventListener("beforeunload",n._boundUnloadHandler),window.removeEventListener("offline",n.handleLoseInternetConnection.bind(n)),window.removeEventListener("online",n.handleGainInternetConnection.bind(n)),n.disconnectAndClose(),n._autoReconnect="FAIL-ON-ERROR",n._realtimeTracking=null,n._contextUrns=[],re.contextUrns=[],se.singleton=null,m()&&oe&&ae(oe),i(t)}get connectionId(){return this._api.connectionId}get options(){return this._options}get realtimeTracking(){return this._realtimeTracking}get connected(){return null!==this._eventSource&&1===this._eventSource.readyState}get sessionId(){return se._realtimeSessionId}get realtimeConnectUrl(){const e=this._options.domain.endsWith("/")?"":"/"
return`${this._options.domain}${e}realtime/connect${this._options.urlQueryParams}`}get eventSourceUrl(){return this.realtimeConnectUrl}get serverClockTime(){return this._api.getServerClockTime()}get sessionHeartbeatInterval(){return this._options.sessionHeartbeat}get HeartbeatGapThreshold(){return this._options.heartbeatGapThreshold}subscribe(e){return e.forEach((e=>{this._subscribedTopics.set(e.topicUrn,e)})),this.connectionId?this.apiSubscribeV5(e):Promise.resolve(void 0)}unsubscribe(e){return new Promise(((t,n)=>{this._api.unsubscribeV5(e).then((n=>{let[i,r]=n
i.forEach((e=>this.triggerEvent("unsubscribe",e))),r.forEach((e=>this.triggerEvent("unsubscribeFailed",e))),i.forEach((e=>{this._subscribedTopics.delete(e)}))
const o=[]
e.forEach((e=>{const t=new Map,{topicUrn:n}=e,a=i.includes(n)?[n]:[],s=[]
r.length&&r.includes(n)&&s.push(n),t.set(e.topicUrn,f(f({},e),{},{succeeded:a,failed:s})),o.push(t)})),t(o)})).catch((e=>{this.triggerEvent("error",e),n(e)}))}))}apiSubscribeV5(e,t){const n=t??1
return new Promise(((i,r)=>{this._api.subscribeV5(e,t).then((t=>{let[a,s,c,l]=t
if(o(l).length>0){const t=Object.entries(l).find((e=>403===e[1].status))
t&&t.length>0&&[...this._subscribedTopics.values()].forEach((t=>{const n=e.find((e=>e.topicUrn===t.topicUrn))
n&&t.authToken===n.authToken&&(this._subscribedTopics.delete(t.topicUrn),n.authToken&&this.triggerEvent("authSubscribeFailed",n.authToken))}))}a.forEach((e=>this.triggerEvent("subscribe",e)))
const u=e.filter((e=>c.includes(e.topicUrn)))
if(u.length>0&&n<this._options.maxRetryCount)this.apiSubscribeV5(u,n+1).then((t=>{const n=[]
e.forEach((e=>{const i=new Map
let r=[...s],o=[...a]
const c=null==t?void 0:t.find((t=>t.get(e.topicUrn)))
if(null!=c&&c.size){const t=c.get(e.topicUrn)
null!=t&&t.succeeded&&(o=o.concat([...t.succeeded])),(null==t?void 0:t.failed)&&(r=r.concat([...t.failed]))}i.set(e.topicUrn,f(f({},e),{},{succeeded:o,failed:r})),n.push(i)})),i(n)})).catch(r)
else{const t=[]
e.forEach((e=>{const n=new Map,{topicUrn:i}=e,r=a.includes(i)?[i]:[],o=[]
s.length&&s.includes(i)&&o.push(i),c.length&&c.includes(i)&&!o.includes(i)&&o.push(i),n.set(i,f(f({},e),{},{failed:o,succeeded:r})),t.push(n)})),s.forEach((e=>this.triggerEvent("subscribeFailed",e))),i(t)}})).catch((t=>{if(412===t.status){this.scheduleReconnect()
const t=[]
e.forEach((e=>{const n=new Map
n.set(e.topicUrn,f(f({},e),{},{succeeded:[],failed:[]})),t.push(n)})),i(t)}else this.triggerEvent("error",t),r(t)}))}))}addSubscriptionForStarfish(e){const{topicUrn:t,authToken:n,queryId:i}=e
if(this._topicSpecificSubscriptions.set(t,e),this.connectionId){const e={}
return e[t]=i,this.apiSubscribe([t],n,1,e)}return Promise.resolve({succeeded:[t],failed:[]})}addSubscriptions(e,t){const n=t?this.filterSubscriptionListForAuthTopics(e,t,this._subscribedAuthBroadcastTopics):this.filterSubscriptionListForNonAuthTopics(e,this._subscribedNonAuthTopics)
if(0===n.length)return Promise.resolve({succeeded:[],failed:[]})
if(this.connectionId)return this.apiSubscribe(n,t,1)
if(void 0!==t){const e=this._subscribedAuthBroadcastTopics[t]??[]
this._subscribedAuthBroadcastTopics[t]=[...e,...n]}else this._subscribedNonAuthTopics=[...this._subscribedNonAuthTopics,...n]
return Promise.resolve({succeeded:n,failed:[]})}removeSubscriptions(e){return new Promise(((t,n)=>{const i=(e instanceof Array?e:[e]).filter(N).filter((r=this._subscribedNonAuthTopics,e=>r.includes(e)))
var r
if(0===i.length)return t({succeeded:[],failed:[]})
this._api.unsubscribe(i).then((e=>{let[n,i]=e
n.forEach((e=>this.triggerEvent("unsubscribe",e))),i.forEach((e=>this.triggerEvent("unsubscribeFailed",e))),this._subscribedNonAuthTopics=this._subscribedNonAuthTopics.filter(P(n)),t({succeeded:n,failed:i})})).catch((e=>{this.triggerEvent("error",e),n(e)}))}))}updateAuthToken(e,t){const n=this._subscribedAuthBroadcastTopics[t]
n&&(this._subscribedAuthBroadcastTopics[e]=n,delete this._subscribedAuthBroadcastTopics[t])}addActorUrn(e){this._actorUrn||(this._actorUrn=e,this._contextUrns.length&&this.triggerActiveConnection())}addContext(e){-1===this._contextUrns.indexOf(e)&&(this._contextUrns.push(e),this._actorUrn&&this.triggerActiveConnection())}removeContext(e){-1!==this._contextUrns.indexOf(e)&&(this._contextUrns=this._contextUrns.filter((t=>t!==e)),this.triggerActiveConnection())}addEventListener(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
const[i,r]=t
switch(i){case"authSubscribeFailed":this._events.authSubscribeFailed.add(r)
break
case"connect":this._events.connect.add(r)
break
case"error":this._events.error.add(r)
break
case"close":this._events.close.add(r)
break
case"heartbeat":this._events.heartbeat.add(r)
break
case"open":this._events.open.add(r)
break
case"poorRealtimeConnectionDetected":this._events.poorRealtimeConnectionDetected.add(r)
break
case"reconnected":this._events.reconnected.add(r)
break
case"reconnecting":this._events.reconnecting.add(r)
break
case"subscribe":this._events.subscribe.add(r)
break
case"subscribeFailed":this._events.subscribeFailed.add(r)
break
case"topic":this._events.topic.add(r)
break
case"topicsResubscribed":this._events.topicsResubscribed.add(r)
break
case"unsubscribe":this._events.unsubscribe.add(r)
break
case"unsubscribeFailed":this._events.unsubscribeFailed.add(r)
break
case"warning":this._events.warning.add(r)
break
default:v(0,new Error("Unknown event type"))}return()=>this.removeEventListener(...t)}removeEventListener(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
let[i,r]=t
return this._events[i].delete(r)}_getConnectionHandler(e,t,n){return i=>{n.removeEventListener("error",t),n.addEventListener("error",this.eventSourceOnError.bind(this)),this.startHeartBeatMonitoring(),this.triggerEvent("open",i),this._lastConnectedStatus=this.connected,e()}}connect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"FAIL-ON-ERROR"
return"RETRY"===this._autoReconnect?Promise.resolve():(this._explicitlyConnected=!0,this._autoReconnect=e,this._internalConnect(e))}_internalConnect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"FAIL-ON-ERROR"
const t=(t,n)=>i=>{"FAIL-ON-ERROR"===e?n(M(i)?i.error:i):(this.eventSourceOnError(i),t())}
return this.setNewSessionId(this.sessionId),this._eventSource?Promise.resolve():new Promise(((e,n)=>{this._lastConnectedStatus=!0
const i=this.connectEventSource()
if(0!==i.readyState){const e=new Error(`EventSource readyState is incorrect: ${i.readyState}`)
this.triggerEvent("error",e),n(e)}else{const r=t(e,n)
i.addEventListener("error",r),i.addEventListener("open",this._getConnectionHandler(e,r,i)),i.addEventListener("message",this.eventSourceOnmessage.bind(this))}}))}disconnectAndClose(){this._realtimeChannelDisconnectedTime||this.recordConnectionLostTime(),this._heartBeatMonitor.cancel(),this._reconnectTask.cancel(),this._eventSource&&(this._api.disconnect(),this._eventSource.close(),this._eventSource=null),this._eventSourceErrorCount=0,this.triggerEvent("close",null)}constructor(e){var t=this
this._events={authSubscribeFailed:new Set,close:new Set,connect:new Set,error:new Set,heartbeat:new Set,open:new Set,poorRealtimeConnectionDetected:new Set,reconnected:new Set,reconnecting:new Set,subscribe:new Set,subscribeFailed:new Set,topic:new Set,unsubscribe:new Set,unsubscribeFailed:new Set,topicsResubscribed:new Set,warning:new Set},this._eventSourceErrorCount=0,this._eventSource=null,this._lastHeartBeatReceivedAt=null,this._realtimeTracking=null,this._contextUrns=[],this._subscribedTopics=new Map,this._subscribedNonAuthTopics=[],this._subscribedAuthBroadcastTopics={},this._topicSpecificSubscriptions=new Map,this._personalTopicsTypes=[],this._lastConnectedStatus=!1,this._explicitlyConnected=!1,this._autoReconnect="FAIL-ON-ERROR",this._boundUnloadHandler=null,this.eventSourceOnmessage=e=>{const{type:t,eventData:n}=this.parseMessage(e)
switch(t){case"com.linkedin.realtimefrontend.FailedEvent":{const e=`Decoration failure occurred for topic URN: ${n.topic}`
this.triggerEvent("error",{status:700,message:e})}break
case y:this.triggerEvent("error",{status:500,message:JSON.stringify(n)})
break
case"com.linkedin.realtimefrontend.ClientConnection":{g("⚡️ Received clientConnection event")
const{id:e,personalTopics:t}=n
this._personalTopicsTypes=[...t],this._api.setConnectionId(e),this._subscribedTopics.size>0&&this.apiSubscribeV5([...this._subscribedTopics.values()]),this._subscribedNonAuthTopics.length>0&&this.restoreSubscriptions(),o(this._subscribedAuthBroadcastTopics).length>0&&this.restoreAuthSubscriptions(),this._topicSpecificSubscriptions.size>0&&this.restoreTopicSpecificSubscriptions(),this._lastHeartBeatReceivedAt=Date.now(),this.triggerEvent("connect",{id:e,personalTopicsTypes:this._personalTopicsTypes})
const i=this.getRealtimeChannelDisconnectedTime()
i>this.options.reconnectGapThreshold&&this.triggerEvent("reconnected",i),this._realtimeChannelDisconnectedTime=null,this._api.syncRealtimeServerClockTime()}break
case"com.linkedin.realtimefrontend.Heartbeat":this._lastHeartBeatReceivedAt=Date.now(),this.triggerEvent("heartbeat",this._lastHeartBeatReceivedAt)
break
default:{const e=n,t=(i=this._personalTopicsTypes,e=>{const t=j(e)
return!!t&&i.includes(t.type)})
if(this._subscribedTopics.has(e.topic)||this._subscribedNonAuthTopics.includes(e.topic)||t(e.topic)||this.isAuthBroadcastTopic(e.topic)||this._topicSpecificSubscriptions.has(e.topic)){if(this.triggerEvent("topic",f({},n)),this.realtimeTracking){const t=this.serverClockTime
e.receivedTime=t,this.realtimeTracking.fireRealtimeTracking("RealtimeEventDeliveredEvent",e)}}else this.triggerEvent("error",{status:600,message:`Received a message for "${e.topic}" that was not subscribed to`})}}var i},this.triggerEvent=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i]
let[r,o]=n
switch(r){case"authSubscribeFailed":t._events.authSubscribeFailed.forEach((e=>e(r,o)))
break
case"connect":t._events.connect.forEach((e=>e(r,o)))
break
case"error":t._events.error.forEach((e=>e(r,o)))
break
case"close":t._events.close.forEach((e=>e(r,o)))
break
case"heartbeat":t._events.heartbeat.forEach((e=>e(r,o)))
break
case"open":t._events.open.forEach((e=>e(r,o)))
break
case"poorRealtimeConnectionDetected":t._events.poorRealtimeConnectionDetected.forEach((e=>e(r,o)))
break
case"reconnected":t._events.reconnected.forEach((e=>e(r,o)))
break
case"reconnecting":t._events.reconnecting.forEach((e=>e(r,o)))
break
case"subscribe":t._events.subscribe.forEach((e=>e(r,o)))
break
case"subscribeFailed":t._events.subscribeFailed.forEach((e=>e(r,o)))
break
case"topic":t._events.topic.forEach((e=>e(r,o)))
break
case"topicsResubscribed":t._events.topicsResubscribed.forEach((e=>e(r,o)))
break
case"unsubscribe":t._events.unsubscribe.forEach((e=>e(r,o)))
break
case"unsubscribeFailed":t._events.unsubscribeFailed.forEach((e=>e(r,o)))
break
case"warning":t._events.warning.forEach((e=>e(r,o)))
break
default:v(0,new Error("Unknown event type"))}return!0},this.eventSourceOnError=e=>{this._eventSourceErrorCount++,this.detectConnectionLost(),M(e)?(this.itShouldRetry(e.error.status)&&this.scheduleReconnect(),this.triggerEvent("error",{status:e.error.status??500,message:`EventSource error - ${e.error.message??"unknown"}`,originalEvent:e.error})):(this.itShouldRetry()&&this.scheduleReconnect(),this.options.alertChannelErrors&&this.triggerEvent("error",{status:900,message:"Unknown EventSource connection error/warning event",originalEvent:e}))},this.parseMessage=e=>{let t
try{t=JSON.parse(e.data)}catch(e){const t=e instanceof Error?e.message:"JSON not valid"
return{type:y,eventData:`Error while parsing event data - ${t}`}}const n=o(t)[0]
return{type:n,eventData:t[n]}},this._reconnectHandler=e=>{this.triggerEvent("reconnecting",null),this._internalConnect().catch((t=>{this._eventSource=null
const n={status:t.status??900,message:`EventSource connection failed - ${t.message??"unknown reason"}`,originalEvent:t}
this.itShouldRetry(n.status)?(this.options.alertChannelErrors&&this.triggerEvent("error",n),e(this._reconnectDelay())):this.triggerEvent("error",n)}))},this._heartbeatCheck=e=>{if(null===this._realtimeChannelDisconnectedTime){if(null===this._lastHeartBeatReceivedAt)return void this.scheduleReconnect()
{const e=Date.now()-this._lastHeartBeatReceivedAt
if(e>this.options.heartbeatGapThreshold)return this.triggerEvent("poorRealtimeConnectionDetected",e),void this.scheduleReconnect()}}e()},this.scheduleReconnect=()=>{this._options.enableCustomRetry&&(this.disconnectAndClose(),this._reconnectTask.start(this._reconnectDelay()))},this.startHeartBeatMonitoring=()=>{this._options.detectMissedHeartbeat&&this._heartBeatMonitor.start(this.options.heartbeatPollInterval)},this.setupLeaveGuard=()=>{this._boundUnloadHandler&&window.removeEventListener("beforeunload",this._boundUnloadHandler),this._boundUnloadHandler=this.beforeUnloadHandler.bind(this),window.addEventListener("beforeunload",this._boundUnloadHandler)},this.setupOnlineGuard=()=>{window.addEventListener("offline",this.handleLoseInternetConnection.bind(this)),window.addEventListener("online",this.handleGainInternetConnection.bind(this))},this._options=f(f({},re),e),this._options.connectHeaders["x-li-realtime-session"]=this.sessionId,this._options.sessionHeartbeat=D(this._options.sessionHeartbeat,null,6e4),this._options.reconnectGapThreshold=Math.max(0,this._options.reconnectGapThreshold??re.reconnectGapThreshold),this._options.heartbeatGapThreshold=Math.max(2*this._options.heartbeatPollInterval,this.options.heartbeatGapThreshold),this._reconnectDelay=(e=>{let t=0
return()=>{t++
const e=t-Math.max(1,0)
if(e<=0)return 0
const n=4*Math.random()
return 1===e?1e3*(5+n):1e3*(10+n)}})(),this._api=new X(this._options.domain,this._options.connectHeaders,this._options.mpInfo),this._heartBeatMonitor=new Q(this._heartbeatCheck.bind(this)),this._reconnectTask=new Q(this._reconnectHandler.bind(this)),this._lastTimeConnectionLost=null,this._realtimeChannelDisconnectedTime=null,this._options.tracking&&(this._realtimeTracking=new $(this._options.tracking.fireEventCallback)),this._actorUrn=this.options.actorUrn,this._contextUrns=this.options.contextUrns??[],this._experimentalValues=this.options.experimental,this.setupLeaveGuard(),this.setupOnlineGuard(),this.setNewSessionId(Y()),this.startConnectivityTracker()}setNewSessionId(e){se._realtimeSessionId=e,this._options.connectHeaders["x-li-realtime-session"]=this.sessionId,this._api.setSessionId(this.sessionId)}updateOptions(e){if(se.singleton){const t=this.options.sessionHeartbeat
this._options=f(f(f({},se.singleton._options),c(e)),{},{tracking:se.singleton._options.tracking,experimental:f(f({},se.singleton._options.experimental),e.experimental),sessionHeartbeat:D(e.sessionHeartbeat,this.options.sessionHeartbeat,6e4)}),this._api.setMpInfo(this._options.mpInfo),t!==this.options.sessionHeartbeat&&this.startConnectivityTracker()}}startConnectivityTracker(){let e=!0
se._connectivityTrackingTimer&&(clearInterval(se._connectivityTrackingTimer),se._connectivityTrackingTimer=0,e=!1),this._options.sessionHeartbeat&&(e&&(this._actorUrn?this._api.trackActiveConnection(this.sessionId,"FIRST_BEAT",this._contextUrns,this._actorUrn).then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)})):this._api.trackActiveConnection(this.sessionId,"FIRST_BEAT").then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)}))),se._connectivityTrackingTimer=setInterval(this.triggerActiveConnection.bind(this),this._options.sessionHeartbeat))}triggerActiveConnection(){this._actorUrn?this._api.trackActiveConnection(this.sessionId,"ALIVE",this._contextUrns,this._actorUrn).then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)})):this._api.trackActiveConnection(this.sessionId,"ALIVE").then((e=>{e&&"WARNING_INFO"===e.type&&this.triggerEvent("warning",e)}))}stopConnectivityTracker(){se._connectivityTrackingTimer&&(clearInterval(se._connectivityTrackingTimer),se._connectivityTrackingTimer=0,this._actorUrn?this._api.trackActiveConnection(this.sessionId,"FINAL_BEAT",this._contextUrns,this._actorUrn):this._api.trackActiveConnection(this.sessionId,"FINAL_BEAT"))}handleLoseInternetConnection(){this.disconnectAndClose(),this.stopConnectivityTracker(),this.setNewSessionId(Y())}handleGainInternetConnection(){if(this.startConnectivityTracker(),this._explicitlyConnected){const e=Date.now()-this.options.reconnectGapThreshold-1
this._realtimeChannelDisconnectedTime=Math.min(e,this._realtimeChannelDisconnectedTime??e),setTimeout((()=>{this._internalConnect(this._autoReconnect)}),3e3)}}filterSubscriptionListForNonAuthTopics(e,t){const n=(i=this._personalTopicsTypes,e=>{const t=j(e)
return!t||!i.includes(t.type)})
var i
const r=P(t)
return(e instanceof Array?e:[e]).filter(N).filter(n).filter(r)}filterSubscriptionListForAuthTopics(e,t,n){const i=e instanceof Array?e:[e],r=n[t]
return r?i.filter(N).filter(P(r)):i.filter(N)}isAuthBroadcastTopic(e){return void 0!==o(this._subscribedAuthBroadcastTopics).find((t=>{var n
return null===(n=this._subscribedAuthBroadcastTopics[t])||void 0===n?void 0:n.includes(e)}))}getTimeSinceLastDisconnect(){if(null===this._lastTimeConnectionLost)return 0
const e=Date.now()
return e-(this._lastTimeConnectionLost??e)}getRealtimeChannelDisconnectedTime(){return this._realtimeChannelDisconnectedTime?Date.now()-this._realtimeChannelDisconnectedTime:0}recordConnectionLostTime(){this._lastConnectedStatus=!1,this._realtimeChannelDisconnectedTime=Date.now(),this._lastTimeConnectionLost=Date.now(),g("RT connection lost at",this._lastTimeConnectionLost)}restoreSubscriptions(){const e=this.filterSubscriptionListForNonAuthTopics(this._subscribedNonAuthTopics,[])
return 0===e.length?Promise.resolve({succeeded:[],failed:[]}):this.apiSubscribe(e).then((t=>(this.getTimeSinceLastDisconnect()>=this._options.reconnectGapThreshold&&this.triggerEvent("topicsResubscribed",{topics:e,timeGapMs:this.getTimeSinceLastDisconnect()}),t)))}restoreAuthSubscriptions(){return o(this._subscribedAuthBroadcastTopics).reduce(((e,t)=>{const n=t.substring(Math.max(t.length-20,0))
return e.then((e=>{g("restoring auth subscriptions with token",`...${n}`)
const i=this._subscribedAuthBroadcastTopics[t]
return this.apiSubscribe(i,t).then((i=>(this.getTimeSinceLastDisconnect()>=this.options.reconnectGapThreshold&&this.triggerEvent("topicsResubscribed",{token:t,topics:i.succeeded,timeGapMs:this.getTimeSinceLastDisconnect()}),g(`auth subscription for [...${n}]`,i.succeeded.length,"succeeded",i.failed.length,"failed"),[...e,i])))}))}),Promise.resolve([]))}restoreTopicSpecificSubscriptions(){return[...this._topicSpecificSubscriptions.values()].reduce(((e,t)=>{const{topicUrn:n,authToken:i,queryId:r}=t,o=null==i?void 0:i.substring(Math.max(i.length-20,0)),a={[n]:r}
return e.then((e=>(g("restoring auth subscriptions with token",`...${o}`),this.apiSubscribe([n],i,1,a).then((t=>(this.getTimeSinceLastDisconnect()>=this.options.reconnectGapThreshold&&this.triggerEvent("topicsResubscribed",{token:i,topics:[n],queryId:a[n],timeGapMs:this.getTimeSinceLastDisconnect()}),g(`auth subscription for [...${o}]`,t.succeeded.length,"succeeded",t.failed.length,"failed"),[...e,t]))))))}),Promise.resolve([]))}apiSubscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>3?arguments[3]:void 0
const i=(arguments.length>2?arguments[2]:void 0)??1
return new Promise(((r,s)=>{var c
const l=-1===this.serverClockTime?(new Date).getTime():this.serverClockTime
if(t&&null!==(c=this._experimentalValues)&&void 0!==c&&c.checkJwtExpiration&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4
if(!e.length)return!0
try{const i=e.split(".")[1]
if(!i)return!0
const r=JSON.parse(window.atob(i))
return!a(r.exp)&&1e3*r.exp-n<t}catch(e){return!0}}(t,l))return this._subscribedAuthBroadcastTopics[t]&&delete this._subscribedAuthBroadcastTopics[t],[...this._topicSpecificSubscriptions.values()].forEach((e=>{e.authToken===t&&this._topicSpecificSubscriptions.delete(e.topicUrn)})),this.triggerEvent("authSubscribeFailed",t),void s({status:500,message:"JWT token expired"})
this._api.subscribe(e,t,i,n).then((e=>{let[a,c,l,u]=e
if(t&&0===o(u).length){if(!n){const e=this.filterSubscriptionListForAuthTopics(a,t,this._subscribedAuthBroadcastTopics)
this._subscribedAuthBroadcastTopics[t]=[...this._subscribedAuthBroadcastTopics[t]??[],...e]}}else if(t&&o(u).length>0){const e=Object.entries(u).find((e=>403===e[1].status))
e&&e.length>0&&(this._subscribedAuthBroadcastTopics[t]&&delete this._subscribedAuthBroadcastTopics[t],[...this._topicSpecificSubscriptions.values()].forEach((e=>{e.authToken===t&&this._topicSpecificSubscriptions.delete(e.topicUrn)})),this.triggerEvent("authSubscribeFailed",t))}else this._subscribedNonAuthTopics=[...this._subscribedNonAuthTopics,...a.filter(P(this._subscribedNonAuthTopics))]
a.forEach((e=>this.triggerEvent("subscribe",e))),l.length>0&&i<this.options.maxRetryCount?this.apiSubscribe(l,t,i+1,n).then((e=>{r({succeeded:[...a,...e.succeeded],failed:[...c,...e.failed]})})).catch(s):(c.forEach((e=>this.triggerEvent("subscribeFailed",e))),r({succeeded:a,failed:[...c,...l]}))})).catch((t=>{412===t.status?(this.scheduleReconnect(),r({succeeded:[],failed:e})):(this.triggerEvent("error",t),s(t))}))}))}connectEventSource(){if(!this._eventSource){var e,t
const n=new EventSource(this.realtimeConnectUrl,{withCredentials:!0,headers:this.options.connectHeaders})
null!==(e=(t=this.options).onBeforeConnectCallback)&&void 0!==e&&e.call(t,this.options.connectHeaders,n),this._eventSource=n}return this._eventSource}itShouldRetry(e){return!(null!=e&&e>=400&&e<500)&&(!this._eventSource||2===this._eventSource.readyState||this._eventSourceErrorCount>this.options.acceptableErrorCount)}lostConnection(){return this._lastConnectedStatus&&(null===this._eventSource||2===this._eventSource.readyState)}detectConnectionLost(){const e=this.lostConnection()
return e&&(this._lastConnectedStatus=this.connected,this.recordConnectionLostTime()),e}beforeUnloadHandler(){se.close()}}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return se.getOrUpdateClient(e)}function le(){return se.close()}se._realtimeSessionId=Y(),se._connectivityTrackingTimer=0
const ue={CALL_STACK_LOGGING:"CALL_STACK_LOGGING",CUSTOM_DATALOADER_DISPATCH:"CUSTOM_DATALOADER_DISPATCH",DATALOADER_STATS:"DATALOADER_STATS",DEBUG_TRACING:"DEBUG_TRACING",EULER:"EULER",OTEL:"OTEL",QUERY_PARSE_AND_VALIDATE_STATS:"QUERY_PARSE_AND_VALIDATE_STATS",RAW_QUERY_LOGGING:"RAW_QUERY_LOGGING",TRACING:"TRACING",WEB_METADATA:"WEB_METADATA"}},73265:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{BreadcrumbBuilder:()=>En,BrowserTransporter:()=>bn,ClientBreadcrumb:()=>_n,ClientBreadcrumbType:()=>kn,DebugExporter:()=>zr,ErrorInstrumentation:()=>po,ErrorType:()=>yr,FALLBACK_PAGEKEY:()=>M,FlushMode:()=>Sr,GENERIC_TRACER_LIX_PATTERN:()=>zn,Heap:()=>Xt,HttpProtocolType:()=>Nn,JetCore:()=>Mn,OpenTelemetrySDK:()=>uo,ParsedResponseHeaders:()=>kr,PerfMeasurement:()=>Ir,RESPONSE_HEADERS:()=>Er,Resource:()=>Lr,ResourceProgressOriginalMetricsType:()=>Dn,ResourceProgressType:()=>Pn,ResourceRequestType:()=>Un,RumCore:()=>Cr,TRACEPARENT_HEADER_NAME:()=>vo,TrackingCore:()=>An,TrackingExporter:()=>Wr,W3CNavigationInstrumentation:()=>_o,W3CResourceTimingInstrumentation:()=>ko,_eventEmitter:()=>ut,allPromisesSettled:()=>Ft,arrayFromSet:()=>Bt,castBreadcrumbIntoType:()=>Sn,copyContext:()=>jt,deepClone:()=>zt,deleteIDB:()=>qt,determinErrorType:()=>_r,emitJETError:()=>Kt,extractTransferInfo:()=>Cn,extractVersionFromConfig:()=>Lt,generateBase64UUID:()=>Tt,generateByteUUID:()=>bt,generateControlUrn:()=>At,generateNodeProcessJetPayload:()=>Rn,generatePageInstance:()=>It,generatePageUrn:()=>Rt,generateResourceResponseContext:()=>Tr,generateRfc4122UUID:()=>Ct,generateSpanId:()=>Zr,generateTraceId:()=>Jr,generateTraceParentString:()=>bo,generateTrackingId:()=>St,generateUUID:()=>vt,getBase64FromBase64Url:()=>Yt,getBsCookieInfo:()=>Wt,isBase64TrackingId:()=>kt,isFlushOnCloseBrowserTabEnabled:()=>Vt,operateSequenceNumberViaIDB:()=>Ht,parseStringPageInstance:()=>Ot,parseTrackingId:()=>xt,queryStringToContext:()=>Ut,queryStringToControlUrn:()=>Dt,resolveCNDomain:()=>Qt,serializePageInstance:()=>Mt,shouldUseXHR:()=>Gt,stringifyTrackingId:()=>wt,uint8ToBase64:()=>_t,uint8ToByteString:()=>yt})
var i,r=["$type"],o=["requestStart"],a=["requestTime","viewNames","requestType","requestTag"],s=["requestStart"],c=["requestStart"],l=["requestTime","viewNames","requestType"]
function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t)
if(i){var r=Object.getOwnPropertyDescriptor(i,t)
return r.get?r.get.call(arguments.length<3?e:n):r.value}},u.apply(this,arguments)}function d(){d=function(){return t}
var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag"
function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new O(i||[])
return r(a,"_invoke",{value:x(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u
var p="suspendedStart",h="executing",g="completed",m={}
function v(){}function y(){}function b(){}var E={}
l(E,a,(function(){return this}))
var k=Object.getPrototypeOf,_=k&&k(k(j([])))
_&&_!==n&&i.call(_,a)&&(E=_)
var T=b.prototype=v.prototype=Object.create(E)
function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,o,a,s){var c=f(e[r],e,o)
if("throw"!==c.type){var l=c.arg,u=l.value
return u&&"object"==w(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o
r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function x(t,n,i){var r=p
return function(o,a){if(r===h)throw new Error("Generator is already running")
if(r===g){if("throw"===o)throw a
return{value:e,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate
if(s){var c=I(s,i)
if(c){if(c===m)continue
return c}}if("next"===i.method)i.sent=i._sent=i.arg
else if("throw"===i.method){if(r===p)throw r=g,i.arg
i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg)
r=h
var l=f(t,n,i)
if("normal"===l.type){if(r=i.done?g:"suspendedYield",l.arg===m)continue
return{value:l.arg,done:i.done}}"throw"===l.type&&(r=g,i.method="throw",i.arg=l.arg)}}}function I(t,n){var i=n.method,r=t.iterator[i]
if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m
var o=f(r,t.iterator,n.arg)
if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m
var a=o.arg
return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(e){var t={tryLoc:e[0]}
1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[a]
if(n)return n.call(t)
if("function"==typeof t.next)return t
if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n
return n.value=e,n.done=!0,n}
return o.next=o}}throw new TypeError(w(t)+" is not iterable")}return y.prototype=b,r(T,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor
return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},S(C.prototype),l(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise)
var a=new C(u(e,n,i,r),o)
return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(T),l(T,c,"Generator"),l(T,a,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[]
for(var i in t)n.push(i)
return n.reverse(),function e(){for(;n.length;){var i=n.pop()
if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0
var e=this.tryEntries[0].completion
if("throw"===e.type)throw e.arg
return this.rval},dispatchException:function(t){if(this.done)throw t
var n=this
function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion
if("root"===a.tryLoc)return r("end")
if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc")
if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)
if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally")
if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n]
if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r
break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null)
var a=o?o.completion:{}
return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg
return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t]
if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t]
if(n.tryLoc===e){var i=n.completion
if("throw"===i.type){var r=i.arg
R(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:j(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function f(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,r)}function p(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e)
t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?p(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if(null==e)return{}
var n,i,r=function(e,t){if(null==e)return{}
var n,i,r={},o=Object.keys(e)
for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n])
return r}(e,t)
if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e)
for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function m(e,t,n){return t=b(t),function(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return v(e)}(e,y()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function E(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function _(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=S(e))||t&&e&&"number"==typeof e.length){n&&(e=n)
var i=0,r=function(){}
return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function T(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return C(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var i=t[n]
i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,O(i.key),i)}}function A(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){var t=function(e,t){if("object"!=w(e)||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var i=n.call(e,"string")
if("object"!=w(i))return i
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==w(t)?t:String(t)}var j,M="unknown",N=new Uint8Array(16)
function P(){if(!j&&!(j="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return j(N)}var D=/^(?:[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 U(e){return"string"==typeof e&&D.test(e)}for(var L=[],F=0;F<256;++F)L.push((F+256).toString(16).slice(1))
function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(L[e[t+0]]+L[e[t+1]]+L[e[t+2]]+L[e[t+3]]+"-"+L[e[t+4]]+L[e[t+5]]+"-"+L[e[t+6]]+L[e[t+7]]+"-"+L[e[t+8]]+L[e[t+9]]+"-"+L[e[t+10]]+L[e[t+11]]+L[e[t+12]]+L[e[t+13]]+L[e[t+14]]+L[e[t+15]]).toLowerCase()}function q(e){if(!U(e))throw TypeError("Invalid UUID")
var t,n=new Uint8Array(16)
return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function H(e,t,n){function i(e,i,r,o){var a
if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e))
for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n))
return t}(e)),"string"==typeof i&&(i=q(i)),16!==(null===(a=i)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")
var s=new Uint8Array(16+e.length)
if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0
for(var c=0;c<16;++c)r[o+c]=s[c]
return r}return B(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function G(e){return 14+(e+64>>>9<<4)+1}function V(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function K(e,t,n,i,r,o){return V((a=V(V(t,e),V(i,o)))<<(s=r)|a>>>32-s,n)
var a,s}function W(e,t,n,i,r,o,a){return K(t&n|~t&i,e,t,r,o,a)}function z(e,t,n,i,r,o,a){return K(t&i|n&~i,e,t,r,o,a)}function X(e,t,n,i,r,o,a){return K(t^n^i,e,t,r,o,a)}function Q(e,t,n,i,r,o,a){return K(n^(t|~i),e,t,r,o,a)}H("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e))
e=new Uint8Array(t.length)
for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16)
t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[G(t)-1]=t
for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=i,l=r,u=o
n=W(n,i,r,o,e[a],7,-680876936),o=W(o,n,i,r,e[a+1],12,-389564586),r=W(r,o,n,i,e[a+2],17,606105819),i=W(i,r,o,n,e[a+3],22,-1044525330),n=W(n,i,r,o,e[a+4],7,-176418897),o=W(o,n,i,r,e[a+5],12,1200080426),r=W(r,o,n,i,e[a+6],17,-1473231341),i=W(i,r,o,n,e[a+7],22,-45705983),n=W(n,i,r,o,e[a+8],7,1770035416),o=W(o,n,i,r,e[a+9],12,-1958414417),r=W(r,o,n,i,e[a+10],17,-42063),i=W(i,r,o,n,e[a+11],22,-1990404162),n=W(n,i,r,o,e[a+12],7,1804603682),o=W(o,n,i,r,e[a+13],12,-40341101),r=W(r,o,n,i,e[a+14],17,-1502002290),n=z(n,i=W(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=z(o,n,i,r,e[a+6],9,-1069501632),r=z(r,o,n,i,e[a+11],14,643717713),i=z(i,r,o,n,e[a],20,-373897302),n=z(n,i,r,o,e[a+5],5,-701558691),o=z(o,n,i,r,e[a+10],9,38016083),r=z(r,o,n,i,e[a+15],14,-660478335),i=z(i,r,o,n,e[a+4],20,-405537848),n=z(n,i,r,o,e[a+9],5,568446438),o=z(o,n,i,r,e[a+14],9,-1019803690),r=z(r,o,n,i,e[a+3],14,-187363961),i=z(i,r,o,n,e[a+8],20,1163531501),n=z(n,i,r,o,e[a+13],5,-1444681467),o=z(o,n,i,r,e[a+2],9,-51403784),r=z(r,o,n,i,e[a+7],14,1735328473),n=X(n,i=z(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=X(o,n,i,r,e[a+8],11,-2022574463),r=X(r,o,n,i,e[a+11],16,1839030562),i=X(i,r,o,n,e[a+14],23,-35309556),n=X(n,i,r,o,e[a+1],4,-1530992060),o=X(o,n,i,r,e[a+4],11,1272893353),r=X(r,o,n,i,e[a+7],16,-155497632),i=X(i,r,o,n,e[a+10],23,-1094730640),n=X(n,i,r,o,e[a+13],4,681279174),o=X(o,n,i,r,e[a],11,-358537222),r=X(r,o,n,i,e[a+3],16,-722521979),i=X(i,r,o,n,e[a+6],23,76029189),n=X(n,i,r,o,e[a+9],4,-640364487),o=X(o,n,i,r,e[a+12],11,-421815835),r=X(r,o,n,i,e[a+15],16,530742520),n=Q(n,i=X(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=Q(o,n,i,r,e[a+7],10,1126891415),r=Q(r,o,n,i,e[a+14],15,-1416354905),i=Q(i,r,o,n,e[a+5],21,-57434055),n=Q(n,i,r,o,e[a+12],6,1700485571),o=Q(o,n,i,r,e[a+3],10,-1894986606),r=Q(r,o,n,i,e[a+10],15,-1051523),i=Q(i,r,o,n,e[a+1],21,-2054922799),n=Q(n,i,r,o,e[a+8],6,1873313359),o=Q(o,n,i,r,e[a+15],10,-30611744),r=Q(r,o,n,i,e[a+6],15,-1560198380),i=Q(i,r,o,n,e[a+13],21,1309151649),n=Q(n,i,r,o,e[a+4],6,-145523070),o=Q(o,n,i,r,e[a+11],10,-1120210379),r=Q(r,o,n,i,e[a+2],15,718787259),i=Q(i,r,o,n,e[a+9],21,-343485551),n=V(n,s),i=V(i,c),r=V(r,l),o=V(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(G(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32
return n}(e),8*e.length))}))
var Y={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function $(e,t,n){if(Y.randomUUID&&!t&&!e)return Y.randomUUID()
var i=(e=e||{}).random||(e.rng||P)()
if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0
for(var r=0;r<16;++r)t[n+r]=i[r]
return t}return B(i)}function J(e,t,n,i){switch(e){case 0:return t&n^~t&i
case 1:case 3:return t^n^i
case 2:return t&n^t&i^n&i}}function Z(e,t){return e<<t|e>>>32-t}H("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520]
if("string"==typeof e){var i=unescape(encodeURIComponent(e))
e=[]
for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e))
e.push(128)
for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3]
s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295
for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p]
for(var h=16;h<80;++h)f[h]=Z(f[h-3]^f[h-8]^f[h-14]^f[h-16],1)
for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var k=Math.floor(E/20),_=Z(g,5)+J(k,m,v,y)+b+t[k]+f[E]>>>0
b=y,y=v,v=Z(m,30)>>>0,m=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))
var ee=Uint8Array,te=Uint16Array,ne=Uint32Array,ie=new ee([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),re=new ee([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),oe=new ee([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ae=function(e,t){for(var n=new te(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1]
var r=new ne(n[30])
for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i
return[n,r]},se=ae(ie,2),ce=se[0],le=se[1]
ce[28]=258,le[258]=28
for(var ue=ae(re,0)[1],de=new te(32768),fe=0;fe<32768;++fe){var pe=(43690&fe)>>>1|(21845&fe)<<1
pe=(61680&(pe=(52428&pe)>>>2|(13107&pe)<<2))>>>4|(3855&pe)<<4,de[fe]=((65280&pe)>>>8|(255&pe)<<8)>>>1}var he=function(e,t,n){for(var i=e.length,r=0,o=new te(t);r<i;++r)e[r]&&++o[e[r]-1]
var a,s=new te(t)
for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1
if(n){a=new te(1<<t)
var c=15-t
for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=s[e[r]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)a[de[d]>>>c]=l}else for(a=new te(i),r=0;r<i;++r)e[r]&&(a[r]=de[s[e[r]-1]++]>>>15-e[r])
return a},ge=new ee(288)
for(fe=0;fe<144;++fe)ge[fe]=8
for(fe=144;fe<256;++fe)ge[fe]=9
for(fe=256;fe<280;++fe)ge[fe]=7
for(fe=280;fe<288;++fe)ge[fe]=8
var me=new ee(32)
for(fe=0;fe<32;++fe)me[fe]=5
var ve=he(ge,9,0),ye=he(me,5,0),be=function(e){return(e+7)/8|0},Ee=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8},ke=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},_e=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]})
var r=n.length,o=n.slice()
if(!r)return[Ae,0]
if(1==r){var a=new ee(n[0].s+1)
return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001})
var s=n[0],c=n[1],l=0,u=1,d=2
for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=r-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c}
var f=o[0].s
for(i=1;i<r;++i)o[i].s>f&&(f=o[i].s)
var p=new te(f+1),h=Te(n[u-1],p,0)
if(h>t){i=0
var g=0,m=h-t,v=1<<m
for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s
if(!(p[y]>t))break
g+=v-(1<<h-p[y]),p[y]=t}for(g>>>=m;g>0;){var b=o[i].s
p[b]<t?g-=1<<t-p[b]++-1:++i}for(;i>=0&&g;--i){var E=o[i].s
p[E]==t&&(--p[E],++g)}h=t}return[new ee(p),h]},Te=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},Se=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new te(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o
else{if(!r&&o>2){for(;o>138;o-=138)a(32754)
o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304)
o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r)
o=1,r=e[s]}return[n.subarray(0,i),t]},Ce=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i]
return n},we=function(e,t,n){var i=n.length,r=be(t+2)
e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1]
for(var o=0;o<i;++o)e[r+o+4]=n[o]
return 8*(r+4+i)},xe=function(e,t,n,i,r,o,a,s,c,l,u){Ee(t,u++,n),++r[256]
for(var d=_e(r,15),f=d[0],p=d[1],h=_e(o,15),g=h[0],m=h[1],v=Se(f),y=v[0],b=v[1],E=Se(g),k=E[0],_=E[1],T=new te(19),S=0;S<y.length;++S)T[31&y[S]]++
for(S=0;S<k.length;++S)T[31&k[S]]++
for(var C=_e(T,7),w=C[0],x=C[1],I=19;I>4&&!w[oe[I-1]];--I);var A,R,O,j,M=l+5<<3,N=Ce(r,ge)+Ce(o,me)+a,P=Ce(r,f)+Ce(o,g)+a+14+3*I+Ce(T,w)+(2*T[16]+3*T[17]+7*T[18])
if(M<=N&&M<=P)return we(t,u,e.subarray(c,c+l))
if(Ee(t,u,1+(P<N)),u+=2,P<N){A=he(f,p,0),R=f,O=he(g,m,0),j=g
var D=he(w,x,0)
for(Ee(t,u,b-257),Ee(t,u+5,_-1),Ee(t,u+10,I-4),u+=14,S=0;S<I;++S)Ee(t,u+3*S,w[oe[S]])
u+=3*I
for(var U=[y,k],L=0;L<2;++L){var F=U[L]
for(S=0;S<F.length;++S){var B=31&F[S]
Ee(t,u,D[B]),u+=w[B],B>15&&(Ee(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else A=ve,R=ge,O=ye,j=me
for(S=0;S<s;++S)if(i[S]>255){B=i[S]>>>18&31,ke(t,u,A[B+257]),u+=R[B+257],B>7&&(Ee(t,u,i[S]>>>23&31),u+=ie[B])
var q=31&i[S]
ke(t,u,O[q]),u+=j[q],q>3&&(ke(t,u,i[S]>>>5&8191),u+=re[q])}else ke(t,u,A[i[S]]),u+=R[i[S]]
return ke(t,u,A[256]),u+R[256]},Ie=new ne([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ae=new ee(0),Re=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1
e[t]=n}return e}(),Oe=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},je="undefined"!=typeof TextDecoder&&new TextDecoder
try{je.decode(Ae,{stream:!0})}catch(Mi){}function Me(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Ne(){try{return Me()&&"keepalive"in new Request("")}catch(e){return!1}}function Pe(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress
i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8")
var o=t
if(r&&"undefined"!=typeof TextEncoder)try{o=function(e,t){t||(t={})
var n=function(){var e=-1
return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Re[255&n^t[i]]^n>>>8
e=n},d:function(){return~e}}}(),i=e.length
n.p(e)
var r=function(e,t,n,i,r){return function(e,t,n,i,r,o){var a=e.length,s=new ee(i+a+5*(1+Math.ceil(a/7e3))+8),c=s.subarray(i,s.length-8),l=0
if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535
d>=a&&(c[l>>3]=o),l=we(c,l+1,e.subarray(u,d))}else{for(var f=Ie[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,m=new te(32768),v=new te(g+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},k=new ne(25e3),_=new te(288),T=new te(32),S=0,C=0,w=(u=0,0),x=0,I=0;u<a;++u){var A=E(u),R=32767&u,O=v[A]
if(m[R]=O,v[A]=R,x<=u){var j=a-u
if((S>7e3||w>24576)&&j>423){l=xe(e,c,0,k,_,T,C,w,I,u-I,l),w=S=C=0,I=u
for(var M=0;M<286;++M)_[M]=0
for(M=0;M<30;++M)T[M]=0}var N=2,P=0,D=h,U=R-O&32767
if(j>2&&A==E(u-U))for(var L=Math.min(p,j)-1,F=Math.min(32767,u),B=Math.min(258,j);U<=F&&--D&&R!=O;){if(e[u+N]==e[u+N-U]){for(var q=0;q<B&&e[u+q]==e[u+q-U];++q);if(q>N){if(N=q,P=U,q>L)break
var H=Math.min(U,q-2),G=0
for(M=0;M<H;++M){var V=u-U+M+32768&32767,K=V-m[V]+32768&32767
K>G&&(G=K,O=V)}}}U+=(R=O)-(O=m[R])+32768&32767}if(P){k[w++]=268435456|le[N]<<18|ue[P]
var W=31&le[N],z=31&ue[P]
C+=ie[W]+re[z],++_[257+W],++T[z],x=u+N,++S}else k[w++]=e[u],++_[e[u]]}}l=xe(e,c,o,k,_,T,C,w,I,u-I,l)}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length)
var i=new(2==e.BYTES_PER_ELEMENT?te:4==e.BYTES_PER_ELEMENT?ne:ee)(n-t)
return i.set(e.subarray(t,n)),i}(s,0,i+be(l)+8)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,0,!0)}(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t)),o=r.length
return function(e,t){var n=t.filename
if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Oe(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8
for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(r,t),Oe(r,o-8,n.d()),Oe(r,o-4,i),r}((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function De(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Ue,Le="undefined"!=typeof navigator&&"sendBeacon"in navigator,Fe=Ne()?function(e,t,n,i){return new Promise((function(r){fetch(e,Pe({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Pe({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:De(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Le){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Pe({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:De(e)})}))}))}
function Be(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e)
r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}}
var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result
t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}))
return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function He(){return Ue||(Ue=qe("idb-queue","default")),Ue}function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null
return e.openKeyCursor().onsuccess=function(){var r=this.result
r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},Be(e.transaction)}var Ve=!1
function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:He()
return n("readwrite",(function(n){return n.put(e),Be(n.count()).then((function(e){if(!(e<=t.maxNumber))return Ge(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300}
return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:He())("readwrite",(function(t){return Ge(t,e)}))}(t,n)}))}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:He()
return Ve?Promise.resolve():Ke(e,t,n)}function ze(e,t,n){return t("readonly",(function(t){var i=[]
return t.openCursor(null,n).onsuccess=function(){var t=this.result
t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},Be(t.transaction).then((function(){return i}))}))}function Xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0
return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function Qe(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Ye(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4}
"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}var Je=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
x(this,e),R(this,"config",void 0),R(this,"compress",void 0),R(this,"throttleControl",void 0),R(this,"withStore",void 0),R(this,"disablePersistence",!1),this.config=t,this.compress=i
var r,o,a,s=t.measureIDB
s&&performance.mark(s.createStartMark),this.withStore=qe(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(r=this.replayEntries.bind(this),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now()
e-a>o&&(Qe((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return A(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){Qe((function(){return"Persisting to DB "+e.url})),We(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Qe((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Ye((function(){return"push failed"}))}))}
this.config.useIdle?$e(n):n()}}},{key:"clear",value:function(){var e=this
return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:He()
return Ve=!0,e("readwrite",(function(e){return e.clear(),Be(e.transaction).finally((function(){return Ve=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Ye((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return ze(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:He(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ye((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
return this.disablePersistence?Promise.resolve([]):function(){return ze(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:He(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ye((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){Qe((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var n=[]
return t.openCursor(null,"next").onsuccess=function(){var t=this.result
t&&(n.push(t.value),t.delete(),(e<0||n.length<e)&&t.continue())},Be(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:He())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount
return Qe((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),Fe(o,a,Xe(s,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i
null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,a),e.replayEntries()}else{var r,s,d,f,p,h
if(u+1>e.config.attemptLimit)return Qe((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(s=e.config).onResult)||void 0===r||r.call(s,t,a))
if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(f=e.config).onResult)||void 0===d||d.call(f,t,a),Qe((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),We({url:o,body:a,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore)
t.drop=!0,null===(p=(h=e.config).onResult)||void 0===p||p.call(h,t,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Ye((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?$e(t):t()}}}]),e}(),Ze=function(){function e(){x(this,e)}return A(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),et=function(){function e(t,n){x(this,e),R(this,"queue",void 0),R(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Je(t,n.compress):new Ze}return A(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}()
R(et,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var tt=[502,504],nt=[429,503],it=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
x(this,e),R(this,"url",void 0),R(this,"body",void 0),R(this,"config",void 0),R(this,"persistenceConfig",void 0),R(this,"compress",void 0),R(this,"timestamp",void 0),R(this,"isClearQueuePending",!1),R(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return A(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.persistenceConfig.db.onClear(this.onClearCallback)
var n=this.retryLimit
return this.retry((function(t){return Fe(e.url,e.body,t,e.compress)}),n,t).finally((function(){Qe((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,i){var r=this,o=this.getAttemptCount(t)-1
return e(Xe(n,this.config.headerName,o,i)).then((function(i){var o,a,s,c
if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),s=i
else if(Qe((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),s={type:"persisted",drop:!1,statusCode:i.statusCode}
else{if(t>0&&r.isRetryableError(i)){var l,u
null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body)
var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t)
return Qe((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(s=i).drop=!0}return null===(o=(a=r.config).onIntermediateResult)||void 0===o||o.call(a,s,r.body),s}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}(),rt="internal:hide",ot="internal:error"
function at(e,t,n){var i=e.get(t)
i&&i.push(n)||e.set(t,[n])}function st(e,t,n){var i=e.get(t)
i&&i.splice(i.indexOf(n)>>>0,1)}var ct,lt,ut=(ct=new Map,lt=new Map,{on:function(e,t){at(ct,e,t)},before:function(e,t){at(lt,e,t)},off:function(e,t){st(ct,e,t)},offBefore:function(e,t){st(lt,e,t)},emit:function(e,t){(lt.get(e)||[]).concat(ct.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){lt.clear(),ct.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var dt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||ut.emit(rt,e)}
document.addEventListener("visibilitychange",dt),window.addEventListener("pagehide",dt)}var ft=null
if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var pt=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(pt){var ht=new Uint8Array(256),gt=ht.length
ft={rng:function(){return gt>ht.length-16&&(pt.randomFillSync(ht),gt=0),ht.slice(gt,gt+=16)}}}}var mt="object"===("undefined"==typeof crypto?"undefined":w(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return wt(vt())}
function vt(){return $(ft,new Array(16),0)}function yt(e){return T(e).map((function(e){return String.fromCharCode(e)})).join("")}function bt(){return yt(vt())}var Et=/^[a-zA-Z0-9/+]+[=]+$/
function kt(e){return"string"==typeof e&&!!e.match(Et)}function _t(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r<s;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3
switch(a){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=")
break
case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}function Tt(){return _t(vt())}function St(){return mt()}function Ct(){return mt()}function wt(e){return function(e){var t=B(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!U(t))throw TypeError("Stringified UUID is invalid")
return t}(e)}function xt(e){return q(e)}function It(e,t){return{pageUrn:Rt(e),trackingId:t||Tt()}}function At(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Rt(e){return"urn:li:page:".concat(e)}function Ot(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}function jt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Mt(e){return"".concat(e.pageUrn,";").concat(e.trackingId)}var Nt=new RegExp("[?&]lipi=([^&#]*)"),Pt=new RegExp("[?&]licu=([^&#]*)")
function Dt(e){var t=e.match(Pt)
return t?decodeURIComponent(t[1]):null}function Ut(e){var t=e.match(Nt)
if(t){var n=Ot(t[1])
if(n)return{pageInstance:n,pageKey:""}}return null}function Lt(e){var t,n=null===(t=e.APP)||void 0===t?void 0:t.version
return(n="string"==typeof n?n.split("_").pop():"")||""}function Ft(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()}
0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function Bt(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function qt(e){var t=window.indexedDB.deleteDatabase(e)
return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}function Ht(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var i,r="sequenceNumber"
try{i=window.indexedDB.open(r)}catch(e){return Promise.resolve(null)}return new Promise((function(o,a){i.onupgradeneeded=function(){var e=i.result
e.objectStoreNames.contains(r)||e.createObjectStore(r,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,c=s.transaction(r,"readwrite"),l=c.objectStore(r),u=l.get(1)
u.onsuccess=function(){var i=u.result
if(i){if("read"===e)return o(i)
if("update"!==e)return o(null)
var r,s=Object.assign({},i),c=!1,d=null!==(r=s.sequenceNumber)&&void 0!==r?r:0
if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,i=null!==(t=s[e])&&void 0!==t?t:0,r=n[e]
r>i&&(s[e]=r,c=!0)})),c){var f=l.put(s,1)
f.onsuccess=function(){return o(null)},f.onerror=function(){a(f.error)}}}else{var p={sequenceNumber:0}
n&&Object.keys(n).forEach((function(e){p[e]=0}))
var h=l.add(p)
h.onsuccess=function(){return o(0)},h.onerror=function(){a(h.error)}}},u.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},c.oncomplete=function(){return s.close()}},i.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function Gt(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Me()||"undefined"==typeof Promise}function Vt(){return!Gt()&&(Ne()||"undefined"!=typeof navigator&&"sendBeacon"in navigator)}function Kt(e,t,n,i){var r=["core-web-tracking:".concat(e)]
null==i||i.forEach((function(e){return r.push(e)})),ut.emit(ot,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function Wt(e){var t,n={issueTime:0,browserId:""},i=_(e)
try{for(i.s();!(t=i.n()).done;){var r=t.value.split("=")
if(r.length>1&&"bscookie"===r[0]){var o=decodeURIComponent(r[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50)
return n.browserId=c,n.issueTime=s,n}}}catch(e){i.e(e)}finally{i.f()}return n}var zt=function(e){var t=window.structuredClone
return t?t(e):JSON.parse(JSON.stringify(e))},Xt=function(){function e(t){x(this,e),R(this,"heap",void 0),R(this,"comparator",void 0),this.comparator=t,this.heap=[]}return A(e,[{key:"heapsize",value:function(){return this.heap.length}},{key:"peak",value:function(){return this.heap[0]}},{key:"heapArray",get:function(){return this.heap}},{key:"heapClear",value:function(){var e=T(this.heap)
return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]]
this.heap[0]=t[0],this.heap[e-1]=t[1]
for(var n=this.heap.pop(),i=0;2*i+1<this.heap.length;){var r=2*i+1,o=2*i+2,a=o<this.heap.length&&this.comparator(this.heap[o],this.heap[r])?o:r
if(!this.comparator(this.heap[a],this.heap[i]))break
var s=[this.heap[i],this.heap[a]]
this.heap[a]=s[0],this.heap[i]=s[1],i=a}return n}},{key:"heapPush",value:function(e){this.heap.push(e)
for(var t=this.heap.length-1;t>0;){var n=Math.floor((t-1)/2)
if(!this.comparator(this.heap[t],this.heap[n]))break
var i=[this.heap[n],this.heap[t]]
this.heap[t]=i[0],this.heap[n]=i[1],t=n}}}]),e}()
function Qt(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}var Yt=function(e){if(!e||0===e.length)return null
if((e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4==1)return Kt("base64url-decoder",new Error("Invalid Base64URL input")),null
for(;e.length%4!=0;)e+="="
return e},$t="beacons"
function Jt(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&Ne()&&t&&n}var Zt=function(){function e(t){x(this,e),R(this,"host",void 0),this.host=t}return A(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment()
this.host.retryConfig&&function(e,t,n,i,r){"control"!==i&&e.retryConfig&&Jt()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return qt($t)
var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},l=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:$t,attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:tt,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry)
if(t.retryDB)e=t.retryDB
else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:nt,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
r.headerName=r.headerName||i.headerName,e=new et(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s
return Me()?new it(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||nt},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),f=d.beacon,p=d.database
return e.retryBeacon={shouldRetry:!0,beacon:f,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body)
if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Kt("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Kt("retry:setup",e)}))}(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon
if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){Kt("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment()
Ne()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){Kt("retry:beacon",e)}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&(Gt()?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest
if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var a=o[r]
i.setRequestHeader(a,n.headers[a])}i.send(t)}}(e,JSON.stringify(t),{headers:n}):Fe(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n
if(!this.host.retryConfig)return"control"
var i=this.host.retryConfig.lixKey
return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t
return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&Jt()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),en="undefined"!=typeof window&&"undefined"!=typeof document,tn=/JSESSIONID="?([^";]+)"?/,nn="",rn=0
function on(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?tn:i
if(!nn||Date.now()-rn>n){var o=en&&document.cookie.match(r)
nn=o&&o[1]||"",rn=Date.now()}return nn}var an={prod:{pattern:new RegExp(/https: \/\/www.linkedin.com\/.+|https:\/\/www.linkedin.com\/li\/track$/),monitorEndpoint:"https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"},ei:{pattern:new RegExp(/https: \/\/www.linkedin-ei.com\/.+|https:\/\/www.linkedin-ei.com\/li\/track$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"},eiValidate:{pattern:new RegExp(/https:\/\/www\.linkedin-ei\.com\/.+\/validate$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"}},sn=function(){function e(t){x(this,e),R(this,"networkTransporter",void 0),R(this,"inactive",void 0),R(this,"mpName",void 0),R(this,"endpoint",void 0),R(this,"debug",void 0),this.networkTransporter=new Zt(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
return an.prod.pattern.test(e)?t=an.prod.monitorEndpoint:an.eiValidate.pattern.test(e)?(n=!0,t=an.eiValidate.monitorEndpoint):an.ei.pattern.test(e)?t=an.ei.monitorEndpoint:(t=an.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return A(e,[{key:"fireFragment",value:function(e){var t
if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":on(),"x-restli-protocol-version":"2.0.0"},i=[],r=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=r.failures,a=r.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,T(t.failures)),e}),[]);[].concat(T(o),T(a)).forEach((function(e){var t=e.reason,n=e.rawError,r=e.eventTopic,o=e.header,a=e.requestHeader
i.push({reason:t,rawError:n,failedTopicName:r,header:o,requestHeader:a})}))
var s={clientTrackingFailures:i,debug:this.debug}
this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}()
function cn(e){return"string"==typeof e}function ln(e){return cn(e)?e:e.topicName||e.eventName}function un(e){return cn(e)?e:e.eventName}var dn,fn,pn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
x(this,e),R(this,"host",void 0),R(this,"cmoTransporter",void 0),R(this,"clientMonitoringInstanceId",bt()),R(this,"currentContext",{pageKey:M,pageInstance:It(M)}),R(this,"appState",{}),R(this,"estimatedFragmentSize",0),R(this,"fragmentSizeLimit",void 0),R(this,"activeFragmentEvent",void 0),R(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new sn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=gn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return A(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this
void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring()
var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated
return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId()
t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats
t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,i=_(this.activeFragmentEvent.stats.previousInstanceEventStats)
try{for(i.s();!(n=i.n()).done;){var r=n.value
if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]}
t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:un(t),eventTopic:ln(t)}
this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0
var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent
i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=gn(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0
this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=mn(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=mn(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:bt(),memberId:0}}}}]),e}()
function hn(e){return dn||(dn=new pn(e)),{getCurrentInstanceId:function(){return dn.getCurrentInstanceId()},logEventGenerated:function(e){return dn.logEventGenerated(e)},logEventReadyToSend:function(e){dn.logEventReadyToSend(e)},logEventSent:function(e){dn.logEventSent(e)},logPersistedEventSent:function(e,t){dn.logEventSent(t,e)},logNetworkResponseCode:function(e){dn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=dn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){dn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){dn.logFailedEvent(t,n,i,r,e)},flush:function(){dn.flush()},destroy:function(){dn=void 0},isDestroyed:function(){return void 0===dn},setCurrentContext:function(e){dn.setCurrentContext(e)},updateAppState:function(e){dn.updateAppState(e)}}}function gn(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:r.requestHeader,header:r.header}}function mn(e){return Array.isArray(e)?yt(e):16===e.length?e:kt(e)?atob(e):yt(xt(e))}!function(e){e.NONE="NONE",e.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",e.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",e.RETRIES_EXCEEDED="RETRIES_EXCEEDED",e.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",e.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",e.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"}(fn||(fn={}))
var vn=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],yn="PageViewEvent",bn=function(){function e(t){var n,i,r,o=this
x(this,e),R(this,"host",void 0),R(this,"queue",void 0),R(this,"preContextQueue",void 0),R(this,"debounceTimer",void 0),R(this,"unloadHandlers",void 0),R(this,"maxQueueSize",void 0),R(this,"flushDebounceTime",void 0),R(this,"trackingEventListeners",[]),R(this,"onHideHandler",(function(){o.forceFlush()})),R(this,"networkTransporter",void 0),R(this,"clientMonitoringConn",void 0),R(this,"clientGlobalSequenceNumberCounter",void 0),R(this,"clientTopicLocalSequenceNumberCountersMap",{}),R(this,"isTimerRunning",void 0),R(this,"trackingEndpoint",void 0),R(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track"
this.trackingEndpoint=Qt(c,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,ut.on(rt,this.onHideHandler),this.networkTransporter=new Zt(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=hn(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return A(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i
if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return
e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logFailedEvent(fn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-1)}))}catch(e){}},onBeforeRetry:function(e){var n
if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return
var i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length
t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i
if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return
var r=i[0].eventBody.header.clientMonitoringInstanceId
e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ")
t.logPersistedFailedEvent(r,fn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}})
this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e)
this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(ln(e.id)))
var n=this.host,i=n.api.Promise,r=n.batching
if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t)
return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),this.queue.push(a),r?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))}return this.preContextQueue.push(t),i.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){var e,t,n
this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,ut.off(rt,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location)}},{key:"forceFlush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
this.populatePreContextQueue({pageInstance:It(M),pageKey:M}).forEach((function(t){e.queue.push(t)})),this.isEvenBatchEnabled?1===t?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n
return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this
Ht("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,vn.forEach((function(n){var i
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){Kt("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Ht("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Kt("sequence-number:idb-update",e)}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this
"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=jt(e.meta.context,this.host.api)
return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,a={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)}
return n.length>0&&this.host.api.assign(a,{clientBreadcrumbs:n}),a}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,f=function(e){return"string"==typeof e?e===yn:e.eventName===yn}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=e.meta.requestHeader||{referer:s.referrer,path:"".concat(a.pathname).concat(a.search)},h=p.referer,g=p.path,m=null
"string"!=typeof r&&null!==this.host.locale||(m=r)
var v={interfaceLocale:m,pageKey:f,referer:h,path:g,isFlushOnCloseBrowserTabEnabled:Vt(),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},y={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:bt(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var b=ln(e.id)
if(vn.includes(b)){var E=this.clientTopicLocalSequenceNumberCountersMap[b]
"number"==typeof E&&c(y,{clientTopicLocalSequenceNumber:E})}var k={header:c(y,e.meta.header||{}),requestHeader:c(v,e.meta.requestHeader||{})},_=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber
return _&&c(k.header,{clientMonitoringInstanceId:_,clientMonitoringInstanceEventNumber:T}),c(e.body,k)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue
return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this
e((function(){t.forceFlush(0)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback
e||!t?this.sendPayload(void 0,!0):this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this
this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e
else{var r=this.maxQueueSize+1
this.queue.length>0&&(this.queue.length<=r||i)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,r)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[])
if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3))
var o,a,s=[],c=[]
t.forEach((function(e){var t=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),r=n.envelop(e.id,t,i)
n.trigger(r,e.meta)
var o=r.eventInfo.eventName
"LixTreatmentsEvent"===o||"JavaScriptErrorEvent"===o?s.push(r):c.push(r),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var a=ln(e.id)
vn.includes(a)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[a]&&n.clientTopicLocalSequenceNumberCountersMap[a]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(s.length+c.length),a=this.clientMonitoringConn,o={onResult:function(e,t){a&&!a.isDestroyed()&&(e.statusCode&&a.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,r="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(r)].join(", ")
null==a||a.logFailedEvent(fn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},o,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,s,void 0,o),this.networkTransporter.sendPayload(this.trackingEndpoint,c,void 0,o))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}()
function En(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.toString()]=n,t}}})
return t}var kn,_n=function(){function e(t,n){x(this,e),this.clientBreadcrumbType=t,this.id=n}return A(e,[{key:"builder",get:function(){return En().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}()
!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW",e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED"}(kn||(kn={}))
var Tn=function(e){function t(){return x(this,t),m(this,t,[kn.FEED_UPDATE_SERVED,bt()])}return E(t,_n),A(t)}()
function Sn(e,t){var n
if("proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb"!==t)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))
if(!(n=(new Tn).builder))throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))
for(var i in e){var r=e[i]
null!=r&&n[i](r)}return n.build()}function Cn(e){if(!e)return{}
var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu)
e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0)
var r,o=e.lipi&&Ot(e.lipi)
if(o?r={pageInstance:o,pageKey:t}:t&&(r={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page)
r={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0
return s&&((r=r||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:r,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function wn(e){return"retryConfig"in e.host}function xn(e){return"location"in e.api}var In,An=function(){function e(t,n){var i,r
if(x(this,e),R(this,"transporter",void 0),R(this,"delegate",void 0),R(this,"currentContext",void 0),R(this,"appState",void 0),R(this,"previousAppContext",void 0),R(this,"customTransporters",void 0),R(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var a=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[o]=new bn(this.transporter.host.api.assign(a,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&xn(t.host)&&(this.clientMonitoringConn=hn(t.host))}return A(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){ut.before(rt,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){ut.offBefore(rt,e)}},{key:"checkAndEnablePersistentRetry",value:function(){wn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=wn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return jt(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.navMetaFromSeed(e,Cn(t),null==n?void 0:n.pageInstanceTrackingId)
if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t
this.currentContext=jt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(jt(e,this.host.api))}},{key:"updateAppState",value:function(e){var t
this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=At(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t}
return r&&r(o),a}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-name]")
if(i){var r=i.getAttribute("data-view-name")
r&&t.push(r)}n=null==i?void 0:i.parentElement}return t}},{key:"getUniqueHash",value:function(e){return Object.keys(e).sort().map((function(t){var n
return"".concat(t,":").concat(null!==(n=e[t])&&void 0!==n?n:"")})).join("|")}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e,i=new Set;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-tracking-scope]")
if(r){var o=r.getAttribute("data-view-tracking-scope")
if(o)try{var a=JSON.parse(o)
if(a&&a.length){var s,c=_(a)
try{for(c.s();!(s=c.n()).done;){var l=s.value,u=this.getUniqueHash(l)
i.has(u)||(i.add(u),t.push(l))}}catch(e){c.e(e)}finally{c.f()}}}catch(e){Kt("getViewTrackingScope","Error parsing trackingScope ".concat(o))}}n=null==r?void 0:r.parentElement}return t}},{key:"extractBreadcrumbInTrackingScope",value:function(e){return e.map((function(e){var t=e.breadcrumb
if(t){delete e.breadcrumb
var n=t.$type
return Sn(g(t,r),n)}})).filter((function(e){return void 0!==e}))}},{key:"fireInteraction",value:function(e){var t=e.manualFireReason,n=e.interactionType,i=e.targetView,r=e.viewHierarchy,o=e.viewTrackingScope,a=e.verticalPosition,s=e.horizontalPosition,c=e.controlUrn,l=e.actionType,u=e.contentTrackingId,d=e.clientBreadcrumbs,f=void 0===d?[]:d,p=e.isShadowEvent,h=e.cooloffToken,g=i?this.getViewHierarchy(i):[],m=g.length>0?g:r||[],v=o||this.getViewTrackingScope(i)
0===m.length&&console.warn("No viewHierarchy provided or found from element.")
var y=this.extractBreadcrumbInTrackingScope(v)
return this.fireEvent("GenericActionEvent",{verticalPosition:a,horizontalPosition:s,controlUrn:c||"",interactionType:n,actionType:l,contentTrackingId:""===u?void 0:u,manualFireReason:t,cooloffToken:h,trackingScopeHierarchy:{entries:v}},{header:{viewHierarchy:m}},[].concat(T(f),T(y)),p)}},{key:"fireImpression",value:function(e,t){var n=e.manualFireReason,i=e.targetView,r=e.viewHierarchy,o=e.viewTrackingScope,a=e.viewDurationInMilliseconds,s=void 0===a?0:a,c=e.contentViewFraction,l=void 0===c?1:c,u=e.width,d=void 0===u?-1:u,f=e.height,p=void 0===f?-1:f,h=e.verticalPosition,g=e.horizontalPosition,m=e.impressionTime,v=e.contentTrackingId,y=e.clientBreadcrumbs,b=e.isShadowEvent,E=e.cooloffToken,k=i?this.getViewHierarchy(i):[],_=k.length>0?k:r||[],T=i?this.getViewTrackingScope(i):[],S=T.length>0?T:o||[]
0===_.length&&console.warn("No viewHierarchy provided or found from element.")
var C={header:{viewHierarchy:_},context:null==t?void 0:t.context}
return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:s,contentViewFraction:l,width:d,height:p,verticalPosition:h,horizontalPosition:g,impressionTime:m,contentTrackingId:""===v?void 0:v,manualFireReason:n,cooloffToken:E,trackingScopeHierarchy:{entries:S}},C,y,b)}},{key:"fireEvent",value:function(e,t,n,i,r){if(!t){var o=ln(e),a=void 0===t?"undefined":null===t?"null":w(t),s='Firing tracking event "'.concat(o,'" with invalid body, you fired "').concat(a,'"')
if(this.clientMonitoringConn){var c=this.clientMonitoringConn.logEventGenerated(o)
this.clientMonitoringConn.logFailedEvent(fn.MISSING_REQUIRED_PROPERTIES,e,s,c)}throw new Error(s)}var l=i||[]
if(l.length>0){var u=l.map((function(e){return _n.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:u})}var d=l.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,l,r):this.generateEnvelope(e,t,n,r)
return this.fireEnvelope(d)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.generateEnvelope(e,t,n,r)
return i.length>0?this.addBreadcrumbsToEnvelope(o,i):o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){return this.host.api.assign(e,{clientBreadcrumbs:t}),e}},{key:"fireEnvelope",value:function(e){var t,n
if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(cn(e.id)){var i=e.id
e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0
var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e
if(r){var o=r.meta.transporterKey,a=o?this.customTransporters[o]:this.transporter
if(!a&&o){var s=ln(r.id),c="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(fn.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return It(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{key:"_firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{context:n})
return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy()
this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),ut.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return At((t||this.currentContext||{pageKey:M}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t}
return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from
return{previousPageInstance:i&&i.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t,n){var i="NavigationEvent"
this.previousAppContext=t.previousContext
var r=t.fromExternalApp?{eventName:i,topicName:"InboundNavigationEvent"}:i
return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t)
o.meta.requestHeader.pageKey=n.pageKey
var a=i&&i.applicationInstance
return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&jt(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{},xn(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:this.host.api.location.href}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:i},n.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}]),e}()
function Rn(e){var t="unknown",n=e.map((function(e){var n=e.e,i=e.options,r=e.tags,o=n.message,a=n.name,s=n.stack,c=void 0===s?"":s,l=i.appId,u=i.appVersion,d=i.protocol,f=i.eventName,p=i.service,h=i.host,g=void 0===h?t:h,m=i.hash,v=void 0===m?t:m,y=i.path,b=void 0===y?t:y,E=i.query,k=void 0===E?t:E,_=i.serviceInstance,T=void 0===_?t:_,S=i.pageKey
return{eventBody:{appId:l,e:{m:o,s:c,t:a},l:d,service:p,serviceVersion:u,t:r,serviceInstance:T,o:g,h:v,p:b,q:k,pageKey:void 0===S?t:S},eventInfo:{appId:l,eventName:f,topicName:f}}}))
return n}!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource"}(In||(In={}))
var On,jn,Mn=function(){function e(t,n){var i,r,o=this
x(this,e),R(this,"core",void 0),R(this,"protocol",void 0),R(this,"throttleKeySet",new Set),R(this,"config",void 0),R(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),o.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t
var a=this.core.host.api.location.protocol
this.protocol=a.substring(0,a.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100,useOTel:null!==(r=null==n?void 0:n.useOTel)&&void 0!==r&&r},ut.on(ot,this.reportTransporterError)}return A(e,[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,a=void 0===o?"":o,s=r.responseHeaders,c=void 0===s?{}:s,l=e.message,u=e.name,d=e.stack,f=void 0===d?"":d,p=e.fileName,h=void 0===p?"":p,g=e.lineNumber,m=void 0===g?0:g,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,k=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,C=void 0===S?"":S,w=b.api,x=w.Promise,I=w.location,A=I.host,R=I.pathname,O=I.search,j=I.hash,M=void 0===j?"":j
if(this.config.useOTel&&ut.emit(In.INTERNAL_OTEL_JET_EVENT,{error:e,tags:i,callTreeId:a,responseHeaders:c}),c){t={}
var N=new Map
Object.keys(c).forEach((function(e){N.set(e.toLowerCase(),c[e])})),t.callTreeId=N.get("x-li-uuid"),t.microsoftEdgeReference=N.get("x-msedge-ref"),t.pointOfPresenceId=N.get("x-li-pop"),t.fabric=N.get("x-li-fabric")}var P=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:m,m:l,s:f,t:u,u:h},h:M,l:n.protocol,o:A,p:R,pageKey:e.pageKey,q:O,service:_,serviceInstance:T,serviceVersion:k,t:i,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:a,responseTraceHeaders:t}}))}
if(this.config.throttleTime<0)return P()
var D=(u+l+f+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)
return this.throttleKeySet.has(D)?x.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),P())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),ut.off(ot,this.reportTransporterError)}}]),e}()
!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(On||(On={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(jn||(jn={}))
var Nn,Pn,Dn,Un,Ln,Fn,Bn,qn=(R(R(R(R(R(R(R(R(R(R(i={},"web-ui-framework","EMBER"),"app-id","linkedin.rum.tracking"),"app-version","unknown"),"is-single-page-app",!0),"user-timing-mark-enabled",!1),"user-timing-measure-enabled",!0),"beacon-source","apps"),"enable-rs-timing",!0),"enable-cdn-tracking",!1),"async-plugins-timeout",5e3),R(R(R(R(R(R(i,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),Hn=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],Gn={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},Vn={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Kn="pageLoadId does not exist",Wn="rum token passed is invalid",zn=new RegExp(/batch-(\d+)$|enabled$/),Xn=function(){function e(){x(this,e),R(this,"userTimingEntries",[]),R(this,"longTasks",[]),R(this,"resourceTimingEntries",[]),R(this,"cdnData",void 0)}return A(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name)
n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(Yn),cdnData:this.cdnData}}}]),e}(),Qn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function Yn(e){return Qn.reduce((function(t,n){var i=e[n]
return void 0!==i&&(t[n]=i),t}),{})}function $n(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.")
if("html"===e.tagName.toLowerCase())return"html"
var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4}
Fn=Object.assign(Object.assign({},n),t),Bn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Fn.root,n)
var i=Jn(e,Ln.All,(function(){return Jn(e,Ln.Two,(function(){return Jn(e,Ln.One)}))}))
if(i){var r=ci(li(i,e))
return r.length>0&&(i=r[0]),ei(i)}throw new Error("Selector was not found.")}function Jn(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=oi(function(e){var t=e.getAttribute("id")
return t&&Fn.idName(t)?{name:"#"+gi(t,{isIdentifier:!0}),penalty:0}:null}(o))||oi.apply(void 0,T(function(e){return Array.from(e.attributes).filter((function(e){return Fn.attr(e.name,e.value)})).map((function(e){return{name:"["+gi(e.name,{isIdentifier:!0})+'="'+gi(e.value)+'"]',penalty:.5}}))}(o)))||oi.apply(void 0,T(function(e){return Array.from(e.classList).filter(Fn.className).map((function(e){return{name:"."+gi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||oi(function(e){var t=e.tagName.toLowerCase()
return Fn.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode
if(!t)return null
var n=t.firstChild
if(!n)return null
for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling
return i}(o)
if(t===Ln.All)s&&(e=e.concat(e.filter(ri).map((function(e){return ii(e,s)}))))
else if(t===Ln.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(ri).map((function(e){return ii(e,s)}))))
else if(t===Ln.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var i,r,o,a,s=[],c=!0,l=!1
try{for(o=(n=n.call(e)).next;!(c=(i=o.call(n)).done)&&(s.push(i.value),1!==s.length);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e)||S(e,1)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e=e.slice(0,1))[0]
s&&ri(c)&&(e=[ii(c,s)])}var l,u=_(e)
try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=Fn.seedMinLength&&(i=Zn(r,n)))return 1
o=o.parentElement,a++};o&&o!==Fn.root.parentElement&&!s(););return i||(i=Zn(r,n)),i}function Zn(e,t){var n=ci(si(e))
if(n.length>Fn.threshold)return t?t():null
var i,r=_(n)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(ni(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function ei(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0
n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function ti(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function ni(e){switch(Bn.querySelectorAll(ei(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ei(e)))
case 1:return!0
default:return!1}}function ii(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function ri(e){return"html"!==e.name&&!e.name.startsWith("#")}function oi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var i=t.filter(ai)
return i.length>0?i:null}function ai(e){return null!=e}function si(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,i=[],r=_(e[0])
try{for(r.s();!(n=r.n()).done;){var o=n.value
i=i.concat(si(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function ci(e){return Array.from(e).sort((function(e,t){return ti(e)-ti(t)}))}function li(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[]
if(e.length>2&&e.length>Fn.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>Fn.maxNumberOfTries)return i
n.counter+=1
var o=T(e)
o.splice(r,1)
var a=ei(o)
if(n.visited.has(a))return i
ni(o)&&ui(o,t)&&(i.push(o),n.visited.set(a,!0),i=i.concat(li(o,t,n)))}return i}function ui(e,t){return Bn.querySelector(ei(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(Nn||(Nn={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(Pn||(Pn={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(Dn||(Dn={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Un||(Un={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Ln||(Ln={}))
var di=/[ -,\.\/:-@\[-\^`\{-~]/,fi=/[ -,\.\/:-@\[\]\^`\{-~]/,pi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,hi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},hi),t)
"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single")
for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s<c;){var l=e.charAt(s++),u=l.charCodeAt(0),d=void 0
if(u<32||u>126){if(u>=55296&&u<=56319&&s<c){var f=e.charCodeAt(s++)
56320==(64512&f)?u=((1023&u)<<10)+(1023&f)+65536:s--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?di.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&fi.test(l)?"\\"+l:l
a+=d}return r&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(pi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var mi,vi=[{strToFilter:"https://dms.licdn.com/playlist",excludeUrl:["https://dms.licdn.com/playlist/C4D05AQGiUFPvMk-NyQ/mp4-720p-30fp-crf28/0/1670518159491?e=1683741600&v=beta&t=3Wr_tdLLkQDX1kBQKEZW6NERypEqTi2mgZDDxFStjuI"],includeUrl:["https://media.licdn.com/dms/image/C4E0DAQF2IPL6XzFxlw/learning-public-crop_288_512/0/1593208644948?e=1681236000&v=beta&t=YpZr5ZaVoveJv_I6JKHTTZMsysttvKnT364PwDvjJHU"]},{strToFilter:"/sensorCollect/?action=reportMetrics",excludeUrl:["https://www.linkedin.com/sensorCollect/?action=reportMetrics","https://www.linkedin-ei.com/sensorCollect/?action=reportMetrics"],includeUrl:["https://www.linkedin.com/voyager/api/relationships/connectionsSummary/"]},{strToFilter:"/voyager/api/voyagerContentcreationDashGuiderPrompts",excludeUrl:["https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=test&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%C2%90b%C2%A9%C2%87%C3%A8%C3%A2By%C2%8798x%C2%B0%03%C2%9Ft","https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=Subestimar%20la%20necesidad%20de%20la%20estrategia%20de%20comunicaci%C3%B3n%20es%20un%20peligroso%20error%20que%20comenten%20constantemente%20las%20empresas&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%5C%C3%99t%C2%A2%1EZIM%C2%A4%09%13%27%C2%B91C%15"],includeUrl:["https://www.linkedin.com/voyager/api/voyager","https://www.linkedin.com/voyager/api/voyagerContentcreationDashSharebox?action=fetchShareboxWithDraft&decorationId=com.linkedin.voyager.dash.deco.contentcreation.sharebox-26"]},{strToFilter:"/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat",excludeUrl:["https://www.linkedin.com/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"/realtime/connect?rc=1",excludeUrl:["https://www.linkedin.com/realtime/connect?rc=1"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"li/tscp/sct",excludeUrl:["https://www.linkedin.com/li/tscp/sct"]}]
function yi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now()
return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function bi(e){var t=e||performance
return Math.round(t.now())}function Ei(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return $n(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Ei(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function ki(e,t,n,i){var r=[]
return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
r.push({entryType:"MEASURE",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:o}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration
r.push({entryType:"MARK",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),r}function _i(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var Ti,Si,Ci=function(){function e(t){x(this,e),R(this,"hostApis",void 0),R(this,"hostnameProperties",void 0),R(this,"usedHostnames",void 0),R(this,"abortController",void 0),R(this,"pendingPromises",void 0),this.hostApis=t
var n=t.AbortController
this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return A(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return Bt(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,i=n.AbortController,r=n.Promise,o=Ft(Bt(this.pendingPromises),r),a=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e)
return o.then((function(){return clearTimeout(a),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this
if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(mi=mi||i.createElement("a")).href=n,mi.hostname)
if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e)
return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}))
this.pendingPromises.add(a)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),wi=["VERTEX_SHADER","shaderSource","attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}","compileShader","createShader","FRAGMENT_SHADER","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","linkProgram","useProgram","vertexPosAttrib","attrVertex","offsetUniform","getUniformLocation","uniformOffset","enableVertexAttribArray","vertexPosArray","FLOAT","uniform2f","drawArrays","TRIANGLE_STRIP","webglHash","vendorAndRenderer","getWebglVendorAndRenderer","extensions","ALIASED_LINE_WIDTH_RANGE","getParameter","webgl alpha bits","webgl antialiasing","getContextAttributes","antialias","webgl blue bits","webgl depth bits","DEPTH_BITS","webgl green bits","webgl max anisotropy","EXT_texture_filter_anisotropic","getExtension","WEBKIT_EXT_texture_filter_anisotropic","MOZ_EXT_texture_filter_anisotropic","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_COMBINED_TEXTURE_IMAGE_UNITS","webgl max cube map texture size","MAX_CUBE_MAP_TEXTURE_SIZE","webgl max fragment uniform vectors","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture image units","MAX_TEXTURE_SIZE","webgl max varying vectors","MAX_VARYING_VECTORS","webgl max vertex attribs","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","webgl max vertex uniform vectors","MAX_VERTEX_UNIFORM_VECTORS","webgl max viewport dims","webgl red bits","RED_BITS","RENDERER","webgl stencil bits","webgl vendor","UNMASKED_VENDOR_WEBGL","webgl unmasked renderer","HIGH","LOW","precision","getShaderPrecisionFormat","_SHADER","precision ","toLowerCase","WEBGL_debug_renderer_info","innerHTML","&nbsp;","className","adsbox","getHasLiedLanguages","languages","substr","windows phone","win","Windows","android","Android","cros","Linux","iphone","ipad","Other","Windows Phone","linux","mac","iOS","pike","ipod","firefox","opera","opr","chrome","trident","Internet Explorer","Opera","toSource","WebGLRenderingContext","Microsoft Internet Explorer","Netscape","swfobject","hasFlashPlayerVersion","addFlashDivNode","setAttribute","swfContainerId","___fp_swf_loaded","always","false","experimental-webgl","components","webrtc","enumerateDevices","tsSeed","location","platformKey","cpuClass","colorDepthKey","pixelRatio","screenOrientation","availableScreenResolution","indexedDb","addBehavior","canvas","canvasKey","webgl","signals","touchSupport","networkInfo","audioKey","automation","pluginsComponent","mimetyps","fontsFlash","flashFontsKey","function","excludes","key","alias","getData","shouldEnforceDataLimit","dataLimit","number","errors"," Data length for:"," was found to be:","data","latency","acq_time","allFeatures","allFeaturesCollectionAt","useRequestIdleCallBack","requestIdleCallback","querySelector","getElementById","parentNode","getElementsByClassName","apply","atob","str2ab","crypto","importKey","RSA-OAEP","importPk","spki","wrapKey","subtle","raw","wrapErrorResult","error","encryptWithKey","string","ec1","getRandomValues","encode","encrypt","resolve","encryptWithKeyIds","Error: ec2","isNaN","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB","encryptWithKeyFromDifferentSources","publicKey","publicKeyVersion","uuidv4","generateSha256HashOrDefault","SHA-256","from","DNA","HUMAN","getCookieString","_cookieRegEx","cookie","bcookie","substring","getDomain","; path=","; secure=true","domain=","expires=","toUTCString","=([^;]*)","apfcDf","flash/compiled/FontList.swf","/platform-telemetry/li/apfcDf","n/a","err","excluded","enabled","globalIntegration","complete","readyState","checkConfigAndInitializeAllIntegration","addEventListener","load","settings-iframe","setting-headline","initialize","parse","stringify","isDfCollectionRequired","samplingTimeWindowInMillis","getItem","enableOnDemandMode","pauseApfc","checkConfigAndInitializeThirdPartyIntegration","deleteItem","li_apfcdc","deleteDfCookieIfRequired","checkConfigAndInitializeGlobalIntegration","addDfCookieIfRequired","includes","dnaIntegrationEnabled","dnaIntegrationCompleted","intializeGlobalIntegration","humanIntegrationEnabled","humanIntegrationCompleted","initializeHumanIntegration","fpDataCookie","apfcTypes","dfpIntegrationEnabled","dfpIntegrationCompleted","intializeDfpIntegration","df_ts","setTime","apfcDfPK","triggerApfc","reentry","placePonfBeacon","reqid","pageInstance","isProd","getFeatures","fullFeatureCollection","apfcDfPKV","https://www.linkedin.com","POST","Content-Type","application/json","send","telemetryCollectPath","populateFpDataCookie","getBcookie","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","src","dfp","doFpt","head","Invalid session_id: ","treeId","PXdOjV695v","https://li.protechts.net/index.html?ts=","&app_id=","&d_id=","humanThirdPartyIframe","sandbox","allow-same-origin allow-scripts","aria-hidden","true","0px","scraping","reentryGlobalIntegration","triggerDnaApfcEvent","reentryGlobalIntegrationOnDemand","extractDataCookie",":::","trackingId","memberId","sessionUrn","collectionType","object","FPDataCookie",".linkedin.com","startsWith","pemberly","isEmpty","getUrlFromNoscriptBeacon","div_bc","noscript","text/html","display:none;","ponfUrl","searchParams","get","firstChild","nodeValue","charAt","bc_context",".linkedin-ei.com","img","undefined","triggerDnaApfcEventOnDemand","x64Add","x64Rotl","x64Xor","x64Fmix","x64Multiply","x64hash128","length","charCodeAt","x64LeftShift","00000000","slice","toString","each","forEach","prototype","map","getIPs","RTCPeerConnection","webkitRTCPeerConnection","msRTCPeerConnection","stun:stun.l.google.com:19302","exec","localDescription","sdp","split","indexOf","a=candidate:","c=IN","onicecandidate","candidate","onicegatheringstatechange","setLocalDescription","automationKey","getHasLiedBrowser","undetected, fake browser","getBrowserNameAndVersion","Chrome","webdriver","Firefox","documentElement","getAttribute","_Selenium_IDE_Recorder","__webdriver_script_fn","callPhantom","_phantom","webRtcKey","name","message","enumerateDevicesKey","isEnumerateDevicesSupported","NOT_AVAILABLE","deviceId","gid","groupId","kind","label","catch","mediaDevices","audio","excludeIOS11","userAgent","EXCLUDED","webkitOfflineAudioContext","type","frequency","currentTime","createDynamicsCompressor","threshold","knee","ratio","reduction","attack","release","setValueAtTime","connect","destination","start","startRendering","oncomplete","audioTimeout","timeout","renderedBuffer","getChannelData","reduce","abs","disconnect","UserAgent","languageKey","language","userLanguage","browserLanguage","systemLanguage","screen","colorDepth","deviceMemoryKey","deviceMemory"," GB","pixelDepthKey","pixelDepth","pixelRatioKey","devicePixelRatio","screenResolutionKey","getScreenResolution","screenOrientationKey","detectScreenOrientation","Enabled","Orientation","msOrientation","width","availableScreenResolutionKey","getAvailableScreenResolution","availWidth","availHeight","timezoneOffset","getTimezoneOffset","timezone","Intl","DateTimeFormat","resolvedOptions","sessionStorageKey","hasSessionStorage","localStorageKey","indexedDbKey","hasIndexedDB","addBehaviorKey","body","cpuClassKey","getNavigatorCpuClass","oscpuKey","oscpu","appNameKey","appName","appVersionKey","appVersion","appCodeNameKey","appCodeName","seedKey","now","getNavigatorPlatform","productKey","product","productSub","vendorKey","vendor","vendorSubKey","vendorSub","doNotTrackKey","getDoNotTrack","incognitoKey","RequestFileSystem","webkitRequestFileSystem","TEMPORARY","storage","estimate","then","quota","Safari","safariIncognito","openDatabase","localStorage","setItem","test","open","onerror","EDGE","indexedDB","PointerEvent","match","IE ","join","replace","OPR","splice","isCanvasSupported","getCanvasFp","webglKey","isWebGlSupported","javascriptsKey","scripts","locationKey","hash","host","hostname","href","origin","pathname","port","protocol","signalsKey","getSignals","getAdBlock","getHasLiedResolution","hasOwnProperty","hasSwfObjectLoaded","hasMinFlashInstalled","fonts","swfPath","loadSwfAndDetectFonts","missing options.fonts.swfPath","flash not installed","swf object not loaded","jsFontsKey","monospace","sans-serif","serif","Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria Math","Century Schoolbook","Comic Sans","Courier","Courier New","Geneva","Georgia","Helvetica","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI Light","Segoe UI Semibold","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 3","extendedJsFonts","userDefinedFonts","concat","filter","getElementsByTagName","createElement","div","span","style","position","absolute","-9999px","fontStyle","normal","letterSpacing","lineBreak","lineHeight","textTransform","none","left","textDecoration","textShadow","whiteSpace","textContent","mmmmmmmmmmlli","fontFamily","offsetHeight","appendChild","push","offsetWidth","removeChild","hashOnly","lists","mimetypesComponent","mimeTypes","suffixes","description","isIE","plugins","getRegularPlugins","pluginsShouldBeSorted","sort","getIEPlugins","getOwnPropertyDescriptor","ActiveXObject","AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","RealPlayer","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","Shell.UIHelper","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control.1","sortPluginsFor","batteryKey","getBattery","level","charging","chargingTime","dischargingTime","networkInfoKey","connection","downlink","downlinkMax","effectiveType","saveData","getTouchSupport","hardwareConcurrencyKey","sessionStorage","ERROR","getHardwareConcurrency","hardwareConcurrency","platform","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","TouchEvent","ontouchstart","height","inline","getContext","canvasWinding","isPointInPath","evenodd","yes","textBaseline","fillStyle","fillRect","#069","dontUseFakeFontInCanvas","font","11pt Arial","11pt no-real-font-123","fillText","Cwm fjordbank glyphs vext quiz, 😃","rgba(102, 204, 0, 0.2)","18pt Arial","multiply","rgb(255,0,255)","beginPath","arc","closePath","fill","rgb(0,255,255)","rgb(255,255,0)","toDataURL","canvasHash","getWebglFp","clearColor","DEPTH_TEST","depthFunc","LEQUAL","clear","DEPTH_BUFFER_BIT","getWebglCanvas","createBuffer","ARRAY_BUFFER","STATIC_DRAW","itemSize","numItems"]
Ti=wi,Si=319,function(e){for(;--e;)Ti.push(Ti.shift())}(++Si)
var xi=function(e,t){return wi[e-=0]}
!function(){var e=function(e,t,n,i,r){function o(){x(this,o)}return A(o,null,[{key:xi("0x0"),value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]]
var n=[0,0,0,0]
return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Multiply",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]]
var n=[0,0,0,0]
return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:xi("0x1"),value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}},{key:"x64LeftShift",value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}},{key:xi("0x2"),value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:xi("0x3"),value:function(e){return e=o.x64Xor(e,[0,e[0]>>>1]),e=o[xi("0x4")](e,[4283543511,3981806797]),e=o.x64Xor(e,[0,e[0]>>>1]),e=o.x64Multiply(e,[3301882366,444984403]),o.x64Xor(e,[0,e[0]>>>1])}},{key:xi("0x5"),value:function(e,t){t=t||0
var n,i=(e=e||"").length%16,r=e[xi("0x6")]-i,a=[0,t],s=[0,t],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167]
for(n=0;n<r;n+=16)c=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e[xi("0x7")](n+6))<<16|(255&e[xi("0x7")](n+7))<<24,255&e[xi("0x7")](n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],l=[255&e[xi("0x7")](n+12)|(255&e[xi("0x7")](n+13))<<8|(255&e[xi("0x7")](n+14))<<16|(255&e[xi("0x7")](n+15))<<24,255&e[xi("0x7")](n+8)|(255&e.charCodeAt(n+9))<<8|(255&e[xi("0x7")](n+10))<<16|(255&e[xi("0x7")](n+11))<<24],c=o[xi("0x4")](c,u),c=o.x64Rotl(c,31),c=o[xi("0x4")](c,d),a=o[xi("0x2")](a,c),a=o.x64Rotl(a,27),a=o[xi("0x0")](a,s),a=o[xi("0x0")](o[xi("0x4")](a,[0,5]),[0,1390208809]),l=o[xi("0x4")](l,d),l=o[xi("0x1")](l,33),l=o[xi("0x4")](l,u),s=o.x64Xor(s,l),s=o[xi("0x1")](s,31),s=o.x64Add(s,a),s=o.x64Add(o.x64Multiply(s,[0,5]),[0,944331445])
switch(c=[0,0],l=[0,0],i){case 15:l=o[xi("0x2")](l,o[xi("0x8")]([0,e.charCodeAt(n+14)],48))
case 14:l=o[xi("0x2")](l,o[xi("0x8")]([0,e.charCodeAt(n+13)],40))
case 13:l=o[xi("0x2")](l,o[xi("0x8")]([0,e[xi("0x7")](n+12)],32))
case 12:l=o[xi("0x2")](l,o[xi("0x8")]([0,e[xi("0x7")](n+11)],24))
case 11:l=o.x64Xor(l,o[xi("0x8")]([0,e.charCodeAt(n+10)],16))
case 10:l=o[xi("0x2")](l,o[xi("0x8")]([0,e[xi("0x7")](n+9)],8))
case 9:l=o.x64Xor(l,[0,e[xi("0x7")](n+8)]),l=o[xi("0x4")](l,d),l=o.x64Rotl(l,33),l=o.x64Multiply(l,u),s=o.x64Xor(s,l)
case 8:c=o[xi("0x2")](c,o[xi("0x8")]([0,e.charCodeAt(n+7)],56))
case 7:c=o[xi("0x2")](c,o[xi("0x8")]([0,e.charCodeAt(n+6)],48))
case 6:c=o.x64Xor(c,o.x64LeftShift([0,e.charCodeAt(n+5)],40))
case 5:c=o[xi("0x2")](c,o.x64LeftShift([0,e[xi("0x7")](n+4)],32))
case 4:c=o[xi("0x2")](c,o.x64LeftShift([0,e[xi("0x7")](n+3)],24))
case 3:c=o[xi("0x2")](c,o[xi("0x8")]([0,e[xi("0x7")](n+2)],16))
case 2:c=o[xi("0x2")](c,o[xi("0x8")]([0,e.charCodeAt(n+1)],8))
case 1:c=o.x64Xor(c,[0,e[xi("0x7")](n)]),c=o[xi("0x4")](c,u),c=o[xi("0x1")](c,31),c=o[xi("0x4")](c,d),a=o[xi("0x2")](a,c)}return a=o[xi("0x2")](a,[0,e[xi("0x6")]]),s=o.x64Xor(s,[0,e[xi("0x6")]]),a=o[xi("0x0")](a,s),s=o.x64Add(s,a),a=o.x64Fmix(a),s=o[xi("0x3")](s),a=o.x64Add(a,s),s=o.x64Add(s,a),(xi("0x9")+(a[0]>>>0).toString(16))[xi("0xa")](-8)+(xi("0x9")+(a[1]>>>0)[xi("0xb")](16))[xi("0xa")](-8)+(xi("0x9")+(s[0]>>>0)[xi("0xb")](16))[xi("0xa")](-8)+(xi("0x9")+(s[1]>>>0)[xi("0xb")](16)).slice(-8)}}]),o}(),t=function(t,n,i,r,o,a,s,c,l,u,d,f,p,h,g,m,v,y,b,E,k,_,T,S,C,I,R,O,j,M,N,P,D,U,L,F,B,q,H,G,V,K,W,z,X,Q,Y,$,J,Z,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,fe,pe){function he(){x(this,he),this[xi("0x1f2")]=[{key:xi("0x1f3"),getData:he[xi("0x2d")],shouldEnforceDataLimit:!0,dataLimit:1e3},{key:xi("0x1f4"),getData:he.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:xi("0x83"),getData:he[xi("0x82")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1f5"),getData:he[xi("0x88")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x85"),getData:he[xi("0x84")],shouldEnforceDataLimit:!0,dataLimit:300},{key:xi("0x87"),getData:he[xi("0x86")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1f6"),getData:he[xi("0xb3")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:"javascripts",getData:he[xi("0xb1")],shouldEnforceDataLimit:!0,dataLimit:2200},{key:xi("0x14e"),getData:he[xi("0x1f7")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:he[xi("0x8b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x8d"),getData:he.productSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1f8"),getData:he[xi("0x7e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x81"),getData:he[xi("0x80")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x14d"),getData:he[xi("0x149")],alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:he.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x8f"),getData:he[xi("0x8e")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x91"),getData:he[xi("0x90")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x58"),getData:he[xi("0x57")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x71"),getData:he[xi("0x71")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x73"),getData:he[xi("0x73")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x3c"),getData:he[xi("0x56")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:xi("0x25"),getData:he[xi("0x25")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x14f"),getData:he[xi("0x92")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:he[xi("0x94")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"colorDepth",getData:he[xi("0x1f9")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x62"),getData:he[xi("0x61")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1fa"),getData:he[xi("0x63")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenResolution",getData:he.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1fb"),getData:he.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1fc"),getData:he.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x14a"),getData:he[xi("0x77")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x9f"),getData:he[xi("0x79")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1fd"),getData:he[xi("0x7a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1fe"),getData:he[xi("0x7c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x9e"),getData:he.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x1ff"),getData:he[xi("0x200")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x201"),getData:he[xi("0xaf")],shouldEnforceDataLimit:!0,dataLimit:6e3},{key:xi("0x202"),getData:he[xi("0xbc")],shouldEnforceDataLimit:!0,dataLimit:150},{key:xi("0x203"),getData:he.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x204"),getData:he.networkInfoKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:he[xi("0x13c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x3a"),getData:he[xi("0x205")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x206"),getData:he[xi("0x20")],shouldEnforceDataLimit:!0,dataLimit:100},{key:xi("0x124"),getData:he[xi("0x207")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:xi("0x208"),getData:he[xi("0x11f")],shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:he[xi("0xc9")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:xi("0x209"),getData:he[xi("0x20a")],shouldEnforceDataLimit:!0,dataLimit:100}]}return A(he,[{key:"getFeatures",value:function(e,t){if(xi("0x20b")==w(e)){if(!t)return e({error:"Options not provided"})
var n={data:{latency:{acq_time:{}},errors:{}}},i=Date[xi("0x89")](),r={},o=0,a=0
this[xi("0x1f2")][xi("0xd")]((function(s){if(!t[xi("0x20c")][s[xi("0x20d")]]){var c=s.key
void 0!==s.alias&&null!==s[xi("0x20e")]&&s[xi("0x20e")].length>0&&(c=s[xi("0x20e")]),o++
var l=function(){r[c]=Date.now()
try{s[xi("0x20f")]((function(t){if(!1!==s[xi("0x210")]){var l=s[xi("0xc0")](xi("0x211"))&&xi("0x212")==w(s[xi("0x211")])?s[xi("0x211")]:1e3,u=JSON.stringify(t)[xi("0x6")]
u>l&&(n.data[xi("0x213")][c]="Exceeded current data limit:"+l+xi("0x214")+c+xi("0x215")+u,t={})}n[xi("0x216")][c]=t,n.data[xi("0x217")].acq_time[c]=Date.now()-r[c],++a>=o&&(n[xi("0x216")][xi("0x217")][xi("0x218")][xi("0x219")]=Date.now()-i,n.data[xi("0x21a")]=Date[xi("0x89")](),e(n[xi("0x216")],!0))}),t)}catch(e){n.data[xi("0x213")][c]=String(e)}}
xi("0x20b")==w(window.requestIdleCallback)&&!1!==t[xi("0x21b")]?window[xi("0x21c")](l):l()}})),n.data[xi("0x217")].acq_time[xi("0x219")]=Date[xi("0x89")]()-i,e(n[xi("0x216")],!1)}}}],[{key:t,value:function(e,t){if(Array.prototype.forEach&&e[xi("0xd")]===Array[xi("0xe")][xi("0xd")])e[xi("0xd")](t)
else if(e[xi("0x6")]===+e[xi("0x6")])for(var n=0,i=e.length;n<i;n++)t(e[n],n,e)
else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}},{key:n,value:function(e,t){var n=[]
return null==e?n:Array.prototype[xi("0xf")]&&e[xi("0xf")]===Array.prototype.map?e[xi("0xf")](t):(he.each(e,(function(e,i,r){n.push(t(e,i,r))})),n)}},{key:i,value:function(e,t){var n={},i=new(window[xi("0x11")]||window[xi("0x12")]||window.mozRTCPeerConnection||window[xi("0x13")])({iceServers:[{urls:xi("0x14")}]},{optional:[{RtpDataChannels:!0}]}),r=function(e){if(null!==e)try{var t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/[xi("0x15")](e)[1]
n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0
var e=i[xi("0x16")]
null!==e&&e[xi("0x17")][xi("0x18")]("\n")[xi("0xd")]((function(e){0!==e[xi("0x19")](xi("0x1a"))&&0!==e[xi("0x19")](xi("0x1b"))||r(e)})),t(Object.keys(n))}}
i[xi("0x1c")]=function(e){e.candidate&&r(e[xi("0x1d")][xi("0x1d")])},i[xi("0x1e")]=function(e){"complete"===i.iceGatheringState&&a()},i.createDataChannel("bl")
try{i.createOffer().then((function(e){i.setLocalDescription(e)}))}catch(e){i.createOffer((function(e){i[xi("0x1f")](e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:r,value:function(e,t){if(he[xi("0x21")]())e(xi("0x22"))
else{var n=he[xi("0x23")]()[xi("0x18")](" ")[0]
xi("0x24")!==n||!0!==navigator[xi("0x25")]?xi("0x26")===n&&window.document[xi("0x27")][xi("0x28")](xi("0x25"))||xi("0x29")in window||xi("0x2a")in document?e("Selenium"):window[xi("0x2b")]||window[xi("0x2c")]?e("PhantomJS"):e(t.NOT_AVAILABLE):e("Selenium")}}},{key:o,value:function(e,t){try{he[xi("0x10")](t,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t[xi("0x2e")],message:t[xi("0x2f")]}})}}},{key:a,value:function(e,t){if(!he[xi("0x31")]())return e(t[xi("0x32")])
navigator.mediaDevices.enumerateDevices().then((function(t){e(t[xi("0xf")]((function(e){var t={}
return t.id=e[xi("0x33")],t[xi("0x34")]=e[xi("0x35")],t[xi("0x36")]=e[xi("0x36")],t[xi("0x37")]=e[xi("0x37")],t})))}))[xi("0x38")]((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator[xi("0x39")]&&navigator[xi("0x39")].enumerateDevices}},{key:"audioKey",value:function(e,t){var n=t[xi("0x3a")]
if(n[xi("0x3b")]&&navigator[xi("0x3c")].match(/OS 11.+Version\/11.+Safari/))return e(t[xi("0x3d")])
var i=window.OfflineAudioContext||window[xi("0x3e")]
if(null==i)return e(t[xi("0x32")])
var r=new i(1,44100,44100),o=r.createOscillator()
o[xi("0x3f")]="triangle",o[xi("0x40")].setValueAtTime(1e4,r[xi("0x41")])
var a=r[xi("0x42")]()
he[xi("0xc")]([[xi("0x43"),-50],[xi("0x44"),40],[xi("0x45"),12],[xi("0x46"),-20],[xi("0x47"),0],[xi("0x48"),.25]],(function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]][xi("0x49")]&&a[e[0]].setValueAtTime(e[1],r.currentTime)})),o[xi("0x4a")](a),a[xi("0x4a")](r[xi("0x4b")]),o[xi("0x4c")](0),r[xi("0x4d")]()
var s=setTimeout((function(){return r[xi("0x4e")]=function(){},r=null,e(xi("0x4f"))}),n[xi("0x50")])
r[xi("0x4e")]=function(t){var n
try{clearTimeout(s),n=t[xi("0x51")][xi("0x52")](0).slice(4500,5e3)[xi("0x53")]((function(e,t){return e+Math[xi("0x54")](t)}),0)[xi("0xb")](),o[xi("0x55")](),a[xi("0x55")]()}catch(t){return void e(t)}e(n)}}},{key:s,value:function(e){e(navigator[xi("0x3c")])}},{key:c,value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator[xi("0x25")])}},{key:l,value:function(e,t){e(navigator[xi("0x58")]||navigator[xi("0x59")]||navigator[xi("0x5a")]||navigator[xi("0x5b")]||t[xi("0x32")])}},{key:"colorDepthKey",value:function(e,t){e(window[xi("0x5c")][xi("0x5d")]||t[xi("0x32")])}},{key:u,value:function(e,t){var n=navigator[xi("0x5f")]||t.NOT_AVAILABLE
n!==t[xi("0x32")]&&(n+=xi("0x60")),e(n)}},{key:d,value:function(e,t){e(window[xi("0x5c")][xi("0x62")]||t[xi("0x32")])}},{key:f,value:function(e,t){e(window[xi("0x64")]||t.NOT_AVAILABLE)}},{key:p,value:function(e,t){e(he[xi("0x66")](t))}},{key:h,value:function(e,t){if(t.screen[xi("0x68")]){var n={}
n[xi("0x69")]=void 0!==screen.orientation,n[xi("0x6a")]=screen[xi("0x6b")]||screen.mozOrientation||(screen.orientation||{})[xi("0x3f")],e(n)}else e(t[xi("0x3d")])}},{key:g,value:function(){return{w:window[xi("0x5c")][xi("0x6c")],h:window[xi("0x5c")].height}}},{key:m,value:function(e,t){e(he[xi("0x6e")](t))}},{key:"getAvailableScreenResolution",value:function(e){return window.screen[xi("0x6f")]&&window[xi("0x5c")][xi("0x70")]?{w:window.screen[xi("0x6f")],h:window[xi("0x5c")][xi("0x70")]}:e[xi("0x32")]}},{key:v,value:function(e){e((new Date)[xi("0x72")]()/60)}},{key:y,value:function(e,t){window[xi("0x74")]&&window[xi("0x74")][xi("0x75")]?e((new(window[xi("0x74")].DateTimeFormat))[xi("0x76")]().timeZone):e(t.NOT_AVAILABLE)}},{key:b,value:function(e,t){e(he[xi("0x78")](t))}},{key:E,value:function(e,t){e(he.hasLocalStorage(t))}},{key:k,value:function(e,t){e(he[xi("0x7b")](t))}},{key:_,value:function(e){e(!(!document.body||!document[xi("0x7d")].addBehavior))}},{key:"openDatabaseKey",value:function(e){e(!!window.openDatabase)}},{key:T,value:function(e,t){e(he[xi("0x7f")](t))}},{key:S,value:function(e,t){e(navigator[xi("0x81")]||t.NOT_AVAILABLE)}},{key:C,value:function(e,t){e(navigator[xi("0x83")]||t[xi("0x32")])}},{key:I,value:function(e,t){e(navigator[xi("0x85")]||t.NOT_AVAILABLE)}},{key:R,value:function(e,t){e(navigator[xi("0x87")]||t.NOT_AVAILABLE)}},{key:O,value:function(e,t){e(Date[xi("0x89")]())}},{key:"platformKey",value:function(e,t){e(he[xi("0x8a")](t))}},{key:j,value:function(e,t){e(navigator[xi("0x8c")]||t[xi("0x32")])}},{key:"productSubKey",value:function(e,t){e(navigator[xi("0x8d")]||t[xi("0x32")])}},{key:M,value:function(e,t){e(navigator[xi("0x8f")]||t.NOT_AVAILABLE)}},{key:N,value:function(e,t){e(navigator[xi("0x91")]||t[xi("0x32")])}},{key:P,value:function(e,t){e(he[xi("0x93")](t))}},{key:D,value:function(e,t){var n=he[xi("0x23")]()[xi("0x18")](" "),i=n[0],r=n[1],o=t[xi("0x32")]
if(xi("0x24")===i)if(parseInt(r)<=74){var a=window[xi("0x95")]||window[xi("0x96")]
a?a(window[xi("0x97")],100,(function(t){e(!1)}),(function(t){e(!0)})):e(o)}else xi("0x98")in navigator&&xi("0x99")in navigator[xi("0x98")]?navigator[xi("0x98")][xi("0x99")]()[xi("0x9a")]((function(t){var n=t[xi("0x9b")]
e(o=n<125829120)})):e(o)
else if(xi("0x9c")===i){if(o=!1,window[xi("0x9d")])o=!0
else{try{window[xi("0x9e")](null,null,null,null)}catch(e){o=!0}try{window[xi("0x9f")][xi("0xa0")](xi("0xa1"),1)}catch(e){o=!0}}void 0===o&&(o=!1,window[xi("0x9f")].removeItem(xi("0xa1"))),e(o)}else if(xi("0x26")===i){var s=indexedDB[xi("0xa2")](xi("0xa1"))
s[xi("0xa3")]=function(){e(!0)},s.onsuccess=function(){e(!1)}}else e("IE"===i||xi("0xa4")===i?!window[xi("0xa5")]&&(window[xi("0xa6")]||window.MSPointerEvent):o)}},{key:"getBrowserNameAndVersion",value:function(){var e,t=navigator.userAgent,n=t[xi("0xa7")](/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i[xi("0xa1")](n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],xi("0xa8")+(e[1]||"")):xi("0x24")===n[1]&&null!=(e=t[xi("0xa7")](/\b(OPR|Edge)\/(\d+)/))?e.slice(1)[xi("0xa9")](" ")[xi("0xaa")](xi("0xab"),"Opera"):(n=n[2]?[n[1],n[2]]:[navigator[xi("0x83")],navigator[xi("0x85")],"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n[xi("0xac")](1,1,e[1]),n[xi("0xa9")](" "))}},{key:"canvasKey",value:function(e,t){he[xi("0xad")]()?e(he[xi("0xae")](t)):e(t.NOT_AVAILABLE)}},{key:U,value:function(e,t){he[xi("0xb0")]()?e(he.getWebglFp(t)):e(t[xi("0x32")])}},{key:L,value:function(e,t){if(void 0===document[xi("0xb2")]||null===document.scripts)return e(t.NOT_AVAILABLE)
e([])}},{key:F,value:function(e,t){e({hash:location[xi("0xb4")]||t[xi("0x32")],host:location[xi("0xb5")]||t[xi("0x32")],hostname:location[xi("0xb6")]||t[xi("0x32")],href:location[xi("0xb7")]||t[xi("0x32")],origin:location[xi("0xb8")]||t[xi("0x32")],pathname:location[xi("0xb9")]||t[xi("0x32")],port:location[xi("0xba")]||t[xi("0x32")],protocol:location[xi("0xbb")]||t.NOT_AVAILABLE})}},{key:B,value:function(e){e(he.getSignals())}},{key:q,value:function(){var e={adBlockInstalled:function(){return he[xi("0xbe")]()},liedLanguages:function(){return he.getHasLiedLanguages()},liedResolution:function(){return he[xi("0xbf")]()},liedOS:function(){return he.getHasLiedOs()},liedBrowser:function(){return he.getHasLiedBrowser()}},t={}
for(var n in e)if(e[xi("0xc0")](n)){var i=e[n]
t[n]=i(n)}return t}},{key:"flashFontsKey",value:function(e,t){return he[xi("0xc1")]()?he[xi("0xc2")]()?t[xi("0xc3")][xi("0xc4")]?void he[xi("0xc5")]((function(t){e(t)}),t):e(xi("0xc6")):e(xi("0xc7")):e(xi("0xc8"))}},{key:H,value:function(t,n){var i=[xi("0xca"),xi("0xcb"),xi("0xcc")],r=[xi("0xcd"),xi("0xce"),xi("0xcf"),xi("0xd0"),xi("0xd1"),xi("0xd2"),xi("0xd3"),xi("0xd4"),xi("0xd5"),xi("0xd6"),xi("0xd7"),xi("0xd8"),"Cambria",xi("0xd9"),"Century","Century Gothic",xi("0xda"),xi("0xdb"),"Comic Sans MS","Consolas",xi("0xdc"),xi("0xdd"),xi("0xde"),xi("0xdf"),xi("0xe0"),"Helvetica Neue",xi("0xe1"),xi("0xe2"),xi("0xe3"),xi("0xe4"),"Lucida Fax","LUCIDA GRANDE",xi("0xe5"),xi("0xe6"),xi("0xe7"),"Lucida Sans Unicode","Microsoft Sans Serif",xi("0xe8"),xi("0xe9"),xi("0xea"),xi("0xeb"),"MS PGothic",xi("0xec"),xi("0xed"),xi("0xee"),xi("0xef"),xi("0xf0"),xi("0xf1"),xi("0xf2"),xi("0xf3"),xi("0xf4"),"Segoe UI",xi("0xf5"),xi("0xf6"),"Segoe UI Symbol","Tahoma",xi("0xf7"),xi("0xf8"),xi("0xf9"),xi("0xfa"),xi("0xfb"),xi("0xfc"),"Wingdings 2",xi("0xfd")]
void 0!==n.fonts&&void 0!==n[xi("0xc3")].extendedJsFonts&&(r=r.concat(n[xi("0xc3")][xi("0xfe")])),void 0!==n[xi("0xc3")]&&void 0!==n[xi("0xc3")][xi("0xff")]&&(r=r[xi("0x100")](n[xi("0xc3")][xi("0xff")])),r=r[xi("0x101")]((function(e,t){return r.indexOf(e)===t}))
var o=document[xi("0x102")]("body")[0],a=document[xi("0x103")](xi("0x104")),s=document[xi("0x103")](xi("0x104")),c={},l={},u=function(){var e=document[xi("0x103")](xi("0x105"))
return e[xi("0x106")][xi("0x107")]=xi("0x108"),e.style.left=xi("0x109"),e[xi("0x106")].fontSize="72px",e.style[xi("0x10a")]=xi("0x10b"),e[xi("0x106")].fontWeight=xi("0x10b"),e[xi("0x106")][xi("0x10c")]=xi("0x10b"),e[xi("0x106")][xi("0x10d")]="auto",e[xi("0x106")][xi("0x10e")]=xi("0x10b"),e[xi("0x106")][xi("0x10f")]=xi("0x110"),e[xi("0x106")].textAlign=xi("0x111"),e[xi("0x106")][xi("0x112")]=xi("0x110"),e[xi("0x106")][xi("0x113")]=xi("0x110"),e.style[xi("0x114")]=xi("0x10b"),e[xi("0x106")].wordBreak=xi("0x10b"),e[xi("0x106")].wordSpacing=xi("0x10b"),e[xi("0x115")]=xi("0x116"),e},d=function(e,t){var n=u()
return n[xi("0x106")][xi("0x117")]="'"+e+"',"+t,n},f=function(e){for(var t=!1,n=0;n<i.length;n++)if(t=e[n].offsetWidth!==c[i[n]]||e[n][xi("0x118")]!==l[i[n]])return t
return t},p=function(){for(var e=[],t=0,n=i[xi("0x6")];t<n;t++){var r=u()
r[xi("0x106")].fontFamily=i[t],a[xi("0x119")](r),e[xi("0x11a")](r)}return e}()
o.appendChild(a)
for(var h=0,g=i[xi("0x6")];h<g;h++)c[i[h]]=p[h][xi("0x11b")],l[i[h]]=p[h][xi("0x118")]
var m=function(){for(var e={},t=0,n=r.length;t<n;t++){for(var o=[],a=0,c=i.length;a<c;a++){var l=d(r[t],i[a])
s[xi("0x119")](l),o.push(l)}e[r[t]]=o}return e}()
o.appendChild(s)
for(var v=[],y=0,b=r[xi("0x6")];y<b;y++)f(m[r[y]])&&v[xi("0x11a")](r[y])
o.removeChild(s),o[xi("0x11c")](a)
var E={}
E.fontsHash=e[xi("0x5")](v[xi("0xa9")](),23),n.fonts[xi("0x11d")]||(E[xi("0x11e")]=v),t(E)}},{key:G,value:function(e,t){if(void 0!==navigator.mimeTypes&&null!==navigator[xi("0x120")]){for(var n=navigator[xi("0x120")],i=[],r=0;r<n[xi("0x6")];r++){var o={}
o[xi("0x3f")]=n[r][xi("0x3f")],o[xi("0x121")]=n[r][xi("0x121")],o.description=n[r][xi("0x122")],i[xi("0x11a")](o)}e(i)}else e(t[xi("0x32")])}},{key:"pluginsComponent",value:function(e,t){he[xi("0x123")]()?t[xi("0x124")].excludeIE?e(t[xi("0x3d")]):e(he.getIEPlugins(t)):e(he[xi("0x125")](t))}},{key:V,value:function(e){if(void 0===navigator[xi("0x124")]||null===navigator[xi("0x124")])return e[xi("0x32")]
for(var t=[],n=0,i=navigator.plugins[xi("0x6")];n<i;n++)navigator[xi("0x124")][n]&&t[xi("0x11a")](navigator[xi("0x124")][n])
return t.length>0&&he[xi("0x126")](e)&&(t=t[xi("0x127")]((function(e,t){return e[xi("0x2e")]>t[xi("0x2e")]?1:e.name<t.name?-1:0}))),he[xi("0xf")](t,(function(e){var t=he.map(e,(function(e){return[e[xi("0x3f")],e[xi("0x121")]]}))
return[e[xi("0x2e")],e.description,t]}))}},{key:K,value:function(e){var t=[]
if(Object[xi("0x129")]&&Object[xi("0x129")](window,xi("0x12a"))||xi("0x12a")in window){var n=[xi("0x12b"),xi("0x12c"),xi("0x12d"),xi("0x12e"),xi("0x12f"),xi("0x130"),xi("0x131"),xi("0x132"),"QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1",xi("0x133"),"RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)",xi("0x134"),xi("0x135"),"SWCtl.SWCtl",xi("0x136"),"ShockwaveFlash.ShockwaveFlash",xi("0x137"),xi("0x138"),xi("0x139"),"rmocx.RealPlayer G2 Control",xi("0x13a")]
t=he[xi("0xf")](n,(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}}))}else t[xi("0x11a")](e[xi("0x32")])
return navigator[xi("0x124")]&&(t=t[xi("0x100")](he[xi("0x125")](e))),t}},{key:"pluginsShouldBeSorted",value:function(e){for(var t=!1,n=0,i=e[xi("0x124")][xi("0x13b")].length;n<i;n++){var r=e.plugins[xi("0x13b")][n]
if(navigator[xi("0x3c")].match(r)){t=!0
break}}return t}},{key:W,value:function(e,t){void 0!==navigator[xi("0x13d")]?navigator.getBattery()[xi("0x9a")]((function(t){var n={}
n[xi("0x13e")]=t[xi("0x13e")],n[xi("0x13f")]=t.charging,n[xi("0x140")]=t[xi("0x140")],n.dischargingTime=t[xi("0x141")],e(n)})):e(t[xi("0x32")])}},{key:z,value:function(e,t){var n=navigator[xi("0x143")]
e(void 0!==n?{downlink:n[xi("0x144")],downlinkMax:n[xi("0x145")],type:n.type,effectiveType:n[xi("0x146")],rtt:n.rtt,saveData:n[xi("0x147")]}:t[xi("0x32")])}},{key:"touchSupportKey",value:function(e){e(he[xi("0x148")]())}},{key:X,value:function(e,t){e(he.getHardwareConcurrency(t))}},{key:Q,value:function(e){try{return!!window[xi("0x14a")]}catch(t){return e[xi("0x14b")]}}},{key:"hasLocalStorage",value:function(e){try{return!!window[xi("0x9f")]}catch(t){return e[xi("0x14b")]}}},{key:Y,value:function(e){try{return!!window.indexedDB}catch(t){return e[xi("0x14b")]}}},{key:$,value:function(e){return navigator[xi("0x14d")]?navigator[xi("0x14d")]:e.NOT_AVAILABLE}},{key:J,value:function(e){return navigator.cpuClass||e[xi("0x32")]}},{key:Z,value:function(e){return navigator[xi("0x14e")]?navigator.platform:e.NOT_AVAILABLE}},{key:ee,value:function(e){return navigator[xi("0x14f")]?navigator.doNotTrack:navigator[xi("0x150")]?navigator.msDoNotTrack:window[xi("0x14f")]?window.doNotTrack:e.NOT_AVAILABLE}},{key:te,value:function(){var e,t=0
void 0!==navigator[xi("0x151")]?t=navigator[xi("0x151")]:void 0!==navigator.msMaxTouchPoints&&(t=navigator[xi("0x152")])
try{document.createEvent(xi("0x153")),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:xi("0x154")in window}}},{key:ne,value:function(t){var n={},i=document[xi("0x103")]("canvas")
i[xi("0x6c")]=2e3,i[xi("0x155")]=200,i[xi("0x106")].display=xi("0x156")
var r=i[xi("0x157")]("2d")
return r.rect(0,0,10,10),r.rect(2,2,6,6),n[xi("0x158")]=!1===r[xi("0x159")](5,5,xi("0x15a"))?xi("0x15b"):"no",r[xi("0x15c")]="alphabetic",r[xi("0x15d")]="#f60",r[xi("0x15e")](125,1,62,20),r[xi("0x15d")]=xi("0x15f"),t[xi("0x160")]?r[xi("0x161")]=xi("0x162"):r[xi("0x161")]=xi("0x163"),r[xi("0x164")](xi("0x165"),2,15),r[xi("0x15d")]=xi("0x166"),r[xi("0x161")]=xi("0x167"),r[xi("0x164")](xi("0x165"),4,45),r.globalCompositeOperation=xi("0x168"),r[xi("0x15d")]=xi("0x169"),r[xi("0x16a")](),r[xi("0x16b")](50,50,50,0,2*Math.PI,!0),r[xi("0x16c")](),r[xi("0x16d")](),r.fillStyle=xi("0x16e"),r[xi("0x16a")](),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r[xi("0x16d")](),r[xi("0x15d")]=xi("0x16f"),r[xi("0x16a")](),r[xi("0x16b")](75,100,50,0,2*Math.PI,!0),r[xi("0x16c")](),r.fill(),r[xi("0x15d")]=xi("0x169"),r[xi("0x16b")](75,75,75,0,2*Math.PI,!0),r[xi("0x16b")](75,75,25,0,2*Math.PI,!0),r[xi("0x16d")](xi("0x15a")),i[xi("0x170")]&&(n[xi("0x171")]=e[xi("0x5")](i.toDataURL(),23)),n}},{key:xi("0x172"),value:function(t){var n,i=function(e){return n[xi("0x173")](0,0,0,1),n.enable(n[xi("0x174")]),n[xi("0x175")](n[xi("0x176")]),n[xi("0x177")](n.COLOR_BUFFER_BIT|n[xi("0x178")]),"["+e[0]+", "+e[1]+"]"}
if(!(n=he[xi("0x179")]()))return null
var r={},o=n[xi("0x17a")]()
n.bindBuffer(n[xi("0x17b")],o)
var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
n.bufferData(n[xi("0x17b")],a,n[xi("0x17c")]),o[xi("0x17d")]=3,o[xi("0x17e")]=3
var s=n.createProgram(),c=n.createShader(n[xi("0x17f")])
n[xi("0x180")](c,xi("0x181")),n[xi("0x182")](c)
var l=n[xi("0x183")](n[xi("0x184")])
n.shaderSource(l,xi("0x185")),n[xi("0x182")](l),n.attachShader(s,c),n.attachShader(s,l),n[xi("0x186")](s),n[xi("0x187")](s),s[xi("0x188")]=n.getAttribLocation(s,xi("0x189")),s[xi("0x18a")]=n[xi("0x18b")](s,xi("0x18c")),n[xi("0x18d")](s[xi("0x18e")]),n.vertexAttribPointer(s.vertexPosAttrib,o[xi("0x17d")],n[xi("0x18f")],!1,0,0),n[xi("0x190")](s[xi("0x18a")],1,1),n[xi("0x191")](n[xi("0x192")],0,o[xi("0x17e")])
try{r[xi("0x193")]=e.x64hash128(n.canvas[xi("0x170")](),23)}catch(e){}if(t.webgl[xi("0x11d")])return r
r[xi("0x194")]=he[xi("0x195")](),r[xi("0x196")]=n.getSupportedExtensions()||[],r["webgl aliased line width range"]=i(n.getParameter(n[xi("0x197")])),r["webgl aliased point size range"]=i(n[xi("0x198")](n.ALIASED_POINT_SIZE_RANGE)),r[xi("0x199")]=n[xi("0x198")](n.ALPHA_BITS),r[xi("0x19a")]=n[xi("0x19b")]()[xi("0x19c")]?"yes":"no",r[xi("0x19d")]=n[xi("0x198")](n.BLUE_BITS),r[xi("0x19e")]=n.getParameter(n[xi("0x19f")]),r[xi("0x1a0")]=n[xi("0x198")](n.GREEN_BITS),r[xi("0x1a1")]=function(e){var t=e.getExtension(xi("0x1a2"))||e[xi("0x1a3")](xi("0x1a4"))||e.getExtension(xi("0x1a5"))
if(t){var n=e[xi("0x198")](t[xi("0x1a6")])
return 0===n&&(n=2),n}return null}(n),r["webgl max combined texture image units"]=n.getParameter(n[xi("0x1a7")]),r[xi("0x1a8")]=n[xi("0x198")](n[xi("0x1a9")]),r[xi("0x1aa")]=n[xi("0x198")](n[xi("0x1ab")]),r[xi("0x1ac")]=n[xi("0x198")](n[xi("0x1ad")]),r[xi("0x1ae")]=n[xi("0x198")](n.MAX_TEXTURE_IMAGE_UNITS),r["webgl max texture size"]=n[xi("0x198")](n[xi("0x1af")]),r[xi("0x1b0")]=n.getParameter(n[xi("0x1b1")]),r[xi("0x1b2")]=n.getParameter(n[xi("0x1b3")]),r["webgl max vertex texture image units"]=n[xi("0x198")](n[xi("0x1b4")]),r[xi("0x1b5")]=n[xi("0x198")](n[xi("0x1b6")]),r[xi("0x1b7")]=i(n.getParameter(n.MAX_VIEWPORT_DIMS)),r[xi("0x1b8")]=n.getParameter(n[xi("0x1b9")]),r["webgl renderer"]=n[xi("0x198")](n[xi("0x1ba")]),r["webgl shading language version"]=n[xi("0x198")](n.SHADING_LANGUAGE_VERSION),r[xi("0x1bb")]=n.getParameter(n.STENCIL_BITS),r[xi("0x1bc")]=n.getParameter(n.VENDOR),r["webgl version"]=n[xi("0x198")](n.VERSION)
try{var u=n[xi("0x1a3")]("WEBGL_debug_renderer_info")
u&&(r["webgl unmasked vendor"]=n[xi("0x198")](u[xi("0x1bd")]),r[xi("0x1be")]=n[xi("0x198")](u.UNMASKED_RENDERER_WEBGL))}catch(e){}return n.getShaderPrecisionFormat?(he[xi("0xc")](["FLOAT","INT"],(function(e){he[xi("0xc")](["VERTEX","FRAGMENT"],(function(t){he[xi("0xc")]([xi("0x1bf"),"MEDIUM",xi("0x1c0")],(function(i){he[xi("0xc")]([xi("0x1c1"),"rangeMin","rangeMax"],(function(o){var a=n[xi("0x1c2")](n[t+xi("0x1c3")],n[i+"_"+e])[o]
xi("0x1c1")!==o&&(o=xi("0x1c4")+o)
var s=["webgl ",t[xi("0x1c5")]()," shader ",i[xi("0x1c5")]()," ",e[xi("0x1c5")]()," ",o][xi("0xa9")]("")
r[s]=a}))}))}))})),r):r}},{key:xi("0x195"),value:function(){try{var e=he[xi("0x179")](),t=e.getExtension(xi("0x1c6"))
return e[xi("0x198")](t[xi("0x1bd")])+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}},{key:"getAdBlock",value:function(){var e=document[xi("0x103")](xi("0x104"))
e[xi("0x1c7")]=xi("0x1c8"),e[xi("0x1c9")]=xi("0x1ca")
var t=!1
try{document.body.appendChild(e),t=0===document.getElementsByClassName(xi("0x1ca"))[0][xi("0x118")],document.body[xi("0x11c")](e)}catch(e){t=!1}return t}},{key:xi("0x1cb"),value:function(){if(void 0!==navigator[xi("0x1cc")])try{if(navigator[xi("0x1cc")][0][xi("0x1cd")](0,2)!==navigator[xi("0x58")][xi("0x1cd")](0,2))return!0}catch(e){return!0}return!1}},{key:"getHasLiedResolution",value:function(){return window[xi("0x5c")][xi("0x6c")]<window.screen[xi("0x6f")]||window[xi("0x5c")][xi("0x155")]<window[xi("0x5c")][xi("0x70")]}},{key:"getHasLiedOs",value:function(){var e,t=navigator[xi("0x3c")][xi("0x1c5")](),n=navigator.oscpu,i=navigator[xi("0x14e")][xi("0x1c5")]()
if(e=t[xi("0x19")](xi("0x1ce"))>=0?"Windows Phone":t[xi("0x19")](xi("0x1cf"))>=0?xi("0x1d0"):t[xi("0x19")](xi("0x1d1"))>=0?xi("0x1d2"):t[xi("0x19")]("linux")>=0||t[xi("0x19")](xi("0x1d3"))>=0?xi("0x1d4"):t[xi("0x19")](xi("0x1d5"))>=0||t[xi("0x19")](xi("0x1d6"))>=0?"iOS":t[xi("0x19")]("mac")>=0?"Mac":"Other",(xi("0x154")in window||navigator[xi("0x151")]>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&xi("0x1d2")!==e&&"iOS"!==e&&xi("0x1d7")!==e)return!0
if(void 0!==n){if((n=n[xi("0x1c5")]())[xi("0x19")](xi("0x1cf"))>=0&&xi("0x1d0")!==e&&xi("0x1d8")!==e)return!0
if(n[xi("0x19")](xi("0x1d9"))>=0&&xi("0x1d4")!==e&&"Android"!==e)return!0
if(n.indexOf(xi("0x1da"))>=0&&"Mac"!==e&&xi("0x1db")!==e)return!0
if((-1===n[xi("0x19")](xi("0x1cf"))&&-1===n[xi("0x19")](xi("0x1d9"))&&-1===n[xi("0x19")](xi("0x1da")))!=(xi("0x1d7")===e))return!0}return i.indexOf("win")>=0&&xi("0x1d0")!==e&&xi("0x1d8")!==e||(i[xi("0x19")](xi("0x1d9"))>=0||i.indexOf(xi("0x1d1"))>=0||i.indexOf(xi("0x1dc"))>=0)&&xi("0x1d4")!==e&&xi("0x1d2")!==e||(i[xi("0x19")](xi("0x1da"))>=0||i.indexOf(xi("0x1d6"))>=0||i[xi("0x19")](xi("0x1dd"))>=0||i[xi("0x19")]("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(i[xi("0x19")](xi("0x1cf"))<0&&i[xi("0x19")](xi("0x1d9"))<0&&i[xi("0x19")](xi("0x1da"))<0&&i[xi("0x19")](xi("0x1d5"))<0&&i.indexOf("ipad")<0)!=(xi("0x1d7")===e)||void 0===navigator.plugins&&xi("0x1d0")!==e&&"Windows Phone"!==e}},{key:xi("0x21"),value:function(){var e,t=navigator[xi("0x3c")].toLowerCase(),n=navigator[xi("0x8d")]
if(e=t[xi("0x19")](xi("0x1de"))>=0?xi("0x26"):t.indexOf(xi("0x1df"))>=0||t[xi("0x19")](xi("0x1e0"))>=0?"Opera":t.indexOf(xi("0x1e1"))>=0?"Chrome":t.indexOf("safari")>=0?xi("0x9c"):t[xi("0x19")](xi("0x1e2"))>=0?xi("0x1e3"):xi("0x1d7"),(xi("0x24")===e||xi("0x9c")===e||xi("0x1e4")===e)&&"20030107"!==n)return!0
var i,r=eval.toString()[xi("0x6")]
if(37===r&&xi("0x9c")!==e&&xi("0x26")!==e&&xi("0x1d7")!==e)return!0
if(39===r&&xi("0x1e3")!==e&&xi("0x1d7")!==e)return!0
if(33===r&&xi("0x24")!==e&&"Opera"!==e&&xi("0x1d7")!==e)return!0
try{throw"a"}catch(e){try{e[xi("0x1e5")](),i=!0}catch(e){i=!1}}return i&&"Firefox"!==e&&"Other"!==e}},{key:xi("0xad"),value:function(){var e=document[xi("0x103")]("canvas")
return!(!e[xi("0x157")]||!e.getContext("2d"))}},{key:xi("0xb0"),value:function(){if(!he[xi("0xad")]())return!1
var e=he[xi("0x179")]()
return!!window[xi("0x1e6")]&&!!e}},{key:xi("0x123"),value:function(){return xi("0x1e7")===navigator[xi("0x83")]||!(xi("0x1e8")!==navigator[xi("0x83")]||!/Trident/[xi("0xa1")](navigator[xi("0x3c")]))}},{key:xi("0xc1"),value:function(){return void 0!==window[xi("0x1e9")]}},{key:xi("0xc2"),value:function(){return window.swfobject[xi("0x1ea")]("9.0.0")}},{key:xi("0x1eb"),value:function(e){var t=document[xi("0x103")]("div")
t[xi("0x1ec")]("id",e.fonts[xi("0x1ed")]),document.body[xi("0x119")](t)}},{key:"loadSwfAndDetectFonts",value:function(e,t){window.___fp_swf_loaded=function(t){e(t)}
var n=t[xi("0xc3")].swfContainerId
he.addFlashDivNode()
var i={onReady:xi("0x1ee")}
window[xi("0x1e9")].embedSWF(t[xi("0xc3")][xi("0xc4")],n,"1","1","9.0.0",!1,i,{allowScriptAccess:xi("0x1ef"),menu:xi("0x1f0")},{})}},{key:xi("0x179"),value:function(){var e=document[xi("0x103")]("canvas"),t=null
try{t=e[xi("0x157")]("webgl")||e.getContext(xi("0x1f1"))}catch(e){}return t||(t=null),t}}]),he}(xi("0xc"),xi("0xf"),xi("0x10"),xi("0x20"),xi("0x2d"),xi("0x30"),xi("0x56"),xi("0x25"),xi("0x57"),xi("0x5e"),xi("0x61"),xi("0x63"),xi("0x65"),xi("0x67"),xi("0x66"),xi("0x6d"),xi("0x71"),xi("0x73"),xi("0x77"),xi("0x79"),xi("0x7a"),xi("0x7c"),xi("0x7e"),xi("0x80"),xi("0x82"),xi("0x84"),xi("0x86"),xi("0x88"),xi("0x8b"),xi("0x8e"),xi("0x90"),xi("0x92"),xi("0x94"),xi("0xaf"),xi("0xb1"),xi("0xb3"),xi("0xbc"),xi("0xbd"),xi("0xc9"),xi("0x11f"),xi("0x125"),xi("0x128"),xi("0x13c"),xi("0x142"),xi("0x149"),xi("0x78"),xi("0x7b"),xi("0x14c"),xi("0x7f"),xi("0x8a"),xi("0x93"),xi("0x148"),xi("0xae"))
function n(e){var t=arguments[xi("0x6")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n[xi("0x21d")]("#"+e):document[xi("0x21e")](e)
if(i){var r=i.firstChild.nodeValue
if(t&&i[xi("0x21f")].removeChild(i),r)try{return JSON.parse(r)}catch(e){return}}}function i(e){var t=document[xi("0x220")](e)
return void 0!==t&&t[xi("0x6")]>=1}var r=function(e,t,i,r,o,a){function s(){x(this,s)}return A(s,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e[xi("0x6")]),n=new Uint8Array(t),i=0,r=e[xi("0x6")];i<r;i++)n[i]=e[xi("0x7")](i)
return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode[xi("0x221")](null,e))}},{key:"importPk",value:function(e,t,n){var i=window[xi("0x222")](t),r=s[xi("0x223")](i)
return window[xi("0x224")].subtle[xi("0x225")](e,r,{name:xi("0x226"),hash:"SHA-256"},!0,n)}},{key:"wrap",value:function(e,t){return s[xi("0x227")](xi("0x228"),t,[xi("0x229")])[xi("0x9a")]((function(t){return window[xi("0x224")][xi("0x22a")][xi("0x229")](xi("0x22b"),e,t,{name:xi("0x226")})}))[xi("0x9a")]((function(e){return s.encode(new Uint8Array(e))}))}},{key:xi("0x22c"),value:function(e){var t={a:null,b:null,c:null}
return t[xi("0x22d")]=e,t}},{key:xi("0x22e"),value:function(e,t,n){var i={a:null,b:null,c:null}
try{var r=Date.now()
if(xi("0x22f")!=w(t)||"number"!=typeof n)throw new Error(xi("0x230"))
var o=window.crypto[xi("0x231")](new Uint8Array(16))
i.a=s[xi("0x232")](o)
var a=(new TextEncoder)[xi("0x232")](e),c="AES-CBC"
return window[xi("0x224")][xi("0x22a")].generateKey({name:c,length:256},!0,[xi("0x233"),"decrypt"])[xi("0x9a")]((function(e){return window[xi("0x224")].subtle.encrypt({name:c,iv:o},e,a)[xi("0x9a")]((function(o){return s.wrap(e,t)[xi("0x9a")]((function(e){return i.b=e,i.c=s[xi("0x232")](new Uint8Array(o)),i.d=Date.now()-r,i.e=n,i}))}))}))[xi("0x38")]((function(e){return i[xi("0x22d")]=String(e),i}))}catch(e){return i[xi("0x22d")]=String(e),Promise[xi("0x234")](i)}}},{key:xi("0x235"),value:function(e,t,i,r){if(xi("0x22f")!=w(t)||xi("0x22f")!=w(i))return Promise[xi("0x234")](s[xi("0x22c")](xi("0x236")))
var o=n(t),a=parseInt(n(i))
return(""===o||xi("0x22f")!=w(o)||xi("0x212")!=w(a)||Number[xi("0x237")](a))&&(o=xi(r?"0x238":"0x239"),a=r?2:1),s[xi("0x22e")](e,o,a)}},{key:xi("0x23a"),value:function(e,t,n,i,r){return null!=i&&xi("0x22f")==w(i[xi("0x23b")])&&xi("0x212")==w(i[xi("0x23c")])?s[xi("0x22e")](e,i[xi("0x23b")],i.publicKeyVersion):s[xi("0x235")](e,t,n,r)}},{key:xi("0x23d"),value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11)[xi("0xaa")](/[018]/g,(function(e){return(e^window[xi("0x224")][xi("0x231")](new Uint8Array(1))[0]&15>>e/4)[xi("0xb")](16)}))}},{key:xi("0x23e"),value:function(e){var t=(new TextEncoder)[xi("0x232")](e)
return crypto[xi("0x22a")].digest(xi("0x23f"),t)[xi("0x9a")]((function(e){return Array[xi("0x240")](new Uint8Array(e))[xi("0xf")]((function(e){return("00"+e[xi("0xb")](16))[xi("0xa")](-2)}))[xi("0xa9")]("")}))[xi("0x38")]((function(){return""}))}}]),s}(),o=xi("0x241"),a=xi("0x242"),s="DFP_WEB",c={getItem:function(e){var t=this[xi("0x243")]()[xi("0xa7")](this[xi("0x244")](e))
return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document[xi("0x245")][xi("0x18")](/\s*;\s*/),t=0;t<e[xi("0x6")];t++){var n=e[t][xi("0x18")]("=")
if(n[xi("0x6")]>1&&xi("0x246")===n[0]){var i=n[n[xi("0x6")]-1]
return i[xi("0x247")](2,i[xi("0x6")]-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this[xi("0x248")]()
if(n){var r=[e+"="+t+xi("0x249")+(arguments[xi("0x6")]>4&&void 0!==arguments[4]?arguments[4]:"/")+xi("0x24a")]
xi("0x22f")==w(i)&&i[xi("0x6")]>0&&r[xi("0x11a")](xi("0x24b")+i),r[xi("0x11a")](xi("0x24c")+(n instanceof Date?n[xi("0x24d")]():n)),document[xi("0x245")]=r.join("; ")}},deleteItem:function(e){this[xi("0xa0")](e,"",new Date(0))},_cookieRegEx:function(e){return new RegExp(e+xi("0x24e"))},getCookieString:function(){return document[xi("0x245")]},getDomain:function(){return window.location?window[xi("0x1f6")][xi("0xb6")]:""}},l={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:xi("0x24f"),swfPath:xi("0x250"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:"https://ponf.linkedin.com/pixel/tracking.png",telemetryCollectPath:xi("0x251"),extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:xi("0x252"),ERROR:xi("0x253"),EXCLUDED:xi("0x254"),useRequestIdleCallBack:!0},u=function(e,u,d,f,p,h,g,m){function v(e,t,n){var r=this
if(x(this,v),void 0!==t&&void 0!==e&&xi("0x255")===e[xi("0x256")])xi("0x257")===document[xi("0x258")]?this[xi("0x259")](t,n):window[xi("0x25a")](xi("0x25b"),(function(){r.checkConfigAndInitializeAllIntegration(t,n)}))
else if(void 0!==e){var o=JSON.parse(JSON.stringify(l))
i(xi("0x25c"))||i(xi("0x25d"))||(o[xi("0x21b")]=!1),this[xi("0x25e")](o,e)}else{var a=JSON[xi("0x25f")](JSON[xi("0x260")](l))
i(xi("0x25c"))||i(xi("0x25d"))||(a[xi("0x21b")]=!1),xi("0x257")===document[xi("0x258")]?this[xi("0x25e")](a):window.addEventListener(xi("0x25b"),(function(){r[xi("0x25e")](a)}))}}return A(v,[{key:xi("0x261"),value:function(e){return xi("0x212")!=w(e[xi("0x262")])||e[xi("0x262")]<=0||""===c[xi("0x263")]("df_ts")}},{key:xi("0x259"),value:function(e,t){!0===t[xi("0x264")]&&!0!==globalThis[xi("0x265")]?(globalThis[xi("0x265")]=!0,setTimeout((function(){globalThis[xi("0x265")]=!1}),3e4),this.checkConfigAndInitializeGlobalIntegration(e,t),this[xi("0x266")](e,t),c[xi("0x267")](xi("0x268"))):(this[xi("0x269")](t),this.isDfCollectionRequired(t)&&(this[xi("0x26a")](e,t),this[xi("0x266")](e,t),this[xi("0x26b")](t)))}},{key:xi("0x26a"),value:function(e,t){(!0===t[xi("0x264")]&&t.fpDataCookie.apfcTypes[xi("0x26c")](o)||!0===t[xi("0x26d")]&&!0!==globalThis[xi("0x26e")])&&this[xi("0x26f")](l,e,t)}},{key:xi("0x266"),value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes[xi("0x26c")](a)||!0===t[xi("0x270")]&&!0!==globalThis[xi("0x271")])&&this[xi("0x272")](e,t),(!0===t[xi("0x264")]&&t[xi("0x273")][xi("0x274")].includes(s)||!0===t[xi("0x275")]&&!0!==globalThis[xi("0x276")])&&this[xi("0x277")](e,t)}},{key:xi("0x269"),value:function(e){var t=xi("0x212")!=w(e[xi("0x262")])?0:e[xi("0x262")]
""!==c[xi("0x263")](xi("0x278"))&&Date.now()-Number(c[xi("0x263")](xi("0x278")))>t&&c[xi("0x267")](xi("0x278"))}},{key:xi("0x26b"),value:function(e){if(xi("0x212")==w(e[xi("0x262")])&&e[xi("0x262")]>0){var t=Date.now(),n=new Date
n[xi("0x279")](t+e[xi("0x262")]),c[xi("0xa0")](xi("0x278"),t,n)}}},{key:"initialize",value:function(e,i){if(null!=i||null!=n(xi("0x27a"))){this[xi("0x27d")](e,i)
var o=this[xi("0x27e")],a=this[xi("0x27f")],s=this[xi("0x280")]()
return(new t)[xi("0x281")]((function(t,n){t[xi("0x27e")]=o,t[xi("0x27f")]=a,t[xi("0x282")]=n,r[xi("0x23a")](JSON[xi("0x260")](t),xi("0x27a"),xi("0x283"),i,s)[xi("0x9a")]((function(t){globalThis.apfcDf=t,!0===n&&function(e,t,n){var i=new XMLHttpRequest,r=n?xi("0x284"):"https://www.linkedin-ei.com"
r+=String(t),i[xi("0xa2")](xi("0x285"),r),i.setRequestHeader(xi("0x286"),xi("0x287")),i[xi("0x288")](e)}(JSON[xi("0x260")](t),e[xi("0x289")],s)}))}),e)}globalThis[xi("0x27b")]=this[xi("0x27c")]}},{key:xi("0x26f"),value:function(e,n,i){return(new t).getFeatures((function(e,t){!0===t&&(v[xi("0xe")][xi("0x28a")](e,i),r[xi("0x235")](JSON.stringify(e),xi("0x27a"),xi("0x283")).then((function(e){n(o,JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0)}),e)}},{key:"intializeDfpIntegration",value:function(e,t){var n=c[xi("0x28b")](),i=this[xi("0x280")]()?xi("0x28c"):xi("0x28d")
try{if(RegExp("^[\\w-]*$").test(n)){var r="https://merchantpool1.linkedin.com/mdt.js?session_id="+n+"&instanceId="+i,o=document[xi("0x103")]("script")
o.setAttribute(xi("0x28e"),r),o[xi("0x1ec")]("id","dfpIframeScript"),o.addEventListener("load",(function(){return window[xi("0x28f")][xi("0x290")](document)})),document.getElementsByTagName(xi("0x291"))[0][xi("0x119")](o)
var a={sessionId:n,instanceId:i}
v[xi("0xe")][xi("0x28a")](a,t),e(s,JSON.stringify(a))}else{var l={error:xi("0x292")+n}
e(s,JSON[xi("0x260")](l))}}catch(t){var u={error:t}
e(s,JSON[xi("0x260")](u))}globalThis.dfpIntegrationCompleted=!0}},{key:xi("0x272"),value:function(e,t){var n=t[xi("0x293")],i=Date[xi("0x89")](),o=this[xi("0x280")]()?xi("0x294"):"PXgoH0hfKu",s=c[xi("0x28b")](),l=xi("0x295")+i+"&r_id="+encodeURIComponent(n)+xi("0x296")+o+"&uc=scraping"
r[xi("0x23e")](s)[xi("0x9a")]((function(r){""!==(s=r)&&(l+=xi("0x297")+s)
try{var c=document[xi("0x103")]("iframe")
c[xi("0x1ec")]("id",xi("0x298")),c[xi("0x1ec")]("src",l),c.setAttribute(xi("0x299"),xi("0x29a")),c[xi("0x1ec")](xi("0x29b"),xi("0x29c")),c[xi("0x106")].height=xi("0x29d"),c[xi("0x106")][xi("0x6c")]="0px",c[xi("0x106")].border=xi("0x110"),c[xi("0x106")][xi("0x107")]=xi("0x108"),c[xi("0x106")].left=xi("0x109"),document[xi("0x7d")][xi("0x119")](c)
var u={app_id:o,ts:i,d_id:s,r_id:n,uc:xi("0x29e")}
v[xi("0xe")][xi("0x28a")](u,t),e(a,JSON[xi("0x260")](u))}catch(t){var d={error:t}
e(a,JSON[xi("0x260")](d))}})),globalThis[xi("0x271")]=!0}}]),v}()
u[xi("0xe")][xi("0x27c")]=function(e){globalThis.triggerApfc=null,new u(e)},u[xi("0xe")][xi("0x29f")]=function(e,t){globalThis[xi("0x2a0")]=null,new u({globalIntegration:xi("0x255")},e,t)},u.prototype[xi("0x2a1")]=function(e,t){if(void 0!==t&&void 0!==e){var n=u[xi("0xe")][xi("0x2a2")]()
!0===t.onlyOnDemandFlow&&null===n||(t[xi("0x273")]=n,null!==n&&(t.enableOnDemandMode=!0),u.prototype[xi("0x29f")](e,t))}},u[xi("0xe")][xi("0x2a2")]=function(){var e=c[xi("0x263")](xi("0x268"))
if(!e||""===e)return null
var t=(e=atob(e)).split(xi("0x2a3"))
if(t[xi("0x6")]<5)return null
var n={}
return n[xi("0x2a4")]=t[0],n[xi("0x2a5")]=t[1],n[xi("0x2a6")]=t[2],n[xi("0x2a7")]=t[3],n[xi("0x274")]=t[4][xi("0x18")](","),n},u[xi("0xe")].populateFpDataCookie=function(e,t){"object"==w(e)&&xi("0x2a8")==w(t)&&(e[xi("0x2a9")]=t[xi("0x273")])},u.prototype.isProd=function(){var e=location&&location.host
return e&&e[xi("0x19")](xi("0x2aa"))>-1&&!e[xi("0x2ab")](xi("0x2ac"))},u[xi("0xe")][xi("0x2ad")]=function(e){return e&&0===Object.keys(e)[xi("0x6")]},u[xi("0xe")][xi("0x2ae")]=function(){var e=[]
return T(document[xi("0x220")](xi("0x2af"))).forEach((function(t){T(t[xi("0x102")](xi("0x2b0"))).forEach((function(t){var n=t[xi("0x1c7")]
if(n){var i=(new DOMParser).parseFromString(n,xi("0x2b1"))
i&&T(i.getElementsByClassName("bc")).forEach((function(t){e.push({src:t[xi("0x28")](xi("0x28e")),style:t.getAttribute(xi("0x106")),class:t[xi("0x28")]("class"),width:t[xi("0x28")](xi("0x6c")),height:t.getAttribute(xi("0x155"))})}))}}))})),0===e[xi("0x6")]?null:e[0]},u[xi("0xe")][xi("0x27d")]=function(e,t){if(null!=e){var n,i,o="bc",a=xi("0x2b2"),s="1",c="1",l=e[xi("0x2b3")]
if(this[xi("0x27e")]=null,this[xi("0x27f")]=null,null!==(n=this.getUrlFromNoscriptBeacon())){o=n.class,a=n[xi("0x106")],s=n[xi("0x6c")],c=n.height
var u=new URL(n.src)
l=u[xi("0xbb")]+"//"+u[xi("0xb5")]+u.pathname,this.reqid=u[xi("0x2b4")].get(xi("0x27e")),this[xi("0x27f")]=u[xi("0x2b4")][xi("0x2b5")](xi("0x27f"))}else if(void 0!==(i=function(e){var t=arguments[xi("0x6")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n[xi("0x21d")]("#"+e):document[xi("0x21e")](e)
if(i){var r=i[xi("0x2b6")][xi("0x2b7")]
if(t&&i.parentNode.removeChild(i),r)try{var o=r
return"'"!==o[xi("0x2b8")](0)&&'"'!==o.charAt(0)||(o=o.substring(1,o.length-1)),JSON[xi("0x25f")](o)}catch(e){return}}}(xi("0x2b9"))))this[xi("0x27e")]=void 0===i[xi("0x27e")]?null:i[xi("0x27e")],this[xi("0x27f")]=i[xi("0x27f")]
else{if(void 0===t)return
this.pageInstance=t.pageInstance}this[xi("0x280")]()||(l=l.replace(/\.linkedin\.com/,xi("0x2ba"))),null===this[xi("0x27e")]&&(this.reqid=r[xi("0x23d")]())
var d=l+"?"+new URLSearchParams({reqid:this.reqid,pageInstance:this[xi("0x27f")],js:xi("0x255")})[xi("0xb")](),f=document.getElementsByClassName(xi("0x2af"))[0]
null==f&&((f=document[xi("0x103")](xi("0x104")))[xi("0x1ec")]("id",this[xi("0x27e")]),document[xi("0x7d")][xi("0x119")](f))
var p=document[xi("0x103")](xi("0x2bb"))
p[xi("0x28e")]=d,p.style=a,p[xi("0x1c9")]=o,p[xi("0x6c")]=s,p.height=c,f[xi("0x119")](p)}},xi("0x2bc")!=("undefined"==typeof globalThis?"undefined":w(globalThis))&&xi("0x2bc")!=("undefined"==typeof document?"undefined":w(document))&&xi("0x2bc")!=("undefined"==typeof window?"undefined":w(window))&&(globalThis.triggerDnaApfcEvent=u.prototype[xi("0x29f")],globalThis[xi("0x2bd")]=u.prototype[xi("0x2a1")],new u)}()
var Ii=function(){function e(){x(this,e)}return A(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemand&&globalThis.triggerDnaApfcEventOnDemand(t,e)}catch(e){}}}]),e}(),Ai=function(){function e(t,n,i,r,o,a,s,c,l,u,d){x(this,e),R(this,"hostApis",void 0),R(this,"statics",void 0),R(this,"options",void 0),R(this,"allowTimingOrigin",void 0),R(this,"fireCustomMeasureEvent",void 0),R(this,"fireResourceLoadEvent",void 0),R(this,"isTracerEnabled",void 0),R(this,"responseRleCache",void 0),R(this,"fireApfcEvent",void 0),R(this,"abuseDeviceSignalCollectionConfig",void 0),R(this,"trackingEndpoint",void 0),R(this,"collectResourceTimings",void 0),R(this,"collectCdnData",void 0),R(this,"perfObserver",void 0),R(this,"renderTimings",new Map),R(this,"urlToTreeId",new Map),R(this,"cdnDataProvider",void 0),R(this,"observables",new Xn),R(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireCustomMeasureEvent=o,this.fireResourceLoadEvent=a,this.isTracerEnabled=s,this.responseRleCache=c,this.fireApfcEvent=l,this.abuseDeviceSignalCollectionConfig=u,this.trackingEndpoint=d,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Ci(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track"
try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return A(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(mi=mi||t.createElement("a")).href=e,mi.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:yi(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e)
if(i&&(i.renderEnd=i.renderEnd||yi(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void Kt("ViewLoadEvent",Kn)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,i=e.renderEnd,r=void 0===i?-1:i,o=e.renderStart,a=void 0===o?-1:o,s=[]
return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:r}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance
this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e
null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,i=e.immediate,r=this.collectSynchronousData(n)
if(i)return r
var o=this.collectAsynchronousData()
return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{key:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,i=Object.create(null)
i.pageKey=n,i.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",i.networkInformationMetrics=this.snapshot.networkInformationMetrics
var r=this.statics,o=r.webUIFramework,a=r.timeSource,s=r.isSinglePageApp,c=r.appRenderMode,l=r.isAppRenderFailed,u=r.isFromServiceWorker,d=r.treeId
return i.treeId=d,i.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},i}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null)
t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null)
var i=e.isInitial,r=e.immediate,o=this.hostApis.assign
if(i){var a=Oi(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,l=a.navigationType,u=a.workerStart
s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=l),n.workerStart=null!=u?u:0,Hn.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!r){var d=this.collectAsynchronousData()
if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var f=this.collectAsynchronousData(!0)
return o(t.cdnData,f.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,i=e.transferSize,r=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,l={}
l.resourceKey=n,l.isNetwork=!!i&&0!==i,l.loadType=r||"unknown",l.timeOrigin=t
var u=[]
Object.keys(Gn).forEach((function(t){var n
t in Dn&&void 0!==e[t]&&u.push({resourceProgressType:Gn[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u
var d={},f=Vn[o]
d.nextHopProtocol=null!=f?f:"UNKNOWN",d.transferSize=i,d.encodedBodySize=a,d.decodedBodySize=s,l.resourceNetworkContext=d,l.requestStart=c
try{var p,h,g=new URL(n),m=g.pathname+g.search+g.hash
return null===(p=this.responseRleCache)||void 0===p||p.offerResourceLoadEvent(m,l),null===(h=this.responseRleCache)||void 0===h?void 0:h.flushCacheByUrl(m)}catch(e){var v,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n)
return e instanceof Error?(e.message="".concat(y," ").concat(e.message),Kt("ResourceLoadEvent",e)):Kt("ResourceLoadEvent",y),null===(v=this.responseRleCache)||void 0===v?void 0:v.flushCacheByUrl()}}},{key:"reset",value:function(){var e
this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,i=t.PerformanceObserver,r=Object.create(null)
return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=ki(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,Oi(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])}
if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData()
n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[]
return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?Ft(r,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow
try{var n=this.abuseDeviceSignalCollectionConfig||{},i=n.isDnaIntegrationLixEnabled,r=n.isHumanIntegrationLixEnabled,o=n.isDfpIntegrationLixEnabled,a=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled
if(r||o||i){var c,l,u={treeId:null!==(c=null===(l=this.statics.treeId)||void 0===l?void 0:l.toString())&&void 0!==c?c:"",humanIntegrationEnabled:r,dfpIntegrationEnabled:o,dnaIntegrationEnabled:i,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t};(!t||t&&s)&&Ii.collectFeatures(u,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this
this.perfObserver=new e((function(e){var i=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization
i&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var r=e.entryType,o=e.name,a=e.startTime,s=e.duration
"resource"===r?n.processSingleResourceTiming(e,t):"mark"===r?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"MARK",measureProgressStates:[{measureProgressName:o,timestamp:a}]}),"mark_meaningful_paint_end"!==o||i||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===r?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:o,timestamp:a,duration:s}]})):"longtask"===r&&(n.observables.longTasks.push({duration:s,name:o,startTime:a}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:o,timestamp:a,duration:s}]}))}))})),this.observables.userTimingEntries=ki(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent)
var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this
e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance
"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this
if(this.collectResourceTimings)if(this.options["enable-otel"])ut.emit(In.INTERNAL_OTEL_RESOURCE,{resourceTiming:e})
else{this.observables.resourceTimingEntries.push(e)
var i=-1!==e.name.indexOf(this.trackingEndpointPattern)
if(this.isTracerEnabled&&!i&&!function(e){for(var t=0,n=vi;t<n.length;t++){var i=n[t]
if(i.strToFilter&&-1!==e.indexOf(i.strToFilter))return!0
if(i.pattern&&i.pattern.test(e))return!0}return!1}(e.name)){var r=this.collectResourceLoadEvent(e,t)
r&&r.forEach((function(e){return n.fireResourceLoadEvent(e)}))}}this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""}
return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:_i(this.renderTimings),networkInformationMetrics:Ri(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function Ri(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 Oi(e){if(!e)return{navigationTimingApi:!1}
var t=Object.create({})
if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0]
n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var i=e.timing,r=e.navigation
return i&&r?(t.navigationTimingApi=!0,Hn.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var ji=function(){function e(t,n,i){x(this,e),R(this,"featureName",void 0),R(this,"trackingCore",void 0),R(this,"rumConfig",void 0),R(this,"observing",!1),R(this,"basePageTreeId",void 0),R(this,"startPageInstance",void 0),R(this,"startMemory",void 0),R(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return A(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory()
i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||It(M),this.startMemory=i,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:bi(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize
return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}()
R(ji,"checkpoints",[1,3,10,30,90,180,300])
var Mi,Ni,Pi,Di,Ui,Li=A((function e(t,n,i){x(this,e),R(this,"webUIFramework",void 0),R(this,"timeSource",void 0),R(this,"isSinglePageApp",void 0),R(this,"appRenderMode",void 0),R(this,"isAppRenderFailed",void 0),R(this,"pageLoadMode","INITIAL"),R(this,"isSSL",void 0),R(this,"treeId",void 0),R(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),Fi=function(){function e(t){x(this,e),R(this,"isPEMTracerEnabled",void 0),R(this,"responseContextMap",new Map),R(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return A(e,[{key:"offerResponseContext",value:function(e,t){if(this.isPEMTracerEnabled)if(this.responseContextMap.has(e)){var n
null===(n=this.responseContextMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new Xt((function(e,t){return e.requestTime<t.requestTime}))
i.heapPush(t),this.responseContextMap.set(e,i)}}},{key:"offerResourceLoadEvent",value:function(e,t){if(this.resourceLoadEventsMap.has(e)){var n
null===(n=this.resourceLoadEventsMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new Xt((function(e,t){return e.requestStart<t.requestStart}))
i.heapPush(t),this.resourceLoadEventsMap.set(e,i)}}},{key:"mergeAndConsume",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e),i=null==t?void 0:t.heappop(),r=null==n?void 0:n.heappop()
return this.mergeRleAndRes(i,r)}},{key:"mergeRleAndRes",value:function(e,t){if(e&&t){e.requestStart
var n=g(e,o),i=(t.requestTime,t.viewNames),r=t.requestType,s=t.requestTag,c=g(t,a)
return n.targetViewNames=i||[],r&&(n.requestType=r),s&&(n.requestTag=s),n.resourceNetworkContext=h(h({},n.resourceNetworkContext),c),zt(n)}}},{key:"deleteEntryByRequestUrl",value:function(e){this.resourceLoadEventsMap.delete(e),this.responseContextMap.delete(e)}},{key:"canFlush",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e)
return n&&t&&n.heapsize()>0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[]
if(e){var n,i=_(e)
try{for(i.s();!(n=i.n()).done;){var r=n.value
t=[].concat(T(t),T(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys()
if(o){var a,c=_(o)
try{for(c.s();!(a=c.n()).done;){var l,u=a.value,d=null===(l=this.resourceLoadEventsMap.get(u))||void 0===l?void 0:l.heapClear()
d&&(t=[].concat(T(t),T(d.map((function(e){e.requestStart
var t=g(e,s)
return zt(t)})))))}}catch(e){c.e(e)}finally{c.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[]
if(!e)return n
if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){e.requestStart
var t=g(e,c)
return zt(t)})))||n
if(this.canFlush(e)){for(var i=this.responseContextMap.get(e);i&&i.heapsize()>0;){var r=this.mergeAndConsume(e)
r&&n.push(r)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),Bi=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},qi=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return
var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}))
return n.observe({type:e,buffered:!0}),n}}catch(e){}},Hi=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))}
addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Gi=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Vi=function(e,t,n){var i
return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},Ki=-1,Wi=function(){return"hidden"===document.visibilityState?0:1/0},zi=function(){Hi((function(e){var t=e.timeStamp
Ki=t}),!0)},Xi=function(){return Ki<0&&(Ki=Wi(),zi(),Gi((function(){setTimeout((function(){Ki=Wi(),zi()}),0)}))),{get firstHiddenTime(){return Ki}}},Qi=!1,Yi=-1,$i=function(e,t){Qi||(function(e,t){var n,i=Xi(),r=Bi("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:qi("paint",o);(a||s)&&(n=Vi(e,r,t),a&&o(a),Gi((function(i){r=Bi("FCP"),n=Vi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){Yi=e.value})),Qi=!0)
var n,i=function(t){Yi>-1&&e(t)},r=Bi("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1]
o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>r.value&&(r.value=o,r.entries=a,n())}},c=qi("layout-shift",s)
c&&(n=Vi(i,r,t),Hi((function(){c.takeRecords().map(s),n(!0)})),Gi((function(){o=0,Yi=-1,r=Bi("CLS",0),n=Vi(i,r,t)})))},Ji={passive:!0,capture:!0},Zi=new Date,er=function(e,t){Mi||(Mi=t,Ni=e,Pi=new Date,ir(removeEventListener),tr())},tr=function(){if(Ni>=0&&Ni<Pi-Zi){var e={entryType:"first-input",name:Mi.type,target:Mi.target,cancelable:Mi.cancelable,startTime:Mi.timeStamp,processingStart:Mi.timeStamp+Ni}
Di.forEach((function(t){t(e)})),Di=[]}},nr=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(){er(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,Ji),removeEventListener("pointercancel",i,Ji)}
addEventListener("pointerup",n,Ji),addEventListener("pointercancel",i,Ji)}(t,e):er(t,e)}},ir=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,nr,Ji)}))},rr=function(e,t){var n,i=Xi(),r=Bi("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=qi("first-input",o)
n=Vi(e,r,t),a&&Hi((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&Gi((function(){var i
r=Bi("FID"),n=Vi(e,r,t),Di=[],Ni=-1,Mi=null,ir(addEventListener),i=o,Di.push(i),tr()}))},or={},ar=function(e,t){var n,i=Xi(),r=Bi("LCP"),o=function(e){var t=e.startTime
t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=qi("largest-contentful-paint",o)
if(a){n=Vi(e,r,t)
var s=function(){or[r.id]||(a.takeRecords().map(o),a.disconnect(),or[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),Hi(s,!0),Gi((function(i){r=Bi("LCP"),n=Vi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,or[r.id]=!0,n(!0)}))}))}))}},sr=["LCP","FID","CLS"],cr={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},lr={},ur=function(){var e
if(!en)return""
var t=window.performance,n=void 0
if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),dr=!1,fr=new Set,pr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function hr(){var e=!0===window.__test__resetWebVitalsState
if(!dr||e){e&&(fr=new Set),sr.forEach(gr)
var t=Symbol()
Ui=t,[ar,rr,$i].forEach((function(e){return e(mr.bind(null,t),!0)})),[ar,rr,$i].forEach((function(e){return e(vr.bind(null,t))})),dr=!0}}function gr(e){lr[e]={name:e,value:-1,updateHistory:[]}
var t=pr[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(lr[e].value=-2)}function mr(e,t){if(e===Ui){var n=lr[t.name],i=bi()
n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),fr.forEach((function(e){return e(t,i,!1)}))}}function vr(e,t){e===Ui&&fr.forEach((function(e){return e(t,bi(),!0)}))}var yr,br=function(){function e(t,n){var i=this
x(this,e),R(this,"basePageTreeId",void 0),R(this,"basePageKey",void 0),R(this,"observing",!1),R(this,"appContextMap",new Map),R(this,"rumConfig",void 0),R(this,"trackingCore",void 0),R(this,"onMetricUpdate",(function(e,t,n){var r
i.observing&&(n?i.reportMetric(e.name):i.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=i.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return A(e,[{key:"startObserving",value:function(){var e,t,n=this
hr(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",sr.forEach((function(e){var t;-2===(null===(t=lr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,fr.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,fr.delete(e)}},{key:"reportMetric",value:function(e){var t=lr[e]
if(t){var n={name:cr[e]||e}
"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value)
var i=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:ur},a=null
switch(n.name){case"LCP":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],a={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Ei(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)}
return o.url&&(a.url=o.url),a}(n,i)
break
case"FID":a=function(e,t){var n
if(0===e.updateHistory.length)return null
var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1]
return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Ei(o.target)}}(n,i)
break
case"CLS":a=function(e,t){if(0===e.updateHistory.length)return null
var n=e.updateHistory.map((function(e){return e.data.entries})).flat()
if(0===n.length)return null
var i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null
i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})))
var a,s=t.get(r.time)
return o&&s?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":Ei(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(a){var s={}
return r(s,o,a),s}return o}(this.basePageTreeId,this.basePageKey,t,this.appContextMap,this.trackingCore.host.api.assign)
n.metadata=function(e){var t={}
return Object.keys(e).forEach((function(n){var i=e[n]
t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(i)
var r={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]}
this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},r)}}}]),e}(),Er={CALL_TREE_ID:"x-li-uuid",POINT_OF_PRESENCE_ID:"x-li-pop",MICROSOFT_EDGE_REFERENCE:"x-msedge-ref",FABRIC:"x-li-fabric",PEM_RESPONSE_METADATA:"x-li-pem-resp-meta",CONTENT_TYPE:"content-type",CDN_CACHE:"x-cache"},kr=function(){function e(t){x(this,e),R(this,"_callTreeId",void 0),R(this,"_fabric",void 0),R(this,"_msEdgeRef",void 0),R(this,"_pointOfPresenceId",void 0),R(this,"_responseMetadata",void 0),R(this,"_contentType",void 0),R(this,"_cdnCacheMetadata",void 0),R(this,"_downstreamAvailability",void 0)
var n=new Map
null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(Er.CALL_TREE_ID)||null,this._pointOfPresenceId=n.get(Er.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=n.get(Er.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=n.get(Er.FABRIC)||null,this._responseMetadata=n.get(Er.PEM_RESPONSE_METADATA)||null,this._contentType=n.get(Er.CONTENT_TYPE)||null,this._cdnCacheMetadata=n.get(Er.CDN_CACHE)||null,this._downstreamAvailability=function(e){if(null==e)return 1
var t,n=_(e.split(","))
try{for(n.s();!(t=n.n()).done;){var i=t.value.split("=",2)
if(2===i.length&&"availability"===i[0]){var r=parseFloat(i[1])
if(r>=0&&r<=1)return r}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return A(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}()
function _r(e,t,n){if(t){if(429===t||999===t)return yr.TOO_MANY_REQUESTS
if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return yr.BLOCKED_BY_CLIENT_PROXY
if((i=t)>=400&&i<500)return yr.CLIENT_ERROR
if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return yr.SERVER_ERROR
if(e.pointOfPresenceId)return yr.TRAFFIC_LI_POP_TO_DC_ERROR
if(e.microsoftEdgeReference)return yr.TRAFFIC_AFD_TO_LI_POP_ERROR}return yr.SERVER_ERROR}(e)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return yr.DOWNSTREAM_GRACEFUL_DEGRADATION
if(!n)return null}var i
if(n instanceof Error){if("AbortError"===n.name)return yr.CLIENT_ABORTED
if(n instanceof TypeError&&(n.message.indexOf("Network request failed")>=0||n.message.indexOf("NetworkError when attempting to fetch resource")>=0||n.message.indexOf("Failed to fetch")>=0))return yr.NETWORK_ERROR}else if(function(e){return!!e&&("string"==typeof e.statusText||"number"==typeof e.status||"number"==typeof e.readyState)}(n)){if("timeout"===n.statusText)return yr.CLIENT_TIMEOUT
if(0===n.status&&"abort"===n.statusText)return yr.CLIENT_ABORTED
if("readyState"in n&&0===n.readyState)return yr.NETWORK_ERROR}return yr.UNCLASSIFIED}function Tr(e,t,n,i,r){var o=new kr(i),a=_r(o,n,r),s=null
return a&&(s={errorType:a},a===yr.UNCLASSIFIED&&r&&(s.errorMessage=r.message,function(e,t,n){var i=["tracer-unclassified-error"]
null==n||n.forEach((function(e){return i.push("target-view-name-".concat(e))})),Kt("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),i)}(r,i,t))),{cdnCache:o.cdnCacheMetadata||void 0,contentType:o.contentType||void 0,fabric:o.fabric||void 0,msEdgeReference:o.microsoftEdgeReference||void 0,pointOfPresenceId:o.pointOfPresenceId||void 0,resourceTreeId:o.callTreeId?o.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(yr||(yr={}))
var Sr,Cr=function(){function e(t,n,i){var r,o,a,s,c,l,u,d,f,p,h,g,m,v,y,b,E,k,_,T,S,C,w,I=this
x(this,e),R(this,"core",void 0),R(this,"config",void 0),R(this,"collector",void 0),R(this,"boomerangStart",-1),R(this,"webVitalsObserver",void 0),R(this,"appMemoryObserver",void 0),R(this,"pageMemoryObserver",void 0),R(this,"liveTokens",new Set),R(this,"stateWM",new WeakMap),R(this,"activeToken",void 0),R(this,"isInitial",void 0),R(this,"shouldTrackCustomMeasureEvent",void 0),R(this,"pageLoadId",void 0),R(this,"initialResourcesEvents",[]),R(this,"initialCustomMeasureEvents",[]),R(this,"responseRleCache",void 0),R(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),R(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),R(this,"isTracerEnabled",void 0),R(this,"isPEMTracerEnabled",void 0),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n])
return e}(i.host.api.assign({},qn),n)
var A="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),O={isDnaIntegrationLixEnabled:"enabled"===(null===(a=(s=i.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.fireApfcEvent"))||"enabled"===(null===(c=i.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.webviewDnaMemberLixTreatment)||"enabled"===(null===(l=i.host.abuseDeviceSignalCollectionConfig)||void 0===l?void 0:l.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:"enabled"===(null===(u=(d=i.host).__getLixTreatment)||void 0===u?void 0:u.call(d,"pemberly.tracking.human.integration"))||"enabled"===(null===(f=i.host.abuseDeviceSignalCollectionConfig)||void 0===f?void 0:f.webviewHumanMemberLixTreatment)||"enabled"===(null===(p=i.host.abuseDeviceSignalCollectionConfig)||void 0===p?void 0:p.humanMemberLixTreatment),isDfpIntegrationLixEnabled:"enabled"===(null===(h=(g=i.host).__getLixTreatment)||void 0===h?void 0:h.call(g,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(m=i.host.abuseDeviceSignalCollectionConfig)||void 0===m?void 0:m.webviewDfpMemberLixTreatment)||"enabled"===(null===(v=i.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.dfpMemberLixTreatment),disablePerfMarkerOptimization:i.host.abuseDeviceSignalCollectionConfig&&i.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(y=(b=i.host).__getLixTreatment)||void 0===y?void 0:y.call(b,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(E=i.host.abuseDeviceSignalCollectionConfig)||void 0===E?void 0:E.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:"enabled"===(null===(k=(_=i.host).__getLixTreatment)||void 0===k?void 0:k.call(_,"pemberly.web.ondemand"))},j=null===(T=(S=i.host).__getLixTreatment)||void 0===T?void 0:T.call(S,"pemberly.tracking.generic-tracers"),M=!!j&&zn.test(j)
this.isTracerEnabled=M||this.config["enable-tracking-3"]
var N="enabled"===(null===(C=(w=i.host).__getLixTreatment)||void 0===C?void 0:C.call(w,"pemberly.tracking.pem-tracers"))
this.isPEMTracerEnabled=N||this.config["enable-pem-tracking-3"],this.responseRleCache=new Fi(this.isPEMTracerEnabled),this.collector=new Ai(i.host.api,new Li(t,this.config,i.host),this.config,A,(function(e){return I.fireCustomMeasureEvent(e)}),(function(e){return I.fireResourceLoadEvent(e,I.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,O,i.host.endpoint),this.collector.startObserving(),ut.before(rt,this.beforeHideHandlerBound)}return A(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,i=this.collector.recordRenderEnd(e,this.isTracerEnabled,n)
i&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},i)}},{key:"provisionNetworkResponse",value:function(e,t){var n,i,r=this
null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t)
var o=null===(i=this.responseRleCache)||void 0===i?void 0:i.flushCacheByUrl(e)
null==o||o.forEach((function(e){r.fireResourceLoadEvent(e,r.activeToken)}))}},{key:"start",value:function(e){var t,n
!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset()
var i,r=Object.create(null),o="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"))
return this.activeToken=r,this.liveTokens.add(r),this.isTracerEnabled?(this.stateWM.set(r,{isInitial:this.isInitial,startTime:yi(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:yi(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new ji("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new ji("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new br(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0
if(e&&this.activeToken&&this.activeToken===e){var a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=yi(this.core.host.api.performance,s)
a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o},this.isTracerEnabled&&o&&(a.pageKey=o)
var l=this.activeToken,u=this.isTracerEnabled?5e3:this.config["beacon-timeout"]
a.fireRumEventTimeout=setTimeout((function(){if(i.isTracerEnabled){i.flushResourceLoadEvents(l)
var e=i.collector.collectPageLoadEndData({isInitial:a.isInitial})
"then"in e?e.then((function(e){i.firePageLoadEndEvent(e,l)})):i.firePageLoadEndEvent(e,l)}var t=i.collector.collect({isInitial:a.isInitial})
"then"in t?t.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(t,l)}),u),this.activeToken=void 0}else Kt("rum-end",Wn)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=Tr(t,n,i,r,o)
if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,h({nextHopProtocol:Nn.UNKNOWN},s))
this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){Kt("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0
var t=this.stateWM.get(e)
this.pageLoadId=bt(),t.pageLoadId=this.pageLoadId
var n=this.collector.collectPageLoadStartData({isInitial:t.isInitial,rumKey:t.pageKey})
n.pageLoadId=t.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},n)}else Kt("PageLoadStartEvent",Wn)}},{key:"destroy",value:function(){var e,t,n
ut.offBefore(rt,this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken
return n&&(t=this.stateWM.get(n).pageLoadId),t}},{key:"abort",value:function(e){var t
if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid")
if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended")
this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this
this.liveTokens.forEach((function(t){var n=e.stateWM.get(t)
if(n.endProps){if(e.isTracerEnabled){var i=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0})
e.firePageLoadEndEvent(i,t),e.flushResourceLoadEvents(t)}var r=e.collector.collect({isInitial:n.isInitial,immediate:!0})
e.fireRumEvent(r,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,i=this,r=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache()
null==r||r.map((function(t){i.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps,a=i.pageLoadId,s=i.pageKey
if(o){var c=o.renderCompleteTime,l=o.isImpactedByHiddenWindow
if(a?e.pageLoadId=a:Kt("PageLoadEndEvent",Kn),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=l),e.navigationTiming){var u,d=null===(u=e.navigationTiming)||void 0===u?void 0:u.navigationStart,f=this.boomerangStart=d||this.boomerangStart,p=d||r,h=c-p
e.navigationTiming.boomerangStart=f,e.navigationTiming.timeDone=h,e.navigationTiming.navigationStart=p,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this
if(this.isTracerEnabled&&this.shouldTrackCustomMeasureEvent){var n,i=null!==(n=this.getPageLoadIdFromState())&&void 0!==n?n:this.pageLoadId
if(!i)return void this.initialCustomMeasureEvents.push(e)
this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=i,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=i,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this
if(this.isTracerEnabled){var i,r=null!==(i=this.getPageLoadIdFromState(t))&&void 0!==i?i:this.pageLoadId
if(!r)return void this.initialResourcesEvents.push(e)
this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=r,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=r,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps
if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=a-u,f=this.config["app-version"]
this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:s,appVersion:f,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:a},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,i=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),r={issueTime:0,browserId:""}
try{r=Wt(i)}catch(e){}var o={type:e,bsCookieInfo:r,payload:t}
this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,i=t.viewNames,r=t.requestType,o={resourceKey:e,isNetwork:!0,targetViewNames:i||[],loadType:"serversideresponse",resourceNetworkContext:h({},g(t,l)),resourceProgressStates:[],timeOrigin:n}
return r&&(o.loadType=r),o}}]),e}(),wr="undefined"!=typeof window&&"undefined"!=typeof performance,xr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG"),Ir=function(){function e(t,n){x(this,e),R(this,"trackingCore",void 0),R(this,"endPageInstance",void 0),R(this,"startPageInstance",void 0),R(this,"featureIdentifier",void 0),R(this,"marks",[]),R(this,"spans",[]),R(this,"spanStarts",new Map),R(this,"started",!1),R(this,"ended",!1),R(this,"featureKey",void 0),R(this,"productName",void 0),R(this,"flushOnEnd",void 0),R(this,"basePageTreeId",void 0),R(this,"debounceFlush",void 0),R(this,"disableAutoFlush",void 0),R(this,"isCanceled",!1),R(this,"isClosed",!1),this.trackingCore=t
var i=n.featureKey,r=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd
this.featureKey=i,this.productName=r,this.flushOnEnd=a
var s=r?"::".concat(r):""
this.featureIdentifier="".concat(i).concat(s)
var c=void 0!==o?o:3e3
c>0&&(this.debounceFlush=function(e,t,n){var i,r,o
void 0===t&&(t=50),void 0===n&&(n={})
var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[]
function d(){if(void 0!==c){var e=Date.now()-l
if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),n=this
return new Promise((function(i,r){var c=a&&void 0===o
if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t)
s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var f=e.apply(n,t)
return s&&s(f),i(f)}u.push({resolve:i,reject:r})}))}
return f.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},f}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}return A(e,[{key:"start",value:function(e){var t
if(wr){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"))
this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t
if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'))
if(wr){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"))
this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){wr&&(this.marks.push({name:e,startTime:bi()}),xr&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))),this.handleNewData())}},{key:"spanStart",value:function(e){wr&&(this.spanStarts.set(e,bi()),xr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(wr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e
this.spans.push({name:i,startTime:n,duration:bi()-n}),xr&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end"))),this.handleNewData()}}},{key:"clearSpan",value:function(e){wr&&this.spanStarts.has(e)&&this.spanStarts.delete(e)}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return bi()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}}
this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||It(M),i={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans}
return e.productName&&(i.productName=e.productName),e.basePageTreeId&&(i.basePageTreeId=e.basePageTreeId),i}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(wr){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'))
if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'))}}}]),e}()
!function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(Sr||(Sr={}))
var Ar,Rr,Or="http.response.",jr=Or+"header.",Mr="lifespan"
!function(e){e._SPAN_TYPE="li.mo.spanType",e.HTTP_RESPONSE_STATUS_CODE="http.response.status_code"}(Ar||(Ar={})),function(e){e.DEFAULT="DEFAULT",e.APPLICATION="APPLICATION",e.PAGE="PAGE"}(Rr||(Rr={}))
var Nr,Pr,Dr,Ur,Lr=function(){function e(t,n){var i=this
x(this,e),R(this,"syncAttributes",void 0),R(this,"resourceType",Rr.DEFAULT),R(this,"asyncAttributes",void 0),R(this,"asyncAttributesPending",void 0),R(this,"asyncAttributesResolvedPromise",void 0),R(this,"resolveAsyncAttributesPromise",void 0),this.syncAttributes=t,null!=n&&n.waitForAsyncAttributes?(this.asyncAttributesPending=!0,this.asyncAttributesResolvedPromise=new Promise((function(e){i.resolveAsyncAttributesPromise=e}))):(this.asyncAttributesPending=!1,this.resolveAsyncAttributesPromise=function(){})}var t,n
return A(e,[{key:"resolveAsyncAttributes",value:function(e){this.asyncAttributesPending&&(this.asyncAttributes=e,this.asyncAttributesPending=!1,this.resolveAsyncAttributesPromise())}},{key:"waitForAsyncAttributes",value:(t=d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.asyncAttributesPending){e.next=3
break}return e.next=3,this.asyncAttributesResolvedPromise
case 3:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,n=arguments
return new Promise((function(i,r){var o=t.apply(e,n)
function a(e){f(o,i,r,a,s,"next",e)}function s(e){f(o,i,r,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})},{key:"attributes",get:function(){if(this.asyncAttributesPending)throw new Error("Resource attributes are not ready yet - async attributes still pending.")
var e={resourceType:this.resourceType}
return Object.assign({},e,this.syncAttributes,this.asyncAttributes)}}]),e}(),Fr=A((function e(){x(this,e)})),Br={string:"stringValue",boolean:"boolValue",int:"intValue",double:"doubleValue"},qr=new(function(e){function t(){return x(this,t),m(this,t,arguments)}return E(t,Fr),A(t,[{key:"adapt",value:function(e){var t=[]
for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=e[n],r=this.getFieldName(i)
r?t.push({key:n,value:{value:R({},r,i)}}):console.warn("Attribute '".concat(n,"' of type '").concat(w(i),"' could not be converted to a proto attribute."))}return t}},{key:"getFieldName",value:function(e){var t=w(e)
return"number"==typeof e&&(t=Number.isInteger(e)?"int":"double"),t in Br?Br[t]:void 0}}]),t}()),Hr=new(function(e){function t(){return x(this,t),m(this,t,arguments)}return E(t,Fr),A(t,[{key:"adapt",value:function(e){var t=1e3*(window.performance.timeOrigin+e)
return Math.round(t)}}]),t}()),Gr=new(function(e){function t(){return x(this,t),m(this,t,arguments)}return E(t,Fr),A(t,[{key:"adapt",value:function(e){return{timeUnixNano:Hr.adapt(e.time),name:e.name,attributes:qr.adapt(e.attributes)}}}]),t}()),Vr=new(function(e){function t(){return x(this,t),m(this,t,arguments)}return E(t,Fr),A(t,[{key:"adapt",value:function(e){return{traceId:e.traceId,spanId:e.spanId,traceState:e.traceState,attributes:qr.adapt(e.attributes),flags:e.flags}}}]),t}()),Kr=new(function(){function e(){x(this,e)}return A(e,[{key:"adapt",value:function(e){var t
return{traceId:e.spanContext.traceId,spanId:e.spanContext.spanId,traceState:e.spanContext.traceState,parentSpanId:null===(t=e.parentSpan)||void 0===t?void 0:t.spanContext.spanId,flags:e.spanContext.traceFlags,name:e.name,kind:e.kind,startTimeUnixNano:Hr.adapt(e.startTime),endTimeUnixNano:Hr.adapt(e.endTime),attributes:qr.adapt(e.attributes),events:e.events.map(Gr.adapt),links:e.links.map(Vr.adapt),status:e.status}}}]),e}()),Wr=function(){function e(t){x(this,e),R(this,"trackingCore",void 0),this.trackingCore=t}return A(e,[{key:"export",value:function(e){var t=Kr.adapt(e),n={attributes:qr.adapt(e.parentTracer.parentTracerProvider.resource.attributes)},i={traceId:e.spanContext.traceId,resourceSpans:{resource:n,scopeSpans:[{scope:e.parentTracer.scope,spans:[t]}]}}
this.trackingCore.fireEvent("OtelPilotClientTraceEvent",i)}}]),e}(),zr=function(){function e(t){x(this,e),R(this,"DEBUG_QUERY_PARAM","__LI_OTEL_DEBUG"),R(this,"enabled",!1),R(this,"globalWindow",void 0),R(this,"exportedSpans",void 0)
var n=t
if(void 0!==n.location){var i=new URLSearchParams(n.location.search)
this.enabled=null!==i.get(this.DEBUG_QUERY_PARAM)}this.enabled&&(this.globalWindow="undefined"!=typeof window?window:{},this.exportedSpans=this.globalWindow.__li_otelSpans||[],this.globalWindow.__li_otelSpans=this.exportedSpans)}return A(e,[{key:"export",value:function(e){this.exportedSpans&&this.exportedSpans.push(e)}}]),e}(),Xr=new(function(e){function t(){return x(this,t),m(this,t,arguments)}return E(t,Fr),A(t,[{key:"adapt",value:function(e,t){var n={"pageInstance.pageUrn":e.pageInstance.pageUrn,"pageInstance.trackingId":e.pageInstance.trackingId,pageKey:e.pageKey}
e.applicationInstance&&(n["applicationInstance.version"]=e.applicationInstance.version,n["applicationInstance.applicationUrn"]=e.applicationInstance.applicationUrn,n["applicationInstance.trackingId"]=JSON.stringify(e.applicationInstance.trackingId))
var i=(null==t?void 0:t.prefix)||""
return Object.keys(n).reduce((function(e,t){return e[i+t]=n[t],e}),{})}}]),t}()),Qr=function(){function e(t){x(this,e),R(this,"trackingCore",void 0),this.trackingCore=t}return A(e,[{key:"onStart",value:function(e){if(e.startTrackingContext){var t=e.startTrackingContext||this.trackingCore.getCurrentContext(),n=Xr.adapt(t,{prefix:"trackingCtx.start."})
Object.assign(e.attributes,n)}}},{key:"onEnd",value:function(e){if(e.endTrackingContext){var t=e.endTrackingContext||this.trackingCore.getCurrentContext(),n=Xr.adapt(t,{prefix:"trackingCtx.end."})
Object.assign(e.attributes,n)}}}]),e}(),Yr=function(){function e(){x(this,e)}return A(e,[{key:"onStart",value:function(e){}},{key:"onEnd",value:function(e){e.attributes[Ar._SPAN_TYPE]=e.spanType}}]),e}()
function $r(e){for(var t="",n=0;n<e;n++)t+="0123456789abcdef".charAt(Math.floor(16*Math.random()))
return t}function Jr(){return $r(32)}function Zr(){return $r(16)}!function(e){e[e.CREATED=0]="CREATED",e[e.STARTED=1]="STARTED",e[e.ENDED=2]="ENDED"}(Nr||(Nr={})),function(e){e.UNKNOWN="UNKNOWN",e.OK="OK",e.ERROR="ERROR"}(Pr||(Pr={})),function(e){e.SERVER="SERVER",e.CLIENT="CLIENT",e.INTERNAL="INTERNAL"}(Dr||(Dr={})),function(e){e.DEFAULT="DEFAULT",e.INFINITE="INFINITE",e.EVENT_WRAPPER="EVENT_WRAPPER"}(Ur||(Ur={}))
var eo=function(){function e(t,n,i){var r,o,a,s
x(this,e),R(this,"name",void 0),R(this,"parentTracer",void 0),R(this,"status",{code:Pr.UNKNOWN,message:""}),R(this,"attributes",{}),R(this,"events",[]),R(this,"kind",Dr.INTERNAL),R(this,"links",[]),R(this,"spanContext",void 0),R(this,"spanType",void 0),R(this,"startTime",void 0),R(this,"endTime",void 0),R(this,"startTrackingContext",void 0),R(this,"endTrackingContext",void 0),R(this,"parentSpan",void 0),R(this,"state",Nr.CREATED),this.name=t,this.parentTracer=n,this.spanType=Ur.DEFAULT
var c=null==i||null===(r=i.parentSpan)||void 0===r?void 0:r.spanContext
this.spanContext={traceId:(null==i||null===(o=i.spanContext)||void 0===o?void 0:o.traceId)||(null==c?void 0:c.traceId)||Jr(),spanId:(null==i||null===(a=i.spanContext)||void 0===a?void 0:a.spanId)||Zr(),traceState:(null==i||null===(s=i.spanContext)||void 0===s?void 0:s.traceState)||(null==c?void 0:c.traceState)||""},this.parentSpan=null==i?void 0:i.parentSpan,null!=i&&i.links&&(this.links=i.links)}return A(e,[{key:"start",value:function(e){return this.state!==Nr.CREATED?(this.warn("Can't start a span that has already been started"),this):(this.startTime="number"==typeof(null==e?void 0:e.startTime)?e.startTime:performance.now(),this.startTrackingContext=null==e?void 0:e.trackingContext,this.state=Nr.STARTED,this.parentTracer.handleSpanStart(this),this)}},{key:"end",value:function(e){var t="number"==typeof(null==e?void 0:e.endTime)?e.endTime:performance.now()
this.state===Nr.STARTED?t<this.startTime?this.warn("Can't end a span with endTime < startTime"):(this.name=(null==e?void 0:e.name)||this.name,this.endTime=t,this.endTrackingContext=null==e?void 0:e.trackingContext,this.state=Nr.ENDED,this.parentTracer.handleSpanEnd(this)):this.warn("Can't end a span that either has not been started or has already ended.")}},{key:"addEvent",value:function(e,t){var n={name:e,time:"number"==typeof(null==t?void 0:t.time)?t.time:performance.now(),attributes:(null==t?void 0:t.attributes)||{}},i=this.parentTracer.parentTracerProvider.config.spanEventCountLimit
this.events.length>=i?this.warn("Can't add event, because span event limit (".concat(i,") has been reached")):(this.events.push(n),this.state!==Nr.STARTED&&this.warn("Added a span event to a span that either has not been started or has already ended."),n.time<this.startTime&&this.warn("Added a span event with event.time < span.startTime"))}},{key:"warn",value:function(e){this.parentTracer.parentTracerProvider.warn(e)}}]),e}(),to=function(e){function t(e,n,i,r){var o,a,s,c,l
x(this,t),(l=m(this,t,["li.mo.event-wrapper",n,i])).spanType=Ur.EVENT_WRAPPER
var d="number"==typeof(null===(o=r)||void 0===o?void 0:o.time)?r.time:performance.now()
return r=Object.assign({},r,{time:d}),u((a=v(l),b(t.prototype)),"start",a).call(a,{startTime:d}),u((s=v(l),b(t.prototype)),"addEvent",s).call(s,e,r),u((c=v(l),b(t.prototype)),"end",c).call(c,{endTime:d}),l}return E(t,eo),A(t,[{key:"start",value:function(){return this.warn(this.getMethodNotSupportedMessage("start")),this}},{key:"end",value:function(){this.warn(this.getMethodNotSupportedMessage("end"))}},{key:"addEvent",value:function(){this.warn(this.getMethodNotSupportedMessage("addEvent"))}},{key:"getMethodNotSupportedMessage",value:function(e){return"EventWrapperSpan doesn't support explicit '".concat(e,"' operation. This '").concat(e,"' call will have no effect.")}}]),t}(),no=function(e){function t(e,n,i){var r
return x(this,t),(r=m(this,t,[e,n,i])).spanType=Ur.INFINITE,r}return E(t,eo),A(t,[{key:"start",value:function(e){return this.state!==Nr.CREATED?(this.warn("Can't start an infinite span that has already been started"),this):(u(b(t.prototype),"start",this).call(this,e),u(b(t.prototype),"end",this).call(this,{endTime:this.startTime}),this.state=Nr.STARTED,this)}},{key:"end",value:function(){this.warn("InfiniteSpan object doesn't support an end() operation. This 'end()' call will have no effect.")}},{key:"addEvent",value:function(e,n){var i=this.parentTracer.parentTracerProvider.config.spanEventCountLimit
if(this.events.length>=i)this.warn("Can't add event, because span event limit (".concat(i,") has been reached"))
else{u(b(t.prototype),"addEvent",this).call(this,e,n)
var r={parentSpan:this}
new to(e,this.parentTracer,r,n)}}}]),t}(),io=function(){function e(t,n){x(this,e),R(this,"scope",void 0),R(this,"parentTracerProvider",void 0),this.scope=t,this.parentTracerProvider=n}return A(e,[{key:"createSpan",value:function(e,t,n){var i=null==t?void 0:t.parentSpan
if((null==i?void 0:i.spanType)!==Ur.EVENT_WRAPPER)return((null==n?void 0:n.spanType)||Ur.DEFAULT)===Ur.INFINITE?new no(e,this,t):new eo(e,this,t)
this.parentTracerProvider.warn("Can't create span with parentSpan of type EventWrapperSpan.")}},{key:"handleSpanStart",value:function(e){this.parentTracerProvider.handleSpanStart(e)}},{key:"handleSpanEnd",value:function(e){this.parentTracerProvider.handleSpanEnd(e)}}]),e}(),ro=function(){function e(){x(this,e),R(this,"endedSpanCount",0)}return A(e,[{key:"onStart",value:function(){}},{key:"onEnd",value:function(e){e.attributes["li.globalSequenceNumber"]=this.endedSpanCount,this.endedSpanCount++}}]),e}(),oo={spanCountLimit:500,spanEventCountLimit:128},ao=function(){function e(t,n){var i=this
x(this,e),R(this,"resource",void 0),R(this,"config",void 0),R(this,"tracers",{}),R(this,"spanExporters",[]),R(this,"spanProcessors",[]),R(this,"spanExportQueue",[]),R(this,"waitForResourceAsyncAttributes",!0),R(this,"spanCount",0),this.resource=t,this.config=Object.assign({},oo,n),this.addSpanProcessor(new ro),t.waitForAsyncAttributes().then((function(){i.waitForResourceAsyncAttributes=!1,i.flushSpanQueue()}))}return A(e,[{key:"getTracer",value:function(e){var t=this.getScopeKey(e)
return void 0===this.tracers[t]&&(this.tracers[t]=new io(e,this)),this.tracers[t]}},{key:"addSpanExporter",value:function(e){this.spanExporters.push(e)}},{key:"addSpanProcessor",value:function(e){this.spanProcessors.push(e)}},{key:"handleSpanStart",value:function(e){this.spanProcessors.forEach((function(t){t.onStart(e)}))}},{key:"handleSpanEnd",value:function(e){this.spanProcessors.forEach((function(t){t.onEnd(e)})),this.spanExportQueue.push(e),this.waitForResourceAsyncAttributes||this.flushSpanQueue()}},{key:"warn",value:function(e){this.config.logger&&this.config.logger.warn(e)}},{key:"getScopeKey",value:function(e){return"".concat(e.name,"@").concat(e.version||"")}},{key:"flushSpanQueue",value:function(){var e=this
this.spanExportQueue.forEach((function(t){e.spanCount++,e.spanCount>e.config.spanCountLimit?e.spanCount===e.config.spanCountLimit+1&&e.warn("Resource reached span count limit (".concat(e.config.spanCountLimit,") and won't export any more spans.")):e.spanExporters.forEach((function(e){e.export(t)}))})),this.spanExportQueue=[]}}]),e}(),so=function(e){function t(){var e
x(this,t)
for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r]
return R(v(e=m(this,t,[].concat(i))),"resourceType",Rr.APPLICATION),e}return E(t,Lr),A(t)}(),co=function(e){function t(){var e
x(this,t)
for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r]
return R(v(e=m(this,t,[].concat(i))),"resourceType",Rr.PAGE),e}return E(t,Lr),A(t)}(),lo=function(){function e(t,n){x(this,e),R(this,"trackingCore",void 0),R(this,"INSTRUMENTATION_NAME","tracking-context-instrumentation"),R(this,"activeContext",void 0),R(this,"initialPageTraceId",void 0),this.trackingCore=t,this.initialPageTraceId=null==n?void 0:n.initialPageTraceId}return A(e,[{key:"enable",value:function(){var e=this.startApplicationSpan(),t=this.startPageSpan(0,e)
this.activeContext={application:{applicationSpan:e,applicationResource:e.parentTracer.parentTracerProvider.resource},page:{pageSpan:t,pageResource:t.parentTracer.parentTracerProvider.resource}}}},{key:"disable",value:function(){}},{key:"handleNavigationStart",value:function(){var e=this.startPageSpan(performance.now(),this.activeContext.application.applicationSpan)
this.activeContext.page={pageSpan:e,pageResource:e.parentTracer.parentTracerProvider.resource,pageContext:void 0}}},{key:"handleTransitionEnd",value:function(){var e=this.trackingCore.getCurrentContext()
this.validateTransition(e)
var t=h(h({},e.applicationInstance),{},{appId:this.trackingCore.host.appId}),n={"application.name":t.appId,"application.urn":t.applicationUrn,"application.version":t.version,"application.instanceId":t.trackingId}
this.activeContext.application.applicationContext=t,this.activeContext.application.applicationResource.resolveAsyncAttributes(n)
var i=h(h({},e.pageInstance),{},{pageKey:e.pageKey})
this.activeContext.page.pageContext=i,this.activeContext.page.pageResource.resolveAsyncAttributes(h(h({},n),{},{"page.urn":i.pageUrn,"page.pageKey":i.pageKey,"page.instanceId":i.trackingId}))}},{key:"getApplicationSpan",value:function(){return this.activeContext.application.applicationSpan}},{key:"getCurrentPageSpan",value:function(){return this.activeContext.page.pageSpan}},{key:"startApplicationSpan",value:function(){var e=new so({platform:"WEB"},{waitForAsyncAttributes:!0}),t={}
"undefined"!=typeof window&&(t.logger=window.console)
var n=new ao(e,t)
this.setupTracerProvider(n)
var i=n.getTracer({name:this.INSTRUMENTATION_NAME}).createSpan(Mr,{},{spanType:Ur.INFINITE})
return i.start({startTime:0}),i}},{key:"startPageSpan",value:function(e,t){var n=new co({platform:"WEB"},{waitForAsyncAttributes:!0}),i={}
"undefined"!=typeof window&&(i.logger=window.console)
var r=new ao(n,i)
this.setupTracerProvider(r)
var o=r.getTracer({name:this.INSTRUMENTATION_NAME}),a={links:[Object.assign({attributes:{}},t.spanContext)]}
this.initialPageTraceId&&(a.spanContext={traceId:this.initialPageTraceId})
var s=o.createSpan(Mr,a,{spanType:Ur.INFINITE})
return s.start({startTime:e}),s}},{key:"validateTransition",value:function(e){if(!e)throw new Error("Bad transition: new context is missing.")
if(!e.applicationInstance)throw new Error("Bad transition: invalid application instance.")
if(!e.applicationInstance.trackingId||0==e.applicationInstance.trackingId.length)throw new Error("Bad transition: invalid application instance trackingId.")
var t=this.activeContext.application.applicationContext
if(t&&e.applicationInstance.trackingId!==t.trackingId)throw new Error("Bad transition: new application id differs from the active application id.")
var n=this.activeContext.page.pageContext
if(n&&e.pageInstance.trackingId===n.trackingId)throw new Error("Bad transition: new page id is the same as the active page id.")}},{key:"setupTracerProvider",value:function(e){e.addSpanProcessor(new Yr),e.addSpanProcessor(new Qr(this.trackingCore)),e.addSpanExporter(new Wr(this.trackingCore)),e.addSpanExporter(new zr(this.trackingCore.host.api))}}]),e}(),uo=function(){function e(){x(this,e),R(this,"initialized",!1),R(this,"instrumentations",[]),R(this,"trackingContextInst",void 0)}return A(e,[{key:"init",value:function(e,t){this.initialized||(this.trackingContextInst=new lo(e,{initialPageTraceId:null==t?void 0:t.htmlFetchTraceId}),this.trackingContextInst.enable(),this.instrumentations.forEach((function(e){return e.enable()})),this.initialized=!0)}},{key:"addInstrumentation",value:function(e){this.instrumentations.push(e),this.initialized&&e.enable()}},{key:"handleNavigationStart",value:function(){this.trackingContextInst.handleNavigationStart()}},{key:"handleTransitionEnd",value:function(){this.trackingContextInst.handleTransitionEnd()}},{key:"getApplicationSpan",value:function(){return this.trackingContextInst.getApplicationSpan()}},{key:"getCurrentPageSpan",value:function(){return this.trackingContextInst.getCurrentPageSpan()}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
R(uo,"instance",void 0)
var fo=new(function(e){function t(){return x(this,t),m(this,t,arguments)}return E(t,Fr),A(t,[{key:"adapt",value:function(e){var t=e.error,n=t.name,i=t.message,r=t.stack,o=void 0===r?"":r,a=t.fileName,s=void 0===a?"":a,c=t.lineNumber,l=void 0===c?-1:c,u=t.columnNumber,d={"error.name":n,"error.message":i,"error.stack":o,"error.fileName":s,"error.lineNumber":l,"error.columnNumber":void 0===u?-1:u,"error.callTreeId":e.callTreeId},f=e.responseHeaders
if(f){var p={}
Object.keys(f).forEach((function(e){p["error.response.headers.".concat(e)]=f[e]})),Object.assign(d,p)}return d}}]),t}()),po=function(){function e(){x(this,e),R(this,"handleErrorBound",this.handleError.bind(this))}return A(e,[{key:"enable",value:function(){ut.on(In.INTERNAL_OTEL_JET_EVENT,this.handleErrorBound)}},{key:"disable",value:function(){ut.off(In.INTERNAL_OTEL_JET_EVENT,this.handleErrorBound)}},{key:"handleError",value:function(e){if(e){var t=fo.adapt(e)
uo.getInstance().getCurrentPageSpan().addEvent("error",{attributes:t})}}}]),e}()
function ho(e,t,n){var i=t in e&&e.propertyIsEnumerable.call(e,t)
Object.defineProperty(e,t,{configurable:!0,enumerable:i,writable:!0,value:n})}function go(e,t){return Object.keys(e).reduce((function(n,i){return n[t+i]=e[i],n}),{})}function mo(e,t){var n=e.entryType,i=e.redirectStart,r=e.redirectEnd,o=e.workerStart,a=e.fetchStart,s=e.domainLookupStart,c=e.domainLookupEnd,l=e.connectStart,u=e.secureConnectionStart,d=e.connectEnd,f=e.requestStart,p=e.responseStart,h=e.responseEnd,g=e.decodedBodySize,m=e.encodedBodySize,v=e.initiatorType,y=e.nextHopProtocol,b=e.transferSize,E=e.deliveryType,k=e.firstInterimResponseStart,_=e.renderBlockingStatus,T=e.responseStatus
i>0&&r>i&&(t.addEvent("redirectStart",{time:i}),t.addEvent("redirectEnd",{time:r})),o>0&&t.addEvent("workerStart",{time:o}),t.addEvent("fetchStart",{time:a}),s>0&&c>s&&(t.addEvent("domainLookupStart",{time:s}),t.addEvent("domainLookupEnd",{time:c})),l>0&&d>l&&(t.addEvent("connectStart",{time:l}),u>0&&t.addEvent("secureConnectionStart",{time:u}),t.addEvent("connectEnd",{time:d})),function(e){return e.requestStart>0&&e.responseEnd>e.requestStart}(e)&&(t.addEvent("requestStart",{time:f}),t.addEvent("responseStart",{time:p}),t.addEvent("responseEnd",{time:h}))
var S={decodedBodySize:g,encodedBodySize:m,initiatorType:v,nextHopProtocol:y,transferSize:b,deliveryType:E,firstInterimResponseStart:k,renderBlockingStatus:_,responseStatus:T},C=go({entryType:n},"performance.entry."),w=go(S,"performance.resource.timing.")
Object.assign(t.attributes,C,w)}var vo="X-Li-Traceparent",yo="X-Li-Tracestate"
function bo(e,t){return"".concat("00","-").concat(e,"-").concat(t,"-").concat("00")}function Eo(e){var t={}
return e instanceof Headers?e.forEach((function(e,n){return t[n]=e})):Array.isArray(e)?e.forEach((function(e){if(Array.isArray(e)){var n=e.length>0?e[0]:String(void 0),i=e.length>1?e[1]:String(void 0)
t[n]=i}})):"object"===w(e)&&(t=h({},e)),t}var ko=function(){function e(t){x(this,e),R(this,"transporter",void 0),R(this,"handleResourceTimingBound",this.handleResourceTiming.bind(this)),R(this,"resourceInfoMap",new Map),R(this,"locationApi",void 0),R(this,"trackingEndpoint",void 0),this.transporter=t,this.transporter instanceof bn?(this.trackingEndpoint=this.transporter.getTrackingEndpoint(),this.locationApi=this.transporter.host.api.location):this.trackingEndpoint=this.transporter.host.endpoint}return A(e,[{key:"enable",value:function(){this.wrapFetch(),this.wrapXmlHttpRequest(),ut.on(In.INTERNAL_OTEL_RESOURCE,this.handleResourceTimingBound)}},{key:"disable",value:function(){ut.off(In.INTERNAL_OTEL_RESOURCE,this.handleResourceTimingBound)}},{key:"wrapFetch",value:function(){var e=this
!function(e,t,n){var i=void 0
try{i=e[t]}catch(e){}if("function"!=typeof i)throw new Error("Property ".concat(t," of the provided object is not a function"))
var r=n(i)
ho(e,t,r),ho(r,"__wrapped",!0),ho(r,"__original",i)}(window,"fetch",(function(t){return e.fetchWrapper.bind(e,t)}))}},{key:"wrapXmlHttpRequest",value:function(){}},{key:"fetchWrapper",value:function(e,t,n){var i=this,r=function(e){var t="__default"
if(e instanceof Request)t=e.url
else if(e instanceof URL)t=e.href
else if("string"==typeof e)try{t=new URL(e,location.origin).href}catch(e){}return t}(t)
if(!this.shouldWrapFetch(r))return e.apply(window,[t,n])
var o=uo.getInstance().getCurrentPageSpan(),a=Zr(),s=n,c=null==n?void 0:n.headers
try{c=function(e,t,n){var i,r=bo(t,n),o=function(e){return"".concat("LinkedIn","=").concat(e)}(n)
if((e=null!==(i=e)&&void 0!==i?i:{})instanceof Headers){var a=new Headers(e)
return a.append(vo,r),a.append(yo,o),a}return Array.isArray(e)?[].concat(T(e),[[vo,r],[yo,o]]):"object"===w(e)?h(h({},e),{},R(R({},vo,r),yo,o)):e}(null==n?void 0:n.headers,o.spanContext.traceId,a),s=h(h({},n),{},{headers:c})}catch(e){}var l={spanId:a,parentSpan:o,startTime:performance.now(),endTime:performance.now(),request:{url:r,headers:Eo(c)}}
return e.apply(window,[t,s]).then((function(e){var t={headers:{},ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url}
return e.headers.forEach((function(e,n){t.headers[n]=e})),l.response=t,e})).catch((function(e){throw l.error={name:e.name,message:e.message,stack:e.stack},e})).finally((function(){l.endTime=performance.now()
var e=i.resourceInfoMap.get(r)||[]
e.push(l),i.resourceInfoMap.set(r,e)}))}},{key:"handleResourceTiming",value:function(e){if(e&&this.shouldTraceResourceTiming(e.resourceTiming.name)){var t,n=this.resourceInfoMap.get(e.resourceTiming.name)
n&&(t=n[0],n.length>1?(console.warn("Multiple wrapped request info objects found for URL '".concat(e.resourceTiming.name,"'.")),n.shift()):this.resourceInfoMap.delete(e.resourceTiming.name)),this.traceResource(e.resourceTiming,t)}}},{key:"traceResource",value:function(e,t){var n=e.name,i=e.startTime,r=i+e.duration,o=(null==t?void 0:t.parentSpan)||uo.getInstance().getCurrentPageSpan(),a=o.parentTracer.parentTracerProvider.getTracer({name:"w3c-resource-instrumentation"}),s=void 0
t&&(s={traceId:t.parentSpan.spanContext.traceId,spanId:t.spanId,traceState:""})
var c={parentSpan:o}
s&&(c.spanContext=s)
var l=a.createSpan(n,c).start({startTime:i})
mo(e,l),t&&this.addWrappedRequestInfoAttributes(l,t),l.end({endTime:r})}},{key:"addWrappedRequestInfoAttributes",value:function(e,t){var n=go(Eo(t.request.headers),"http.request.header.")
if(Object.assign(e.attributes,n),t.response){var i=go(Eo(t.response.headers),jr),r=go({status:t.response.status,statusText:t.response.statusText,ok:t.response.ok,redirected:t.response.redirected,type:t.response.type,url:t.response.url},Or)
Object.assign(e.attributes,i,r)}}},{key:"isTrackingEndpoint",value:function(e,t){return function(e,t,n){var i=new URL(e,n.href),r=new URL(t,n.href)
return i.href===r.href}(e,this.trackingEndpoint,t)}},{key:"isRealtimeTelemetryRequest",value:function(e,t){return new URL(e,t.href).pathname.indexOf("/realtime/")>-1}},{key:"shouldWrapFetch",value:function(e){return!!this.locationApi&&!this.isTrackingEndpoint(e,this.locationApi)&&!this.isRealtimeTelemetryRequest(e,this.locationApi)}},{key:"shouldTraceResourceTiming",value:function(e){return!!this.locationApi&&!this.isTrackingEndpoint(e,this.locationApi)&&!this.isRealtimeTelemetryRequest(e,this.locationApi)}}]),e}(),_o=function(){function e(t){x(this,e),R(this,"handleLoadEventBound",this.handleLoadEvent.bind(this)),R(this,"navigationSpanId",void 0),R(this,"globalWindow",void 0),this.navigationSpanId=null==t?void 0:t.navigationSpanId,"undefined"!=typeof window&&(this.globalWindow=window)}return A(e,[{key:"enable",value:function(){var e
"complete"===document.readyState?this.handleLoadEventEnd():null===(e=this.globalWindow)||void 0===e||e.addEventListener("load",this.handleLoadEventBound)}},{key:"disable",value:function(){var e
null===(e=this.globalWindow)||void 0===e||e.removeEventListener("load",this.handleLoadEventBound)}},{key:"handleLoadEvent",value:function(){var e,t=this
setTimeout((function(){t.handleLoadEventEnd()}),0),null===(e=this.globalWindow)||void 0===e||e.removeEventListener("load",this.handleLoadEventBound)}},{key:"handleLoadEventEnd",value:function(){var e=performance.getEntriesByType("navigation")
if(!(e.length<1)){var t=e[0],n=uo.getInstance().getCurrentPageSpan()
this.traceNavigation(t,n)}}},{key:"traceNavigation",value:function(e,t){var n=e.name,i=e.startTime,r=i+e.duration,o=t.parentTracer.parentTracerProvider.getTracer({name:"w3c-navigation-instrumentation"}),a=e.toJSON(),s=a.domComplete,c=a.domContentLoadedEventEnd,l=a.domContentLoadedEventStart,u=a.domInteractive,d=a.loadEventEnd,f=a.loadEventStart,p=a.redirectCount,h=a.type,g=a.unloadEventEnd,m=a.unloadEventStart,v={parentSpan:t,spanContext:this.navigationSpanId?{spanId:this.navigationSpanId}:void 0},y=o.createSpan(n,v).start({startTime:i})
mo(e,y),m>0&&g>m&&o.createSpan("unloadEvent",{parentSpan:y}).start({startTime:m}).end({endTime:g})
var b=o.createSpan("dom-processing",{parentSpan:y}).start({startTime:u})
o.createSpan("domContentLoadedEvent",{parentSpan:b}).start({startTime:l}).end({endTime:c}),b.end({endTime:s}),o.createSpan("loadEvent",{parentSpan:y}).start({startTime:f}).end({endTime:d})
var E=go({type:h,redirectCount:p},"performance.navigation.timing.")
Object.assign(y.attributes,E),y.end({endTime:r})}}]),e}()},8080:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{BionicMessagingManager:()=>pt,BionicMessagingTopics:()=>V,devLog:()=>X,devMode:()=>z})
var i=Object.defineProperty,r=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),o=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},a=(e,t,n)=>(o(e,t,"read from private field"),n?n.call(e):t.get(e)),s=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once")
t instanceof WeakSet?t.add(e):t.set(e,n)},c=(e,t,n,i)=>(o(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),l=(e,t,n)=>(o(e,t,"access private method"),n),u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)}
function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0
if(n)return n.call(e)
if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}
throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator]
if(!n)return e
var i,r,o=n.call(e),a=[]
try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function h(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r])
return e.concat(i||Array.prototype.slice.call(t))}function g(e){return"function"==typeof e}function m(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}))
return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var v=m((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}}))
function y(e,t){if(e){var n=e.indexOf(t)
0<=n&&e.splice(n,1)}}var b=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,i,r
if(!this.closed){this.closed=!0
var o=this._parentage
if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=f(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)
var c=this.initialTeardown
if(g(c))try{c()}catch(e){r=e instanceof v?e.errors:[e]}var l=this._finalizers
if(l){this._finalizers=null
try{for(var u=f(l),d=u.next();!d.done;d=u.next()){var m=d.value
try{_(m)}catch(e){r=r??[],e instanceof v?r=h(h([],p(r)),p(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}if(r)throw new v(r)}},e.prototype.add=function(t){var n
if(t&&t!==this)if(this.closed)_(t)
else{if(t instanceof e){if(t.closed||t._hasParent(this))return
t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage
return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage
this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage
t===e?this._parentage=null:Array.isArray(t)&&y(t,e)},e.prototype.remove=function(t){var n=this._finalizers
n&&y(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e
var t}(),E=b.EMPTY
function k(e){return e instanceof b||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function _(e){g(e)?e():e.unsubscribe()}var T={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i]
return setTimeout.apply(void 0,h([e,t],p(n)))},clearTimeout:function(e){var t=T.delegate
return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}
function S(){}function C(e){e()}var w=function(e){function t(t){var n=e.call(this)||this
return n.isStopped=!1,t?(n.destination=t,k(t)&&t.add(n)):n.destination=R,n}return d(t,e),t.create=function(e,t,n){return new I(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(b)
Function.prototype.bind
var x=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver
if(t.next)try{t.next(e)}catch(e){A(e)}},e.prototype.error=function(e){var t=this.partialObserver
if(t.error)try{t.error(e)}catch(e){A(e)}else A(e)},e.prototype.complete=function(){var e=this.partialObserver
if(e.complete)try{e.complete()}catch(e){A(e)}},e}(),I=function(e){function t(t,n,i){var r,o=e.call(this)||this
return r=g(t)||!t?{next:t??void 0,error:n??void 0,complete:i??void 0}:t,o.destination=new x(r),o}return d(t,e),t}(w)
function A(e){!function(e){T.setTimeout((function(){throw e}))}(e)}var R={closed:!0,next:S,error:function(e){throw e},complete:S},O="function"==typeof Symbol&&Symbol.observable||"@@observable"
function j(e){return e}function M(e){return 0===e.length?j:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var N=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e
return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this,r=function(e){return e&&e instanceof w||function(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}(e)&&k(e)}(e)?e:new I(e,t,n)
return C((function(){var e=i,t=e.operator,n=e.source
r.add(t?t.call(r,n):n?i._subscribe(r):i._trySubscribe(r))})),r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this
return new(t=P(t))((function(t,i){var r=new I({next:function(t){try{e(t)}catch(e){i(e),r.unsubscribe()}},error:i,complete:t})
n.subscribe(r)}))},e.prototype._subscribe=function(e){var t
return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[O]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
return M(e)(this)},e.prototype.toPromise=function(e){var t=this
return new(e=P(e))((function(e,n){var i
t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}()
function P(e){var t
return null!==(t=e??void 0)&&void 0!==t?t:Promise}function D(e){return function(t){if(function(e){return g(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}))
throw new TypeError("Unable to lift unknown Observable type")}}function U(e,t,n,i,r){return new L(e,t,n,i,r)}var L=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t)||this
return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=r?function(e){try{r(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return d(t,e),t.prototype.unsubscribe=function(){var t
if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed
e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(w),F=m((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),B=function(e){function t(){var t=e.call(this)||this
return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return d(t,e),t.prototype.lift=function(e){var t=new q(this,this)
return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new F},t.prototype.next=function(e){var t=this
C((function(){var n,i
if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers))
try{for(var r=f(t.currentObservers),o=r.next();!o.done;o=r.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this
C((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e
for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this
C((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0
for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e
return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,i=n.hasError,r=n.isStopped,o=n.observers
return i||r?E:(this.currentObservers=null,o.push(e),new b((function(){t.currentObservers=null,y(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,i=t.thrownError,r=t.isStopped
n?e.error(i):r&&e.complete()},t.prototype.asObservable=function(){var e=new N
return e.source=this,e},t.create=function(e,t){return new q(e,t)},t}(N),q=function(e){function t(t,n){var i=e.call(this)||this
return i.destination=t,i.source=n,i}return d(t,e),t.prototype.next=function(e){var t,n
null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n
null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t
null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n
return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:E},t}(B),H=function(e){function t(t){var n=e.call(this)||this
return n._value=t,n}return d(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t)
return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,i=e._value
if(t)throw n
return this._throwIfClosed(),i},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(B)
function G(e,t){return D((function(n,i){var r=0
n.subscribe(U(i,(function(n){i.next(e.call(t,n,r++))})))}))}const V={MessagesBroadcastTopic:"MessagesBroadcastTopic",MessagingStreamingBroadcastTopic:"MessagingStreamingBroadcastTopic",MessageStreamingUpdatesBroadcastTopic:"MessageStreamingUpdatesBroadcastTopic",ConversationsBroadcastTopic:"ConversationsBroadcastTopic",ConversationDeletesBroadcastTopic:"ConversationDeletesBroadcastTopic"}
var K
class W{constructor(){s(this,K,void 0),c(this,K,new Map)}register(e){a(this,K).set(e.mailboxUrn,e)}get(e){return a(this,K).get(e)}unregister(e){a(this,K).delete(e)}clear(){a(this,K).clear()}}K=new WeakMap
const z=()=>!1,X=function(){const e=new Date
for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i]
z()&&console.log(`${e.getHours()}:${e.getMinutes()}`,"web-bionic-messaging:",...n)}
var Q,Y,$,J,Z,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,fe,pe,he,ge,me,ve,ye,be,Ee,ke,_e,Te,Se,Ce,we,xe,Ie,Ae,Re,Oe,je,Me,Ne,Pe,De,Ue,Le,Fe,Be,qe,He,Ge,Ve,Ke,We,ze,Xe,Qe,Ye,$e,Je,Ze,et,tt,nt,it,rt,ot
class at{constructor(e){let{hostProvider:t,mailboxProviderRegistry:n}=e
s(this,oe),s(this,se),s(this,le),s(this,de),s(this,pe),s(this,ge),s(this,Q,void 0),s(this,Y,void 0),s(this,$,void 0),s(this,J,void 0),s(this,Z,void 0),s(this,ee,void 0),s(this,te,void 0),s(this,ne,void 0),s(this,ie,void 0),s(this,re,void 0),c(this,Q,n),c(this,re,new Map),c(this,Z,l(this,de,fe).bind(this)),c(this,J,l(this,le,ue).bind(this)),c(this,$,l(this,se,ce).bind(this)),c(this,ee,new B),c(this,te,new B),c(this,ne,new B),c(this,ie,new B),c(this,Y,t.realtimeSystemManager),a(this,Y).addEventListener("authSubscribeFailed",a(this,J)),a(this,Y).addEventListener("topic",a(this,Z)),a(this,Y).addEventListener("subscribe",a(this,$))}get eventConversationsStream(){return a(this,ee).asObservable()}get eventMessagesStream(){return a(this,te).asObservable()}get eventStreamingUpdatesStream(){return a(this,ne).asObservable()}get subscriptionStream(){return a(this,ie).asObservable()}subscribe(e,t){return a(this,Q).register(e),l(this,pe,he).call(this,e,t)}unsubscribe(e){a(this,Q).unregister(e)
const t=[]
for(const[n,i]of a(this,re))i.mailboxProvider.mailboxUrn===e&&t.push(a(this,Y).unsubscribe([i.realtimeConfig.topicConfig]))
return Promise.all(t)}}Q=new WeakMap,Y=new WeakMap,$=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,re=new WeakMap,oe=new WeakSet,ae=function(e,t,n,i){return{mailboxProvider:e,realtimeConfig:{...t,topicConfig:{topicUrn:n,authToken:i,graphQLQueryParams:t.topicConfig.graphQLQueryParams}}}},se=new WeakSet,ce=function(e,t){X("subscribeHandler called",t)
const n=a(this,re).get(t)
n&&a(this,ie).next(n)},le=new WeakSet,ue=function(e,t){X("authSubscribeFailedHanlder called",t)
let n=""
for(const[e,i]of a(this,re))if(i.realtimeConfig.topicConfig.authToken===t){n=e
break}const i=a(this,re).get(n)
i&&l(this,pe,he).call(this,i.mailboxProvider,[i.realtimeConfig])},de=new WeakSet,fe=function(e,t){X("topic eventData",t)
const n=a(this,re).get(t.topic)
if(n){const{realtimeConfig:e}=n
switch(n.realtimeConfig.topicType){case V.MessagesBroadcastTopic:{const i=e.builder(t)
if(i){const e=n.mailboxProvider.mapToMessage(i)
a(this,te).next(e)}break}case V.ConversationsBroadcastTopic:case V.ConversationDeletesBroadcastTopic:{const i=e.builder(t)
if(i){const e=n.mailboxProvider.mapToConversation(i)
a(this,ee).next({entity:e,topic:n.realtimeConfig.topicType})}break}case V.MessageStreamingUpdatesBroadcastTopic:{const i=e.builder(t)
if(i){const e=n.mailboxProvider.mapToMessage(i)
a(this,ne).next(e)}break}default:X("No subscription found")}}},pe=new WeakSet,he=async function(e,t){const{mailboxUrn:n}=e,i=await e.mailboxNetworkStore.getRealtimeAuthorization(n)
if(!i)return
let r=[]
return Object.keys(i).forEach((n=>{if(n.endsWith("Urn")&&n in i){const o=t.find((e=>n.toLowerCase().startsWith(e.topicType.toLowerCase())))
if(o){const t=i[n]
t&&r.push(l(this,oe,ae).call(this,e,o,t,i.token))}}})),r.length?await l(this,ge,me).call(this,r):void 0},ge=new WeakSet,me=async function(e){X("Request subscription from Realtime-FE"),X(e)
const t=e.map((e=>(a(this,re).set(e.realtimeConfig.topicConfig.topicUrn,e),a(this,Y).subscribe([e.realtimeConfig.topicConfig]))))
return X("****************"),Promise.all(t)}
class st{constructor(){s(this,ve,new Map),s(this,ye,void 0),s(this,be,void 0),s(this,Ee,new Map),s(this,ke,new Map),s(this,_e,void 0),s(this,Te,void 0),s(this,Se,void 0),c(this,ye,new Map),c(this,be,new H(a(this,ye))),c(this,_e,new Map),c(this,Te,new H(a(this,_e))),c(this,Se,new H(void 0))}get mailboxes(){return a(this,ve)}get conversations(){return a(this,be)}get messages(){return a(this,Te)}get streamingUpdates(){return a(this,Se)}stop(){a(this,Te).unsubscribe(),a(this,Se).unsubscribe()}hasConversation(e,t){var n
return X(a(this,ye)),!![...(null==(n=a(this,ye).get(e))?void 0:n.values())??[]].filter((e=>(X(e),e.entityUrn===t))).length}getConversationNextCursorToken(e){return a(this,Ee).get(e)}saveConversationNextCursorToken(e,t){a(this,Ee).set(e,t)}getSyncToken(e){return a(this,ke).get(e)}saveSyncToken(e,t){a(this,ke).set(e,t)}saveConversations(e,t){X(`Adding ${t.length} conversations(s) to the store`),a(this,ye).get(e)||a(this,ye).set(e,new Set)
const n=a(this,ye).get(e)
n&&(t.every((e=>n.add(e))),a(this,be).next(a(this,ye)))}clearConversations(e){var t
null==(t=a(this,ye).get(e))||t.clear()}clearMessages(e){var t
null==(t=a(this,_e).get(e))||t.clear()}deleteConversations(e,t){const n=a(this,ye).get(e)
null==n||n.forEach((e=>{t.includes(e.entityUrn)&&(X(`Removing ${t.length} conversations(s) from the store`,e),n.delete(e))})),a(this,be).next(a(this,ye))}saveMessages(e,t,n){a(this,_e).has(t)||a(this,_e).set(t,new Set)
const i=a(this,_e).get(t)
if(i){let e=0
n.forEach((t=>{Array.from(i).find((e=>e.entityUrn===t.entityUrn))||(e++,i.add(t))})),X(`Adding ${e} message(s) to the store! hooray!`),a(this,Te).next(a(this,_e))}}deleteMessages(e,t){X(`Removing ${t.length} messages(s) from the store`)
const n=a(this,_e).get(e)
null==n||n.forEach((e=>{t.includes(e.entityUrn)&&n.delete(e)}))}handleStreamingUpdatesMessageUpdate(e){a(this,Se).next(e)}}ve=new WeakMap,ye=new WeakMap,be=new WeakMap,Ee=new WeakMap,ke=new WeakMap,_e=new WeakMap,Te=new WeakMap,Se=new WeakMap
class ct{constructor(e){let{store:t,mailboxUrn:n,conversationUrn:i,conversationsRepository:o,messagesRepository:l}=e
r(this,"mailboxUrn"),r(this,"conversationUrn"),s(this,Ce,void 0),s(this,we,void 0),s(this,xe,void 0),s(this,Ie,void 0),s(this,Ae,void 0),this.mailboxUrn=n,this.conversationUrn=i,c(this,Ce,t),c(this,we,o),c(this,xe,l),c(this,Ie,new H(void 0)),c(this,Ae,this.messages.subscribe((e=>{const t=a(this,Ie).getValue(),n=[...e].pop();(null==t?void 0:t.entityUrn)!==(null==n?void 0:n.entityUrn)&&a(this,Ie).next(n)})))}get conversation(){return a(this,Ce).conversations.pipe(G((e=>{const t=e.get(this.mailboxUrn)
if(t)return Array.from(t.values()).find((e=>e.entityUrn===this.conversationUrn))})))}get messages(){return a(this,Ce).messages.pipe(G((e=>{const t=e.get(this.conversationUrn)
return t?new Set([...t.values()].sort(((e,t)=>e.deliveredAt-t.deliveredAt))):new Set})))}get latestMessage(){return a(this,Ie).asObservable()}loadOlderMessages(){throw new Error("Method not implemented.")}syncMessages(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
a(this,xe).syncMessages(this.mailboxUrn,this.conversationUrn,e)}sendMessage(e,t,n){return a(this,we).sendMessage(this.mailboxUrn,this.conversationUrn,e,t,n)}cleanup(){a(this,Ae).unsubscribe()}}Ce=new WeakMap,we=new WeakMap,xe=new WeakMap,Ie=new WeakMap,Ae=new WeakMap
class lt{constructor(e){let{mailboxUrn:t,store:n,conversationsRepository:i,messagesRepository:o}=e
s(this,Ne),r(this,"mailboxUrn"),s(this,Re,void 0),s(this,Oe,void 0),s(this,je,void 0),s(this,Me,void 0),this.mailboxUrn=t,c(this,Re,n),c(this,Oe,i),c(this,je,o),c(this,Me,new Map)}get conversations(){return a(this,Re).conversations.pipe(G((e=>e.get(this.mailboxUrn))),(e=e=>!!e,D((function(t,n){var i=0
t.subscribe(U(n,(function(t){return e.call(void 0,t,i++)&&n.next(t)})))}))),G((e=>{const t=[...e.values()]
if(!t.length){const e=[]
return a(this,Me).forEach((t=>{e.push(t.conversationUrn)})),e.forEach((e=>{if(a(this,Me).has(e)){const t=a(this,Me).get(e)
null==t||t.cleanup(),a(this,Me).delete(e)}})),new Set(a(this,Me).values())}return t.forEach((e=>{l(this,Ne,Pe).call(this,e.entityUrn)})),new Set(a(this,Me).values())})))
var e}get streamingUpdatesMessage(){return a(this,Re).streamingUpdates.asObservable()}async getConversationDataSource(e){let t
if(this.conversations&&a(this,Me).has(e))t=a(this,Me).get(e)
else{const n=await a(this,Oe).getConversation(this.mailboxUrn,e)
n&&(t=l(this,Ne,Pe).call(this,n.entityUrn))}return Promise.resolve(t)}async loadOlderConversations(){const e=await a(this,Oe).loadOlderConversations(this.mailboxUrn)
return(null==e?void 0:e.map((e=>l(this,Ne,Pe).call(this,e.entityUrn))))??[]}}Re=new WeakMap,Oe=new WeakMap,je=new WeakMap,Me=new WeakMap,Ne=new WeakSet,Pe=function(e){return a(this,Me).has(e)||a(this,Me).set(e,new ct({conversationUrn:e,mailboxUrn:this.mailboxUrn,store:a(this,Re),conversationsRepository:a(this,Oe),messagesRepository:a(this,je)})),a(this,Me).get(e)}
class ut{constructor(e){let{store:t,realtimeManager:n,conversationsRepository:i,messagesRepository:r}=e
s(this,De,void 0),s(this,Ue,void 0),s(this,Le,void 0),s(this,Fe,void 0),s(this,Be,void 0),s(this,qe,void 0),s(this,He,void 0),s(this,Ge,void 0),c(this,He,t),c(this,Le,n),c(this,De,i),c(this,Ue,r)}start(){c(this,Fe,a(this,Le).eventConversationsStream.subscribe((e=>this.handleRealtimeConversationsEvent(e)))),c(this,Be,a(this,Le).eventMessagesStream.subscribe((e=>this.handleRealtimeMessagesEvent(e)))),c(this,qe,a(this,Le).eventStreamingUpdatesStream.subscribe((e=>this.handleRealtimeStreamingUpdatesEvent(e)))),c(this,Ge,a(this,Le).subscriptionStream.subscribe((e=>this.handleSubscription(e))))}stop(){var e,t,n,i
null==(e=a(this,Fe))||e.unsubscribe(),c(this,Fe,void 0),null==(t=a(this,Be))||t.unsubscribe(),c(this,Be,void 0),null==(n=a(this,qe))||n.unsubscribe(),c(this,qe,void 0),null==(i=a(this,Ge))||i.unsubscribe(),c(this,Ge,void 0)}async syncMailbox(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
const n=(await a(this,De).syncConversations(e,t)).map((e=>e.entityUrn))
await a(this,Ue).batchSyncMessages(e,n,t)}async syncConversation(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
await a(this,Ue).syncMessages(e,t,n)}handleSubscription(e){X("Sync Manager: Subscription",e),this.syncMailbox(e.mailboxProvider.mailboxUrn),X("****************")}async handleRealtimeConversationsEvent(e){switch(X("Sync Manager: RealtimeConversationsEvent",e),e.topic){case V.ConversationsBroadcastTopic:a(this,He).saveConversations(e.entity.mailboxUrn,[e.entity])
break
case V.ConversationDeletesBroadcastTopic:a(this,He).deleteConversations(e.entity.mailboxUrn,[e.entity.entityUrn])
break
default:X("Unknown conversation topic!")}X("****************")}async handleRealtimeMessagesEvent(e){X("Sync Manager: RealtimeMessagesEvent",e),a(this,He).hasConversation(e.mailboxUrn,e.conversationUrn)||await a(this,De).getConversation(e.mailboxUrn,e.conversationUrn),await a(this,Ue).saveMessage(e),X("****************")}async handleRealtimeStreamingUpdatesEvent(e){X("Sync Manager: RealtimeStreamingUpdatesEvent",e),a(this,He).handleStreamingUpdatesMessageUpdate(e),X("****************")}}De=new WeakMap,Ue=new WeakMap,Le=new WeakMap,Fe=new WeakMap,Be=new WeakMap,qe=new WeakMap,He=new WeakMap,Ge=new WeakMap
class dt{constructor(e){let{store:t,mailboxProviderRegistry:n}=e
s(this,Ve,void 0),s(this,Ke,void 0),c(this,Ve,t),c(this,Ke,n)}async batchSyncMessages(e,t,n){var i,r,o
try{const s=await(null==(o=null==(i=a(this,Ke).get(e))?void 0:(r=i.messageNetworkStore).batchSyncMessages)?void 0:o.call(r,{mailboxUrn:e,syncRequests:t.map((e=>({conversationUrn:e,syncToken:n?void 0:a(this,Ve).getSyncToken(e)})))}))
if(s){const t=new Map,n=new Map
s.forEach(((e,i)=>{t.set(i,e.metadata),n.set(i,e.data)})),this.handleBatchSyncMetaData(t),this.batchSaveMessages(e,n)}}catch{throw new Error(`MessagesRepository: batchSyncMessages failed for mailbox: ${e}, conversationUrns: ${t}`)}}async syncMessages(e,t,n){var i,r,o
try{const s=await(null==(o=null==(i=a(this,Ke).get(e))?void 0:(r=i.messageNetworkStore).syncMessages)?void 0:o.call(r,{mailboxUrn:e,conversationUrn:t,syncToken:n?void 0:a(this,Ve).getSyncToken(t)}))
return null!=s&&s.data&&(this.handleSyncMetaData(t,s.metadata),a(this,Ve).saveMessages(e,t,s.data)),(null==s?void 0:s.data)??[]}catch{throw new Error(`MessagesRepository: syncMessages failed for mailbox: ${e}, conversationUrn: ${t}`)}}handleBatchSyncMetaData(e){e.forEach(((e,t)=>{this.handleSyncMetaData(t,e)}))}handleSyncMetaData(e,t){t.shouldClearCache&&a(this,Ve).clearMessages(e),t.deletedUrns.length&&a(this,Ve).deleteMessages(e,t.deletedUrns),t.newSyncToken&&a(this,Ve).saveSyncToken(e,t.newSyncToken)}batchSaveMessages(e,t){for(const[n,i]of t)a(this,Ve).saveMessages(e,n,i)}async saveMessage(e){a(this,Ve).saveMessages(e.mailboxUrn,e.conversationUrn,[e])}}Ve=new WeakMap,Ke=new WeakMap
class ft{constructor(e){let{store:t,mailboxProviderRegistry:n}=e
s(this,We,void 0),s(this,ze,void 0),c(this,We,t),c(this,ze,n)}async sendMessage(e,t,n,i,r){var o
const s=null==(o=a(this,ze).get(e))?void 0:o.messageNetworkStore
if(!s||!s.sendMessage)return Promise.resolve(void 0)
s.sendMessage({mailboxUrn:e,conversationUrn:t,message:n,sendMetadata:i,userContext:r})}async getConversation(e,t){var n
try{const i=await(null==(n=a(this,ze).get(e))?void 0:n.conversationNetworkStore.getConversation(e,t))
if(i)return a(this,We).saveConversations(e,[i]),i}catch{throw Error(`ConversationsRepository: getConversation failed for mailbox: ${e}, conversationUrn: ${t}`)}}async loadOlderConversations(e){var t,n,i
const r=await(null==(i=null==(t=a(this,ze).get(e))?void 0:(n=t.conversationNetworkStore).loadOlderConversations)?void 0:i.call(n,e,a(this,We).getConversationNextCursorToken(e)))
return null!=r&&r.data&&(this.handleConversationCursorMetadata(e,r.metadata),a(this,We).saveConversations(e,r.data)),(null==r?void 0:r.data)??[]}async syncConversations(e,t){var n
try{const i=await(null==(n=a(this,ze).get(e))?void 0:n.conversationNetworkStore.syncConversations({mailboxUrn:e,syncToken:t?void 0:a(this,We).getSyncToken(e)}))
return null!=i&&i.data&&(this.handleSyncMetaData(e,i.metadata),a(this,We).saveConversations(e,i.data)),(null==i?void 0:i.data)??[]}catch{throw new Error(`ConversationsRepository: syncConversations failed for mailbox: ${e}`)}}handleConversationCursorMetadata(e,t){t.nextCursor&&a(this,We).saveConversationNextCursorToken(e,t.nextCursor)}handleSyncMetaData(e,t){t.shouldClearCache&&a(this,We).clearConversations(e),t.deletedUrns.length&&a(this,We).deleteConversations(e,t.deletedUrns),t.newSyncToken&&a(this,We).saveSyncToken(e,t.newSyncToken)}saveConversation(e){a(this,We).saveConversations(e.mailboxUrn,[e])}}We=new WeakMap,ze=new WeakMap
class pt{constructor(e){s(this,nt),s(this,rt),s(this,Xe,void 0),s(this,Qe,void 0),s(this,Ye,void 0),s(this,$e,void 0),s(this,Je,void 0),s(this,Ze,void 0),s(this,et,void 0),s(this,tt,void 0),c(this,Xe,e.hostProvider),c(this,Qe,new st),c(this,Ye,new W),c(this,tt,new Map),c(this,$e,new ft({store:a(this,Qe),mailboxProviderRegistry:a(this,Ye)})),c(this,Je,new dt({store:a(this,Qe),mailboxProviderRegistry:a(this,Ye)})),c(this,Ze,new at({hostProvider:a(this,Xe),mailboxProviderRegistry:a(this,Ye)})),c(this,et,new ut({store:a(this,Qe),realtimeManager:a(this,Ze),conversationsRepository:a(this,$e),messagesRepository:a(this,Je)}))}onUserSignin(){l(this,nt,it).call(this)}onUserSignout(){l(this,rt,ot).call(this)}async subscribeToMailbox(e,t){const{mailboxUrn:n}=e
return a(this,tt).has(n)||(l(this,nt,it).call(this),await a(this,Ze).subscribe(e,t),a(this,tt).set(n,new lt({mailboxUrn:e.mailboxUrn,conversationsRepository:a(this,$e),messagesRepository:a(this,Je),store:a(this,Qe)}))),a(this,tt).get(n)}unsubscribeFromMailbox(e){return a(this,Ze).unsubscribe(e)}}Xe=new WeakMap,Qe=new WeakMap,Ye=new WeakMap,$e=new WeakMap,Je=new WeakMap,Ze=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakSet,it=function(){a(this,et).start()},rt=new WeakSet,ot=function(){a(this,et).stop()}}}])

//# sourceMappingURL=chunk.166.8b43018668c95e03bbe6.map